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

 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 DZ,VRY,tRL,nx,Jc,P3Z,cn,gZ,vn,kF,oFn,JcL,dZ,HxZ,wnF,RY,bxX,lZc,GLx,no,FXF,gFZ,kLY,dUZ,u9R,ZF,l6,FF,vH,R9x,kp,C3Z,su,NL,XF,XnY,Yp,i6,Acn,ixZ,SdZ,ML,pn3,Uu,LXZ,fw,WX9,tZ,IZL,MRx,DLL,zJ,fFU,npF,tE3,P6X,opR,m3,h9F,BB,UUL,VEF,bo9,yr9,Zo9,aq,jlx,lFY,GUZ,elY,FYY,gpd,slF,Iq,uFF,mLF,Rlc,Ep9,ArL,xf,n4,aFL,WY9,P7,LYF,MEd,OoY,Jn,xLx,ok,cr9,H7,Tj,bF,ru,Z3,VW3,hlc,ULF,Fm,DoF,fRF,nf3,PXd,tWd,du,ofX,JZZ,e_,HwL,wB3,zj,TRx,ZwL,qe,cZX,bwY,F3L,gfn,vfx,NRZ,BRU,ak,$r,zvF,CX9,qcR,aRX,W3n,MWd,f3d,JnX,PS,H4x,QkL,Q2,bv,
Kc,Ze,G6,se,dQ,uv,l3F,AL,GjZ,Fl3,Lc,I3,vrX,xx,M8,hL,Ue,skd,BuY,de3,umx,NuY,meR,zGn,RGR,CFn,X7X,ta,nW,Erc,AnY,a3d,$eR,YWY,i4R,ZW,Wlx,j5,lK,GO,e5,v6,LlF,kj,O4Y,VoX,B6,D8F,feL,nxU,uK,ton,Pv9,N9,ma,rLd,RX,Q3Z,TQ9,CW,KMd,bcX,yLZ,ZcZ,j3Z,leX,Ez,G6F,eDL,Aa,cLU,FMd,aX,Yj,iK,W6,gxx,k6d,vx3,pW,BQd,d8c,utF,IX,xj,M9,ha,Uz,VJ,DN,NQc,m8x,zDn,RDY,Cv3,qeU,XS9,Exc,ALY,ae9,Yec,ni,$83,icZ,o8,SeZ,rw,Hl,WMn,Ied,OcL,x8Y,hDZ,U8n,V59,t5U,PKF,ojd,Jac,raR,HWx,w6x,KaF,Te,yaY,ZWX,jXY,lWx,GOL,eBx,Fa9,CKR,qz9,X69,AaF,aWZ,cl,YzU,
F3,p69,La3,IWZ,OWx,x9Y,M5U,hBX,U9X,Bl,Drn,Sz9,fNF,nA3,tC9,PBX,oAx,J4Z,r4F,Hid,wl9,biR,TwU,Zi3,Kkc,y4F,GeF,e5Y,c4R,j8F,gAU,lN3,ke3,$A,s8Z,iB,Wl,BwY,u33,NwY,R5Y,SBF,qBc,CBX,EAY,aNn,Xld,Oi3,plU,xrx,MCL,h5Y,Urd,VBY,fCd,DNZ,tBZ,PWZ,o4X,JlY,HJn,QV9,TX9,bJY,ylc,KHX,BXx,xA,dN9,NX9,mNZ,zOd,ROZ,CWc,XqF,E4L,Aln,nJ,tl,aCY,pqx,Jl,rX,xNx,hOx,rN3,Ts,Tcc,bGY,jPY,yNR,ZGn,lW,lJF,G4X,ANY,aJd,Y0R,$qR,iGY,S0d,WKd,LKR,IJR,xqc,OG3,Uqc,Bq,NN,DlR,f9c,nwZ,tdY,Pa3,owY,rh9,w9Y,HZ9,Wq,LJ,IV,gwR,vw9,MN,s9Y,BjR,hl,uBc,dln,AhY,
a9Z,YGF,iZ3,L0c,OZY,xl9,MdY,hUU,V1R,fY9,nJc,fG,JU9,wIZ,QT9,TOd,bHc,KLn,HHL,oJR,PEx,tN,t1R,yUL,jTX,cUL,G59,rc,gJZ,k5n,sTL,BOZ,d49,bb,uTc,m4n,NOF,zAF,CE9,ZJ,$4U,SbZ,pIF,IYc,eQ,x4Y,vJ,s0,kK,Vkd,OHd,DYZ,ub,PkY,z4,RP,rBZ,QO3,bhZ,KWR,yBY,CG,Zhx,jOc,ldL,etF,cBU,FWn,ge9,kV9,AN,sO9,BmY,YK,SQ,Nmx,mYd,zt3,pG,qi3,XwR,ABL,hN,pwY,LWF,ihY,OhZ,xYL,Mk9,P9,Jh,rj,DGX,fsd,wj,nb3,ten,PNR,ob3,rkY,HyR,w2F,Q2c,JkY,Tqn,ba,Kwd,ZyX,KZ,ykZ,j2n,byn,lsx,Z9,ehU,ckY,FwR,gbR,kPZ,vbc,s2d,u4L,BqZ,mGn,EbF,asn,YqY,iyU,p2Y,WwZ,Sq9,Lwn,
Oyn,MeR,xGY,UGY,D2n,f53,nix,t6Y,w1X,HOZ,QGn,Tv3,m0,z2,bOY,yqZ,jGn,edX,FiY,cq3,hh,gix,ZOZ,NvZ,m2U,zdR,nH,RdL,qE3,AqZ,$2c,YEY,p1U,LiR,I5F,OOx,M6R,fkd,hdZ,Vvx,Di3,noZ,tvc,oo3,P8d,reX,JeZ,yx,HlY,Qbd,T2Z,Zlc,gO,vI,jbF,lkF,kJ,FIZ,uE,N4,mL,sbZ,z5,uw9,q4,N2X,miZ,ziY,RiR,AU,C8L,X8F,EoU,akZ,$i3,WI9,LIY,xJ,IkF,Ol9,xi9,MvX,hiZ,Uid,VJU,D1x,Ub,tJX,PCF,o83,JRZ,rRc,H6x,wAU,Q4Z,TNY,b6n,Kg3,yRZ,Z6Y,oO,d1F,uQ9,JB,rm,Hw,NNd,m1R,z0U,R0U,CC9,q2Y,XA9,$1Y,i69,S2L,WgF,pAx,bk,yW,Zd,jk,ek,cw,Fv,IlY,vw,x1R,ke,MJU,h0n,si,U1U,
VsY,D_d,wR9,Tgc,jWX,cOd,eIx,QW9,Fq9,kq9,aHR,m_c,Wq3,RI9,Sl9,pRx,Ch,IHc,Xv,x_Y,MsY,U_3,VL9,DZY,n7X,aO,Pdn,o79,JP9,rP9,HRZ,woZ,QBZ,tL3,KRY,yPY,ZR3,$e,FRU,g73,cPL,k_c,sB3,dZZ,uSx,BUZ,XoL,APF,Ys9,iRn,hB,ORR,IxF,VY3,fvc,nuZ,tYc,PUc,ouF,JAd,rq,ZIn,lvd,K8d,bIR,jUR,HIX,eJ9,mAX,guY,vu9,kyR,$Ax,SrX,YrZ,xAc,avn,rAL,OIY,F8R,NIY,iIx,Gyx,QUn,wtL,TI9,yAZ,AAX,sq,Q5Z,bm9,K7U,y2L,Zm9,kK3,m3d,zqd,X4,CSY,EtY,$33,YmY,Sm9,W7R,L7c,OmF,Ibx,x3L,Ly,MDY,hq9,VlR,U3x,I2,old,Pe9,tlZ,wj9,JIL,QtL,HTn,Tkd,xb,bTd,jtU,yIZ,ZTR,GkU,
FAd,D5,kkd,gl9,st3,NkX,maR,CeR,Xj3,P1,oG,YoY,$aZ,Jq,rv,iT3,H1,wv,SoX,Q$,WAL,Tt,pjn,LAn,KO,InY,OTL,xac,Ml9,hC3,VKZ,Ua9,ftn,PfF,tK9,oCF,JYL,DsY,rYZ,Q7F,wWY,nCd,Ta3,bXx,Gt,Kf9,ZX9,yYZ,j7Y,ltL,e6U,GvR,cYU,c1,gCc,vCX,FfY,s7Z,BaU,dsY,R63,XWY,$sY,pW9,Fz,OXF,xs9,gv,MKY,B1,dv,nVZ,ki,mi,tbn,PnZ,JEL,rEX,wCc,T39,bLX,KDZ,yEF,lrF,gV9,cEZ,jm9,vVF,kSY,q2,FDL,sm3,Aq,B33,dRY,uWZ,N3Y,CnU,mRZ,RSY,AEU,ar3,WDY,S19,IrL,V9c,DwR,nvF,PYR,ovx,rxF,HY3,wVn,TKd,bYZ,K$Y,jNY,cx9,F$3,l1F,vvc,sNn,k3Z,gvd,BKY,ucY,NK3,mwZ,zRF,RRZ,UE,
VR,nl,P8,XVZ,EvY,a1R,iYn,ob,Je,S5F,r2,L$F,I1c,OYY,w2,VPR,tPR,osc,JFn,rFx,Hgn,wbX,bgU,TR,KzY,j$3,b8,lXZ,cFn,FzZ,gsX,eK9,uXL,zKL,Nfc,RKd,Xb9,AFn,YkX,WzL,Skx,OgF,l8,xkx,MPd,GR,hKZ,ev,UkZ,V$Y,DMZ,nNF,fTx,t$L,Pg3,oNU,JDR,Kv3,Zpx,lTY,jzn,QzZ,Hpc,ecY,Fv3,BTx,dMx,mMc,EN3,aTF,v8,YO3,ipZ,SOF,pNx,xMR,UMd,fUL,nq9,tTd,PG3,wT3,oqZ,KjU,yix,jiR,B8,GG3,eyY,ciR,FjY,gqn,vqx,kG9,BH9,dm9,mI,u6X,NHY,zyZ,Rb,mmR,CGL,AiZ,Xw,aU9,Y7U,$mZ,Wjn,pT9,i8R,IUd,hyc,Um3,VNn,i8,D7U,PT3,o1Y,Ib,H$9,Ju3,ruU,QH9,b$Y,K69,yuc,Gg9,F69,cu3,
e4d,g1Z,kgL,sH9,m7Y,BAR,z4d,CTd,R4U,YyU,SyZ,pk9,IpY,h4Y,PiZ,J_F,r_Y,Tlc,KSZ,uC,AR,eYU,vGR,gGZ,scY,BlZ,uk9,dQn,Nl9,mQX,a4,lH9,c_n,kwd,FSF,XQ,CiL,qj9,XEL,EGY,A_Z,aBX,Yjn,$Q3,M1,ind,hR,SjR,WSY,pEY,LSZ,DH,IBU,MhY,UQU,Vq9,Jb3,HNn,wy9,Qa3,bNR,K4c,Qc,ZNR,jaZ,lAx,Gz9,eNx,cbn,g9c,kzc,Box,dW9,Cyn,zNL,qDX,AbX,aAd,lR,YDn,$WZ,iN3,pyx,IA9,L4n,xWU,hNx,FC,Va3,DHx,UW9,f73,R2d,qpY,E09,XY9,AVL,CH9,a7x,Ypd,$Hx,ifY,SpY,WCZ,pYn,LCd,I7F,Mad,xH9,h2X,VtU,UH9,gg,DTF,ttd,rTY,f8Y,QIX,T0R,b9F,KJ3,gBZ,vBF,sI9,B0Y,XC,mTY,qCZ,ATn,
El,i93,$TL,SCR,Yy,WJX,pcZ,LJ9,O9Y,xTZ,MtZ,hPY,VzX,DPZ,Qjn,J6Z,H_R,b_Y,TWF,K5R,y6n,jj3,GIY,c6n,gcx,R_9,X59,A6Y,aDR,YgY,$PZ,i_L,W5Z,p5d,O_Z,xPF,Mzc,h_3,UPn,V23,DdX,f$Z,PVd,H1Y,Vu,Dx,fR,nR,wX9,JP,TCZ,c5n,BCZ,kbx,SYd,Wp3,pXZ,Kpc,erZ,jC9,I$d,O1c,xd9,gmF,hrF,VH3,f69,PzX,oLY,co,vo,k7,btX,TMY,jKZ,l6Y,BMn,uAx,mCU,zgF,q63,EL9,XOL,Y6F,it3,xC3,I6n,W9n,OtU,pOU,MHn,D0Z,Y7,w$L,JfL,Thc,bEZ,yfx,ZEZ,id,jxX,eFR,FmX,g$X,knZ,v$9,pR,m09,hP,RF9,C2Z,Vg,q_F,X$F,E$9,AfX,agF,Y_Z,$0L,iEY,S_n,WmX,p$R,Lm9,IgZ,OEZ,x0Y,Dv,Mn9,hFY,
U0n,VOZ,DF3,fQ9,nEd,tOn,PMY,oEc,J$R,r$3,nI,wg9,TDZ,Kc9,j03,ejd,c$x,FcL,vE9,s0Z,BDY,dFY,Qg,RjR,mFZ,CM3,q8Y,Xg9,aQX,Y8F,$FF,S8U,gI,pgY,ct,IQZ,OC9,vt,xF3,MOU,hjx,UF9,sr,nd9,P13,wdZ,Ha3,T5Y,baX,RU,K1R,y8d,j1c,GCF,e7L,F1d,gdx,lwn,kC3,s1Z,mhd,q9Z,XdF,CI,Edc,A8R,S9L,awX,$h9,iaZ,xhL,pdd,MGX,UhY,D63,fSZ,nDY,tZ9,Pq9,oDL,rtR,HvZ,wGZ,QDX,TbU,KyZ,Zv9,G1X,gD3,sDc,d6Z,m6d,$u,zkR,Rkn,Cq9,qQY,XGR,At9,aS9,YQY,$69,ivZ,SQ9,WyY,pGZ,Lyc,ISF,OvY,MZZ,x6d,VcZ,fOF,Wt,n5Y,o5d,P9R,Hzc,w_9,QpR,Ttc,y7c,lO9,jpc,KsL,c7Z,eVR,spR,
Fs9,hA,v5U,RVX,ueY,Nt9,mJL,zVU,C93,X_X,qtL,Ur,Va,St9,A73,izX,$Jc,aOZ,YtZ,Ls9,Ozc,McY,xJL,DzZ,V4U,t49,PIY,J0Y,r0F,o2Y,H53,QuY,wv9,b5x,Z5Y,rs,juX,lhZ,c0L,suY,znx,ws,CIn,A0Y,i59,$zF,ahF,YSL,ya,LNY,SS9,WNR,IhX,xzZ,O5x,Uz3,Vfc,fEX,nXY,tfU,Prc,oX9,rdZ,HFn,ds,Q_Z,N3,TJL,ZFx,j_R,Cm,lEL,eEU,upF,a5,vXY,dOY,kid,s_F,REc,CrL,zEL,q$F,Xp9,Y$Y,EX9,$On,iFR,$t,WZ9,ppX,LZL,S$9,Wr,IE9,iS,hEX,PjR,ohL,JsY,rsd,HQd,wiF,KeY,TiF,bQU,Qvc,ZQx,G9d,Fe3,ghn,k9c,dI3,svF,BiZ,uj3,mIL,zTY,RT9,CjF,qHZ,Xic,AsR,Um,YHU,SHU,iQF,pin,WeZ,
LeR,IPF,OQY,V6,MUU,rMZ,o3L,QJd,Trd,l4Y,GXR,e8d,cMZ,Fo3,g3R,sJ9,Br9,dB9,uGL,z8F,R8Y,CsY,qU3,XKF,E3x,AM3,a4Y,YUY,$Bc,SUY,Wo9,pKZ,I4X,xB9,VS9,UBL,h89,MmY,tSF,fuF,oI3,r3n,HkY,wfF,le,QdX,T1n,bkc,jd3,KTU,luZ,y3Z,GrZ,Fh,euF,c39,FTx,ZkL,gIF,dEF,N1L,so,mEd,Rux,zu3,COY,qId,XfX,EId,A3Y,YIZ,$Ex,ikn,SIn,LTL,pfY,hud,WT9,dk,UEd,IuY,MS9,fyR,tyF,HbX,JKY,rKZ,oPY,PtX,qa,w3U,TLd,bbn,KrL,yKY,Zb9,cK9,lyF,jAX,GcY,zw9,NLx,ewx,u$Z,ayn,YhU,$vZ,ibR,ShR,Wr9,p39,LrZ,xvR,hwd,V3Y,f_3,nSZ,t3Y,rS9,JSZ,H2Z,QsX,fX,KhF,yS9,Z2d,jsn,
tY,PW,eaR,gSd,uf9,RaX,ChZ,q4Z,XMc,ESY,AS3,Y4Y,i29,$u9,S4Y,pM3,Lhx,I_d,O2x,xuU,M33,wa,had,PQZ,onZ,fqd,DxX,tuZ,nnZ,KOn,QwU,bf,ygd,Zux,jwY,lqx,GHx,esY,FOx,vn9,swU,dxU,NGd,CQY,qKd,X4n,aqF,AgY,EnF,YKY,$x9,SKY,WO9,p4c,LOR,Gv,OuZ,xxY,MuY,UxY,hsd,V7X,ffR,PA9,oY9,JoZ,roZ,H0c,TnU,b03,wxn,Qr9,eZx,con,gYn,vYY,kZY,srF,BnF,dgd,mg9,zZY,q3n,EYZ,Xxx,Aox,zv,afx,Y3Y,$gY,i0L,LBR,pxU,xgn,M7x,V0R,f2Y,ng9,t0X,PuY,ogF,JyU,ryY,HSY,wZY,QEd,bSX,TYc,Kt3,yy3,ZSL,jEx,l2Y,Go9,emX,Ft9,ggZ,cyn,a7,koZ,sEn,BYU,dnX,NYF,zmZ,RmY,Cud,
qAx,XZ3,EgL,a2F,YAZ,iSc,WtZ,Ltd,M0Z,OSd,I2n,xnY,hmX,Un9,VrX,nUd,trY,PZ9,oUY,JwU,rwY,HKc,QgU,waX,TB3,bKn,K2R,ywX,jg9,lj9,GQL,eMZ,cwn,F2n,gUZ,vUZ,sgd,BBx,dSx,u8L,mSU,zMF,RML,XaX,EUX,CZ9,qaR,YaR,$SY,iKR,pa9,L29,nL,hMU,US9,Dyc,tg9,nO9,Po9,oO3,tE,om,rWX,HMx,HC,w3,bMZ,wmZ,QLc,ZMY,eH9,FbL,gOY,vOF,kDU,sLL,dyU,urY,NzZ,my9,zHc,RHc,Coc,Zr,qTX,Xmx,ln,EO9,AW9,aa3,YTR,$yX,iM3,cC,FW,STZ,Wb9,g3,pm9,Lbd,IaF,OMY,Mg9,hHX,VXF,P0x,tXR,nWF,oWF,J1n,bdY,whR,QyR,Hd3,TpL,kV,ZdZ,jyL,loY,GhU,ezd,FxZ,vWZ,Bpx,mb9,uyU,s1,dbX,XhX,
A1Z,aoR,YxZ,$bn,idx,Wx9,phx,LxU,IoL,xbY,MXX,hzY,Vw9,DDn,n69,tw9,HeR,QZ9,wQZ,beZ,lVd,GfR,eWd,cG9,g6R,sZ3,zS,B69,dDL,uUU,N6d,zWZ,RWZ,C5Z,qJF,E6c,aV9,YJL,$DZ,Rm,ieU,SJn,LuZ,IVd,CL,qR,Mw9,OeU,ViL,hWL,DKY,AE,n_Y,tiX,JpR,HBd,am,QfZ,T$L,bB3,Knx,ypL,ZBY,jfd,epn,v_Z,kpU,dKL,sfF,B$3,uiY,RpR,N$d,zpc,CwR,qVn,XsU,aGZ,YVX,$KF,iBX,SVZ,xKZ,OB9,fzY,PDU,xV,oQF,u1Z,Jm3,rm9,w0L,bsx,KdF,cmL,Fdn,gQd,vQY,kx9,B8U,d$X,N8n,zbZ,unR,m$X,CDZ,Rb3,Amx,X0x,azY,Yvx,$$F,isn,Svn,p0L,Wdc,x$n,U$R,MxX,VV9,DjF,fKU,tx,nZ9,tV9,oN,oZ9,PxX,
JjF,rjY,wPZ,QS3,bPX,KVY,yjY,ZPY,jSn,e1Y,gZZ,sSd,kB9,B9L,djZ,mjx,$jn,qM9,SMX,WVZ,LV9,IKF,h13,DfX,nkZ,t89,PcZ,JC9,rCX,HrY,wzZ,Q6X,T7L,br9,yC9,lmR,G89,eQY,cCX,FPn,gk9,vkd,B7L,s6F,mfX,zQX,RQR,Cc9,qfX,Ekx,Xz9,amZ,WPY,M8d,Or3,hQ3,Ufn,VIY,fi3,gK,tIx,BV,oM9,rJL,HD9,KFZ,ZD9,eoZ,FFU,gM3,kAZ,snY,BVR,uZL,mpY,zoR,Cp9,EM9,XeY,qLd,z3,ai9,AJc,YLY,$p3,iDX,SLY,WFX,peR,LFU,OD3,xpd,MI3,hoL,Upn,VFX,D5R,fcx,nzL,PlL,oz9,K_F,yX9,Z7R,lcZ,GEF,e3Z,gz9,Yv,ug9,NyZ,m5Y,z3x,R3L,$v,iY,pJ,S9,pY,$5Z,pUY,Icc,L_U,LY,O7Z,x5Z,SW9;
_.VY=function(V,D){if(Error.captureStackTrace)Error.captureStackTrace(this,_.VY);else{var f=Error().stack;f&&(this.stack=f)}V&&(this.message=String(V));D!==void 0&&(this.cause=D)};
DZ=function(){throw Error("B");};
VRY=function(V,D){D=String.fromCharCode.apply(null,D);return V==null?D:V+D};
tRL=function(V){var D=!1;D=D===void 0?!1:D;if(DUc){if(D&&(fZL?!V.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(V)))throw Error("C");V=(nFX||(nFX=new TextEncoder)).encode(V)}else{for(var f=0,n=new Uint8Array(3*V.length),t=0;t<V.length;t++){var J=V.charCodeAt(t);if(J<128)n[f++]=J;else{if(J<2048)n[f++]=J>>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&t<V.length){var H=V.charCodeAt(++t);if(H>=56320&&H<=57343){J=(J-55296)*1024+H-56320+65536;n[f++]=J>>18|
240;n[f++]=J>>12&63|128;n[f++]=J>>6&63|128;n[f++]=J&63|128;continue}else t--}if(D)throw Error("C");J=65533}n[f++]=J>>12|224;n[f++]=J>>6&63|128}n[f++]=J&63|128}}V=f===n.length?n:n.subarray(0,f)}return V};
nx=function(V){_.fx.setTimeout(function(){throw V;},0)};
_.tc=function(V,D){return V.lastIndexOf(D,0)==0};
Jc=function(V,D){var f=V.length-D.length;return f>=0&&V.indexOf(D,f)==f};
_.Hn=function(V){return/^[\s\xa0]*$/.test(V)};
_.QY=function(V,D){return V.indexOf(D)!=-1};
_.TL=function(V,D){return _.QY(V.toLowerCase(),D.toLowerCase())};
_.yY=function(V,D){var f=0;V=b3(String(V)).split(".");D=b3(String(D)).split(".");for(var n=Math.max(V.length,D.length),t=0;f==0&&t<n;t++){var J=V[t]||"",H=D[t]||"";do{J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];H=/(\d*)(\D*)(.*)/.exec(H)||["","","",""];if(J[0].length==0&&H[0].length==0)break;f=P3Z(J[1].length==0?0:parseInt(J[1],10),H[1].length==0?0:parseInt(H[1],10))||P3Z(J[2].length==0,H[2].length==0)||P3Z(J[2],H[2]);J=J[3];H=H[3]}while(f==0)}return f};
P3Z=function(V,D){return V<D?-1:V>D?1:0};
_.jR=function(){var V=_.fx.navigator;return V&&(V=V.userAgent)?V:""};
cn=function(V){if(!l3||!GL)return!1;for(var D=0;D<GL.brands.length;D++){var f=GL.brands[D].brand;if(f&&_.QY(f,V))return!0}return!1};
gZ=function(V){return _.QY(_.jR(),V)};
vn=function(){return l3?!!GL&&GL.brands.length>0:!1};
kF=function(){return vn()?!1:gZ("Opera")};
oFn=function(){return vn()?!1:gZ("Trident")||gZ("MSIE")};
JcL=function(){return vn()?cn("Microsoft Edge"):gZ("Edg/")};
dZ=function(){return gZ("Firefox")||gZ("FxiOS")};
_.zL=function(){return gZ("Safari")&&!(_.mX()||(vn()?0:gZ("Coast"))||kF()||(vn()?0:gZ("Edge"))||JcL()||(vn()?cn("Opera"):gZ("OPR"))||dZ()||gZ("Silk")||gZ("Android"))};
_.mX=function(){return vn()?cn("Chromium"):(gZ("Chrome")||gZ("CriOS"))&&!(vn()?0:gZ("Edge"))||gZ("Silk")};
_.rcF=function(){return gZ("Android")&&!(_.mX()||dZ()||kF()||gZ("Silk"))};
HxZ=function(V){var D={};V.forEach(function(f){D[f[0]]=f[1]});
return function(f){return D[f.find(function(n){return n in D})]||""}};
wnF=function(V){var D=_.jR();if(V==="Internet Explorer"){if(oFn())if((V=/rv: *([\d\.]*)/.exec(D))&&V[1])D=V[1];else{V="";var f=/MSIE +([\d\.]+)/.exec(D);if(f&&f[1])if(D=/Trident\/(\d.\d)/.exec(D),f[1]=="7.0")if(D&&D[1])switch(D[1]){case "4.0":V="8.0";break;case "5.0":V="9.0";break;case "6.0":V="10.0";break;case "7.0":V="11.0"}else V="7.0";else V=f[1];D=V}else D="";return D}var n=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");f=[];for(var t;t=n.exec(D);)f.push([t[1],t[2],t[3]||void 0]);
D=HxZ(f);switch(V){case "Opera":if(kF())return D(["Version","Opera"]);if(vn()?cn("Opera"):gZ("OPR"))return D(["OPR"]);break;case "Microsoft Edge":if(vn()?0:gZ("Edge"))return D(["Edge"]);if(JcL())return D(["Edg"]);break;case "Chromium":if(_.mX())return D(["Chrome","CriOS","HeadlessChrome"])}return V==="Firefox"&&dZ()||V==="Safari"&&_.zL()||V==="Android Browser"&&_.rcF()||V==="Silk"&&gZ("Silk")?(D=f[2])&&D[1]||"":""};
_.QY9=function(V){if(vn()&&V!=="Silk"){var D=GL.brands.find(function(f){return f.brand===V});
if(!D||!D.version)return NaN;D=D.version.split(".")}else{D=wnF(V);if(D==="")return NaN;D=D.split(".")}return D.length===0?NaN:Number(D[0])};
RY=function(){return l3?!!GL&&!!GL.platform:!1};
_.TZY=function(){return RY()?GL.platform==="Android":gZ("Android")};
bxX=function(){return gZ("iPhone")&&!gZ("iPod")&&!gZ("iPad")};
_.Cx=function(){return bxX()||gZ("iPad")||gZ("iPod")};
_.KXn=function(){return RY()?GL.platform==="macOS":gZ("Macintosh")};
_.ycF=function(){return RY()?GL.platform==="Windows":gZ("Windows")};
_.ZxY=function(){return RY()?GL.platform==="Chrome OS":gZ("CrOS")};
_.X9=function(V){return V[V.length-1]};
_.Ac=function(V,D,f){D=_.jYZ(V,D,f);return D<0?null:typeof V==="string"?V.charAt(D):V[D]};
_.jYZ=function(V,D,f){for(var n=V.length,t=typeof V==="string"?V.split(""):V,J=0;J<n;J++)if(J in t&&D.call(f,t[J],J,V))return J;return-1};
lZc=function(V){for(var D=_.YF,f=typeof V==="string"?V.split(""):V,n=V.length-1;n>=0;n--)if(n in f&&D.call(void 0,f[n],n,V))return n;return-1};
_.i3=function(V,D){return _.$F(V,D)>=0};
_.px=function(V,D){_.i3(V,D)||V.push(D)};
_.IY=function(V,D){D=_.$F(V,D);var f;(f=D>=0)&&_.Lx(V,D);return f};
_.Lx=function(V,D){Array.prototype.splice.call(V,D,1)};
_.Od=function(V){var D=V.length;if(D>0){for(var f=Array(D),n=0;n<D;n++)f[n]=V[n];return f}return[]};
_.hc=function(V,D){for(var f=1;f<arguments.length;f++){var n=arguments[f];if(_.MU(n)){var t=V.length||0,J=n.length||0;V.length=t+J;for(var H=0;H<J;H++)V[t+H]=n[H]}else V.push(n)}};
_.e9x=function(V,D,f,n){Array.prototype.splice.apply(V,GLx(arguments,1))};
GLx=function(V,D,f){return arguments.length<=2?Array.prototype.slice.call(V,D):Array.prototype.slice.call(V,D,f)};
no=function(V,D){D=D||V;for(var f=0,n=0,t={};n<V.length;){var J=V[n++],H=_.VV(J)?"o"+_.fo(J):(typeof J).charAt(0)+J;Object.prototype.hasOwnProperty.call(t,H)||(t[H]=!0,D[f++]=J)}D.length=f};
_.ccn=function(V,D,f){f=f||_.tr;for(var n=0,t=V.length,J;n<t;){var H=n+(t-n>>>1);var Q=f(D,V[H]);Q>0?n=H+1:(t=H,J=!Q)}return J?n:-n-1};
_.PH=function(V,D,f){if(!_.MU(V)||!_.MU(D)||V.length!=D.length)return!1;var n=V.length;f=f||FXF;for(var t=0;t<n;t++)if(!f(V[t],D[t]))return!1;return!0};
_.tr=function(V,D){return V>D?1:V<D?-1:0};
FXF=function(V,D){return V===D};
gFZ=function(V,D,f){D=Array.prototype.splice.call(V,D,1);Array.prototype.splice.call(V,f,0,D[0])};
kLY=function(V){return vF9[V]||""};
dUZ=function(V){if(!sYR)return _.rP(V);V=BZ9.test(V)?V.replace(BZ9,kLY):V;V=atob(V);for(var D=new Uint8Array(V.length),f=0;f<V.length;f++)D[f]=V.charCodeAt(f);return D};
u9R=function(V,D){V.__closure__error__context__984382||(V.__closure__error__context__984382={});V.__closure__error__context__984382.severity=D};
_.TU=function(V){V=Error(V);u9R(V,"warning");return V};
ZF=function(V,D){if(V!=null){var f;var n=(f=NZc)!=null?f:NZc={};f=n[V]||0;f>=D||(n[V]=f+1,V=Error(),u9R(V,"incident"),nx(V))}};
l6=function(V,D,f){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(f===void 0?0:f)&&Symbol.for&&V?Symbol.for(V):V!=null?Symbol(V):Symbol():D};
FF=function(V,D){GU||_.eE in V||mUd(V,z99);V[_.eE]|=D};
vH=function(V,D){GU||_.eE in V||mUd(V,z99);V[_.eE]=D};
R9x=function(V){if(4&V)return 512&V?512:1024&V?1024:0};
kp=function(V){FF(V,34);return V};
C3Z=function(V){FF(V,32);return V};
su=function(){return typeof BigInt==="function"};
NL=function(V,D){return D===void 0?V.copyOnWrite!==u6&&!!(2&(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.eE]|0)):!!(2&D)&&V.copyOnWrite!==u6};
_.qL=function(V,D){if(V!=null)if(typeof V==="string")V=V?new zU(V,Rl):_.Co();else if(V.constructor!==zU)if(qdY&&V!=null&&V instanceof Uint8Array)V=V.length?new zU(new Uint8Array(V),Rl):_.Co();else{if(!D)throw Error();V=void 0}return V};
XF=function(V,D){if(typeof D!=="number"||D<0||D>=V.length)throw Error();};
XnY=function(V,D,f){var n=D&128?0:-1,t=V.length,J;if(J=!!t)J=V[t-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var H=t+(J?-1:0);for(D=D&128?1:0;D<H;D++)f(D-n,V[D]);if(J){V=V[t-1];for(var Q in V)!isNaN(Q)&&f(+Q,V[Q])}};
Yp=function(V){return V&128?Ar:void 0};
i6=function(V){V.isGuard_doNotManuallySetPrettyPlease=!0;return V};
Acn=function(){var V=EFL;return i6(function(D){for(var f in V)if(D===V[f]&&!/^[0-9]+$/.test(f))return!0;return!1})};
_.Lo=function(V){var D=V;if(aZ3(D)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(D))throw Error(String(D));}else if(Ydd(D)&&!Number.isSafeInteger(D))throw Error(String(D));return po?BigInt(V):V=$U9(V)?V?"1":"0":aZ3(V)?V.trim()||"0":String(V)};
ixZ=function(V,D){if(V.length>D.length)return!1;if(V.length<D.length||V===D)return!0;for(var f=0;f<V.length;f++){var n=V[f],t=D[f];if(n>t)return!1;if(n<t)return!0}};
SdZ=function(V){var D=V>>>0;Ou=D;xp=(V-D)/4294967296>>>0};
ML=function(V){if(V<0){SdZ(-V);var D=_.r(WX9(Ou,xp));V=D.next().value;D=D.next().value;Ou=V>>>0;xp=D>>>0}else SdZ(V)};
pn3=function(V,D){var f=D*4294967296+(V>>>0);return Number.isSafeInteger(f)?f:_.hr(V,D)};
Uu=function(V,D){var f=D&2147483648;f&&(V=~V+1>>>0,D=~D>>>0,V==0&&(D=D+1>>>0));V=pn3(V,D);return typeof V==="number"?f?-V:V:f?"-"+V:V};
_.hr=function(V,D){D>>>=0;V>>>=0;if(D<=2097151)var f=""+(4294967296*D+V);else su()?f=""+(BigInt(D)<<BigInt(32)|BigInt(V)):(f=(V>>>24|D<<8)&16777215,D=D>>16&65535,V=(V&16777215)+f*6777216+D*6710656,f+=D*8147497,D*=2,V>=1E7&&(f+=V/1E7>>>0,V%=1E7),f>=1E7&&(D+=f/1E7>>>0,f%=1E7),f=D+LXZ(f)+LXZ(V));return f};
LXZ=function(V){V=String(V);return"0000000".slice(V.length)+V};
_.DR=function(V,D){D&2147483648?su()?V=""+(BigInt(D|0)<<BigInt(32)|BigInt(V>>>0)):(D=_.r(WX9(V,D)),V=D.next().value,D=D.next().value,V="-"+_.hr(V,D)):V=_.hr(V,D);return V};
fw=function(V){if(V.length<16)ML(Number(V));else if(su())V=BigInt(V),Ou=Number(V&BigInt(4294967295))>>>0,xp=Number(V>>BigInt(32)&BigInt(4294967295));else{var D=+(V[0]==="-");xp=Ou=0;for(var f=V.length,n=D,t=(f-D)%6+D;t<=f;n=t,t+=6)n=Number(V.slice(n,t)),xp*=1E6,Ou=Ou*1E6+n,Ou>=4294967296&&(xp+=Math.trunc(Ou/4294967296),xp>>>=0,Ou>>>=0);D&&(D=_.r(WX9(Ou,xp)),V=D.next().value,D=D.next().value,Ou=V,xp=D)}};
WX9=function(V,D){D=~D;V?V=~V+1:D+=1;return[V,D]};
tZ=function(V){return Array.prototype.slice.call(V)};
_.JZ=function(V,D){throw Error(D===void 0?"unexpected value "+V+"!":D);};
_.rR=function(V){if(V!=null&&typeof V!=="number")throw Error("I`"+typeof V+"`"+V);return V};
_.HB=function(V){if(V==null||typeof V==="number")return V;if(V==="NaN"||V==="Infinity"||V==="-Infinity")return Number(V)};
IZL=function(V){if(V!=null&&typeof V!=="boolean")throw Error("J`"+_.wR(V)+"`"+V);return V};
_.OxL=function(V){if(V==null||typeof V==="boolean")return V;if(typeof V==="number")return!!V};
_.jW=function(V){switch(typeof V){case "bigint":return!0;case "number":return bX(V);case "string":return xUY.test(V);default:return!1}};
_.lX=function(V){if(!bX(V))throw _.TU("enum");return V|0};
_.eW=function(V){return V==null?V:bX(V)?V|0:void 0};
MRx=function(V){if(typeof V!=="number")throw _.TU("int32");if(!bX(V))throw _.TU("int32");return V|0};
_.gR=function(V){return V==null?V:MRx(V)};
_.vB=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return bX(V)?V|0:void 0};
_.sc=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return bX(V)?V>>>0:void 0};
DLL=function(V){var D=0;D=D===void 0?0:D;if(!_.jW(V))throw _.TU("int64");var f=typeof V;switch(D){case 512:switch(f){case "string":return BB(V);case "bigint":return String(dR(64,V));default:return h9F(V)}case 1024:switch(f){case "string":return UUL(V);case "bigint":return _.Lo(dR(64,V));default:return VEF(V)}case 0:switch(f){case "string":return BB(V);case "bigint":return _.Lo(dR(64,V));default:return m3(V)}default:return _.JZ(D,"Unknown format requested type for int64")}};
zJ=function(V){return V==null?V:DLL(V)};
fFU=function(V){if(V[0]==="-")return!1;var D=V.length;return D<20?!0:D===20&&Number(V.substring(0,6))<184467};
npF=function(V){var D=V.length;return V[0]==="-"?D<20?!0:D===20&&Number(V.substring(0,7))>-922337:D<19?!0:D===19&&Number(V.substring(0,6))<922337};
tE3=function(V){if(V<0){ML(V);var D=_.hr(Ou,xp);V=Number(D);return Rq(V)?V:D}D=String(V);if(fFU(D))return D;ML(V);return pn3(Ou,xp)};
P6X=function(V){if(npF(V))return V;fw(V);return _.DR(Ou,xp)};
opR=function(V){if(fFU(V))return V;fw(V);return _.hr(Ou,xp)};
m3=function(V){V=Cw(V);Rq(V)||(ML(V),V=Uu(Ou,xp));return V};
_.Jrd=function(V){V=Cw(V);return V>=0&&Rq(V)?V:tE3(V)};
h9F=function(V){V=Cw(V);if(Rq(V))V=String(V);else{var D=String(V);npF(D)?V=D:(ML(V),V=_.DR(Ou,xp))}return V};
_.rrn=function(V){V=Cw(V);if(V>=0&&Rq(V))V=String(V);else{var D=String(V);fFU(D)?V=D:(ML(V),V=_.hr(Ou,xp))}return V};
BB=function(V){var D=Cw(Number(V));if(Rq(D))return String(D);D=V.indexOf(".");D!==-1&&(V=V.substring(0,D));return P6X(V)};
UUL=function(V){var D=Cw(Number(V));if(Rq(D))return _.Lo(D);D=V.indexOf(".");D!==-1&&(V=V.substring(0,D));return su()?_.Lo(dR(64,BigInt(V))):_.Lo(P6X(V))};
VEF=function(V){return Rq(V)?_.Lo(m3(V)):_.Lo(h9F(V))};
_.HoX=function(V){return Rq(V)?_.Lo(_.Jrd(V)):_.Lo(_.rrn(V))};
_.wHY=function(V){var D=Cw(Number(V));if(Rq(D)&&D>=0)return String(D);D=V.indexOf(".");D!==-1&&(V=V.substring(0,D));return opR(V)};
_.Qld=function(V){var D=Cw(Number(V));if(Rq(D)&&D>=0)return _.Lo(D);D=V.indexOf(".");D!==-1&&(V=V.substring(0,D));return su()?_.Lo((0,_.qo)(64,BigInt(V))):_.Lo(opR(V))};
_.TPR=function(V){if(V==null)return V;if(typeof V==="bigint")return XV(V)?V=Number(V):(V=dR(64,V),V=XV(V)?Number(V):String(V)),V;if(_.jW(V))return typeof V==="number"?m3(V):BB(V)};
bo9=function(V,D){D=D===void 0?!1:D;var f=typeof V;if(V==null)return V;if(f==="bigint")return String(dR(64,V));if(_.jW(V))return f==="string"?BB(V):D?h9F(V):m3(V)};
_.KY3=function(V){var D=typeof V;if(V==null)return V;if(D==="bigint")return _.Lo(dR(64,V));if(_.jW(V))return D==="string"?UUL(V):VEF(V)};
yr9=function(V){if(V==null)return V;var D=typeof V;if(D==="bigint")return String(dR(64,V));if(_.jW(V)){if(D==="string")return BB(V);if(D==="number")return m3(V)}};
Zo9=function(V){if(V==null)return V;var D=typeof V;if(D==="bigint")return String((0,_.qo)(64,V));if(_.jW(V)){if(D==="string")return _.wHY(V);if(D==="number")return _.Jrd(V)}};
_.Ec=function(V){if(typeof V!=="string")throw Error();return V};
aq=function(V){if(V!=null&&typeof V!=="string")throw Error();return V};
_.Yf=function(V){return V==null||typeof V==="string"?V:void 0};
jlx=function(V,D,f,n){if(V!=null&&V[$f]===iX)return V;if(!Array.isArray(V))return f?n&2?((V=D[SW])||(V=new D,kp(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),V=D[SW]=V),D=V):D=new D:D=void 0,D;f=V[_.eE]|0;n=f|n&32|n&2;n!==f&&vH(V,n);return new D(V)};
lFY=function(V,D,f){V=D?MRx(V):_.vB(V);return V==null?f?0:void 0:V|0};
GUZ=function(V){return V};
elY=function(V){return V};
FYY=function(V,D,f,n,t,J){V=jlx(V,n,f,J);t&&(V=cr9(V));return V};
gpd=function(V){return[V,this.get(V)]};
slF=function(){return vpY||(vpY=new WB(kp([]),void 0,void 0,void 0,kUc))};
Iq=function(V){var D=pw(Lw);return D?V[D]:void 0};
uFF=function(V,D){var f=f===void 0?!1:f;if(pw(BPX)&&pw(Lw)&&void 0===BPX){var n=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=n[Lw];if(!t)return;if(t=t.reviveUnknownFields)try{t(n,D,dLc);return}catch(J){nx(J)}}f&&(V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(f=pw(Lw))&&f in V&&(V=V[f])&&delete V[D])};
mLF=function(V,D){var f=pw(Lw),n;GU&&f&&((n=V[f])==null?void 0:n[D])!=null&&ZF(NPF,3)};
Rlc=function(V,D){D<100||ZF(zlZ,1)};
Ep9=function(V,D,f,n){var t=n!==void 0;n=!!n;var J=pw(Lw),H;!t&&GU&&J&&(H=V[J])&&Oc(H,Rlc);J=[];var Q=V.length;H=4294967295;var T=!1,y=!!(D&64),Z=y?D&128?0:-1:void 0;if(!(D&1)){var l=Q&&V[Q-1];l!=null&&typeof l==="object"&&l.constructor===Object?(Q--,H=Q):l=void 0;if(y&&!(D&128)&&!t){T=!0;var G;H=((G=C6R)!=null?G:GUZ)(H-Z,Z,V,l,void 0)+Z}}D=void 0;for(G=0;G<Q;G++){var F=V[G];if(F!=null&&(F=f(F,n))!=null)if(y&&G>=H){var k=G-Z,d=void 0;((d=D)!=null?d:D={})[k]=F}else J[G]=F}if(l)for(var z in l)Q=l[z],
Q!=null&&(Q=f(Q,n))!=null&&(G=+z,F=void 0,y&&!Number.isNaN(G)&&(F=G+Z)<H?J[F]=Q:(G=void 0,((G=D)!=null?G:D={})[z]=Q));D&&(T?J.push(D):J[H]=D);t&&pw(Lw)&&(V=Iq(V))&&V instanceof quY&&(J[Lw]=XHd(V));return J};
ArL=function(V){V[0]=xf(V[0]);V[1]=xf(V[1]);return V};
xf=function(V){switch(typeof V){case "number":return Number.isFinite(V)?V:""+V;case "bigint":return XV(V)?Number(V):""+V;case "boolean":return V?1:0;case "object":if(Array.isArray(V)){var D=V[_.eE]|0;return V.length===0&&D&1?void 0:Ep9(V,D,xf)}if(V!=null&&V[$f]===iX)return aFL(V);if(V instanceof zU){D=V.JSC$6907_value_;if(D==null)V="";else if(typeof D==="string")V=D;else{if(sYR){for(var f="",n=0,t=D.length-10240;n<t;)f+=String.fromCharCode.apply(null,D.subarray(n,n+=10240));f+=String.fromCharCode.apply(null,
n?D.subarray(n):D);D=btoa(f)}else D=_.V3(D);V=V.JSC$6907_value_=D}return V}if(V instanceof WB)return V=V.size!==0?Array.from(D3.prototype.entries.call(V),ArL):void 0,V;return}return V};
n4=function(V,D){if(D){C6R=D==null||D===GUZ||D[Yu9]!==$LY?GUZ:D;try{return aFL(V)}finally{C6R=void 0}}return aFL(V)};
aFL=function(V){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ep9(V,V[_.eE]|0,xf)};
WY9=function(V){switch(typeof V){case "boolean":return io9||(io9=[0,void 0,!0]);case "number":return V>0?void 0:V===0?Su3||(Su3=[0,void 0]):[-V,void 0];case "string":return[0,V];case "object":return V}};
P7=function(V,D,f){return V=_.tn(V,D[0],D[1],f?1:2)};
_.tn=function(V,D,f,n){n=n===void 0?0:n;if(V==null){var t=32;f?(V=[f],t|=128):V=[];D&&(t=t&-8380417|(D&1023)<<13)}else{if(!Array.isArray(V))throw Error("L");t=V[_.eE]|0;if(pHZ&&1&t)throw Error("M");2048&t&&!(2&t)&&LYF();if(t&256)throw Error("N");if(t&64)return n!==0||t&2048||vH(V,t|2048),V;if(f&&(t|=128,f!==V[0]))throw Error("O");a:{f=V;t|=64;var J=f.length;if(J){var H=J-1,Q=f[H];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){D=t&128?0:-1;H-=D;if(H>=1024)throw Error("Q");for(var T in Q)J=
+T,J<H&&(f[J+D]=Q[T],delete Q[T]);t=t&-8380417|(H&1023)<<13;break a}}if(D){T=Math.max(D,J-(t&128?0:-1));if(T>1024)throw Error("R");t=t&-8380417|(T&1023)<<13}}}t|=64;n===0&&(t|=2048);vH(V,t);return V};
LYF=function(){if(pHZ)throw Error("P");ZF(IFd,5)};
MEd=function(V,D){if(typeof V!=="object")return V;if(Array.isArray(V)){var f=V[_.eE]|0;return V.length===0&&f&1?void 0:OoY(V,f,D)}if(V!=null&&V[$f]===iX)return xLx(V);if(V instanceof WB){D=V.arrayState;if(D&2)return V;if(!V.size)return;f=kp(Array.from(D3.prototype.entries.call(V)));if(V.valueCtor)for(V=0;V<f.length;V++){var n=f[V],t=n[1];t==null||typeof t!=="object"?t=void 0:t!=null&&t[$f]===iX?t=xLx(t):Array.isArray(t)?t=OoY(t,t[_.eE]|0,!!(D&32)):t=void 0;n[1]=t}return f}if(V instanceof zU)return V};
OoY=function(V,D,f){if(D&2)return V;!f||4096&D||16&D?V=ok(V,D,!1,f&&!(D&16)):(FF(V,34),D&4&&Object.freeze(V));return V};
Jn=function(V,D,f){V=new V.constructor(D);f&&(V.copyOnWrite=u6);V.noLegacyNull=u6;return V};
xLx=function(V){var D=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=D[_.eE]|0;return NL(V,f)?V:ru(V,D,f)?Jn(V,D):ok(D,f)};
ok=function(V,D,f,n){n!=null||(n=!!(34&D));V=Ep9(V,D,MEd,n);n=32;f&&(n|=2);D=D&8380609|n;vH(V,D);return V};
cr9=function(V){var D=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=D[_.eE]|0;return NL(V,f)?ru(V,D,f)?Jn(V,D,!0):new V.constructor(ok(D,f,!1)):V};
H7=function(V){if(V.copyOnWrite!==u6)return!1;var D=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=ok(D,D[_.eE]|0);FF(D,2048);V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=D;V.copyOnWrite=void 0;V.noLegacyNull=void 0;return!0};
Tj=function(V){if(!H7(V)&&NL(V,V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.eE]|0))throw Error();};
bF=function(V,D){D===void 0&&(D=V[_.eE]|0);D&32&&!(D&4096)&&vH(V,D|4096)};
ru=function(V,D,f){return f&2?!0:f&32&&!(f&4096)?(vH(D,f|2),V.copyOnWrite=u6,!0):!1};
Z3=function(V,D,f,n,t){var J=f+(t?0:-1),H=V.length-1;if(H>=1+(t?0:-1)&&J>=H){var Q=V[H];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object)return Q[f]=n,D}if(J<=H)return V[J]=n,D;if(n!==void 0){var T;H=((T=D)!=null?T:D=V[_.eE]|0)>>13&1023||536870912;f>=H?n!=null&&(J={},V[H+(t?0:-1)]=(J[f]=n,J)):V[J]=n}return D};
_.c7=function(V,D,f,n,t){var J=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=J[_.eE]|0;n=NL(V,H)?1:n;t=!!t||n===3;n===2&&H7(V)&&(J=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=J[_.eE]|0);V=hlc(J,D);var Q=V===Gj?7:V[_.eE]|0,T=ULF(Q,H);var y=4&T?!1:!0;if(y){4&T&&(V=tZ(V),Q=0,T=e_(T,H),H=Z3(J,H,D,V));for(var Z=0,l=0;Z<V.length;Z++){var G=f(V[Z]);G!=null&&(V[l++]=G)}l<Z&&(V.length=l);f=(T|4)&-513;T=f&=-1025;T&=-4097}T!==Q&&(vH(V,T),2&T&&Object.freeze(V));return V=VW3(V,T,J,
H,D,n,y,t)};
VW3=function(V,D,f,n,t,J,H,Q){var T=D;J===1||(J!==4?0:2&D||!(16&D)&&32&n)?Fm(D)||(D|=!V.length||H&&!(4096&D)||32&n&&!(4096&D||16&D)?2:256,D!==T&&vH(V,D),Object.freeze(V)):(J===2&&Fm(D)&&(V=tZ(V),T=0,D=e_(D,n),n=Z3(f,n,t,V)),Fm(D)||(Q||(D|=16),D!==T&&vH(V,D)));2&D||!(4096&D||16&D)||bF(f,n);return V};
hlc=function(V,D,f){V=gu(V,D,f);return Array.isArray(V)?V:Gj};
ULF=function(V,D){2&D&&(V|=2);return V|1};
Fm=function(V){return!!(2&V)&&!!(4&V)||!!(256&V)};
DoF=function(V){return _.qL(V,!0)};
fRF=function(V,D){var f=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=f[_.eE]|0;a:{var t=n;n=NL(V,n);!n&&H7(V)&&(f=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=f[_.eE]|0);var J=gu(f,D);V=!1;if(J==null){if(n){D=slF();break a}J=[]}else if(J.constructor===WB)if(J.arrayState&2&&!n)J=Array.from(D3.prototype.entries.call(J));else{D=J;break a}else Array.isArray(J)?V=!!((J[_.eE]|0)&2):J=[];if(n){if(!J.length){D=slF();break a}V||(V=!0,kp(J))}else if(V){V=!1;n=J;n=tZ(n);for(J=0;J<
n.length;J++){var H=n[J]=tZ(n[J]);Array.isArray(H[1])&&(H[1]=kp(H[1]))}J=n}!V&&t&32&&C3Z(J);n=new WB(J,void 0,lFY,lFY);t=Z3(f,t,D,n);V||bF(f,t);D=n}return D};
_.v7=function(V,D,f,n){Tj(V);var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=t[_.eE]|0;if(f==null)return Z3(t,J,D),V;var H=f===Gj?7:f[_.eE]|0,Q=H,T=Fm(H),y=T||Object.isFrozen(f);T||(H=0);y||(f=tZ(f),Q=0,H=e_(H,J),y=!1);H|=5;var Z;T=(Z=R9x(H))!=null?Z:0;for(Z=0;Z<f.length;Z++){var l=f[Z],G=n(l,T);Object.is(l,G)||(y&&(f=tZ(f),Q=0,H=e_(H,J),y=!1),f[Z]=G)}H!==Q&&(y&&(f=tZ(f),H=e_(H,J)),vH(f,H));Z3(t,J,D,f);return V};
_.kr=function(V,D,f,n,t){Tj(V);var J=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z3(J,J[_.eE]|0,D,(n==="0"?Number(f)===0:f===n)?void 0:f,t);return V};
_.sW=function(V,D,f){if(D&2)throw Error();var n=Yp(D),t=hlc(V,f,n),J=t===Gj?7:t[_.eE]|0,H=ULF(J,D);if(2&H||Fm(H)||16&H)t=tZ(t),J=0,H=e_(H,D),Z3(V,D,f,t,n);H&=-13;H!==J&&vH(t,H);return t};
nf3=function(V){if(GU){var D;return(D=V[B7])!=null?D:V[B7]=new Map}if(B7 in V)return V[B7];D=new Map;Object.defineProperty(V,B7,{value:D});return D};
PXd=function(V,D,f,n,t){var J=nf3(V),H=tWd(J,V,D,f,t);H!==n&&(H&&(D=Z3(V,D,H,void 0,t)),J.set(f,n));return D};
tWd=function(V,D,f,n,t){var J=V.get(n);if(J!=null)return J;for(var H=J=0;H<n.length;H++){var Q=n[H];gu(D,Q,t)!=null&&(J!==0&&(f=Z3(D,f,J,void 0,t)),J=Q)}V.set(n,J);return J};
du=function(V,D,f,n,t){var J=!1;n=gu(V,n,t,function(H){var Q=jlx(H,f,!1,D);J=Q!==H&&Q!=null;return Q});
if(n!=null)return J&&!NL(n)&&bF(V,D),n};
ofX=function(V,D,f,n,t,J,H,Q){var T=NL(V,f);J=T?1:J;H=!!H||J===3;T=Q&&!T;(J===2||T)&&H7(V)&&(D=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=D[_.eE]|0);V=hlc(D,t);var y=V===Gj?7:V[_.eE]|0,Z=ULF(y,f);if(Q=!(4&Z)){var l=V,G=f,F=!!(2&Z);F&&(G|=2);for(var k=!F,d=!0,z=0,C=0;z<l.length;z++){var A=jlx(l[z],n,!1,G);if(A instanceof n){if(!F){var O=NL(A);k&&(k=!O);d&&(d=O)}l[C++]=A}}C<z&&(l.length=C);Z|=4;Z=d?Z&-4097:Z|4096;Z=k?Z|8:Z&-9}Z!==y&&(vH(V,Z),2&Z&&Object.freeze(V));if(T&&!(8&Z||!V.length&&
(J===1||(J!==4?0:2&Z||!(16&Z)&&32&f)))){Fm(Z)&&(V=tZ(V),Z=e_(Z,f),f=Z3(D,f,t,V));n=V;T=Z;for(y=0;y<n.length;y++)l=n[y],Z=cr9(l),l!==Z&&(n[y]=Z);T|=8;Z=T=n.length?T|4096:T&-4097;vH(V,Z)}return V=VW3(V,Z,D,f,t,J,Q,H)};
JZZ=function(V){V==null&&(V=void 0);return V};
e_=function(V,D){return V=(2&D?V|2:V&-3)&-273};
_.rZ9=function(V,D,f,n,t){Tj(V);D=_.c7(V,D,t,2,!0);var J;t=(J=R9x(D===Gj?7:D[_.eE]|0))!=null?J:0;D.push(f(n,t));return V};
HwL=function(V,D,f,n,t,J,H){Tj(V);var Q=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=ofX(V,Q,Q[_.eE]|0,f,D,2,!0);if(J&&H)t!=null||(t=V.length-1),XF(V,t),V.splice(t,J),V.length||(V[_.eE]&=-4097);else{if(J){if(typeof t!=="number"||t<0||t>V.length)throw Error();}else n=n!=null?n:new f;t!=void 0?V.splice(t,J,n):V.push(n);t=f=V===Gj?7:V[_.eE]|0;(n=NL(n))?(f&=-9,V.length===1&&(f&=-4097)):f|=4096;f!==t&&vH(V,f);n||bF(Q)}};
wB3=function(V,D){if(typeof V==="string")return new Ne(dUZ(V),D);if(Array.isArray(V))return new Ne(new Uint8Array(V),D);if(V.constructor===Uint8Array)return new Ne(V,!1);if(V.constructor===ArrayBuffer)return V=new Uint8Array(V),new Ne(V,!1);if(V.constructor===zU)return D=ml(V)||new Uint8Array(0),new Ne(D,!0,V);if(V instanceof Uint8Array)return V=V.constructor===Uint8Array?V:new Uint8Array(V.buffer,V.byteOffset,V.byteLength),new Ne(V,!1);throw Error();};
zj=function(){var V=function(){throw Error();};
Object.setPrototypeOf(V,V.prototype);return V};
TRx=function(V,D){var f=f===void 0?Qq9:f;return new Rk(V,D,f)};
ZwL=function(V,D,f,n,t){D=bwY(D,n);D!=null&&(f=_.K3R(V,f),t(D,V),_.yZ9(V,f))};
qe=function(V,D,f,n){var t=n[V];if(t)return t;t={};t.binaryFields=n;t.messageMetadata=WY9(n[0]);var J=n[1],H=1;J&&J.constructor===Object&&(t.extensions=J,J=n[++H],typeof J==="function"&&(t.isMessageSet=!0,jqn!=null||(jqn=J),lRY!=null||(lRY=n[H+1]),J=n[H+=2]));for(var Q={};J&&Array.isArray(J)&&J.length&&typeof J[0]==="number"&&J[0]>0;){for(var T=0;T<J.length;T++)Q[J[T]]=J;J=n[++H]}for(T=1;J!==void 0;){typeof J==="number"&&(T+=J,J=n[++H]);var y=void 0;if(J instanceof Rk)var Z=J;else Z=GJU,H--;J=void 0;
if((J=Z)==null?0:J.$$isMsg){J=n[++H];y=n;var l=H;typeof J==="function"&&(J=J(),y[l]=J);y=J}J=n[++H];l=T+1;typeof J==="number"&&J<0&&(l-=J,J=n[++H]);for(;T<l;T++){var G=Q[T];y?f(t,T,Z,y,G):D(t,T,Z,G)}}return n[V]=t};
cZX=function(V){return Array.isArray(V)?V[0]instanceof Rk?V:[evx,V]:[V,void 0]};
bwY=function(V,D){if(V instanceof _.Xm)return V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(V))return P7(V,D,!1)};
F3L=function(V,D,f,n){var t=f.$$binaryReaderFn;V[D]=n?function(J,H,Q){return t(J,H,Q,n)}:t};
gfn=function(V,D,f,n,t){var J=f.$$binaryReaderFn,H,Q;V[D]=function(T,y,Z){return J(T,y,Z,Q||(Q=qe(EW,F3L,gfn,n).messageMetadata),H||(H=vfx(n)),t)}};
vfx=function(V){var D=V[kJU];if(D!=null)return D;var f=qe(EW,F3L,gfn,V);D=f.isMessageSet?function(n,t){return jqn(n,t,f)}:function(n,t){for(;sqR(t)&&t.nextWireType_!=4;){var J=t.nextField_,H=f[J];
if(H==null){var Q=f.extensions;Q&&(Q=Q[J])&&(Q=BRU(Q),Q!=null&&(H=f[J]=Q))}if(H==null||!H(t,n,J)){Q=t;H=Q.fieldCursor_;An(Q);if(Q.discardUnknownFields)var T=void 0;else{var y=Q.decoder_.cursor_-H;Q.decoder_.cursor_=H;T=doL(Q.decoder_,y)}y=Q=H=void 0;var Z=n;T&&((H=(Q=(y=Z[Lw])!=null?y:Z[Lw]=new quY)[J])!=null?H:Q[J]=[]).push(T)}}if(n=Iq(n))n.reviveUnknownFields=f.binaryFields[uVZ];return!0};
V[kJU]=D;V[uVZ]=NRZ.bind(V);return D};
NRZ=function(V,D,f,n){var t=this[EW],J=this[kJU],H=P7(void 0,t.messageMetadata,!1),Q=Iq(V);if(Q){var T=!1,y=t.extensions;if(y){t=function(k,d,z){if(z.length!==0)if(y[d])for(k=_.r(z),d=k.next();!d.done;d=k.next()){d=moY(d.value);try{T=!0,J(H,d)}finally{d.free()}}else n==null||n(V,d,z)};
if(D==null)Oc(Q,t);else if(Q!=null){var Z=Q[D];Z&&t(Q,D,Z)}if(T){var l=V[_.eE]|0;if(l&2&&l&2048&&(f==null||!f.reviveIntoImmutable))throw Error();var G=Yp(l),F=function(k,d){if(gu(V,k,G)!=null)switch(f==null?void 0:f.resolutionBehavior){case 1:return;default:throw Error();}d!=null&&(l=Z3(V,l,k,d,G));delete Q[k]};
D==null?XnY(H,H[_.eE]|0,function(k,d){F(k,d)}):F(D,gu(H,D,G))}}}};
BRU=function(V){V=cZX(V);var D=V[0].$$binaryReaderFn;if(V=V[1]){var f=vfx(V),n=qe(EW,F3L,gfn,V).messageMetadata;return function(t,J,H){return D(t,J,H,n,f)}}return D};
ak=function(V,D,f){V[D]=f.$$binaryWriterFn};
$r=function(V,D,f,n){var t,J,H=f.$$binaryWriterFn;V[D]=function(Q,T,y){return H(Q,T,y,J||(J=qe(Yr,ak,$r,n).messageMetadata),t||(t=zvF(n)))}};
zvF=function(V){var D=V[Rvn];if(!D){var f=qe(Yr,ak,$r,V);D=function(n,t){return CX9(n,t,f)};
V[Rvn]=D}return D};
CX9=function(V,D,f){XnY(V,V[_.eE]|0,function(n,t){if(t!=null){var J=qcR(f,n);J?J(D,t,n):n<500||ZF(XBd,3)}});
(V=Iq(V))&&Oc(V,function(n,t,J){iF(D,D.encoder_.end());for(n=0;n<J.length;n++)iF(D,ml(J[n])||new Uint8Array(0))})};
qcR=function(V,D){var f=V[D];if(f)return f;if(f=V.extensions)if(f=f[D]){f=cZX(f);var n=f[0].$$binaryWriterFn;if(f=f[1]){var t=zvF(f),J=qe(Yr,ak,$r,f).messageMetadata;f=V.isMessageSet?lRY(J,t):function(H,Q,T){return n(H,Q,T,J,t)}}else f=n;
return V[D]=f}};
_.Efd=function(V,D,f){if(Array.isArray(D)){var n=D[_.eE]|0;if(n&4)return D;for(var t=0,J=0;t<D.length;t++){var H=V(D[t]);H!=null&&(D[J++]=H)}J<t&&(D.length=J);f&&(vH(D,(n|5)&-1537),n&2&&Object.freeze(D));return D}};
_.S_=function(V,D,f){return new Rk(V,D,f)};
_.AZn=function(V,D,f){return new Rk(V,D,f)};
_.W7=function(V,D,f){Z3(V,V[_.eE]|0,D,f,Yp(V[_.eE]|0))};
aRX=function(V,D,f){D=_.HB(D);D!=null&&(_.L4(V,f,1),V=V.encoder_,f=Ik||(Ik=new DataView(new ArrayBuffer(8))),f.setFloat64(0,+D,!0),Ou=f.getUint32(0,!0),xp=f.getUint32(4,!0),_.OW(V,Ou),_.OW(V,xp))};
_.xr=function(V,D,f){D=yr9(D);if(D!=null){switch(typeof D){case "string":YcZ(D)}if(D!=null)switch(_.L4(V,f,0),typeof D){case "number":V=V.encoder_;ML(D);$ox(V,Ou,xp);break;case "bigint":f=BigInt.asUintN(64,D);f=new iwX(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));$ox(V.encoder_,f.JSC$6951_lo,f.JSC$6951_hi);break;default:f=YcZ(D),$ox(V.encoder_,f.JSC$6951_lo,f.JSC$6951_hi)}}};
W3n=function(V,D,f){D=_.vB(D);D!=null&&D!=null&&(_.L4(V,f,0),_.Scx(V.encoder_,D))};
_.L33=function(V,D,f){pB3(V,f,Zo9(D))};
_.IRZ=function(V,D,f){D=_.OxL(D);D!=null&&(_.L4(V,f,0),V.encoder_.JSC$6953_buffer_.push(D?1:0))};
_.xoX=function(V,D,f){D=_.Yf(D);D!=null&&OwZ(V,f,tRL(D))};
MWd=function(V,D,f,n,t){D=bwY(D,n);D!=null&&(f=_.K3R(V,f),t(D,V),_.yZ9(V,f))};
_.UoU=function(V,D,f){D=D==null||typeof D=="string"||D instanceof zU?D:void 0;D!=null&&OwZ(V,f,wB3(D,!0).buffer)};
_.V_F=function(V,D,f){D=_.vB(D);D!=null&&(D=parseInt(D,10),_.L4(V,f,0),_.Scx(V.encoder_,D))};
_.Me=function(V,D){return function(f,n){var t={treatNewDataAsImmutable:!0};n&&Object.assign(t,n);f=moY(f,void 0,void 0,t);try{var J=new V,H=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vfx(D)(H,f);var Q=J}finally{f.free()}return Q}};
_.hn=function(V){return function(D){return DeL(D,V)}};
f3d=function(V){return function(){return DeL(this,V)}};
_.UW=function(V){return i6(function(D){return D instanceof V&&!NL(D)})};
_.V2=function(V){return function(D){return nrY(V,D)}};
JnX=function(V,D){return t_9({child:V,origin:D||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:PF9,getPayloadCase:function(f){return f.getPayloadCase()},
createInitMessage:function(f){var n=new De,t=new orZ;f=_.fc(t,1,f);return _.nc(n,5,tL,f)}})};
PS=function(V){return{valueOf:V}.valueOf()};
H4x=function(){var V=null;if(!rnd)return V;try{var D=function(f){return f};
V=rnd.createPolicy("goog#html",{createHTML:D,createScript:D,createScriptURL:D})}catch(f){}return V};
QkL=function(){w7Z===void 0&&(w7Z=H4x());return w7Z};
_.rQ=function(V){var D=QkL();V=D?D.createScriptURL(V):V;return new JL(V)};
_.HS=function(V){if(V instanceof JL)return V.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.wQ=function(V){return Object.isFrozen(V)&&Object.isFrozen(V.raw)};
Q2=function(V){return V.toString().indexOf("`")===-1};
bv=function(V){return new _.T6(TuZ,V)};
Kc=function(V){return V instanceof _.T6};
_.y2=function(V){if(Kc(V))return V.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Ze=function(V){return new b4x(function(D){return D.substr(0,V.length+1).toLowerCase()===V+":"})};
G6=function(V,D){D=D===void 0?Klc:D;if(Kc(V))return V;for(var f=0;f<D.length;++f){var n=D[f];if(n instanceof b4x&&n.isValid(V))return bv(V)}};
_.cS=function(V,D){D=D===void 0?Klc:D;return G6(V,D)||eo};
_.Ft=function(V){var D=window;if(typeof MediaSource!=="undefined"&&V instanceof MediaSource||typeof D.ManagedMediaSource!=="undefined"&&V instanceof D.ManagedMediaSource)return bv(URL.createObjectURL(V));D=V.type;D.toLowerCase()==="application/octet-stream"?D=!0:(D=D.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),D=(D==null?void 0:D.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(D[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(D[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(D[1])||/^font\/[\w-]+$/i.test(D[1])));if(!D)throw Error("da");return bv(URL.createObjectURL(V))};
_.vS=function(V){for(var D=_.gQ.apply(1,arguments),f=[V[0]],n=0;n<D.length;n++)f.push(String(D[n])),f.push(V[n+1]);return bv(f.join(""))};
_.Z43=function(V){if(!ynZ){a:{var D=document.createElement("a");try{D.href=V}catch(f){V=void 0;break a}V=D.protocol;V=V===":"||V===""?"https:":V}return V}try{D=new URL(V)}catch(f){return"https:"}return D.protocol};
_.kx=function(V){V instanceof _.T6?V=_.y2(V):V=jk9.test(V)?V:void 0;return V};
se=function(V,D){D=_.kx(D);D!==void 0&&(V.href=D)};
dQ=function(V){var D=QkL();V=D?D.createHTML(V):V;return new BS(V)};
uv=function(V){if(V instanceof BS)return V.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.N8=function(V,D){V.src=_.HS(D).toString()};
l3F=function(V,D){V.setAttribute("sandbox","");for(var f=0;f<D.length;f++)V.sandbox.supports&&!V.sandbox.supports(D[f])||V.sandbox.add(D[f])};
_.z6=function(V,D,f){V.removeAttribute("srcdoc");switch(D){case 0:if(f instanceof JL)throw new mM("TrustedResourceUrl",0);l3F(V,[]);D=_.kx(f);D!==void 0&&(V.src=D);break;case 1:if(!(f instanceof JL))throw new mM(typeof f,1);l3F(V,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.N8(V,f);break;case 2:if(f instanceof JL)throw new mM("TrustedResourceUrl",2);l3F(V,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
D=_.kx(f);D!==void 0&&(V.src=D);break;default:_.JZ(D)}};
_.R3=function(V,D,f,n){D=_.kx(D);return D!==void 0?V.open(D,f,n):null};
_.q8=function(V){V=V===void 0?document:V;var D,f;V=(f=(D=V).querySelector)==null?void 0:f.call(D,"script[nonce]");return V==null?"":V.nonce||V.getAttribute("nonce")||""};
_.Ee=function(V){var D=QkL();V=D?D.createScript(V):V;return new _.Xt(V)};
AL=function(V){if(V instanceof _.Xt)return V.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
GjZ=function(V){var D=_.q8(V.ownerDocument);D&&V.setAttribute("nonce",D)};
_.a3=function(V,D){V.textContent=AL(D);GjZ(V)};
_.Yx=function(V,D){V.src=_.HS(D);GjZ(V)};
_.$x=function(V,D){if(V.nodeType===1&&/^(script|style)$/i.test(V.tagName))throw Error("da");V.innerHTML=uv(D)};
_.iv=function(V,D,f,n){if(V.length===0)throw Error("da");V=V.map(function(J){if(J instanceof eG3)J=J.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return J});
var t=f.toLowerCase();if(V.every(function(J){return t.indexOf(J)!==0}))throw Error("fa`"+f);
D.setAttribute(f,n)};
_.So=function(V,D,f){if(D instanceof JL)V.href=_.HS(D).toString(),V.rel=f;else{if(cnF.indexOf(f)===-1)throw Error("ga`"+f);D=_.kx(D);D!==void 0&&(V.href=D,V.rel=f)}};
Fl3=function(V){return"function"==typeof _.WS&&V instanceof _.WS};
_.grY=function(V){if(Fl3(V))return V.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.pc=function(V,D){D=_.kx(D);D!==void 0&&(V.href=D)};
Lc=function(V,D){V&&(D=V.indexOf(D),0<=D&&V.splice(D,1))};
I3=function(V){return typeof V==="function"};
vrX=function(V){return V instanceof Oe||V&&"closed"in V&&I3(V.remove)&&I3(V.add)&&I3(V.unsubscribe)};
xx=function(){};
M8=function(V){kj9(function(){throw V;})};
hL=function(V){return V};
Ue=function(){return skd(_.gQ.apply(0,arguments))};
skd=function(V){return V.length===0?hL:V.length===1?V[0]:function(D){return V.reduce(function(f,n){return n(f)},D)}};
BuY=function(V){var D;return(D=V!=null?V:void 0)!=null?D:Promise};
de3=function(V,D){return new Vz(function(f){var n=0;return D.schedule(function(){n===V.length?f.complete():(f.next(V[n++]),f.closed||this.schedule())})})};
umx=function(V,D){if(!V)throw Error("ha");return new Vz(function(f){var n=new Oe;n.add(D.schedule(function(){var t=V[Symbol.asyncIterator]();n.add(D.schedule(function(){var J=this;t.next().then(function(H){H.done?f.complete():(f.next(H.value),J.schedule())})}))}));
return n})};
NuY=function(V,D,f){D=D.schedule(function(){try{f.call(this)}catch(n){V.error(n)}},0);
V.add(D)};
meR=function(V,D){return new Vz(function(f){var n;f.add(D.schedule(function(){n=V[DW]();NuY(f,D,function(){var t=n.next(),J=t.value;t.done?f.complete():(f.next(J),this.schedule())})}));
return function(){var t;return I3((t=n)==null?void 0:t.return)&&n.return()}})};
zGn=function(V,D){return new Vz(function(f){var n=new Oe;n.add(D.schedule(function(){var t=V[fW]();n.add(t.subscribe({next:function(J){n.add(D.schedule(function(){return f.next(J)}))},
error:function(J){n.add(D.schedule(function(){return f.error(J)}))},
complete:function(){n.add(D.schedule(function(){return f.complete()}))}}))}));
return n})};
RGR=function(V,D){return new Vz(function(f){return D.schedule(function(){return V.then(function(n){f.add(D.schedule(function(){f.next(n);f.add(D.schedule(function(){return f.complete()}))}))},function(n){f.add(D.schedule(function(){return f.error(n)}))})})})};
CFn=function(V){return new TypeError("ia`"+(V!==null&&typeof V==="object"?"an invalid object":"'"+V+"'"))};
X7X=function(V,D){if(V!=null){if(I3(V[fW]))return zGn(V,D);if(qWR(V))return de3(V,D);if(I3(V==null?void 0:V.then))return RGR(V,D);if(Symbol.asyncIterator&&I3(V==null?void 0:V[Symbol.asyncIterator]))return umx(V,D);if(I3(V==null?void 0:V[DW]))return meR(V,D)}throw CFn(V);};
ta=function(V,D){return D?X7X(V,D):nW(V)};
nW=function(V){if(V instanceof Vz)return V;if(V!=null){if(I3(V[fW]))return Erc(V);if(qWR(V))return AnY(V);if(I3(V==null?void 0:V.then))return a3d(V);if(Symbol.asyncIterator&&I3(V==null?void 0:V[Symbol.asyncIterator]))return YWY(V);if(I3(V==null?void 0:V[DW]))return $eR(V)}throw CFn(V);};
Erc=function(V){return new Vz(function(D){var f=V[fW]();if(I3(f.subscribe))return f.subscribe(D);throw new TypeError("ja");})};
AnY=function(V){return new Vz(function(D){for(var f=0;f<V.length&&!D.closed;f++)D.next(V[f]);D.complete()})};
a3d=function(V){return new Vz(function(D){V.then(function(f){D.closed||(D.next(f),D.complete())},function(f){return D.error(f)}).then(null,M8)})};
$eR=function(V){return new Vz(function(D){for(var f=V[DW]();!D.closed;){var n=f.next(),t=n.value;n.done?D.complete():D.next(t)}return function(){return I3(f==null?void 0:f.return)&&f.return()}})};
YWY=function(V){return new Vz(function(D){i4R(V,D).catch(function(f){return D.error(f)})})};
i4R=function(V,D){var f,n,t,J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:_.wx(T,2,3);var y=V[Symbol.asyncIterator];J=y!==void 0?y.call(V):new SW9(_.r(V));case 5:return _.b(T,J.next(),8);case 8:n=T.yieldResult;if(n.done){T.jumpTo(3);break}H=n.value;D.next(H);T.jumpTo(5);break;case 3:_.Qz(T);_.TO(T,9);if(!n||n.done||!(t=J.return)){T.jumpTo(9);break}return _.b(T,t.call(J),9);case 9:_.Qz(T,0,0,1);if(f)throw f.error;_.bK(T,10,1);break;case 10:_.bK(T,4);break;case 2:Q=_.KW(T);f={error:Q};T.jumpTo(3);
break;case 4:D.complete(),_.yz(T)}})};
ZW=function(V,D){return D?de3(V,D):AnY(V)};
Wlx=function(V){return I3(V[V.length-1])?V.pop():void 0};
j5=function(V){var D=V[V.length-1];return D&&I3(D.schedule)?V.pop():void 0};
lK=function(){var V=_.gQ.apply(0,arguments),D=j5(V);return D?de3(V,D):ZW(V)};
GO=function(V){var D=I3(V)?V:function(){return V};
return new Vz(function(f){return f.error(D())})};
e5=function(V){return function(D){if(I3(D==null?void 0:D.lift))return D.lift(function(f){try{return V(f,this)}catch(n){this.error(n)}});
throw new TypeError("ka");}};
v6=function(){return e5(function(V,D){var f=null;V._refCount++;var n=new gx(D,void 0,void 0,void 0,function(){if(!V||V._refCount<=0||0<--V._refCount)f=null;else{var t=V._connection,J=f;f=null;!t||J&&t!==J||t.unsubscribe();D.unsubscribe()}});
V.subscribe(n);n.closed||(f=V.connect())})};
LlF=function(){var V=p7F;var D=D===void 0?0:D;return e5(function(f,n){n.add(V.schedule(function(){return f.subscribe(n)},D))})};
kj=function(V){return e5(function(D,f){var n=0;D.subscribe(new gx(f,function(t){f.next(V.call(void 0,t,n++))}))})};
O4Y=function(V){return kj(function(D){return I3Z(D)?V.apply(null,_.sz(D)):V(D)})};
VoX=function(V){if(V.length===1){var D=V[0];if(xeZ(D))return{args:D,keys:null};if(D&&typeof D==="object"&&M_d(D)===hGd)return V=UeY(D),{args:V.map(function(f){return D[f]}),
keys:V}}return{args:V,keys:null}};
B6=function(){var V=_.gQ.apply(0,arguments),D=j5(V),f=Wlx(V);V=VoX(V);var n=V.args,t=V.keys;if(n.length===0)return ta([],D);D=new Vz(D8F(n,D,t?function(J){for(var H={},Q=0;Q<J.length;Q++)H[t[Q]]=J[Q];return H}:hL));
return f?D.pipe(O4Y(f)):D};
D8F=function(V,D,f){f=f===void 0?hL:f;return function(n){feL(D,function(){for(var t=V.length,J=Array(t),H=t,Q=V.map(function(){return!1}),T=!0,y={i$jscomp$216:0};y.i$jscomp$216<t;y={i$jscomp$216:y.i$jscomp$216},y.i$jscomp$216++)feL(D,function(Z){return function(){ta(V[Z.i$jscomp$216],D).subscribe(new dx(n,function(l){J[Z.i$jscomp$216]=l;
T&&(Q[Z.i$jscomp$216]=!0,T=!Q.every(hL));T||n.next(f(J.slice()))},function(){return--H===0}))}}(y),n)},n)}};
feL=function(V,D,f){V?f.add(V.schedule(D)):D()};
nxU=function(V,D,f,n){var t=[],J=0,H=0,Q=!1,T=function(y){J++;nW(f(y,H++)).subscribe(new gx(D,function(Z){D.next(Z)},void 0,function(){J--;
for(var Z={};t.length&&J<n;Z={bufferedValue:void 0})Z.bufferedValue=t.shift(),T(Z.bufferedValue);!Q||t.length||J||D.complete()}))};
V.subscribe(new gx(D,function(y){return J<n?T(y):t.push(y)},void 0,function(){Q=!0;
!Q||t.length||J||D.complete()}));
return function(){t=null}};
uK=function(V,D){var f=f===void 0?Infinity:f;if(I3(D))return uK(function(n,t){return kj(function(J,H){return D(n,J,t,H)})(nW(V(n,t)))},f);
typeof D==="number"&&(f=D);return e5(function(n,t){return nxU(n,t,V,f)})};
ton=function(V){V=V===void 0?Infinity:V;return uK(hL,V)};
Pv9=function(){var V=_.gQ.apply(0,arguments);return ton(1)(ZW(V,j5(V)))};
N9=function(V){return new Vz(function(D){nW(V()).subscribe(D)})};
ma=function(V,D,f){if(I3(f)){var n=f;f=void 0}if(n)return ma(V,D,f).pipe(O4Y(n));n=_.r(I3(V.addEventListener)&&I3(V.removeEventListener)?ox9.map(function(H){return function(Q){return V[H](D,Q,f)}}):I3(V.addListener)&&I3(V.removeListener)?JLd.map(rLd(V,D)):I3(V.on)&&I3(V.off)?Hcx.map(rLd(V,D)):[]);
var t=n.next().value,J=n.next().value;return!t&&qWR(V)?uK(function(H){return ma(H,D,f)})(ZW(V)):new Vz(function(H){if(!t)throw new TypeError("la");
var Q=function(){var T=_.gQ.apply(0,arguments);return H.next(1<T.length?T:T[0])};
t(Q);return function(){return J(Q)}})};
rLd=function(V,D){return function(f){return function(n){return V[f](D,n)}}};
RX=function(){var V=_.gQ.apply(0,arguments),D=j5(V);var f=typeof V[V.length-1]==="number"?V.pop():Infinity;return V.length?V.length===1?nW(V[0]):ton(f)(ZW(V,D)):zO};
Q3Z=function(V){return V.length===1&&wSR(V[0])?V[0]:V};
TQ9=function(){var V=Q3Z(_.gQ.apply(0,arguments));return e5(function(D,f){var n=[D].concat(_.sz(V)),t=function(){if(!f.closed)if(n.length>0){try{var J=nW(n.shift())}catch(Q){t();return}var H=new gx(f,void 0,xx,xx);f.add(J.subscribe(H));H.add(t)}else f.complete()};
t()})};
CW=function(V){return e5(function(D,f){var n=0;D.subscribe(new gx(f,function(t){return V.call(void 0,t,n++)&&f.next(t)}))})};
KMd=function(){var V=_.gQ.apply(0,arguments);V=Q3Z(V);return V.length===1?nW(V[0]):new Vz(bcX(V))};
bcX=function(V){return function(D){for(var f=[],n={i$jscomp$219:0};f&&!D.closed&&n.i$jscomp$219<V.length;n={i$jscomp$219:n.i$jscomp$219},n.i$jscomp$219++)f.push(nW(V[n.i$jscomp$219]).subscribe(new gx(D,function(t){return function(J){if(f){for(var H=0;H<f.length;H++)H!==t.i$jscomp$219&&f[H].unsubscribe();f=null}D.next(J)}}(n))))}};
yLZ=function(){var V=_.gQ.apply(0,arguments),D=Wlx(V),f=Q3Z(V);return f.length?new Vz(function(n){var t=f.map(function(){return[]}),J=f.map(function(){return!1});
n.add(function(){t=J=null});
for(var H={sourceIndex$jscomp$1:0};!n.closed&&H.sourceIndex$jscomp$1<f.length;H={sourceIndex$jscomp$1:H.sourceIndex$jscomp$1},H.sourceIndex$jscomp$1++)nW(f[H.sourceIndex$jscomp$1]).subscribe(new gx(n,function(Q){return function(T){t[Q.sourceIndex$jscomp$1].push(T);t.every(function(y){return y.length})&&(T=t.map(function(y){return y.shift()}),n.next(D?D.apply(null,_.sz(T)):T),t.some(function(y,Z){return!y.length&&J[Z]})&&n.complete())}}(H),void 0,function(Q){return function(){J[Q.sourceIndex$jscomp$1]=
!0;
!t[Q.sourceIndex$jscomp$1].length&&n.complete()}}(H)));
return function(){t=J=null}}):zO};
ZcZ=function(V){var D,f,n;return!!V&&typeof V.active==="boolean"&&typeof((D=V.clock)==null?void 0:D.now)==="function"&&((f=V.clock)==null?void 0:f.timeline)!==void 0&&!((n=V.lastMeasurement)==null||!n.timestamp)&&typeof V.equivalentTo==="function"&&typeof V.extrapolateToNow==="function"&&typeof V.extrapolateToTime==="function"&&typeof V.map==="function"&&typeof V.joinWith==="function"};
j3Z=function(V){function D(f){return typeof f==="boolean"||typeof f==="string"||typeof f==="number"||f===void 0||f===null}
return D(V)?!0:Array.isArray(V)?V.every(D):typeof V==="object"?Object.keys(V).every(function(f){return typeof f==="string"})&&Object.values(V).every(function(f){return Array.isArray(f)?f.every(D):D(f)}):!1};
leX=function(V){if(j3Z(V))return V;if(ZcZ(V))return{lastMeasurement:{value:leX(V.lastMeasurement.value),timestamp:q9(V.lastMeasurement.timestamp,new XE(0,V.lastMeasurement.timestamp.timeline))},active:V.active};try{return JSON.parse(JSON.stringify(V))}catch(D){}return String(V)};
Ez=function(V,D){return function(f){return new Vz(function(n){return f.subscribe(function(t){V.timeExecution(D,function(){n.next(t)})()},function(t){V.timeExecution(D,function(){n.error(t)})()},function(){V.timeExecution(D,function(){n.complete()})()})})}};
G6F=function(V,D){var f=!1;return new Vz(function(n){var t=V.setTimeout(function(){f=!0;n.next(!0);n.complete()},D);
return function(){f||V.clearTimeout(t)}})};
eDL=function(V){V=V.global;if(V.fetchLater)return V.fetchLater.bind(V)};
Aa=function(V){return e5(function(D,f){var n=null,t=!1,J;n=D.subscribe(new gx(f,void 0,function(H){J=nW(V(H,Aa(V)(D)));n?(n.unsubscribe(),n=null,J.subscribe(f)):t=!0}));
t&&(n.unsubscribe(),n=null,J.subscribe(f))})};
cLU=function(V,D,f){return function(n,t){var J=f,H=D,Q=0;n.subscribe(new gx(t,function(T){var y=Q++;H=J?V(H,T,y):(J=!0,T);t.next(H)},void 0,void 0))}};
FMd=function(V){V=V===void 0?null:V;return e5(function(D,f){var n=!1;D.subscribe(new gx(f,function(t){n=!0;f.next(t)},void 0,function(){n||f.next(V);
f.complete()}))})};
aX=function(){return e5(function(V,D){V.subscribe(new gx(D,xx))})};
Yj=function(V){return e5(function(D,f){D.subscribe(new gx(f,function(){return f.next(V)}))})};
iK=function(V){return V<=0?function(){return zO}:e5(function(D,f){var n=0;
D.subscribe(new gx(f,function(t){++n<=V&&(f.next(t),V<=n&&f.complete())}))})};
W6=function(V){var D=D===void 0?hL:D;var f;V=(f=V)!=null?f:gxx;return e5(function(n,t){var J,H=!0;n.subscribe(new gx(t,function(Q){var T=D(Q);if(H||!V(J,T))H=!1,J=T,t.next(Q)}))})};
gxx=function(V,D){return V===D};
k6d=function(V){V=V===void 0?vx3:V;return e5(function(D,f){var n=!1;D.subscribe(new gx(f,function(t){n=!0;f.next(t)},void 0,function(){return n?f.complete():f.error(V())}))})};
vx3=function(){return new s3x};
pW=function(){var V=_.gQ.apply(0,arguments);return function(D){return Pv9(D,lK.apply(null,_.sz(V)))}};
BQd=function(V){return e5(function(D,f){var n=0;D.subscribe(new gx(f,function(t){V.call(void 0,t,n++,D)||(f.next(!1),f.complete())},void 0,function(){f.next(!0);
f.complete()}))})};
d8c=function(){return e5(function(V,D){var f=[];V.subscribe(new gx(D,function(n){f.push(n);1<f.length&&f.shift()},void 0,function(){for(var n=_.r(f),t=n.next();!t.done;t=n.next())D.next(t.value);
D.complete()},function(){f=null}))})};
utF=function(V,D){var f=arguments.length>=2;return function(n){return n.pipe(V?CW(function(t,J){return V(t,J,n)}):hL,d8c(),f?FMd(D):k6d(function(){return new s3x}))}};
IX=function(V){var D=I3(V)?V:function(){return V};
return I3()?e5(function(f,n){var t=D();(void 0)(t).subscribe(n).add(f.subscribe(t))}):function(f){var n=new LW(f,D);
I3(f==null?void 0:f.lift)&&(n.lift=f.lift);n.source=f;n.subjectFactory=D;return n}};
xj=function(V){var D=new Oz(V,void 0,void 0);return function(f){return IX(function(){return D})(f)}};
M9=function(V,D){return e5(cLU(V,D,arguments.length>=2))};
ha=function(){var V=_.gQ.apply(0,arguments),D=j5(V);return e5(function(f,n){(D?Pv9(V,f,D):Pv9(V,f)).subscribe(n)})};
Uz=function(V){return e5(function(D,f){var n=null,t=0,J=!1;D.subscribe(new gx(f,function(H){var Q;(Q=n)==null||Q.unsubscribe();Q=t++;nW(V(H,Q)).subscribe(n=new gx(f,function(T){return f.next(T)},void 0,function(){n=null;
J&&!n&&f.complete()}))},void 0,function(){(J=!0,!n)&&f.complete()}))})};
VJ=function(V,D){D=D===void 0?!1:D;return e5(function(f,n){var t=0;f.subscribe(new gx(n,function(J){var H=V(J,t++);(H||D)&&n.next(J);!H&&n.complete()}))})};
DN=function(V,D,f){var n=I3(V)||D||f?{next:V,error:D,complete:f}:V;return n?e5(function(t,J){t.subscribe(new gx(J,function(H){var Q;(Q=n.next)==null||Q.call(n,H);J.next(H)},function(H){var Q;
(Q=n.error)==null||Q.call(n,H);J.error(H)},function(){var H;
(H=n.complete)==null||H.call(n);J.complete()}))}):hL};
NQc=function(){var V=_.gQ.apply(0,arguments),D=Wlx(V);return e5(function(f,n){for(var t=V.length,J=Array(t),H=V.map(function(){return!1}),Q=!1,T={i$jscomp$229:0};T.i$jscomp$229<t;T={i$jscomp$229:T.i$jscomp$229},T.i$jscomp$229++)nW(V[T.i$jscomp$229]).subscribe(new gx(n,function(y){return function(Z){J[y.i$jscomp$229]=Z;
Q||H[y.i$jscomp$229]||(H[y.i$jscomp$229]=!0,(Q=H.every(hL))&&(H=null))}}(T),void 0,xx));
f.subscribe(new gx(n,function(y){Q&&(y=[y].concat(_.sz(J)),n.next(D?D.apply(null,_.sz(y)):y))}))})};
m8x=function(V){var D=[],f=0,n;for(n in V)D[f++]=n;return D};
zDn=function(V,D){for(var f in V)if(V[f]==D)return!0;return!1};
RDY=function(V,D,f){for(var n in V)if(D.call(f,V[n],n,V))return n};
Cv3=function(V){if(!V||typeof V!=="object")return V;if(typeof V.clone==="function")return V.clone();if(typeof Map!=="undefined"&&V instanceof Map)return new Map(V);if(typeof Set!=="undefined"&&V instanceof Set)return new Set(V);if(V instanceof Date)return new Date(V.getTime());var D=Array.isArray(V)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(V)||V instanceof DataView?{}:new V.constructor(V.length),f;for(f in V)D[f]=Cv3(V[f]);return D};
qeU=function(V){var D=arguments.length;if(D==1&&Array.isArray(arguments[0]))return qeU.apply(null,arguments[0]);if(D%2)throw Error("pa");for(var f={},n=0;n<D;n+=2)f[arguments[n]]=arguments[n+1];return f};
XS9=function(V){var D=arguments.length;if(D==1&&Array.isArray(arguments[0]))return XS9.apply(null,arguments[0]);for(var f={},n=0;n<D;n++)f[arguments[n]]=!0;return f};
_.fi=function(V){return new eG3(V[0].toLowerCase())};
Exc=function(V){try{return new URL(V,window.document.baseURI)}catch(D){return new URL("about:invalid")}};
ALY=function(V,D){var f=D.createRange();f.selectNode(D.body);V=dQ(V);return f.createContextualFragment(uv(V))};
ae9=function(V){V=V.nodeName;return typeof V==="string"?V:"FORM"};
Yec=function(V){V=V.nodeType;return V===1||typeof V!=="number"};
ni=function(V,D,f){V.setAttribute(D,f)};
$83=function(V){return V.parts.map(function(D){var f=D.descriptor;return""+D.url+(f?" "+f:"")}).join(" , ")};
_.t4=function(V){var D=_.gQ.apply(1,arguments);if(D.length===0)return _.rQ(V[0]);for(var f=V[0],n=0;n<D.length;n++)f+=encodeURIComponent(D[n])+V[n+1];return _.rQ(f)};
_.Pl=function(V,D){V=_.HS(V).toString();var f=V.split(/[?#]/),n=/[?]/.test(V)?"?"+f[1]:"";return icZ(f[0],n,/[#]/.test(V)?"#"+(n?f[2]:f[1]):"",D)};
icZ=function(V,D,f,n){function t(H,Q){H!=null&&(Array.isArray(H)?H.forEach(function(T){return t(T,Q)}):(D+=J+encodeURIComponent(Q)+"="+encodeURIComponent(H),J="&"))}
var J=D.length?"&":"?";n.constructor===Object&&(n=Object.entries(n));Array.isArray(n)?n.forEach(function(H){return t(H[1],H[0])}):n.forEach(t);
return _.rQ(V+D+f)};
o8=function(V,D,f,n){this.top=V;this.right=D;this.bottom=f;this.left=n};
SeZ=function(V){V=V.global;if(V.PendingGetBeacon)return V.PendingGetBeacon};
rw=function(V){return function(D){return D.pipe(WMn(V,IX(new J4)))}};
Hl=function(V){return function(D){return D.pipe(WMn(V,xj(1)))}};
WMn=function(V,D){function f(n){return new Vz(function(t){return n.subscribe(function(J){ww(V,function(){return void t.next(J)},3)},function(J){ww(V,function(){return void t.error(J)},3)},function(){ww(V,function(){return void t.complete()},3)})})}
return Ue(f,LlF(),D,v6(),f)};
Ied=function(V){var D=pSX(V);return D===null?new QJ(null):D.pipe(kj(function(f){f=f.serialize();if(LMd)f=_.fx.btoa(f);else{for(var n=[],t=0,J=0;J<f.length;J++){var H=f.charCodeAt(J);H>255&&(n[t++]=H&255,H>>=8);n[t++]=H}f=_.V3(n)}return f}),iK(1),Hl(V.queue))};
OcL=function(V){var D=D===void 0?{}:D;if(typeof Event==="function")return new Event(V,D);if(typeof document!=="undefined"){var f=document.createEvent("CustomEvent");f.initCustomEvent(V,D.bubbles||!1,D.cancelable||!1,D.detail);return f}throw Error();};
x8Y=function(V){return typeof V==="string"?document.getElementById(V):V};
hDZ=function(V){var D=!1;D=D===void 0?!1:D;if(V.tagName==="IMG"){if(V.complete&&(!V.naturalWidth||!V.naturalHeight))return!0;var f;if(D&&((f=V.style)==null?void 0:f.display)==="none")return!0}var n,t;return Mo9.test((n=V.getAttribute("width"))!=null?n:"")&&Mo9.test((t=V.getAttribute("height"))!=null?t:"")};
U8n=function(V,D){if(V.tagName==="IMG")return V.naturalWidth&&V.naturalHeight?!0:!1;try{if(V.readyState)var f=V.readyState;else{var n,t;f=(n=V.contentWindow)==null?void 0:(t=n.document)==null?void 0:t.readyState}return f==="complete"}catch(J){return D===void 0?!1:D}};
V59=function(V){V||(V=function(D,f,n){D.addEventListener(f,n)});
return V};
t5U=function(V,D){var f=D9d();f=f===void 0?new fW9:f;if(V=x8Y(V)){var n=V59(n);for(var t=!1,J=function(z){t||(t=!0,D(z))},H,Q=2,T=0;T<njZ.length;++T)if(njZ[T]===V.tagName){Q=3;
H=[V];break}H||(H=V.querySelectorAll(njZ.join(",")));var y=0,Z=0,l=!0,G=V=!1;T={};for(var F=0;F<H.length;T={isImg:void 0},F++){var k=H[F];if(!hDZ(k))if(T.isImg=k.tagName==="IMG",U8n(k,f.crossDomainLoadedDefault))V=!0,T.isImg&&(l=!0);else{y++;var d=function(z){return function(C){y--;!y&&l&&J(Q);z.isImg&&(C=C&&C.type==="error",Z--,C||(l=!0),!Z&&G&&l&&J(Q))}}(T);
n(k,"load",d);T.isImg&&(Z++,n(k,"error",d))}}Z===0&&(l=!0);H=null;H=_.fx.document.readyState==="complete";if(y===0&&!V&&H)Q=5;else if(y||!V){n(_.fx,"load",function(){!f.pendingImagesBlockLoad||!Z&&l?J(4):G=!0});
return}J(Q)}};
PKF=function(V,D,f){if(V)for(var n=0;V!=null&&n<500&&!f(V);++n)V=D(V)};
ojd=function(V,D){PKF(V,function(f){try{return f===f.parent?null:f.parent}catch(n){}return null},D)};
Jac=function(V,D){if(V.tagName=="IFRAME")D(V);else{V=V.querySelectorAll("IFRAME");for(var f=0;f<V.length&&!D(V[f]);++f);}};
raR=function(V){return(V=V.ownerDocument)&&(V.parentWindow||V.defaultView)||null};
HWx=function(V,D,f){try{var n=JSON.parse(f.data)}catch(H){}if(typeof n==="object"&&n&&n.type==="creativeLoad"){var t=raR(V);if(f.source&&t){var J;ojd(f.source,function(H){try{if(H.parent===t)return J=H,!0}catch(Q){}});
J&&Jac(V,function(H){if(H.contentWindow===J)return D(n),!0})}}};
w6x=function(V){return typeof V==="string"?document.getElementById(V):V};
KaF=function(){var V={};return V[0]=_.t4(QXX,"current"),V[1]=_.t4(Txx),V[2]=_.t4(bWn),V};
Te=function(V,D){return V.left===D.left&&V.top===D.top&&V.width===D.width&&V.height===D.height};
yaY=function(V,D){return{left:Math.max(V.left,D.left),top:Math.max(V.top,D.top),width:Math.max(0,Math.min(V.left+V.width,D.left+D.width)-Math.max(V.left,D.left)),height:Math.max(0,Math.min(V.top+V.height,D.top+D.height)-Math.max(V.top,D.top))}};
ZWX=function(V,D){return{left:Math.round(V.left+D.x),top:Math.round(V.top+D.y),width:V.width,height:V.height}};
jXY=function(V,D,f){if(V&&D!==null&&D!=D.top){if(!D.top)return new _.bB(-12245933,-12245933);D=D.top}try{return(f===void 0?0:f)?(new _.bB(D.innerWidth,D.innerHeight)).round():_.Ki(D).round()}catch(n){return new _.bB(-12245933,-12245933)}};
lWx=function(V,D,f){try{if(V){if(!D.top)return new o8(-12245933,-12245933,-12245933,-12245933);D=D.top}var n=jXY(V,D,f),t=n.height,J=n.width;if(J===-12245933)return new o8(J,J,J,J);var H=ZN(jC(D.document)),Q=H.x,T=H.y;return new o8(T,Q+J,T+t,Q)}catch(y){return new o8(-12245933,-12245933,-12245933,-12245933)}};
GOL=function(V){var D;return(D=V.google_tag_data)!=null?D:V.google_tag_data={}};
eBx=function(V){var D,f;return typeof((D=V.navigator)==null?void 0:(f=D.userAgentData)==null?void 0:f.getHighEntropyValues)==="function"};
Fa9=function(V){if(!eBx(V))return null;var D=GOL(V);if(D.uach_promise)return D.uach_promise;V=V.navigator.userAgentData.getHighEntropyValues(cax).then(function(f){D.uach!=null||(D.uach=f);return f});
return D.uach_promise=V};
CKR=function(V){var D;return gjZ(vjd(kOU(sXd(BxR(d9x(uEd(Nx3(m93(new zBx,V.architecture||""),V.bitness||""),V.mobile||!1),V.model||""),V.platform||""),V.platformVersion||""),V.uaFullVersion||""),((D=V.fullVersionList)==null?void 0:D.map(function(f){var n=new RBL;n=_.lB(n,1,f.brand);return _.lB(n,2,f.version)}))||[]),V.wow64||!1)};
qz9=function(V){var D,f;return(f=(D=Fa9(V))==null?void 0:D.then(function(n){return CKR(n)}))!=null?f:null};
X69=function(V,D){return new Vz(function(f){var n=!1,t=Array(D.length);t.fill(void 0);var J=new Set,H=new Set,Q=function(l,G){V.running?(t[G]=l,J.add(G),n||(n=!0,ww(V,function(){n=!1;f.next(_.Od(t))},1))):f.error(new Ge(G))},T=function(l,G){H.add(G);
J.add(G);ww(V,function(){f.error(l)},1)},y=function(l){H.add(l);
ww(V,function(){H.size===D.length&&f.complete()},1)},Z=D.map(function(l,G){return l.subscribe(function(F){return void Q(F,G)},function(F){return void T(F,G)},function(){return void y(G)})});
return function(){Z.forEach(function(l){return void l.unsubscribe()})}})};
AaF=function(V,D,f){function n(){if(D.debugChannel){var z=D.debugChannel,C=z.next;var A={creativeId:D.debugNames.getName(f),requiredSignals:t,signals:Object.assign({},J),hasPrematurelyCompleted:H,errorMessage:Q,erroredSignalKey:T};A={specMajor:2,specMinor:0,specPatch:0,timestamp:q9(D.timeProvider.now(),new XE(0,D.timeProvider.timeline)),instanceId:D.debugNames.getName(D.symbol),creativeState:A};C.call(z,A)}}
for(var t=Object.keys(V),J={},H=!1,Q=null,T=null,y={},Z=new Set,l=[],G=[],F=_.r(t),k=F.next(),d={};!k.done;d={key$jscomp$375:void 0},k=F.next())d.key$jscomp$375=k.value,k=V[d.key$jscomp$375],k instanceof QJ?(y[d.key$jscomp$375]=k.value,Z.add(d.key$jscomp$375),D.debugChannel&&(J[String(d.key$jscomp$375)]=leX(k.value))):(k=k.pipe(W6(function(z,C){return ZcZ(z)||ZcZ(C)?!1:z===C}),kj(function(z){return function(C){D.debugChannel&&(J[String(z.key$jscomp$375)]=leX(C),n());
var A={};return A[z.key$jscomp$375]=C,A}}(d)),Aa(function(z){return function(C){if(C instanceof Ge)throw new Ejn(String(z.key$jscomp$375));
throw C;}}(d)),DN(function(z){return function(){Z.add(z.key$jscomp$375)}}(d),function(z){return function(C){T=String(z.key$jscomp$375);
Q=String(C);n()}}(d),function(z){return function(){Z.has(z.key$jscomp$375)||(H=!0,n())}}(d))),G.push(d.key$jscomp$375),l.push(k));
(V=Object.keys(J).length>0)&&n();F=X69(D.queue,l).pipe(Aa(function(z){if(z instanceof Ge)throw new eC(String(G[z.inputObservableIndex]));throw z;}),kj(function(z){return Object.freeze(Object.assign.apply(Object,[{},
y].concat(_.sz(z))))}));
return(l=l.length>0)&&V?RX(lK(Object.freeze(y)),F):l?F:lK(Object.freeze(y))};
aWZ=function(V,D,f,n,t){return V.performanceMonitor.timeExecution.bind(V.performanceMonitor)(733,function(){var J={};try{return D.pipe(Aa(function(H){n(Object.assign({},J,{error:H}));return zO}),uK(function(H){try{var Q=f(V,H)}catch(y){return n(Object.assign({},J,{error:y instanceof Error?y:String(y)})),zO}var T={};
return AaF(Q,V,H.symbol).pipe(DN(function(y){T=y}),xj(1),v6()).pipe(t,Aa(function(y){n(Object.assign({},T,{error:y}));
return zO}),pW(void 0),kj(function(){return!0}))})).pipe(M9(function(H){return H+1},0),Aa(function(H){n(Object.assign({},J,{error:H}));
return zO}))}catch(H){return n(Object.assign({},J,{error:H})),zO}})()};
cl=function(V){var D=new Map;if(typeof V!=="object"||V===null)return D;Object.values(V).forEach(function(f){f&&typeof f.extrapolateToNow==="function"&&(D.has(f.clock.timeline)||D.set(f.clock.timeline,f.clock.now()))});
return D};
YzU=function(V,D){return typeof V==="string"?encodeURIComponent(V):typeof V==="number"?String(V):Array.isArray(V)?V.map(function(f){return YzU(f,D)}).join(","):V instanceof XE?V.toString():V&&typeof V.extrapolateToNow==="function"?YzU(V.extrapolateUsingTimestampMap(D).value,D):V===!0?"1":V===!1?"0":V===void 0||V===null?null:V instanceof $9Y?iWX(V):[V.top,
V.left,V.top+V.height,V.left+V.width].join()};
F3=function(V,D){V=Object.entries(V).map(function(f){var n=_.r(f);f=n.next().value;n=n.next().value;n=YzU(n,D);return n===null?"":f+"="+n}).filter(function(f){return f!==""});
return V.length?V.join("&"):""};
p69=function(V,D){var f=Sz9,n=Wad;D=D===void 0?.01:D;return function(t){D>0&&Math.random()<=D&&(V.global.HTMLFencedFrameElement&&V.global.fence&&typeof V.global.fence.reportEvent==="function"&&V.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),t=Object.assign({},t,{errorMessage:t.error instanceof Error&&t.error.message?t.error.message:String(t.error),errorStack:t.error instanceof Error&&t.error.stack?String(t.error.stack):null,errorName:t.error instanceof
Error&&t.error.name?String(t.error.name):null,errorContext:String(V.performanceMonitor.timedFunctionContext),errorEscapedQueryId:t.escapedQueryId}),f(Object.assign({},t,{payloadMapper:function(){return function(J){try{return n(Object.assign({},J))}catch(H){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),cl(t)).forEach(function(J){V.beaconFactory.makeBeacon(J).sendNow()}))}};
La3=function(){var V=_.gQ.apply(0,arguments);return function(D){var f=D.pipe(xj(1),v6());D=V.map(function(n){return f.pipe(n,pW(!0))});
return B6(D).pipe(iK(1),aX())}};
IWZ=function(){var V=_.gQ.apply(0,arguments);return function(D){var f=D.pipe(xj(1),v6());D=V.map(function(n){return f.pipe(n,pW(!0))});
return RX.apply(null,_.sz(D)).pipe(iK(1),aX())}};
OWx=function(V,D){return function(f){var n=f.pipe(xj(1),v6());f=n.pipe(V,pW(!0));n=n.pipe(Ue(D,xj(),v6()),pW(!0));f=B6([f,n]);return KMd(f,n).pipe(iK(1),aX())}};
x9Y=function(V,D,f){f(!0)};
M5U=function(V,D){return Ue(Uz(function(f){var n=V(f),t=D(f),J={};return n&&t&&J?new Vz(function(H){t(n,J,function(Q){H.next(Object.assign({},f,{canEmit:Q}));H.complete()});
return function(){}}):gw}),CW(function(f){return f.canEmit}))};
hBX=function(V){var D={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(f){return f.pipe(Uz(function(n){return new Vz(function(t){function J(){Q.disconnect();T.unsubscribe()}
var H=V.MutationObserver;if(H&&n.ref!==void 0){var Q=new H(function(y){t.next(y)});
Q.observe(n.ref,D);var T=n.JSC$7448_released.subscribe(J);return J}})}))}};
U9X=function(V){if(V.measurementDeferralState===3)return null;if(V.timeOnScreenReason!==void 0){var D=V.creativeFound===!1?"n":null;if(D!==null)return D}return V.geometricMeasurementErrors instanceof vl?"msf":V.contextValidationErrors instanceof kA?"c":V.contextVisibilityKnown===!1?"pv":V.geometricMeasurementErrors||V.contextValidationErrors?"x":null};
Bl=function(V,D){return V.replace(VCF,function(f,n){try{var t=_.sB.get(D,n);if(t==null||t.toString()==null)return f;t=t.toString();if(t==""||!_.Hn(t==null?"":String(t)))return encodeURIComponent(t).replace(/%2C/g,",")}catch(J){}return f})};
Drn=function(V,D){var f=Object.assign({},V),n=V.userAgentClientHints;f=(delete f.userAgentClientHints,f);f=V.payloadMapper(f);var t=F3(f,D);return _.dw(V.urlPrefixes,function(J){var H="";typeof n==="string"&&(H="&"+F3({uach:n},D));var Q={};return Bl(J,(Q.VIEWABILITY=t,Q))+H})};
Sz9=function(V,D){var f=V.payloadMapper(V),n=F3(f,D);return n?_.dw(V.urlPrefixes,function(t){t=t.indexOf("?")>=0?t:t+"?";t="?&".indexOf(t.slice(-1))>=0?t:t+"&";return t+n}):V.urlPrefixes};
fNF=function(){return Ue(CW(function(V){return V!==void 0}),kj(function(V){return V}))};
nA3=function(V){return Ue(kj(function(){return!0}),ha(!1),Hl(V))};
tC9=function(V){return V.length<=0?zO:B6(V.map(function(D){var f=0;return D.pipe(kj(function(n){return{index:f++,value:n}}))})).pipe(CW(function(D){return D.every(function(f){return f.index===D[0].index})}),kj(function(D){return D.map(function(f){return f.value})}))};
PBX=function(V,D){V.currentState&&(V.previousState=V.currentState);V.currentState=D;V.previousState&&V.previousState.value?(D=Math.max(0,q9(D.timestamp,V.previousState.timestamp)),V.totalTime+=D,V.consecutiveTime+=D):V.consecutiveTime=0;return V};
oAx=function(){return Ue(M9(PBX,{totalTime:0,consecutiveTime:0}),kj(function(V){return V.totalTime}))};
J4Z=function(){return Ue(M9(PBX,{totalTime:0,consecutiveTime:0}),kj(function(V){return V.consecutiveTime}))};
r4F=function(V,D){return function(f){return tC9(D.map(function(n){return f.pipe(V(n))}))}};
Hid=function(){var V;return Ue(DN(function(D){return void(V=D.timestamp)}),J4Z(),kj(function(D){return{timestamp:V,
value:Math.round(D)}}))};
wl9=function(V,D){return Te(V.topWindowViewportExternalGeometry,D.topWindowViewportExternalGeometry)&&Te(V.elementGeometry,D.elementGeometry)&&Te(V.exposedViewportLocalGeometry,D.exposedViewportLocalGeometry)&&Te(V.intersectionGeometry,D.intersectionGeometry)&&V.elementGeometrySourceName===D.elementGeometrySourceName&&V.measurementRequests===D.measurementRequests&&V.viewportGeometrySourceName===D.viewportGeometrySourceName&&V.viewportLocalAppOffset.x===D.viewportLocalAppOffset.x&&V.viewportLocalAppOffset.y===
D.viewportLocalAppOffset.y};
biR=function(V,D){return function(f){return function(n){var t=n.pipe(IX(new J4),v6());n=f.element.pipe(W6());t=t.pipe(kj(function(J){return J.value}));
return B6([n,t,D]).pipe(kj(function(J){var H=_.r(J);J=H.next().value;var Q=H.next().value;H=H.next().value;if(J.ref===void 0)var T={top:0,left:0,width:0,height:0};else{T=J.ref.getBoundingClientRect();var y=J.ref,Z=V.global,l=new _.uB(0,0),G=Nr(_.mk(y));if(ze(G,"parent")){do{if(G==Z)var F=_.R8(y);else F=Q83(y),F=new _.uB(F.left,F.top);l.x+=F.x;l.y+=F.y}while(G&&G!=Z&&G!=G.parent&&(y=G.frameElement)&&(G=G.parent))}T={top:l.y,left:l.x,width:T.width,height:T.height}}T=ZWX(T,Q.viewportLocalAppOffset);
Z=yaY(T,Q.exposedViewportLocalGeometry);l=V.timeProvider.now();G=Object;y=G.assign;if(H!==2||V.inCrossDomainIframe||Z.width<=0||Z.height<=0)var k=!1;else try{var d=V.document.elementFromPoint(Z.left+Z.width/2,Z.top+Z.height/2);k=d?!TwU(d,J):!1}catch(z){k=!1}return{timestamp:l,value:y.call(G,{},Q,{elementGeometrySourceName:"geo",intersectionGeometry:k?Ci.intersectionGeometry:Z,elementGeometry:T})}}),rw(V.queue))}}};
TwU=function(V,D,f){f=f===void 0?0:f;return V.ref===void 0||D.ref===void 0?!1:V.ref===D.ref||_.qr(D.ref,function(n){return n===V.ref})?!0:D.ref.ownerDocument&&D.ref.ownerDocument.defaultView&&D.ref.ownerDocument.defaultView===D.ref.ownerDocument.defaultView.top?!1:f<10&&D.ref.ownerDocument&&D.ref.ownerDocument.defaultView&&D.ref.ownerDocument.defaultView.frameElement?TwU(V,new X3(D.ref.ownerDocument.defaultView.frameElement),f+1):!0};
Zi3=function(V){return function(D){return D.pipe(V.ResizeObserver?Kkc(V):y4F(V),xj(1),v6())}};
Kkc=function(V){return function(D){return D.pipe(Uz(function(f){var n=V.ResizeObserver;if(!n||f.ref===void 0)return lK(Ci.elementGeometry);var t=(new Vz(function(J){function H(){f.ref!==void 0&&Q.unobserve(f.ref);Q.disconnect();T.unsubscribe()}
if(f.ref===void 0)return J.complete(),function(){};
var Q=new n(function(y){y.forEach(function(Z){J.next(Z)})});
Q.observe(f.ref);var T=f.JSC$7448_released.subscribe(H);return H})).pipe(Ez(V.performanceMonitor,736),kj(function(J){return J.contentRect}));
return RX(lK(f.ref.getBoundingClientRect()),t)}),W6(Te))}};
y4F=function(V){return function(D){var f=D.pipe(hBX(V)),n=V.onResize;f=RX(D.pipe(kj(function(){return OcL("resize")})),f,n);
return B6(D,f).pipe(Ez(V.performanceMonitor,737),kj(function(t){t=_.r(t).next().value;return t.ref===void 0?void 0:t.ref.getBoundingClientRect()}),fNF(),W6(Te))}};
GeF=function(V,D){var f=j8F(V,D).pipe(xj(1),v6());return function(n){return function(t){t=t.pipe(Uz(function(J){return J.element}),W6());
return B6([f,t]).pipe(Uz(function(J){var H=_.r(J);J=H.next().value;H=H.next().value;return lN3(V,J.intersectionObserver,Zi3(V),J.observations,n,J.flushRecords,H)}),rw(V.queue))}}};
e5Y=function(V){return kj(function(D){return D.value.viewportGeometrySourceName!=="nio"?D:Object.assign({},D,{value:Object.assign({},D.value,{exposedViewportLocalGeometry:EB(V,!0),topWindowViewportExternalGeometry:EB(V,!0)})})})};
c4R=function(V,D){return lK(D).pipe(V,kj(function(){return D}))};
j8F=function(V,D){return V.timeProvider.timeline!==FkY?GO(new vl(2)):V.MutationObserver?typeof IntersectionObserver==="undefined"?GO(new vl(0)):(new Vz(function(f){var n=new J4,t=new A4(n.next.bind(n),{threshold:[].concat(_.sz(D))});f.next({observations:n.pipe(Ez(V.performanceMonitor,735)),intersectionObserver:t,flushRecords:function(J){J=t.takeRecords(J);J.length>0&&n.next(J)}})})).pipe(iK(1),xj(1),v6()):GO(new vl(1))};
gAU=function(V){return X7X(V.sort(function(D,f){return D.time-f.time}),p7F)};
lN3=function(V,D,f,n,t,J,H){return new Vz(function(Q){function T(){k||(k=!0,H.ref!==void 0&&D.unobserve(t,H.ref),Z.unsubscribe(),F.unsubscribe(),G.unsubscribe(),d.unsubscribe())}
if(H.ref!==void 0){vAY(D,t);D.observe(t,H.ref);var y=new a8({timestamp:V.timeProvider.now(),value:Object.assign({},Ci,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),Z=n.pipe(uK(function(z){return gAU(z)}),CW(function(z){return z.target===H.ref}),kj(function(z){return{timestamp:new XE(z.time,FkY),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:z.rootBounds||YA,topWindowViewportExternalGeometry:z.rootBounds||EB(V,!0),measurementRequests:l,elementGeometrySourceName:"nio",intersectionGeometry:z.intersectionRect,elementGeometry:z.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:z.isIntersecting,isV2Visible:z.isVisible}}}),IX(y),v6()).subscribe(Q),l=new J4,G=l.subscribe(function(){J(t);
Q.next({timestamp:V.timeProvider.now(),value:y.value.value});H.ref!==void 0&&(D.unobserve(t,H.ref),D.observe(t,H.ref))}),F=c4R(f,H).subscribe(function(){l.next()}),k=!1,d=H.JSC$7448_released.subscribe(function(){return T()});
return T}})};
ke3=function(V,D){var f=V.getOnBackgrounded().pipe(kj(function(){return"b"}));
return KMd(D,f).pipe(iK(1),Hl(V.queue))};
$A=function(V){return function(D){var f;return D.pipe(DN(function(n){return void(f=n.timestamp)}),kj(function(n){return n.value}),V,kj(function(n){return{timestamp:f,
value:n}}))}};
s8Z=function(V){return V.intersectionGeometry.width*V.intersectionGeometry.height/(V.elementGeometry.width*V.elementGeometry.height)};
iB=function(V,D,f){f=f===void 0?function(n,t){return n===t}:f;
return V.timestamp.equals(D.timestamp)&&f(V.value,D.value)};
Wl=function(V,D){return D.pipe(kj(function(f){return new SC(V.timeProvider,{timestamp:V.timeProvider.now(),value:f})}))};
BwY=function(V){return function(D){return D.pipe(NQc(V),kj(function(f){var n=_.r(f);f=n.next().value;n=n.next().value;var t=f.value;return{timestamp:f.timestamp,value:t>=1?!0:t<=0?!1:t>=n}}))}};
u33=function(){return Ue(CW(function(V,D){return D>0}),dr9,ha(-1),W6())};
NwY=function(V,D,f){return V?B6([D,f]).pipe(CW(function(n){var t=_.r(n);n=t.next().value;t=t.next().value;return n.timestamp.equals(t.timestamp)}),kj(function(n){var t=_.r(n);
n=t.next().value;t=t.next().value;return n.value>t.value?n:t})):D};
R5Y=function(V){return function(D){var f=D.pipe(mrY),n=D.pipe(z5F);return V instanceof Vz?V.pipe(Uz(function(t){return NwY(t,f,n)})):NwY(V.value,f,n)}};
SBF=function(V,D,f,n){var t=n.geometryIsOccluded,J=n.exposureThreshold,H=n.wasLargeAdAtRender,Q=n.allowLargeAdThreshold,T=n.largeAdExposureThreshold,y=n.mayUseViewportShareExposure,Z=n.hasMeasurementStarted;n=n.useIntersectionObserverV2;D=CBX(V,f,D);f=qBc(V,f);n=Xld(D,n);var l=EAY(V,t,y,D),G=l.pipe(kj(function(I){return I.value}),W6(),Hl(V),M9(function(I,x){return Math.max(I,x)},0)),F=l.pipe(kj(function(I){return I.value}),u33(),Hl(V)),k=D.pipe(A43,kj(function(I){return I.value}),iK(2),W6(),Hl(V));
H=aNn(V,D,H,Q);var d=H.pipe(ha(!1),W6(),kj(function(I){return I?T:J}));
Q=l.pipe(BwY(d),W6(),Hl(V));var z=B6([Q,D]).pipe(CW(function(I){var x=_.r(I);I=x.next().value;x=x.next().value;return I.timestamp.equals(x.timestamp)}),kj(function(I){var x=_.r(I);
I=x.next().value;x=x.next().value;return{visible:I.value,geometry:x.value.elementGeometry}}),M9(function(I,x){return!x.visible&&I.visible?I:x},{visible:!1,
geometry:YA}),kj(function(I){return I.geometry}),ha(YA),Hl(V),W6(Te));
y=y instanceof Vz?y.pipe(W6(),Yj()):gw;d=B6([y,d]).pipe(Yj());var C=D.pipe(CW(function(I){return I.value.viewportGeometrySourceName!=="ns"&&I.value.elementGeometrySourceName!=="ns"}),M9(function(I){return I+1},0),ha(0),Hl(V)),A=f.pipe(Yj(!0),ha(!1),Hl(V));
A=B6([Z,A]).pipe(kj(function(I){var x=_.r(I);I=x.next().value;x=x.next().value;return I&&!x}),Hl(V));
var O=D.pipe(YBU,W6()),W=O.pipe(kj(function(I){return I.value}),M9(function(I,x){return Math.max(I,x)},0),W6(),Hl(V));
V=O.pipe(kj(function(I){return I.value}),u33(),Hl(V));
return{shouldResetExposureSignals:y,shouldResetViewabilitySignals:d,geometrySignals:{readyGeometryWithDefault:D,measurementStrategy:D.pipe($r9),creativePosition:z.pipe(W6(Te)),visible:Q.pipe(W6(iB)),timestampedExposure:l.pipe(W6(iB)),maximumExposure:G,minimumExposure:F,browserSize:D.pipe(ii3,W6(_.PH)),timestampedScreenShare:O,maxScreenShare:W,minScreenShare:V,geometricMeasurementErrors:f,measurementRequests:D.pipe(kj(function(I){return I.value.measurementRequests})),
isLargeAd:H,geometryIsOccluded:t,hasMeasurementStarted:Z,geometryMeasurable:A,validMeasurementCount:C,loadTimeExposure:k,v2VisibilityBitVector:n}}};
qBc=function(V,D){return D.pipe(CW(function(){return!1}),kj(function(f){return f}),Aa(function(f){return pi(new QJ(f),V)}))};
CBX=function(V,D,f){return D.pipe(TQ9(gw),Hl(V)).pipe(W6(function(n,t){return iB(n,t,wl9)}),ha({timestamp:f.now(),
value:Ci}),Hl(V))};
EAY=function(V,D,f,n){f=n.pipe(R5Y(f),$A(kj(function(t){return Math.round(t*100)/100})),Hl(V));
return D instanceof QJ?f:B6([f,D]).pipe(kj(function(t){var J=_.r(t);t=J.next().value;J=J.next().value;return{timestamp:J.timestamp.maximum(t.timestamp),value:J.value?0:t.value}}),W6(iB),Hl(V))};
aNn=function(V,D,f,n){D=[D.pipe(kj(function(t){return t.value.elementGeometry.width*t.value.elementGeometry.height>=242500}))];
f instanceof Vz&&D.push(f.pipe(kj(function(t){return!!t})));
f=B6(D);return n?f.pipe(kj(function(t){return t.some(function(J){return J})}),ha(!1),W6(),Hl(V)):pi(new QJ(!1),V)};
Xld=function(V,D){V=B6([V,D]).pipe(kj(function(t){var J=_.r(t);t=J.next().value;if(J.next().value&&t.value.isIntersecting)return t.value.isV2Visible}),W6());
var f=V.pipe(kj(function(t){return t===void 0?!0:t}),M9(function(t,J){return t||!J},!1)),n=V.pipe(M9(function(t,J){return J===void 0?t:J?!1:t!=null?t:!0},void 0),kj(function(t){return!!t}));
return B6([D,yLZ(V,f,n)]).pipe(kj(function(t){var J=_.r(t);t=J.next().value;var H=_.r(J.next().value);J=H.next().value;var Q=H.next().value;H=H.next().value;var T=0;if(!t)return 0;if(J===void 0)return 16;J&&(T|=1);J||(T|=2);Q&&(T|=4);H&&(T|=8);return T}))};
Oi3=function(V,D,f,n,t){var J=Li.timeThresholdMs;var H=H===void 0?new Wkx(D,n):H;return(new Vz(function(Q){var T=f.pipe(ha(void 0),Uz(function(){return plU(t)})).pipe(kj(function(y){var Z=y.value;
y=y.timestamp;var l=Z.visible;Z=Z.consecutiveViewTime;var G=Z>=J;G||!l?LkY(H):(y=Math.max(0,q9(D.now(),y)),INX(H,Math.max(0,J-Z-y)));return G}),M9(function(y,Z){return Z||y},!1),W6()).subscribe(Q);
return function(){H.dispose();T.unsubscribe()}})).pipe(VJ(function(Q){return!Q},!0),Hl(V))};
plU=function(V){return tC9([V,V.pipe(Hid())]).pipe(kj(function(D){var f=_.r(D);D=f.next().value;f=f.next().value;return{timestamp:D.timestamp,value:{visible:D.value,consecutiveViewTime:f.value}}}),W6(function(D,f){return iB(D,f,function(n,t){return n.consecutiveViewTime===t.consecutiveViewTime&&n.visible===t.visible})}))};
xrx=function(){return Ue(J4Z(),M9(function(V,D){return Math.max(V,D)},0),kj(function(V){return Math.round(V)}))};
MCL=function(V){return Ue(BwY(lK(V)),xrx())};
h5Y=function(V,D){return D instanceof Vz?D.pipe(Uz(function(f){return(f=f?15:null)?GO(new vl(f)):V})):(D=D.value?15:null)?GO(new vl(D)):V};
Urd=function(V){var D=new vl(13);if(V.length<1)return{chain:zO,capturedErrors:zO};var f=new J4,n=V[0];return{chain:V.slice(1).reduce(function(t,J){return t.pipe(Aa(function(H){f.next(H);return J}))},n).pipe(Aa(function(t){f.next(t);
return GO(D)}),IX(new J4),v6()),
capturedErrors:f}};
VBY=function(V,D){var f=V.pipe(IX(new J4),v6());return Uz(function(n){return f.pipe(D(n))})};
fCd=function(V,D){if(V.inCrossDomainIframe)return GO(new vl(6));var f=new J4;return RX(lK({}),D,f).pipe(kj(function(){return{timestamp:V.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:DNZ(V),topWindowViewportExternalGeometry:EB(V,!0),measurementRequests:f,viewportLocalAppOffset:{x:0,y:0}}}}),rw(V.queue))};
DNZ=function(V){var D=EB(V,!1);if(!V.inIframe||!n4x(V.global.parent)||V.global.parent===V.global)return D;var f=new I8(V.global.parent,V.debugChannel);f.beaconFactory=V.beaconFactory;f=DNZ(f);V=V.global.frameElement.getBoundingClientRect();return yaY(ZWX(yaY(f,V),{x:D.left-V.left,y:D.top-V.top}),D)};
tBZ=function(V){if(V.prerendering)return 3;var D;return(D={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[V.visibilityState||V.webkitVisibilityState||V.mozVisibilityState||""])!=null?D:0};
PWZ=function(V){return V.document.JSC$7459_onVisibilityChange.pipe(kj(function(D){return D==="visible"}),W6(),Hl(V.queue))};
o4X=function(V,D,f){var n;return D.pipe(W6(),Uz(function(t){return f.pipe(kj(function(){if(!n){n=!0;try{t.next()}finally{n=!1}}return!0}))}),ha(!1),Hl(V.queue))};
JlY=function(V){return Ue($A(kj(function(D){return D>=1?!0:D<=0?!1:D>=V})),oAx(),kj(function(D){return Math.round(D)}))};
HJn=function(V,D,f,n,t){var J=rlF;if(J.length>1)for(var H=0;H<J.length-1;H++)if(J[H]<J[H+1])throw Error();H=t.pipe(ha(void 0),Uz(function(){return f.pipe(Hid())}),W6(),Hl(V));
t=t.pipe(ha(void 0),Uz(function(){return f.pipe(xrx())}),W6(),Hl(V));
return{totalMeasurementTime:n.pipe(ha(void 0),Uz(function(){return D.pipe(kj(function(Q){return{timestamp:Q.timestamp,value:!0}}),oAx())}),W6(),Hl(V)),
totalUnviewedTime:n.pipe(ha(void 0),Uz(function(){return D.pipe(kj(function(Q){return{timestamp:Q.timestamp,value:Q.value===0}}),oAx())}),W6(),Hl(V)),
maxTimeOnScreen:n.pipe(ha(void 0),Uz(function(){return D.pipe(r4F(MCL,J))}),W6(_.PH),Hl(V)),
timeOnScreen:n.pipe(ha(void 0),Uz(function(){return D.pipe(r4F(JlY,J),kj(function(Q){return Q.map(function(T,y){return y>0?T-Q[y-1]:T})}))}),W6(_.PH),Hl(V)),
maxConsecutiveViewTime:t,consecutiveViewTime:H.pipe(W6(iB),Hl(V))}};
QV9=function(V){var D=!0;D=D===void 0?!1:D;return Ue(Uz(function(f){return wq3(V.document,f,D)}),Hl(V.queue))};
TX9=function(V,D,f){var n=f.pipe(kj(function(t){return{value:t,timestamp:V.timeProvider.now()}}),W6(iB));
return D instanceof Vz?D.pipe(W6(),Uz(function(t){return t?pi(new QJ({value:!1,timestamp:V.timeProvider.now()}),V.queue):n})):D.value===!1?n:new QJ(!1)};
bJY=function(V,D,f,n,t,J,H){var Q=Li;D=D instanceof Vz?D.pipe(ha(!1),W6()):D;var T=!V.isMobile();f=TX9(V,f,n);V=H.measurableCreative.pipe(nA3(V.queue));return Object.assign({},Q,{geometryIsOccluded:f,wasLargeAdAtRender:t,allowLargeAdThreshold:T,mayUseViewportShareExposure:D,hasMeasurementStarted:V,useIntersectionObserverV2:J})};
ylc=function(V,D,f,n,t,J){var H=1;J=J===void 0?!0:J;H=H===void 0?.01:H;var Q=Q===void 0?V.timeProvider.intervalObservable(100).pipe(Hl(V.queue)):Q;return V.performanceMonitor.timeExecution(916,function(){return KHX(V,D.pipe(rw(V.queue)),f.pipe(rw(V.queue)),n,t,J,H,Q)})()};
KHX=function(V,D,f,n,t,J,H,Q){var T=PWZ(V).pipe(kj(function(Z){return!Z})),y=new ZJU(V,[new jVZ(V,rlF),
new lCR(V,Q)]);Q=La3(GsR,eOZ);return aWZ(V,D,function(Z,l){var G=pi(new QJ(l.element),Z.queue).pipe(QV9(Z),Hl(Z.queue)),F={loadedElement:G,shouldMeasure:G.pipe(Yj(!0)),measurableCreative:G.pipe(kj(function(I){var x=x===void 0?Symbol():x;return Object.freeze({symbol:x,element:pi(new QJ(I),Z.queue)})})),
creativeSearchResult:pi(new QJ("mue"),Z.queue)},k=new QJ(!1),d=new QJ(!1),z=new QJ(17),C=new QJ(!1),A=new QJ(!1),O=pi(OB,Z.queue);k=y.buildGeometrySource(F,{inApp:k,useV2:!1,requestSource:pi(z,Z.queue)}).geometrySource;F=bJY(Z,C,d,T,A,O,F);d=SBF(Z.queue,Z.timeProvider,k,F);F=d.geometrySignals;C=d.shouldResetViewabilitySignals;d=HJn(Z.queue,F.timestampedExposure,F.visible,d.shouldResetExposureSignals,C);C=Oi3(Z.queue,Z.timeProvider,C,F.measurementRequests,F.visible);A=f.pipe(CW(function(I){return I===
l.element.ref}),kj(function(){return"ur"}));
O=G6F(Z.timeProvider,t).pipe(Yj("t"));A=ke3(Z,RX(A,O));O=o4X(Z,F.measurementRequests,A.pipe(CW(function(I){return I!==null})));
k=A.pipe(CW(function(I){return I!==null}),kj(function(){return tBZ(Z.global.document)===1}));
var W=clY(Z.document);return Object.assign({},{beaconFactory:new QJ(Z.beaconFactory),context:new QJ(Z),inferredPingId:new QJ("lidar2"),timeOnScreenPingId:new QJ("lidartos"),binaryContext:new QJ(17),binaryVersion:new QJ(n),requestSource:z,contextValidationErrors:new QJ(Z.validate()?null:new kA),contextVisibilityKnown:new QJ(W),payloadMapper:new QJ(Wad),endOfSessionReason:A,timeOnScreenReason:A,requestMeasurementOnEndOfSession:O,hasImpressionFired:FHd,crossDomainIframeState:new QJ(Z.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:OB,inFetchLaterBeaconExperiment:OB,isTurtlex:OB,turtlexReportEventData:new QJ(""),reportFencedFrameEvent:gw,isViewableAttributionEnabled:OB,inViewableAttributionExperiment:new QJ(0),fetchBeaconFactory:gw,supportsPendingBeacon:OB,supportsFetchLater:OB,emit:new QJ(x9Y),beginToRenderEvent:new QJ(Symbol()),activeViewUnmeasurableEvent:new QJ(Symbol()),activeViewViewableEvent:new QJ(Symbol()),creativeFound:FHd,immediateUrlPrefixes:new QJ(l.immediateUrls),timeOnScreenUrlPrefixes:new QJ(l.timeOnScreenUrls),
cpmavUrls:gw,viewableRelayUrls:gw,measurementDeferralState:new QJ(2),urlSerializer:new QJ(Drn),viewUrlSerializer:new QJ(g4Y),isCreativeLoaded:G.pipe(nA3(Z.queue)),pageVisible:T.pipe(kj(function(I){return!I})),
eosPageVisible:k,timestampedExposureHistory:F.timestampedExposure.pipe(M9(function(I,x){I.push(x);return I},[]))},F,{viewable:Wl(Z,C),
maxTimeOnScreen:Wl(Z,d.maxTimeOnScreen),timeOnScreen:Wl(Z,d.timeOnScreen),maxConsecutiveViewTime:Wl(Z,d.maxConsecutiveViewTime),consecutiveViewTime:d.consecutiveViewTime.pipe(kj(function(I){return new SC(Z.timeProvider,I)})),
totalMeasurementTime:Wl(Z,d.totalMeasurementTime),totalUnviewedTime:Wl(Z,d.totalUnviewedTime),userAgentClientHints:Ied(Z),clientOrderPingCounter:new QJ(new $9Y)})},p69(V,H),IWZ(J?OWx(Q,v43):OWx(Q,ksU),sVn))};
BXx=function(V){var D=_.gQ.apply(1,arguments).filter(Boolean).join("&");if(!D)return V;var f=V.match(/[?&]adurl=/);return f?V.slice(0,f.index+1)+D+"&"+V.slice(f.index+1):V+(V.indexOf("?")<0?"?":"&")+D};
xA=function(V,D){return D?"&"+V+"="+encodeURIComponent(D):""};
dN9=function(){try{var V,D;return!!((V=window)==null?0:(D=V.top)==null?0:D.location.href)&&!1}catch(f){return!0}};
_.Mr=function(V){V&&typeof V.dispose=="function"&&V.dispose()};
_.h4=function(V){for(var D=0,f=arguments.length;D<f;++D){var n=arguments[D];_.MU(n)?_.h4.apply(null,n):_.Mr(n)}};
NX9=function(){var V=u1Z();V=V===void 0?"bevasrsg":V;return new Promise(function(D){var f=window===window.top?window:dN9()?window:window.top,n=f[V],t;((t=n)==null?0:t.bevasrs)?D(new UB(n.bevasrs)):(n||(n={},n=(n.nqfbel=[],n),f[V]=n),n.nqfbel.push(function(J){D(new UB(J))}))})};
mNZ=function(V){var D={c:V.yv,e:V.h8n,mc:V.d6D,me:V.z0I};V.s9&&(D.co={c:V.s9.x1J,a:V.s9.uzc,s:V.s9.nAA});return D};
zOd=function(V){var D,f,n={yv:V.c,h8n:V.e,d6D:(D=V.mc)!=null?D:!1,z0I:(f=V.me)!=null?f:!1};V.co&&(n.s9={x1J:V.co.c,uzc:V.co.a,nAA:V.co.s});return n};
ROZ=function(V){return function(){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V(),2);D=f.yieldResult;return f.return({f:function(){return D.v1j()},
c:function(n){return D.bwn(n)},
m:function(n){return D.rJ(zOd(n))},
mws:function(n){return D.j3C(zOd(n))}})})}};
CWc=function(V,D){var f=u1Z();f=f===void 0?"bevasrsg":f;D={s:function(J){var H;return V.snapshot(Object.assign({},J.c&&{yv:J.c},J.s&&{d56:J.s},{eOZ:(H=J.p)!=null?H:!0}))},
e:function(J){var H;return void((H=V.w3d)==null?void 0:H.call(V,J))},
c:function(J,H){return V.dxd(J,H)},
p:V.dLZ,l:function(){return V.pL3()},
wpc:D?ROZ(D):void 0};var n=window===window.top?window:dN9()?window:window.top,t=n[f];if(t){t.bevasrs=D;if(t.nqfbel!==void 0)for(f=_.r(t.nqfbel),n=f.next();!n.done;n=f.next())n=n.value,n(D);t.nqfbel=void 0}else t={},t=(t.bevasrs=D,t.nqfbel=void 0,t),n[f]=t};
XqF=function(V){var D=D===void 0?50:D;var f=[];_.Vh(V,qRZ,6,_.DC()).forEach(function(n){_.fJ(n,2)<=D&&f.push(_.fJ(n,1))});
return f};
E4L=function(V){var D=D===void 0?50:D;var f=[];_.Vh(V,qRZ,6,_.DC()).forEach(function(n){_.fJ(n,2)>D&&f.push(_.fJ(n,1))});
return f};
Aln=function(V){V.then(function(){},function(){})};
nJ=function(V){return{fieldType:1,fieldName:V}};
tl=function(V){return{fieldType:2,fieldName:V}};
_.Pq=function(V){return{fieldType:3,fieldName:V}};
aCY=function(){function V(){t[0]=1732584193;t[1]=4023233417;t[2]=2562383102;t[3]=271733878;t[4]=3285377520;Z=y=0}
function D(l){for(var G=H,F=0;F<64;F+=4)G[F/4]=l[F]<<24|l[F+1]<<16|l[F+2]<<8|l[F+3];for(F=16;F<80;F++)l=G[F-3]^G[F-8]^G[F-14]^G[F-16],G[F]=(l<<1|l>>>31)&4294967295;l=t[0];var k=t[1],d=t[2],z=t[3],C=t[4];for(F=0;F<80;F++){if(F<40)if(F<20){var A=z^k&(d^z);var O=1518500249}else A=k^d^z,O=1859775393;else F<60?(A=k&d|z&(k|d),O=2400959708):(A=k^d^z,O=3395469782);A=((l<<5|l>>>27)&4294967295)+A+C+O+G[F]&4294967295;C=z;z=d;d=(k<<30|k>>>2)&4294967295;k=l;l=A}t[0]=t[0]+l&4294967295;t[1]=t[1]+k&4294967295;t[2]=
t[2]+d&4294967295;t[3]=t[3]+z&4294967295;t[4]=t[4]+C&4294967295}
function f(l,G){if(typeof l==="string"){l=unescape(encodeURIComponent(l));for(var F=[],k=0,d=l.length;k<d;++k)F.push(l.charCodeAt(k));l=F}G||(G=l.length);F=0;if(y==0)for(;F+64<G;)D(l.slice(F,F+64)),F+=64,Z+=64;for(;F<G;)if(J[y++]=l[F++],Z++,y==64)for(y=0,D(J);F+64<G;)D(l.slice(F,F+64)),F+=64,Z+=64}
function n(){var l=[],G=Z*8;y<56?f(Q,56-y):f(Q,64-(y-56));for(var F=63;F>=56;F--)J[F]=G&255,G>>>=8;D(J);for(F=G=0;F<5;F++)for(var k=24;k>=0;k-=8)l[G++]=t[F]>>k&255;return l}
for(var t=[],J=[],H=[],Q=[128],T=1;T<64;++T)Q[T]=0;var y,Z;V();return{reset:V,update:f,digest:n,digestString:function(){for(var l=n(),G="",F=0;F<l.length;F++)G+="0123456789ABCDEF".charAt(Math.floor(l[F]/16))+"0123456789ABCDEF".charAt(l[F]%16);return G}}};
pqx=function(V,D){D=D===void 0?YRd:D;if(!$NY){var f;V=(f=V.navigator)==null?void 0:f.userAgentData;if(!V||typeof V.getHighEntropyValues!=="function"||V.brands&&typeof V.brands.map!=="function")return Promise.reject(Error("za"));iJY((V.brands||[]).map(function(t){var J=new SRx;J=_.lB(J,1,t.brand);return _.lB(J,2,t.version)}));
typeof V.mobile==="boolean"&&_.oV(WHX,2,V.mobile);$NY=V.getHighEntropyValues(D)}var n=new Set(D);return $NY.then(function(t){var J=WHX.clone();n.has("platform")&&_.lB(J,3,t.platform);n.has("platformVersion")&&_.lB(J,4,t.platformVersion);n.has("architecture")&&_.lB(J,5,t.architecture);n.has("model")&&_.lB(J,6,t.model);n.has("uaFullVersion")&&_.lB(J,7,t.uaFullVersion);return J.serialize()}).catch(function(){return WHX.serialize()})};
Jl=function(V,D,f,n){this.initialValue_=V;this.maxValue_=D;this.currBaseValue_=this.currValue_=V;this.randomFactor_=f||0;this.backoffFactor_=n||2};
rX=function(V){this.src=V;this.listeners={};this.typeCount_=0};
xNx=function(){for(var V;V=LHZ.remove();){try{V.fn.call(V.scope)}catch(D){nx(D)}IC9.put(V)}OJF=!1};
_.MBd=function(V){switch(V){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}};
hOx=function(V){switch(V){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""}};
_.UN9=function(){};
rN3=function(V,D,f,n,t){V=VQn(DqY(fJR(new _.Hq(1828,"0"),V),new nKU));D.length&&tQc(V,PbR(new oKU,D));n!==void 0&&(V.destinationUrl=n);t&&V.disableWithCredentials();var J=new JN3(1828,"","",!1,"",V.build());_.wX(J,V);var H=new Qh({flush:function(Q){try{J.flush(Q)}catch(T){f(T)}}});
H.addOnDisposeCallback(function(){setTimeout(function(){try{H.snapshotAndFlush()}finally{J.dispose()}})});
H.invocationLimit=1E5;H.flushInterval=3E4;H.JSC$7876_flushTimer.setInterval(3E4);return H};
Ts=function(){var V,D,f;return(f=(V=globalThis.performance)==null?void 0:(D=V.now)==null?void 0:D.call(V))!=null?f:Date.now()};
Tcc=function(V,D){if(V.disable)return new HGx;var f=D?XqF(D):[],n=V.w7,t=V.noF,J=V.aTu,H=V.destinationUrl,Q=V.atB;V=V.o8j;D=D==null?void 0:_.bW(D,wJ3,11);var T=T===void 0?50:T;D=(D==null?void 0:_.fJ(D,1))||0;n={w7:n,wQC:t,m48:J,destinationUrl:H,atB:Q,o8j:V,disableClearcutCredentialBinding:D>0&&T>=D};f=f===void 0?[]:f;return new QPX(n,f)};
bGY=function(V){if(!V)return null;V=_.KJ(V,2);return V===null||V===void 0?null:dQ(V)};
_.KKx=function(V){if(!V)return null;V=_.KJ(V,4);return V===null||V===void 0?null:_.rQ(V)};
jPY=function(V,D){return D?yNR(D):V?ZGn(V):Promise.resolve()};
yNR=function(V){return new Promise(function(D,f){var n=_.yh("SCRIPT"),t=_.KKx(V);_.Yx(n,t);n.onload=function(){_.ZC(n);D()};
n.onerror=function(){_.ZC(n);f(Error("Ka"))};
(jB("HEAD")[0]||document.documentElement).appendChild(n)})};
ZGn=function(V){return new Promise(function(D){var f=_.yh("SCRIPT");if(V){var n=_.KJ(V,6);n=n===null||n===void 0?null:_.Ee(n)}else n=null;_.a3(f,n);(jB("HEAD")[0]||document.documentElement).appendChild(f);_.ZC(f);D()})};
lW=function(V,D,f){var n,t=new Promise(function(J){n=setTimeout(J,D)});
return Promise.race([V.finally(function(){return void clearTimeout(n)}),
t.then(f)])};
lJF=function(V,D){try{return globalThis.sessionStorage.setItem(V,D),!0}catch(f){return!1}};
G4X=function(V,D,f,n){D=D===void 0?0:D;f=f===void 0?V.length:f;var t=0;for(n&&(t=G4X(n));D<f;D++)n=typeof V==="string"?V.charCodeAt(D):V[D],t=EKY(31,t)+n|0;return t};
ANY=function(V,D){return[G4X(V,0,V.length>>1,D),G4X(V,V.length>>1)]};
aJd=function(V){var D=_.r(ANY(V,Gs));V=D.next().value;D=D.next().value;return V.toString(16)+D.toString(16)};
Y0R=function(V,D){var f=ANY(D);V=new Uint32Array(V.buffer);D=V[0];var n=_.r(f);f=n.next().value;n=n.next().value;for(var t=1;t<V.length;t+=2){for(var J=D,H=t,Q=f,T=n,y=0;y<22;y++)H=H>>>8|H<<24,H+=J|0,H^=Q+38293,J=J<<3|J>>>29,J^=H,T=T>>>8|T<<24,T+=Q|0,T^=y+38293,Q=Q<<3|Q>>>29,Q^=T;J=[J,H];V[t]^=J[0];t+1<V.length&&(V[t+1]^=J[1])}};
$qR=function(V,D,f,n,t){var J=(4-(Gs.length+f.length)%4)%4,H=new Uint8Array(4+J+Gs.length+4+f.length),Q=new DataView(H.buffer),T=0;Q.setUint32(T,Math.random()*4294967295);T=T+4+J;H.set(Gs,T);T+=Gs.length;Q.setUint32(T,t);H.set(f,T+4);Y0R(H,n);return V.insert(D,function(y){return void globalThis.sessionStorage.removeItem(y)})?lJF(D,_.V3(H))?"s":"t":"i"};
iGY=function(V,D){var f=globalThis.sessionStorage.getItem(V);if(!f)return["m"];try{var n=_.rP(f);Y0R(n,D)}catch(t){return globalThis.sessionStorage.removeItem(V),["c"]}for(D=4;D<7&&n[D]===0;)D++;for(f=0;f<Gs.length;f++)if(n[D++]!==Gs[f])return globalThis.sessionStorage.removeItem(V),["d"];f=(new DataView(n.buffer)).getUint32(D);return Math.floor(Date.now()/1E3)>=f?(globalThis.sessionStorage.removeItem(V),["e"]):["a",new Uint8Array(n.buffer,D+4)]};
S0d=function(V){return globalThis.TextEncoder?(new TextEncoder).encode(V):_.eB(V)};
WKd=function(V){var D=V,f;return function(){if(D){var n=D;D=void 0;f=n.apply(this,arguments)}return f}};
LKR=function(V){return i6(function(D){if(D instanceof V)return!0;var f,n,t=D==null?void 0:(f=D.ownerDocument)==null?void 0:(n=f.defaultView)==null?void 0:n[V.name];return pJL(t)&&D instanceof t})};
_.gX=function(V,D,f){_.cq.call(this);this.JSC$8091_listener_=V;this.JSC$8091_interval_=D||0;this.handler_=f;this.callback_=(0,_.F1)(this.JSC$8093_doAction_,this)};
_.vq=function(V){V=IJR(V);return _.rQ(V)};
IJR=function(V){return V===null?"null":V===void 0?"undefined":V};
xqc=function(V){if(V&&V.focus)if(V!==document.activeElement)V.focus();else return OG3(function(){return _.w(function(D){document.activeElement&&document.activeElement.blur();return D.return(OG3(function(){V.focus()}))})})};
_.MQd=function(V){var D=D===void 0?5:D;setTimeout(function(){var f;return _.w(function(n){n.nextAddress==1&&(f=document.activeElement);if(n.nextAddress!=5)return(document.activeElement===f||document.activeElement===document.body)&&D>=0&&V?_.b(n,xqc(V),5):n.jumpTo(0);if(document.activeElement===V)return n.return();V=V.parentElement;--D;return n.jumpTo(2)})},15)};
OG3=function(V){return new Promise(function(D){requestAnimationFrame(function(){D(V())})})};
Uqc=function(V){if(_.k4)V(_.k4);else{var D;((D=hXd)!=null?D:hXd=[]).push(V)}};
Bq=function(){!_.k4&&_.sR&&_.Vdx(_.sR());return _.k4};
_.Vdx=function(V){_.k4=V;var D;(D=hXd)==null||D.forEach(Uqc);hXd=void 0};
_.dX=function(V){_.k4&&_.k4.beforeLoadModuleCode(V)};
_.uW=function(){_.k4&&_.k4.JSC$9079_setLoaded()};
NN=function(V){return XV(V)?Number(V):String(V)};
DlR=function(V){this.action=V;this.wfv=!1};
f9c=function(V,D){DlR.call(this,"set-drive-options");this.appId=V;this.appOrigin=D};
nwZ=function(V){DlR.call(this,"visibility");this.visible=V};
tdY=function(V,D,f){mH.call(this,V,D,f)};
Pa3=function(V){zs.call(this,V)};
owY=function(V){V=V&&V.getWindow()||window;return V.gadgets&&V.gadgets.rpc};
rh9=function(V,D){var f=D&&D.getWindow()||window;if(owY(D))V();else if(JhZ)JhZ.push(V);else var n=JhZ=[V],t=f.setInterval(function(){if(owY(D)){f.clearInterval(t);for(var J=0;J<n.length;J++)n[J]();JhZ=null}},100)};
w9Y=function(V,D){var f=new RV(V);_.wX(D,f);var n={passive:!1};D.listen(f,"mousewheel",function(t){return void HZ9(V,t)},n).listen(V,"scroll",function(t){return void HZ9(V,t)},n)};
HZ9=function(V,D){var f;a:{for(f=D.target;f;){if(f.nodeType==1){var n=_.X1(f,"overflowY");if(n=="auto"||n=="scroll")break a}f=f.parentNode}f=null}if(!f||!_.ER(V,f)||f.scrollHeight==f.clientHeight||D.deltaY>0&&Math.abs(f.scrollTop-(f.scrollHeight-f.clientHeight))<=1||D.deltaY<0&&f.scrollTop==0)D.preventDefault(),D.stopPropagation()};
Wq=function(V,D,f,n,t,J,H,Q,T){Q=Q===void 0?!1:Q;T=T===void 0?!1:T;mH.call(this,void 0,void 0,void 0);mH.call(this,J?J+" picker modal-dialog":"picker modal-dialog",!0,f);_.Al(V,"protocol");this.iframeManager_=new Q9L;this.targetId_=aV();this.rpcToken_=aV();V=_.Y4(V);_.$4(V,"hostId");f=_.$4(V,"parent");this.useGapi_=!T&&!0||(f==null?void 0:f.includes("onepick.corp.google.com"));Q&&_.iW(V,"fv2","true");this.setUrl(V.toString());this.preferredDialogWidth_=n;this.preferredDialogHeight_=t;n!==void 0||
t!==void 0?n=!0:(n=_.$4(_.Y4(V.toString()),"hostId"),TjY||(TjY=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),n=!TjY.has(n));this.autoSizeDialog_=n;this.JSC$8281_gadgetsDomHelper_=H||this.JSC$8232_dom_;D&&(H=this.JSC$8281_gadgetsDomHelper_,D=_.$4(_.Y4(this.JSC$8283_url_),"grugl")=="true"?bZd:K0Z,owY(H)||(H=H||jC(document),n=H.createElement("SCRIPT"),_.Yx(n,D),n.type="text/javascript",H.JSC$7414_document_.body.appendChild(n)));
V=V.toString();D=null;H=V.indexOf("/picker?");H>-1?D=V.substring(0,H+8-1):Jc(V,"/picker")&&(D=V);D&&this.setRelayUrl(D+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(V=this.buttons_,V.JSC$8266_element_=this.buttonEl_,V.render()):_.$x(this.buttonEl_,yhc),_.SB(this.buttonEl_,!!this.buttons_))};
_.G2Z=function(V){var D=D===void 0?ZZZ:D;var f=_.fo(V),n=function(J){J=_.r(J);J.next();J=pJ(J);return D(f,J)},t=function(J){var H=_.r(J);
J=H.next().value;H=pJ(H);return V.apply(J,H)};
return function(){var J=_.gQ.apply(0,arguments),H=this||_.fx,Q=j9Y.get(H);Q||(Q={},j9Y.set(H,Q));return l9U(Q,[this].concat(_.sz(J)),t,n)}};
LJ=function(V){var D={};V=V.replace(/\r/g,"").split("\n");for(var f=0;f<V.length;f++){var n=V[f],t=n.indexOf(":");t<0||(D[n.substring(0,t)]=n.substring(t+2,n.length))}return D};
IV=function(V,D,f){f=f===void 0?function(){}:f;
return V?D():f()};
_.chc=function(V){var D;return((D=eUR.documentOverride)!=null?D:V).__wizdispatcher};
_.x4=function(V){var D=OR;OR=V;return D};
gwR=function(V){return V===F09||(V==null?void 0:V.name)==="\u0275NotFound"};
vw9=function(V,D){var f;if((f=V)==null?0:f.isDisposed)throw Error("ob`"+String(V.debugName));for(;V!==void 0;){f=V;if(f.retrieve)return f.retrieve(D,{optional:!0});V=V.parent}return F09};
MN=function(V){return{"\u0275prov":{providedIn:"root",token:Symbol(V),factory:void 0,value:void 0}}};
_.k2d=function(V){var D=OR;if(!D){switch(V===void 0?3:V){case 0:V=Error("nb");break;case 1:V=Error("pb");break;case 2:V=Error("qb");break;default:V=Error("rb")}throw V;}return D};
s9Y=function(V){var D=_.x4(V);V={};return V[Symbol.dispose]=function(){_.x4(D)},V};
BjR=function(V,D){V.disposables||(V.disposables=[]);V.disposables.push(D)};
hl=function(V){var D=OR;D&&!D.isDisposed&&(BjR(D,V),V.parent=D)};
uBc=function(V){if(V.disposables){for(var D=_.r(V.disposables),f=D.next();!f.done;f=D.next())f=f.value,typeof f==="function"?f():dln(f);V.disposables.length=0}};
dln=function(V){if(!V.isDisposed){V.isDisposed=!0;var D;(D=V[Symbol.dispose])==null||D.call(V);delete V.parent;uBc(V)}};
AhY=function(V){var D={retrieve:function(f){switch(f.\u0275prov.token){case Njx.\u0275prov.token:var n=V.asyncDeps;break;case mlU.\u0275prov.token:n=V.rootElement;break;case zU9.\u0275prov.token:n=V.modelRootElement;break;case RUc.\u0275prov.token:n=V.appContext;break;case CaR.\u0275prov.token:n=V.rendererData;break;case qGR.\u0275prov.token:n=V.injectingConstructor;break;case X9R.\u0275prov.token:n=V.dispatcher}if(n)f=n;else a:{for(n=D.parent;n;){var t=n;if(t.retrieve){f=t.retrieve(f);break a}n=
n.parent}n=f.\u0275prov.token;t=EwL[n];t!==void 0?f=t:(t=f.\u0275prov.providedIn,f.\u0275prov.factory?(f=f.\u0275prov.factory(),n&&t==="root"&&(EwL[n]=f)):f=F09)}return f}};
hl(D);return D};
a9Z=function(){var V=_.k2d(1),D=vw9(V,RUc);gwR(D)&&(V=vw9(V,X9R),gwR(V)||V.getOptionalAppContext())};
YGF=function(V){if(typeof document!=="undefined"&&document&&document.getElementById&&(V=document.getElementById(V))){var D=V.tagName.toUpperCase();if(D=="SCRIPT"||D=="LINK")return V}return null};
iZ3=function(V,D){if((V=V===void 0?"":V)&&D)throw Error("xb");var f="";var n=_.fx._F_jsUrl;(V=D||YGF(V))&&(f=V.src?V.src:V.getAttribute("href"));if(n&&f){if(n!=f)throw Error("yb`"+n+"`"+f);f=n}else f=n||f;if(!$lY(f))throw Error("zb");return f};
L0c=function(){if(!SGZ){SGZ=!0;try{var V=iZ3(_.fx._F_jsUrl?"":"base-js")}catch(n){return}var D=W0Z(p93(V)),f=Object.keys(D);f.length!==0&&Uqc(function(n){for(var t=_.r(f),J=t.next();!J.done;J=t.next()){J=J.value;for(var H=_.r(Object.keys(D[J])),Q=H.next();!Q.done;Q=H.next())n.addExtraEdge(J,Q.value)}})}};
OZY=function(){var V=Object.assign({},I9F);Object.getOwnPropertyNames(I9F).forEach(function(D){UR[D]!==void 0&&(V[D]=UR[D])});
return V};
xl9=function(V,D){if(UR.enablePerformanceTiming){var f,n;(n=(f=performance).mark)==null||n.call(f,V+"Start__"+D)}};
MdY=function(V,D){if(UR.enablePerformanceTiming){var f,n;(n=(f=performance).measure)==null||n.call(f,V+"__"+D,V+"Start__"+D)}};
hUU=function(V,D,f){var n;return V&&D?V+"__"+D:(n=V!=null?V:D)!=null?n:f};
V1R=function(V,D){var f=Object.create(UlY);f.debugName=D;!OR||hl(f);D=_.x4(f);try{V(f)}finally{_.x4(D)}return function(){return void dln(f)}};
fY9=function(V){return VT(V)&&D4c in V};
nJc=function(V,D){return Object.is(V,D)};
fG=function(V){var D=DJ;DJ=V;return D};
JU9=function(V){if(nG)throw Error("da");if(DJ!==null){var D=DJ.nextProducerIndex++;t1R(DJ);D<DJ.producerNode.length&&DJ.producerNode[D]!==V&&tN(DJ)&&PEx(DJ.producerNode[D],DJ.producerIndexOfThis[D]);DJ.producerNode[D]!==V&&(DJ.producerNode[D]=V,DJ.producerIndexOfThis[D]=tN(DJ)?oJR(V,DJ,D):0);DJ.producerLastReadVersion[D]=V.version}};
wIZ=function(V){if(!tN(V)||V.dirty)if(V.dirty||V.lastCleanEpoch!==rU3)(V.producerMustRecompute(V)||HHL(V))&&V.producerRecomputeValue(V),V.dirty=!1,V.lastCleanEpoch=rU3};
QT9=function(V){if(V.liveConsumerNode!==void 0){var D=nG;nG=!0;try{for(var f=_.r(V.liveConsumerNode),n=f.next();!n.done;n=f.next()){var t=n.value;t.dirty||(V=void 0,t.dirty=!0,QT9(t),(V=t.consumerMarkedDirty)==null||V.call(t,t))}}finally{nG=D}}};
TOd=function(){var V;return((V=DJ)==null?void 0:V.consumerAllowSignalWrites)!==!1};
bHc=function(V){V&&(V.nextProducerIndex=0);return fG(V)};
KLn=function(V,D){fG(D);if(V&&V.producerNode!==void 0&&V.producerIndexOfThis!==void 0&&V.producerLastReadVersion!==void 0){if(tN(V))for(D=V.nextProducerIndex;D<V.producerNode.length;D++)PEx(V.producerNode[D],V.producerIndexOfThis[D]);for(;V.producerNode.length>V.nextProducerIndex;)V.producerNode.pop(),V.producerLastReadVersion.pop(),V.producerIndexOfThis.pop()}};
HHL=function(V){t1R(V);for(var D=0;D<V.producerNode.length;D++){var f=V.producerNode[D],n=V.producerLastReadVersion[D];if(n!==f.version)return!0;wIZ(f);if(n!==f.version)return!0}return!1};
oJR=function(V,D,f){yUL(V);if(V.liveConsumerNode.length===0&&V.producerNode!==void 0)for(var n=0;n<V.producerNode.length;n++)V.producerIndexOfThis[n]=oJR(V.producerNode[n],V,n);V.liveConsumerIndexOfThis.push(f);return V.liveConsumerNode.push(D)-1};
PEx=function(V,D){yUL(V);if(V.liveConsumerNode.length===1&&V.producerNode!==void 0)for(var f=0;f<V.producerNode.length;f++)PEx(V.producerNode[f],V.producerIndexOfThis[f]);f=V.liveConsumerNode.length-1;V.liveConsumerNode[D]=V.liveConsumerNode[f];V.liveConsumerIndexOfThis[D]=V.liveConsumerIndexOfThis[f];V.liveConsumerNode.length--;V.liveConsumerIndexOfThis.length--;D<V.liveConsumerNode.length&&(f=V.liveConsumerIndexOfThis[D],V=V.liveConsumerNode[D],t1R(V),V.producerIndexOfThis[f]=D)};
tN=function(V){var D,f;return V.consumerIsAlwaysLive||((f=V==null?void 0:(D=V.liveConsumerNode)==null?void 0:D.length)!=null?f:0)>0};
t1R=function(V){V.producerNode!=null||(V.producerNode=[]);V.producerIndexOfThis!=null||(V.producerIndexOfThis=[]);V.producerLastReadVersion!=null||(V.producerLastReadVersion=[])};
yUL=function(V){V.liveConsumerNode!=null||(V.liveConsumerNode=[]);V.liveConsumerIndexOfThis!=null||(V.liveConsumerIndexOfThis=[])};
jTX=function(V){var D=Object.create(ZHL);D.computation=V;V=function(){wIZ(D);JU9(D);if(D.value===oP)throw D.error;return D.value};
V[JN]=D;return V};
cUL=function(V,D){var f=Object.create(lY9);f.value=V;D!==void 0&&(f.equal=D);V=function(){JU9(f);return f.value};
V[JN]=f;return[V,function(n){return G59(f,n)},
function(n){TOd()||eAn(f);G59(f,n(f.value))}]};
G59=function(V,D){TOd()||eAn(V);if(!V.equal(V.value,D)){V.value=D;V.version++;rU3++;QT9(V);var f;(f=FLR)==null||f(V)}};
rc=function(V){var D=fG(null);try{return V()}finally{fG(D)}};
_.HJ=function(V,D,f){f=f===void 0?"":f;V=cUL(V,D==null?void 0:D.equals);var n=V[0],t=n[JN];t.debugName=hUU(D==null?void 0:D.debugName,f,"[signal]");if(!UR.enablePerformanceTiming)return V;var J=V[1],H=V[2];return[n,function(Q){gJZ(function(){return void J(Q)},t)},
function(Q){gJZ(function(){return void H(Q)},t)}]};
gJZ=function(V,D){xl9("signalSet",D.debugName);try{V()}finally{MdY("signalSet",D.debugName)}};
k5n=function(V,D){var f=_.r(_.HJ(V,void 0,"cPpJzc"));V=f.next().value;f=f.next().value;V[vJY]=f;V[QT]=D;return V};
sTL=function(V){return!!V&&typeof V==="object"&&Object.getPrototypeOf(V)===Object.prototype};
BOZ=function(V){return typeof V==="function"&&vJY in V&&typeof V[vJY]==="function"};
d49=function(V,D){Object.defineProperty(V,QT,{get:function(){return D}})};
bb=function(V,D){if(T4(V)){var f=V.map(function(J){return bb(J,D)});
d49(f,D);return f}if(sTL(V)){f={};V=_.r(Object.entries(V));for(var n=V.next();!n.done;n=V.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;f[n]=bb(t,D)}d49(f,D);return f}return k5n(V,D)};
uTc=function(V){if(T4(V))return V.map(function(t){return uTc(t)});
if(sTL(V)){var D={};V=_.r(Object.entries(V));for(var f=V.next();!f.done;f=V.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;D[f]=uTc(n)}return D}return BOZ(V)?V():V};
m4n=function(){var V={height:0,width:0};if(!sTL(V))throw Error("Lb");var D=Symbol("Mb");return[bb(V,D),function(f,n){if(f[QT]===D)if(typeof n==="function"){var t=[].concat(_.sz(uTc(f)));n=n(t)||t;NOF(f,[].concat(_.sz(n)))}else NOF(f,n);else throw Error("Nb");}]};
NOF=function(V,D){if(BOZ(V))V[vJY](D);else if(T4(V)&&T4(D))D=bb(D,V[QT]),V.length=0,V.push.apply(V,_.sz(D));else if((sTL(V)||T4(V))&&(T4(D)||typeof D==="object"&&D!==null)){D=_.r(Object.entries(D));for(var f=D.next();!f.done;f=D.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;var t=V,J=t[f];Object.hasOwn(V,f)?NOF(J,n):t[f]=bb(n,V[QT])}}else throw Error("Ob");};
zAF=function(V){return Object.create(Object.assign({},KG,V))};
CE9=function(){var V;return(V=RAX)!=null?V:RAX=zAF({consumerAllowSignalWrites:!0})};
_.yT=function(V,D,f){f=f===void 0?"":f;V=jTX(V);var n=V[JN];n.debugName=hUU(D==null?void 0:D.debugName,f,"[computed]");(D==null?void 0:D.equals)!=null&&(n.equal=D.equals);return V};
ZJ=function(V){var D=fG(qbY);try{V()}finally{fG(D)}};
$4U=function(V){if(!V.isDisposed)switch(V.effectType){case jQ:XIn.schedule(V);break;case EJ9:AUF.schedule(V);break;case aY3:YbF.schedule(V);break;default:_.JZ(V.effectType)}};
SbZ=function(V){iHc.push(V);return function(){var D=iHc.indexOf(V);D!==-1&&iHc.splice(D,1)}};
pIF=function(){if(lb>0)UR.flushRenderEffectsDuringRender&&XIn.flush();else for(var V=_.r(WLZ),D=V.next();!D.done;D=V.next())D.value.flush()};
IYc=function(V){G4=!0;try{for(var D=_.r(V),f=D.next();!f.done;f=D.next()){for(var n=f.value,t=[n],J=n;J.parent!==void 0;)J=J.parent,LLF(J)&&V.has(J)&&t.push(J);for(;t.length>0;){var H=t.pop();V.delete(H);H.run()}}}finally{G4=!1}};
eQ=function(V){lb--;if(V){V=_.r(WLZ);for(var D=V.next();!D.done;D=V.next())D.value.clear()}else lb>0||G4&&!UR.flushRenderEffectsDuringRender||pIF()};
x4Y=function(V,D,f){var n=OHd(V);cJ={name:f?n+" ("+f+")":n,isReactive:V.componentType!==FY,parent:cJ};V=D();cJ=cJ.parent;return V};
vJ=function(){var V=cJ;return V?V.isReactive:!1};
s0=function(V,D){var f=cJ;D&&(cJ=D);try{return V()}catch(J){V=J;kK(V,cJ);if(V!==M1L){hAU=cJ;D=[];for(var n=OR;n;){var t=void 0;D.push((t=n.debugName)!=null?t:"[context]");t=void 0;n=(t=n.parent)!=null?t:null}U43=D.reverse()}M1L=V;throw V;}finally{cJ=f}};
kK=function(V,D){try{var f=Vkd(D);if(f&&!V.componentStack&&(V.componentStack=f,UR.enableComponentStacksInErrorMessages)){var n=V.message+"\n\nComponent stack: "+f;V.stack&&(V.stack=V.stack.replace(V.message,n));V.message=n}}catch(t){}};
Vkd=function(V){if(VT(V)&&V.name!==void 0&&V.isReactive!==void 0&&V.parent!==void 0||V===null){for(var D=0,f="";D<20&&V;)f+=V.name+" > ",V=V.parent,D++;V=f.slice(0,-3)}else if(UR.enableContextBasedComponentStacks){a:{for(V=V===void 0?OR:V;V;){if(fY9(V))break a;D=void 0;V=(D=V.parent)!=null?D:null}V=null}V=V.getComponentStack().slice(0,20).join(" > ")}else V="";return V};
OHd=function(V){return V.debugName||V.name||"[component]"};
DYZ=function(V,D,f){D=Object.create(D);D.effectFn=V;f&&(D.debugName=f);hl(D);D.componentStack=cJ;return D};
_.BJ=function(V,D){V=DYZ(V,fdL,D);$4U(V)};
_.dc=function(V){var D=OR;if(D){var f=cJ;BjR(D,function(){var n=fG(CE9());try{s0(function(){return void V()},f)}catch(t){throw UR.enableContextBasedComponentStacks&&kK(t),t;
}finally{fG(n)}})}};
ub=function(V,D){var f={};(D===void 0||D)&&hl(f);D=_.x4(f);try{V(f)}finally{_.x4(D)}return function(){return void dln(f)}};
_.Nq=function(V){return typeof V==="function"?V():(V==null?0:V[neX])?V.get():V};
_.mK=function(V,D){V=DYZ(V,tkZ,D);$4U(V)};
PkY=function(V){if(OR)throw Error("sb");ub(V,!1)};
z4=function(V,D){V=_.x4(V);try{return rc(D)}finally{_.x4(V)}};
RP=function(V,D){var f=Vkd(hAU),n,t;var J=(t=(n=U43)==null?void 0:n.slice())!=null?t:[];D={componentStack:f,contextTrace:J,errorSeverity:3,featureFlags:OZY(),tagName:D};return[V,D]};
rBZ=function(V,D,f){if(Object.hasOwnProperty.call(oex,V)&&(V=oex[V],Object.hasOwnProperty.call(V,D)&&(V=V[D],V instanceof Array))){for(var n=null,t=!1,J=0,H=V.length;J<H;++J){var Q=V[J],T=Q.contingentAttribute;if(!T)return Q.contract;n===null&&(n={});T=Object.hasOwnProperty.call(n,T)?n[T]:n[T]=f(T);if(T===Q.requiredValue)return Q.contract;T==null&&(t=!0)}if(t)return null}D=JBx[D];return typeof D==="number"?D:null};
QO3=function(V,D,f){var n=null;(V=Hhd[V])&&(n=V[D]);return typeof n!=="number"&&((V=Hhd["*"])&&(n=V[D]),typeof n!=="number")?!1:!0===wwX[n][String(f).toLowerCase()]};
bhZ=function(V,D){D=rBZ(V.toLowerCase(),D,function(){var n;(n=UR.handleError)==null||n.call.apply(n,[UR].concat(_.sz(RP(Error("Tb"),V.toLowerCase()))))});
if(D===null)return null;var f;return(f=TmZ[D])!=null?f:null};
KWR=function(V,D,f){if(f===null||f===void 0)return f;D=D.toLowerCase();V=bhZ(V,D);return V===null?f:V(D,f)};
yBY=function(){};
CG=function(V,D){for(;V.length>D;)V.pop()};
Zhx=function(V){V=Array(V);CG(V,0);return V};
jOc=function(V,D,f){if(f==null)V.removeAttribute(D);else{var n;(n=D.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":D.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?V.setAttributeNS(n,D,f):V.setAttribute(D,f)}};
ldL=function(V,D,f){V[D]=f};
etF=function(V,D,f){V=V.style;if(typeof f==="string")V.cssText=f;else{V.cssText="";for(var n in f)if(GVU.call(f,n)){D=V;var t=n,J=f[n];t.indexOf("-")>=0?D.setProperty(t,J):D[t]=J}}};
cBU=function(V,D,f){var n=typeof f;n==="object"||n==="function"?V[D]=f:jOc(V,D,f)};
FWn=function(){var V=new yBY;V[E0.default]=cBU;V.style=etF;return V};
ge9=function(V,D,f,n){(n[D]||n[E0.default])(V,D,f)};
kV9=function(V,D,f){D=new veU(D,f);return V.__incrementalDOMData=D};
AN=function(V,D){if(V.__incrementalDOMData)return V.__incrementalDOMData;var f=V.nodeType===1?V.localName:V.nodeName,n=V.nodeType===1?V.getAttribute("key"):null;D=kV9(V,f,V.nodeType===1?n||D:null);if(V.nodeType===1&&(V=V.attributes,f=V.length)){n=D._attrsArr||(D._attrsArr=Zhx(f*2));for(var t=0,J=0;t<f;t+=1,J+=2){var H=V[t],Q=H.value;n[J]=H.name;n[J+1]=Q}}return D};
sO9=function(V,D,f,n,t){return D==f&&n==t};
BmY=function(V){for(var D=aP,f=YK();f!==V;){var n=f.nextSibling;D.removeChild(f);$K.deleted.push(f);f=n}};
YK=function(){return ib?ib.nextSibling:aP.firstChild};
SQ=function(){ib=YK()};
Nmx=function(V,D,f){SQ();var n;a:{if(n=ib){do{var t=n,J=V,H=D,Q=AN(t,H);if(dY9(t,J,Q.nameOrCtor,H,Q.key))break a}while(D&&(n=n.nextSibling))}n=null}n||(V==="#text"?(f=WJ.createTextNode(""),kV9(f,"#text",null),V=f):(n=WJ,t=aP,typeof V==="function"?n=new V:n=(t=V==="svg"?"http://www.w3.org/2000/svg":V==="math"?"http://www.w3.org/1998/Math/MathML":t==null||AN(t).nameOrCtor==="foreignObject"?null:t.namespaceURI)?n.createElementNS(t,V):n.createElement(V),kV9(n,V,D),V=n,f&&V.setAttribute("nonce",f)),$K.created.push(V),
n=V);f=n;if(f!==ib){if(uv9.indexOf(f)>=0)for(V=aP,D=f.nextSibling,n=ib;n!==null&&n!==f;)t=n.nextSibling,V.insertBefore(n,D),n=t;else aP.insertBefore(f,ib);ib=f}};
mYd=function(V,D,f){Nmx(V,D,f);aP=ib;ib=null;return aP};
zt3=function(){BmY(null);ib=aP;aP=aP.parentNode};
pG=function(){ib=aP.lastChild};
qi3=function(V,D){D=D===void 0?{}:D;var f=D.matches===void 0?sO9:D.matches;return function(n,t,J){var H=$K,Q=WJ,T=uv9,y=LG,Z=IP,l=ib,G=aP,F=dY9;WJ=n.ownerDocument;$K=new Rt9(n);dY9=f;LG=[];IP=[];ib=null;var k=aP=n.parentNode,d,z=Ck3.call(n);if((d=z.nodeType===11||z.nodeType===9?z.activeElement:null)&&n.contains(d)){for(z=[];d!==k;)z.push(d),d=d.parentNode||(k?d.host:null);k=z}else k=[];uv9=k;try{return V(n,t,J)}finally{n=$K,O0&&n.deleted.length>0&&O0(n.deleted),WJ=Q,$K=H,dY9=F,LG=y,IP=Z,ib=l,aP=G,
uv9=T}}};
XwR=function(V,D,f,n){xK.push(ge9);xK.push(V);xK.push(D);xK.push(f);xK.push(n)};
ABL=function(V,D,f){var n=IP;D=D._attrsArr||(D._attrsArr=Zhx(n.length));for(var t=!D.length||!1,J=0;J<n.length;J+=2){var H=n[J];if(t)D[J]=H;else if(D[J]!==H)break;var Q=n[J+1];if(t||D[J+1]!==Q)D[J+1]=Q,XwR(V,H,Q,f)}if(J<n.length||J<D.length){for(J=t=J;J<D.length;J+=2)Mq[D[J]]=D[J+1];for(J=t;J<n.length;J+=2)t=n[J],H=n[J+1],Mq[t]!==H&&XwR(V,t,H,f),D[J]=t,D[J+1]=H,delete Mq[t];CG(D,n.length);for(var T in Mq)XwR(V,T,void 0,f),delete Mq[T]}V=Eec;Eec=f=xK.length;for(T=V;T<f;T+=5)(0,xK[T])(xK[T+1],xK[T+
2],xK[T+3],xK[T+4]);Eec=V;CG(xK,V);CG(n,0)};
hN=function(V){Nmx("#text",null);var D=ib;var f=AN(D);if(f.text!==V){f=f.text=V;for(var n=1;n<arguments.length;n+=1)f=(0,arguments[n])(f);D.data!==f&&(D.data=f)}};
pwY=function(V,D,f){if(f===!1&&adZ.has(D))jOc(V,D,null);else if(D!=="idomKey"&&D!=="skip"&&D!=="skipchildren"&&D!=="children"&&D!=="el")if(D.startsWith("on")){if(D[2]!==":")throw Error("Sb`"+D);if(f===void 0||f===null){var n;(n=UR.handleError)==null||n.call.apply(n,[UR].concat(_.sz(RP(Error("Xb`"+D),V.tagName))));V[D]=void 0}else{var t=D.slice(3);n=vJ();if(t==="jsaction"){f=_.r(Array.isArray(f)?f:[f]);for(var J=f.next();!J.done;J=f.next()){J=J.value;if(typeof J!=="object"||J===null||typeof J.selfReg!==
"function")throw Error("$b`"+D);J.selfReg(0,V,n?_.dc:function(){})}}else{if(typeof f!=="object"||f===null)throw Error("Yb`"+D+"`"+typeof f);
if(typeof f.getFn!=="function")throw Error("Zb`"+D+"`"+Object.keys(f));if(f.selfReg)f.selfReg(0,V,t,n?_.dc:function(){});
else if(n&&V["on"+t]===void 0){var H=f.getFn(0);V.addEventListener(t,H);_.dc(function(){return void V.removeEventListener(t,H)})}else if(n||!YiY.includes(t))V["on"+t]=f.getFn(0)}}}else{if(D.startsWith("data-")&&typeof f==="string")try{f=$YY(f)}catch(Q){f="zSoyz"}typeof f!=="function"||V._disposeEffects!=null?((n=D.startsWith("prop:"))&&(D=D.slice(5)),UR.enableAttributeSanitization&&(n&&ihY(V.tagName)||(f=KWR(V.tagName,D,f))),D==="style"?("function"==typeof _.U0&&f instanceof _.U0&&(f=f.toString()),
Si9(V,D,f)):n?V[D]=f:WWZ(V,D,f)):(V._signalProps||(V._signalProps=[]),V._signalValues||(V._signalValues=[]),V._signalProps.push(D))}};
LWF=function(V,D,f){f=(f===void 0?{}:f).isReactive;if(D==null?0:D.el){var n=D.el;if(typeof n==="function")n(V);else{var t;(t=n.onRender)==null||t.call(n,V);V._disposeRef||(V._disposeRef=function(){var J;(J=n.onUnmount)==null||J.call(n);delete V._disposeRef},f&&_.dc(function(){var J;
(J=V._disposeRef)==null||J.call(V)}))}}};
ihY=function(V){return V.length>0&&V.includes("-")&&!IdF.includes(V.toLowerCase())};
OhZ=function(V){return VT(V)&&D9 in V};
xYL=function(V){return OhZ(V)?V[D9].flattened:V};
Mk9=function(V,D){var f=_.gQ.apply(2,arguments),n;D=(n=D)!=null?n:{};n={};return n.type=V,n.props=D,n.children=f,n[nZ]=!0,n};
_.th=function(V){return V.children};
P9=function(V){var D=htc!==Mk9;htc=V?UY9:Mk9;return D};
_.o9=function(V){return _.VV(V)?"nodeType"in V:!1};
Jh=function(){return document.createTextNode("")};
rj=function(V){V=document.createTextNode(String(V));V._isSignalTextNode=!0;return V};
DGX=function(V){return V!=null&&V.contentKind===H9||V instanceof BS||Ved(V)};
fsd=function(V){var D=document.createElement("div");if(Ved(V)&&bGY(V))_.$x(D,bGY(V));else if(V instanceof BS)_.$x(D,V);else if(V!=null&&V.contentKind===H9){if(V.contentKind!==H9)throw Error("Wb");V=dQ(V.toString());_.$x(D,V)}V=_.r(D.childNodes);for(var f=V.next();!f.done;f=V.next())f.value._isSafeOrSanitizedHtmlNode=!0;return D};
wj=function(V){V=typeof V;return V==="string"||V==="number"||V==="boolean"};
nb3=function(V){return V instanceof JL||Kc(V)||"function"==typeof _.WS&&V instanceof _.WS||"function"==typeof _.U0&&V instanceof _.U0};
ten=function(V,D){var f=V.parentElement;if(!f)return D;f.replaceChild(D,V);return D};
PNR=function(V,D){var f=V[0].parentElement;if(f)if(V[0].previousSibling||V[V.length-1].nextSibling){f.insertBefore(D,V[0]);for(var n=V.length-1;n>=0;n--)f.removeChild(V[n])}else f.textContent="",f.appendChild(D);return D};
ob3=function(V,D){if(V[0].parentElement)for(var f=V[0].parentElement,n=D.length,t=V.length,J=n,H=0,Q=0,T=V[t-1].nextSibling,y=null;H<t||Q<J;)if(V[H]===D[Q])H++,Q++;else{for(;V[t-1]===D[J-1];)t--,J--;if(t===H)for(var Z=J<n?Q?D[Q-1].nextSibling:D[J-Q]:T;Q<J;){var l=D[Q++];f.insertBefore(l,Z)}else if(J===Q)for(;H<t;)Z=V[H],y&&y.has(Z)||f.removeChild(Z),H++;else if(V[H]===D[J-1]&&D[Q]===V[t-1])Z=V[--t].nextSibling,f.insertBefore(D[Q++],V[H++].nextSibling),f.insertBefore(D[--J],Z),V[t]=D[J];else{if(!y)for(y=
new Map,Z=Q;Z<J;)y.set(D[Z],Z++);Z=y.get(V[H]);if(Z==null)f.removeChild(V[H]),H++;else if(Q<Z&&Z<J){l=H;for(var G=1,F=void 0;++l<t&&l<J&&(F=y.get(V[l]))!=null&&F===Z+G;)G++;if(G>Z-Q)for(l=V[H];Q<Z;)f.insertBefore(D[Q++],l);else f.replaceChild(D[Q++],V[H++])}else H++}}return D};
rkY=function(V){if(Array.isArray(V)){if(V.length>1)throw Error("ic`"+V.length+"`"+V.map(JkY).join(", "));V=V[0]}if(V==null)return null;if(!(V instanceof _.Xt)){var D,f;if((D=window)==null?0:(f=D.trustedTypes)==null?0:f.isScript(V))throw Error("hc");if(String(V).trim().length===0)return null;throw Error("jc`"+JkY(V));}return V};
HyR=function(V,D){D=rkY(D);D!==null&&_.a3(V,D)};
w2F=function(V){if(Array.isArray(V)){if(V.length>1)throw Error("kc`"+V.length+"`"+V.map(JkY).join(", "));V=V[0]}if(V==null)return null;if(!Fl3(V)){if(String(V).trim().length===0)return null;throw Error("lc`"+JkY(V));}return V};
Q2c=function(V,D){D=w2F(D);D!==null&&(V.textContent=_.grY(D))};
JkY=function(V){return"("+typeof V+") "+(V!=null&&typeof V==="object"?V.constructor.name:typeof V)+" "+V};
Tqn=function(){};
ba=function(V,D){D=D===void 0?{}:D;var f=byn();UR.legacyTriggerSoyRendererEvents&&a9Z();_.mK(function(){Qm.setUp();D.isControlFlowComponent&&lb++;var n=f[0],t=f[D9].flattened,J=P9(!0);try{var H=V(),Q=Kwd(n,H,f);Array.isArray(Q)||(f[D9].flattened=[Q]);var T=f[D9].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var y=Array.isArray(t)?t[0]:t,Z=y[T2],l=y._disposeEffects;y._disposeEffects=void 0;y=Array.isArray(T)?T[0]:T;y[T2]=Z;y[T2]&&(y[T2].numNodes=y===T?1:T.length);y._disposeEffects=l}f[0]=Q;D.isControlFlowComponent&&
eQ(!1)}catch(G){throw D.isControlFlowComponent&&eQ(!0),G;}finally{P9(J),Qm.tearDown()}},D.debugName);
return f};
Kwd=function(V,D,f){for(;typeof D==="function";)D=D();if(D!=null&&D[nZ]){var n,t,J;(J=UR.handleError)==null||J.call.apply(J,[UR].concat(_.sz(RP(Error("mc`"+((n=D.type)==null?void 0:n.TAG_NAME)),(t=D.type)==null?void 0:t.TAG_NAME))))}if(V==null)return D==null?Jh():wj(D)?rj(D):nb3(D)?rj(D.toString()):_.o9(D)?D:D.length===0?Jh():ykZ(D,f);if(_.o9(V)){if(D==null)return ten(V,Jh());if(wj(D))return ZyX(V,D);if(nb3(D))return ZyX(V,D.toString());if(_.o9(D))return ten(V,D);if(D.length===0)return ten(V,Jh());
D=ykZ(D,f);ob3([V],f[D9].flattened);return D}V=KZ(V);if(D==null)return PNR(V,Jh());if(wj(D))return PNR(V,rj(D));if(nb3(D))return PNR(V,rj(D.toString()));if(_.o9(D))return ob3(V,[D])[0];if(D.length===0)return PNR(V,Jh());D=ykZ(D,f);ob3(V,f[D9].flattened);return D};
ZyX=function(V,D){V.nodeType===Node.TEXT_NODE?V.textContent!==String(D)&&(V.textContent=String(D)):V=ten(V,rj(D));return V};
KZ=function(V,D,f){return j2n(V,D!=null?D:[],f===void 0?!1:f)};
ykZ=function(V,D){var f=KZ(V,void 0,!0);if(f.length===0)return Jh();D[D9].flattened=f;return V};
j2n=function(V,D,f,n,t){D=D===void 0?[]:D;f=f===void 0?!1:f;t=t===void 0?-1:t;if(V==null)return D;if(V instanceof ym){var J=V.render();return j2n(J,D,f,n,t)}if(_.o9(D)&&D.nodeType===Node.ELEMENT_NODE)switch(D.tagName){case "SCRIPT":HyR(D,V);return;case "STYLE":Q2c(D,V);return}wj(V)&&(V=rj(V),n&&f&&(n[t]=V));if(DGX(V)){f=fsd(V);f=Array.from(f.childNodes);f=_.r(f);for(J=f.next();!J.done;J=f.next())lsx(D,J.value);return D}nb3(V)&&(V=rj(V.toString()),n&&f&&(n[t]=V));if(_.o9(V))return lsx(D,V);if(Array.isArray(V)){for(J=
0;J<V.length;J++)j2n(V[J],D,f,V,J);return D}if(typeof V==="function"){J=ba(function(){var Q=V();return Q!=null&&!wj(Q)&&DGX(Q)?(Q=fsd(Q),Array.from(Q.childNodes)):Q},{debugName:"qmF2ne"})[0];
if(Array.isArray(J)){f=_.r(J);for(J=f.next();!J.done;J=f.next())lsx(D,J.value);return D}n&&f&&(n[t]=J);return lsx(D,J)}if(V!=null&&V[nZ]){n=V;t=P9(!0);var H=htc;try{J=H.apply(null,[n.type,n.props].concat(_.sz(n.children)))}finally{P9(t)}return j2n(J,D,f)}(H=UR.handleError)==null||H.call.apply(H,[UR].concat(_.sz(RP(Error("nc")))));return D};
byn=function(V){var D={};D=Object.assign([],(D[D9]={flattened:[]},D));if(!V)return D;D[0]=ykZ(V,D);return D};
lsx=function(V,D){Array.isArray(V)?V.push(D):V.appendChild(D);return V};
Z9=function(V){if(!UR.enableLazyTsx)return V;if(Array.isArray(V)){for(var D=0;D<V.length;D++)V[D]=Z9(V[D]);return V}return V instanceof ym?(V=V.render(),Z9(V)):V};
ehU=function(V,D){var f,n,t=OHd(V),J=function(F){n=F;F=P9(!0);var k=fG(jd);xl9("render",t);try{f=Z9(V(D))}finally{MdY("render",t),fG(k),P9(F)}};
J=UR.enableContextPerComponent?V1R(J,t):ub(J,UR.alwaysTrackContexts||!!OR);fY9(n);if(!D.renderedFromIdom){var H=_.x4(n);try{return GP9(V,D,f),f}finally{_.x4(H)}}!OhZ(f)&&Array.isArray(f)&&(f=byn(f));var Q=xYL(f);H=Array.isArray(Q)?Q[0]:Q;var T=!1;if(H){var y,Z=(y=D==null?void 0:D.idomKey)!=null?y:V;y=Q!==H;H._disposeEffects=J;var l=H[T2]||{},G=OhZ(f)?f:l.sourceDynamicRange;Object.assign(l,{key:Z,numNodes:y?Q.length:1,context:n,higherOrder:!!H[T2],sourceDynamicRange:G});H[T2]=l}else T=!0;(function(){var F=
_.x4(n);try{GP9(V,D,Q)}finally{_.x4(F)}})();
T&&J();return f};
ckY=function(V){var D={},f;for(f in V)D={prev$jscomp$23:void 0,next$jscomp$32:void 0},D.prev$jscomp$23=la[f],D.next$jscomp$32=V[f],la[f]=function(n){return function(){var t=_.gQ.apply(0,arguments);n.prev$jscomp$23.apply(null,_.sz(t));n.next$jscomp$32.apply(null,_.sz(t))}}(D)};
FwR=function(){if(vJ())throw Error("oc");return G2};
gbR=function(V,D){if(!V.__unmounted&&D){V.__unmounted=!0;try{V.didUnmount()}catch(t){var f,n;(n=UR.handleError)==null||n.call.apply(n,[UR].concat(_.sz(RP(t,(f=V.JSC$8307___type)==null?void 0:f.TAG_NAME))))}la.didUnmount(V);V.el=null;D.__instance&&delete D.__instance}};
kPZ=function(V,D,f){V._signalProps!=null&&V._disposeEffects==null&&((f===void 0?0:f)?V._disposeEffects=ub(function(){return void vbc(V,D)},UR.alwaysTrackContexts||!!OR):vbc(V,D))};
vbc=function(V,D){_.mK(function(){for(var f=V._signalProps,n=V._signalValues,t=0;t<f.length;t++){var J=f[t],H=D[J]();n[t]!==H&&(n[t]=H,pwY(V,J,H))}},"e3YVbb")};
s2d=function(V,D,f){var n,t=[];V._disposeEffects=ub(function(){_.mK(function(){var J=f();if(J===null||J===void 0)J="";if(wj(J)||J===null)n!=null||(n=document.createTextNode("")),n.parentNode!==V&&(n._isSignalTextNode=!0,V.insertBefore(n,D)),n.textContent=String(J);else if(DGX(J)){for(var H=t.length>0?t[t.length-1].nextSibling:D,Q=_.r(t),T=Q.next();!T.done;T=Q.next())V.removeChild(T.value);J=fsd(J);t=Array.from(J.childNodes);J=_.r(t);for(Q=J.next();!Q.done;Q=J.next())V.insertBefore(Q.value,H)}else throw T=
(Q=(H=cJ)==null?void 0:H.name)!=null?Q:"unknown",Error("dc`"+T+"`"+typeof J);},"VvDgC")},UR.alwaysTrackContexts||!!OR)};
u4L=function(V,D){var f=_.gQ.apply(2,arguments);D!=null||(D={});return!UR.enableLazyTsx||cJ!=null&&!vJ()?BqZ(V,D,f):new dGx(V,D,f)};
BqZ=function(V,D,f){if(V===_.th)return f;if(typeof V==="function")return cJ&&!vJ()&&(D.renderedFromIdom=!0),x4Y(V,function(){var J=NqY(V,D,f);if(J)return J;f.length>0&&(D.children=f.length===1?f[0]:f);if(V.componentType===FY){var H;V1R(function(){var Q=D;if(V.componentType!==FY)H=!1;else{Q||(Q={});var T=new ed(Q,V),y=fG(jd);try{var Z=T.render(Q)}finally{fG(y)}Z instanceof HTMLElement?(Z.__instance=T,T.el=Z,T.JSC$8307___type=V,V.TAG_NAME=Z.tagName.toLowerCase(),la.didPatch(T),H=Z):H=Z}},V.name);
if(H)return H}return ehU(V,D)},D.debugInstance);
var n=mGn(V,D),t;for(t in D)pwY(n,t,D[t]);kPZ(n,D);KZ(f,n);LWF(n,D,{isReactive:!0});zhc(n,D);return n};
mGn=function(V,D){V=(Rh9.has(V.toLowerCase())?0:CN3.has(V.startsWith("svg:")?V.replace("svg:",""):V))?document.createElementNS("http://www.w3.org/2000/svg",V.startsWith("svg:")?V.replace("svg:",""):V):qqn(V,D)||document.createElement(V);V[X2Z]=!0;return V};
EbF=function(V){if(V){var D;(D=V._disposeRef)==null||D.call(V);var f;(f=V._disposeEffects)==null||f.call(V);V.__instance&&V.__instance instanceof c9&&(D=V.__instance,gbR(D,V),D instanceof ed&&D.disposeEffects());for(D=0;D<V.childNodes.length;D++)EbF(V.childNodes[D])}};
asn=function(V){Ak9.push(V)===1&&requestAnimationFrame(function(){setTimeout(function(){var D=[].concat(_.sz(Ak9));Ak9=[];D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;try{for(var n=0;n<f.length;n++)EbF(f[n])}catch(t){n=f=void 0,(n=(f=UR).handleError)==null||n.call.apply(n,[f].concat(_.sz(RP(t))))}}})})};
_.K=function(V,D){return htc.apply(null,[V,D].concat(_.sz(_.gQ.apply(2,arguments))))};
YqY=function(V,D){D=D===void 0?new Map:D;V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,!D.has(f)){var n=void 0,t=(n=f.producerNode)!=null?n:[];D.set(f,t);YqY(t,D)}return D};
_.e=function(V){var D=V.cond;if(D===void 0)return V.else&&V.else();var f=_.yT(function(){return!!D()},void 0,"JHVi8"),n=function(){var t=D();
if(!t){var J;(J=UR.handleError)==null||J.call.apply(J,[UR].concat(_.sz(RP($GZ.nonNullableCondIsNull()))))}return t};
return ba(function(){var t=f(),J;ub(function(){var H=fG(jd);try{J=Z9(t?V.then(n):V.else&&V.else())}finally{fG(H)}},!0);
return J},{debugName:V.debugInstance,
isControlFlowComponent:!0})};
iyU=function(V){return _.e(V)};
_.FB=function(V){return V.keyBy==="INDEX"?Sq9(V):WwZ(V)};
p2Y=function(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next()){var f=void 0;(f=D.value)==null||f()}};
WwZ=function(V){var D=V.keyBy===void 0||V.keyBy==="REFERENCE",f=D?function(Z){return Z}:V.keyBy,n=[],t=[],J=[],H=[],Q=[],T=[],y=!0;
_.dc(function(){p2Y(H)});
return ba(function(){var Z=V.each(),l=Z.length;if(l===0){if(n.length===0&&!y)return J;p2Y(H);n=Z;t=[];for(Z=0;Z<n.length;Z++)t.push(f(n[Z]));J=[];H=[];Q=[];T=[];V.fallback&&(H[0]=Lwn(function(){J[0]=Z9(V.fallback())}));
y=!1;return J}for(var G=new IsZ,F=n.length-1;F>=0;F--)G.push(t[F],F);F=Array(l);for(var k=Array(l),d=Array(l),z=Array(l),C=Array(D?0:l),A={i$jscomp$449:0};A.i$jscomp$449<l;A={i$jscomp$449:A.i$jscomp$449,item$jscomp$103:void 0,key$jscomp$529:void 0},A.i$jscomp$449++){A.item$jscomp$103=Z[A.i$jscomp$449];A.key$jscomp$529=f(A.item$jscomp$103);var O=G.pop(A.key$jscomp$529);O!=null?(d[A.i$jscomp$449]=J[O],k[A.i$jscomp$449]=t[O],F[A.i$jscomp$449]=H[O],z[A.i$jscomp$449]=Q[O],D||(C[A.i$jscomp$449]=T[O]),ZJ(function(W){return function(){z[W.i$jscomp$449](W.i$jscomp$449);
if(!D)C[W.i$jscomp$449](W.item$jscomp$103)}}(A)),delete H[O]):F[A.i$jscomp$449]=Lwn(function(W){return function(){var I=_.r(_.HJ(W.i$jscomp$449,void 0,"Fqk1zd")),x=I.next().value;
I=I.next().value;z[W.i$jscomp$449]=I;k[W.i$jscomp$449]=W.key$jscomp$529;if(D)d[W.i$jscomp$449]=Z9(V.children(W.item$jscomp$103,x));else{var oY=_.r(_.HJ(W.item$jscomp$103,void 0,"GBj5de"));I=oY.next().value;oY=oY.next().value;C[W.i$jscomp$449]=oY;d[W.i$jscomp$449]=Z9(V.children(I,x))}}}(A))}p2Y(H);
n=Z;t=k;J=d;H=F;Q=z;T=C;y=!1;return d},{debugName:V.debugInstance,
isControlFlowComponent:!0})};
Sq9=function(V){var D=[],f=[],n=[],t=[],J=!1;_.dc(function(){for(var H=_.r(t),Q=H.next();!Q.done;Q=H.next())Q=Q.value,Q()});
return ba(function(){var H=V.each();J&&H.length>0&&(t.pop()(),D.pop(),J=!1);for(var Q=Array(H.length),T={i$jscomp$450:0};T.i$jscomp$450<H.length;T={i$jscomp$450:T.i$jscomp$450},T.i$jscomp$450++)if(T.i$jscomp$450<D.length)D[T.i$jscomp$450]!==H[T.i$jscomp$450]&&(ZJ(function(Z){return function(){return void f[Z.i$jscomp$450](H[Z.i$jscomp$450])}}(T)),D[T.i$jscomp$450]=H[T.i$jscomp$450]),Q[T.i$jscomp$450]=n[T.i$jscomp$450];
else{var y=Lwn(function(Z){return function(){D[Z.i$jscomp$450]=H[Z.i$jscomp$450];var l=_.r(_.HJ(H[Z.i$jscomp$450],void 0,"kGMqJe")),G=l.next().value;l=l.next().value;f[Z.i$jscomp$450]=l;Q[Z.i$jscomp$450]=Z9(V.children(G,Z.i$jscomp$450))}}(T));
t[T.i$jscomp$450]=y}for(;D.length>H.length;)D.pop(),t.pop()(),f.pop();H.length===0&&!J&&V.fallback&&(T=Lwn(function(){Q[0]=Z9(V.fallback())}),t[0]=T,J=!0);
return n=Q},{debugName:V.debugInstance,
isControlFlowComponent:!0})};
Lwn=function(V){var D=OR;return ub(function(f){var n=fG(jd);try{f.parent=D,V(f)}finally{fG(n)}},!1)};
_.gj=function(V){return V};
_.v9=function(V){return{isDefault:!0,children:V.children}};
_.kw=function(V){var D=Oyn(V),f=_.yT(function(){return xGY(D)},void 0,"F1PF4");
return ba(function(){var n=f(),t;ub(function(){var J=fG(jd);try{t=Z9(n())}finally{fG(J)}});
return t},{debugName:V.debugInstance,
isControlFlowComponent:!0})};
Oyn=function(V){V=V.children;return Array.isArray(V)?V:[V]};
MeR=function(V){var D=V.props;V=V.getChildren()[0];return D.when?{when:D.when,children:V}:{isDefault:!0,children:V}};
xGY=function(V){var D=function(){return null};
V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,f!=null&&f[nZ]&&(f=f.type===_.v9?{isDefault:!0,children:f.children[0]}:{when:f.props.when,children:f.children[0]}),f instanceof ym&&(f=MeR(f)),f.isDefault)D=f.children;else if(f.when())return f.children;return D};
UGY=function(V){var D=null,f,n={get value(){var J,H;(H=(J=t).validateGetValue)==null||H.call(J);return t.__value},set value(J){var H,Q;(Q=(H=t).validateSetValue)==null||Q.call(H,J);t.__value=J;t.__hasBeenSet=!0}},t=(n.__value=null,n.__hasBeenSet=!1,n.__hasErrored=!1,n.onRender=function(J){if(f&&J!==f){f._disposeRef=void 0;var H;(H=D)==null||H()}f=J;D=V(J)||null},n.onUnmount=function(){var J;
(J=D)==null||J();D=t.value=null},n[hhL]=!0,n);
return t};
D2n=function(V){var D=FwR();if(D==null)throw _.V6Z.PRIMITIVE_INVALID_HOOK_CALL();var f=D.hookCounter++;D.hooks||(D.hooks=[]);var n=D.hooks;n[f]||(n[f]={key:V,host:D});if(V!==n[f].key){if(D.JSC$8307___type){var t;V=(t=D.JSC$8307___type)==null?void 0:t.name}else V=D instanceof ed?OHd(D.functionComponent):"<"+D.el.tagName.toLowerCase()+">";throw _.V6Z.OUT_OF_ORDER_HOOK_CALL(V);}return n[f]};
f53=function(V,D){return!V||V.length!==(D==null?void 0:D.length)||V.some(function(f,n){return f!==D[n]})};
nix=function(V,D){var f=D2n("onChange"),n=FwR();f53(f.deps,D)&&(f.deps=D,f.pendingEffect=V,n.__syncEffects||(n.__syncEffects=[]),n.__syncEffects.push(f))};
_.sG=function(V,D){var f=f===void 0?{}:f;f=f.appContext;var n=!!UR.legacyTriggerSoyRendererEvents;Qm.setUp();try{var t=t6Y(V,D,f);n&&(D=f,D==null&&(D=_.chc(document).getAppContext()),D.get(PLZ).JSC$25726_getEventTarget().dispatchEvent(new oi3(Jqn,V,H9)));Qm.log(V);return t}finally{Qm.tearDown()}};
t6Y=function(V,D,f){var n=s0(function(){var t=fG(jd);try{return ub(function(){var J=_.chc(_.mk(V)),H;var Q=AhY({rootElement:{value:V},appContext:f||(J==null?void 0:(H=J.getOptionalAppContext)==null?void 0:H.call(J)),dispatcher:J});J=_.x4(Q);Q=P9(!0);lb++;try{KZ(D(),V),eQ(!1)}catch(T){throw eQ(!0),T;}finally{P9(Q),_.x4(J)}},!1)}catch(J){throw UR.enableContextBasedComponentStacks&&kK(J),J;
}finally{fG(t)}});
V[rqn]=!0;return function(){V.textContent="";n();V[rqn]=!1}};
_.B9=function(V){if(LLF(DJ)){var D;(D=UR.handleError)==null||D.call.apply(D,[UR].concat(_.sz(RP(Error("cc")))))}var f=OR,n=cJ;Promise.resolve().then(function(){if(f&&!f.isDisposed){var t=_.x4(f);try{s0(function(){return void V()},n)}catch(J){throw UR.enableContextBasedComponentStacks&&kK(J),J;
}finally{_.x4(t)}}})};
_.dj=function(V,D){nix(function(){return rc(V)},D)};
_.Nl=function(V){vJ()?_.B9(function(){rc(V)}):nix(function(){return rc(V)},[])};
w1X=function(V){var D=[].concat(_.sz(V));V.length=0;V=_.r(D);for(D=V.next();!D.done;D=V.next()){D=D.value;HOZ(D);var f=D.pendingEffect;D.pendingEffect=null;if(f=f==null?void 0:f())D.pendingCleanup=f}};
HOZ=function(V){var D=V.pendingCleanup;V.pendingCleanup=null;D==null||D()};
QGn=function(V,D){if(vJ())return V();var f=D2n("useMemoInternal");f53(f.deps,D)&&(f.deps=D,f.value=V());return f.value};
Tv3=function(V,D){return QGn(V,D)};
m0=function(V){return QGn(V,[])};
z2=function(V){return m0(function(){return{value:V}})};
_.R9=function(V,D){if(!V)return null;V=Object.keys(V);V=_.r(V);for(var f=V.next();!f.done;f=V.next()){f=f.value;var n=f.toLowerCase();if(n.indexOf(D,n.length-D.length)>-1)return f}return null};
_.ql=function(){var V=arguments,D=_.CZ;V.length>1?D[V[0]]=V[1]:V.length===1&&Object.assign(D,V[0])};
_.XB=function(V,D){return V in _.CZ?_.CZ[V]:D};
_.EG=function(V,D){return!!_.XB(V,D)};
bOY=function(V){var D=_.CZ.EXPERIMENT_FLAGS;return D?D[V]:void 0};
yqZ=function(V){KiY.forEach(function(D){return D(V)})};
_.a9=function(V){return V&&window.yterr?function(){try{return V.apply(this,arguments)}catch(D){_.Ah(D)}}:V};
_.Ah=function(V){var D=_.Yw("yt.logging.errors.log");D?D(V,"ERROR",void 0,void 0,void 0,void 0,void 0):(D=_.XB("ERRORS",[]),D.push([V,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.ql("ERRORS",D));yqZ(V)};
_.$w=function(V,D,f,n,t){var J=_.Yw("yt.logging.errors.log");J?J(V,"WARNING",D,f,n,void 0,t):(J=_.XB("ERRORS",[]),J.push([V,"WARNING",D,f,n,void 0,t]),_.ql("ERRORS",J))};
jGn=function(V,D){D=V.split(D);for(var f={},n=0,t=D.length;n<t;n++){var J=D[n].split("=");if(J.length===1&&J[0]||J.length===2)try{var H=ZOZ(J[0]||""),Q=ZOZ(J[1]||"");if(H in f){var T=f[H];Array.isArray(T)?_.hc(T,Q):f[H]=[T,Q]}else f[H]=Q}catch(G){var y=G,Z=J[0],l=String(jGn);y.args=[{key:Z,value:J[1],query:V,method:l5R===l?"unchanged":l}];GtU.hasOwnProperty(Z)||_.$w(y)}}return f};
edX=function(V){var D=[];_.sB.forEach(V,function(f,n){var t=_.ia(n);_.Sd(Array.isArray(f)?f:[f],function(J){J==""?D.push(t):D.push(t+"="+_.ia(J))})});
return D.join("&")};
_.W9=function(V){V.charAt(0)==="?"&&(V=V.substring(1));return jGn(V,"&")};
_.pZ=function(V){return V.indexOf("?")!==-1?(V=(V||"").split("#")[0],V=V.split("?",2),_.W9(V.length>1?V[1]:V[0])):{}};
_.LZ=function(V,D){return cq3(V,D||{},!0)};
FiY=function(V,D){return cq3(V,D||{},!1)};
cq3=function(V,D,f){var n=V.split("#",2);V=n[0];n=n.length>1?"#"+n[1]:"";var t=V.split("?",2);V=t[0];t=_.W9(t[1]||"");for(var J in D)if(f||!_.sB.containsKey(t,J))t[J]=D[J];return _.I9(V,t)+n};
hh=function(V){if(!D)var D=window.location.href;var f=_.OG(V)[1]||null,n=_.xw(V);return f&&n?Ml(V,D):n?_.xw(D)===n&&(Number(_.OG(D)[4]||null)||null)===(Number(_.OG(V)[4]||null)||null):!0};
_.viZ=function(V){V=gix(V);return V===null?!1:V[0]==="com"&&V[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
gix=function(V){V=_.xw(V);return V!==null?V.split(".").reverse():null};
ZOZ=function(V){return V&&V.match(ktR)?V:UG(V)};
_.Vx=function(V){return new sGc(V)};
_.DY=function(){Bvx||(Bvx=new d29);return Bvx};
NvZ=function(V){var D=_.fH,f,n;_.w(function(t){f=_.DY();return(n=f.resolve(_.Vx(D)))?(V(n),t.return(Promise.resolve(n))):t.return(f.resolve(new uz3(D)).then(function(J){V(J);return J}))})};
_.c=function(V){V=nH(V);return typeof V==="string"&&V==="false"?!1:!!V};
_.tU=function(V,D){V=nH(V);return V===void 0&&D!==void 0?D:Number(V||0)};
m2U=function(V){V=nH(V);return Array.isArray(V)?_.dw(V,function(D){return Number(D||0)}):[Number(V||0)]};
_.PI=function(V){V=nH(V);return V!==void 0?String(V):""};
_.oT=function(V){V=nH(V);return Array.isArray(V)?_.dw(V,function(D){return String(D||"")}):[String(V||"")]};
zdR=function(){return _.XB("EXPERIMENTS_TOKEN","")};
nH=function(V){return _.XB("EXPERIMENT_FLAGS",{})[V]};
RdL=function(){for(var V=[],D=_.XB("EXPERIMENTS_FORCED_FLAGS",{}),f=_.r(Object.keys(D)),n=f.next();!n.done;n=f.next())n=n.value,V.push({key:n,value:String(D[n])});f=_.XB("EXPERIMENT_FLAGS",{});n=_.r(Object.keys(f));for(var t=n.next();!t.done;t=n.next())t=t.value,t.startsWith("force_")&&D[t]===void 0&&V.push({key:t,value:String(f[t])});return V};
qE3=function(){if(!CLU)return null;var V=CLU();return"open"in V?V:null};
_.X1U=function(V){switch(_.JU(V)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.JU=function(V){return V&&"status"in V?V.status:-1};
_.rO=function(V,D){typeof V==="function"&&(V=_.a9(V));return window.setTimeout(V,D)};
_.HI=function(V,D){typeof V==="function"&&(V=_.a9(V));return window.setInterval(V,D)};
_.wO=function(V){window.clearTimeout(V)};
AqZ=function(V){V=_.pZ(V);for(var D=_.r(Ein),f=D.next();!f.done;f=D.next())if(V[f.value]!==void 0)return!0;return!1};
$2c=function(V,D,f,n,t,J,H,Q){f=f===void 0?"GET":f;n=n===void 0?"":n;Q=Q===void 0?!1:Q;var T=qE3();if(!T)return null;var y=function(){(T&&"readyState"in T?T.readyState:0)===4&&D&&_.a9(D)(T)};
"onloadend"in T?T.addEventListener("loadend",y,!1):T.onreadystatechange=y;_.c("debug_forward_web_query_parameters")&&(V=a5Z(V,window.location.search));T.open(f,V,!0);J&&(T.responseType=J);H&&(T.withCredentials=!0);f=f==="POST"&&(window.FormData===void 0||!(n instanceof FormData));if(t=YEY(V,t))for(var Z in t)T.setRequestHeader(Z,t[Z]),"content-type"===Z.toLowerCase()&&(f=!1);f&&T.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Q&&"setAttributionReporting"in XMLHttpRequest.prototype){V=
{eventSourceEligible:!0,triggerEligible:!1};try{T.setAttributionReporting(V)}catch(l){_.$w(l)}}T.send(n);return T};
YEY=function(V,D){D=D===void 0?{}:D;var f=hh(V),n=_.XB("INNERTUBE_CLIENT_NAME"),t=_.c("web_ajax_ignore_global_headers_if_set"),J;for(J in iOZ){var H=_.XB(iOZ[J]),Q=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||H||(H=_.XB("VISITOR_DATA"));var T;if(!(T=!H)){if(!(T=f||(_.xw(V)?!1:!0))){T=V;var y;if(y=_.c("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(n==="TVHTML5"||n==="TVHTML5_UNPLUGGED"||n==="TVHTML5_SIMPLY"))y=gix(T),y=y===null?!1:y[1]==="google"?
!0:y[2]==="google"?y[0]==="au"&&y[1]==="com"?!0:y[0]==="uk"&&y[1]==="co"?!0:!1:!1;y&&(T=_.Qx(T)||"",T=T.split("/"),T="/"+(T.length>1?T[1]:""),y=T==="/pagead");T=y?!0:!1}T=!T}T||t&&D[J]!==void 0||n==="TVHTML5_UNPLUGGED"&&Q||(D[J]=H)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];if(f||!_.xw(V))D["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(f||!_.xw(V)){try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}Z&&(D["X-YouTube-Time-Zone"]=
Z)}document.location.hostname.endsWith("youtubeeducation.com")||!f&&_.xw(V)||(D["X-YouTube-Ad-Signals"]=edX(SEd()));return D};
_.Win=function(V,D){var f=_.xw(V);_.c("debug_handle_relative_url_for_query_forward_killswitch")||!f&&hh(V)&&(f=document.location.hostname);var n=_.Qx(V);n=(f=f&&(f.endsWith("youtube.com")||f.endsWith("youtube-nocookie.com")))&&n&&n.startsWith("/api/");if(!f||n)return V;var t=_.W9(D),J={};_.Sd(Ein,function(H){t[H]&&(J[H]=t[H])});
return FiY(V,J)};
p1U=function(V,D){D.method="POST";D.postParams||(D.postParams={});return _.T5(V,D)};
LiR=function(V,D){var f=_.XB("XSRF_FIELD_NAME"),n;D.headers&&(n=D.headers["Content-Type"]);return!D.excludeXsrf&&(!_.xw(V)||D.withCredentials||_.xw(V)===document.location.hostname)&&D.method==="POST"&&(!n||n==="application/x-www-form-urlencoded")&&!(D.postParams&&D.postParams[f])};
_.T5=function(V,D){var f=D.format||"JSON";V=I5F(V,D);var n=OOx(V,D),t=!1,J=x2d(V,function(T){if(!t){t=!0;Q&&_.wO(Q);var y=_.X1U(T),Z=null,l=400<=T.status&&T.status<500,G=500<=T.status&&T.status<600;if(y||l||G)Z=M6R(V,f,T,D.convertToSafeHtml);y&&(y=hdZ(f,T,Z));Z=Z||{};l=D.context||_.fx;y?D.onSuccess&&D.onSuccess.call(l,T,Z):D.onError&&D.onError.call(l,T,Z);D.onFinish&&D.onFinish.call(l,T,Z)}},D.method,n,D.headers,D.responseType,D.withCredentials);
n=D.timeout||0;if(D.onTimeout&&n>0){var H=D.onTimeout;var Q=_.rO(function(){t||(t=!0,J.abort(),_.wO(Q),H.call(D.context||_.fx,J))},n)}return J};
I5F=function(V,D){D.includeDomain&&(V=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+V);var f=_.XB("XSRF_FIELD_NAME");if(D=D.urlParams)D[f]&&delete D[f],V=_.LZ(V,D);return V};
OOx=function(V,D){var f=_.XB("XSRF_FIELD_NAME"),n=_.XB("XSRF_TOKEN"),t=D.postBody||"",J=D.postParams;LiR(V,D)&&(J||(J={}),J[f]=n);(_.c("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof t==="string"&&(t=_.W9(t),_.sB.extend(t,J),t=D.postBodyFormat&&D.postBodyFormat==="JSON"?JSON.stringify(t):_.bE(t));J=t||J&&!_.sB.isEmpty(J);!U2U&&J&&D.method!=="POST"&&(U2U=!0,_.Ah(Error("Lc")));return t};
M6R=function(V,D,f,n){var t=null;switch(D){case "JSON":try{var J=f.responseText}catch(H){throw n=Error("Mc"),n.params=V,_.$w(n),H;}V=f.getResponseHeader("Content-Type")||"";J&&V.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),t=JSON.parse(J));break;case "XML":if(V=(V=f.responseXML)?Vvx(V):null)t={},_.Sd(V.getElementsByTagName("*"),function(H){t[H.tagName]=Di3(H)})}n&&fkd(t);
return t};
fkd=function(V){if(_.VV(V))for(var D in V)D==="html_content"||Jc(D,"_html")?V[D]=dQ(V[D]):fkd(V[D])};
hdZ=function(V,D,f){if(D&&D.status===204)return!0;switch(V){case "JSON":return!!f;case "XML":return Number(f&&f.return_code)===0;case "RAW":return!0;default:return!!f}};
Vvx=function(V){return V?(V=("responseXML"in V?V.responseXML:V).getElementsByTagName("root"))&&V.length>0?V[0]:null:null};
Di3=function(V){var D="";_.Sd(V.childNodes,function(f){D+=f.nodeValue});
return D};
noZ=function(V){if(V.name==="JavaException")return!0;V=V.stack;return V.includes("chrome://")||V.includes("-extension://")||V.includes("webkit-masked-url://")};
tvc=function(V){if(!V.stack)return!0;var D=!V.stack.includes("\n");return D&&V.stack.includes("ErrorType: ")||D&&V.stack.includes("Anonymous function (Unknown script")||V.stack.toLowerCase()==="not available"||V.fileName==="user-script"||V.fileName.startsWith("user-script:")?!0:!1};
_.KH=function(V){_.cq.call(this);this.JSC$8570_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!V};
oo3=function(V,D){var f=V.length,n=0,t=function(){return V.charCodeAt(n++)};
do{var J=P8d(t);if(J===Infinity)break;var H=J>>3;switch(J&7){case 0:J=P8d(t);if(H===D)return J;break;case 1:if(H===D)return;n+=8;break;case 2:J=P8d(t);if(H===D)return V.substr(n,J);n+=J;break;case 5:if(H===D)return;n+=4;break;default:return}}while(n<f)};
P8d=function(V){var D=V(),f=D&127;if(D<128)return f;D=V();f|=(D&127)<<7;if(D<128)return f;D=V();f|=(D&127)<<14;if(D<128)return f;D=V();return D<128?f|(D&127)<<21:Infinity};
reX=function(V,D,f,n){if(V)if(Array.isArray(V)){var t=n;for(n=0;n<V.length&&!(V[n]&&(t+=JeZ(n,V[n],D,f),t>500));n++);n=t}else if(typeof V==="object")for(t in V){if(V[t]){var J=t;var H=V[t],Q=D,T=f;J=typeof H!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(H=oo3(atob(H.replace(/-/g,"+").replace(/_/g,"/")),2))?JeZ(J+".ve",H,Q,T):0;n+=J;n+=JeZ(t,V[t],D,f);if(n>500)break}}else f[D]=yx(V),n+=f[D].length;else f[D]=yx(V),n+=f[D].length;return n};
JeZ=function(V,D,f,n){f+="."+V;V=yx(D);n[f]=V;return f.length+V.length};
yx=function(V){try{return(typeof V==="string"?V:String(JSON.stringify(V))).substr(0,500)}catch(D){return"unable to serialize "+typeof V+" ("+D.message+")"}};
HlY=function(V){switch(V){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}};
_.j1=function(V,D,f,n,t){_.ZY.set(V,D,{maxAge:f,path:"/",domain:n===void 0?"youtube.com":n,secure:t===void 0?!1:t})};
_.w8Y=function(V,D,f){_.ZY.remove(V,D===void 0?"/":D,f===void 0?"youtube.com":f)};
_.lE=function(){if(_.c("embeds_web_enable_cookie_detection_fix")){if(!_.fx.navigator.cookieEnabled)return!1}else if(!_.ZY.isEnabled())return!1;if(!_.ZY.isEmpty())return!0;_.c("embeds_web_enable_cookie_detection_fix")?_.ZY.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.ZY.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.ZY.get("TESTCOOKIESENABLED")!=="1")return!1;_.ZY.remove("TESTCOOKIESENABLED");return!0};
Qbd=function(){var V=_.fx.navigator;return V?V.connection:void 0};
T2Z=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}};
_.KIZ=function(){var V=Qbd();if(V){var D=bln[V.type||"unknown"]||"CONN_UNKNOWN";V=bln[V.effectiveType||"unknown"]||"CONN_UNKNOWN";D==="CONN_CELLULAR_UNKNOWN"&&V!=="CONN_UNKNOWN"&&(D=V);if(D!=="CONN_UNKNOWN")return D;if(V!=="CONN_UNKNOWN")return V}};
Zlc=function(){var V=Qbd();if(V!=null&&V.effectiveType)return yec.hasOwnProperty(V.effectiveType)?yec[V.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.e1=function(){try{return _.G5(),!0}catch(V){return!1}};
_.G5=function(V){if(_.XB("DATASYNC_ID")!==void 0)return _.XB("DATASYNC_ID");throw new _.cI("Datasync ID not set",V===void 0?"unknown":V);};
_.FT=function(V){this.mechanism=V};
gO=function(V){this.mechanism=V};
vI=function(V){this.storage_=V;this.cachedIsStorageAvailable_=null};
jbF=function(){var V=null;try{V=_.fx.localStorage||null}catch(D){}vI.call(this,V)};
lkF=function(){var V=null;try{V=_.fx.sessionStorage||null}catch(D){}vI.call(this,V)};
kJ=function(V,D){this.mechanism_=V;this.JSC$8672_prefix_=D+"::"};
_.GRY=function(V){var D=new jbF;return D.isAvailable()?V?new kJ(D,V):D:null};
_.eix=function(V){var D=new lkF;return D.isAvailable()?V?new kJ(D,V):D:null};
FIZ=function(){var V;return(V=ceL())==null?void 0:V.get("LAST_RESULT_ENTRY_KEY",!0)};
_.dO=function(V){go9||(_.sb?_.sb.logError(V):(_.BI.push({type:"ERROR",payload:V}),_.BI.length>10&&_.BI.shift()))};
uE=function(V,D){go9||(_.sb?_.sb.logEvent(V,D):(_.BI.push({type:"EVENT",eventType:V,payload:D}),_.BI.length>10&&_.BI.shift()))};
N4=function(V){if(V.indexOf(":")>=0)throw Error("Tc");};
mL=function(V){return V.substr(0,V.indexOf(":"))||V};
sbZ=function(){return(voY||kRX)&&z5("applewebkit")&&!z5("version")&&(!z5("safari")||z5("gsa/"))};
z5=function(V){var D=_.jR();return D?D.toLowerCase().indexOf(V)>=0:!1};
uw9=function(V,D,f,n){D=mL(D);var t=V instanceof Error?V:Error("Uc`"+V);if(t instanceof RT)return t;V={objectStoreNames:f,dbName:D,dbVersion:n};if(t.name==="QuotaExceededError")return new RT("QUOTA_EXCEEDED",V);if(_.CH&&t.name==="UnknownError")return new RT("QUOTA_MAYBE_EXCEEDED",V);if(t instanceof B2Y)return new RT("MISSING_INDEX",Object.assign({},V,{objectStore:t.objectStore,index:t.index}));if(t.name==="InvalidStateError"&&diR.some(function(J){return t.message.includes(J)}))return new RT("EXECUTE_TRANSACTION_ON_CLOSED_DB",
V);
if(t.name==="AbortError")return new RT("UNKNOWN_ABORT",V,t.message);t.args=[Object.assign({},V,{name:"IdbError",originalName:t.name})];t.level="WARNING";return t};
q4=function(V,D,f){var n=FIZ();return new RT("IDB_NOT_SUPPORTED",{context:{caller:V,publicName:D,version:f,hasSucceededOnce:n==null?void 0:n.hasSucceededOnce}})};
N2X=function(V){if(!V)throw Error();throw V;};
miZ=function(V){return V};
ziY=function(V,D,f){var n=function(){try{V.removeEventListener("success",t),V.removeEventListener("error",J)}catch(H){}},t=function(){D(V.result);
n()},J=function(){f(V.error);
n()};
V.addEventListener("success",t);V.addEventListener("error",J)};
RiR=function(V){return new Promise(function(D,f){ziY(V,D,f)})};
AU=function(V){return new XT(new Eb(function(D,f){ziY(V,D,f)}))};
C8L=function(V,D){return new XT(new Eb(function(f,n){var t=function(){var J=V?D(V):null;J?J.then(function(H){V=H;t()},n):f()};
t()}))};
X8F=function(V,D,f){return new Promise(function(n,t){var J=D!==void 0?self.indexedDB.open(V,D):self.indexedDB.open(V);var H=f.blocked,Q=f.blocking,T=f.terminated,y=f.upgrade,Z=f.closed,l,G=function(){l||(l=new aT(J.result,{closed:Z}));return l};
J.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Zc");if(J.transaction===null)throw Error("$c");F.dataLoss&&F.dataLoss!=="none"&&uE("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:mL(V)});var k=G(),d=new qXX(J.transaction);y&&y(k,function(z){return F.oldVersion<z&&F.newVersion>=z},d);
d.done.catch(function(z){t(z)})}catch(z){t(z)}});
J.addEventListener("success",function(){var F=J.result;Q&&F.addEventListener("versionchange",function(){Q(G())});
F.addEventListener("close",function(){uE("IDB_UNEXPECTEDLY_CLOSED",{dbName:mL(V),dbVersion:F.version});T&&T()});
n(G())});
J.addEventListener("error",function(){t(J.error)});
H&&J.addEventListener("blocked",function(){H()})})};
EoU=function(V,D,f){f=f===void 0?{}:f;return X8F(V,D,f)};
_.$J=function(V,D){D=D===void 0?{}:D;var f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return _.wx(H,2),f=self.indexedDB.deleteDatabase(V),n=D,(t=n.blocked)&&f.addEventListener("blocked",function(){t()}),_.b(H,RiR(f),4);
if(H.nextAddress!=2)return _.YJ(H,0);J=_.KW(H);throw uw9(J,V,"",-1);})};
akZ=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.iE(Aex,D),2);f=n.yieldResult;return n.return(_.S1(f,["databases"],{enableRetries:!0,mode:"readwrite"},function(t){var J=t.objectStore("databases");return J.get(V.actualName).then(function(H){if(H?V.actualName!==H.actualName||V.publicName!==H.publicName||V.userIdentifier!==H.userIdentifier:1)return J.put(V).then(function(){})})}))})};
_.WI=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return V?_.b(n,_.iE(Aex,D),2):n.return();f=n.yieldResult;return n.return(f.delete("databases",V))})};
_.YX9=function(V,D){var f,n;return _.w(function(t){return t.nextAddress==1?(f=[],_.b(t,_.iE(Aex,D),2)):t.nextAddress!=3?(n=t.yieldResult,_.b(t,_.S1(n,["databases"],{enableRetries:!0,mode:"readonly"},function(J){f.length=0;return LH(J.objectStore("databases"),{},function(H){V(H.getValue())&&f.push(H.getValue());return H.continue()})}),3)):t.return(f)})};
$i3=function(V,D){return _.YX9(function(f){return f.publicName===V&&f.userIdentifier!==void 0},D)};
WI9=function(){var V,D,f,n;return _.w(function(t){switch(t.nextAddress){case 1:V=FIZ();if((D=V)==null?0:D.hasSucceededOnce)return t.return(!0);var J;if(J=ilc)J=/WebKit\/([0-9]+)/.exec(_.jR()),J=!!(J&&parseInt(J[1],10)>=600);J&&(J=/WebKit\/([0-9]+)/.exec(_.jR()),J=!(J&&parseInt(J[1],10)>=602));if(J||Ob)return t.return(!1);try{if(f=self,!(f.indexedDB&&f.IDBIndex&&f.IDBKeyRange&&f.IDBObjectStore))return t.return(!1)}catch(H){return t.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return t.return(!1);
_.wx(t,2);n={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.b(t,akZ(n,SXd),4);case 4:return _.b(t,_.WI("yt-idb-test-do-not-use",SXd),5);case 5:return t.return(!0);case 2:return _.KW(t),t.return(!1)}})};
LIY=function(){if(p8d!==void 0)return p8d;go9=!0;return p8d=WI9().then(function(V){go9=!1;var D;if((D=ceL())!=null&&D.expiringStorage_){var f;D={hasSucceededOnce:((f=FIZ())==null?void 0:f.hasSucceededOnce)||V};var n;(n=ceL())==null||n.set("LAST_RESULT_ENTRY_KEY",D,2592E3,!0)}return V})};
xJ=function(){return _.Yw("ytglobal.idbToken_")||void 0};
_.hU=function(){var V=xJ();return V?Promise.resolve(V):LIY().then(function(D){(D=D?SXd:void 0)&&_.M4("ytglobal.idbToken_",D);return D})};
IkF=function(V){if(!_.e1())throw V=new RT("AUTH_INVALID",{dbName:V}),_.dO(V),V;var D=_.G5();return{actualName:V+":"+D,publicName:V,userIdentifier:D}};
Ol9=function(V,D,f,n){var t,J,H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:return J=(t=Error().stack)!=null?t:"",_.b(Z,_.hU(),2);case 2:H=Z.yieldResult;if(!H)throw Q=q4("openDbImpl",V,D),_.c("ytidb_async_stack_killswitch")||(Q.stack=Q.stack+"\n"+J.substring(J.indexOf("\n")+1)),_.dO(Q),Q;N4(V);T=f?{actualName:V,publicName:V,userIdentifier:void 0}:IkF(V);_.wx(Z,3);return _.b(Z,akZ(T,H),5);case 5:return _.b(Z,EoU(T.actualName,D,n),6);case 6:return Z.return(Z.yieldResult);case 3:return y=
_.KW(Z),_.wx(Z,7),_.b(Z,_.WI(T.actualName,H),9);case 9:_.YJ(Z,8);break;case 7:_.KW(Z);case 8:throw y;}})};
xi9=function(V,D,f){f=f===void 0?{}:f;return Ol9(V,D,!1,f)};
MvX=function(V,D,f){f=f===void 0?{}:f;return Ol9(V,D,!0,f)};
hiZ=function(V,D){D=D===void 0?{}:D;var f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,_.hU(),2);if(t.nextAddress!=3){f=t.yieldResult;if(!f)return t.return();N4(V);n=IkF(V);return _.b(t,_.$J(n.actualName,D),3)}return _.b(t,_.WI(n.actualName,f),0)})};
Uid=function(V,D,f){V=V.map(function(n){return _.w(function(t){return t.nextAddress==1?_.b(t,_.$J(n.actualName,D),2):_.b(t,_.WI(n.actualName,f),0)})});
return Promise.all(V).then(function(){})};
VJU=function(V){var D=D===void 0?{}:D;var f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,_.hU(),2);if(t.nextAddress!=3){f=t.yieldResult;if(!f)return t.return();N4(V);return _.b(t,$i3(V,f),3)}n=t.yieldResult;return _.b(t,Uid(n,D,f),0)})};
D1x=function(V,D){D=D===void 0?{}:D;var f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.hU(),2);if(n.nextAddress!=3){f=n.yieldResult;if(!f)return n.return();N4(V);return _.b(n,_.$J(V,D),3)}return _.b(n,_.WI(V,f),0)})};
Ub=function(V,D){return flY(V,D)};
tJX=function(V){return _.iE(n8F(),V)};
PCF=function(V,D,f,n){var t,J,H;return _.w(function(Q){switch(Q.nextAddress){case 1:return t={config:V,hashData:D,timestamp:n!==void 0?n:(0,_.VW)()},_.b(Q,tJX(f),2);case 2:return J=Q.yieldResult,_.b(Q,J.clear("hotConfigStore"),3);case 3:return _.b(Q,J.put("hotConfigStore",t),4);case 4:return H=Q.yieldResult,Q.return(H)}})};
o83=function(V,D,f,n,t){var J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:return J={config:V,hashData:D,configData:f,timestamp:t!==void 0?t:(0,_.VW)()},_.b(T,tJX(n),2);case 2:return H=T.yieldResult,_.b(T,H.clear("coldConfigStore"),3);case 3:return _.b(T,H.put("coldConfigStore",J),4);case 4:return Q=T.yieldResult,T.return(Q)}})};
JRZ=function(V){var D,f;return _.w(function(n){return n.nextAddress==1?_.b(n,tJX(V),2):n.nextAddress!=3?(D=n.yieldResult,f=void 0,_.b(n,_.S1(D,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.Dd(t.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){f=J.getValue()})}),3)):n.return(f)})};
rRc=function(V){var D,f;return _.w(function(n){return n.nextAddress==1?_.b(n,tJX(V),2):n.nextAddress!=3?(D=n.yieldResult,f=void 0,_.b(n,_.S1(D,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.Dd(t.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){f=J.getValue()})}),3)):n.return(f)})};
H6x=function(){return _.w(function(V){return _.b(V,VJU("ytGcfConfig"),0)})};
wAU=function(){return"INNERTUBE_API_KEY"in _.CZ&&"INNERTUBE_API_VERSION"in _.CZ};
_.fh=function(){return{innertubeApiKey:_.XB("INNERTUBE_API_KEY"),innertubeApiVersion:_.XB("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.XB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.XB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.XB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.XB("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.XB("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.XB("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.EG("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.EG("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.XB("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.j4n=function(V){var D={client:{hl:V.innertubeContextHostLanguage,gl:V.innertubeContextGeoLocation,clientName:V.innertubeContextClientName,clientVersion:V.innertubeContextClientVersion,configInfo:V.innertubeContextClientConfigInfo}};navigator.userAgent&&(D.client.userAgent=String(navigator.userAgent));var f=_.fx.devicePixelRatio;f&&f!=1&&(D.client.screenDensityFloat=String(f));f=zdR();f!==""&&(D.client.experimentsToken=f);f=RdL();f.length>0&&(D.request={internalExperimentFlags:f});Q4Z(V,void 0,D);
TNY(void 0,D);b6n(void 0,D);Kg3(V,void 0,D);yRZ(void 0,D);_.c("start_client_gcf")&&Z6Y(void 0,D);_.XB("DELEGATED_SESSION_ID")&&!_.c("pageid_as_header_web")&&(D.user={onBehalfOfUser:_.XB("DELEGATED_SESSION_ID")});!_.c("fill_delegate_context_in_gel_killswitch")&&(V=_.XB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D.user=Object.assign({},D.user,{serializedDelegationContext:V}));V=_.XB("INNERTUBE_CONTEXT");var n;if(_.c("enable_persistent_device_token")&&(V==null?0:(n=V.client)==null?0:n.rolloutToken)){var t;
D.client.rolloutToken=V==null?void 0:(t=V.client)==null?void 0:t.rolloutToken}n=Object;t=n.assign;V=D.client;f={};for(var J=_.r(Object.entries(_.W9(_.XB("DEVICE","")))),H=J.next();!H.done;H=J.next()){var Q=_.r(H.value);H=Q.next().value;Q=Q.next().value;H==="cbrand"?f.deviceMake=Q:H==="cmodel"?f.deviceModel=Q:H==="cbr"?f.browserName=Q:H==="cbrver"?f.browserVersion=Q:H==="cos"?f.osName=Q:H==="cosver"?f.osVersion=Q:H==="cplatform"&&(f.platform=Q)}D.client=t.call(n,V,f);return D};
Q4Z=function(V,D,f){V=V.innertubeContextClientName;if(V==="WEB"||V==="MWEB"||V===1||V===2)if(D){f=_.bW(D,llZ,96)||new llZ;var n=GmY();n=Object.keys(e0Y).indexOf(n);n=n===-1?null:n;n!==null&&_.nh(f,3,n);_.fc(D,96,f)}else f&&(f.client.mainAppWebInfo=(n=f.client.mainAppWebInfo)!=null?n:{},f.client.mainAppWebInfo.webDisplayMode=GmY())};
TNY=function(V,D){var f=_.Yw("yt.embedded_player.embed_url");f&&(V?(D=_.bW(V,cRL,7)||new cRL,_.lB(D,4,f),_.fc(V,7,D)):D&&(D.thirdParty={embedUrl:f}))};
b6n=function(V,D){var f;if(_.c("web_log_memory_total_kbytes")&&((f=_.fx.navigator)==null?0:f.deviceMemory)){var n;f=(n=_.fx.navigator)==null?void 0:n.deviceMemory;V?_.tB(V,95,zJ(f*1E6)):D&&(D.client.memoryTotalKbytes=""+f*1E6)}};
Kg3=function(V,D,f){if(V.appInstallData)if(D){var n;f=(n=_.bW(D,Pw,62))!=null?n:new Pw;_.lB(f,6,V.appInstallData);_.fc(D,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},f.client.configInfo.appInstallData=V.appInstallData)};
yRZ=function(V,D){var f=_.KIZ();f&&(V?_.nh(V,61,FgL[f]):D&&(D.client.connectionType=f));_.c("web_log_effective_connection_type")&&(f=Zlc())&&(V?_.nh(V,94,g8R[f]):D&&(D.client.effectiveConnectionType=f))};
_.s4x=function(V,D,f){f=f===void 0?{}:f;var n={};_.XB("EOM_VISITOR_DATA")?n={"X-Goog-EOM-Visitor-Id":_.XB("EOM_VISITOR_DATA")}:n={"X-Goog-Visitor-Id":f.visitorData||_.XB("VISITOR_DATA","")};if(D&&D.includes("www.youtube-nocookie.com"))return n;D=f.authorization||_.XB("AUTHORIZATION");D||(V?D="Bearer "+_.Yw("gapi.auth.getToken")().access_token:(v8n.instance||(v8n.instance=new v8n),V=kmY(),_.c("pageid_as_header_web")||delete V["X-Goog-PageId"],n=Object.assign({},n,V)));D&&(n.Authorization=D);return n};
Z6Y=function(V,D){var f=BNL();if(f){var n=f.coldConfigData,t=f.coldHashData;f=f.hotHashData;if(V){var J;D=(J=_.bW(V,Pw,62))!=null?J:new Pw;n=_.lB(D,1,n);_.lB(n,3,t).setHotHashData(f);_.fc(V,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},n&&(D.client.configInfo.coldConfigData=n),t&&(D.client.configInfo.coldHashData=t),f&&(D.client.configInfo.hotHashData=f))}};
oO=function(V){for(var D=V.length;--D>=0;)V[D]=0};
d1F=function(V,D,f,n,t){this.static_tree=V;this.extra_bits=D;this.extra_base=f;this.elems=n;this.max_length=t;this.has_stree=V&&V.length};
uQ9=function(V,D){this.dyn_tree=V;this.max_code=0;this.stat_desc=D};
JB=function(V,D){V.pending_buf[V.pending++]=D&255;V.pending_buf[V.pending++]=D>>>8&255};
rm=function(V,D,f){V.bi_valid>16-f?(V.bi_buf|=D<<V.bi_valid&65535,JB(V,V.bi_buf),V.bi_buf=D>>16-V.bi_valid,V.bi_valid+=f-16):(V.bi_buf|=D<<V.bi_valid&65535,V.bi_valid+=f)};
Hw=function(V,D,f){rm(V,f[D*2],f[D*2+1])};
NNd=function(V,D){var f=0;do f|=V&1,V>>>=1,f<<=1;while(--D>0);return f>>>1};
m1R=function(V,D,f){var n=Array(16),t=0,J;for(J=1;J<=15;J++)n[J]=t=t+f[J-1]<<1;for(f=0;f<=D;f++)t=V[f*2+1],t!==0&&(V[f*2]=NNd(n[t]++,t))};
z0U=function(V){var D;for(D=0;D<286;D++)V.dyn_ltree[D*2]=0;for(D=0;D<30;D++)V.dyn_dtree[D*2]=0;for(D=0;D<19;D++)V.bl_tree[D*2]=0;V.dyn_ltree[512]=1;V.opt_len=V.static_len=0;V.last_lit=V.matches=0};
R0U=function(V){V.bi_valid>8?JB(V,V.bi_buf):V.bi_valid>0&&(V.pending_buf[V.pending++]=V.bi_buf);V.bi_buf=0;V.bi_valid=0};
CC9=function(V,D,f){R0U(V);JB(V,f);JB(V,~f);wm.arraySet(V.pending_buf,V.window,D,f,V.pending);V.pending+=f};
q2Y=function(V,D,f,n){var t=D*2,J=f*2;return V[t]<V[J]||V[t]===V[J]&&n[D]<=n[f]};
XA9=function(V,D,f){for(var n=V.heap[f],t=f<<1;t<=V.heap_len;){t<V.heap_len&&q2Y(D,V.heap[t+1],V.heap[t],V.depth)&&t++;if(q2Y(D,n,V.heap[t],V.depth))break;V.heap[f]=V.heap[t];f=t;t<<=1}V.heap[f]=n};
$1Y=function(V,D,f){var n=0;if(V.last_lit!==0){do{var t=V.pending_buf[V.d_buf+n*2]<<8|V.pending_buf[V.d_buf+n*2+1];var J=V.pending_buf[V.l_buf+n];n++;if(t===0)Hw(V,J,D);else{var H=QW[J];Hw(V,H+256+1,D);var Q=E8L[H];Q!==0&&(J-=AR9[H],rm(V,J,Q));t--;H=t<256?TV[t]:TV[256+(t>>>7)];Hw(V,H,f);Q=al3[H];Q!==0&&(t-=Y2X[H],rm(V,t,Q))}}while(n<V.last_lit)}Hw(V,256,D)};
i69=function(V,D){var f=D.dyn_tree,n=D.stat_desc.static_tree,t=D.stat_desc.has_stree,J=D.stat_desc.elems,H,Q=-1;V.heap_len=0;V.heap_max=573;for(H=0;H<J;H++)f[H*2]!==0?(V.heap[++V.heap_len]=Q=H,V.depth[H]=0):f[H*2+1]=0;for(;V.heap_len<2;){var T=V.heap[++V.heap_len]=Q<2?++Q:0;f[T*2]=1;V.depth[T]=0;V.opt_len--;t&&(V.static_len-=n[T*2+1])}D.max_code=Q;for(H=V.heap_len>>1;H>=1;H--)XA9(V,f,H);T=J;do H=V.heap[1],V.heap[1]=V.heap[V.heap_len--],XA9(V,f,1),n=V.heap[1],V.heap[--V.heap_max]=H,V.heap[--V.heap_max]=
n,f[T*2]=f[H*2]+f[n*2],V.depth[T]=(V.depth[H]>=V.depth[n]?V.depth[H]:V.depth[n])+1,f[H*2+1]=f[n*2+1]=T,V.heap[1]=T++,XA9(V,f,1);while(V.heap_len>=2);V.heap[--V.heap_max]=V.heap[1];H=D.dyn_tree;T=D.max_code;n=D.stat_desc.static_tree;t=D.stat_desc.has_stree;J=D.stat_desc.extra_bits;var y=D.stat_desc.extra_base,Z=D.stat_desc.max_length,l,G=0;for(l=0;l<=15;l++)V.bl_count[l]=0;H[V.heap[V.heap_max]*2+1]=0;for(D=V.heap_max+1;D<573;D++){var F=V.heap[D];l=H[H[F*2+1]*2+1]+1;l>Z&&(l=Z,G++);H[F*2+1]=l;if(!(F>
T)){V.bl_count[l]++;var k=0;F>=y&&(k=J[F-y]);var d=H[F*2];V.opt_len+=d*(l+k);t&&(V.static_len+=d*(n[F*2+1]+k))}}if(G!==0){do{for(l=Z-1;V.bl_count[l]===0;)l--;V.bl_count[l]--;V.bl_count[l+1]+=2;V.bl_count[Z]--;G-=2}while(G>0);for(l=Z;l!==0;l--)for(F=V.bl_count[l];F!==0;)n=V.heap[--D],n>T||(H[n*2+1]!==l&&(V.opt_len+=(l-H[n*2+1])*H[n*2],H[n*2+1]=l),F--)}m1R(f,Q,V.bl_count)};
S2L=function(V,D,f){var n,t=-1,J=D[1],H=0,Q=7,T=4;J===0&&(Q=138,T=3);D[(f+1)*2+1]=65535;for(n=0;n<=f;n++){var y=J;J=D[(n+1)*2+1];++H<Q&&y===J||(H<T?V.bl_tree[y*2]+=H:y!==0?(y!==t&&V.bl_tree[y*2]++,V.bl_tree[32]++):H<=10?V.bl_tree[34]++:V.bl_tree[36]++,H=0,t=y,J===0?(Q=138,T=3):y===J?(Q=6,T=3):(Q=7,T=4))}};
WgF=function(V,D,f){var n,t=-1,J=D[1],H=0,Q=7,T=4;J===0&&(Q=138,T=3);for(n=0;n<=f;n++){var y=J;J=D[(n+1)*2+1];if(!(++H<Q&&y===J)){if(H<T){do Hw(V,y,V.bl_tree);while(--H!==0)}else y!==0?(y!==t&&(Hw(V,y,V.bl_tree),H--),Hw(V,16,V.bl_tree),rm(V,H-3,2)):H<=10?(Hw(V,17,V.bl_tree),rm(V,H-3,3)):(Hw(V,18,V.bl_tree),rm(V,H-11,7));H=0;t=y;J===0?(Q=138,T=3):y===J?(Q=6,T=3):(Q=7,T=4)}}};
pAx=function(V){var D=4093624447,f;for(f=0;f<=31;f++,D>>>=1)if(D&1&&V.dyn_ltree[f*2]!==0)return 0;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return 1;for(f=32;f<256;f++)if(V.dyn_ltree[f*2]!==0)return 1;return 0};
bk=function(V,D,f){V.pending_buf[V.d_buf+V.last_lit*2]=D>>>8&255;V.pending_buf[V.d_buf+V.last_lit*2+1]=D&255;V.pending_buf[V.l_buf+V.last_lit]=f&255;V.last_lit++;D===0?V.dyn_ltree[f*2]++:(V.matches++,D--,V.dyn_ltree[(QW[f]+256+1)*2]++,V.dyn_dtree[(D<256?TV[D]:TV[256+(D>>>7)])*2]++);return V.last_lit===V.lit_bufsize-1};
yW=function(V,D){V.msg=Kh[D];return D};
Zd=function(V){for(var D=V.length;--D>=0;)V[D]=0};
jk=function(V){var D=V.state,f=D.pending;f>V.avail_out&&(f=V.avail_out);f!==0&&(wm.arraySet(V.output,D.pending_buf,D.pending_out,f,V.next_out),V.next_out+=f,D.pending_out+=f,V.total_out+=f,V.avail_out-=f,D.pending-=f,D.pending===0&&(D.pending_out=0))};
ek=function(V,D){var f=V.block_start>=0?V.block_start:-1,n=V.strstart-V.block_start,t=0;if(V.level>0){V.strm.data_type===2&&(V.strm.data_type=pAx(V));i69(V,V.l_desc);i69(V,V.d_desc);S2L(V,V.dyn_ltree,V.l_desc.max_code);S2L(V,V.dyn_dtree,V.d_desc.max_code);i69(V,V.bl_desc);for(t=18;t>=3&&V.bl_tree[Lgd[t]*2+1]===0;t--);V.opt_len+=3*(t+1)+5+5+4;var J=V.opt_len+3+7>>>3;var H=V.static_len+3+7>>>3;H<=J&&(J=H)}else J=H=n+5;if(n+4<=J&&f!==-1)rm(V,D?1:0,3),CC9(V,f,n);else if(V.strategy===4||H===J)rm(V,2+(D?
1:0),3),$1Y(V,lk,GV);else{rm(V,4+(D?1:0),3);f=V.l_desc.max_code+1;n=V.d_desc.max_code+1;t+=1;rm(V,f-257,5);rm(V,n-1,5);rm(V,t-4,4);for(J=0;J<t;J++)rm(V,V.bl_tree[Lgd[J]*2+1],3);WgF(V,V.dyn_ltree,f-1);WgF(V,V.dyn_dtree,n-1);$1Y(V,V.dyn_ltree,V.dyn_dtree)}z0U(V);D&&R0U(V);V.block_start=V.strstart;jk(V.strm)};
cw=function(V,D){V.pending_buf[V.pending++]=D};
Fv=function(V,D){V.pending_buf[V.pending++]=D>>>8&255;V.pending_buf[V.pending++]=D&255};
IlY=function(V,D){var f=V.max_chain_length,n=V.strstart,t=V.prev_length,J=V.nice_match,H=V.strstart>V.w_size-262?V.strstart-(V.w_size-262):0,Q=V.window,T=V.w_mask,y=V.prev,Z=V.strstart+258,l=Q[n+t-1],G=Q[n+t];V.prev_length>=V.good_match&&(f>>=2);J>V.lookahead&&(J=V.lookahead);do{var F=D;if(Q[F+t]===G&&Q[F+t-1]===l&&Q[F]===Q[n]&&Q[++F]===Q[n+1]){n+=2;for(F++;Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&Q[++n]===Q[++F]&&n<Z;);
F=258-(Z-n);n=Z-258;if(F>t){V.match_start=D;t=F;if(F>=J)break;l=Q[n+t-1];G=Q[n+t]}}}while((D=y[D&T])>H&&--f!==0);return t<=V.lookahead?t:V.lookahead};
vw=function(V){var D=V.w_size,f;do{var n=V.window_size-V.lookahead-V.strstart;if(V.strstart>=D+(D-262)){wm.arraySet(V.window,V.window,D,D,0);V.match_start-=D;V.strstart-=D;V.block_start-=D;var t=f=V.hash_size;do{var J=V.head[--t];V.head[t]=J>=D?J-D:0}while(--f);t=f=D;do J=V.prev[--t],V.prev[t]=J>=D?J-D:0;while(--f);n+=D}if(V.strm.avail_in===0)break;t=V.strm;f=V.window;J=V.strstart+V.lookahead;var H=t.avail_in;H>n&&(H=n);H===0?f=0:(t.avail_in-=H,wm.arraySet(f,t.input,t.next_in,H,J),t.state.wrap===
1?t.adler=O63(t.adler,f,H,J):t.state.wrap===2&&(t.adler=gm(t.adler,f,H,J)),t.next_in+=H,t.total_in+=H,f=H);V.lookahead+=f;if(V.lookahead+V.insert>=3)for(n=V.strstart-V.insert,V.ins_h=V.window[n],V.ins_h=(V.ins_h<<V.hash_shift^V.window[n+1])&V.hash_mask;V.insert&&!(V.ins_h=(V.ins_h<<V.hash_shift^V.window[n+3-1])&V.hash_mask,V.prev[n&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=n,n++,V.insert--,V.lookahead+V.insert<3););}while(V.lookahead<262&&V.strm.avail_in!==0)};
x1R=function(V,D){for(var f;;){if(V.lookahead<262){vw(V);if(V.lookahead<262&&D===0)return 1;if(V.lookahead===0)break}f=0;V.lookahead>=3&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,f=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);f!==0&&V.strstart-f<=V.w_size-262&&(V.match_length=IlY(V,f));if(V.match_length>=3)if(f=bk(V,V.strstart-V.match_start,V.match_length-3),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=3){V.match_length--;
do V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart;while(--V.match_length!==0);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else f=bk(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(f&&(ek(V,!1),V.strm.avail_out===0))return 1}V.insert=V.strstart<2?V.strstart:2;return D===4?(ek(V,
!0),V.strm.avail_out===0?3:4):V.last_lit&&(ek(V,!1),V.strm.avail_out===0)?1:2};
ke=function(V,D){for(var f,n;;){if(V.lookahead<262){vw(V);if(V.lookahead<262&&D===0)return 1;if(V.lookahead===0)break}f=0;V.lookahead>=3&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,f=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);V.prev_length=V.match_length;V.prev_match=V.match_start;V.match_length=2;f!==0&&V.prev_length<V.max_lazy_match&&V.strstart-f<=V.w_size-262&&(V.match_length=IlY(V,f),V.match_length<=5&&(V.strategy===1||V.match_length===3&&
V.strstart-V.match_start>4096)&&(V.match_length=2));if(V.prev_length>=3&&V.match_length<=V.prev_length){n=V.strstart+V.lookahead-3;f=bk(V,V.strstart-1-V.prev_match,V.prev_length-3);V.lookahead-=V.prev_length-1;V.prev_length-=2;do++V.strstart<=n&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);while(--V.prev_length!==0);V.match_available=0;V.match_length=2;V.strstart++;if(f&&(ek(V,!1),V.strm.avail_out===0))return 1}else if(V.match_available){if((f=
bk(V,0,V.window[V.strstart-1]))&&ek(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return 1}else V.match_available=1,V.strstart++,V.lookahead--}V.match_available&&(bk(V,0,V.window[V.strstart-1]),V.match_available=0);V.insert=V.strstart<2?V.strstart:2;return D===4?(ek(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ek(V,!1),V.strm.avail_out===0)?1:2};
MJU=function(V,D){for(var f,n,t,J=V.window;;){if(V.lookahead<=258){vw(V);if(V.lookahead<=258&&D===0)return 1;if(V.lookahead===0)break}V.match_length=0;if(V.lookahead>=3&&V.strstart>0&&(n=V.strstart-1,f=J[n],f===J[++n]&&f===J[++n]&&f===J[++n])){for(t=V.strstart+258;f===J[++n]&&f===J[++n]&&f===J[++n]&&f===J[++n]&&f===J[++n]&&f===J[++n]&&f===J[++n]&&f===J[++n]&&n<t;);V.match_length=258-(t-n);V.match_length>V.lookahead&&(V.match_length=V.lookahead)}V.match_length>=3?(f=bk(V,1,V.match_length-3),V.lookahead-=
V.match_length,V.strstart+=V.match_length,V.match_length=0):(f=bk(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++);if(f&&(ek(V,!1),V.strm.avail_out===0))return 1}V.insert=0;return D===4?(ek(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ek(V,!1),V.strm.avail_out===0)?1:2};
h0n=function(V,D){for(var f;;){if(V.lookahead===0&&(vw(V),V.lookahead===0)){if(D===0)return 1;break}V.match_length=0;f=bk(V,0,V.window[V.strstart]);V.lookahead--;V.strstart++;if(f&&(ek(V,!1),V.strm.avail_out===0))return 1}V.insert=0;return D===4?(ek(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ek(V,!1),V.strm.avail_out===0)?1:2};
si=function(V,D,f,n,t){this.good_length=V;this.max_lazy=D;this.nice_length=f;this.max_chain=n;this.func=t};
U1U=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 wm.Buf16(1146);this.dyn_dtree=new wm.Buf16(122);this.bl_tree=new wm.Buf16(78);Zd(this.dyn_ltree);Zd(this.dyn_dtree);Zd(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new wm.Buf16(16);this.heap=new wm.Buf16(573);Zd(this.heap);this.heap_max=this.heap_len=0;this.depth=new wm.Buf16(573);Zd(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};
VsY=function(V,D){if(!V||!V.state||D>5||D<0)return V?yW(V,-2):-2;var f=V.state;if(!V.output||!V.input&&V.avail_in!==0||f.status===666&&D!==4)return yW(V,V.avail_out===0?-5:-2);f.strm=V;var n=f.last_flush;f.last_flush=D;if(f.status===42)if(f.wrap===2)V.adler=0,cw(f,31),cw(f,139),cw(f,8),f.gzhead?(cw(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),cw(f,f.gzhead.time&255),cw(f,f.gzhead.time>>8&255),cw(f,f.gzhead.time>>16&255),cw(f,f.gzhead.time>>
24&255),cw(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),cw(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(cw(f,f.gzhead.extra.length&255),cw(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(V.adler=gm(V.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(cw(f,0),cw(f,0),cw(f,0),cw(f,0),cw(f,0),cw(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),cw(f,3),f.status=113);else{var t=8+(f.w_bits-8<<4)<<8;t|=(f.strategy>=2||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6;f.strstart!==0&&(t|=
32);f.status=113;Fv(f,t+(31-t%31));f.strstart!==0&&(Fv(f,V.adler>>>16),Fv(f,V.adler&65535));V.adler=1}if(f.status===69)if(f.gzhead.extra){for(t=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t)),jk(V),t=f.pending,f.pending!==f.pending_buf_size));)cw(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t));f.gzindex===f.gzhead.extra.length&&
(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){t=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t)),jk(V),t=f.pending,f.pending===f.pending_buf_size)){var J=1;break}J=f.gzindex<f.gzhead.name.length?f.gzhead.name.charCodeAt(f.gzindex++)&255:0;cw(f,J)}while(J!==0);f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t));J===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===
91)if(f.gzhead.comment){t=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t)),jk(V),t=f.pending,f.pending===f.pending_buf_size)){J=1;break}J=f.gzindex<f.gzhead.comment.length?f.gzhead.comment.charCodeAt(f.gzindex++)&255:0;cw(f,J)}while(J!==0);f.gzhead.hcrc&&f.pending>t&&(V.adler=gm(V.adler,f.pending_buf,f.pending-t,t));J===0&&(f.status=103)}else f.status=103;f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&jk(V),
f.pending+2<=f.pending_buf_size&&(cw(f,V.adler&255),cw(f,V.adler>>8&255),V.adler=0,f.status=113)):f.status=113);if(f.pending!==0){if(jk(V),V.avail_out===0)return f.last_flush=-1,0}else if(V.avail_in===0&&(D<<1)-(D>4?9:0)<=(n<<1)-(n>4?9:0)&&D!==4)return yW(V,-5);if(f.status===666&&V.avail_in!==0)return yW(V,-5);if(V.avail_in!==0||f.lookahead!==0||D!==0&&f.status!==666){n=f.strategy===2?h0n(f,D):f.strategy===3?MJU(f,D):Bw[f.level].func(f,D);if(n===3||n===4)f.status=666;if(n===1||n===3)return V.avail_out===
0&&(f.last_flush=-1),0;if(n===2&&(D===1?(rm(f,2,3),Hw(f,256,lk),f.bi_valid===16?(JB(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)):D!==5&&(rm(f,0,3),CC9(f,0,0),D===3&&(Zd(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),jk(V),V.avail_out===0))return f.last_flush=-1,0}if(D!==4)return 0;if(f.wrap<=0)return 1;f.wrap===2?(cw(f,V.adler&255),cw(f,V.adler>>8&255),cw(f,V.adler>>16&255),cw(f,V.adler>>24&255),cw(f,
V.total_in&255),cw(f,V.total_in>>8&255),cw(f,V.total_in>>16&255),cw(f,V.total_in>>24&255)):(Fv(f,V.adler>>>16),Fv(f,V.adler&65535));jk(V);f.wrap>0&&(f.wrap=-f.wrap);return f.pending!==0?0:1};
D_d=function(V){if(!(this instanceof D_d))return new D_d(V);V=this.options=wm.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},V||{});V.raw&&V.windowBits>0?V.windowBits=-V.windowBits:V.gzip&&V.windowBits>0&&V.windowBits<16&&(V.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new fHL;this.strm.avail_out=0;var D=this.strm;var f=V.level,n=V.method,t=V.windowBits,J=V.memLevel,H=V.strategy;if(D){var Q=1;f===-1&&(f=6);t<0?(Q=0,t=-t):t>15&&
(Q=2,t-=16);if(J<1||J>9||n!==8||t<8||t>15||f<0||f>9||H<0||H>4)D=yW(D,-2);else{t===8&&(t=9);var T=new U1U;D.state=T;T.strm=D;T.wrap=Q;T.gzhead=null;T.w_bits=t;T.w_size=1<<T.w_bits;T.w_mask=T.w_size-1;T.hash_bits=J+7;T.hash_size=1<<T.hash_bits;T.hash_mask=T.hash_size-1;T.hash_shift=~~((T.hash_bits+3-1)/3);T.window=new wm.Buf8(T.w_size*2);T.head=new wm.Buf16(T.hash_size);T.prev=new wm.Buf16(T.w_size);T.lit_bufsize=1<<J+6;T.pending_buf_size=T.lit_bufsize*4;T.pending_buf=new wm.Buf8(T.pending_buf_size);
T.d_buf=T.lit_bufsize;T.l_buf=3*T.lit_bufsize;T.level=f;T.strategy=H;T.method=n;if(D&&D.state){D.total_in=D.total_out=0;D.data_type=2;f=D.state;f.pending=0;f.pending_out=0;f.wrap<0&&(f.wrap=-f.wrap);f.status=f.wrap?42:113;D.adler=f.wrap===2?0:1;f.last_flush=0;if(!nyd){n=Array(16);for(J=H=0;J<28;J++)for(AR9[J]=H,t=0;t<1<<E8L[J];t++)QW[H++]=J;QW[H-1]=J;for(J=H=0;J<16;J++)for(Y2X[J]=H,t=0;t<1<<al3[J];t++)TV[H++]=J;for(H>>=7;J<30;J++)for(Y2X[J]=H<<7,t=0;t<1<<al3[J]-7;t++)TV[256+H++]=J;for(t=0;t<=15;t++)n[t]=
0;for(t=0;t<=143;)lk[t*2+1]=8,t++,n[8]++;for(;t<=255;)lk[t*2+1]=9,t++,n[9]++;for(;t<=279;)lk[t*2+1]=7,t++,n[7]++;for(;t<=287;)lk[t*2+1]=8,t++,n[8]++;m1R(lk,287,n);for(t=0;t<30;t++)GV[t*2+1]=5,GV[t*2]=NNd(t,5);ts9=new d1F(lk,E8L,257,286,15);PRL=new d1F(GV,al3,0,30,15);oy9=new d1F([],JOd,0,19,7);nyd=!0}f.l_desc=new uQ9(f.dyn_ltree,ts9);f.d_desc=new uQ9(f.dyn_dtree,PRL);f.bl_desc=new uQ9(f.bl_tree,oy9);f.bi_buf=0;f.bi_valid=0;z0U(f);f=0}else f=yW(D,-2);f===0&&(D=D.state,D.window_size=2*D.w_size,Zd(D.head),
D.max_lazy_match=Bw[D.level].max_lazy,D.good_match=Bw[D.level].good_length,D.nice_match=Bw[D.level].nice_length,D.max_chain_length=Bw[D.level].max_chain,D.strstart=0,D.block_start=0,D.lookahead=0,D.insert=0,D.match_length=D.prev_length=2,D.match_available=0,D.ins_h=0);D=f}}else D=-2;if(D!==0)throw Error(Kh[D]);V.header&&(D=this.strm)&&D.state&&D.state.wrap===2&&(D.state.gzhead=V.header);if(V.dictionary){var y;typeof V.dictionary==="string"?y=rO9(V.dictionary):HAx.call(V.dictionary)==="[object ArrayBuffer]"?
y=new Uint8Array(V.dictionary):y=V.dictionary;V=this.strm;J=y;H=J.length;if(V&&V.state)if(y=V.state,D=y.wrap,D===2||D===1&&y.status!==42||y.lookahead)D=-2;else{D===1&&(V.adler=O63(V.adler,J,H,0));y.wrap=0;H>=y.w_size&&(D===0&&(Zd(y.head),y.strstart=0,y.block_start=0,y.insert=0),f=new wm.Buf8(y.w_size),wm.arraySet(f,J,H-y.w_size,y.w_size,0),J=f,H=y.w_size);f=V.avail_in;n=V.next_in;t=V.input;V.avail_in=H;V.next_in=0;V.input=J;for(vw(y);y.lookahead>=3;){J=y.strstart;H=y.lookahead-2;do y.ins_h=(y.ins_h<<
y.hash_shift^y.window[J+3-1])&y.hash_mask,y.prev[J&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=J,J++;while(--H);y.strstart=J;y.lookahead=2;vw(y)}y.strstart+=y.lookahead;y.block_start=y.strstart;y.insert=y.lookahead;y.lookahead=0;y.match_length=y.prev_length=2;y.match_available=0;V.next_in=n;V.input=t;V.avail_in=f;y.wrap=D;D=0}else D=-2;if(D!==0)throw Error(Kh[D]);this._dict_set=!0}};
wR9=function(V,D){D=D||{};D.gzip=!0;D=new D_d(D);D.push(V,!0);if(D.err)throw D.msg||Kh[D.err];return D.result};
Tgc=function(V,D){var f=QW9();f&&f.publish.call(f,V.toString(),V,D)};
jWX=function(V,D,f){var n=QW9();if(!n)return 0;var t=n.subscribe(V.toString(),function(J,H){var Q=_.Yw("ytPubsub2Pubsub2SkipSubKey");Q&&Q==t||(Q=function(){if(bAY[t])try{if(H&&V instanceof KqZ&&V!=J)try{var T=V.dataClass,y=H;if(!y.args||!y.version)throw Error("bd");try{if(!T.version_){var Z=new T;T.version_=Z.version}var l=T.version_}catch(G){}if(!l||y.version!=l)throw Error("cd");try{H=Reflect.construct(T,_.Od(y.args))}catch(G){throw G.message="yt.pubsub2.Data.deserialize(): "+G.message,G;}}catch(G){throw G.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+V.toString()+": "+G.message,G;}D.call(f||window,H)}catch(G){_.Ah(G)}},yOn[V.toString()]?_.Yw("yt.scheduler.instance")?_.dm.addLowPriorityJob(Q):_.rO(Q,0):Q())});
bAY[t]=!0;ZA9[V.toString()]||(ZA9[V.toString()]=[]);ZA9[V.toString()].push(t);return t};
cOd=function(){var V=lH9,D=jWX(Gq9,function(f){V.apply(void 0,arguments);eIx(D)});
return D};
eIx=function(V){var D=QW9();D&&(typeof V==="number"&&(V=[V]),_.Sd(V,function(f){D.unsubscribeByKey(f);delete bAY[f]}))};
QW9=function(){return _.Yw("ytPubsub2Pubsub2Instance")};
Fq9=function(V,D,f){f=f===void 0?{sampleRate:.1}:f;Math.random()<Math.min(.02,f.sampleRate/100)&&Tgc("meta_logging_csi_event",{timerName:V,timelineData:D})};
_.gyZ=function(V){return V?(V=V.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Ee(V):null:null};
_.mW=function(V){return V?(V=V.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.rQ(V):null:null};
kq9=function(){vy9||(vy9=_.mW(_.XB("WORKER_SERIALIZATION_URL")));return vy9||void 0};
_.BgZ=function(){var V=kq9();sWL||V===void 0||(sWL=new Worker(_.HS(V),void 0));return sWL};
_.d_9=function(){return typeof Worker==="function"&&kq9()?!0:!1};
_.zIU=function(){if(_.d_9()&&!uCX){var V=function(f){f=f.data;if(f.op==="gzippedGelBatch"){var n=Ngd.get(f.key);n&&(m_c(f.gzippedBatch,n.latencyPayload,n.url,n.options,n.sendFn),Ngd.delete(f.key))}},D=_.BgZ();
D&&(D.addEventListener("message",V),D.onerror=function(){Ngd.clear()},uCX=!0)}};
aHR=function(V,D,f,n,t){t=t===void 0?!1:t;var J={startTime:(0,_.VW)(),ticks:{},infos:{}};if(zV)try{var H=RI9(D);if(H!=null&&(H>CRc||H<ql9))n(V,f);else{if(_.c("gzip_gel_with_worker")&&(_.c("initial_gzip_use_main_thread")&&!XRX||!_.c("initial_gzip_use_main_thread"))){uCX||_.zIU();var Q=_.BgZ();if(Q&&!t){Ngd.set(EyF,{latencyPayload:J,url:V,options:f,sendFn:n});Q.postMessage({op:"gelBatchToGzip",serializedBatch:D,key:EyF});EyF++;return}}var T=wR9(AO9(D));m_c(T,J,V,f,n)}}catch(y){_.$w(y),n(V,f)}else n(V,
f)};
m_c=function(V,D,f,n,t){XRX=!1;var J=(0,_.VW)();D.ticks.gelc=J;RO++;_.c("disable_compression_due_to_performance_degredation")&&J-D.startTime>=Yld&&($_9++,_.c("abandon_compression_after_N_slow_zips")?RO===_.tU("compression_disable_point")&&$_9>iAd&&(zV=!1):zV=!1);Sl9(D);n.headers||(n.headers={});n.headers["Content-Encoding"]="gzip";n.postBody=V;n.postParams=void 0;t(f,n)};
Wq3=function(V){var D=D===void 0?!1:D;var f=f===void 0?!1:f;var n=(0,_.VW)(),t={startTime:n,ticks:{},infos:{}},J=D?_.Yw("yt.logging.gzipForFetch",!1):!0;if(zV&&J){if(!V.body)return V;try{var H=f?V.body:typeof V.body==="string"?V.body:JSON.stringify(V.body);J=H;if(!f&&typeof H==="string"){var Q=RI9(H);if(Q!=null&&(Q>CRc||Q<ql9))return V;f=D?{level:1}:void 0;J=wR9(AO9(H),f);var T=(0,_.VW)();t.ticks.gelc=T;if(D){RO++;if((_.c("disable_compression_due_to_performance_degredation")||_.c("disable_compression_due_to_performance_degradation_lr"))&&
T-n>=Yld)if($_9++,_.c("abandon_compression_after_N_slow_zips")||_.c("abandon_compression_after_N_slow_zips_lr")){D=$_9/RO;var y=iAd/_.tU("compression_disable_point");RO>0&&RO%_.tU("compression_disable_point")===0&&D>=y&&(zV=!1)}else zV=!1;Sl9(t)}}V.headers=Object.assign({},{"Content-Encoding":"gzip"},V.headers||{});V.body=J;return V}catch(Z){return _.$w(Z),V}}else return V};
RI9=function(V){try{return(new Blob(V.split(""))).size}catch(D){return _.$w(D),null}};
Sl9=function(V){_.c("gel_compression_csi_killswitch")||!_.c("log_gel_compression_latency")&&!_.c("log_gel_compression_latency_lr")||Fq9("gel_compression",V,{sampleRate:.1})};
pRx=function(){this.blockSize=-1};
Ch=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var V=1;V<this.blockSize;++V)this.pad_[V]=0;this.total_=this.inbuf_=0;this.reset()};
IHc=function(V){V=Object.assign({},V);delete V.Authorization;var D=_.LqY();if(D){var f=new Ch;f.update(_.XB("INNERTUBE_API_KEY"));f.update(D);V.hash=_.V3(f.digest(),3)}return V};
Xv=function(){OAY||(OAY=new _.qY("yt.innertube"));return OAY};
x_Y=function(V,D,f,n){if(n)return null;n=Xv().get("nextId",!0)||1;var t=Xv().get("requests",!0)||{};t[n]={method:V,request:D,authState:IHc(f),requestTime:Math.round((0,_.VW)())};Xv().set("nextId",n+1,86400,!0);Xv().set("requests",t,86400,!0);return n};
MsY=function(V){var D=Xv().get("requests",!0)||{};delete D[V];Xv().set("requests",D,86400,!0)};
U_3=function(V){var D=Xv().get("requests",!0);if(D){for(var f in D){var n=D[f];if(!(Math.round((0,_.VW)())-n.requestTime<6E4)){var t=n.authState,J=IHc(_.s4x(!1));_.sB.equals(t,J)&&(t=n.request,"requestTimeMs"in t&&(t.requestTimeMs=Math.round((0,_.VW)())),hI3(V,n.method,t,{}));delete D[f]}}Xv().set("requests",D,86400,!0)}};
VL9=function(V){var D;return(V=V==null?void 0:(D=V.error)==null?void 0:D.code)&&V>=400&&V<=599?!1:!0};
DZY=function(V){var D;V=V==null?void 0:(D=V.error)==null?void 0:D.code;return!(V!==400&&V!==415)};
n7X=function(){if(fx9)return fx9();var V={};fx9=Ub("LogsDatabaseV2",{objectStores:(V.LogsRequestsStore={addedAtVersion:2},V),shared:!1,upgrade:function(D,f,n){f(2)&&Ei(D,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});f(3);f(5)&&(n=n.objectStore("LogsRequestsStore"),n.JSC$8731_wrapped.indexNames.contains("newRequest")&&n.JSC$8731_wrapped.deleteIndex("newRequest"),AB(n,"newRequestV2",["status","interface","timestamp"]));f(7)&&D.JSC$8716_wrapped.objectStoreNames.contains("sapisid")&&D.JSC$8716_wrapped.deleteObjectStore("sapisid");
f(9)&&D.JSC$8716_wrapped.objectStoreNames.contains("SWHealthLog")&&D.JSC$8716_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return fx9()};
aO=function(V){return _.iE(n7X(),V)};
Pdn=function(V,D){var f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return f={startTime:(0,_.VW)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.b(H,aO(D),2);if(H.nextAddress!=3)return n=H.yieldResult,t=Object.assign({},V,{options:JSON.parse(JSON.stringify(V.options)),interface:_.XB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.b(H,n.put("LogsRequestsStore",t),3);J=H.yieldResult;f.ticks.tc=(0,_.VW)();tL3(f);return H.return(J)})};
o79=function(V,D){var f,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return f={startTime:(0,_.VW)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.b(Z,aO(D),2);if(Z.nextAddress!=3)return n=Z.yieldResult,t=_.XB("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[V,t,0],H=[V,t,(0,_.VW)()],Q=IDBKeyRange.bound(J,H),T="prev",_.c("use_fifo_for_networkless")&&(T="next"),y=void 0,_.b(Z,_.S1(n,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(l){return _.Dd(l.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:Q,direction:T},function(G){G.getValue()&&(y=G.getValue(),V==="NEW"&&(y.status="QUEUED",G.update(y)))})}),3);
f.ticks.tc=(0,_.VW)();tL3(f);return Z.return(y)})};
JP9=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,aO(D),2);f=n.yieldResult;return n.return(_.S1(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var J=t.objectStore("LogsRequestsStore");return J.get(V).then(function(H){if(H)return H.status="QUEUED",J.put(H).then(function(){return H})})}))})};
rP9=function(V,D,f,n){f=f===void 0?!0:f;var t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,aO(D),2);t=J.yieldResult;return J.return(_.S1(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){var Q=H.objectStore("LogsRequestsStore");return Q.get(V).then(function(T){return T?(T.status="NEW",f&&(T.sendCount+=1),n!==void 0&&(T.options.compress=n),Q.put(T).then(function(){return T})):XT.resolve(void 0)})}))})};
HRZ=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,aO(D),2);f=n.yieldResult;return n.return(f.delete("LogsRequestsStore",V))})};
woZ=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,aO(V),2);D=n.yieldResult;f=(0,_.VW)()-2592E6;return _.b(n,_.S1(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){return LH(t.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=f)return J.delete().then(function(){return J.continue()})})}),0)})};
QBZ=function(){_.w(function(V){return _.b(V,VJU("LogsDatabaseV2"),0)})};
tL3=function(V){_.c("nwl_csi_killswitch")||Fq9("networkless_performance",V,{sampleRate:1})};
_.bRd=function(V){return _.iE(TUR(),V)};
KRY=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,_.bRd(V),2);D=n.yieldResult;f=(0,_.VW)()-2592E6;return _.b(n,_.S1(D,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){return LH(t.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=f)return J.delete().then(function(){return J.continue()})})}),0)})};
yPY=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,_.bRd(V),2);D=f.yieldResult;return _.b(f,D.clear("SWHealthLog"),0)})};
_.Ye=function(V,D,f,n,t,J,H){t=t===void 0?"":t;J=J===void 0?!1:J;H=H===void 0?!1:H;if(V)if(f&&!z5("cobalt"))_.$w(new _.cI("Legacy referrer-scrubbed ping detected")),V&&ZR3(V,void 0,{scrubReferrer:!0});else if(t)$2c(V,D,"POST",t,n);else if(_.XB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||n||H)$2c(V,D,"GET","",n,void 0,J,H);else{b:{try{c:{var Q=new jBc({url:V});if(Q.urlParamValues_.dsh==="1")var T=null;else{var y=Q.urlParamValues_.ae;if(y==="1"){var Z=Q.urlParamValues_.adurl;if(Z)try{T={version:3,directUrl:decodeURIComponent(Z),
asyncUrl:BXx(Q.JSC$7564_url_,"act=1","ri=1",lxY(Q))};break c}catch(k){}}T=y==="2"?{version:4,directUrl:BXx(Q.JSC$7564_url_,"dct=1","suid="+Q.suid_,""),asyncUrl:BXx(Q.JSC$7564_url_,"act=1","ri=1","suid="+Q.suid_)}:null}}if(T){var l=_.Qx(V);var G=!(!l||!l.endsWith("/aclk")||_.Al(V,"ri")!=="1");break b}}catch(k){}G=!1}if(G){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(V,"")){var F=!0;break b}}catch(k){}F=!1}F?(D&&D(),f=!0):f=!1}else f=!1;f||ZR3(V,D)}};
ZR3=function(V,D,f){f=f===void 0?{}:f;var n=new Image,t=""+G_Z++;eL9[t]=n;n.onload=n.onerror=function(){D&&eL9[t]&&D();delete eL9[t]};
f.scrubReferrer&&(n.referrerPolicy="no-referrer");n.src=V};
$e=function(V,D){cPL(V,D==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
FRU=function(V){var D;return((D=document.featurePolicy)==null?0:D.allowedFeatures().includes("attribution-reporting"))?V+"&nis=6":V+"&nis=5"};
g73=function(V){if(!V)return!1;try{var D;if(((D=_.W9(V))==null?void 0:D.asm)==="4")return!0}catch(f){_.Ah(f)}return!1};
cPL=function(V,D){D?(V=FRU(V),_.Ye(V,void 0,void 0,void 0,"",!0,!0)):_.Ye(V)};
k_c=function(){v7R||(v7R=new _.qY("yt.offline"));return v7R};
sB3=function(V){if(_.c("offline_error_handling")){var D=k_c().get("errors",!0)||{};D[V.message]={name:V.name,stack:V.stack};V.level&&(D[V.message].level=V.level);k_c().set("errors",D,2592E3,!0)}};
dZZ=function(V,D,f,n){n=n===void 0?!1:n;D=_.c("web_fp_via_jspb")?Object.assign({},D):D;_.c("use_cfr_monitor")&&BUZ(V,D);if(_.c("use_request_time_ms_header"))D.headers&&hh(V)&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VW)())));else{var t;if((t=D.postParams)==null?0:t.requestTimeMs)D.postParams.requestTimeMs=Math.round((0,_.VW)())}f&&Object.keys(D).length===0?_.Ye(V):D.compress?D.postBody?(typeof D.postBody!=="string"&&(D.postBody=JSON.stringify(D.postBody)),aHR(V,D.postBody,
D,_.T5,n)):aHR(V,JSON.stringify(D.postParams),D,p1U,n):_.T5(V,D)};
uSx=function(V,D){_.c("use_event_time_ms_header")&&hh(V)&&(D.headers||(D.headers={}),D.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.VW)())));return D};
_.mZL=function(){NUR||(NUR=new _.ik({logOfflineErrors:!0,enablePolling:!0}));return NUR};
BUZ=function(V,D){var f=D.onError?D.onError:function(){};
D.onError=function(t,J){Sk().requestComplete(V,!1);f(t,J)};
var n=D.onSuccess?D.onSuccess:function(){};
D.onSuccess=function(t,J){Sk().requestComplete(V,!0);n(t,J)}};
_.zLn=function(){return _.xw(document.location.toString())!=="www.youtube-nocookie.com"};
_.qsR=function(){return _.Yw("ytNetworklessLoggingInitializationOptions")?_.RLx.isNwlInitialized:_.CdY};
XoL=function(V,D){if(_.c("polymer_on_demand_shady_dom")){var f;var n=(f=V.__shady_native_firstElementChild)!=null?f:V.firstElementChild}else n=V.firstElementChild;for(;n;){if(V=D(n)?n:XoL(n,D))return V;n=n.nextElementSibling}return null};
APF=function(){var V=document;if("visibilityState"in V)return V.visibilityState;var D=E7Y+"VisibilityState";if(D in V)return V[D]};
_.axY=function(V,D){var f;Ww(V,function(n){f=D[n];return!!f});
return f};
_.Lh=function(V){var D=Ys9(V);D?D.focus(void 0):_.ph(V)};
Ys9=function(V){return(V=XoL(V,function(D){return _.IO(D)?$Z9(D)&&!!D.offsetParent:!1}))?V:null};
_.ph=function(V,D){V.hasAttribute("tabindex")||V.setAttribute("tabindex","-1");V.focus(D)};
iRn=function(V,D,f,n){n=n===void 0?{}:n;V.addEventListener&&(D!="mouseenter"||"onmouseenter"in document?D!="mouseleave"||"onmouseenter"in document?D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"):D="mouseout":D="mouseover");return _.sB.findKey(Oi,function(t){var J=typeof t[4]==="boolean"&&t[4]==!!n,H=_.VV(t[4])&&_.VV(n)&&_.sB.equals(t[4],n);return!!t.length&&t[0]==V&&t[1]==D&&t[2]==f&&(J||H)})};
_.MY=function(V,D,f,n){n=n===void 0?{}:n;if(!V||!V.addEventListener&&!V.attachEvent)return"";var t=iRn(V,D,f,n);if(t)return t;t=++Ssn.count+"";var J=!(D!="mouseenter"&&D!="mouseleave"||!V.addEventListener||"onmouseenter"in document);var H=J?function(Q){Q=new xe(Q);if(!_.qr(Q.relatedTarget,function(T){return T==V},!0))return Q.currentTarget=V,Q.type=D,f.call(V,Q)}:function(Q){Q=new xe(Q);
Q.currentTarget=V;return f.call(V,Q)};
H=_.a9(H);V.addEventListener?(D=="mouseenter"&&J?D="mouseover":D=="mouseleave"&&J?D="mouseout":D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"),WR3()||typeof n==="boolean"?V.addEventListener(D,H,n):V.addEventListener(D,H,!!n.capture)):V.attachEvent("on"+D,H);Oi[t]=[V,D,f,H,n];return t};
_.LRF=function(V,D,f){var n=n===void 0?{}:n;var t=_.MY(V,D,function(){_.poU(t);f.apply(V,arguments)},n)};
_.poU=function(V){V&&(typeof V=="string"&&(V=[V]),_.Sd(V,function(D){if(D in Oi){var f=Oi[D],n=f[0],t=f[1],J=f[3];f=f[4];n.removeEventListener?WR3()||typeof f==="boolean"?n.removeEventListener(t,J,f):n.removeEventListener(t,J,!!f.capture):n.detachEvent&&n.detachEvent("on"+t,J);delete Oi[D]}}))};
hB=function(V){this.callback_=V;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(V=0;V<4;V++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.MY(window,"mousemove",(0,_.F1)(this.onMouseMove_,this));this.timerId_=_.HI((0,_.F1)(this.checkPosition_,this),25)};
ORR=function(){var V={};var D=V.preferMobileEvents===void 0?!1:V.preferMobileEvents;V=V.enableScrollEventListener===void 0?!0:V.enableScrollEventListener;if(_.Yw("_lact",window)==null){var f=parseInt(_.XB("LACT"),10);f=isFinite(f)?Date.now()-Math.max(f,0):-1;_.M4("_lact",f,window);_.M4("_fact",f,window);f==-1&&_.Ui();_.MY(document,"keydown",_.Ui);_.MY(document,"keyup",_.Ui);_.MY(document,"mousedown",_.Ui);_.MY(document,"mouseup",_.Ui);D?_.MY(window,"touchmove",function(){IxF("touchmove",200)},{passive:!0}):
(_.MY(window,"resize",function(){IxF("resize",200)}),V&&_.MY(window,"scroll",function(){IxF("scroll",200)}));
new hB(function(){IxF("mouse",100)});
_.MY(document,"touchstart",_.Ui,{passive:!0});_.MY(document,"touchend",_.Ui,{passive:!0})}};
IxF=function(V,D){xZY[V]||(xZY[V]=!0,_.dm.addLowPriorityJob(function(){_.Ui();xZY[V]=!1},D))};
_.Ui=function(){_.Yw("_lact",window)==null&&ORR();var V=Date.now();_.M4("_lact",V,window);_.Yw("_fact",window)==-1&&_.M4("_fact",V,window);(V=_.Yw("ytglobal.ytUtilActivityCallback_"))&&V()};
_.Vf=function(){var V=_.Yw("_lact",window);return V==null?-1:Math.max(Date.now()-V,0)};
_.tk=function(V,D,f){var n=_.Ds();if(n&&D){var t=n.subscribe(V,function(){var J=arguments,H=function(){fy[t]&&D.apply&&typeof D.apply=="function"&&D.apply(f||window,J)};
try{_.MLL[V]?H():_.rO(H,0)}catch(Q){_.Ah(Q)}},f);
fy[t]=!0;ny[V]||(ny[V]=[]);ny[V].push(t);return t}return 0};
_.hLn=function(V){var D=_.Ds();D&&(typeof V==="number"?V=[V]:typeof V==="string"&&(V=[parseInt(V,10)]),_.Sd(V,function(f){D.unsubscribeByKey(f);delete fy[f]}))};
_.UZY=function(V,D){var f=_.Ds();f&&f.publish.apply(f,arguments)};
_.DAZ=function(V){var D=_.Ds();if(D)if(D.clear(V),V)VY3(V);else for(var f in ny)VY3(f)};
_.Ds=function(){return _.fx.ytPubsubPubsubInstance};
VY3=function(V){ny[V]&&(V=ny[V],_.Sd(V,function(D){fy[D]&&delete fy[D]}),V.length=0)};
fvc=function(){var V,D;return"h5vcc"in P2&&((V=P2.h5vcc.traceEvent)==null?0:V.traceBegin)&&((D=P2.h5vcc.traceEvent)==null?0:D.traceEnd)?1:"performance"in P2&&P2.performance.mark&&P2.performance.measure?2:0};
nuZ=function(V){var D=fvc();switch(D){case 1:P2.h5vcc.traceEvent.traceBegin("YTLR",V);break;case 2:P2.performance.mark(V+"-start");break;case 0:break;default:_.JZ(D,"unknown trace type")}};
tYc=function(V){var D=fvc();switch(D){case 1:P2.h5vcc.traceEvent.traceEnd("YTLR",V);break;case 2:D=V+"-start";var f=V+"-end";P2.performance.mark(f);P2.performance.measure(V,D,f);break;case 0:break;default:_.JZ(D,"unknown trace type")}};
PUc=function(V){var D,f;(f=(D=window).onerror)==null||f.call(D,V.message,"",0,0,V)};
ouF=function(V){if(_.c("web_lifecycle_error_handling_killswitch"))return V();try{return V()}catch(D){PUc(D)}};
JAd=function(V){return[V.auth===void 0?"undefined":V.auth,V.isJspb===void 0?"undefined":V.isJspb,V.cttAuthInfo===void 0?"undefined":V.cttAuthInfo,V.tier===void 0?"undefined":V.tier].join("/")};
_.g=function(V,D){if(V)return V[D.name]};
rq=function(){var V=_.Yw("yt.logging.ims");V||(V=new Jk,_.M4("yt.logging.ims",V));return V};
ZIn=function(V,D){if(V.endpoint==="log_event"){rAL(V);var f=HIX(V),n=wtL(V.payload)||"",t=QUn(n),J=200;if(t){if(t.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;J=TI9(t.tier);if(J===400){bIR(V,D);return}}H2[f]=!0;f={cttAuthInfo:f,isJspb:!1,tier:J};rq().storePayload(f,V.payload);K8d(D,!1,f,yAZ(n))}};
lvd=function(V,D,f){if(D.endpoint==="log_event"){rAL(void 0,D);var n=HIX(D,!0),t=QUn(V),J=200;if(t){if(t.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;J=TI9(t.tier);if(J===400){jUR(V,D,f);return}}H2[n]=!0;n={cttAuthInfo:n,isJspb:!0,tier:J};rq().storePayload(n,n4(D.payload));K8d(f,!0,n,yAZ(V))}};
K8d=function(V,D,f,n){D=D===void 0?!1:D;n=n===void 0?!1:n;V&&(wq=new V);V=_.tU("tvhtml5_logging_max_batch_ads_fork")||_.tU("tvhtml5_logging_max_batch")||_.tU("web_logging_max_batch")||100;var t=(0,_.VW)(),J=Gyx(D,f.tier),H=J.lastDebounceQueueFromLogTimeMs;n&&(J.useVideoStatsEndPoint=!0);n=0;f&&(n=rq().getSequenceCount(f));var Q=function(){eJ9({writeThenSend:!0},D,f.tier)};
n>=1E3?Q():n>=V?cAR||(cAR=F8R(function(){Q();cAR=void 0},0)):t-H>=10&&(guY(D,f.tier),J.lastDebounceQueueFromLogTimeMs=t)};
bIR=function(V,D){if(V.endpoint==="log_event"){_.c("more_accurate_gel_parser")&&rq().storePayload({isJspb:!1},V.payload);rAL(V);var f=HIX(V),n=new Map;n.set(f,[V.payload]);var t=wtL(V.payload)||"";D&&(wq=new D);return new _.Qf(function(J,H){wq&&wq.isReady()?vu9(n,wq,J,H,{bypassNetworkless:!0},!0,yAZ(t)):J()})}};
jUR=function(V,D,f){if(D.endpoint==="log_event"){rAL(void 0,D);var n=HIX(D,!0),t=new Map;t.set(n,[n4(D.payload)]);f&&(wq=new f);return new _.Qf(function(J){wq&&wq.isReady()?kyR(t,wq,J,{bypassNetworkless:!0},!0,yAZ(V)):J()})}};
HIX=function(V,D){var f="";if(V.dangerousLogToVisitorSession)f="visitorOnlyApprovedKey";else if(V.cttAuthInfo){if(D===void 0?0:D){D=V.cttAuthInfo.token;f=V.cttAuthInfo;var n=new sUX;f.videoId?n.setVideoId(f.videoId):f.playlistId&&TP(n,2,BIY,aq(f.playlistId));dA9[D]=n}else D=V.cttAuthInfo,f={},D.videoId?f.videoId=D.videoId:D.playlistId&&(f.playlistId=D.playlistId),u2n[V.cttAuthInfo.token]=f;f=V.cttAuthInfo.token}return f};
eJ9=function(V,D,f){V=V===void 0?{}:V;D=D===void 0?!1:D;new _.Qf(function(n,t){var J=Gyx(D,f),H=J.useVideoStatsEndPoint;J.useVideoStatsEndPoint=!1;NIY(J.queueTimer);NIY(J.queueMaxTimer);J.queueMaxTimer=0;wq&&wq.isReady()?f===void 0&&_.c("enable_web_tiered_gel")?mAX(n,t,V,D,300,H):mAX(n,t,V,D,f,H):(guY(D,f),n())})};
mAX=function(V,D,f,n,t,J){var H=wq;f=f===void 0?{}:f;n=n===void 0?!1:n;t=t===void 0?200:t;J=J===void 0?!1:J;var Q=new Map,T=new Map,y={isJspb:n,cttAuthInfo:void 0,tier:t},Z={isJspb:n,cttAuthInfo:void 0};if(n){D=_.r(Object.keys(H2));for(t=D.next();!t.done;t=D.next())t=t.value,T=_.c("enable_web_tiered_gel")?rq().smartExtractMatchingEntries({keys:[y,Z],sizeLimit:1E3}):rq().extractMatchingEntries({isJspb:!0,cttAuthInfo:t}),T.length>0&&Q.set(t,T),(_.c("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&
delete H2[t];kyR(Q,H,V,f,!1,J)}else{Q=_.r(Object.keys(H2));for(y=Q.next();!y.done;y=Q.next())y=y.value,Z=_.c("enable_web_tiered_gel")?rq().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:y,tier:t},{isJspb:!1,cttAuthInfo:y}],sizeLimit:1E3}):rq().extractMatchingEntries({isJspb:!1,cttAuthInfo:y}),Z.length>0&&T.set(y,Z),(_.c("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&delete H2[y];vu9(T,H,V,D,f,!1,J)}};
guY=function(V,D){V=V===void 0?!1:V;D=D===void 0?200:D;var f=function(){eJ9({writeThenSend:!0},V,D)},n=Gyx(V,D),t=n===zJL||n===RJY?5E3:CUF;
_.c("web_gel_timeout_cap")&&!n.queueMaxTimer&&(t=F8R(function(){f()},t),n.queueMaxTimer=t);
NIY(n.queueTimer);t=_.XB("LOGGING_BATCH_TIMEOUT",_.tU("web_gel_debounce_ms",1E4));_.c("shorten_initial_gel_batch_timeout")&&qrd&&(t=XtR);t=F8R(function(){_.tU("gel_min_batch_size")>0?rq().getSequenceCount({cttAuthInfo:void 0,isJspb:V,tier:D})>=Eux&&f():f()},t);
n.queueTimer=t};
vu9=function(V,D,f,n,t,J,H){t=t===void 0?{}:t;var Q=Math.round((0,_.VW)()),T=V.size,y=AAX(H);V=_.r(V);var Z=V.next();for(H={};!Z.done;H={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},Z=V.next()){var l=_.r(Z.value);Z=l.next().value;l=l.next().value;H.batchRequest=_.sB.unsafeClone({context:_.j4n(D.config_||_.fh())});if(!_.MU(l)&&!_.c("throw_err_when_logevent_malformed_killswitch")){n();break}H.batchRequest.events=l;
(l=u2n[Z])&&avn(H.batchRequest,Z,l);delete u2n[Z];H.dangerousLogToVisitorSession=Z==="visitorOnlyApprovedKey";YrZ(H.batchRequest,Q,H.dangerousLogToVisitorSession);$Ax(t);H.onSuccess$jscomp$3=function(G){_.c("start_client_gcf")&&_.dm.addLowPriorityJob(function(){return _.w(function(F){return _.b(F,iIx(G),0)})});
T--;T||f()};
H.networkFailures=0;H.onError$jscomp$5=function(G){return function(){G.networkFailures++;if(t.bypassNetworkless&&G.networkFailures===1)try{hI3(D,y,G.batchRequest,SrX({writeThenSend:!0},G.dangerousLogToVisitorSession,G.onSuccess$jscomp$3,G.onError$jscomp$5,J)),qrd=!1}catch(F){_.Ah(F),n()}T--;T||f()}}(H);
try{hI3(D,y,H.batchRequest,SrX(t,H.dangerousLogToVisitorSession,H.onSuccess$jscomp$3,H.onError$jscomp$5,J)),qrd=!1}catch(G){_.Ah(G),n()}}};
kyR=function(V,D,f,n,t,J){n=n===void 0?{}:n;var H=Math.round((0,_.VW)()),Q={value:V.size},T=new Map([].concat(_.sz(V)));T=_.r(T);for(var y=T.next();!y.done;y=T.next()){var Z=_.r(y.value).next().value,l=V.get(Z);y=new W8Z;var G=D.config_||_.fh(),F=new bN,k=new ptF;_.lB(k,1,G.innertubeContextHostLanguage);_.lB(k,2,G.innertubeContextGeoLocation);_.nh(k,16,G.innertubeContextClientNameFieldNumber);_.lB(k,17,G.innertubeContextClientVersion);if(G.innertubeContextClientConfigInfo){var d=G.innertubeContextClientConfigInfo,
z=new Pw;d.coldConfigData&&_.lB(z,1,d.coldConfigData);d.appInstallData&&_.lB(z,6,d.appInstallData);d.coldHashData&&_.lB(z,3,d.coldHashData);d.hotHashData&&z.setHotHashData(d.hotHashData);_.fc(k,62,z)}(d=_.fx.devicePixelRatio)&&d!=1&&_.tB(k,65,_.rR(d));d=zdR();d!==""&&_.lB(k,54,d);d=RdL();if(d.length>0){z=new L8F;for(var C=0;C<d.length;C++){var A=new Ky;A.setKey(d[C].key);TP(A,2,Iv9,aq(d[C].value));yf(z,15,Ky,A)}_.fc(F,5,z)}Q4Z(G,k);TNY(F);b6n(k);Kg3(G,k);yRZ(k);_.c("start_client_gcf")&&Z6Y(k);_.XB("DELEGATED_SESSION_ID")&&
!_.c("pageid_as_header_web")&&(G=new lN,_.lB(G,3,_.XB("DELEGATED_SESSION_ID")));!_.c("fill_delegate_context_in_gel_killswitch")&&(d=_.XB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z=_.bW(F,lN,3)||new lN,G=F,d=_.lB(z,18,d),_.fc(G,3,d));G=k;d=_.r(Object.entries(_.W9(_.XB("DEVICE",""))));for(z=d.next();!z.done;z=d.next())C=_.r(z.value),z=C.next().value,C=C.next().value,z==="cbrand"?_.lB(G,12,C):z==="cmodel"?_.lB(G,13,C):z==="cbr"?_.lB(G,87,C):z==="cbrver"?_.lB(G,88,C):z==="cos"?_.lB(G,18,
C):z==="cosver"?_.lB(G,19,C):z==="cplatform"&&_.nh(G,42,HlY(C));F.setClient(k);_.fc(y,1,F);if(k=dA9[Z])a:{if(_.KJ(k,GP(k,BIY,1)))F=1;else if(k.getPlaylistId())F=2;else break a;_.fc(y,4,k);k=y.getContext()||new bN;G=_.bW(k,lN,3)||new lN;d=new ee;d.setToken(Z);_.nh(d,1,F);yf(G,12,ee,d);_.fc(k,3,G)}delete dA9[Z];Z=Z==="visitorOnlyApprovedKey";OIY()||_.c2(y,2,H);!Z&&(F=_.XB("EVENT_ID"))&&(k=xAc(),G=new MY9,_.lB(G,1,F),_.c2(G,2,k),_.fc(y,5,G));$Ax(n);if(_.c("jspb_serialize_with_worker")&&(F=_.BgZ())&&
n.writeThenSend){_.hJx.set(UA9,{client:D,resolve:f,networklessOptions:n,isIsolated:t,useVSSEndpoint:J,dangerousLogToVisitorSession:Z,requestsOutstanding:Q});F.postMessage({op:"gelBatchToSerialize",batchRequest:n4(y),clientEvents:l,key:UA9});UA9++;break}if(l){F=[];for(k=0;k<l.length;k++)try{F.push(new F4(l[k]))}catch(O){_.Ah(new _.cI("Transport failed to deserialize "+String(l[k])))}l=F}else l=[];l=_.r(l);for(F=l.next();!F.done;F=l.next())yf(y,3,F4,F.value);l={startTime:(0,_.VW)(),ticks:{},infos:{}};
y=y.serialize();l.ticks.geljspc=(0,_.VW)();_.c("log_jspb_serialize_latency")&&Fq9("gel_jspb_serialize",l,{sampleRate:.1});_.VD9(y,D,f,n,t,J,Z,Q)}};
_.VD9=function(V,D,f,n,t,J,H,Q){n=n===void 0?{}:n;Q=Q===void 0?{value:0}:Q;J=AAX(J);n=SrX(n,H,function(T){_.c("start_client_gcf")&&_.dm.addLowPriorityJob(function(){return _.w(function(y){return _.b(y,iIx(T),0)})});
Q.value--;Q.value||f()},function(){Q.value--;
Q.value||f()},t);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=V;hI3(D,J,"",n);qrd=!1};
$Ax=function(V){_.c("always_send_and_write")&&(V.writeThenSend=!1)};
SrX=function(V,D,f,n,t){V={retry:!0,onSuccess:f,onError:n,networklessOptions:V,dangerousLogToVisitorSession:D,bypassMonitoring:!!t,headers:{},postBodyFormat:"",postBody:"",compress:_.c("compress_gel")||_.c("compress_gel_lr")};OIY()&&(V.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VW)())));return V};
YrZ=function(V,D,f){OIY()||(V.requestTimeMs=String(D));_.c("unsplit_gel_payloads_in_logs")&&(V.unsplitGelPayloadsInLogs=!0);!f&&(D=_.XB("EVENT_ID"))&&(f=xAc(),V.serializedClientEventId={serializedEventId:D,clientCounter:String(f)})};
xAc=function(){var V=_.XB("BATCH_CLIENT_COUNTER")||0;V||(V=Math.floor(Math.random()*65535/2));V++;V>65535&&(V=1);_.ql("BATCH_CLIENT_COUNTER",V);return V};
avn=function(V,D,f){if(f.videoId)var n="VIDEO";else if(f.playlistId)n="PLAYLIST";else return;V.credentialTransferTokenTargetId=f;V.context=V.context||{};V.context.user=V.context.user||{};V.context.user.credentialTransferTokens=[{token:D,scope:n}]};
rAL=function(V,D){var f=_.PI("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Yw("yt.logging.transport.enableScrapingForTest"))if(f)D3Z=[],_.M4("yt.logging.transport.enableScrapingForTest",!0),_.M4("yt.logging.transport.scrapedPayloadsForTesting",D3Z),_.M4("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.M4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.M4("yt.logging.transport.scrapeClientEvent",!0);else return;f=_.Yw("yt.logging.transport.scrapedPayloadsForTesting");var n=_.Yw("yt.logging.transport.payloadToScrape");D&&(D=_.Yw("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(D.payload)())&&f.push(D);D=_.Yw("yt.logging.transport.scrapeClientEvent");if(n&&n.length>=1)for(var t=0;t<n.length;t++)if(V&&V.payload[n[t]])if(D)f.push(V.payload);else{var J=void 0;f.push(((J=V)==null?void 0:J.payload)[n[t]])}_.M4("yt.logging.transport.scrapedPayloadsForTesting",
f)};
OIY=function(){return _.c("use_request_time_ms_header")||_.c("lr_use_request_time_ms_header")};
F8R=function(V,D){return _.c("transport_use_scheduler")===!1?_.rO(V,D):_.c("logging_avoid_blocking_during_navigation")||_.c("lr_logging_avoid_blocking_during_navigation")?_.gq(_.dm,function(){if(_.fbd().currentState==="none")V();else{var f={};_.fbd().install((f.none={callback:V},f))}},D):_.gq(_.dm,V,D)};
NIY=function(V){_.c("transport_use_scheduler")?_.dm.cancelJob(V):_.wO(V)};
iIx=function(V){var D,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){return l.nextAddress==1?(n=(D=V)==null?void 0:(f=D.responseContext)==null?void 0:f.globalConfigGroup,t=_.g(n,ntF),H=(J=n)==null?void 0:J.hotHashData,Q=_.g(n,tD9),y=(T=n)==null?void 0:T.coldHashData,(Z=_.DY().resolve(_.Vx(v2)))?H?t?_.b(l,PSF(Z,H,t),2):_.b(l,PSF(Z,H),2):l.jumpTo(2):l.return()):y?Q?_.b(l,otx(Z,y,Q),0):_.b(l,otx(Z,y),0):l.jumpTo(0)})};
Gyx=function(V,D){D=D===void 0?200:D;return V?D===300?zJL:J2d:D===300?RJY:r23};
QUn=function(V){if(_.c("enable_web_tiered_gel")){V=HmX[V||""];var D,f,n,t=_.DY().resolve(_.Vx(v2))==null?void 0:(D=wrX())==null?void 0:(f=D.loggingHotConfig)==null?void 0:(n=f.eventLoggingConfig)==null?void 0:n.payloadPolicies;if(t)for(D=0;D<t.length;D++)if(t[D].payloadNumber===V)return t[D]}};
wtL=function(V){V=Object.keys(V);V=_.r(V);for(var D=V.next();!D.done;D=V.next())if(D=D.value,HmX[D])return D};
TI9=function(V){switch(V){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}};
yAZ=function(V){return V==="gelDebuggingEvent"};
AAX=function(V){return(V===void 0?0:V)&&_.c("vss_through_gel_video_stats")?"video_stats":"log_event"};
sq=function(V,D,f,n){n=n===void 0?{}:n;var t={},J=Math.round(n.timestamp||(0,_.VW)());t.eventTimeMs=J<Number.MAX_SAFE_INTEGER?J:0;t[V]=D;V=_.Vf();t.context={lastActivityMs:String(n.timestamp||!isFinite(V)?-1:V)};n.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")&&(V=t.context,D=n.sequenceGroup,D={index:Q5Z(D),groupKey:D},V.sequence=D,n.endOfSequence&&delete kb[n.sequenceGroup]);_.c("web_tag_automated_log_events")&&(t.context.automatedLogEventSource=n.automatedLogEventSource);(n.sendIsolatedPayload?
bIR:ZIn)({endpoint:"log_event",payload:t,cttAuthInfo:n.cttAuthInfo,dangerousLogToVisitorSession:n.dangerousLogToVisitorSession},f)};
Q5Z=function(V){kb[V]=V in kb?kb[V]+1:0;return kb[V]};
_.dq=function(V,D,f){f=f===void 0?{}:f;var n=B2;_.EG("ytLoggingEventsDefaultDisabled",!1)&&B2===B2&&(n=null);sq(V,D,n,f)};
_.uN=function(){if(_.c("web_fp_via_jspb")){var V=!0;V=V===void 0?!1:V;var D=Tsx;Tsx=[];if(D){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,V?sq(f.payloadName,f.payload,B2,f.options):_.dq(f.payloadName,f.payload,f.options)}eJ9(void 0,!0);if(!_.c("web_fp_via_jspb_and_json"))return}eJ9(void 0,!1)};
bm9=function(V,D){var f;if((f=D)==null?0:f.componentStack)return D;if(V=V.componentStack)D||(D={}),D.componentStack=V;return D};
K7U=function(){_.Sd(_.XB("ERRORS")||[],function(V){_.NG.apply(null,V)});
_.ql("ERRORS",[])};
_.mw=function(V){_.NG(V)};
_.zP=function(V){_.NG(V,"WARNING")};
y2L=function(V){V instanceof Error?_.NG(V):(V=_.VV(V)?JSON.stringify(V):String(V),V=new _.cI(V),V.name="RejectedPromiseError",_.zP(V))};
Zm9=function(V,D,f,n,t,J){D=D===void 0?"Unknown file":D;f=f===void 0?0:f;var H=!1,Q=bOY("log_window_onerror_fraction");if(Q&&Math.random()<Q)H=!0;else{Q=document.getElementsByTagName("script");for(var T=0,y=Q.length;T<y;T++)if(Q[T].src.indexOf("/debug-")>0){H=!0;break}}H&&(H=!1,t?H=!0:(typeof V==="string"?Q=V:ErrorEvent&&V instanceof ErrorEvent?(H=!0,Q=V.message,D=V.filename,f=V.lineno,n=V.colno):(Q="Unknown error",D="Unknown file",f=0),t=new _.cI(Q),t.name="UnhandledWindowError",t.message=Q,t.fileName=
D,t.lineNumber=f,isNaN(n)?delete t.columnNumber:t.columnNumber=n),_.c("wiz_enable_component_stack_propagation_killswitch")||(J=bm9(t,J)),J&&_.R2(t,J),H?_.NG(t):_.zP(t))};
_.NG=function(V,D,f,n,t,J,H,Q){J=J===void 0?{}:J;J.name=f||_.XB("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=n||_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION");f=J;D=D===void 0?"ERROR":D;H=H===void 0?!1:H;D=D===void 0?"ERROR":D;H=H===void 0?!1:H;if(V&&(V.hasOwnProperty("level")&&V.level&&(D=V.level),_.c("console_log_js_exceptions")&&(n=[],n.push("Name: "+V.name),n.push("Message: "+V.message),V.hasOwnProperty("params")&&n.push("Error Params: "+JSON.stringify(V.params)),V.hasOwnProperty("args")&&n.push("Error args: "+
JSON.stringify(V.args)),n.push("File name: "+V.fileName),n.push("Stacktrace: "+V.stack),n=n.join("\n"),window.console.log(n,V)),!(j5U>=5))){n=[];t=_.r(lbX);for(J=t.next();!J.done;J=t.next()){J=J.value;try{J()&&n.push(J())}catch(z){}}n=[].concat(_.sz(GKx),_.sz(n));var T=eqZ(V);t=T.message||"Unknown Error";J=T.name||"UnknownError";var y=T.stack||V.stacktrace||"Not available";if(y.startsWith(J+": "+t)){var Z=y.split("\n");Z.shift();y=Z.join("\n")}Z=T.lineNumber||"Not available";T=T.fileName||"Not available";
var l=0;if(V.hasOwnProperty("args")&&V.args&&V.args.length)for(var G=0;G<V.args.length&&!(l=reX(V.args[G],"params."+G,f,l),l>=500);G++);else if(V.hasOwnProperty("params")&&V.params){var F=V.params;if(typeof V.params==="object")for(G in F){if(F[G]){var k="params."+G,d=yx(F[G]);f[k]=d;l+=k.length+d.length;if(l>500)break}}else f.params=yx(F)}if(n.length)for(G=0;G<n.length&&!(l=reX(n[G],"params.context."+G,f,l),l>=500);G++);navigator.vendor&&!f.hasOwnProperty("vendor")&&(f["device.vendor"]=navigator.vendor);
G={message:t,name:J,lineNumber:Z,fileName:T,stack:y,params:f,sampleWeight:1};f=Number(V.columnNumber);isNaN(f)||(G.lineNumber=G.lineNumber+":"+f);if(V.level==="IGNORED")V=0;else a:{V=c2R();f=_.r(V.messageWeights);for(n=f.next();!n.done;n=f.next())if(n=n.value,G.message&&G.message.match(n.messageRegExp)){V=n.weight;break a}V=_.r(V.callbackWeights);for(f=V.next();!f.done;f=V.next())if(f=f.value,f.callback(G)){V=f.weight;break a}V=1}G.sampleWeight=V;V=_.r(F7U);for(f=V.next();!f.done;f=V.next())if(f=
f.value,f.patternsForType[G.name])for(t=_.r(f.patternsForType[G.name]),n=t.next();!n.done;n=t.next())if(J=n.value,n=G.message.match(J.regexp)){G.params["params.error.original"]=n[0];t=J.groups;J={};for(Z=0;Z<t.length;Z++)J[t[Z]]=n[Z+1],G.params["params.error."+t[Z]]=n[Z+1];G.message=f.messageFn(J);break}G.params||(G.params={});V=c2R();G.params["params.errorServiceSignature"]="msg="+V.messageWeights.length+"&cb="+V.callbackWeights.length;G.params["params.serviceWorker"]="false";_.fx.document&&_.fx.document.querySelectorAll&&
(G.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Cy(gtY,"sample")).constructor!==Cy&&(G.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(G);if(G.sampleWeight!==0&&!vtY.has(G.message)){if(H&&_.c("web_enable_error_204"))kK3(D===void 0?"ERROR":D,G);else{D=D===void 0?"ERROR":D;D==="ERROR"?(s5R.publish("handleError",G),_.c("record_app_crashed_web")&&Bsx===0&&G.sampleWeight===1&&(Bsx++,H={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.c("report_client_error_with_app_crash_ks")||(H.systemHealth={crashData:{clientError:{logMessage:{message:G.message}}}}),_.dq("appCrashed",H)),d3Y++):D==="WARNING"&&s5R.publish("handleWarning",G);if(_.c("kevlar_gel_error_routing")){H=D;Q=Q===void 0?{}:Q;b:{V=_.r(uon);for(f=V.next();!f.done;f=V.next())if(z5(f.value.toLowerCase())){V=!0;break b}V=!1}if(V)Q=void 0;else{f={stackTrace:G.stack};G.fileName&&(f.filename=G.fileName);V=G.lineNumber&&G.lineNumber.split?G.lineNumber.split(":"):[];V.length!==
0&&(V.length!==1||isNaN(Number(V[0]))?V.length!==2||isNaN(Number(V[0]))||isNaN(Number(V[1]))||(f.lineNumber=Number(V[0]),f.columnNumber=Number(V[1])):f.lineNumber=Number(V[0]));V={level:"ERROR_LEVEL_UNKNOWN",message:G.message,errorClassName:G.name,sampleWeight:G.sampleWeight};H==="ERROR"?V.level="ERROR_LEVEL_ERROR":H==="WARNING"&&(V.level="ERROR_LEVEL_WARNNING");f={isObfuscated:!0,browserStackInfo:f};Q.pageUrl=window.location.href;Q.kvPairs=[];_.XB("FEXP_EXPERIMENTS")&&(Q.experimentIds=_.XB("FEXP_EXPERIMENTS"));
n=_.XB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!bOY("web_disable_gel_stp_ecatcher_killswitch")&&n)for(t=_.r(Object.keys(n)),J=t.next();!J.done;J=t.next())J=J.value,Q.kvPairs.push({key:J,value:String(n[J])});if(n=G.params)for(t=_.r(Object.keys(n)),J=t.next();!J.done;J=t.next())J=J.value,Q.kvPairs.push({key:"client."+J,value:String(n[J])});n=_.XB("SERVER_NAME");t=_.XB("SERVER_VERSION");n&&t&&(Q.kvPairs.push({key:"server.name",value:n}),Q.kvPairs.push({key:"server.version",value:t}));Q={errorMetadata:Q,
stackTrace:f,logMessage:V}}Q&&(_.dq("clientError",Q),(H==="ERROR"||_.c("errors_flush_gel_always_killswitch"))&&_.uN())}_.c("suppress_error_204_logging")||kK3(D,G)}try{vtY.add(G.message)}catch(z){}j5U++}}};
kK3=function(V,D){var f=D.params||{};V={urlParams:{a:"logerror",t:"jserror",type:D.name,msg:D.message.substr(0,250),line:D.lineNumber,level:V,"client.name":f.name},postParams:{url:_.XB("PAGE_NAME",window.location.href),file:D.fileName},method:"POST"};f.version&&(V["client.version"]=f.version);if(V.postParams){D.stack&&(V.postParams.stack=D.stack);D=_.r(Object.keys(f));for(var n=D.next();!n.done;n=D.next())n=n.value,V.postParams["client."+n]=f[n];if(f=_.XB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(D=
_.r(Object.keys(f)),n=D.next();!n.done;n=D.next())n=n.value,V.postParams[n]=f[n];(f=_.XB("LAVA_VERSION"))&&(V.postParams["lava.version"]=f);f=_.XB("SERVER_NAME");D=_.XB("SERVER_VERSION");f&&D&&(V.postParams["server.name"]=f,V.postParams["server.version"]=D)}_.T5(_.XB("ECATCHER_REPORT_HOST","")+"/error_204",V)};
_.NsL=function(V,D){D=D===void 0?"ERROR":D;var f=f===void 0?{}:f;var n=_.Yw("ytbin.polymer.shared.lib.tampering.info");n&&(n=n())&&(f["params.tamperingInfo"]=n.sort().join(","));_.NG(V,D,void 0,void 0,!0,f)};
_.R2=function(V){var D=_.gQ.apply(1,arguments);V.args||(V.args=[]);Array.isArray(V.args)&&V.args.push.apply(V.args,_.sz(D))};
m3d=function(V){V.level="IGNORED"};
zqd=function(V,D){GKx.push(V);D();GKx.pop()};
X4=function(V,D){for(var f in D)D.hasOwnProperty(f)&&(V=_.qG(V,f,D[f]));return V};
_.RqF=function(V,D,f){f=f===void 0?!1:f;if(!V)return null;if(V.adInfoDialogEndpoint||V.backstageImageUploadEndpoint||V.confirmDialogEndpoint||V.clientActionEndpoint||V.createBackstagePostDialogEndpoint||V.createCommentReplyDialogEndpoint||V.flowEndpoint||V.guideBuilderEndpoint||V.liveChatDialogEndpoint||V.modalEndpoint||V.openPopupAction||V.shareEndpoint||V.shareEntityEndpoint||V.showLiveChatItemEndpoint||V.subscriptionManagerEndpoint||V.unlimitedCreateFamilyEndpoint||V.unlimitedFamilyFlowEndpoint||
V.updateCommentDialogEndpoint||V.updateCommentReplyDialogEndpoint||V.userFeedbackEndpoint||V.videoEditorEndpoint||V.ypcCancelSurveyEndpoint)return D=_.tU("polymer_report_client_url_requested_rate"),!f&&Math.random()<D&&_.zP(new _.cI("urlForEndpoint used on client endpoint",V)),null;var n=_.tU("polymer_report_missing_web_navigation_endpoint_rate");if(V.liveChatEndpoint||V.liveChatReplayEndpoint)n=0;if(!V.commandMetadata&&!V.clickTrackingParams&&Math.random()<n){var t={},J;for(J in V)t[J]="1";_.zP(new _.cI("Missing navigation data",
t))}t="";if(V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url)t=V.commandMetadata.webCommandMetadata.url;else if(V.searchEndpoint)Math.random()<n&&_.zP(new _.cI("Should not manually handle search",V)),t="/results?search_query="+encodeURIComponent(V.searchEndpoint.query).replace(/%20/g,"+"),V.searchEndpoint.params&&(t+="&sp="+V.searchEndpoint.params);else if(V.watchEndpoint)Math.random()<n&&_.zP(new _.cI("Should not manually handle watch",V)),t="/watch?v="+
V.watchEndpoint.videoId,V.watchEndpoint.playlistId&&(t+="&list="+V.watchEndpoint.playlistId),V.watchEndpoint.index&&(t+="&index="+V.watchEndpoint.index),V.watchEndpoint.startTimeSeconds&&(t+="&t="+V.watchEndpoint.startTimeSeconds);else if(V.browseEndpoint)n=V.browseEndpoint.browseId,(J=V.browseEndpoint.canonicalBaseUrl)?t=J:n&&(t=n.substr(0,2),t=t==="FE"?n==="FEwhat_to_watch"?"/":n==="FEmy_videos"?"/my_videos":"/feed/"+n.substr(2):t==="VL"?"/playlist?list="+n.substr(2):"/channel/"+n),t&&V.browseEndpoint.query&&
(t=X4(t+"/search",{query:V.browseEndpoint.query})),t&&V.browseEndpoint.params&&(t=X4(t,{params:V.browseEndpoint.params}));else{if(V.urlEndpoint)return V.urlEndpoint.url;V.signInEndpoint?(t="https://accounts.google.com/ServiceLogin",n={},_.sB.extend(n,D||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),D=n):V.uploadEndpoint?t="//www.youtube.com/upload":V.liveChatEndpoint?(t=V.liveChatEndpoint,n=_.sB.clone(t),_.VV(t.continuation)&&(J=Object.keys(t.continuation)[0],
n.continuation=t.continuation[J].continuation),t=X4("/youtubei/v1/live_chat/get_live_chat",n)):V.liveChatReplayEndpoint?(t=_.sB.clone(V.liveChatReplayEndpoint),t.currentPlayerState&&(_.sB.extend(t,t.currentPlayerState),delete t.currentPlayerState),t=X4("/youtubei/v1/live_chat/get_live_chat_replay",t)):V.liveChatItemContextMenuEndpoint?t=X4("/youtubei/v1/live_chat/get_item_context_menu",V.liveChatItemContextMenuEndpoint):V.liveChatPurchaseMessageEndpoint?t=X4("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
V.liveChatPurchaseMessageEndpoint):V.openSuperStickerBuyFlowCommand?t=X4("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",V.openSuperStickerBuyFlowCommand):V.videoEditEndpoint?t=X4("/edit",{video_id:V.videoEditEndpoint.videoId}):V.liveDashboardEndpoint?t=V.liveDashboardEndpoint.videoId?X4("/live_dashboard",{v:V.liveDashboardEndpoint.videoId}):"/live_dashboard":V.signalNavigationEndpoint&&V.signalNavigationEndpoint.signal&&V.signalNavigationEndpoint.signal==="WEBCAM"?t="/webcam":V.getPdgBuyFlowCommand&&
(t=X4(V.getPdgBuyFlowCommand.buyflowApiPath,{params:V.getPdgBuyFlowCommand.params}))}return t||f?X4(t,D||{}):(_.zP(new _.cI("Error: Can't construct url for endpoint","keys:"+Object.keys(V).sort().join(","),V)),null)};
CSY=function(V){if(V){if(V.browseEndpoint)return!!V.browseEndpoint.nofollow;if(V.watchEndpoint)return!!V.watchEndpoint.nofollow;if(V.urlEndpoint)return!!V.urlEndpoint.nofollow}return!1};
_.XrY=function(V,D){var f=D+V,n=qmY.get(f);if(n)return n;V=D+"-"+V.replace(/([A-Z])/g,"-$1").toLowerCase();qmY.set(f,V);return V};
EtY=function(V){var D=_.R9(V,"action")||_.R9(V,"command")||_.R9(V,"endpoint");if(!D)return null;D=_.XrY(D,"yt");_.g(V,_.Eq)&&(D+="-"+_.g(V,_.Eq).signal.toLowerCase().replace(/_/g,"-"));return D};
$33=function(V){try{var D=Object.keys(V)}catch(t){return[]}for(var f=0;f<D.length;f++){var n=D[f];if(A2Z.test(n)||abX.test(n))return YmY(V[n])}return[]};
YmY=function(V){return V.command?[V.command]:V.onExecutionAction?[V.onExecutionAction]:V.onResponseReceivedCommand?[V.onResponseReceivedCommand]:V.updateFlowCommand?[V.updateFlowCommand]:V.clientActions?V.clientActions:V.action?[V.action]:V.actions||V.commands||V.onResponseReceivedActions||V.onResponseReceivedCommands||V.onResponseReceivedEndpoints||[]};
Sm9=function(V,D){D=D===void 0?!1:D;var f=_.DY().resolve(_.Vx(Ak));f||(f=new imZ,_.DY().addProvider({provide:Ak,useValue:f}));return f&&V&&!_.sB.isEmpty(V)?f.getUrl(V,D):""};
W7R=function(V,D,f){f=f===void 0?"":f;if(D){V.data=D;var n=Sm9(D);n?(se(V,n),CSY(D)||!hh(n)?V.rel="nofollow":V.removeAttribute("rel"),_.g(D,_.a2)&&_.g(D,_.a2).target==="TARGET_NEW_WINDOW"?V.target="_blank":f?V.target=f:V.removeAttribute("target")):(V.removeAttribute("href"),V.removeAttribute("rel"),V.removeAttribute("target"))}};
_.Se=function(V,D){var f=OR;if(vJ())prR(V,function(){var J=_.gQ.apply(0,arguments);z4(f,function(){D.apply(null,_.sz(J))})});
else{var n=_.Yb.getInstance(),t=z2(D);nix(function(){t.value=D});
_.Nl(function(){var J={},H=_.$b(n,(J[V]=function(){var Q=_.gQ.apply(0,arguments);z4(f,function(){t.value.apply(t,_.sz(Q))})},J));
return function(){var Q={};_.iN(n,(Q[V]="",Q),H)}})}};
_.W2=function(V,D){return L7c(V,!1,D)};
_.py=function(V,D){return L7c(V,!0,D)};
L7c=function(V,D,f){return vJ()?Ibx(V,D,f):OmF(V,D,f)};
OmF=function(V,D,f){return m0(function(){return Ibx(V,D,f)})};
Ibx=function(V,D,f){var n=UGY(function(t){n.value=t;var J=function(){var H=fG(null);try{return f==null?void 0:f(t)}finally{fG(H)}}();
return function(){J==null||J()}});
n.__expectedTagName=V;n.__optional=D;n.isIdom=!vJ();return n};
x3L=function(V){var D=OR,f=cJ;return{getFn:function(){return function(n){D.isDisposed||s0(function(){return rc(function(){return V(n)})},f)!==!0&&n.stopPropagation()}}}};
Ly=function(V){if(typeof V.children==="function")return V.children(),null;V=_.r(V.children);for(var D=V.next();!D.done;D=V.next())D=D.value,D();return null};
MDY=function(V){var D;return((D=V.prototype)==null?void 0:D.render)===void 0};
hq9=function(V){V=V.items.map(V.children);return V.length>0&&typeof V[0]==="string"?V.join(""):V};
VlR=function(V,D,f){f=f===void 0?!1:f;s0(function(){return U3x(V,D,f)})};
U3x=function(V,D,f){var n=null;lb++;f=(f===void 0?0:f)?DaZ:fnY;try{n=f(V,function(){I2(D)}),eQ(!1)}catch(t){throw eQ(!0),t;
}return n===null?V:n};
I2=function(V){if(V!==void 0&&V!==null)if(V instanceof ym)for(var D=aP;YK()!=null&&X2Z in YK()&&D.contains(YK());)SQ();else if(Array.isArray(V))for(D=_.r(V),V=D.next();!V.done;V=D.next())I2(V.value);else if(V instanceof JL||"function"==typeof _.WS&&V instanceof _.WS||"function"==typeof _.U0&&V instanceof _.U0)hN(V.toString());else if(_.o9(V)){if(YK()!==V){var f,n;D=(n=(f=cJ)==null?void 0:f.name)!=null?n:"unknown";throw Error("gc`"+V.tagName+"`"+D);}SQ()}else if(V!=null&&V.contentKind===H9||V instanceof
BS||Ved(V))for(D=fsd(V),D=Array.from(D.childNodes),D=_.r(D),V=D.next();!V.done;V=D.next())aP.appendChild(V.value),SQ();else if(Kc(V)&&(V=V.toString()),f=typeof V,f==="boolean"||f==="number"||f==="string")hN(V);else if(typeof V==="function"){D=aP;var t=YK();t&&(t._isSignalTextNode||t._isSafeOrSanitizedHtmlNode)||s2d(D,t,V);SQ()}else if(V.type===hq9)I2(V.type(Object.assign({},V.props,{children:V.children[0]})));else{la.beforeVisit(V);if(typeof V.type==="string"){a:{V.__open||mYd(V.type,V.props.idomKey);
t=aP;for(D in V.props)if(V.props[D]!==nlZ){var J=V.props[D];f=IP;f.push(D);f.push(J)}D=UR.attributes;D=D===void 0?Oq:D;J=aP;f=AN(J);ABL(J,f,D);kPZ(t,V.props,!0);if((V.props.skip||V.props.skipchildren)&&aP.hasChildNodes())pG();else{if(V.type==="style"&&w2F(V.children)===null){pG();D=void 0;break a}I2(V.children)}zt3();V.__open&&(V.__open=!1);LWF(t,V.props);D=t}return D}if(V.type===_.th)I2(V.children);else if(!tlZ(V)){D=V;try{Pe9(D)}catch(H){V=H,(J=UR.handleError)==null||J.call.apply(J,[UR].concat(_.sz(RP(V,
(t=D.type)==null?void 0:t.TAG_NAME))))}D.__open&&(zt3(),D.__open=!1)}}};
old=function(V,D){var f;MDY(V)?f=new ed(D,V):f=new V(D);f.JSC$8307___type=V;f.__updateContext={nextState:f.state,isForced:!1};return f};
Pe9=function(V){var D=V.type,f=D.TAG_NAME;if(D===Ly)V.props.children=V.children,D(V.props);else{V.children.length>0&&(V.props.children=V.children);var n;(n=V.props).idomKey||(n.idomKey=D);if(f){var t=mYd(f,V.props.idomKey);V.__open=!0;var J=t.__instance}J||(J=old(D,V.props),J.props=null,t&&(t.__instance=J,J.el=t));var H;f=((H=J.__updateContext)!=null?H:{nextState:J.state,isForced:!1}).nextState;J.__updateContext=void 0;D.getDerivedStateFromProps&&(f=D.getDerivedStateFromProps(V.props,f));J.props=
V.props;J.state=f;H=function(){var Q=J;la.beforeRender(Q);var T=Q.render(Q.props);la.afterRender(Q,T);T?(Q.props.idomKey&&(T.props.idomKey=Q.props.idomKey),Q=T):Q=void 0;if(T=Q)if(T.__open=V.__open,Q=I2(T),V.__open=T.__open,!D.TAG_NAME)if(Q)D.TAG_NAME=Q.tagName.toLowerCase(),Q.__instance=J,J.el=Q;else{var y;if((y=J.hooks)==null?0:y.length){var Z;(Z=UR.handleError)==null||Z.call.apply(Z,[UR].concat(_.sz(RP(Error("pd")))))}}J.didPatch();la.didPatch(J)};
(f=J.functionComponent)?x4Y(f,H,J.props.debugInstance):H()}};
tlZ=function(V){var D=V.type;if(!MDY(D)||D===Ly||D.componentType===FY)return!1;V.props.children=V.children.length>1?V.children:V.children[0];var f,n=(f=V.props.idomKey)!=null?f:V.type,t;if(YK()&&((t=YK()[T2])==null?void 0:t.key)===n){var J=YK(),H=J[T2];if(!H)throw Error("fc`"+J.tagName);var Q;(Q=H.updateSignalsFromIdomProps)==null||Q.call(H,V.props);JIL(H);return!0}if(rIZ.has(D.name))throw Q=D.name,D=(H=(J=cJ)==null?void 0:J.name)!=null?H:"unknown",Error("ec`"+Q+"`"+D);NqY(V.type,V.props,V.children);
V.props.renderedFromIdom=!0;(Q=x4Y(V.type,function(){return ehU(V.type,V.props)},V.props.debugInstance))&&HTn(Q);
return!0};
wj9=function(V){for(var D=0;D<KZ(V).length;D++)SQ()};
JIL=function(V){var D=QtL();if(D)wj9(D);else for(var f=0;f<V.numNodes;f++)(D=QtL())?wj9(D):SQ()};
QtL=function(){var V;return(V=YK()[T2])==null?void 0:V.sourceDynamicRange};
HTn=function(V){V=xYL(V);V=Array.isArray(V)?V:[V];V=_.r(V);for(var D=V.next();!D.done;D=V.next())aP.insertBefore(D.value,YK()),SQ()};
Tkd=function(V){var D=FwR(),f=m0(function(){return{value:typeof V==="function"?V():V}});
return[f.value,function(n){if(G2!==null){var t;(t=UR.handleError)==null||t.call.apply(t,[UR].concat(_.sz(RP(Error("qd")))))}f.value=typeof n==="function"?n(f.value):n;D.__updateContext={nextState:D.state,isForced:!0};n=_.x4(D.effectContext);t=P9(!1);try{if(D.el){var J,H={},Q=(H.props=D.props,H.type=D.JSC$8307___type,H.children=(J=D.props.children)!=null?J:[],H[nZ]=!0,H);try{VlR(D.el,Q,!0)}catch(Z){var T,y;(y=UR.handleError)==null||y.call.apply(y,[UR].concat(_.sz(RP(Z,(T=D.JSC$8307___type)==null?void 0:
T.TAG_NAME))))}}}finally{P9(t),_.x4(n)}}]};
xb=function(V,D){var f=OR,n=function(t){z4(f,function(){D(t)})};
window.addEventListener(V,n,void 0);_.dc(function(){window.removeEventListener(V,n,void 0)})};
_.hk=function(V,D){var f=_.MG(D);_.Nl(function(){var n=V.value;n&&f(n)})};
_.MG=function(V){var D=OR;return function(f){var n,t=(n=V.observer)!=null?n:_.DY().resolve(Uq);n=bTd(f);var J=[];V.showOption&&J.push(t.observe(f,function(){z4(D,function(){V.visibilityCallback(!0,f)})},V.showOption));
V.hideOption&&J.push(t.observe(f,function(){z4(D,function(){V.visibilityCallback(!1,f)})},V.hideOption));
V.prescanOption&&V.prescanCallback&&J.push(t.observe(f,function(){z4(D,function(){V.prescanCallback()})},V.prescanOption));
var H;n.visibilityMonitorKeys=((H=n.visibilityMonitorKeys)!=null?H:[]).concat(J)}};
bTd=function(V){var D;return(D=V.polymerController)!=null?D:V};
_.V$=function(V){V.componentType=FY};
jtU=function(V,D){var f=KAU;return _.K(_.th,null,IV(UR.enableLazyTsx,function(){return _.K(yIZ,{id:f,value:V,children:D})},function(){var n=ZTR(f,V);
hl(n);n=_.x4(n);try{return D()}finally{_.x4(n)}}))};
yIZ=function(V){var D=V.children;V=ZTR(V.id,V.value);hl(V);V=_.x4(V);try{return _.K(_.th,null,Z9(D()))}finally{_.x4(V)}};
ZTR=function(V,D){return Object.assign(Object.create(lnx),{id:V,contextValue:D})};
GkU=function(V){var D,f=OR;_.mK(function(){var n=_.x4(f),t=P9(!D);try{if(D)VlR(D,V.children(),!0);else if(D=Z9(V.children()),!(D instanceof Element))throw Error("rd");}finally{P9(t),_.x4(n)}});
return D};
_.eCR=function(V,D){var f;D=ub(function(){var n=P9(!0);try{f=KZ(V())}finally{P9(n)}},D===void 0?!1:D);
return[f,D]};
FAd=function(V){V=V.buf.charCodeAt(V.pos++);return cIY[V]};
D5=function(V){var D=0,f=0;do{var n=FAd(V);D|=(n&31)<<f;f+=5}while(n&32);return D<0?D+4294967296:D};
kkd=function(V,D,f){gl9(V,D);V[D][vlZ].unshift(f)};
gl9=function(V,D){if(!V[D]||!V[D][vlZ]){var f=V[D],n=f?[f]:[];V[D]=function(){for(var t=_.r(n),J=t.next();!J.done;J=t.next())J.value.apply(this,arguments)};
V[D][vlZ]=n}};
st3=function(V){if(!V)return[];var D=[];V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,Array.isArray(f)?D.push.apply(D,_.sz(st3(f))):D.push(f);return D};
_.nO=function(V,D){if(V&&Bkd.test(V)||V==="//")return V;if(dax===void 0){dax=!1;try{var f=new URL("b","http://a");f.pathname="c%20d";dax=f.href==="http://a/c%20d"}catch(n){}}D||(D=document.baseURI||window.location.href);if(dax)try{return(new URL(V,D)).href}catch(n){return V}fO||(fO=document.implementation.createHTMLDocument("temp"),fO.base=fO.createElement("base"),fO.head.appendChild(fO.base),fO.anchor=fO.createElement("a"),fO.body.appendChild(fO.anchor));fO.base.href=D;fO.anchor.href=V;return fO.anchor.href||
V};
NkX=function(V,D){return V.replace(uh9,function(f,n,t,J){return n+"'"+_.nO(t.replace(/["']/g,""),D)+"'"+J})};
maR=function(V){return V.substring(0,V.lastIndexOf("/")+1)};
CeR=function(){zCd=!1;for(var V=tq.length,D=0;D<V;D++){var f=tq[D];if(f)try{f()}catch(n){setTimeout(function(){throw n;})}}tq.splice(0,V);
RCR+=V};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(V){console.log("["+V.is+"]: registered")};
Xj3=function(V){qoF.push(V)};
P1=function(V){return Elc[V]||(Elc[V]=V.indexOf("-")<0?V:V.replace(AI9,function(D){return D[1].toUpperCase()}))};
oG=function(V){return Elc[V]||(Elc[V]=V.replace(anU,"-$1").toLowerCase())};
YoY=function(V,D){var f=D.parentInfo&&YoY(V,D.parentInfo);if(f)for(V=f.firstChild,f=0;V;V=V.nextSibling){if(D.parentIndex===f++)return V}else return V};
$aZ=function(V,D){V=V._methodHost||V;return function(f){if(V[D])V[D](f,f.detail);else console.warn("listener method `"+D+"` not defined")}};
Jq=function(V){return V.indexOf(".")>=0};
rv=function(V){var D=V.indexOf(".");return D===-1?V:V.slice(0,D)};
iT3=function(V,D){return V.indexOf(D+".")===0};
H1=function(V,D){return D.indexOf(V+".")===0};
wv=function(V,D,f){return D+f.slice(V.length)};
SoX=function(V,D){return V===D||iT3(V,D)||H1(V,D)};
Q$=function(V){if(Array.isArray(V)){for(var D=[],f=0;f<V.length;f++)for(var n=V[f].toString().split("."),t=0;t<n.length;t++)D.push(n[t]);return D.join(".")}return V};
WAL=function(V){return Array.isArray(V)?Q$(V).split("."):V.toString().split(".")};
Tt=function(V,D,f){D=WAL(D);for(var n=0;n<D.length;n++){if(!V)return;V=V[D[n]]}f&&(f.path=D.join("."));return V};
pjn=function(V,D,f){var n=WAL(D),t=n[n.length-1];if(n.length>1){for(D=0;D<n.length-1;D++)if(V=V[n[D]],!V)return;V[t]=f}else V[D]=f;return n.join(".")};
LAn=function(V,D,f){var n=V[D];if(!n)n=V[D]={};else if(!V.hasOwnProperty(D)&&(n=V[D]=Object.create(V[D]),f))for(var t in n)for(V=n[t],D=n[t]=Array(V.length),f=0;f<V.length;f++)D[f]=V[f];return n};
KO=function(V,D,f,n,t,J){if(D){var H=!1,Q=bL++,T;for(T in f){var y=t?rv(T):T;if(y=D[y])for(var Z=0,l=y.length,G=void 0;Z<l&&(G=y[Z]);Z++)G.info&&G.info.lastRun===Q||t&&!InY(T,G.trigger)||(G.info&&(G.info.lastRun=Q),G.fn(V,T,f,n,G.info,t,J),H=!0)}return H}return!1};
InY=function(V,D){if(D){var f=D.name;return f==V||!(!D.structured||!iT3(f,V))||!(!D.wildcard||!H1(f,V))}return!0};
OTL=function(V,D,f,n,t){D=typeof t.method==="string"?V[t.method]:t.method;f=t.property;D?D.call(V,V.__data[f],n[f]):t.dynamicFn||console.warn("observer method `"+t.method+"` not defined")};
xac=function(V,D,f,n){f={value:f,queueProperty:!0};n&&(f.path=n);(0,_.y$)(V).dispatchEvent(new CustomEvent(D,{detail:f}))};
Ml9=function(V,D,f,n,t,J){J=(n=(J?rv(D):D)!=D?D:null)?Tt(V,n):V.__data[D];n&&J===void 0&&(J=f[D]);xac(V,t.eventName,J,n)};
hC3=function(V,D,f,n,t){f=V.__data[D];Z5&&(f=Z5(f,t.attrName,"attribute",V));V._propertyToAttribute(D,t.attrName,f)};
VKZ=function(V){var D=V.constructor.__orderedComputedDeps;if(!D){D=new Map;for(var f=V.__computeEffects,n=Ua9(V),t=n.counts,J=n.ready,H=n.total;n=J.shift();)D.set(n,D.size),(n=f[n])&&n.forEach(function(Q){Q=Q.info.methodInfo;--H;--t[Q]===0&&J.push(Q)});
H!==0&&console.warn("Computed graph for "+V.localName+" incomplete; circular?");V.constructor.__orderedComputedDeps=D}return D};
Ua9=function(V){var D=V.__computeInfo,f={};V=V.__computeEffects;var n=[],t=0,J;for(J in D){var H=D[J];t+=f[J]=H.args.filter(function(T){return!T.literal}).length+(H.dynamicFn?1:0)}for(var Q in V)D[Q]||n.push(Q);
return{counts:f,ready:n,total:t}};
ftn=function(V,D,f,n,t){D=DsY(V,D,f,n,t);if(D===j6)return!1;t=t.methodInfo;if(V.__dataHasAccessor&&V.__dataHasAccessor[t])return V._setPendingProperty(t,D,!0);V[t]=D;return!1};
PfF=function(V,D,f,n,t,J,H){f.bindings=f.bindings||[];n={kind:n,target:t,parts:J,literal:H,isCompound:J.length!==1};f.bindings.push(n);n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"&&(f=n.parts[0],J=f.negate,n.listenerEvent=f.event||oG(t)+"-changed",n.listenerNegate=J);t=D.nodeInfoList.length;for(f=0;f<n.parts.length;f++){var Q=n.parts[f];Q.compoundIndex=f;J=V;H=D;var T=n,y=Q,Z=t;if(!y.literal)if(T.kind==="attribute"&&T.target[0]==="-")console.warn("Cannot set attribute "+
T.target+' because "-" is not a valid attribute starting character');else for(Q=y.dependencies,T={index:Z,binding:T,part:y,evaluator:J},y=0;y<Q.length;y++)Z=Q[y],typeof Z=="string"&&(Z=nCd(Z),Z.wildcard=!0),J._addTemplatePropertyEffect(H,Z.rootProperty,{fn:tK9,info:T,trigger:Z})}};
tK9=function(V,D,f,n,t,J,H){H=H[t.index];var Q=t.binding,T=t.part;J&&T.source&&D.length>T.source.length&&Q.kind=="property"&&!Q.isCompound&&H.__isPropertyEffectsClient&&H.__dataHasAccessor&&H.__dataHasAccessor[Q.target]?(f=f[D],D=wv(T.source,Q.target,D),H._setPendingPropertyOrPath(D,f,!1,!0)&&V._enqueueClient(H)):(D=t.evaluator._evaluateBinding(V,T,D,f,n,J),D!==j6&&(Q.isCompound&&(f=H.__dataCompoundStorage[Q.target],f[T.compoundIndex]=D,D=f.join("")),Q.kind==="attribute"||Q.target!=="textContent"&&
(Q.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(D=D==void 0?"":D),T=D,Z5&&(T=Z5(T,Q.target,Q.kind,H)),Q.kind=="attribute"?V._valueToNodeAttribute(H,T,Q.target):(Q=Q.target,H.__isPropertyEffectsClient&&H.__dataHasAccessor&&H.__dataHasAccessor[Q]?H.__readOnly&&H.__readOnly[Q]||H._setPendingProperty(Q,T)&&V._enqueueClient(H):V._setUnmanagedPropertyToNode(H,Q,T))))};
oCF=function(V,D,f){if(f.listenerEvent){var n=f.parts[0];V.addEventListener(f.listenerEvent,function(t){var J=f.target,H=n.source,Q=n.negate,T=t.detail,y=T&&T.path;y?(H=wv(J,H,y),t=T&&T.value):t=t.currentTarget[J];D.__readOnly&&D.__readOnly[H]||!D._setPendingPropertyOrPath(H,Q?!t:t,!0,!!y)||T&&T.queueProperty||D._invalidateProperties()})}};
JYL=function(V,D,f,n,t,J){J=D.static||J&&(typeof J!=="object"||J[D.methodName]);t={methodName:D.methodName,args:D.args,methodInfo:t,dynamicFn:J};for(var H=0,Q=void 0;H<D.args.length&&(Q=D.args[H]);H++)Q.literal||V._addPropertyEffect(Q.rootProperty,f,{fn:n,info:t,trigger:Q});J&&V._addPropertyEffect(D.methodName,f,{fn:n,info:t});return t};
DsY=function(V,D,f,n,t){n=V._methodHost||V;var J=n[t.methodName];if(J)return V=V._marshalArgs(t.args,D,f),V===j6?j6:J.apply(n,V);t.dynamicFn||console.warn("method `"+t.methodName+"` not defined")};
rYZ=function(V){for(var D="",f=0;f<V.length;f++)D+=V[f].literal||"";return D};
Q7F=function(V){if(V=V.match(/([^\s]+?)\(([\s\S]*)\)/)){var D={methodName:V[1],static:!0,args:HXF};return V[2].trim()?wWY(V[2].replace(/\\,/g,"&comma;").split(","),D):D}return null};
wWY=function(V,D){D.args=V.map(function(f){f=nCd(f);f.literal||(D.static=!1);return f},this);
return D};
nCd=function(V){V=V.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var D={name:V,value:"",literal:!1},f=V[0];f==="-"&&(f=V[1]);f>="0"&&f<="9"&&(f="#");switch(f){case "'":case '"':D.value=V.slice(1,-1);D.literal=!0;break;case "#":D.value=Number(V),D.literal=!0}D.literal||(D.rootProperty=rv(V),D.structured=Jq(V),D.structured&&(D.wildcard=V.slice(-2)==".*",D.wildcard&&(D.name=V.slice(0,-2))));return D};
Ta3=function(V,D,f){V=Tt(V,f);V===void 0&&(V=D[f]);return V};
bXx=function(V,D,f,n){n={indexSplices:n};lL&&!V._overrideLegacyUndefined&&(D.splices=n);V.notifyPath(f+".splices",n);V.notifyPath(f+".length",D.length);lL&&!V._overrideLegacyUndefined&&(n.indexSplices=[])};
Gt=function(V,D,f,n,t,J){bXx(V,D,f,[{index:n,addedCount:t,removed:J,object:D,type:"splice"}])};
Kf9=function(V){V=NkX((V.body?V.body:V).textContent,V.baseURI);var D=document.createElement("style");D.textContent=V;return D};
ZX9=function(V){V=V.trim().split(/\s+/);for(var D=[],f=0;f<V.length;f++)D.push.apply(D,_.sz(yYZ(V[f])));return D};
yYZ=function(V){var D=e6.import(V);if(!D)return console.warn("Could not find style data in module named",V),[];if(D._styles===void 0){V=[];V.push.apply(V,_.sz(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D)));var f=D.querySelector("template");f&&V.push.apply(V,_.sz(j7Y(f,D.assetpath)));D._styles=V}return D._styles};
j7Y=function(V,D){if(!V._styles){for(var f=[],n=V.content.querySelectorAll("style"),t=0;t<n.length;t++){var J=n[t],H=J.getAttribute("include");H&&f.push.apply(f,_.sz(ZX9(H).filter(function(Q,T,y){return y.indexOf(Q)===T})));
D&&(J.textContent=NkX(J.textContent,D));f.push(J)}V._styles=f}return V._styles};
ltL=function(V){return(V=e6.import(V))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(V){var D=[];V=V.querySelectorAll("link[rel=import][type~=css]");for(var f=0;f<V.length;f++){var n=V[f];if(n.import){var t=n.import;if((n=n.hasAttribute("shady-unscoped"))&&!t._unscopedStyle){var J=Kf9(t);J.setAttribute("shady-unscoped","");t._unscopedStyle=J}else t._style||(t._style=Kf9(t));D.push(n?t._unscopedStyle:t._style)}}return D};
e6U=function(V){V=V.trim().split(/\s+/);for(var D="",f=0;f<V.length;f++)D+=GvR(V[f]);return D};
GvR=function(V){var D=e6.import(V);if(D&&D._cssText===void 0){var f=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D),n=D.querySelector("template");n&&(f+=cYU(n,D.assetpath));D._cssText=f||null}D||console.warn("Could not find style data in module named",V);return D&&D._cssText||""};
cYU=function(V,D){var f="";V=j7Y(V,D);for(D=0;D<V.length;D++){var n=V[D];n.parentNode&&n.parentNode.removeChild(n);f+=n.textContent}return f};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(V){var D="";V=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V);for(var f=0;f<V.length;f++)D+=V[f].textContent;return D};
c1=function(V,D){return{index:V,removed:[],addedCount:D}};
gCc=function(V,D,f,n){var t=0,J=0,H=0,Q=0,T=Math.min(D-t,n-J);if(t==0&&J==0)a:{for(H=0;H<T;H++)if(V[H]!==f[H])break a;H=T}if(D==V.length&&n==f.length){Q=V.length;for(var y=f.length,Z=0;Z<T-H&&FfY(V[--Q],f[--y]);)Z++;Q=Z}t+=H;J+=H;D-=Q;n-=Q;if(D-t==0&&n-J==0)return[];if(t==D){for(D=c1(t,0);J<n;)D.removed.push(f[J++]);return[D]}if(J==n)return[c1(t,D-t)];T=t;H=J;n=n-H+1;Q=D-T+1;D=Array(n);for(y=0;y<n;y++)D[y]=Array(Q),D[y][0]=y;for(y=0;y<Q;y++)D[0][y]=y;for(y=1;y<n;y++)for(Z=1;Z<Q;Z++)if(V[T+Z-1]===
f[H+y-1])D[y][Z]=D[y-1][Z-1];else{var l=D[y-1][Z]+1,G=D[y][Z-1]+1;D[y][Z]=l<G?l:G}T=D.length-1;H=D[0].length-1;n=D[T][H];for(V=[];T>0||H>0;)T==0?(V.push(2),H--):H==0?(V.push(3),T--):(Q=D[T-1][H-1],y=D[T-1][H],Z=D[T][H-1],l=y<Z?y<Q?y:Q:Z<Q?Z:Q,l==Q?(Q==n?V.push(0):(V.push(1),n=Q),T--,H--):l==y?(V.push(3),T--,n=y):(V.push(2),H--,n=Z));V.reverse();D=void 0;T=[];for(H=0;H<V.length;H++)switch(V[H]){case 0:D&&(T.push(D),D=void 0);t++;J++;break;case 1:D||(D=c1(t,0));D.addedCount++;t++;D.removed.push(f[J]);
J++;break;case 2:D||(D=c1(t,0));D.addedCount++;t++;break;case 3:D||(D=c1(t,0)),D.removed.push(f[J]),J++}D&&T.push(D);return T};
vCX=function(V,D){return gCc(V,V.length,D,D.length)};
FfY=function(V,D){return V===D};
s7Z=function(V){if(V instanceof kv9)return V.value;throw Error("Id`"+V);};
BaU=function(V,D){for(var f in D)f===null?V.style.removeProperty(f):V.style.setProperty(f,D[f])};
dsY=function(V,D){return(V=window.getComputedStyle(V).getPropertyValue(D))?V.trim():""};
R63=function(V){requestAnimationFrame(function(){uOF?uOF(V):(NaL||(NaL=new Promise(function(D){msn=D}),document.readyState==="complete"?msn():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&msn()})),NaL.then(function(){V&&V()}))})};
XWY=function(V){CfZ=V&&V.shimcssproperties?!1:qwx||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
$sY=function(V){if(!(EC3.indexOf(V)>-1)&&V!=="touchend"&&AY3&&atx&&YwU)return{passive:!0}};
pW9=function(V){for(var D=iXX?["click"]:EC3,f=0,n;f<D.length;f++)n=D[f],V?(Sw9.length=0,document.addEventListener(n,WfX,!0)):document.removeEventListener(n,WfX,!0)};
Fz=function(V){var D=V.type;return EC3.indexOf(D)>-1?D==="mousemove"?(D=V.buttons===void 0?1:V.buttons,V instanceof window.MouseEvent&&!Lf3&&(D=ItU[V.which]||0),!!(D&1)):(V.button===void 0?0:V.button)===0:!1};
OXF=function(V){if(V.type==="click"){if(V.detail===0)return!0;var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);if(!D.nodeType||D.nodeType!==Node.ELEMENT_NODE)return!0;D=D.getBoundingClientRect();var f=V.pageX;V=V.pageY;return!(f>=D.left&&f<=D.right&&V>=D.top&&V<=D.bottom)}return!1};
xs9=function(V,D,f){V.movefn=D;V.upfn=f;document.addEventListener("mousemove",D);document.addEventListener("mouseup",f)};
gv=function(V){document.removeEventListener("mousemove",V.movefn);document.removeEventListener("mouseup",V.upfn);V.movefn=null;V.upfn=null};
MKY=function(V,D){for(var f=document.elementFromPoint(V,D),n=f;n&&n.shadowRoot&&!window.ShadyDOM;){var t=n;n=n.shadowRoot.elementFromPoint(V,D);if(t===n)break;n&&(f=n)}return f};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var D=h63(V);return D.length>0?D[0]:V.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var D=V.type,f=V.currentTarget.__polymerGestures;if(f&&(f=f[D])){if(!V.__polymerGesturesHandled&&(V.__polymerGesturesHandled={},D.slice(0,5)==="touch")){var n=V.changedTouches[0];D==="touchstart"&&V.touches.length===1&&(UsX=n.identifier);if(UsX!==n.identifier)return;AY3||(D==="touchstart"||D==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)}n=
V.__polymerGesturesHandled;if(!n.skip){for(var t=0,J;t<v1.length;t++)J=v1[t],f[J.name]&&!n[J.name]&&J.flow&&J.flow.start.indexOf(V.type)>-1&&J.reset&&J.reset();for(t=0;t<v1.length;t++)J=v1[t],f[J.name]&&!n[J.name]&&(n[J.name]=!0,J[D](V))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var D=V.changedTouches[0],f=V.type;if(f==="touchstart")Vb9=D.clientX,DRn=D.clientY,frY=!1;else if(f==="touchmove"&&!frY){frY=!0;f="auto";for(var n=h63(V),t=0,J;t<n.length;t++)if(J=n[t],J.__polymerGesturesTouchAction){f=J.__polymerGesturesTouchAction;break}n=!1;t=Math.abs(Vb9-D.clientX);D=Math.abs(DRn-D.clientY);V.cancelable&&(f==="none"?n=!0:f==="pan-x"?n=D>t:f==="pan-y"&&(n=t>D));n?V.preventDefault():
ki("track")}};
B1=function(V,D,f){return sE[D]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,D,f),!0):!1};
dv=function(V,D,f){return sE[D]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,D,f),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,D,f){var n=sE[D],t=n.deps,J=n.name,H=V.__polymerGestures;H||(V.__polymerGestures=H={});for(var Q=0,T,y;Q<t.length;Q++)T=t[Q],iXX&&EC3.indexOf(T)>-1&&T!=="click"||((y=H[T])||(H[T]=y={_count:0}),y._count===0&&V.addEventListener(T,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$sY(T)),y[J]=(y[J]||0)+1,y._count=(y._count||0)+1);V.addEventListener(D,f);n.touchAction&&_.uL(V,n.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,D,f){var n=sE[D],t=n.deps;n=n.name;var J=V.__polymerGestures;if(J)for(var H=0,Q,T;H<t.length;H++)Q=t[H],(T=J[Q])&&T[n]&&(T[n]=(T[n]||1)-1,T._count=(T._count||1)-1,T._count===0&&V.removeEventListener(Q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$sY(Q)));V.removeEventListener(D,f)};
nVZ=function(V){v1.push(V);for(var D=0;D<V.emits.length;D++)sE[V.emits[D]]=V};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){for(var D=0,f;D<v1.length;D++){f=v1[D];for(var n=0,t;n<f.emits.length;n++)if(t=f.emits[n],t===V)return f}return null};
_.uL=function(V,D){AY3&&V instanceof HTMLElement&&N2.run(function(){V.style.touchAction=D});
V.__polymerGesturesTouchAction=D};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,D,f){D=new Event(D,{bubbles:!0,cancelable:!0,composed:!0});D.detail=f;(0,_.y$)(V).dispatchEvent(D);D.defaultPrevented&&(V=f.preventer||f.sourceEvent)&&V.preventDefault&&V.preventDefault()};
ki=function(V){V=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V.info&&(V.info.prevent=!0)};
mi=function(V,D,f,n){D&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,V,{x:f.clientX,y:f.clientY,sourceEvent:f,preventer:n,prevent:function(t){return ki(t)}})};
tbn=function(V,D,f){if(V.prevent)return!1;if(V.started)return!0;f=Math.abs(V.y-f);return Math.abs(V.x-D)>=5||f>=5};
PnZ=function(V,D,f){if(D){var n=V.moves[V.moves.length-2],t=V.moves[V.moves.length-1],J=t.x-V.x,H=t.y-V.y,Q=0;if(n){var T=t.x-n.x;Q=t.y-n.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,"track",{state:V.state,x:f.clientX,y:f.clientY,dx:J,dy:H,ddx:T,ddy:Q,sourceEvent:f,hover:function(){return MKY(f.clientX,f.clientY)}})}};
JEL=function(V,D,f){var n=Math.abs(D.clientX-V.x),t=Math.abs(D.clientY-V.y),J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f||D);!J||oVF[J.localName]&&J.hasAttribute("disabled")||!(isNaN(n)||isNaN(t)||n<=25&&t<=25||OXF(D))||V.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"tap",{x:D.clientX,y:D.clientY,sourceEvent:D,preventer:f})};
rEX=function(V,D,f,n,t){var J;t&&(J=typeof f==="object"&&f!==null)&&(n=V.__dataTemp[D]);n=n!==f&&(n===n||f===f);J&&n&&(V.__dataTemp[D]=f);return n};
wCc=function(){if(zt&&!RG){if(!HLd){HLd=!0;var V=document.createElement("style");V.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(V)}return!0}return!1};
T39=function(){return Qm9};
bLX=function(V,D){Qm9=V;Object.setPrototypeOf(V,D.prototype);new D;Qm9=null};
KDZ=function(V,D){for(var f=0;f<D.length;f++){var n=D[f];if(!!V!=!!n.__hideTemplateChildren__)if(n.nodeType===Node.TEXT_NODE)V?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(V)n.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.y$)((0,_.y$)(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{var t=n.__polymerReplaced__;t&&(0,_.y$)((0,_.y$)(t).parentNode).replaceChild(n,t)}else n.style&&(V?(n.__polymerDisplay__=
n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=V;n._showHideChildren&&n._showHideChildren(V)}};
yEF=function(V){return(V=V.__dataHost)&&V._methodHost||V};
lrF=function(V,D,f){var n=f.mutableData?ZLZ:CO;q2.mixin&&(n=q2.mixin(n));var t=function(){return n.apply(this,arguments)||this};
_.v(t,n);t.prototype.__templatizeOptions=f;t.prototype._bindTemplate(V);jm9(t,V,D,f);return t};
gV9=function(V,D,f,n){var t=f.forwardHostProp;if(t&&D.hasHostProps){var J=V.localName=="template",H=D.templatizeTemplateClass;if(!H){if(J){var Q=f.mutableData?GSd:eSY;H=function(){return Q.apply(this,arguments)||this};
_.v(H,Q);H=D.templatizeTemplateClass=H}else{var T=V.constructor;H=function(){return T.apply(this,arguments)||this};
_.v(H,T);H=D.templatizeTemplateClass=H}var y=D.hostProps,Z;for(Z in y)H.prototype._addPropertyEffect("_host_"+Z,H.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cEZ(t)}),H.prototype._createNotifyingProperty("_host_"+Z);Xz&&n&&FDL(D,f,n)}V.__dataProto&&Object.assign(V.__data,V.__dataProto);if(J)bLX(V,H),V.__dataTemp={},V.__dataPending=null,V.__dataOld=null,V._enableProperties();else{Object.setPrototypeOf(V,H.prototype);D=D.hostProps;for(var l in D)l="_host_"+l,l in V&&(D=V[l],delete V[l],V.__data[l]=
D)}}};
cEZ=function(V){return function(D,f,n){V.call(D.__templatizeOwner,f.substring(6),n[f])}};
jm9=function(V,D,f,n){var t=f.hostProps||{},J;for(J in n.instanceProps){delete t[J];var H=n.notifyInstanceProp;H&&V.prototype._addPropertyEffect(J,V.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vVF(H)})}if(n.forwardHostProp&&D.__dataHost)for(var Q in t)f.hasHostProps||(f.hasHostProps=!0),V.prototype._addPropertyEffect(Q,V.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:kSY()})};
vVF=function(V){return function(D,f,n){V.call(D.__templatizeOwner,D,f,n[f])}};
kSY=function(){return function(V,D,f){V.__dataHost._setPendingPropertyOrPath("_host_"+D,f[D],!0,!0)}};
q2=function(V,D,f){if(EE&&!yEF(V))throw Error("Od");f=f||{};if(V.__templatizeOwner)throw Error("Pd");V.__templatizeOwner=D;var n=(D?D.constructor:CO)._parseTemplate(V),t=n.templatizeInstanceClass;t||(t=lrF(V,n,f),n.templatizeInstanceClass=t);var J=yEF(V);gV9(V,n,f,J);f=function(){return t.apply(this,arguments)||this};
_.v(f,t);f.prototype._methodHost=J;f.prototype.__dataHost=V;f.prototype.__templatizeOwner=D;f.prototype.__hostProps=n.hostProps;return f};
FDL=function(V,D,f){f=f.constructor._properties;V=V.propertyEffects;D=D.instanceProps;for(var n in V)if(!(f[n]||D&&D[n]))for(var t=V[n],J=0;J<t.length;J++){var H=t[J].info.part;if(!H.signature||!H.signature.static){console.warn("Property '"+n+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
sm3=function(V,D){for(var f;D;)if(f=D.__dataHost?D:D.__templatizeInstance)if(f.__dataHost!=V)D=f.__dataHost;else return f;else D=(0,_.y$)(D).parentNode;return null};
Aq=function(V){return V.localName==="slot"};
B33=function(){for(var V=Yi.prototype,D="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),f={},n=0;n<D.length;f={method$jscomp$30:void 0},n++)f.method$jscomp$30=D[n],V[f.method$jscomp$30]=function(t){return function(){return this.node[t.method$jscomp$30].apply(this.node,arguments)}}(f)};
dRY=function(V,D){for(var f={},n=0;n<D.length;f={name$jscomp$383:void 0},n++)f.name$jscomp$383=D[n],Object.defineProperty(V,f.name$jscomp$383,{get:function(t){return function(){return this.node[t.name$jscomp$383]}}(f),
configurable:!0})};
uWZ=function(){for(var V=Yi.prototype,D=["textContent","innerHTML","className"],f={},n=0;n<D.length;f={name$jscomp$384:void 0},n++)f.name$jscomp$384=D[n],Object.defineProperty(V,f.name$jscomp$384,{get:function(t){return function(){return this.node[t.name$jscomp$384]}}(f),
set:function(t){return function(J){this.node[t.name$jscomp$384]=J}}(f),
configurable:!0})};
N3Y=function(){$i=document.documentElement.getAttribute("dir");$i=document.documentElement.getAttribute("dir");for(var V=0;V<iL.length;V++){var D=iL[V];D.__autoDirOptOut||D.setAttribute("dir",$i)}};
CnU=function(){S6=!0;requestAnimationFrame(function(){S6=!1;mRZ(zSF);setTimeout(function(){for(var V=0,D=W1.length;V<D;V++)RSY(W1.shift())})})};
mRZ=function(V){for(;V.length;)RSY(V.shift())};
RSY=function(V){var D=V[0],f=V[1];V=V[2];try{f.apply(D,V)}catch(n){setTimeout(function(){throw n;})}};
_.q1R=function(V,D,f){S6||CnU();zSF.push([V,D,f])};
_.pO=function(V,D,f){S6||CnU();W1.push([V,D,f])};
AEU=function(V,D){D=D===void 0?!1:D;if(!XCX||!EVL||!XCX.handlesDynamicScoping)return null;var f=EVL.ScopingShim;if(!f)return null;var n=f.scopeForNode(V),t=(0,_.y$)(V).getRootNode(),J=function(H){if((0,_.y$)(H).getRootNode()===t){var Q=Array.from(XCX.nativeMethods.querySelectorAll.call(H,"*"));Q.push(H);for(H=0;H<Q.length;H++){var T=Q[H];if((0,_.y$)(T).getRootNode()===t){var y=f.currentScopeForNode(T);y!==n&&(y!==""&&f.unscopeNode(T,y),f.scopeNode(T,n))}}}};
J(V);return D?(D=new MutationObserver(function(H){for(var Q=0;Q<H.length;Q++)for(var T=H[Q],y=0;y<T.addedNodes.length;y++){var Z=T.addedNodes[y];Z.nodeType===Node.ELEMENT_NODE&&J(Z)}}),D.observe(V,{childList:!0,
subtree:!0}),D):null};
ar3=function(){document.body.removeAttribute("unresolved")};
WDY=function(V){var D=V=V.replace(Y1R,"").replace($Rc,""),f=new iL3;f.start=0;f.end=D.length;for(var n=f,t=0,J=D.length;t<J;t++)if(D[t]==="{"){n.rules||(n.rules=[]);var H=n,Q=H.rules[H.rules.length-1]||null;n=new iL3;n.start=t+1;n.parent=H;n.previous=Q;H.rules.push(n)}else D[t]==="}"&&(n.end=t+1,n=n.parent||f);return S19(f,V)};
S19=function(V,D){var f=D.substring(V.start,V.end-1);V.parsedCssText=V.cssText=f.trim();V.parent&&(f=D.substring(V.previous?V.previous.end:V.parent.start,V.start-1),f=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(f),f=f.replace(pCL," "),f=f.substring(f.lastIndexOf(";")+1),f=V.parsedSelector=V.selector=f.trim(),V.atRule=f.indexOf("@")===0,V.atRule?f.indexOf("@media")===0?V.type=4:f.match(LDn)&&(V.type=7,V.keyframesName=V.selector.split(pCL).pop()):f.indexOf("--")===
0?V.type=1E3:V.type=1);if(f=V.rules)for(var n=0,t=f.length,J=void 0;n<t&&(J=f[n]);n++)S19(J,D);return V};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(V){return V.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var D=arguments[1],f=6-D.length;f--;)D="0"+D;return"\\"+D})};
IrL=function(V,D,f){f=f===void 0?"":f;var n="";if(V.cssText||V.rules){var t=V.rules;if(t&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t))for(var J=0,H=t.length,Q=void 0;J<H&&(Q=t[J]);J++)n=IrL(Q,D,n);else D?D=V.cssText:(D=V.cssText,D=D.replace(OLx,"").replace(xRX,""),D=D.replace(MbR,"").replace(hSZ,"")),(n=D.trim())&&(n="  "+n+"\n")}n&&(V.selector&&(f+=V.selector+" {\n"),f+=n,V.selector&&(f+="}\n\n"));return f};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(V){V=V[0];return!!V&&!!V.selector&&V.selector.indexOf("--")===0};
V9c=function(V){if(V=URn[V])V._applyShimCurrentVersion=V._applyShimCurrentVersion||0,V._applyShimValidatingVersion=V._applyShimValidatingVersion||0,V._applyShimNextVersion=(V._applyShimNextVersion||0)+1};
DwR=function(V){return V._applyShimCurrentVersion===V._applyShimNextVersion};
nvF=function(V){V._applyShimValidatingVersion=V._applyShimNextVersion;V._validating||(V._validating=!0,f1X.then(function(){V._applyShimCurrentVersion=V._applyShimNextVersion;V._validating=!1}))};
PYR=function(V){if(!V)return"";typeof V==="string"&&(V=WDY(V));return IrL(V,t99)};
ovx=function(V){!V.__cssRules&&V.textContent&&(V.__cssRules=WDY(V.textContent));return V.__cssRules||null};
rxF=function(V,D,f,n){if(V){var t=!1,J=V.type;if(n&&J===4){var H=V.selector.match(JxL);H&&(window.matchMedia(H[1]).matches||(t=!0))}J===1?D(V):f&&J===7?f(V):J===1E3&&(t=!0);if((V=V.rules)&&!t)for(t=0,J=V.length,H=void 0;t<J&&(H=V[t]);t++)rxF(H,D,f,n)}};
HY3=function(V,D){var f=V.indexOf("var(");if(f===-1)return D(V,"","","");a:{var n=0;var t=f+3;for(var J=V.length;t<J;t++)if(V[t]==="(")n++;else if(V[t]===")"&&--n===0)break a;t=-1}n=V.substring(f+4,t);f=V.substring(0,f);V=HY3(V.substring(t+1),D);J=n.indexOf(",");if(J===-1)return D(f,n.trim(),"",V);t=n.substring(0,J).trim();n=n.substring(J+1).trim();return D(f,t,n,V)};
wVn=function(V){if(LO!==void 0)return LO;if(V.__cssBuild===void 0){var D=V.getAttribute("css-build");if(D)V.__cssBuild=D;else{a:{D=V.localName==="template"?V.content.firstChild:V.firstChild;if(D instanceof Comment&&(D=D.textContent.trim().split(":"),D[0]==="css-build")){D=D[1];break a}D=""}if(D!==""){var f=V.localName==="template"?V.content.firstChild:V.firstChild;f.parentNode.removeChild(f)}V.__cssBuild=D}}return V.__cssBuild||""};
TKd=function(V,D,f,n){for(var t=D._noAccessors,J=Object.getOwnPropertyNames(D),H=0;H<J.length;H++){var Q=J[H];if(!(Q in n))if(t)V[Q]=D[Q];else{var T=Object.getOwnPropertyDescriptor(D,Q);T&&(T.configurable=!0,Object.defineProperty(V,Q,T))}}for(var y in QNY)D[y]&&(f[y]=f[y]||[],f[y].push(D[y]))};
bYZ=function(V,D,f){D=D||[];for(var n=V.length-1;n>=0;n--){var t=V[n];t?Array.isArray(t)?bYZ(t,D):D.indexOf(t)<0&&(!f||f.indexOf(t)<0)&&D.unshift(t):console.warn("behavior is null, check for missing or 404 import")}return D};
K$Y=function(V,D){for(var f in D){var n=V[f],t=D[f];V[f]=!("value"in t)&&n&&"value"in n?Object.assign({value:n.value},t):t}};
jNY=function(V,D,f){var n={},t=function(){return D.apply(this,arguments)||this};
_.v(t,D);t._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(H)for(var T=0,y;T<H.length;T++)y=H[T],y.properties&&this.createProperties(y.properties),y.observers&&this.createObservers(y.observers,y.properties);V.properties&&this.createProperties(V.properties);V.observers&&this.createObservers(V.observers,V.properties);this._prepareTemplate()}else D._finalizeClass.call(this)};
t.prototype.created=function(){D.prototype.created.call(this);var T=n.created;if(T)for(var y=0;y<T.length;y++)T[y].call(this)};
t.prototype._registered=function(){var T=t.prototype;if(!T.hasOwnProperty("__hasRegisterFinished")){T.__hasRegisterFinished=!0;D.prototype._registered.call(this);zt&&Q(T);T=Object.getPrototypeOf(this);var y=n.beforeRegister;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(T);if(y=n.registered)for(Z=0;Z<y.length;Z++)y[Z].call(T)}};
t.prototype._applyListeners=function(){D.prototype._applyListeners.call(this);var T=n.listeners;if(T)for(var y=0;y<T.length;y++){var Z=T[y];if(Z)for(var l in Z)this._addMethodEventListenerToNode(this,l,Z[l])}};
t.prototype._ensureAttributes=function(){var T=n.hostAttributes;if(T)for(var y=T.length-1;y>=0;y--){var Z=T[y],l;for(l in Z)this._ensureAttribute(l,Z[l])}D.prototype._ensureAttributes.call(this)};
t.prototype.ready=function(){D.prototype.ready.call(this);var T=n.ready;if(T)for(var y=0;y<T.length;y++)T[y].call(this)};
t.prototype.attached=function(){D.prototype.attached.call(this);var T=n.attached;if(T)for(var y=0;y<T.length;y++)T[y].call(this)};
t.prototype.detached=function(){D.prototype.detached.call(this);var T=n.detached;if(T)for(var y=0;y<T.length;y++)T[y].call(this)};
t.prototype.attributeChanged=function(T,y,Z){D.prototype.attributeChanged.call(this);var l=n.attributeChanged;if(l)for(var G=0;G<l.length;G++)l[G].call(this,T,y,Z)};
_.IG.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){var T={};if(H)for(var y=0;y<H.length;y++)K$Y(T,H[y].properties);K$Y(T,V.properties);return T}},
observers:{configurable:!0,enumerable:!0,get:function(){var T=[];if(H)for(var y=0,Z;y<H.length;y++)Z=H[y],Z.observers&&(T=T.concat(Z.observers));V.observers&&(T=T.concat(V.observers));return T}}});
if(f){Array.isArray(f)||(f=[f]);var J=D.prototype.behaviors;var H=bYZ(f,null,J);t.prototype.behaviors=J?J.concat(f):H}var Q=function(T){if(H)for(var y=H,Z=0;Z<y.length;Z++)TKd(T,y[Z],n,yx9);TKd(T,V,n,ZYY)};
zt||Q(t.prototype);t.generatedFrom=V;return t};
cx9=function(V){var D=typeof V!=="string"?V:{is:V,notifyObserversOnUndefined:!0};D.fastInit===void 0&&(D.fastInit=!0);return function(f){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(f.prototype).constructor!==_.xi)throw Error("Td");var n=f.prototype;n.is=D.is;kkd(n,"created",function(){this.hostElement=this;this.polymerController=this});
l1F(n,f,D.fastInit);D.notifyObserversOnUndefined&&(n._overrideLegacyUndefined=!0);if(G3Y)for(var t=_.r(Object.getOwnPropertyNames(n)),J=t.next();!J.done;J=t.next()){J=J.value;var H=Object.getOwnPropertyDescriptor(n,J);H.enumerable===!1&&(H.enumerable=!0,Object.defineProperty(n,J,H))}if("template"in f)var Q=function(){return f.template};
else D.template!==void 0&&(Q=D.template);if(Q!==void 0){var T;Object.defineProperty(n,"_template",{get:function(){T===void 0&&(T=Q());return T},
set:function(y){T=y},
configurable:!0,enumerable:!0})}Polymer(n);f[eRn]=n}};
F$3=function(V){V=V===void 0?{}:V;V.fastInit===void 0&&(V.fastInit=!0);return function(D){if(!V.disableInheritanceCheck&&Object.getPrototypeOf(D.prototype).constructor!==M2)throw Error("Ud");l1F(D.prototype,D,V.fastInit)}};
l1F=function(V,D,f){f=f===void 0?!1:f;gvd(D);f?kkd(V,"created",function(){this.disableEnforceFastDefaultValuesCheck||vvc(D,this)}):kkd(V,"ready",function(){for(var n={},t=_.r(st3(this.behaviors)),J=t.next();!J.done;J=t.next())J=J.value,J.properties&&Object.assign(n,k3Z(this,J.properties));
Object.assign(n,k3Z(this,this.properties));vvc(D,this);t=_.r(Object.keys(n));for(J=t.next();!J.done;J=t.next())J=J.value,this[J]=n[J]})};
vvc=function(V,D){if(G3Y){V=new V;for(var f=_.r(Object.getOwnPropertyNames(V)),n=f.next();!n.done;n=f.next())n=n.value,D[n]=V[n];for(f=D;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){n=_.r(Object.getOwnPropertyNames(f));for(var t=n.next();!t.done;t=n.next())t=t.value,V.hasOwnProperty(t)||Object.defineProperty(V,t,sNn(D,t))}}else V.apply(D)};
sNn=function(V,D){return{get:function(){var f=V[D];return f instanceof Function?f.bind(V):f},
set:function(f){V[D]=f}}};
k3Z=function(V,D){if(!D)return{};for(var f={},n=_.r(Object.keys(D)),t=n.next();!t.done;t=n.next())if(t=t.value,!D[t].readOnly){var J=V[t];J!==void 0&&(f[t]=J)}return f};
gvd=function(V){var D=new V;V=V.prototype.properties||{};for(var f=_.r(Object.keys(V)),n=f.next();!n.done;n=f.next())if(n=n.value,D.hasOwnProperty(n)){var t=V[n];typeof t==="function"&&(V[n]=t={type:t});D[n]!=null&&t.type===Object&&(t.type=BKY(D[n].constructor))}};
BKY=function(V){for(var D=_.r(dwx),f=D.next();!f.done;f=D.next())if(f=f.value,V===f)return f;return Object};
ucY=function(V){return function(D,f){D.behaviors=D.behaviors||[];D.behaviors.push(V||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",D,f).prototype:void 0));Object.defineProperty(D,f,{get:function(){return this},
enumerable:!0,configurable:!0})}};
NK3=function(V){V=V===void 0?{}:V;return function(D,f){D.properties=D.properties||{};V.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?V.type=BKY(Reflect.getMetadata("design:type",D,f)):V.type=String);var n=V,t=D.properties[f];D.properties[f]=t?Object.assign({},t,n):n}};
mwZ=function(V){return function(D,f){D.listeners=D.listeners||{};D.listeners[V]=f}};
zRF=function(){var V=_.gQ.apply(0,arguments);if(V.length===0)throw Error("Vd");return function(D,f){D.observers=D.observers||[];D.observers.push(f+"("+V.join(",")+")")}};
RRZ=function(){var V=_.gQ.apply(0,arguments);return function(D,f,n){var t=Object.getOwnPropertyDescriptor(D,f).get,J="__compute__"+f;Object.defineProperty(D,J,{value:t,enumerable:!0});D.properties=D.properties||{};t=D.properties[f];t||(t={},D.properties[f]=t);t.computed=J+"("+V.join(",")+")";n.get=void 0}};
_.hq=function(V,D,f){_.cq.call(this);this.JSC$9351_id_=null;this.usingListeners_=!1;this.JSC$9351_listener_=V;this.handler_=f;this.JSC$9351_win_=D||window;this.callback_=(0,_.F1)(this.JSC$9353_doAction_,this)};
UE=function(V){this.range_=V};
VR=function(V){this.range_=V};
nl=function(V,D,f){_.cq.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=V;this.scrollTimer_=new _.Dk(50);this.JSC$9430_eventHandler_=new _.fl(this);this.scrollDelta_=new _.uB;this.containerIsActuallyContent_=V.tagName==="BODY"||V.tagName==="HTML";this.containerBounds_=CYc(V);this.containerIsActuallyContent_&&(V=_.Ki(),this.containerBounds_.height=V.height,this.containerBounds_.width=V.width);this.margin_=D||0;if(D){if(D=this.containerBounds_.clone(),V=this.margin_){var n=
Math.min(V,D.height*.25);D.top+=n;D.height-=2*n;V=Math.min(V,D.width*.25);D.left+=V;D.width-=2*V}}else D=this.containerBounds_;this.scrollBounds_=D;f||this.JSC$9430_eventHandler_.listen(_.mk(this.containerNode_),"mousemove",this.JSC$9432_onMouseMove);this.JSC$9430_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9432_onTick_)};
_.te=function(V){this.mechanism=V};
P8=function(V,D){this.JSC$9528_key_=V;this.JSC$9528_value_=D};
XVZ=function(V){if(V>=55296&&V<=57343||V>1114111)return"\ufffd";V in q5Z&&(V=q5Z[V]);var D="";V>65535&&(V-=65536,D+=String.fromCharCode(V>>>10&1023|55296),V=56320|V&1023);return D+=String.fromCharCode(V)};
EvY=function(V,D){return V<D?1:-1};
a1R=function(){return function(V){return V.charAt(1)==="#"?V.charAt(2)==="X"||V.charAt(2)==="x"?XVZ(parseInt(V.substr(3),16)):XVZ(parseInt(V.substr(2),10)):AxR[V.slice(1,-1)]}};
iYn=function(V){return V.slice(1,V.length-1).trim().replace(Y5n,function(D){return $wY[D]||" "})};
ob=function(V){return V===32||V===9};
Je=function(V,D){return D<V.length?V.charCodeAt(D):-1};
S5F=function(V){for(;V;){if(V._lastLineBlank)return!0;var D=V.type;if(D==="list"||D==="item")V=V._lastChild;else break}return!1};
r2=function(V){if(W$Y.test(V)){var D=1,f=0,n=0;for(V[f]=="|"&&f++;f<V.length;){switch(V[f]){case "|":n=1;break;case " ":break;case "\t":break;default:n&&(n=0,D++)}f++}return pV9.test(V)?-D:D}return 0};
L$F=function(V){return V=="table"||V=="row"||V=="cell"};
I1c=function(){return new H8("document",[[1,1],[0,0]])};
OYY=function(){};
w2=function(){var V={safe:!1};V=V||{};V.softbreak=V.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=V};
VPR=function(V,D){var f="";if(V)if(V=V.toLowerCase(),V===" "||xwF.test(V))f="space";else if(M9L.test(V))f="esc";else if(V.length==1){if(!D||hRY.test(V))f=V}else f=UwL.test(V)?V.replace("arrow",""):V=="multiply"?"*":V;return f};
tPR=function(V,D){var f=V.hasModifiers;if(D.key)f=VPR(D.key,f);else if(D.detail&&D.detail.key)f=VPR(D.detail.key,f);else{f=D.keyIdentifier;var n="";f&&(f in Dkn?n=Dkn[f]:fXF.test(f)?(f=parseInt(f.replace("U+","0x"),16),n=String.fromCharCode(f).toLowerCase()):n=f.toLowerCase());(f=n)||(f=D.keyCode,n="",Number(f)&&(f>=65&&f<=90?n=String.fromCharCode(32+f):f>=112&&f<=123?n="f"+(f-112+1):f>=48&&f<=57?n=String(f-48):f>=96&&f<=105?n=String(f-96):n=nsL[f]),f=n);f=f||""}return f===V.key&&(!V.hasModifiers||
!!D.shiftKey===!!V.shiftKey&&!!D.ctrlKey===!!V.ctrlKey&&!!D.altKey===!!V.altKey&&!!D.metaKey===!!V.metaKey)};
osc=function(V){return V.length===1?{combo:V,key:V,event:"keydown"}:V.split("+").reduce(function(D,f){var n=f.split(":");f=n[0];n=n[1];f in P49?(D[P49[f]]=!0,D.hasModifiers=!0):(D.key=f,D.event=n||"keydown");return D},{combo:V.split(":").shift()})};
JFn=function(V){return V.trim().split(" ").map(function(D){return osc(D)})};
rFx=function(V,D){if(V&&V.fn){var f=V.fn;V.fn=function(){try{f.apply(this,arguments)}catch(n){if(n instanceof QR)console.warn("Argument '"+n.arg+"'"+(D?" for method '"+D+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw n;}}}return V};
Hgn=function(){var V=_.gQ.apply(0,arguments);return V.length===0?function(D){return D}:V.length===1?V[0]:V.reduce(function(D,f){return function(){return D(f.apply(null,_.sz(_.gQ.apply(0,arguments))))}})};
wbX=function(){var V=_.gQ.apply(0,arguments);return function(D){return function(f,n){f=D(f,n);var t=function(){throw Error("Fe");},J={getState:f.getState,
dispatch:function(H){return t.apply(null,[H].concat(_.sz(_.gQ.apply(1,arguments))))}};
n=V.map(function(H){return H(J)});
t=Hgn.apply(null,_.sz(n))(f.dispatch);return Object.assign({},f,{dispatch:t})}}};
bgU=function(V){Object.keys(V).forEach(function(D){var f=V[D];if(typeof f(void 0,{type:Q$F})==="undefined")throw Error("Ge`"+D);if(typeof f(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+TfY()})==="undefined")throw Error("He`"+D+"`"+Q$F);})};
TR=function(V){for(var D=Object.keys(V),f={},n=0;n<D.length;n++){var t=D[n];typeof V[t]==="function"&&(f[t]=V[t])}var J=Object.keys(f);try{bgU(f)}catch(Q){var H=Q}return function(Q,T){Q=Q===void 0?{}:Q;if(H)throw H;for(var y=!1,Z={},l=0;l<J.length;l++){var G=J[l],F=Q[G],k=(0,f[G])(F,T);if(typeof k==="undefined")throw Q=T&&T.type,Error("Ie`"+(Q?'"'+String(Q)+'"':"(unknown type)")+"`"+G);Z[G]=k;y=y||k!==F}return(y=y||J.length!==Object.keys(Q).length)?Z:Q}};
KzY=function(V,D,f){function n(){if(Z)throw Error("Je");return Q}
function t(F){if(typeof F!=="function")throw Error("Ke`"+typeof F);if(Z)throw Error("Le");var k=!0;y===T&&(y=T.slice());y.push(F);return function(){if(k){if(Z)throw Error("Me");k=!1;y===T&&(y=T.slice());var d=y.indexOf(F);y.splice(d,1);T=null}}}
function J(F){if(typeof F!=="object"||F===null)var k=!1;else{for(k=F;Object.getPrototypeOf(k)!==null;)k=Object.getPrototypeOf(k);k=Object.getPrototypeOf(F)===k}if(!k)throw Error("Ne`"+typeof F);if(typeof F.type==="undefined")throw Error("Oe");if(Z)throw Error("Pe");try{Z=!0,Q=H(Q,F)}finally{Z=!1}k=T=y;for(var d=0;d<k.length;d++)(0,k[d])();return F}
if(typeof D==="function"&&typeof f==="function"||typeof f==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof D==="function"&&typeof f==="undefined"&&(f=D,D=void 0);if(typeof f!=="undefined"){if(typeof f!=="function")throw Error("Re`"+typeof f);return f(KzY)(V,D)}if(typeof V!=="function")throw Error("Se`"+typeof V);var H=V,Q=D,T=[],y=T,Z=!1;J({type:Q$F});var l={},G=(l.dispatch=J,l.subscribe=t,l.getState=n,l.replaceReducer=function(F){if(typeof F!=="function")throw Error("Te`"+
typeof F);H=F;J({type:yFn});return G},l[Zg9]=function(){var F={};
return F.subscribe=function(k){function d(){k.next&&k.next(n())}
if(typeof k!=="object"||k===null)throw new TypeError("Ue`"+typeof k);d();return{unsubscribe:t(d)}},F[Zg9]=function(){return this},F},l);
return G};
j$3=function(V){function D(){t&&(t=!1,V());J&&n()}
function f(){requestAnimationFrame(D)}
function n(){var Q=Date.now();if(t){if(Q-H<2)return;J=!0}else t=!0,J=!1,setTimeout(f,20);H=Q}
var t=!1,J=!1,H=0;return n};
b8=function(V){return typeof V==="number"?V:parseFloat(V)||0};
lXZ=function(V){return _.gQ.apply(1,arguments).reduce(function(D,f){return D+b8(V["border-"+f+"-width"])},0)};
_.B=function(V,D){D=uv(dQ(D));V.innerHTML=D};
cFn=function(V){var D=Glx;D||(D=eK9(),D=Glx=_.sB.transpose(D));D=D[V];return typeof D==="string"?D:_.Kl(V)};
FzZ=function(V){V=String(V).toLowerCase();var D=eK9()[V];return typeof D==="string"?D:_.yR(V)};
gsX=function(V){V=V.toLowerCase();V=eK9()[V];return typeof V==="string"?V:null};
eK9=function(){if(!vsY){for(var V=Object.assign({},klL),D=_.r(s$F),f=D.next();!f.done;f=D.next())f=f.value,V[f.toLowerCase()]=f;vsY=V}return vsY};
uXL=function(V,D){var f=window.customElements;return f&&f.get(V)||BfF[V]===!0?2:D.name==="HTMLUnknownElement"?1:D.name==="HTMLElement"&&dkx.test(V)?3:0};
zKL=function(V,D){switch(D){case "innerHTML":return Nfc(V)===1?2:null;case "textContent":return V=Nfc(V),V===1||V===6?1:null;default:var f,n;return(n=(f=mk9[V.localName])==null?void 0:f[D])!=null?n:null}};
Nfc=function(V){var D=V.localName,f=uXL(D,V.constructor);switch(f){case 0:case 1:return RKd(D,V);case 3:case 2:return 1;default:_.JZ(f,"got an unknown element classification")}};
RKd=function(V,D){var f=Object.hasOwnProperty.call(C4d,V)?C4d[V]:null;return f!==null?f:Object.hasOwnProperty.call(qkZ,V)&&D instanceof SVGElement?qkZ[V]:null};
Xb9=function(V,D){return D};
AFn=function(V){return(V=V.split(Esn,2))?{url:V[0],metadata:V[1]}:null};
YkX=function(V){var D=String(V.url).replace(aXY,encodeURIComponent);if(V=V.metadata){aXY.lastIndex=0;if(aXY.test(V))return null;D+=" "+V}return D};
WzL=function(V){function D(y){var Z=y.localName;if(!y.getAttribute("is")&&uXL(Z,y.constructor)===2){var l;return(l=T)!=null?l:T=document.createElement("polyresinuncustomized")}(y=Q[Z])||(y=Q[Z]=document.createElement(Z));return y}
var f=V.reportHandler||void 0,n=V.safeTypesBridge||$kL,t=/^$/;if(V=V.allowedIdentifierPrefixes){V=_.r(V);for(var J=V.next();!J.done;J=V.next())t=new RegExp(t.source+"|^"+_.igx(J.value))}f&&f(!1,"initResin",null);var H=Skx(t,n,f),Q={},T=null;return function(y,Z,l){var G=y.nodeType;if(G!==Node.ELEMENT_NODE){if(G===Node.TEXT_NODE){Z=y.parentElement;l=!Z;if(Z&&Z.nodeType===Node.ELEMENT_NODE){G=Z.localName;var F=uXL(G,Z.constructor);switch(F){case 0:case 1:Z=RKd(G,Z);l=Z===1||Z===6;break;case 3:case 2:l=
!0;break;default:_.JZ(F,"got an unknown element classification")}}if(l)return function(C){return""+n(C,"STRING",C)}}return function(C){if(!C&&C!==document.all)return C;
f&&f(!0,"Failed to sanitize "+(y.parentElement&&y.parentElement.nodeName)+" #text node to value "+C,y.parentElement);return Zk}}var k=y.localName;
G=D(y);var d=null;switch(l){case "attribute":if(FzZ(Z)in G)break;return function(C){return C};
case "property":if(Z in G){d=zKL(G,Z);break}if((F=gsX(Z))&&F in G)break;return function(C){return C};
default:_.JZ(l,"got an unknown resin type, expected either 'property' or 'attribute'")}var z=l==="attribute"?Z.toLowerCase():cFn(Z);d||(d=rBZ(k,z,function(C){var A=y.getAttribute(C);return!A||/[\[\{]/.test(C)?null:A}));
return function(C){var A=jv,O=null;if(!C&&C!==document.all)return C;if(d!=null){var W=H[d],I=W.safeType;O=W.safeReplacement;I&&(A=n(C,I,jv));A===jv&&(W.filterString?(A=String(n(C,"STRING",C)),A=W.filterString(k,z,A)):W.filterRaw&&(A=W.filterRaw(k,z,C,y)),A===O&&(A=jv))}A===jv&&(A=O||Zk,f&&f(!0,"Failed to sanitize attribute of <"+k+">: <"+k+" "+z+'="'+C+'">',y));return A}}};
Skx=function(V,D,f){return[,{filterRaw:function(n,t,J){return J},
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:pb9,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:pb9,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Zk,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:LzU,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(n,t,J){J=
String(J).toLowerCase();return QO3(n,t,J)?J:Zk},
safeReplacement:Zk,safeType:void 0},,{filterRaw:void 0,filterString:function(n,t,J){return V.test(J)?J:Zk},
safeReplacement:Zk,safeType:"CONSTANT"},{filterRaw:function(n,t,J,H){if(typeof J==="string")var Q=(Q=J.match(IXZ))?Q.map(AFn).filter(Boolean):[];else if(Array.isArray(J))Q=J;else return pb9;var T=Q;Q=[];var y=[],Z={};if(Array.isArray(T))for(var l=0,G=T.length;l<G;++l){var F=T[l],k=F&&F.url;if(k){var d=D(k,"URL",Z);if(d){var z=d!==Z;(z?Q:y).push({url:z?d:k,metadata:F.metadata})}}}else y.push(T);T=y.length?JSON.stringify(y):null;y=jv;if(Q.length){if(!Array.isArray(Q))throw Error();y=Q.map(YkX).filter(Boolean).join(" , ")||
jv}T&&f&&f(!0,"Failed to sanitize attribute value of <"+n+">: <"+n+" "+t+'="'+J+'">: '+T,H);return y===jv?pb9:y},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
OgF=function(V){var D=WzL(V);return function(f,n,t,J){return J||J===document.all?D(f,n,t)(J):J}};
l8=function(V,D){function f(){function t(Q,T,y){for(T=Reflect.getMetadata("parameters",Q)||[];T.length<=y;)T.push(null);T[y]=T[y]||[];T[y].push(H);Reflect.defineMetadata(T,Q);return Q}
var J=_.gQ.apply(0,arguments);if(this instanceof f)return n.apply(this,J),this;var H=new (Function.prototype.bind.apply(f,[null].concat(_.sz(J))));t.annotation=H;return t}
var n=xkx(D);f.prototype.toString=function(){return"@"+V};
return f.annotationCls=f};
xkx=function(V){return function(){var D=_.gQ.apply(0,arguments),f=this;V.forEach(function(n,t){t=D[t];if(Array.isArray(n))f[n[0]]=t&&t!==void 0?t:n[1];else for(var J in n)f[J]=t&&t[J]!==void 0?t[J]:n[J]})}};
MPd=function(V){return V!==void 0&&V!==null};
GR=function(V){if(typeof V==="string")return V;if(V===void 0||V===null)return""+V;if(V.overriddenName)return V.overriddenName;if(V.name)return V.name;V=V.toString();var D=V.indexOf("\n");return D===-1?V:V.substring(0,D)};
hKZ=function(V){V.__forward_ref__=hKZ;V.toString=function(){return GR(this())};
return V};
ev=function(V){return typeof V==="function"&&V.hasOwnProperty("__forward_ref__")&&V.__forward_ref__===hKZ?V():V};
UkZ=function(V){return V?V.map(function(D){return new (Function.prototype.bind.apply(D.type.annotationCls,[null].concat(_.sz(D.args?D.args:[]))))}):[]};
V$Y=function(V){for(var D=[],f=0;f<V.length;++f){if(D.indexOf(V[f])>-1){D.push(V[f]);break}D.push(V[f])}return D};
DMZ=function(V){return V.length>1?" ("+V$Y(V.slice().reverse()).map(function(D){return GR(D.token)}).join(" -> ")+")":""};
nNF=function(V,D,f,n){if(n){var t=Error("af``"+(n instanceof Error?n.message:n));t.ngOriginalError=n}else t=Error();t.addKey=fTx;t.keys=[D];t.injectors=[V];t.constructResolvingMessage=f;t.message=t.constructResolvingMessage();t.ngOriginalError=n;return t};
fTx=function(V,D){this.injectors.push(V);this.keys.push(D);this.message=this.constructResolvingMessage()};
t$L=function(V,D){return nNF(V,D,function(){return"No provider for "+GR(this.keys[0].token)+"!"+DMZ(this.keys)})};
Pg3=function(V,D){return nNF(V,D,function(){return"Cannot instantiate cyclic dependency!"+DMZ(this.keys)})};
oNU=function(V,D,f){return nNF(V,f,function(){var n=GR(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+n+"!"+DMZ(this.keys)+"."},D)};
JDR=function(V,D){for(var f=[],n=0,t=D.length;n<t;n++){var J=D[n];J&&J.length!=0?f.push(J.map(GR).join(" ")):f.push("?")}return Error("ef`"+GR(V)+"`"+f.join(", ")+"`"+GR(V))};
Kv3=function(V){var D=void 0,f=void 0;if(V&&V.useClass!==void 0){D=V.useClass;var n=ev(V.useClass);var t=rDn.factory(n);n=Hpc(n)}else V&&V.useExisting!==void 0?(t=function(J){return J},n=[wNF(c8.get(ev(V.useExisting)))]):V&&V.useFactory!==void 0?(t=V.useFactory,n=QzZ(V.useFactory,V.deps)):(f=V.useValue,t=function(){return V.useValue},n=TTZ);
return new bp9(t,n,D,f)};
Zpx=function(V){return new yDx(c8.get(ev(V.provide)),[Kv3(V)],V.multi)};
lTY=function(V){V=jzn(V,[]).map(Zpx);for(var D=new Map,f=0;f<V.length;f++){var n=V[f],t=D.get(n.key.id);if(t){if(n.multiProvider!==t.multiProvider)throw Error("gf`"+t+"`"+n);if(n.multiProvider)for(var J=0;J<n.resolvedFactories.length;J++)t.resolvedFactories.push(n.resolvedFactories[J]);else D.set(n.key.id,n)}else t=void 0,n.multiProvider?t=new yDx(n.key,n.resolvedFactories.slice(),n.multiProvider):t=n,D.set(n.key.id,t)}return Array.from(D.values())};
jzn=function(V,D){V.forEach(function(f){if(f instanceof G$Y)D.push({provide:f,useClass:f});else if(f&&typeof f=="object"&&f.provide!==void 0)D.push(f);else if(f instanceof Array)jzn(f,D);else throw Error("df`"+f);});
return D};
QzZ=function(V,D){if(D){var f=D.map(function(n){return[n]});
return D.map(function(n){return ecY(V,n,f)})}return Hpc(V)};
Hpc=function(V){var D=rDn.parameters(V);if(!D)return[];if(D.some(function(f){return f==null}))throw JDR(V,D);
return D.map(function(f){return ecY(V,f,D)})};
ecY=function(V,D,f){var n=null,t=!1;if(!Array.isArray(D))return D instanceof cDd?Fv3(D.token,t,null):Fv3(D,t,null);for(var J=null,H=0;H<D.length;++H){var Q=D[H];if(Q instanceof G$Y)n=Q;else if(Q instanceof cDd)n=Q.token;else if(Q instanceof gNZ)t=!0;else if(Q instanceof vNx||Q instanceof k$L)J=Q}n=ev(n);if(n!=null)return Fv3(n,t,J);throw JDR(V,f);};
Fv3=function(V,D,f){return new szX(c8.get(ev(V)),D,f)};
BTx=function(V,D){for(var f=Array(V.providers.length),n=0;n<V.providers.length;++n){var t=n;if(n<0||n>=V.providers.length)throw Error("ff`"+n);f[t]=D(V.providers[n])}return f};
dMx=function(V){return typeof V==="function"&&rDn.parameters(V).every(function(D){return!!D})};
mMc=function(V){var D=uPZ;NTx.get(V)||NTx.set(V,new D);return NTx.get(V)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(V)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(V)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V,D){var f,n;if(V.contains(D))return!0;V=_.Fw(V).querySelectorAll("content,slot");for(f=0;f<V.length;++f){var t=_.Fw(V[f]).getDistributedNodes();for(n=0;n<t.length;++n)if(t[n].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t[n],D))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){V.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V)&&V.preventDefault();V.targetTouches&&(V=V.targetTouches[0],zc9=V.pageX,Rcc=V.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 V=0,D=g2.length;V<D;V++)document.addEventListener(g2[V],_._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 V=0,D=g2.length;V<D;V++)document.removeEventListener(g2[V],_._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(V){var D=_.Fw(V).rootTarget;V.type!=="touchmove"&&Cgx!==D&&(Cgx=D,qOU=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Fw(V).path));if(!qOU.length)return!0;if(V.type==="touchstart")return!1;V=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(qOU,V.deltaX,V.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){for(var D=[],f=V.indexOf(XNc),n=0;n<=f;n++)if(V[n].nodeType===Node.ELEMENT_NODE){var t=V[n],J=t.style;J.overflow!=="scroll"&&J.overflow!=="auto"&&(J=window.getComputedStyle(t));J.overflow!=="scroll"&&J.overflow!=="auto"||D.push(t)}return D};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V,D,f){if(D||f)for(var n=Math.abs(f)>=Math.abs(D),t=0;t<V.length;t++){var J=V[t];if(n?f<0?J.scrollTop>0:J.scrollTop<J.scrollHeight-J.clientHeight:D<0?J.scrollLeft>0:J.scrollLeft<J.scrollWidth-J.clientWidth)return J}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){var D={deltaX:V.deltaX,deltaY:V.deltaY};"deltaX"in V||("wheelDeltaX"in V&&"wheelDeltaY"in V?(D.deltaX=-V.wheelDeltaX,D.deltaY=-V.wheelDeltaY):"wheelDelta"in V?(D.deltaX=0,D.deltaY=-V.wheelDelta):"axis"in V?(D.deltaX=V.axis===1?V.detail:0,D.deltaY=V.axis===2?V.detail:0):V.targetTouches&&(V=V.targetTouches[0],D.deltaX=zc9-V.pageX,D.deltaY=Rcc-V.pageY));return D};
EN3=function(V){this.element=V;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
aTF=function(V){this.element=V;this.color=window.getComputedStyle(V).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");_.Fw(this.waveContainer).appendChild(this.wave);ADY(this)};
v8=function(V,D){for(var f in V)if(f.toLowerCase()===D.toLowerCase())return V[f]};
YO3=function(V,D){for(var f in V)if(f.toLowerCase()===D.toLowerCase()){delete V[f];break}};
ipZ=function(V){V=_.sB.clone(V);for(var D=0;D<$ML.length;++D){var f=$ML[D],n=v8(V,f);n&&(V["X-Goog-Upload-Header-"+f]=n,YO3(V,f))}return V};
SOF=function(V){V=_.sB.clone(V);YO3(V,"X-Goog-Upload-Status")};
pNx=function(V){return WvZ.some(function(D){return D.test(V)})};
xMR=function(V,D){var f;var n=(f=V.formContent)==null?void 0:f.locale;f=n==null?void 0:n.split("-")[0];n=n&&Lv9.includes(n)?n:f&&Lv9.includes(f)?f:void 0;n=(n!=null?n:"en").replaceAll("-","_").toLowerCase();var t;V=((t=V.initializationData)==null?0:t.useNightlyRelease)?"nightly":"live";var J;return(D==null?0:(J=D.getEnableAlohaBinarySplit)==null?0:J.call(D))?_.t4(ITx,V):_.t4(OpU,V,n)};
UMd=function(V,D,f,n){if(M$n&&hcL===D)return M$n;hcL=D;var t=xMR(V,n);return M$n=D.feedbackV2GlobalObject?Promise.resolve(D.feedbackV2GlobalObject):new Promise(function(J,H){var Q=_.yh("SCRIPT");_.Yx(Q,t);Q.onload=function(){D.feedbackV2GlobalObject?J(D.feedbackV2GlobalObject):H(Error("kf"))};
Q.onerror=function(){H(Error("lf`"+t.toString()))};
f.body.appendChild(Q)})};
fUL=function(V,D,f,n){if(VTY&&DmY===D)return VTY;DmY=D;var t=xMR(V,n);return VTY=D.feedbackV2GlobalObject?Promise.resolve(D.feedbackV2GlobalObject):new Promise(function(J,H){var Q=_.yh("SCRIPT");_.Yx(Q,t);Q.onload=function(){D.feedbackV2GlobalObject?J(D.feedbackV2GlobalObject):H(Error("kf"))};
Q.onerror=function(){H(Error("lf`"+t.toString()))};
f.body.appendChild(Q)})};
nq9=function(V,D,f,n,t){t=t===void 0?!0:t;var J,H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:return J=Date.now(),_.b(Z,UMd(V,f,n,D),2);case 2:H=Z.yieldResult;if(!(t||((T=V.initializationData)==null?0:T.useNightlyRelease)||((y=V.initializationData)==null?0:y.isLocalServer))){Q=H.initializeFeedbackClient(V,J,D);Z.jumpTo(3);break}return _.b(Z,H.initializeFeedbackClientAsync(V,J,D),4);case 4:Q=Z.yieldResult;case 3:return Q.initiateAloha(),Z.return(Q)}})};
tTd=function(V,D,f,n){var t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return t=Date.now(),_.b(Q,fUL(V,f,n.document,D),2);if(Q.nextAddress!=3)return J=Q.yieldResult,_.b(Q,J.initializeFeedbackClientAsync(V,t,D,n),3);H=Q.yieldResult;H.initiateAloha();return Q.return(H)})};
PG3=function(V,D,f){var n=!0;n=n===void 0?!0:n;var t,J,H,Q,T,y,Z,l,G,F;return _.w(function(k){t=f||_.fx;if((J=D)==null?0:(Q=(H=J).getEnableAlohaBinarySplit)==null?0:Q.call(H)){T=t;if(T.isFormOpened)throw y=Error("mf"),y.name="DuplicateFormError",y;T.isFormOpened=!0;V.callbacks=V.callbacks||{};Z=V.callbacks.onClose||function(){};
V.callbacks.onClose=function(d){T.isFormOpened=!1;Z(d)};
try{return k.return(tTd(V,D,T,t))}catch(d){throw T.isFormOpened=!1,d;}}else{l=t;if(l.isFormOpened)throw G=Error("mf"),G.name="DuplicateFormError",G;l.isFormOpened=!0;V.callbacks=V.callbacks||{};F=V.callbacks.onClose||function(){};
V.callbacks.onClose=function(d){l.isFormOpened=!1;F(d)};
try{return k.return(nq9(V,D,l,t.document,n))}catch(d){throw l.isFormOpened=!1,d;}}_.yz(k)})};
wT3=function(V,D){return _.w(function(f){return f.return(new Promise(function(n){var t=oqZ(D!=null?D:"")+"/aloha_form_properties?productId="+V;Jin(t,function(J){J=J.target;var H=null;try{var Q=JSON,T=Q.stringify;if(J.JSC$7885_xhr_){var y=J.JSC$7885_xhr_.responseText;y.indexOf(")]}'\n")==0&&(y=y.substring(5));var Z=(0,_.ko)(y)}else Z=void 0;H=nrY(riL,T.call(Q,Z))}catch(l){T=new riL,Z=H8Z(),Z=_.sX(Z,13,!1),Z=_.sX(Z,14,!0),Z=_.sX(Z,15,!0),Z=_.sX(Z,20,!1),H=_.fc(T,1,Z)}n(H)},"GET","",{},2E3,!0)}))})};
oqZ=function(V){return pNx(V)?V:"https://www.google.com/tools/feedback"};
KjU=function(V){V=V.match(new RegExp(QiF,"gi"))||[];V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;a:{var f=_.r(THZ);for(var n=f.next();!n.done;n=f.next())if(n.value.test(D)){f=!1;break a}f=!0}if(!f)a:{f=_.r(b8L);for(n=f.next();!n.done;n=f.next())if(n.value.test(D)){f=!0;break a}f=!1}if(f)return!0}return!1};
yix=function(V){switch(V){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"}};
jiR=function(V){if(window.crypto&&window.crypto.getRandomValues)try{var D=Array(V),f=new Uint8Array(V);window.crypto.getRandomValues(f);for(var n=0;n<D.length;n++)D[n]=f[n];return D}catch(J){}D=Array(V);for(f=0;f<V;f++){n=Date.now();for(var t=0;t<n%23;t++)D[f]=Math.random();D[f]=Math.floor(Math.random()*256)}if(Z8Z)for(f=1,n=0;n<Z8Z.length;n++)D[f%V]^=D[(f-1)%V]/4^Z8Z.charCodeAt(n),f++;return D};
B8=function(V){V=jiR(V);for(var D=[],f=0;f<V.length;f++)D.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(V[f]&63));return D.join("")};
GG3=function(V){V&&_.dq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:lUZ,clientScreenNonce:V})};
eyY=function(V){return _.XB("client-screen-nonce-store",{})[V===void 0?0:V]};
ciR=function(V,D){D=D===void 0?0:D;var f=_.XB("client-screen-nonce-store");f||(f={},_.ql("client-screen-nonce-store",f));f[D]=V};
FjY=function(V){V=V===void 0?0:V;return V===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+V};
gqn=function(V){return _.XB(FjY(V===void 0?0:V))};
_.u8=function(V){return(V=gqn(V===void 0?0:V))?new _.d2({veType:V,youtubeData:void 0,jspbYoutubeData:void 0}):null};
vqx=function(){var V=_.XB("csn-to-ctt-auth-info");V||(V={},_.ql("csn-to-ctt-auth-info",V));return V};
kG9=function(){return Object.values(_.XB("client-screen-nonce-store",{})).filter(function(V){return V!==void 0})};
_.Ni=function(V){V=eyY(V===void 0?0:V);if(!V&&!_.EG("USE_CSN_FALLBACK",!0))return null;V||(V="UNDEFINED_CSN");return V?V:null};
BH9=function(V){for(var D=_.r(Object.values(siZ)),f=D.next();!f.done;f=D.next())if(_.Ni(f.value)===V)return!0;return!1};
dm9=function(V,D,f){var n=vqx();(f=_.Ni(f))&&delete n[f];D&&(n[V]=D)};
mI=function(V){return vqx()[V]};
_.zR=function(V,D,f,n){f=f===void 0?0:f;if(V!==eyY(f)||D!==_.XB(FjY(f)))if(dm9(V,n,f),ciR(V,f),_.ql(FjY(f),D),D=function(){setTimeout(function(){GG3(V)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(D)}catch(t){D()}else D()};
u6X=function(V,D){D=D===void 0?"":D;var f=[],n;for(n in V)if(V.hasOwnProperty(n)){var t=D!==""?D+"."+n:n;typeof V[n]==="object"?f.push.apply(f,_.sz(u6X(V[n],t))):f.push([t,V[n]])}f.sort();return f};
_.Cl=function(V){var D=_.gQ.apply(1,arguments);if(!Rb(V)||D.some(function(n){return!Rb(n)}))throw Error("nf");
D=_.r(D);for(var f=D.next();!f.done;f=D.next())NHY(V,f.value)};
NHY=function(V,D){for(var f in D)if(Rb(D[f])){if(f in V&&!Rb(V[f]))throw Error("of");f in V||(V[f]={});NHY(V[f],D[f])}else if(mmR(D[f])){if(f in V&&!mmR(V[f]))throw Error("pf");f in V||(V[f]=[]);zyZ(V[f],D[f])}else V[f]=D[f];return V};
zyZ=function(V,D){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,Rb(f)?V.push(NHY({},f)):mmR(f)?V.push(zyZ([],f)):V.push(f);return V};
Rb=function(V){return typeof V==="object"&&!Array.isArray(V)};
mmR=function(V){return typeof V==="object"&&Array.isArray(V)};
CGL=function(V){for(var D=_.r(Object.entries(Ryc)),f=D.next();!f.done;f=D.next())if(f=_.r(f.value),f.next(),f=f.next().value,f==="SLI_STATUS_"+V)return f;return"SLI_STATUS_UNKNOWN"};
_.qi=function(V,D,f,n){return q7L(V,D,function(){return new _.XTF(V,D,f,n)})};
_.Eq9=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
AiZ=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Xw=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
aU9=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Y7U=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
$mZ=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Wjn=function(V){V&&(V.dataset?V.dataset[i8R()]="true":_.iv([_.fi(S7Y)],V,"data-loaded","true".toString()))};
pT9=function(V){return V?V.dataset?V.dataset[i8R()]:V.getAttribute("data-loaded"):null};
i8R=function(){return LjR.loaded||(LjR.loaded="loaded".replace(/\-([a-z])/g,function(V,D){return D.toUpperCase()}))};
_.EX=function(V,D,f){IUd(V,D,f===void 0?null:f)};
_.xmF=function(V,D){V&&D&&(V=""+_.fo(D),(V=O89[V])&&_.hLn(V))};
IUd=function(V,D,f){f=f===void 0?null:f;var n=_.MT3(typeof V==="string"?V:V.toString()),t=document.getElementById(n),J=t&&pT9(t),H=t&&!J;J?D&&D():(D&&(J=_.tk(n,D),D=""+_.fo(D),O89[D]=J),H||(t=hyc(V,n,function(){pT9(t)||(Wjn(t),_.UZY(n),_.rO(function(){_.DAZ(n)},0))},f)))};
hyc=function(V,D,f,n){n=n===void 0?null:n;var t=_.yh("SCRIPT");t.id=D;t.onload=function(){f&&setTimeout(f,0)};
t.onreadystatechange=function(){switch(t.readyState){case "loaded":case "complete":t.onload()}};
n&&t.setAttribute("nonce",n);_.Yx(t,typeof V==="string"?_.vq(V):V);V=document.getElementsByTagName("head")[0]||document.body;V.insertBefore(t,V.firstChild);return t};
_.MT3=function(V){var D=document.createElement("a");se(D,V);return"js-"+Ae(D.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Um3=function(V){var D=_.XB("INNERTUBE_HOST_OVERRIDE");D&&(V=String(D)+String(_.ab(V)));return V};
VNn=function(V){var D={};_.c("json_condensed_response")&&(D.prettyPrint="false");return V=FiY(V,D)};
_.Yo=function(V){return hh(V)?"same-origin":"include"};
_.$o=function(V){return hh(V)?"same-origin":"cors"};
i8=function(V,D,f){f=f===void 0?{}:f;V={method:D===void 0?"POST":D,mode:_.$o(V),credentials:_.Yo(V)};D={};for(var n=_.r(Object.keys(f)),t=n.next();!t.done;t=n.next())t=t.value,f[t]&&(D[t]=f[t]);Object.keys(D).length>0&&(V.headers=D);return V};
_.W8=function(V,D){D=D===void 0?{}:D;return"service:"+V+"/"+Object.keys(D).sort().map(function(f){return f+":"+D[f]}).join("/")};
D7U=function(V){var D,f,n,t;V=(D=_.g(V,_.pl))==null?void 0:(f=D.watchEndpointSupportedOnesieConfig)==null?void 0:(n=f.html5PlaybackOnesieConfig)==null?void 0:(t=n.commonConfig)==null?void 0:t.url;if(!V)return[];D=new _.Ll(V);return D.JSC$8122_domain_?["https://"+D.JSC$8122_domain_+"/generate_204"]:[]};
_.tNY=function(){return fpc()||sbZ()||n1n&&z5("version/")?!0:_.XB("EOM_VISITOR_DATA")?!1:!0};
PT3=function(V){var D=V.docid||V.video_id||V.videoId||V.id;if(D)return D;D=V.raw_player_response;D||(V=V.player_response)&&(D=JSON.parse(V));return D&&D.videoDetails&&D.videoDetails.videoId||null};
o1Y=function(V){return V.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Ib=function(V){return!isNaN(Number(V))&&!_.Hn(V)};
_.xo=function(V,D,f,n){n=n===void 0?!0:n;var t=_.XB("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.xw(window.location.href);J&&t.push(J);J=_.xw(V);if(_.i3(t,J)||!J&&_.tc(V,"/"))if(t=document.createElement("a"),se(t,V),V=t.href)if(V=_.ab(V),V=_.OX(V))n&&!D.csn&&(D.itct||D.ved)&&(D=Object.assign({csn:_.Ni()},D)),f?(f=parseInt(f,10),isFinite(f)&&f>0&&Ju3(V,D,f)):Ju3(V,D)};
H$9=function(V){var D=_.XB("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=_.xw(window.location.href);f&&D.push(f);f=_.xw(V);if(!(_.i3(D,f)||!f&&_.tc(V,"/")))return null;V=_.ab(V);(V=_.OX(V))?(V=ruU(V),V=(V=_.ZY.get(V,void 0)||null)?_.W9(V):{}):V=null;return V};
Ju3=function(V,D,f){V=ruU(V);D=D?_.bE(D):"";f=f||5;_.tNY()&&_.j1(V,D,f)};
ruU=function(V){for(var D=_.r(wkx),f=D.next();!f.done;f=D.next())V=_.Mi(V,f.value);return"ST-"+Ae(V).toString(36)};
QH9=function(V,D){V.commandMetadata&&_.g(V.commandMetadata,_.he)&&_.g(V.commandMetadata,_.he).url&&(V=_.pZ(_.g(V.commandMetadata,_.he).url).adurl)&&_.viZ(V)&&_.xo(_.ab(V),{encoded_ad_playback_context:D})};
_.TAZ=function(V){if(V.requestFullscreen)V=V.requestFullscreen(void 0);else if(V.webkitRequestFullscreen)V=V.webkitRequestFullscreen();else if(V.mozRequestFullScreen)V=V.mozRequestFullScreen();else if(V.msRequestFullscreen)V=V.msRequestFullscreen();else if(V.webkitEnterFullscreen)V=V.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return V instanceof Promise?V:Promise.resolve()};
_.Vv=function(V){var D;_.axY(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.UX()==V&&(D=document):D=V;if(D&&(V=_.axY(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],D))){V.call(D)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.UX=function(){var V=V===void 0?!1:V;var D=_.axY(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(V)for(;D&&D.shadowRoot;)D=D.shadowRoot.fullscreenElement;return D?D:null};
_.Dl=function(V,D){D=D===void 0?!0:D;V.addEventListener("wheel",b$Y);V.overscrollConfig={cooldown:D}};
_.f6=function(V){V.overscrollConfig=void 0;V.removeEventListener("wheel",b$Y)};
b$Y=function(V){var D=V.deltaY,f=V.target,n=null;if(window.Polymer&&window.Polymer.Element){if(f=V.path||V.composedPath&&V.composedPath()){f=_.r(f);for(var t=f.next();!t.done&&(t=t.value,!K69(t,D));t=f.next())if(t.overscrollConfig){n=t;break}}}else for(;f&&!K69(f,D);){if(f.overscrollConfig){n=f;break}f=f.parentElement}n&&(D=n.overscrollConfig,D.cooldown?(n=V.deltaY,f=D.lastDeltaY||0,D.lastDeltaY=n,t=D.lastStopped||0,f&&t&&f>0==n>0?Math.abs(f)>=Math.abs(n)?(n=t+1200,f=!1):(n=t+600,f=!0):(n=Date.now()+
600,f=!0),n>Date.now()&&(V.preventDefault(),f&&(D.lastStopped=Date.now()))):V.preventDefault())};
K69=function(V,D){return D<0&&V.scrollTop>0||D>0&&V.scrollTop<V.scrollHeight-V.clientHeight-1?(V=getComputedStyle(V).overflowY,V=="auto"||V=="scroll"):!1};
_.PA=function(V,D,f,n){n||(n={bubbles:!0,cancelable:!1,composed:!0});f!==null&&f!==void 0&&(n.detail=f);var t=new CustomEvent(D,n);_.c("untrack_fire_custom_event_killswitch")?V.dispatchEvent(t):rc(function(){return void V.dispatchEvent(t)});
return t};
yuc=function(V){var D=window,f=function(n){D.removeEventListener("yt-navigate-start",f);return V.call(D,n)};
D.addEventListener("yt-navigate-start",f,void 0)};
_.o4=function(V,D,f,n){D=new Z$c(D,!(n===void 0||!n),f);_.PA(V,"yt-action",D);return D.returnValue};
_.JR=function(V,D,f){return _.o4(V,D,f,!0)};
_.rN=function(V,D,f){return _.o4(V,D,f)[0]};
_.wN=function(V,D,f,n){D&&D.length&&D.forEach(function(t){var J=EtY(t);J&&(_.c("handle_service_request_actions")&&t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.HA(f?f:V,[t]):_.JR(V,J,[t,f,n]))})};
_.HA=function(V,D){var f=[V];D&&f.push.apply(f,D);D=_.o4(V,"yt-service-request",f);return D.length>0&&(D=D[0],_.PA(V,"yt-service-request-sent",D),D&&D.ajaxPromise)?(D.ajaxPromise.then(function(n){_.PA(V,"yt-service-request-completed",n)},function(n){_.PA(V,"yt-service-request-error",{error:n,
params:f})},V),D.ajaxPromise):_.Qv()};
_.bC=function(V,D){if(_.c("handle_service_request_actions"))_.wN(D,V,D);else{V=_.r(V);for(var f=V.next();!f.done;f=V.next()){f=f.value;var n=void 0;((n=_.g(f,_.Tm))==null?0:n.commands)?_.bC(_.g(f,_.Tm).commands,D):(n=void 0,((n=_.g(f,_.K6))==null?0:n.actions)?_.bC(_.g(f,_.K6).actions,D):(n=void 0,((n=_.g(f.commandMetadata,_.he))==null?0:n.sendPost)?_.HA(D,[f]):_.wN(D,[f],D)))}}};
_.lpF=function(V,D,f){D=D===void 0?{}:D;typeof D==="function"&&(D={callback:D});f||D._c&&D._c.jsl&&D._c.jsl.h||_.sB.extend(D,{_c:{jsl:{h:_.XB("GAPI_HINT_PARAMS")}}});(D.gapiHintOverride||_.XB("GAPI_HINT_OVERRIDE"))&&(f=_.pZ(document.location.href).gapi_jsh)&&_.sB.extend(D,{_c:{jsl:{h:f}}});jHc(V,D)};
_.Zl=function(V,D,f){D=D===void 0?{}:D;V=(V=V in yv?yv[V]:f)||"";f={};for(var n in D){f={key$jscomp$794:f.key$jscomp$794};f.key$jscomp$794=n;var t=function(J){return function(){return String(D[J.key$jscomp$794])}}(f);
V=V.replace(new RegExp("\\$\\{"+f.key$jscomp$794+"\\}","gi"),t);V=V.replace(new RegExp("\\$"+f.key$jscomp$794,"gi"),t)}return V};
_.jJ=function(V,D){return Gg9(V in yv?yv[V]:{},D)};
Gg9=function(V,D){var f=_.XB("I18N_PLURAL_RULES");f||(f=function(n){return n==1?"one":"other"});
return(V=V["case"+D]||V[f(D)])?V.replace("#",D.toString()):D+""};
F69=function(V){var D=e4d(V),f=document.getElementById(D),n=f&&pT9(f);n||f&&!n||(f=cu3(V,D,function(){if(!pT9(f)){Wjn(f);_.UZY(D);var t=_.lC(_.DAZ,D);_.rO(t,0)}}))};
cu3=function(V,D,f){var n=document.createElement("link");n.id=D;n.onload=function(){f&&setTimeout(f,0)};
V=_.vq(V);_.So(n,V,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(n);return n};
e4d=function(V){var D=_.yh("A");se(D,bv(V));return"css-"+Ae(D.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.v1X=function(V){var D=g1Z();V!==D&&(D=_.Gm(),!_.c("web_autonav_allow_off_by_default")&&V||_.eJ(0,141,!0),_.eJ(0,140,!V),D.save())};
g1Z=function(){var V=_.Gm();return _.c("web_autonav_allow_off_by_default")&&!V.getFlag(141)&&_.XB("AUTONAV_OFF_BY_DEFAULT")?!1:!V.getFlag(140)};
kgL=function(V,D){var f,n;V=((f=V.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(n=f.videoAuthorizationToken)==null?void 0:n.credentialTransferTokens)||[];for(f=0;f<V.length;++f)if(V[f].scope===D)return V[f].token||void 0};
sH9=function(V){for(var D=0,f=0;f<V.length;f++)D=D*31+V.charCodeAt(f),f<V.length-1&&(D%=0x800000000000);return D%1E5};
_.cA=function(V){return _.Yw("ytcsi."+(V||"")+"data_")||BAR(V)};
_.d73=function(V){V=_.cA(V);V.metadata||(V.metadata={});return V.metadata};
_.uuL=function(V){V=_.cA(V);V.tick||(V.tick={});return V.tick};
_.FQ=function(V){V=_.cA(V);if(V.gel){var D=V.gel;D.gelInfos||(D.gelInfos={});D.gelTicks||(D.gelTicks={})}else V.gel={gelTicks:{},gelInfos:{}};return V.gel};
_.NAF=function(V){V=_.FQ(V);V.gelInfos||(V.gelInfos={});return V.gelInfos};
m7Y=function(V){var D=_.cA(V).nonce;D||(D=B8(16),_.cA(V).nonce=D);return D};
BAR=function(V){var D={tick:{},info:{}};_.M4("ytcsi."+(V||"")+"data_",D);return D};
z4d=function(){var V=_.Yw("ytcsi.debug");V||(V=[],_.M4("ytcsi.debug",V),_.M4("ytcsi.reference",{}));return V};
_.gN=function(V){V=V||"";var D=R4U();if(D[V])return D[V];var f=z4d(),n={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};f.push(n);return D[V]=n};
CTd=function(V){V=V||"";var D=R4U();D[V]&&delete D[V];var f=z4d(),n={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};f.push(n);D[V]=n};
R4U=function(){var V=_.Yw("ytcsi.reference");if(V)return V;z4d();return _.Yw("ytcsi.reference")};
_.XkL=function(V){return qyY[V]||"LATENCY_ACTION_UNKNOWN"};
YyU=function(V,D,f){f=f===void 0?{}:f;var n=!1;_.EG("ytLoggingEventsDefaultDisabled",!1)&&(n=!0);n=n?null:B2;f=f===void 0?{}:f;var t=Math.round(f.timestamp||(0,_.VW)());_.c2(D,1,t<Number.MAX_SAFE_INTEGER?t:0);t=new E1Y;if(f.lact)_.c2(t,1,isFinite(f.lact)?f.lact:-1);else if(f.timestamp)_.c2(t,1,-1);else{var J=_.Vf();_.c2(t,1,isFinite(J)?J:-1)}if(f.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")){J=f.sequenceGroup;var H=Q5Z(J),Q=new AuX;_.c2(Q,2,H);_.lB(Q,1,J);_.fc(t,3,Q);f.endOfSequence&&delete ap3[f.sequenceGroup]}_.fc(D,
33,t);(f.sendIsolatedPayload?jUR:lvd)(V,{endpoint:"log_event",payload:D,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},n)};
_.k8=function(){return(_.c("csi_use_time_origin")||_.c("csi_use_time_origin_tvhtml5"))&&_.vA.timeOrigin?Math.floor(_.vA.timeOrigin):_.vA.timing.navigationStart};
_.$7U=function(V,D){_.s2("_start",V,D)};
_.BA=function(V,D){if(!_.c("web_csi_action_sampling_enabled")||!_.cA(D).actionDisabled){var f=_.gN(D||"");_.Cl(f.info,V);V.loadType&&(f=V.loadType,_.d73(D).loadType=f);_.Cl(_.NAF(D),V);f=m7Y(D);D=_.cA(D).cttAuthInfo;i$X().info(V,f,D)}};
SyZ=function(){var V,D,f,n;return((n=_.DY().resolve(_.Vx(v2))==null?void 0:(V=wrX())==null?void 0:(D=V.loggingHotConfig)==null?void 0:(f=D.csiConfig)==null?void 0:f.debugTicks)!=null?n:[]).map(function(t){return Object.values(t)[0]})};
_.s2=function(V,D,f){if(!_.c("web_csi_action_sampling_enabled")||!_.cA(f).actionDisabled){var n=m7Y(f),t;if(t=_.c("web_csi_debug_sample_enabled")&&n){(_.DY().resolve(_.Vx(v2))==null?0:wrX())&&!W6x&&(W6x=!0,_.s2("gcfl",(0,_.VW)(),f));var J,H,Q;t=(_.DY().resolve(_.Vx(v2))==null?void 0:(J=wrX())==null?void 0:(H=J.loggingHotConfig)==null?void 0:(Q=H.csiConfig)==null?void 0:Q.debugSampleWeight)||0;if(J=t!==0)b:{J=SyZ();if(J.length>0)for(H=0;H<J.length;H++)if(V===J[H]){J=!0;break b}J=!1}J?(t=sH9(n)%t!==
0,_.cA(f).debugTicksExcludedLogged||(J={},J.debugTicksExcluded=t,_.BA(J,f)),_.cA(f).debugTicksExcludedLogged=!0):t=!1}if(!t){V[0]!=="_"&&pk9(V,f,D);t=_.gN(f||"");t.tick[V]=D||(0,_.VW)();if(t.callback&&t.callback[V])for(t=_.r(t.callback[V]),J=t.next();!J.done;J=t.next())J=J.value,J();t=_.FQ(f);t.gelTicks&&(t.gelTicks[V]=!0);J=_.uuL(f);t=D||(0,_.VW)();_.c("log_repeated_ytcsi_ticks")?V in J||(J[V]=t):J[V]=t;J=_.cA(f).cttAuthInfo;V==="_start"?i$X().baseline(n,D,J):i$X().tick(V,n,D,J);_.L69(f);return t}}};
pk9=function(V,D,f){if(_.vA.mark)if(V.startsWith("mark_")||(V="mark_"+V),D&&(V+=" ("+D+")"),f===void 0||_.c("web_csi_disable_alt_time_performance_mark"))_.vA.mark(V);else{f=_.c("csi_use_performance_navigation_timing")?f-_.vA.timeOrigin:f-(_.vA.timeOrigin||_.vA.timing.navigationStart);try{_.vA.mark(V,{startTime:f})}catch(n){}}};
IpY=function(){var V,D=(V=_.vA.getEntriesByType)==null?void 0:V.call(_.vA,"mark");D&&D.forEach(function(f){if(f.name.startsWith("mark_")){var n;(n=_.vA.clearMarks)==null||n.call(_.vA,f.name)}})};
_.O$U=function(){switch(APF()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.x7x=function(V){var D={},f=function(J,H,Q){H=H.match("_rid")?H.split("_rid")[0]:H;typeof Q==="number"&&(Q=JSON.stringify(Q));J.requestIds?J.requestIds.push({endpoint:H,id:Q}):J.requestIds=[{endpoint:H,id:Q}]};
V=_.r(Object.entries(V));for(var n=V.next();!n.done;n=V.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;switch(n){case "GetBrowse_rid":f(D,n,t);break;case "GetGuide_rid":f(D,n,t);break;case "GetHome_rid":f(D,n,t);break;case "GetPlayer_rid":f(D,n,t);break;case "GetSearch_rid":f(D,n,t);break;case "GetSettings_rid":f(D,n,t);break;case "GetTrending_rid":f(D,n,t);break;case "GetWatchNext_rid":f(D,n,t);break;case "yt_red":D.isRedSubscriber=!!t;break;case "yt_ad":D.isMonetized=!!t}}return D};
h4Y=function(V,D,f,n,t,J){if(!_.c("web_csi_action_sampling_enabled")||!_.cA(J).actionDisabled){var H=_.FQ(J);if(H.gelSpans)H.gelSpans[V]=!0;else{var Q={};H.gelSpans=(Q[V]=!0,Q)}MNU++;V={spanName:V,spanLengthUsec:String(Math.round(D*1E3)),spanNonce:MNU};n&&(V.spanInfo=n);t&&(V.parentSpanNonce=t);f&&(V.spanStartTimeUsec=String(Math.round(f*1E3)));_.gN(J||"").span[String(V.spanName)]=V;f=_.FQ(J);f.gelSpans||(f.gelSpans={});_.Cl(f.gelSpans,V);f=m7Y(J);J=_.cA(J).cttAuthInfo;i$X().span(V,f,J);return V.spanNonce}};
_.U7X=function(V){var D=_.dN("aft",V);if(D)return D;D=_.XB((V||"")+"TIMING_AFT_KEYS",["ol"]);for(var f=D.length,n=0;n<f;n++){var t=_.dN(D[n],V);if(t)return t}return NaN};
_.VhR=function(V,D){_.M4("ytglobal.timing"+(D||"")+"ready_",V)};
_.dN=function(V,D){if(V=_.uuL(D)[V])return typeof V==="number"?V:V[V.length-1]};
_.L69=function(V){var D=_.dN("_start",V),f=_.U7X(V),n=!DQ9;D&&f&&n&&(Tgc(fBR,new nGX(Math.round(f-D),V)),DQ9=!0)};
PiZ=function(V){BAR(V);th9();IpY();V||(_.XB("TIMING_ACTION")&&_.ql("PREVIOUS_ACTION",_.XB("TIMING_ACTION")),_.ql("TIMING_ACTION",""))};
_.oGd=function(V){V=V===void 0?{}:V;_.a9(function(){uC();CTd();PiZ();_.VhR(!1);V.cttAuthInfo&&(_.cA().cttAuthInfo=V.cttAuthInfo);_.ql("TIMING_AFT_KEYS",[]);V.isHot?_.N1({loadType:"hot"}):_.N1({loadType:"warm"});_.ql("TIMING_ACTION","");delete _.XB("TIMING_INFO",{}).yt_lt;_.a9(_.$7U)(V.startTime,void 0)})()};
_.mg=function(V,D,f,n){D=D===void 0?{}:D;_.a9(function(){var t=f?f:V;J_F(t);var J=D.sampleRate;if(!_.c("web_csi_action_sampling_enabled")||J===void 0||J<=1)J=!1;else{var H=m7Y(t);J=sH9(H)%J!==0}J&&(_.cA(t).actionDisabled=!0);_.gN(t||"").info.actionType=V;D.cttAuthInfo&&(_.cA(t).cttAuthInfo=D.cttAuthInfo);_.ql(t+"TIMING_ACTION",V);_.a9(_.$7U)(D.startTime,t);J={actionType:n||_.XkL(V)};D.logPreviousAction&&(J.previousAction=_.XkL(_.XB("TIMING_ACTION")));(H=_.Ni())&&H!=="UNDEFINED_CSN"&&(J.clientScreenNonce=
H);_.N1(J,t);_.VhR(!0,t)})()};
J_F=function(V){_.a9(function(){uC(V);CTd(V);PiZ(V)})()};
r_Y=function(){_.a9(function(){var V=[],D;for(D in _.Yw("ytcsi.".slice(0,-1)))D.endsWith("data_")&&V.push(D.slice(0,-5));V=_.r(V);for(D=V.next();!D.done;D=V.next())J_F(D.value);uC()})()};
_.wE9=function(V){return _.a9(function(){return _.HnZ("_start",V)})()};
_.N1=function(V,D,f){_.a9(_.BA)(V,D,f===void 0?!1:f)};
_.zm=function(V,D,f){return _.a9(_.s2)(V,D,f)};
_.HnZ=function(V,D){return _.a9(function(){var f=_.uuL(D);return V in f})()};
Tlc=function(V){if(!_.c("universal_csi_network_ticks"))return"";V=_.Qx(V)||"";for(var D=Object.keys(QcL),f=0;f<D.length;f++){var n=D[f];if(V.includes(n))return n}return""};
KSZ=function(V){if(!_.c("universal_csi_network_ticks"))return function(){};
var D=QcL[V];return D?(_.R4(D),function(){var f=_.c("universal_csi_network_ticks")?(f=bnF[V])?_.R4(f):!1:!1;return f}):function(){}};
_.R4=function(V,D,f){return _.a9(function(){if(_.HnZ(V,f))return!1;_.zm(V,D,f);return!0})()};
_.C6=function(V,D,f){_.a9(function(){if(!_.wE9(f)||_.HnZ(V,f))return!1;_.zm(V,D,f);return!0})()};
_.q1=function(V){return _.a9(_.dN)(V,void 0)};
uC=function(V){_.wE9(V)&&_.zm("aa",void 0,V)};
_.GwR=function(V,D,f,n,t,J,H,Q,T){var y=y_Z();Q=new _.d2({veType:D,youtubeData:J,jspbYoutubeData:Q});J=XQ({},y);t&&(J.cttAuthInfo=t);t={csn:y,pageVe:Q.getAsJson()};_.c("expectation_logging")&&T&&T.screenCreatedLoggingExpectations&&(t.screenCreatedLoggingExpectations=T.screenCreatedLoggingExpectations);f&&f.visualElement?(t.implicitGesture={parentCsn:f.clientScreenNonce,gesturedVe:f.visualElement.getAsJson()},H&&(t.implicitGesture.gestureType=H)):f&&_.zP(new _.cI("newScreen() parent element does not have a VE - rootVe",
D));n&&(t.cloneCsn=n);V?sq("screenCreated",t,V,J):_.dq("screenCreated",t,J);Tgc(Gq9,new ZnU(y));E2.clear();jcc.clear();lBZ.clear();return y};
AR=function(V,D,f,n,t,J){J=J===void 0?{}:J;eYU(V,D,f,[n],t===void 0?!1:t,J)};
eYU=function(V,D,f,n,t,J){t=t===void 0?!1:t;J=J===void 0?{}:J;Object.assign(J,XQ({cttAuthInfo:mI(D)||void 0},D));for(var H=_.r(n),Q=H.next();!Q.done;Q=H.next()){Q=Q.value;var T=Q.getAsJson();(_.sB.isEmpty(T)||!T.trackingParams&&!T.veType)&&_.zP(Error("zf"));if(_.c("no_client_ve_attach_unless_shown")){var y=c_n(Q,D);if(T.veType&&!jcc.has(y)&&!lBZ.has(y)&&!t){if(!_.c("il_attach_cache_limit")||E2.size<1E3){E2.set(y,[V,D,f,Q]);return}_.c("il_attach_cache_limit")&&E2.size>1E3&&_.zP(new _.cI("IL Attach cache exceeded limit"))}Q=
c_n(f,D);E2.has(Q)?FSF(f,D):lBZ.set(Q,!0)}}n=n.filter(function(Z){Z.csn!==D?(Z.csn=D,Z=!0):Z=!1;return Z});
f={csn:D,parentVe:f.getAsJson(),childVes:_.dw(n,function(Z){return Z.getAsJson()})};
D==="UNDEFINED_CSN"?a4("visualElementAttached",J,f):V?sq("visualElementAttached",f,V,J):_.dq("visualElementAttached",f,J)};
vGR=function(V,D,f,n,t){gGZ(V,D,f,t)};
gGZ=function(V,D,f,n){kwd(f,D);var t=XQ({cttAuthInfo:mI(D)||void 0},D);f={csn:D,ve:f.getAsJson(),eventType:1};n&&(f.clientData=n);D==="UNDEFINED_CSN"?a4("visualElementShown",t,f):V?sq("visualElementShown",f,V,t):_.dq("visualElementShown",f,t)};
scY=function(V,D,f,n){kwd(f,D);var t=XQ({cttAuthInfo:mI(D)||void 0},D);f={csn:D,ve:f.getAsJson(),eventType:4};n&&(f.clientData=n);D==="UNDEFINED_CSN"?a4("visualElementShown",t,f):V?sq("visualElementShown",f,V,t):_.dq("visualElementShown",f,t)};
BlZ=function(V,D,f,n,t){var J=(n=n===void 0?!1:n)?16:8;n=XQ({cttAuthInfo:mI(D)||void 0,endOfSequence:n},D);f={csn:D,ve:f.getAsJson(),eventType:J};t&&(f.clientData=t);D==="UNDEFINED_CSN"?a4("visualElementHidden",n,f):V?sq("visualElementHidden",f,V,n):_.dq("visualElementHidden",f,n)};
uk9=function(V,D,f,n,t){dQn(V,D,f,void 0,n,t)};
dQn=function(V,D,f,n,t){kwd(f,D);n=n||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var J=XQ({cttAuthInfo:mI(D)||void 0},D);f={csn:D,ve:f.getAsJson(),gestureType:n};t&&(f.clientData=t);D==="UNDEFINED_CSN"?a4("visualElementGestured",J,f):V?sq("visualElementGestured",f,V,J):_.dq("visualElementGestured",f,J)};
Nl9=function(V,D,f,n){var t=XQ({cttAuthInfo:mI(D)||void 0},D);f={csn:D,ve:f.getAsJson(),clientData:n};D==="UNDEFINED_CSN"?a4("visualElementStateChanged",t,f):V?sq("visualElementStateChanged",f,V,t):_.dq("visualElementStateChanged",f,t)};
mQX=function(){var V=jiR(16);for(var D=[],f=0;f<V.length;f++)D.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(V[f]&63));return D.join("")};
a4=function(V,D,f){zYc.push({payloadName:V,payload:f,jspbPayload:void 0,options:D});RYd||(RYd=cOd())};
lH9=function(V){if(zYc){for(var D=_.r(zYc),f=D.next();!f.done;f=D.next())f=f.value,f.payload&&(f.payload.csn=V.csn,_.dq(f.payloadName,f.payload,f.options));zYc.length=0}RYd=0};
c_n=function(V,D){return""+V.getAsJson().veType+V.getAsJson().veCounter+D};
kwd=function(V,D){if(_.c("no_client_ve_attach_unless_shown")){var f=c_n(V,D);jcc.set(f,!0);FSF(V,D)}};
FSF=function(V,D){V=c_n(V,D);E2.has(V)&&(D=E2.get(V)||[],AR(D[0],D[1],D[2],D[3],!0),E2.delete(V))};
XQ=function(V,D){_.c("log_sequence_info_on_gel_web")&&(V.sequenceGroup=D);return V};
_.Y8=function(V,D,f){_.a9(AR)(void 0,V,D,f)};
_.$8=function(V,D,f){_.a9(eYU)(void 0,V,D,f)};
_.iC=function(V,D){_.a9(vGR)(void 0,V,D,void 0,void 0,void 0)};
_.SJ=function(V,D,f){_.a9(function(){_.Sd(D,function(n){scY(void 0,V,n,f)})})()};
_.WA=function(V,D,f,n){_.a9(function(){_.Sd(D,function(t){BlZ(void 0,V,t,f,n)})})()};
_.p6=function(V,D,f){_.a9(uk9)(void 0,V,D,f,void 0)};
_.L6=function(V,D,f,n){_.a9(dQn)(void 0,V,D,f,n,void 0)};
_.I4=function(V,D,f){_.a9(Nl9)(void 0,V,D,f,void 0)};
CiL=function(V,D){O2.set(V,D)};
qj9=function(V){return x8?x8.enabledSpans?!!x8.enabledSpans[V]:!0:!1};
XEL=function(V){if(!x8)throw Error("Cf");x8.processors.push(V)};
EGY=function(V,D){if(V){D=D===void 0?1:D;if(V&&(V.endTime=performance.now(),D&&(V.status=D),D=x8)){D=_.r(D.processors);for(var f=D.next();!f.done;f=D.next()){var n=void 0,t=void 0;(t=(n=f.value).onSpanEnd)==null||t.call(n,V)}}if(D=x8){if(V!==D.activeSpan)throw Error("Df");var J;D.activeSpan=(J=D.activeSpan)==null?void 0:J.parent}}};
A_Z=function(V,D,f){var n;if((n=x8)&&qj9(V)){var t=n.nextSpanId++,J=n.activeSpan;V={id:t,parent:J,name:V,attributes:D,traceId:J?J.traceId:t,sessionId:n.sessionId,startTime:performance.now(),status:0};if(n.activeSpan){var H;(H=n.activeSpan).children||(H.children=[]);n.activeSpan.children.push(V)}n=_.r(n.processors);for(H=n.next();!H.done;H=n.next())t=D=void 0,(t=(D=H.value).onSpanStart)==null||t.call(D,V);n=V}else n=void 0;V=x8;n=n&&V?V.activeSpan=n:void 0;if(!n)return f();try{var Q=f(n);EGY(n);return Q}catch(T){throw EGY(n,
2),T;}};
aBX=function(V,D){var f=Object.keys(V);V=new _.cI("[Command Handler] "+D,{filteredCommandNames:f,originalCommand:V});_.NG(V)};
Yjn=function(V,D){aBX(V,D+" was called but not set")};
$Q3=function(V){return function(){return new V}};
M1=function(V){return function(){return _.DY().resolve(V)}};
ind=function(V,D){var f=_.g(V,_.Eq);if(f&&(f=D[f.signal]))return f();V=_.r(Object.keys(V));for(f=V.next();!f.done;f=V.next())if(f=f.value,D[f]&&(f=D[f]))return f()};
hR=function(V,D,f,n){return{browseEndpoint:{browseId:V},commandMetadata:{webCommandMetadata:{url:D,rootVe:f,webPageType:n===void 0?"WEB_PAGE_TYPE_BROWSE":n}}}};
SjR=function(V,D,f){var n=D=D===void 0?0:D;f=f===void 0?0:f;var t=f-n;return _.U2(V,"PPSV",void 0,void 0,(t>600?0:t<60||f<=0||n/f>.9)?0:D)};
_.U2=function(V,D,f,n,t){var J="/watch?v="+V;V={videoId:V};D&&(V.playlistId=D,J+="&list="+D);n&&(J+="&pp="+n);t&&(V.startTimeSeconds=t,J+="&t="+t+"s");D={watchEndpoint:V,commandMetadata:{webCommandMetadata:{url:J,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};f&&(D.clickTrackingParams=f);n&&(_.g(D,_.pl).playerParams=n);return D};
WSY=function(V){return{browseEndpoint:{browseId:"VL"+V},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+V,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
pEY=function(V){if(V){var D;if(V){var f=(D=_.g(V.commandMetadata,_.he))==null?void 0:D.url;D=!(!f||f==="/service_ajax")}else D=!1;if(D)return V;var n;if(V=(n=_.g(V,_.Tm))==null?void 0:n.commands)for(n=_.r(V),V=n.next();!V.done;V=n.next())if(V=pEY(V.value))return V}};
_.Vc=function(V){return{runs:[{text:V}]}};
LSZ=function(V,D){return V&&D?{runs:[{text:V,navigationEndpoint:D}]}:void 0};
DH=function(V){return V?_.Vc(V):void 0};
_.fA=function(V){return V?{simpleText:V}:void 0};
_.nA=function(V){var D=V.type;V=V.payload;D={type:D};V!==void 0&&(D.payload=V);return D};
IBU=function(V,D,f){for(var n=Object.assign({},V),t=_.r(Object.keys(D)),J=t.next();!J.done;J=t.next()){J=J.value;var H=V[J],Q=D[J];if(Q===void 0)delete n[J];else if(H===void 0)n[J]=Q;else if(Array.isArray(Q)&&Array.isArray(H))n[J]=f?[].concat(_.sz(H),_.sz(Q)):Q;else if(!Array.isArray(Q)&&_.VV(Q)&&!Array.isArray(H)&&_.VV(H))n[J]=IBU(H,Q,f);else if(typeof Q===typeof H)n[J]=Q;else return D=new _.cI("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,originalValue:H,updateValue:Q}),
_.NG(D),V}return n};
MhY=function(V){if(!V.length)return"";try{if(Onx)return Onx.decode(V);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(V)}catch(H){}for(var D=0,f=[],n=V.length;D<n;){for(var t=0;t<1024&&D<n;){var J=V[D++];if(J<128)xQd[t++]=J;else{if(J<224)J=(J&31)<<6|V[D++]&63;else if(J<240)J=(J&15)<<12|(V[D++]&63)<<6|V[D++]&63;else{if(t+1===1024){--D;break}J=(J&7)<<18|(V[D++]&63)<<12|(V[D++]&63)<<6|V[D++]&63;J-=65536;xQd[t++]=55296|J>>10;J=56320|J&1023}xQd[t++]=J}}J=String.fromCharCode.apply(String,
xQd);t<1024&&(J=J.substring(0,t));f.push(J)}return f.join("")};
UQU=function(V,D){var f;if((f=hYn)==null?0:f.encodeInto)return D=hYn.encodeInto(V,D),D.read<V.length?V.length*4:D.written;for(var n=f=0;n<V.length;n++){var t=V.charCodeAt(n);t<128?D[f++]=t:(t<2048?D[f++]=t>>6|192:((t&64512)===55296&&n+1<V.length&&(V.charCodeAt(n+1)&64512)===56320?(t=65536+((t&1023)<<10)+(V.charCodeAt(++n)&1023),D[f++]=t>>18|240,D[f++]=t>>12&63|128):D[f++]=t>>12|224,D[f++]=t>>6&63|128),D[f++]=t&63|128)}return f};
Vq9=function(V,D){V=new Uint8Array(V);D&&V.set(D);return V};
_.PR=function(V){V=new DWL(new fAx([_.rP(decodeURIComponent(V))]));if(n9d(V,2)){var D=tO(V);var f=V.pos;var n=V.arrayView;f=f===void 0?0:f;var t=D===void 0?-1:D;f=f===void 0?0:f;t=t===void 0?-1:t;if(n.totalLength&&t){t<0&&(t=n.totalLength-f);n.focus(f);if(!(f-n.arrayPos+t<=n.arrays[n.arrayIdx].length)){var J=n.arrayIdx,H=n.arrayPos;n.focus(f+t-1);H=new Uint8Array(n.arrayPos+n.arrays[n.arrayIdx].length-H);for(var Q=0,T=J;T<=n.arrayIdx;T++)H.set(n.arrays[T],Q),Q+=n.arrays[T].length;n.arrays.splice(J,
n.arrayIdx-J+1,H);n.arrayIdx=0;n.arrayPos=0;n.focus(f)}J=n.arrays[n.arrayIdx];n=new DataView(J.buffer,J.byteOffset+f-n.arrayPos,t)}else n=new DataView(new ArrayBuffer(0));n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);V.pos+=D;D=n}else D=void 0;D=D?MhY(D):void 0;V=n9d(V,4)?tO(V):void 0;n=tqx[V];if(typeof n==="undefined")throw V=new _.cI("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:V}),_.NG(V),V;return{entityTypeFieldNumber:V,entityType:n,entityId:D}};
_.HR=function(V,D,f){f=f===void 0?0:f;var n=new PyY;if(hYn)V=hYn.encode(V);else{var t=new Uint8Array(Math.ceil(V.length*1.2)),J=UQU(V,t);t.length<J&&(t=new Uint8Array(J),J=UQU(V,t));t.length>J&&(t=t.subarray(0,J));V=t}V!==void 0&&(oW(n,18),t=V.length,oW(n,t),JO(n,t),n.buf.set(V,n.pos),n.pos+=t);V=o9Y[D];if(typeof V==="undefined")throw f=new _.cI("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:D}),_.NG(f),f;V!==void 0&&(oW(n,32),oW(n,V));oW(n,40);oW(n,1);D=new Uint8Array(n.buf.buffer,
n.buf.byteOffset,n.pos);return encodeURIComponent(_.V3(D,f))};
Jb3=function(V){V=V.key||V.id;if(!V)throw Error("Ef");return V};
HNn=function(V,D){V=V===void 0?{}:V;return rbU(V,D)};
wy9=function(V,D,f,n){if(n===void 0)return n=Object.assign({},V[D]||{}),f=(delete n[f],n),n={},Object.assign({},V,(n[D]=f,n));var t={},J={};return Object.assign({},V,(J[D]=Object.assign({},V[D],(t[f]=n,t)),J))};
Qa3=function(V,D,f,n,t){var J=V[D];if(J==null||!J[f])return V;n=IBU(J[f],n,t==="REPEATED_FIELDS_MERGE_OPTION_APPEND");t={};J={};return Object.assign({},V,(J[D]=Object.assign({},V[D],(t[f]=n,t)),J))};
_.wg=function(V,D,f){return V[D]?V[D][f]||null:null};
bNR=function(){if(Toc)return Toc();var V={};Toc=Ub("PersistentEntityStoreDb",{objectStores:(V.EntityStore={addedAtVersion:1},V.EntityAssociationStore={addedAtVersion:2},V),shared:!1,upgrade:function(D,f){f(1)&&AB(Ei(D,"EntityStore",{keyPath:"key"}),"entityType","entityType");f(2)&&(D=Ei(D,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),AB(D,"byParentEntityKey","parentEntityKey"),AB(D,"byChildEntityKey","childEntityKey"))},
version:3});return Toc()};
K4c=function(V){return _.iE(bNR(),V)};
Qc=function(V){return window.Int32Array?new Int32Array(V):Array(V)};
ZNR=function(V){return _.iE(ybd(),V)};
jaZ=function(V){return new Tq("WRONG_DATA_TYPE",{encoderVersion:V})};
lAx=function(V){return V instanceof Error?new Tq("UNKNOWN_ENCODE_ERROR",{originalMessage:V.message}):new Tq("UNKNOWN_ENCODE_ERROR")};
Gz9=function(V){return V instanceof Error?new Tq("UNKNOWN_DECODE_ERROR",{originalMessage:V.message}):new Tq("UNKNOWN_DECODE_ERROR")};
eNx=function(V,D){V=V instanceof Tq?V:D(V);_.NG(V);throw V;};
cbn=function(V){V=(new TextEncoder).encode(V).subarray(0,16);var D=new Uint8Array(16);D.set(V);return D};
g9c=function(V){var D=F4L[V];if(D)return D;_.zP(new _.cI("Entity model not found.",{entityType:V}))};
_.bR=function(){v9F||(v9F=kzc());return v9F};
kzc=function(){var V,D,f;return _.w(function(n){if(n.nextAddress==1)return _.wx(n,2),_.b(n,_.hU(),4);if(n.nextAddress!=2){V=n.yieldResult;if(!V||!_.e1()||typeof _.fx.BroadcastChannel==="undefined")return n.return();D=new sac;return n.return(new KA(V,D))}f=_.KW(n);f instanceof Error&&_.NG(f);return n.return()})};
_.yc=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1){f=V.mutations;if(!f||f.length<=0)return n.return();D&&D.dispatch(_.nA({type:"ENTITY_LOADED",payload:f}));return _.b(n,Box(f),2)}f.length=0;_.yz(n)})};
Box=function(V){var D;return _.w(function(f){return f.nextAddress==1?_.b(f,_.bR(),2):(D=f.yieldResult)?_.b(f,_.ZH(D,"readwrite",function(n){for(var t={},J=_.r(V),H=J.next(),Q={};!H.done;Q={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},H=J.next())Q.mutation$jscomp$4=H.value,Q.mutation$jscomp$4.entityKey&&dW9(Q.mutation$jscomp$4)&&(Q.mutationEntityType$jscomp$3=(0,_.sB.getAnyKey)(Q.mutation$jscomp$4.payload),H=void 0,Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(H=function(T){return function(){return _.uLF(n,
T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(Q)),Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(H=function(T){return function(){return NoY(n,T.mutation$jscomp$4.entityKey)}}(Q)),Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(H=function(T){return function(){return mWY(n,T.mutation$jscomp$4.entityKey,T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(Q)),H&&(t[Q.mutation$jscomp$4.entityKey]=
t[Q.mutation$jscomp$4.entityKey]?t[Q.mutation$jscomp$4.entityKey].then(H):H()));
return XT.all(Object.values(t))}),0):f.return()})};
dW9=function(V){var D;V=(D=V.options)==null?void 0:D.persistenceOption;return V==="ENTITY_PERSISTENCE_OPTION_PERSIST"||V==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Cyn=function(V,D){var f,n;_.w(function(t){if(t.nextAddress==1)return _.b(t,_.bR(),2);if(t.nextAddress!=3)return(f=t.yieldResult)?_.b(t,_.ZH(f,"readonly",function(J){var H={},Q=Object.keys(D).map(function(T){var y=D[T]?[].concat(_.sz(D[T])):[];return zNL(J,T,y,H)});
return XT.all(Q).then(function(){return H})}),3):t.return();
n=t.yieldResult;Object.keys(n).length>0&&V.dispatch(RNL(n));_.yz(t)})};
zNL=function(V,D,f,n){return js(V,D,f).then(function(t){n[D]=qDX(f,t)})};
qDX=function(V,D){if(D.length!==V.length)throw Error("Hf");return D.reduce(function(f,n,t){f[V[t]]=n;return f},{})};
AbX=function(V){var D=V.filter(function(t){var J;return(t==null?void 0:(J=t.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_COMPLETE"}).length,f=V.filter(function(t){var J;
return(t==null?void 0:(J=t.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_FAILED"}).length,n=V.filter(function(t){var J;
return(t==null?void 0:(J=t.transferEntity)==null?void 0:J.transferState)&&XyR.includes(t.transferEntity.transferState)});
if(!(D||n!=null&&n.length))return 0;D=_.E9L(n)+D;V=V.length-f;return V===0?0:Math.round(D*100/V)/100};
_.E9L=function(V){var D=[];D=D.concat.apply(D,_.sz(V.filter(function(J){return J.streamEntity}).map(function(J){var H=Object.assign({},J.streamEntity),Q,T=(Q=J.transferEntity)==null?void 0:Q.transferState;
H.streamsProgress=H.streamsProgress||[];H.streamsProgress=H.streamsProgress.map(function(y){var Z=Object.assign({},y);Z.numBytesDownloaded=T==="TRANSFER_STATE_COMPLETE"?y.numTotalBytes:y.numBytesDownloaded;return Z});
return H}).map(function(J){return J.streamsProgress})));
var f=V=0;D=_.r(D);for(var n=D.next();!n.done;n=D.next()){var t=n.value;n=Number(t.numBytesDownloaded);t=Number(t.numTotalBytes);f+=isNaN(n)?0:n;V+=isNaN(t)?0:t}return V===0?0:Math.round(f*100/V)/100};
aAd=function(V){if(!V||!V.expirationTimestamp||!V.action)return!1;var D=(0,_.VW)()/1E3;return Number(V.expirationTimestamp)>=D};
lR=function(V){return V&&V.expirationTimestamp&&V.action?aAd(V)&&V.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Gq=function(V){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(V||"TRANSFER_STATE_UNKNOWN")};
YDn=function(V){var D=new PyY;if(V!==void 0){var f=Math.ceil(Math.log2(V.length*4+2)/7);f=f===void 0?2:f;oW(D,10);D.submessagePosStack.push(D.pos);D.submessagePosStack.push(f);D.pos+=f;JO(D,V.length*1.2);f=UQU(V,D.buf.subarray(D.pos));D.pos+f>D.buf.length&&(JO(D,f),f=UQU(V,D.buf.subarray(D.pos)));D.pos+=f;V=D.submessagePosStack.pop();f=D.submessagePosStack.pop();for(var n=D.pos-f-V;V--;){var t=V?128:0;D.view.setUint8(f++,n&127|t);n>>=7}}D=new Uint8Array(D.buf.buffer,D.buf.byteOffset,D.pos);return(new TextDecoder("utf-8")).decode(D)};
_.es=function(V){var D=0;V=_.r(V);for(var f=V.next(),n={};!f.done;n={transferState$jscomp$3:void 0},f=V.next()){var t=f.value,J=void 0;f=(J=t.streamEntity)!=null?J:{};J=void 0;n.transferState$jscomp$3=(J=t.transferEntity)==null?void 0:J.transferState;J=t=void 0;((t=f)==null?0:(J=t.streamsProgress)==null?0:J.length)&&f.streamsProgress.forEach(function(H){return function(Q){Q=Number(H.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?Q.numTotalBytes:Q.numBytesDownloaded);isFinite(Q)&&(D+=Q)}}(n))}return D};
$WZ=function(V){return V.some(function(D){var f;if(!(D==null?0:(f=D.transferEntity)==null?0:f.transferState)){var n;return!(D==null?0:(n=D.policyEntity)==null?0:n.action)||D.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return XyR.includes(D.transferEntity.transferState)})};
iN3=function(V,D){if(!D)return!1;if(_.c("of_pb_en_po_ks"))return!0;var f;V=(f=_.wg(V,"offlineVideoPolicy",_.HR(D,"offlineVideoPolicy")))!=null?f:void 0;return!!V&&lR(V)};
_.W4R=function(V){var D=["TRANSFER_STATE_COMPLETE"];D=D===void 0?SDX:D;return V.filter(function(f){var n,t;return D.includes((t=(n=f.transferEntity)==null?void 0:n.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN")})};
pyx=function(V,D){if(D){var f,n=(f=_.wg(V,"playbackData",_.HR(D,"playbackData")))!=null?f:null,t;f=(t=_.wg(V,"transfer",_.HR(D,"transfer")))!=null?t:null;var J;t=(J=_.wg(V,"offlineVideoStreams",_.HR(D,"offlineVideoStreams")))!=null?J:null;var H;V=(H=_.wg(V,"offlineVideoPolicy",_.HR(D,"offlineVideoPolicy")))!=null?H:null;if(n||f||t||V)return{playbackDataEntity:n,transferEntity:f,streamEntity:t,policyEntity:V}}};
_.cR=function(V){var D=V.playbackData;if(!D)return[];var f=[];D=_.r(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var t=n.value;if(!L4n(V,_.PR(t).entityId)&&(n=pyx(V,_.PR(t).entityId))){var J=void 0,H=void 0;t=(H=Number((J=_.wg(V,"playbackData",t))==null?void 0:J.streamDownloadTimestampSeconds))!=null?H:(0,_.VW)();f.push({entity:n,streamDownloadTimestamp:t})}}return f.sort(function(Q,T){var y=Q.streamDownloadTimestamp,Z=T.streamDownloadTimestamp;return Z===y?Q.entity.streamEntity&&!T.entity.streamEntity?
1:-1:Z-y}).map(function(Q){return Q.entity})};
IA9=function(V){return _.W4R(_.cR(V))};
_.ONR=function(V){return _.cR(V).filter(function(D){var f;if(((f=D.policyEntity)==null?0:f.action)&&D.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var n;if((n=D.transferEntity)==null?0:n.transferState){var t;return XyR.includes((t=D.transferEntity)==null?void 0:t.transferState)}return!0})};
L4n=function(V,D){var f;return((f=_.wg(V,"downloadStatusEntity",_.HR(D,"downloadStatusEntity")))==null?void 0:f.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
xWU=function(V){var D;if(V==null?0:(D=V.playbackDataEntity)==null?0:D.key)return _.PR(V.playbackDataEntity.key).entityId;var f;if(V==null?0:(f=V.transferEntity)==null?0:f.key)return _.PR(V.transferEntity.key).entityId;var n;if(V==null?0:(n=V.streamEntity)==null?0:n.key)return _.PR(V.streamEntity.key).entityId;var t;if(V==null?0:(t=V.policyEntity)==null?0:t.key)return _.PR(V.policyEntity.key).entityId};
hNx=function(V){var D=new Set,f;V=(f=V.mainDownloadsListEntity)==null?void 0:f[Mq9];var n;if(!(V==null?0:(n=V.downloads)==null?0:n.length))return D;var t;V==null||(t=V.downloads)==null||t.forEach(function(J){(J==null?0:J.videoItem)&&D.add(J.videoItem)});
return D};
FC=function(V,D){if(D){var f=_.wg(V,"mainVideoEntity",_.HR(D,"mainVideoEntity")),n=_.wg(V,"downloadStatusEntity",_.HR(D,"downloadStatusEntity")),t=_.wg(V,"ytMainChannelEntity",_.HR(D,"ytMainChannelEntity")),J={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};V=pyx(V,D);n=(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.c("woffle_render_failed_download_state_ks")&&(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_FAILED";!V&&n&&(V=J);if(V&&f&&
t)return Object.assign({},{videoEntity:f,channelEntity:t},V)}};
Va3=function(V,D){return UW9(V,D)==="TRANSFER_STATE_COMPLETE"&&iN3(V,D)};
DHx=function(V,D){if(!D)return!1;var f;V=(f=_.wg(V,"playbackData",_.HR(D,"playbackData")))!=null?f:void 0;return!!V&&!!V.playerResponseJson};
UW9=function(V,D){if(!D)return"TRANSFER_STATE_UNKNOWN";var f=_.wg(V,"transfer",_.HR(D,"transfer"));if(f){var n;return(n=f.transferState)!=null?n:"TRANSFER_STATE_UNKNOWN"}f=_.wg(V,"offlineOrchestrationActionWrapperEntity",_.HR(D,"offlineOrchestrationActionWrapperEntity"));V=_.wg(V,"mainVideoEntity",_.HR(D,"mainVideoEntity"));return f||V?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
f73=function(V,D){if(!D)return"TRANSFER_STATE_UNKNOWN";if(V=_.wg(V,"transfer",_.HR(D,"transfer"))){var f;return(f=V.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
R2d=function(V,D){return D&&(V=_.wg(V,"videoPlaybackPositionEntity",_.HR(D,"videoPlaybackPositionEntity")),V==null?0:V.lastPlaybackPositionSeconds)?Number(V.lastPlaybackPositionSeconds):0};
qpY=function(V,D){return CH9(V).some(function(f){var n;return(f==null?void 0:(n=f.mainPlaylistEntity)==null?void 0:n.playlistId)===D})};
E09=function(V,D,f){var n=XY9(V,D);if(!n.length)return[];D=[];n=_.r(n);for(var t=n.next();!t.done;t=n.next()){t=t.value;var J=FC(V,t);f&&UW9(V,t)!=="TRANSFER_STATE_COMPLETE"||J&&D.push(J)}return D};
XY9=function(V,D){if(!D)return[];var f=_.HR(D,"mainPlaylistEntity"),n;D=(n=V.mainPlaylistEntity)==null?void 0:n[f];n=[];if(D==null||!D.videos)return n;D=_.r(D.videos);for(f=D.next();!f.done;f=D.next()){f=f.value;var t=void 0,J=void 0,H=void 0,Q=(t=V)==null?void 0:(J=t.mainPlaylistVideoEntity)==null?void 0:(H=J[f])==null?void 0:H.video;Q&&(f=_.PR(Q).entityId)&&n.push(f)}return n};
AVL=function(V,D){if(D){var f=_.wg(V,"mainPlaylistEntity",_.HR(D,"mainPlaylistEntity")),n=_.wg(V,"mainPlaylistDownloadStateEntity",_.HR(D,"mainPlaylistDownloadStateEntity"));V=_.wg(V,"ytMainChannelEntity",_.HR(D,"ytMainChannelEntity"));if(n&&f)return Object.assign({},{mainPlaylistEntity:f,mainPlaylistDownloadStateEntity:n},!!V&&{channelEntity:V})}};
CH9=function(V){return a7x(V).sort(function(D,f){return f.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return D.downloadedPlaylistEntities})};
a7x=function(V){var D=V.mainPlaylistDownloadStateEntity,f=[];if(!D)return f;for(var n=_.r(Object.keys(D)),t=n.next();!t.done;t=n.next()){var J=t.value;t=AVL(V,_.PR(J).entityId);var H=void 0;J=Number((H=D[J])==null?void 0:H.addedTimestampMillis);H=isNaN(J)?(0,_.VW)():J;t!==void 0&&f.push({downloadedPlaylistEntities:t,addedTimestampMillis:H})}return f};
Ypd=function(V){var D,f=(D=V.mainPlaylistVideoEntity)!=null?D:{};return new Set(CH9(V).reduce(function(n,t){n=n===void 0?[]:n;var J,H;t==null||(J=t.mainPlaylistEntity)==null||(H=J.videos)==null||H.forEach(function(Q){var T;(Q=(T=f[Q])==null?void 0:T.video)&&n.push(Q)});
return n},[]))};
$Hx=function(V){return"downloadedMusicPlaylistEntities"in V};
ifY=function(V){return"mainPlaylistEntity"in V&&"mainPlaylistDownloadStateEntity"in V};
SpY=function(V){return"videoEntity"in V&&"channelEntity"in V};
WCZ=function(V){var D=V.musicPlaylistDownloadMetadataEntity,f=[];if(!D)return f;for(var n=_.r(Object.keys(D)),t=n.next();!t.done;t=n.next()){t=t.value;a:{var J=V,H=_.PR(t).entityId;if(H){var Q=_.wg(J,"musicPlaylist",_.HR(H,"musicPlaylist"));J=_.wg(J,"musicPlaylistDownloadMetadataEntity",_.HR(H,"musicPlaylistDownloadMetadataEntity"));if(Q&&J){Q={musicPlaylistEntity:Q,musicPlaylistDownloadStateEntity:J};break a}}Q=void 0}J=void 0;t=Number((J=D[t])==null?void 0:J.addedTimestampMillis);t=isNaN(t)?(0,_.VW)():
t;Q!==void 0&&f.push({downloadedMusicPlaylistEntities:Q,addedTimestampMillis:t})}return f};
pYn=function(V){var D=new Set;V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,"musicPlaylistEntity"in f&&"musicPlaylistDownloadStateEntity"in f){f=_.r(f.musicPlaylistEntity.tracks);for(var n=f.next();!n.done;n=f.next())D.add(n.value)}return D};
LCd=function(V,D){if(D){var f=_.wg(V,"musicTrack",_.HR(D,"musicTrack")),n=_.wg(V,"musicArtist",_.HR(D,"musicArtist"))||{};if((V=pyx(V,D))&&f&&n)return Object.assign({},{musicTrackEntity:f,musicArtistEntity:n},V)}};
I7F=function(V){var D=V.musicTrackDownloadMetadataEntity,f=[];if(!D)return[];D=_.r(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var t=n.value;n=LCd(V,_.PR(t).entityId);var J=void 0;t=Number((J=_.wg(V,"musicTrackDownloadMetadataEntity",t))==null?void 0:J.addedTimestampMillis);J=isNaN(t)?(0,_.VW)():t;n!==void 0&&f.push({downloadedMusicEntities:n,addedTimestampMillis:J})}return f};
Mad=function(V,D){if(!D)return[];if(Object.values(Ofx).includes(D))return xH9(V,D);D=_.HR(D,"musicPlaylist");var f;V=(f=V.musicPlaylist)==null?void 0:f[D];f=[];if(V==null||!V.tracks)return f;V=_.r(V.tracks);for(D=V.next();!D.done;D=V.next())(D=_.PR(D.value).entityId)&&f.push(D);return f};
xH9=function(V,D){var f=new Set,n=WCZ(V).map(function(J){return J.downloadedMusicPlaylistEntities});
n=pYn(n);n=_.r(n);for(var t=n.next();!t.done;t=n.next())(t=_.PR(t.value).entityId)&&f.add(t);return h2X(V).downloadedMusicEntities.filter(function(J){var H;if((H=J.musicTrackEntity)!=null&&H.videoId){J=J.musicTrackEntity;if(H=D==="PPOM"?!0:!f.has(J.videoId))b:switch(J=J.musicVideoType,D){case "PPSE":H=J==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:H=J!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}J=H}else J=!1;return J}).map(function(J){var H;
return(H=J.musicTrackEntity)==null?void 0:H.videoId})};
h2X=function(V){var D=I7F(V).sort(function(f,n){return n.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:$Hx(f)?f.downloadedMusicPlaylistEntities:{}});
V=WCZ(V).sort(function(f,n){return n.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:$Hx(f)?f.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:D,downloadedMusicPlaylistEntities:V}};
VtU=function(V,D){D=_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Mad(V,D):XY9(V,D);if(!D.length)return"TRANSFER_STATE_UNKNOWN";D=D.map(function(f){return f73(V,f)});
return UH9(D)};
UH9=function(V){var D=new Set(V);if(D.has("TRANSFER_STATE_FAILED")&&D.size===1)return"TRANSFER_STATE_FAILED";D.delete("TRANSFER_STATE_FAILED");if(D.has("TRANSFER_STATE_UNKNOWN")&&D.size===1)return"TRANSFER_STATE_PRE_TRANSFER";D.delete("TRANSFER_STATE_UNKNOWN");if(D.has("TRANSFER_STATE_PRE_TRANSFER")&&D.size===1||D.size===0)return"TRANSFER_STATE_PRE_TRANSFER";V=D.has("TRANSFER_STATE_TRANSFERRING");D=D.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return V||D?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
gg=function(V){var D=V.mainVideoDownloadStateEntity,f=[];if(!D)return[];D=_.r(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var t=n.value;if(!L4n(V,_.PR(t).entityId)){n=FC(V,_.PR(t).entityId);var J=void 0,H=void 0;t=(H=Number((J=_.wg(V,"mainVideoDownloadStateEntity",t))==null?void 0:J.addedTimestampMillis))!=null?H:(0,_.VW)();n!==void 0&&f.push({downloadedVideoEntities:n,addedTimestampMillis:t})}}return f};
DTF=function(V){return gg(V).sort(function(D,f){return f.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return D.downloadedVideoEntities})};
_.nBY=function(V){var D=Ypd(V),f=_.vR(V),n=hNx(V),t=gg(V).filter(function(H){var Q,T;if((H==null?void 0:(Q=H.downloadedVideoEntities)==null?void 0:(T=Q.transferEntity)==null?void 0:T.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var y,Z;H=H==null?void 0:(y=H.downloadedVideoEntities)==null?void 0:(Z=y.videoEntity)==null?void 0:Z.key;return _.c("kevlar_use_library_entity")?H&&(n.has(H)||f[H]):H&&!D.has(H)}),J=a7x(V).filter(function(H){return VtU(V,H.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.sz(t),_.sz(J)).sort(function(H,Q){return Q.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return f8Y(H)})};
ttd=function(V,D){if(D&&iN3(V,D)){var f,n,t=(n=(f=_.wg(V,"playbackData",_.HR(D,"playbackData")))!=null?f:void 0)==null?void 0:n.playerResponseJson;if(t){try{var J=JSON.parse(t);var H=_.wg(V,"transfer",_.HR(D,"transfer")),Q=R2d(V,D);Q&&(J=Object.assign({},J,{playerConfig:Object.assign({},J.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+Q*1E3}}})}));J.cotn=H==null?void 0:H.cotn}catch(T){}return J}}};
_.oBZ=function(V){var D,f,n;V=(n=(f=((D=V.downloadsPageViewConfigurationEntity)!=null?D:{})[_.ky])==null?void 0:f.smartDownloadsOptInBannerVisibility)!=null?n:{};var t;return(t=_.g(V,P7d))!=null?t:{}};
_.vR=function(V){var D,f,n;V=(n=(f=((D=V.mainDownloadsListEntity)!=null?D:{})[_.JT3])==null?void 0:f.downloads)!=null?n:[];D={};f=_.r(V);for(n=f.next();!n.done;n=f.next())V=void 0,D[(V=n.value.videoItem)!=null?V:""]=!0;return D};
rTY=function(V){var D=_.vR(V);if(Object.keys(D).length===0)return!1;var f=V.mainVideoEntity;if(!f)return!0;f=_.r(Object.keys(f));for(var n=f.next();!n.done;n=f.next()){n=n.value;var t=_.PR(n).entityId;if(D[n]&&!L4n(V,t))return!1}return!0};
_.sl=function(V){var D=_.vR(V);return gg(V).sort(function(f,n){return f.addedTimestampMillis-n.addedTimestampMillis}).map(function(f){return f.downloadedVideoEntities}).filter(function(f){var n;
return(f=f==null?void 0:(n=f.videoEntity)==null?void 0:n.key)&&!!D[f]})};
_.wcY=function(V){var D,f,n;V=(n=(f=((D=V.downloadsPageViewConfigurationEntity)!=null?D:{})[_.ky])==null?void 0:f.downloadsUpsellBannerVisibility)!=null?n:{};var t;return(t=_.g(V,H9Y))!=null?t:{}};
f8Y=function(V){return"downloadedVideoEntities"in V?V.downloadedVideoEntities:"downloadedPlaylistEntities"in V?V.downloadedPlaylistEntities:{}};
QIX=function(V){var D=_.vR(V),f=Ypd(V),n=gg(V).filter(function(t){var J,H;return(t=t==null?void 0:(J=t.downloadedVideoEntities)==null?void 0:(H=J.videoEntity)==null?void 0:H.key)&&!D[t]&&!f.has(t)});
V=a7x(V);return[].concat(_.sz(n),_.sz(V)).sort(function(t,J){return J.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return f8Y(t)})};
_.BR=function(V){if(!_.c("kevlar_use_library_entity"))return QIX(V);var D=gg(V).filter(function(n){var t,J;if(t=n=n==null?void 0:(t=n.downloadedVideoEntities)==null?void 0:(J=t.videoEntity)==null?void 0:J.key){var H,Q,T;t=((Q=(H=V.mainDownloadsListEntity)==null?void 0:H[Mq9])==null?0:(T=Q.downloads)==null?0:T.length)?hNx(V).has(n):!1}return t}),f=a7x(V);
return[].concat(_.sz(D),_.sz(f)).sort(function(n,t){return t.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return f8Y(n)})};
T0R=function(V){var D=_.vR(V),f=Ypd(V);return DTF(V).filter(function(n){var t;return(n=n==null?void 0:(t=n.videoEntity)==null?void 0:t.key)&&!D[n]&&!f.has(n)})};
b9F=function(V){if(!_.c("kevlar_use_library_entity"))return T0R(V);var D=_.vR(V),f=hNx(V);return DTF(V).filter(function(n){var t;return(n=n==null?void 0:(t=n.videoEntity)==null?void 0:t.key)&&!D[n]&&f.has(n)})};
KJ3=function(V,D){D=_.HR(D,"settingEntity");var f,n,t;return!!((t=(n=((f=V.settingEntity)!=null?f:{})[D])==null?void 0:n.settingOptionValue)!=null?t:{}).boolValue};
_.dg=function(V){var D=_.sl(V);if($WZ(D))return 0;var f=[];D=_.r(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;var t=void 0,J=void 0;if((t=n)==null?0:(J=t.videoEntity)==null?0:J.key)t=_.PR(n.videoEntity.key).entityId,n=V,t=_.HR(t,"mainVideoDownloadStateEntity"),n=_.wg(n,"mainVideoDownloadStateEntity",t),(n=Number(n==null?void 0:n.addedTimestampMillis))&&f.push(n)}return Math.max.apply(Math,_.sz(f))};
_.uR=function(V){return V.ui.richGridMiniMode};
_.N_=function(V){return V.ui.richGridItemsPerRow};
_.yTF=function(V){return V.ui.richGridSlimItemsPerRow};
_.Z9X=function(V){return V.ui.guideIsExpanded};
_.mq=function(V){return V.ui.miniplayerIsActive};
_.jIY=function(V){return V.ui.singleOptionSurveyIsActive};
_.zq=function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.l8x=function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.GN9=function(V){return V.ui.inlinePreviewIsActive};
_.ePU=function(V){return V.ui.inlinePreviewIsEnabled};
_.cTF=function(V){return V.ui.miniplayerPlaybackState};
_.RW=function(V){return V.ui.isOnline};
_.FJd=function(V){return V.ui.frostedGlassMode};
_.CA=function(V,D){return UW9(V.entities,D)};
_.q_=function(V,D){return VtU(V.entities,D)};
gBZ=function(V,D){var f;if(D){var n;V=(n=_.wg(V.entities,"offlineVideoPolicy",_.HR(D,"offlineVideoPolicy")))==null?void 0:n.action}else V=void 0;return(f=V)!=null?f:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
vBF=function(V,D){var f;D?(V=_.wg(V.entities,"offlineVideoPolicy",_.HR(D,"offlineVideoPolicy")),V=Number(V==null?void 0:V.expirationTimestamp)):V=void 0;return(f=V)!=null?f:0};
_.kNY=function(V){return _.cR(V.entities).length};
sI9=function(V,D){return FC(V.entities,D)};
B0Y=function(V,D){return AVL(V.entities,D)};
XC=function(V,D){return(V=FC(V.entities,D))?_.E9L([V]):0};
_.dT3=function(V,D){var f=_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(f){var n=V.entities;var t=Mad(n,D);if(t.length){var J=[];t=_.r(t);for(var H=t.next();!H.done;H=t.next())(H=LCd(n,H.value))&&J.push(H);n=J}else n=[]}else n=E09(V.entities,D);var Q;if(f){var T=V.entities;D?(D=_.HR(D,"musicPlaylist"),T=(Q=T.musicPlaylist)==null?void 0:Q[D],Q=T!=null&&T.tracks?T.tracks.length:0):Q=0}else Q=V.entities,D?(D=_.HR(D,"mainPlaylistEntity"),Q=(T=Q.mainPlaylistEntity)==null?void 0:T[D],Q=Q!=null&&Q.videos?
Q.videos.length:0):Q=0;return n.length!==Q?0:n?AbX(n):0};
_.ubc=function(V){return V.download.isLeaderTab};
_.N0X=function(V,D,f){if(!D&&f){var n=V.entities;if(f){var t=YDn(f),J,H;D=(H=(J=_.wg(n,"offlineabilityEntity",_.HR(t,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else D="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else J=V.entities,D?(H=YDn(D),D=(t=(n=_.wg(J,"offlineabilityEntity",_.HR(H,"offlineabilityEntity")))==null?void 0:n.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):D="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return D};
mTY=function(V,D){V=V.entities;if(D){D=YDn(D);var f,n;D=(n=(f=_.wg(V,"offlineabilityEntity",_.HR(D,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else D="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return D};
_.zPR=function(V){var D=V.entities;V=_.RW(V);var f=KJ3(D,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.c("kevlar_modern_downloads_page")&&f)var n=!1;else{var t,J;D=(J=(t=((n=D.downloadsPageViewConfigurationEntity)!=null?n:{})[_.ky])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?J:{};n=V?!!D.visibleWithConnection:!!D.visibleWithoutConnection}return n};
_.RPc=function(V){return KJ3(V.entities,"SMART_DOWNLOADS_ENABLED")};
_.C79=function(V){return rTY(V.entities)};
qCZ=function(V){return _.sl(V.entities).every(function(D){var f;return(D==null?void 0:(f=D.transferEntity)==null?void 0:f.transferState)&&!XyR.includes(D.transferEntity.transferState)})};
_.Xc9=function(V){var D,f,n,t=(n=(f=((D=V.entities.downloadsPageViewConfigurationEntity)!=null?D:{})[_.ky])==null?void 0:f.downloadsUpsellBannerVisibility)!=null?n:{};return _.RW(V)?!!t.visibleWithConnection:!!t.visibleWithoutConnection};
_.EBY=function(V,D){return L4n(V.entities,D)};
ATn=function(V,D){if(D){var f,n;V=(n=(f=_.wg(V.entities,"downloadStatusEntity",_.HR(D,"downloadStatusEntity")))==null?void 0:f.downloadState)!=null?n:"DOWNLOAD_STATE_UNKNOWN"}else V="DOWNLOAD_STATE_UNKNOWN";return V};
El=function(V,D){return R2d(V.entities,D)};
i93=function(V){V=_.a8F(V);var D=V.hours===void 0?0:V.hours,f=V.minutes===void 0?0:V.minutes,n=V.seconds===void 0?0:V.seconds,t=D>0;V=[];t&&(D=_.YCd(D),V.push(D));D=t;D=D===void 0?!1:D;f=(["af","be","lt"].includes(_.AO)||D)&&f<10?$TL().format(f):(new Intl.NumberFormat("en-u-nu-latn")).format(f);V.push(f);f=$TL().format(n);V.push(f);f=":";"da fi id si sr sr-Latn".split(" ").includes(_.AO)&&(f=".");return V.join(f)};
_.a8F=function(V){var D=V.hours||0,f=V.minutes||0,n=V.seconds||0;D=n+f*60+D*3600+(V.days||0)*86400+(V.weeks||0)*604800+(V.months||0)*2629800+(V.years||0)*31557600;if(D<=0)return{hours:0,minutes:0,seconds:0};V=D;D=Math.floor(V/3600);V%=3600;f=Math.floor(V/60);n=Math.floor(V%60);return{hours:D,minutes:f,seconds:n}};
_.YCd=function(V){V=(new Intl.NumberFormat("en-u-nu-latn")).format(V);var D=["fr"],f="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(_.AO)?V.replace(",","\u00a0"):D.includes(_.AO)?V.replace(",","\u202f"):f.includes(_.AO)?V.replace(",","."):V};
$TL=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
SCR=function(V){try{return(new _.aW(5)).format(V)}catch(D){}};
Yy=function(V){return{thumbnailOverlayDownloadingRenderer:{state:V}}};
WJX=function(V){if(V=SCR(V))return{thumbnailOverlaySidePanelRenderer:{text:_.Vc(V),icon:{iconType:"PLAYLISTS"}}}};
pcZ=function(){var V=_.Zl("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Vc(V),icon:{iconType:"PLAY_ALL"}}}};
LJ9=function(V){V=_.$y(V,2);return _.AO!=="ru"&&_.AO!=="es_419"&&_.AO!=="es-419"&&_.AO!=="es"&&_.AO!=="es_US"&&_.AO!=="es-US"&&_.AO!=="fr"&&_.AO!=="pl"&&_.AO!=="it"&&_.AO!=="nl"&&_.AO!=="uk"&&_.AO!=="fr_CA"&&_.AO!=="fr-CA"||V===""?V:V[0].toLocaleUpperCase()+V.substring(1)};
O9Y=function(V){return function(D){var f=V(),n=_.$y(D,f.dateFormat);D=_.$y(D,f.timeFormat);var t=I8Y.DATETIMEFORMATS[f.joinerStyle];t=t.replace(/'(?!')/g,"");t=t.replace("{0}",D);t=t.replace("{1}",n);return f.capitalize(t)}};
xTZ=function(V){return V?typeof V.seconds==="string"&&(V.nanos===void 0||typeof V.nanos==="number"):!1};
MtZ=function(V){return new Date(Number(V.seconds)*1E3+(V.nanos||0)*1E-6)};
_.$y=function(V,D){if(typeof V.getTime==="function")V={date:V};else if(xTZ(V))V={date:MtZ(V)};else if(typeof xTZ(V.timestamp)&&typeof V.i18nInternalSecondsEastOfUtc==="number")V={date:MtZ(V.timestamp),timeZone:iR(-V.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(V));var f=V;V=f.date;f=f.timeZone;D=hPY(D).format(V,f);_.AO==="zh-TW"&&(V=f?Number(hPY("H").format(V,f)):V.getHours(),D=V<5?D.replace("\u4e0a\u5348","\u51cc\u6668"):V<8?D.replace("\u4e0a\u5348","\u65e9\u4e0a"):V<12?
D.replace("\u4e0a\u5348","\u4e0a\u5348"):V<13?D.replace("\u4e0b\u5348","\u4e2d\u5348"):V<19?D.replace("\u4e0b\u5348","\u4e0b\u5348"):D.replace("\u4e0b\u5348","\u665a\u4e0a"));return D};
hPY=function(V){if(UTd.has(V))return UTd.get(V);var D=VzX(V);D=DPZ(D);fDd!==!0&&(fDd=!0);ncY=!0;ncY=!1;D=new Ss(D,I8Y);UTd.set(V,D);return D};
VzX=function(V){return(new Ss(V,I8Y)).patternParts_.map(function(D){return D.type===0?"'"+D.text+"'":D.text}).join("")};
DPZ=function(V){return _.AO==="en"||_.AO==="es_US"||_.AO==="es-US"?V:V.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(D,f,n){return"H".repeat(f.length)+n})};
Qjn=function(V,D){tzx||(_.WR=_.P$Y,tzx=new ocR);var f=tzx;a:if(V=J6Z(V),D=J6Z(D||new Date),V>D)f=V.getTime()-D.getTime()>6048E5?_.$y(V,1):r6d(V);else{for(var n=0;H_R(V,12*(n+1))<D;)++n;if(n>0)f=f.format(-n,0);else{for(n=0;H_R(V,n+1)<D;)++n;if(n>0)f=f.format(-n,2);else{V=D.getTime()-V.getTime();D=_.r(w5X);for(n=D.next();!n.done;n=D.next()){n=n.value;var t=n.unit,J=Math.floor(V/n.unitDuration);if(J>=(n.threshold===void 0?1:n.threshold)){f=f.format(-J,t);break a}}f=f.format(-0,7)}}}return f};
J6Z=function(V){if(typeof V.getTime==="function")return V;if(xTZ(V))return MtZ(V);throw Error("Jf`"+JSON.stringify(V));};
H_R=function(V,D){for(var f=0,n;;++f)if(n=new Date(V.getFullYear(),V.getMonth()+D,V.getDate()-f,V.getHours(),V.getMinutes(),V.getSeconds()),n.getMonth()===(V.getMonth()+D)%12)return n};
_.pA=function(V){return{runs:[{text:V}]}};
_.LA=function(V){if(V&&V.simpleText)return V.simpleText;var D="";if(V&&V.runs)for(var f=0;f<V.runs.length;f++)V.runs[f].text&&(D+=V.runs[f].text);return D};
b_Y=function(V,D,f,n){return V.videoEntity&&!V.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"?[Yy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:lR(V.policyEntity)&&D!=="TRANSFER_STATE_FAILED"&&D!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?D==="TRANSFER_STATE_PAUSED_BY_USER"?[Yy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Gq(D)?[Yy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:V.videoEntity.lengthSeconds?TWF(V.videoEntity.lengthSeconds,n):[]:
[Yy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
TWF=function(V,D){var f=[{thumbnailOverlayTimeStatusRenderer:{text:_.Vc(i93({seconds:V})),style:"DEFAULT"}}];D&&(V=D<=0||V<=0?0:D>=V?100:Math.ceil(D*100/V),V>0&&f.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:V}}));return f};
K5R=function(V,D,f,n,t){if(D==="TRANSFER_STATE_UNKNOWN"||!V)return{};if(_.Gq(D)||D==="TRANSFER_STATE_PRE_TRANSFER")var J=[Yy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var H,Q;if(D==="TRANSFER_STATE_COMPLETE"&&((H=V.mainPlaylistEntity)==null?0:(Q=H.videos)==null?0:Q.length)){if(_.c("web_modern_collections_v2")){var T;var y=(J=V.mainPlaylistEntity)==null?void 0:(T=J.videos)==null?void 0:T.length;J=(J=SCR(y))?{thumbnailOverlayBottomPanelRenderer:{text:_.Vc(J),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var Z;J=WJX((y=V.mainPlaylistEntity)==null?void 0:(Z=y.videos)==null?void 0:Z.length)}var l;J=[pcZ(),Object.assign({},(l=J)!=null?l:{})]}else J=[]}l=J;a:if(D==="TRANSFER_STATE_PRE_TRANSFER")f=DH(_.Zl("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(D==="TRANSFER_STATE_TRANSFER_IN_QUEUE")f=DH(_.Zl("WAITING_TO_DOWNLOAD"));else if(_.Gq(D))f=Math.floor(f*100).toString(),f=DH(_.Zl("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%"));else{if(n&&(_.c("playlist_is_offline_selector_killswitch")&&
(t=_.DY().resolve(_.ik).isNetworkAvailable()),t)){f=LSZ(_.Zl("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),WSY(n));break a}f=void 0}D=D==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Zl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},l.length?{thumbnailOverlays:l}:{},f?{viewPlaylistText:f}:{viewPlaylistText:_.pA("")},D.length?{badges:D}:{})};
y6n=function(V,D,f,n,t,J){if(D==="TRANSFER_STATE_UNKNOWN"||!V)return{};if(n==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var H=b_Y(V,D,n);if(V.videoEntity&&!V.policyEntity&&n!=="DOWNLOAD_STATE_FAILED"){var Q=_.Zl("WAITING_TO_DOWNLOAD");if(Q)return{shortViewCountText:_.pA(Q),publishedTimeText:void 0,thumbnailOverlays:H}}if(!lR(V.policyEntity)){J=V.policyEntity&&!aAd(V.policyEntity)?_.Zl("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Zl("TRANSFER_FAILED",{},"Download failed");var T;if((T=V.policyEntity)==null?0:T.shortMessageForDisabledAction)J=V.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:DH(J),publishedTimeText:void 0,thumbnailOverlays:H}}if(D==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.pA(_.Zl("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:H};if(D==="TRANSFER_STATE_FAILED"||D==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.pA(_.Zl("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:H};if(D==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(T=_.Zl("WAITING_TO_DOWNLOAD"),n==="DOWNLOAD_STATE_PAUSED"&&(T=_.Zl("DOWNLOAD_PAUSED",{},"Download paused")),T))return{shortViewCountText:_.pA(T),publishedTimeText:void 0,thumbnailOverlays:H};if(_.Gq(D))return V=Math.floor(f*100).toString(),{shortViewCountText:_.pA(_.Zl("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%")),publishedTimeText:void 0,thumbnailOverlays:H};D=void 0;V.videoEntity.publishedTimestampMillis&&
(D=new Date,t&&(D=new Date(t)),D=DH(Qjn(new Date(Number(V.videoEntity.publishedTimestampMillis)),D)));t=[];_.c("kevlar_woffle_badge_killswitch")||(t=[{metadataBadgeRenderer:{label:_.Zl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var y;V=DH((y=V.videoEntity.localizedStrings)==null?void 0:y.viewCount);return Object.assign({},J?{shortViewCountText:void 0}:{shortViewCountText:V},J?{}:{publishedTimeText:D},{badges:t,thumbnailOverlays:H})};
jj3=function(V,D){V=V===void 0?Z_Y:V;switch(D.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:D.payload.playlistId,inviteLinkURL:D.payload.inviteLinkUrl};default:return V}};
GIY=function(V,D){V=V===void 0?lD3:V;switch(D.type){case "SET_CURRENT_FORM_ID":return D=D.payload.formId,V.currentFormId===D?V:{currentFormId:D,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var f=D.payload;D=f.groupId;f=f.command;if(V.currentFormId){var n=Object.assign({},V.commandsMap);n[D]=f;V=Object.assign({},V,{commandsMap:n})}return V;case "RESET_COMMAND_MAP":return Object.assign({},V,{commandsMap:{}});default:return V}};
c6n=function(V,D){V=V===void 0?e_d:V;switch(D.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},V,{guideIsExpanded:D.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},V,{scrollAtTop:D.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},V,{guideIsVisibleButNotPersistent:D.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},V,{miniplayerIsActive:D.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},V,{singleOptionSurveyIsActive:D.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},V,{slimlineSurveyRatingSelectedIndex:D.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},V,{richGridMiniMode:D.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},V,{richGridItemsPerRow:D.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},V,{richGridSlimItemsPerRow:D.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},V,{richGridContainerWidth:D.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},V,{richGridStyle:D.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},V,{currentPageType:D.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},V,{inlinePreviewIsActive:D.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},V,{inlinePreviewIsEnabled:D.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},V,{darkModeIsEnabled:D.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
V,{miniplayerPlaybackState:D.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},V,{tabGesturesIsActive:D.payload});case "SET_ONLINE_STATUS":return Object.assign({},V,{isOnline:D.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},V,{chipBarIsSticky:D.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},V,{frostedGlassMode:D.payload});default:return V}};
gcx=function(V,D){V=V===void 0?F5c:V;switch(D.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},V,{transcription:D.payload});case "SET_OVERLAY_STATE":return Object.assign({},V,{overlay:D.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return V}};
R_9=function(){return TR(Object.assign({},{continuation:vcX,entities:HNn,download:kIx,reportChannelAbuse:sjX,share:BWY,talkToRecs:dP3,ui:c6n,voiceSearch:gcx,watch:u7x,ypc:NW9,shorts:mPF,radioButtonGroup:GIY,collabInviteLink:jj3},z_x))};
X59=function(){return _.c("web_player_entities_middleware")?new IW(R_9(),[C$d,qgd]):new IW(R_9(),[C$d])};
_.Ol=function(){Ec9||(Ec9=X59());return Ec9};
A6Y=function(V,D,f){if(V.length)return{titleText:_.Vc(D!=null?D:_.Zl("DOWNLOADS",void 0,"Downloads")),contents:V.map(function(n){var t=n.videoEntity;n={videoId:t.videoId,title:DH(t.title),shortBylineText:DH(n.channelEntity.title),thumbnail:t.thumbnail};var J=t.videoId?El(_.Ol().getState(),t.videoId):0;t.videoId&&f?n.navigationEndpoint=_.U2(t.videoId,f,void 0,void 0,J):t.videoId&&(n.navigationEndpoint=SjR(t.videoId,J,t.lengthSeconds));t.lengthSeconds&&(n.thumbnailOverlays=TWF(t.lengthSeconds,J));return{playlistPanelVideoRenderer:n}}),
totalVideos:V.length}};
aDR=function(V){return(V=(0,_.sB.getValueByKeys)(V,"playlistId"))?{playlistId:V}:null};
YgY=function(){return{}};
$PZ=function(V,D){return new _.Qf(function(f,n){V.then(function(t){if(t){if(t=D(t))return f(t);n()}},n)})};
i_L=function(V){var D,f,n,t=(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.autoplay)==null?void 0:n.autoplay,J,H,Q;D=(J=V.contents)==null?void 0:(H=J.twoColumnWatchNextResults)==null?void 0:(Q=H.playlist)==null?void 0:Q.playlist;return t&&D&&D.playlistId?{rawResponse:V,autoplayRenderer:t,playlistPanelRenderer:D,playlistId:D.playlistId}:null};
W5Z=function(V){var D=D===void 0?"UNKNOWN_INTERFACE":D;if(V.length===1)return V[0];var f=SgF[D];if(f){f=new RegExp(f);for(var n=_.r(V),t=n.next();!t.done;t=n.next())if(t=t.value,f.exec(t))return t}var J=[];Object.entries(SgF).forEach(function(H){var Q=_.r(H);H=Q.next().value;Q=Q.next().value;D!==H&&J.push(Q)});
f=new RegExp(J.join("|"));V.sort(function(H,Q){return H.length-Q.length});
n=_.r(V);for(t=n.next();!t.done;t=n.next())if(t=t.value,!f.exec(t))return t;return V[0]};
_.xy=function(V){return"/youtubei/v1/"+W5Z(V)};
_.M_=function(V){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:V}}}}};
_.hO=function(V){return _.M_(_.pA(V))};
p5d=function(V,D){var f={mode:"NORMAL"};V&&(f.autoplayVideo=V.navigationEndpoint,f.nextButtonVideo=V.navigationEndpoint);D&&(f.previousButtonVideo=D.navigationEndpoint);return f};
O_Z=function(V,D,f){if(!f||!f.sets)return{sets:[p5d(V,D)]};var n=f.sets.find(function(H){return H.mode==="NORMAL"}),t=(0,_.sB.unsafeClone)(f);
if(!n)return t.sets.push(p5d(V,D)),t;if(!V)return f;n=_.sB.getValueByKeys.apply(null,[n].concat(_.sz(L5X)));var J=_.sB.getValueByKeys.apply(null,[V].concat(_.sz(ID9)));if(n===J)return f;t.sets=t.sets.filter(function(H){return H.mode!=="NORMAL"});
t.sets.push(p5d(V,D));return t};
xPF=function(V){return!!V.playlistPanelVideoRenderer&&!V.playlistPanelVideoRenderer.unplayableText};
Mzc=function(V){return!!V.playlistPanelVideoRenderer&&!!V.playlistPanelVideoRenderer.title};
h_3=function(V,D){if(D.contents&&!(V>=D.contents.length)&&(V=D.contents.slice(V).find(xPF)))return V.playlistPanelVideoRenderer};
UPn=function(V,D){if(D.contents)return(D=D.contents.find(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===V}))?D.playlistPanelVideoRenderer:void 0};
V23=function(V,D){return D.contents?D.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===V}):-1};
DdX=function(V,D){return D.contents?D.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.playlistSetVideoId===V}):-1};
f$Z=function(V,D){V.contents&&D!==-1&&V.contents.splice(D,1).length===1&&V.totalVideos!==void 0&&(--V.totalVideos,delete V.videoCountText)};
_.nm9=function(V){var D=[];if(!V||!V.contents)return D;V=_.r(V.contents);for(var f=V.next();!f.done;f=V.next())f=f.value,f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId&&D.push(f.playlistPanelVideoRenderer.videoId);return D};
_.t29=function(V){if(V&&V.contents)return(V=V.contents.find(function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.selected})||V.contents[V.currentIndex])?V.playlistPanelVideoRenderer:void 0};
PVd=function(V,D,f,n,t,J,H){t=t===void 0?!1:t;J=J===void 0?!1:J;H=H===void 0?!1:H;if(V.contents&&V.contents.length!==0){n&&(V.contents=V.contents.filter(n));n=V.contents.length;for(var Q=0;Q<n;Q++){var T=V.contents[Q].playlistPanelVideoRenderer;T&&(Q===D?(J&&delete T.menu,T.indexText=_.pA("\u25b6")):t||V.isInfinite||T.indexText===void 0?delete T.indexText:T.indexText=_.pA((Q+1+f).toString()))}V.currentIndex=D+f;H&&(delete V.videoCountText,V.totalVideos=n)}};
_.Ul=function(V){V=om9(V);if(V){var D=V.length;var f=-9%D;f<0&&(f=D+f);V=V.slice(D-f)+V.slice(0,D-f)}else V="";f="";for(D=0;D<V.length&&V[D]!==J5L;D++)f+=V[D];return f};
_.r53=function(V,D){var f=document.body;D=D===void 0?function(Q){return Q}:D;
var n,t=null;V=_.r(V);for(n=V.next();!n.done;n=V.next()){var J=n.value;n="div";J[2]&&(n=D(J[2]));n=document.createElement(n);t||(t=n);var H=J[0];J=J[1];H&&(n.id=D(H));if(J)for(J=_.r(J),H=J.next();!H.done;H=J.next())n.classList.add(D(H.value));f.appendChild(n);f=n}return[t,f]};
H1Y=function(V,D){for(var f="",n=0;n<D;n++)f+=V.charAt(Math.floor(Math.random()*V.length));return f};
Vu=function(V){return H1Y("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",V)};
Dx=function(V){return H1Y("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",V)};
fR=function(V){return H1Y("0123456789",V)};
nR=function(){var V=performance.now(),D=new Date;var f="2."+D.getFullYear()+String(D.getMonth()+1).padStart(2,"0")+String(D.getDate()).padStart(2,"0");for(var n,t=Math.floor(Math.random()*11)+15,J=[],H=0;H<t;H++)J.push(Math.floor(Math.random()*26476865)+24547720);n=J.join(",");var Q=Vu(10),T=Vu(100),y=Vu(102),Z=Vu(106),l=Vu(108),G=Vu(11),F=Vu(1140),k=Vu(123),d=Vu(14),z=Vu(16),C=Vu(1900),A=Vu(23),O=Vu(26),W=Vu(34),I=Vu(397),x=Vu(44),oY=Vu(5),wZ=Vu(72),ZZ=Vu(74),sd=Vu(75),NU=Vu(88),Bn=Vu(91),aY="rr1---sn-q4fl6nsy rr4---sn-q4fl6nsr rr4---sn-q4fl6n6y rr1---sn-q4flrne7 rr4---sn-q4fzen7e rr1---sn-5hnekn7k rr5---sn-5hneknes rr3---sn-q4fl6n6r rr4---sn-npoe7ns6 rr2---sn-5hnekn7z rr5---sn-t0a7ln7d rr1---sn-5hne6n6l rr4---sn-ntqe6n7r rr3---sn-q4flrnld rr1---sn-5hne6nzk rr3---sn-5hnednsz rr1---sn-ntqe6n76 rr2---sn-q4fl6n6s rr1---sn-5hne6n6e rr4---sn-q4fzenee".split(" ");
var Ed=aY[Math.floor(Math.random()*aY.length)];var V0=(new Date("2010-01-01")).getTime();var kf=(new Date(V0+Math.random()*((new Date).getTime()-V0))).toISOString().split("T")[0];for(var mY,Ko=[],Eu=0;Eu<4;Eu++)Ko.push(Math.floor(Math.random()*100));mY=Ko.join(".");var y0=Number(fR(5)),BH=Number(fR(6)),wu=Number(fR(7)),lF=Number(fR(9)),rZ=fR(1),wP=fR(10),gP=fR(16),uX=fR(19),cH=fR(2),WH=fR(20),S5=fR(21),Il=fR(3),ol=fR(4),al=fR(5),cB=fR(6),jE=fR(7),dP=fR(8),Q0=fR(9);var o3=H1Y("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var oq=[Dx(5),Dx(5),Dx(5)].join("%2C"),c6=[fR(3),fR(5),fR(5)].join("%2C"),Sv=Dx(0),$p=Dx(1),ZR=Dx(10),hZ=Dx(108),Uc=Dx(11),PJ=Dx(12),P6=Dx(13),o2=Dx(14),ua=Dx(15),oX=Dx(16),aG=Dx(17),F9=Dx(18),qU=Dx(19),SR=Dx(2),b6=Dx(20),PB=Dx(22),uF=Dx(23),TJ=Dx(24),yV=Dx(266),QV=Dx(3),FV=Dx(30),K4=Dx(34),Jr=Dx(35),jo=Dx(36),Vm=Dx(4),C4=Dx(40),FE=Dx(43),pH=Dx(47),Ms=Dx(5),Wn=Dx(6),nw=Dx(7),AZ=Dx(75),Mo=Dx(8),Ja=Dx(80),rx=Dx(9),y3="https://www."+Dx(12)+".com",tP={},CY={},XH={},hvZ={},E8={},jw={},l5={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:n}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:f},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Dx(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:f},{key:"client.name",value:"WEB"},{key:"client.fexp",value:n}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:S5+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Dx(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:C4,ypcGetOfflineUpsellEndpoint:{params:Ja}},trackingParams:Jr+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&cnr="+cH+"&ratebypass=yes&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&c=WEB&txp="+jE+"&n="+z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:BH,width:640,height:360,lastModified:gP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jE,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+c6+"&mn="+
oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&cnr="+cH+"&ratebypass=yes&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&c=WEB&txp="+jE+"&n="+z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+hZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:BH,width:1280,
height:720,lastModified:gP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jE,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+oq+"&ms="+
oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:wu,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:wu,approxDurationMs:jE},{itag:248,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+oq+"&ms="+oq+"&mv="+
$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:wu,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:wu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:399,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:wu,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:wu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:136,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:wu,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BH,approxDurationMs:jE},{itag:247,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+
oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:wu,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:398,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+Q0+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:wu,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:Q0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:135,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:BH,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BH,approxDurationMs:jE},{itag:244,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+
oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+hZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:BH,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:397,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:BH,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:134,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:BH,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BH,highReplication:!0,approxDurationMs:jE},{itag:243,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:BH,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:396,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:BH,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:133,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:BH,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BH,approxDurationMs:jE},{itag:242,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+
oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:BH,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:395,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:BH,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:160,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:BH,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:y0,approxDurationMs:jE},{itag:278,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+c6+"&mn="+
oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:BH,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:394,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&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="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=video%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:y0,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jE},{itag:140,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=audio%2Fmp4&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:BH,
initRange:{start:"0",end:"631"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BH,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jE,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+
cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=audio%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+jE+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:y0,initRange:{start:"0",end:"265"},indexRange:{start:Il,
end:ol},lastModified:gP,contentLength:jE,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:y0,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jE,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=audio%2Fwebm&ns="+
TJ+"&gir="+QV+"&clen="+jE+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:y0,initRange:{start:"0",end:"265"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:jE,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:y0,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jE,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ed+".googlevideo.com/videoplayback?expire="+wP+"&ei="+A+"&ip="+mY+"&id=o-AF"+FE+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+c6+"&mn="+oq+"&ms="+oq+"&mv="+$p+"&mvi="+rZ+"&pl="+cH+"&initcwndbps="+jE+"&siu="+rZ+"&spc="+x+"&vprv="+rZ+"&svpuc="+rZ+"&mime=audio%2Fwebm&ns="+TJ+"&gir="+QV+"&clen="+dP+"&dur="+dP+"&lmt="+gP+"&mt="+wP+"&fvip=3&keepalive="+QV+"&c=WEB&txp="+
jE+"&n="+oX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:BH,initRange:{start:"0",end:"265"},indexRange:{start:Il,end:ol},lastModified:gP,contentLength:dP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BH,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jE,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="+Q0+"&docid="+G+"&ei="+A+"&feature="+Q+"&fexp="+Sv+"&ns="+SR+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$p+"&el="+ZR+"&len="+ol+"&of="+PB+
"&uga="+cH+"&vm="+yV},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Q0+"&docid="+G+"&ei="+A+"&feature="+Q+"&fexp="+Sv+"&ns="+SR+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$p+"&el="+ZR+"&len="+ol+"&of="+PB+"&uga="+cH+"&vm="+yV},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Q0+"&docid="+G+"&ei="+A+"&feature="+Q+"&fexp="+Sv+"&ns="+SR+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
$p+"&el="+ZR+"&len="+ol+"&of="+PB+"&uga="+cH+"&vm="+yV},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+A+"&m="+NU+"&oid="+PB+"&plid="+z+"&pltype="+nw+"&ptchn="+PB+"&ptk="+d+"&video_id="+G},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Q0+"&docid="+G+"&ei="+A+"&event="+o2+"&feature="+Q+"&fexp="+Sv+"&ns="+SR+"&plid="+z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$p},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+G+"&ei="+A+"&feature="+
Q+"&len="+ol+"&ns="+SR+"&plid="+z+"&ver="+rZ,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+G+"&caps="+QV+"&opi="+Q0+"&xoaf="+rZ+"&hl="+SR+"&ip="+mY+"&ipbits="+rZ+"&expire="+wP+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+mY+"&key="+QV+"&lang="+oY,name:{simpleText:rx},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+G+"&caps="+QV+"&opi="+Q0+"&xoaf="+rZ+"&hl="+SR+"&ip="+mY+"&ipbits="+rZ+"&expire="+wP+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+mY+"&key="+QV+"&kind="+QV+"&lang="+SR,name:{simpleText:F9},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:Uc,title:P6,lengthSeconds:"1155",keywords:[o2,ZR,Vm,Mo],
channelId:TJ,isOwnerViewing:!1,shortDescription:F9,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+K4,width:168,height:94},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+K4,width:196,height:110},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
G+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:jE,author:P6,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:jE,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+PB+"/featured_channel.jpg?v="+Mo,width:40,height:40}]},trackingParams:Jr+"=",navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"/channel/"+TJ,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:TJ}},channelName:P6,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:b6}]},subscribed:!1,enabled:!0,type:"FREE",channelId:TJ,showPreferences:!1,subscribedButtonText:{runs:[{text:PJ}]},unsubscribedButtonText:{runs:[{text:P6}]},trackingParams:Jr+"=",unsubscribeButtonText:{runs:[{text:P6}]},serviceEndpoints:[{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[TJ],params:Mo}},{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:C4,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jr+"=",dialogMessages:[{runs:[{text:aG},{text:F9},{text:ZR}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:b6}]},serviceEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[TJ],params:Mo}},accessibility:{label:P6},trackingParams:Jr+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nw}]},accessibility:{label:PJ},trackingParams:Jr+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Mo}},unsubscribeAccessibility:{accessibilityData:{label:qU}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:dP},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[TJ],params:Mo}},unsubscribeCommand:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[TJ],params:Mo}},addToWatchLaterCommand:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Uc,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Uc}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+G+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+jo+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
G+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Uc,width:1280,height:720},title:{simpleText:rx},description:{simpleText:F9},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+nw,externalChannelId:TJ,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:jE,category:"Travel & Events",publishDate:kf,ownerChannelName:P6,uploadDate:kf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Vm},trackingParams:Jr+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:C4,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Jr+"="}}],headerText:{simpleText:Ms},icon:{infoCardIconRenderer:{trackingParams:Jr+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Jr+"="}},trackingParams:Jr+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Jr+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Uc+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:o3,interpreterSafeUrl:(tP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+FV+".js",tP),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ZR},{text:rx,bold:!0}]},endpoint:{clickTrackingParams:C4,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:Jr+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:rx}]},actionButton:{buttonRenderer:{text:{runs:[{text:b6}]},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+G,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
G,target:"TARGET_NEW_WINDOW"}},trackingParams:Jr+"="}},trackingParams:Jr+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+wZ+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+wZ+"=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:jE,endMs:jE,title:{accessibility:{accessibilityData:{label:ZR}},simpleText:oX},metadata:{simpleText:ua},callToAction:{simpleText:oX},dismiss:{simpleText:ZR},endpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"/channel/"+TJ,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:TJ}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ZR}]},subscribed:!1,enabled:!0,type:"FREE",channelId:TJ,showPreferences:!1,
subscribedButtonText:{runs:[{text:qU}]},unsubscribedButtonText:{runs:[{text:aG}]},trackingParams:Jr+"=",unsubscribeButtonText:{runs:[{text:aG}]},serviceEndpoints:[{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[TJ],params:Mo}},{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:C4,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jr+
"=",dialogMessages:[{runs:[{text:Uc},{text:Wn},{text:o2}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:b6}]},serviceEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[TJ],params:Mo}},accessibility:{label:aG},trackingParams:Jr+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ua}]},
accessibility:{label:b6},trackingParams:Jr+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:PJ}},unsubscribeAccessibility:{accessibilityData:{label:oX}}}},trackingParams:Jr+"=",isSubscribe:!0,id:WH}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+W,width:168,height:94},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+K4,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+G+"/hqdefault.jpg?sqp=-oaymwE"+jo+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+G+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:jE,endMs:jE,title:{accessibility:{accessibilityData:{label:Uc}},simpleText:oX},metadata:{simpleText:nw},endpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Uc,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Uc,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ed+".googlevideo.com/videoplayback?source=youtube&oeis="+rZ+"&c=WEB&oad="+ol+"&ovd="+ol+"&oaad="+al+"&oavd="+al+"&ocs="+Il+"&oewis="+rZ+"&oputc="+rZ+"&ofpcc="+rZ+"&siu="+rZ+"&msp="+rZ+"&odepv="+rZ+
"&id=o-AF"+FE+"&ip="+mY+"&initcwndbps="+jE+"&mt="+wP+"&oweuc="+Sv}}}}},trackingParams:Jr+"=",id:WH,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Wn}},simpleText:ZR},style:"DEFAULT"}}]}}],startMs:jE,trackingParams:Jr+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:rZ,offsetEndMilliseconds:al},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";ord="+wP+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+Il+";dc_sk="+rZ+";dc_ctype="+cH+";dc_ref=http://www.youtube.com/video/"+Uc+";dc_pubid="+rZ+";dc_btype=23?gclid="+Bn+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+rZ+"&ns="+rZ+"&event="+rZ+"&device="+rZ+"&content_v="+G+"&el="+ZR+"&ei="+A+"&devicever="+f+"&bti="+jE+"&format="+cB+"&break_type="+rZ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+rZ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+mY+"&slot_pos="+rZ+"&slot_len="+rZ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+c6+"&ad_len="+al+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Uc+"&aqi="+A+"&ad_rmp="+rZ+"&sli="+rZ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+
";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+jE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&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"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&ctype="+Il+"&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"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_engaged_view&ctype="+Il+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+uX+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+rZ+"&dc_exteid="+WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+rZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&avm="+rZ+"&dc_pubid="+rZ+"&dc_exteid="+
WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&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="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
y+"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+rZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+rZ+"&dc_exteid="+WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:C4,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+
Il+"&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/"+G+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jr+"="},trackingParams:Jr+
"=",templatedCountdown:{templatedAdText:{text:o2,isTemplated:!0,trackingParams:Jr+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ua,isTemplated:!1,trackingParams:Jr+"="},trackingParams:Jr+"="}},trackingParams:Jr+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jr+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:b6},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ZR,isTemplated:!1,trackingParams:Jr+"="},trackingParams:Jr+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:PJ,isTemplated:!0,trackingParams:Jr+"="}},trackingParams:Jr+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:C4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(CY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+SR+"&origin=www.youtube.com&ata_theme="+Vm,CY),trackingParams:Jr+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Jr+"="}},hoverText:{runs:[{text:qU}]},trackingParams:Jr+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jr+"="},headline:{text:F9,isTemplated:!1,trackingParams:Jr+"="},description:{text:Wn,
trackingParams:Jr+"="},actionButton:{buttonRenderer:{text:{simpleText:ua},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"="}},startMs:rZ,trackingParams:Jr+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ms},elementId:P6}},elementId:qU,trackingParams:Jr+"=",legacyInfoCardVastExtension:Mo,sodarExtensionData:{siub:rx,bgub:Uc,scs:P6,bgp:Vm},externalVideoId:Uc,adLayoutLoggingData:{serializedAdServingDataEntry:F9},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jr+"="},
headline:{text:b6,isTemplated:!1,trackingParams:Jr+"="},description:{text:ZR,isTemplated:!1,trackingParams:Jr+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ZR},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+
WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+
rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jr+"="}},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+
Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+
k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jr+"="},abandonCommands:{commands:[{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&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="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+
rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:C4,commandExecutorCommand:{commands:[{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:ZR,isTemplated:!1,trackingParams:Jr+
"="},trackingParams:Jr+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Uc},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+jE+";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="+Q0+";dc_trk_cid="+Q0+";ord="+wP+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+Il+";dc_sk="+rZ+";dc_ctype="+cH+";dc_ref=http://www.youtube.com/video/"+Uc+";dc_pubid="+rZ+";dc_btype=23?gclid="+Bn+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+rZ+"&ns="+rZ+"&event="+rZ+"&device="+rZ+"&content_v="+G+"&el="+ZR+"&ei="+A+"&devicever="+f+"&bti="+jE+"&format="+cB+"&break_type="+rZ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+rZ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+mY+"&slot_pos="+rZ+"&slot_len="+rZ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
c6+"&ad_len="+al+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Uc+"&aqi="+A+"&ad_rmp="+rZ+"&sli="+rZ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+
O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+jE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&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"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&ctype="+Il+"&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"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_engaged_view&ctype="+Il+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+
Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+rZ+"&dc_exteid="+WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+
"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+rZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&avm="+rZ+"&dc_pubid="+rZ+"&dc_exteid="+WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&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="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+uF+"&ad_cpn=[AD_CPN]&id="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+rZ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Wn+"&dc_pubid="+rZ+"&dc_exteid="+WH+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+
Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&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/"+G+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jr+"="},trackingParams:Jr+"=",templatedCountdown:{templatedAdText:{text:F9,isTemplated:!0,trackingParams:Jr+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ua,isTemplated:!1,trackingParams:Jr+"="},trackingParams:Jr+"="}},
trackingParams:Jr+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jr+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:qU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ZR,isTemplated:!1,trackingParams:Jr+"="},trackingParams:Jr+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:F9,
isTemplated:!0,trackingParams:Jr+"="}},trackingParams:Jr+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:C4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(XH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+SR+"&origin=www.youtube.com&ata_theme="+Vm,XH),trackingParams:Jr+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Jr+"="}},hoverText:{runs:[{text:b6}]},trackingParams:Jr+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ZZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jr+"="},headline:{text:Ms,isTemplated:!1,trackingParams:Jr+"="},description:{text:ua,trackingParams:Jr+"="},actionButton:{buttonRenderer:{text:{simpleText:Uc},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"="}},startMs:rZ,trackingParams:Jr+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:PJ},elementId:oX}},elementId:nw,trackingParams:Jr+"=",legacyInfoCardVastExtension:qU,sodarExtensionData:{siub:P6,bgub:rx,scs:P6,bgp:Ms},externalVideoId:Uc,adLayoutLoggingData:{serializedAdServingDataEntry:PJ},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ZZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jr+"="},headline:{text:Ms,
isTemplated:!1,trackingParams:Jr+"="},description:{text:Wn,isTemplated:!1,trackingParams:Jr+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:b6},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jr+"="}},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+
rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jr+"="},abandonCommands:{commands:[{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&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="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+cH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:C4,commandExecutorCommand:{commands:[{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:ua,isTemplated:!1,trackingParams:Jr+"="},trackingParams:Jr+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:P6},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rZ+";dc_exteid="+WH+";met="+rZ+";ecn"+rZ+"="+rZ+";etm1="+rZ+";eid1="+
jE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Uc}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:al,offsetEndMilliseconds:cB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+cH+"&token=ALHj"+I+"&index="+rZ+"&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="+f+"&m_pos_ms="+al}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:cB,offsetEndMilliseconds:cB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Il+"&token=ALHj"+I+"&index="+rZ+"&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="+
f+"&m_pos_ms="+cB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cB,offsetEndMilliseconds:cB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Il+"&token=ALHj"+I+"&index="+rZ+"&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="+
f+"&m_pos_ms="+cB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cB,offsetEndMilliseconds:cB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Il+"&token=ALHj"+I+"&index="+rZ+"&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="+
f+"&m_pos_ms="+cB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cB,offsetEndMilliseconds:cH},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+Il+"&token=ALHj"+I+"&index="+rZ+"&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="+
f+"&m_pos_ms="+cB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:cH,offsetEndMilliseconds:cH},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+A+"&m_pos="+cH+"&token=ALHj"+I+"&index="+rZ+"&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="+
f+"&m_pos_ms="+cH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aG,isTemplated:!1,trackingParams:Jr+"="},description:{text:Ms,isTemplated:!1,trackingParams:Jr+"="},actionButton:{buttonRenderer:{text:{simpleText:nw},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pH+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Jr+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sd+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jr+"="},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+
";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:C4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(hvZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+SR+"&origin=www.youtube.com&ata_theme="+Vm,hvZ),trackingParams:Jr+"="}},popupType:"DIALOG"}},trackingParams:Jr+"="}},hoverText:{runs:[{text:PJ}]},trackingParams:Jr+"="}},adVideoId:Uc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aG},associatedCompositePlayerBytesLayoutId:oX}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:P6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:nw,isTemplated:!1,trackingParams:Jr+"="},description:{text:Mo,isTemplated:!1,trackingParams:Jr+"="},actionButton:{buttonRenderer:{text:{simpleText:Uc},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+
k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ZZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jr+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+AZ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jr+"="},navigationEndpoint:{clickTrackingParams:C4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+
rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:C4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(E8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+SR+"&origin=www.youtube.com&ata_theme="+Vm,E8),trackingParams:Jr+"="}},popupType:"DIALOG"}},trackingParams:Jr+"="}},
hoverText:{runs:[{text:Uc}]},trackingParams:Jr+"="}},adVideoId:Uc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+Uc+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Uc},associatedCompositePlayerBytesLayoutId:oX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:P6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Mo,
isTemplated:!1,trackingParams:Jr+"="},description:{text:ZR,isTemplated:!1,trackingParams:Jr+"="},actionButton:{buttonRenderer:{text:{simpleText:Vm},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+
cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+
W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jr+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jr+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sd+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jr+
"="},navigationEndpoint:{clickTrackingParams:C4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Q0+";dc_trk_cid="+Q0+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rZ+";ord="+Q0+";dc_rui="+rZ+";dc_exteid="+WH+";dc_av="+rZ+";dc_sk="+rZ+";dc_ctype="+cH+";dc_pubid="+rZ+";dc_btype=3?gclid="+Bn+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+F+"____________"+k+"AxAA&ase=2&num="+rZ+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+y3+"&label=video_click_to_advertiser_site&ctype="+Il+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jr+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:C4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+SR+"&origin=www.youtube.com&ata_theme="+Vm,jw),trackingParams:Jr+"="}},popupType:"DIALOG"}},trackingParams:Jr+
"="}},hoverText:{runs:[{text:P6}]},trackingParams:Jr+"="}},adVideoId:Uc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+F+"____________"+k+"AxAA&sigh="+G+"&cid="+O+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Wn},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:oX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qU}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:FV,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:FV,command:{innertubeCommand:{clickTrackingParams:C4,ypcGetOfflineUpsellEndpoint:{params:Ja}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Jr+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:wP,nanos:lF}}}},z6d=JSON.stringify(l5),Gf=performance.now()-V;return{objectRepresentation:l5,jsonRepresentation:z6d,generationTime:Gf}};
wX9=function(V,D){if(V===D)return!0;if(!V||!D||typeof V!==typeof D)return!1;if(V instanceof Array&&D instanceof Array){if(V.length!==D.length)return!1;for(var f=0;f<V.length;f++)if(!wX9(V[f],D[f]))return!1;return!0}if(typeof V==="object"&&typeof D==="object"&&V&&D){for(f in V)if(!(f in D&&wX9(V[f],D[f])))return!1;for(var n in D)if(!(n in V))return!1;return!0}return!1};
_.oB=function(){if(!Po){Po=new Qh(new QCU);var V=_.tU("client_streamz_web_flush_count",-1);V!==-1&&(Po.invocationLimit=V)}return Po};
JP=function(V,D,f,n){if(V===D)return!0;if(Array.isArray(V)&&Array.isArray(D)){if(V.length!==D.length)return!1;for(var t=0;t<V.length;t++)if(!JP(V[t],D[t],f,n))return!1;return!0}if(V instanceof Set||D instanceof Set){if(V instanceof Set&&D instanceof Set){if(V.size!==D.size)return!1;n=_.r(V.values());for(t=n.next();!t.done;t=n.next())if(!D.has(t.value))return!1;return!0}return!1}if(V instanceof Function){if(n)return!0;V.name===""&&_.NG(Error("Nf"),"ERROR");return!1}if(V instanceof Date&&D instanceof
Date)return V.getTime()===D.getTime();if(V instanceof Object&&D instanceof Object){if(TCZ(V)&&TCZ(D))try{return V.equals(D)}catch(H){_.NG(Error("Of`"+H),"ERROR")}t=Object.getOwnPropertyNames(V).filter(function(H){return f?V[H]!==void 0:!0});
var J=Object.getOwnPropertyNames(D).filter(function(H){return f?D[H]!==void 0:!0});
if(t.length!==J.length)return!1;t=_.r(t);for(J=t.next();!J.done;J=t.next())if(J=J.value,!JP(V[J],D[J],f,n))return!1;return!0}return!1};
TCZ=function(V){V=Object.getPrototypeOf(V).equals;return V instanceof Function&&V.length===1};
_.y5x=function(){return _.w(function(V){if(V.nextAddress==1)return b1L!==2?V.jumpTo(2):_.b(V,Kpc(),3);V.nextAddress!=2&&(b1L=V.yieldResult);return V.return(b1L)})};
_.l$R=function(){return _.w(function(V){if(V.nextAddress==1)return _.c("ab_pl_man")?Z1Y!==2?V.jumpTo(2):_.b(V,jC9(),3):V.return(1);V.nextAddress!=2&&(Z1Y=V.yieldResult);return V.return(Z1Y)})};
c5n=function(){return _.w(function(V){if(V.nextAddress==1)return _.c("ab_fk_sk_cl")?Gbc!==2?V.jumpTo(2):_.b(V,erZ(),3):V.return(1);V.nextAddress!=2&&(Gbc=V.yieldResult);return V.return(Gbc)})};
_.vmc=function(){return _.w(function(V){if(V.nextAddress==1)return _.c("ab_det_apb_b")?Fp9!==2?V.jumpTo(2):_.b(V,gmF(),3):V.return(1);V.nextAddress!=2&&(Fp9=V.yieldResult);return V.return(Fp9)})};
BCZ=function(){var V;return _.w(function(D){if(D.nextAddress==1)return _.b(D,Promise.all([_.y5x(),_.vmc(),_.l$R(),c5n()]),2);if(D.nextAddress!=3)return kbx()?D.return(!0):_.b(D,_.sC9(),3);V=D.yieldResult;return D.return(V===0)})};
kbx=function(){var V=!1,D=function(f,n){ddX.increment(n,f);f===0&&(V=!0)};
D(_.u_x(),"j.s_");D(b1L,"f.i_");D(Fp9,"a.b_");D(Z1Y,"p.m_");D(Gbc,"i.f_");NCx===2&&(NCx=_.mdd(zr9));D(NCx,"e.h_");_.c("ks_det_gpbl")||D(_.Rrc(),"p.i_");_.c("ks_get_o_pp")||D(_.CVn(),"g.o_");_.c("ab_deg_unex_thr")||D(_.qYX(),"a.o_");D(XX9,"s.t_");_.c("ab_det_sc_inj_enf")&&D(_.Em3(),"s.i_");D(A53,"d.p_");D(_.a$U(_.rU),"o.p_");D(_.YYZ()===0?0:_.$dF(),"o.a_");return _.c("debug_sk_em_precheck")?!0:V};
SYd=function(){var V=[].concat(_.sz(i1c));try{var D=nR();V.push({jsonRepresentation:D.jsonRepresentation,objectRepresentation:D.objectRepresentation})}catch(f){V=[].concat(_.sz(i1c))}return V};
Wp3=function(){var V=["adPlacements","adSlots"];try{return V.filter(function(){return!0}).length!==V.length?0:1}catch(D){return 0}};
_.CVn=function(){if(Wp3()===0)return 0;var V=nR(),D=V.objectRepresentation,f=(0,_.sB.unsafeClone)(D),n=[];if(D&&typeof D==="object")for(var t in D)n.push(t);else return 4;V=V.objectRepresentation.adPlacements;if(!(V&&V.length>0))return 4;try{if(!wX9(n,Object.getOwnPropertyNames(D)))return 0}catch(J){return 0}return wX9(f,D)?1:0};
_.a$U=function(V){if(!V||!V.length||typeof V==="string")return 0;for(var D=Object.getOwnPropertyNames(Object.prototype),f=0;f<V.length;f++)for(var n=_.Ul(V[f]),t=_.r(D),J=t.next();!J.done;J=t.next())if(n===J.value)return 0;return 1};
pXZ=function(V){var D=_.Ul(V[1]);if(V[0]===null)return D;V=V[0];for(var f={},n=0;n<V.length;n++){var t=_.Ul(V[n]);if(n===0)f[t]=D;else{var J={};J[t]=f;f=J}}return f};
_.YYZ=function(){for(var V=_.Ho,D=0;D<V.length;D++){var f=pXZ(V[D]),n=[];n.push(f);if(n.length===0)return 0}return 1};
_.$dF=function(){for(var V=_.Ho,D={},f=0;f<V.length;D={mr3:void 0},f++){var n=[pXZ(V[f])];D.mr3=[];n.forEach(function(t){return function(J){t.mr3[t.mr3.length]=J}}(D));
if(D.mr3.length===0)return 0}return 1};
_.u_x=function(){for(var V=_.r(SYd()),D=V.next();!D.done;D=V.next()){var f=D.value;D=f.jsonRepresentation;f=f.objectRepresentation;try{var n=JSON.parse(D);if(!JP(n,f,!1,!1))return 0}catch(t){return 0}}return 1};
_.Em3=function(){try{var V=_.oT("ab_det_sc_inj_val");V.length===1&&V[0]===""&&(V=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var D=document.querySelectorAll("script"),f=_.r(D),n=f.next();!n.done;n=f.next())for(var t=n.value,J=_.r(V),H=J.next();!H.done;H=J.next()){var Q=H.value;D=void 0;if((D=t.textContent)==null?0:D.includes(Q))return 0}}catch(T){return 4}return 1};
_.sC9=function(){var V,D,f,n,t,J,H;return _.w(function(Q){switch(Q.nextAddress){case 1:_.wx(Q,2),V=_.r(i1c),D=V.next();case 4:if(D.done)return Q.return(1);n=f=D.value;t=n.jsonRepresentation;J=n.objectRepresentation;return _.b(Q,(new Response(t,{status:200})).json(),7);case 7:H=Q.yieldResult;if(!JP(H,J,!1,!1))return Q.return(0);D=V.next();Q.jumpTo(4);break;case 2:return _.KW(Q),Q.return(4)}})};
_.qYX=function(){try{btoa("abc")}catch(V){return 0}return 1};
Kpc=function(){var V,D,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:_.wx(l,2),V=_.r(SYd()),D=V.next();case 4:if(D.done)return l.return(1);n=f=D.value;t=n.jsonRepresentation;J=n.objectRepresentation;H=btoa(t);Q="data:application/json;base64,"+H;T=new Request(Q);Object.defineProperty(T,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(T,"method",{get:function(){return"POST"}});
Object.defineProperty(T,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(T,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(T,"body",{get:function(){return new ReadableStream}});
return _.b(l,fetch(T),7);case 7:return y=l.yieldResult,_.b(l,y.json(),8);case 8:Z=l.yieldResult;if(!JP(Z,J,!1,!1))return l.return(0);D=V.next();l.jumpTo(4);break;case 2:return _.KW(l),l.return(4)}})};
_.mdd=function(V){if(!V||!V.length||typeof V==="string")return 0;for(var D=function(t){return _.Ul(t)},f=2,n=0;n<V.length&&(f=_.LpY(_.r53(V[n],D)),f!==0);n++);
return f};
_.LpY=function(V){var D=_.r(V);V=D.next().value;D=D.next().value;try{var f=document.createElement("div");document.body.appendChild(f);var n=getComputedStyle(f).display;document.body.removeChild(f);if(n==="none")return 4;var t=getComputedStyle(D).display==="none"?0:1;document.body.removeChild(V);return t}catch(J){return 4}};
erZ=function(){var V,D,f;return _.w(function(n){V=new _.wU;D=document.createElement("button");D.classList.add("ytp-ad-skip-button");D.style.opacity="0";D.style.height="0px";D.style.width="0px";D.style.padding="0px";D.style.border="none";f=function(){D.parentElement&&D.parentElement.removeChild(D)};
D.onclick=function(){V.resolve(0);f()};
document.body.appendChild(D);setTimeout(function(){f();V.resolve(1)},50);
return n.return(V.promise)})};
jC9=function(){var V,D,f,n,t,J,H;return _.w(function(Q){V=new _.wU;D=document.createElement("ytd-player");try{document.body.prepend(D)}catch(T){return Q.return(4)}f=function(){D.parentElement&&D.parentElement.removeChild(D)};
D.getElementsByTagName("div").length>0?n=D.getElementsByTagName("div")[0]:(n=document.createElement("div"),D.appendChild(n));t=document.createElement("div");n.appendChild(t);J=document.createElement("video");H=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"});J.src=_.y2(_.Ft(H));J.ontimeupdate=function(){f();V.resolve(0)};
t.appendChild(J);J.classList.add("html5-main-video");setTimeout(function(){t.classList.add("ad-interrupting")},200);
setTimeout(function(){f();V.resolve(1)},5E3);
return Q.return(V.promise)})};
I$d=function(V,D){var f,n;return _.w(function(t){switch(t.nextAddress){case 1:f=[],n=0;case 2:if(!(n<3)){t.jumpTo(4);break}return _.b(t,fetch(V,{cache:"no-store",method:D}).then(function(J){f.push(J.status)}).catch(function(){f.push(-1)}),3);
case 3:n++;t.jumpTo(2);break;case 4:return t.return(f)}})};
O1c=function(V){return V.domainLookupStart===0&&V.domainLookupEnd===0&&V.connectStart===0&&V.connectEnd===0};
xd9=function(V,D,f){f=f===void 0?"GET":f;var n,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){if(F.nextAddress==1)return _.b(F,Promise.all([I$d(V,f),I$d(D,f)]),2);n=F.yieldResult;t=_.r(n);J=t.next().value;H=t.next().value;Q=J;T=H;if(Math.min.apply(Math,_.sz(T))!==Math.max.apply(Math,_.sz(T))||Math.min.apply(Math,_.sz(Q))!==Math.max.apply(Math,_.sz(Q)))return F.return(2);if(Math.min.apply(Math,_.sz(T))===Math.min.apply(Math,_.sz(Q)))return F.return(1);Z=(y=performance.getEntriesByName(V))==null?void 0:y[0];
G=(l=performance.getEntriesByName(D))==null?void 0:l[0];return Z&&G?O1c(G)?F.return(1):O1c(Z)?F.return(0):F.return(1):F.return(2)})};
gmF=function(){var V;return _.w(function(D){var f=[];var n;var t,J,H;(t=n=(t=nR().objectRepresentation.streamingData)==null?void 0:(J=t.formats)==null?void 0:(H=J[0])==null?void 0:H.url)&&t&&!n.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(t=t.replace("initcwndbps","ctier=L&initcwndbps"),t=t.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),n={testUrl:t,baseUrl:n,method:"GET"}):n=void 0;n&&f.push(n);_.c("ab_net_tp_e")&&f.push({testUrl:_.fx.location.origin+"/ad_companion",baseUrl:_.fx.location.origin+
"/generate_204",method:"OPTIONS"});if(_.c("ad_net_pb_ab")){var Q;b:{n=/api\/stats\/ads/;var T,y,Z,l;t=(Q=nR().objectRepresentation.adPlacements)==null?void 0:(T=Q[0])==null?void 0:(y=T.adPlacementRenderer)==null?void 0:(Z=y.renderer)==null?void 0:(l=Z.linearAdSequenceRenderer)==null?void 0:l.linearAds;if(t!=null&&t.length&&(Q=_.g(t[0],M2X))&&(Q=Q.pings,Q!=null&&Q.impressionPings))for(T=[].concat(_.sz(Q.impressionPings)),Q.progressPings&&(T=[].concat(_.sz(T),_.sz(Q.progressPings))),Q=_.r(T),T=Q.next();!T.done;T=
Q.next())if(T=T.value,T.baseUrl&&n.test(T.baseUrl)){Q=T.baseUrl.replace("https://www.youtube.com","");break b}Q=void 0}Q&&f.push({testUrl:_.fx.location.origin+Q,baseUrl:_.fx.location.origin+"/feed/download",method:"GET"})}if(_.c("ad_net_pb_pbp")){var G;b:{Q=/api\/stats\/qoe/;if(T=nR().objectRepresentation.playbackTracking){y=[];y.push(T==null?void 0:(G=T.videostatsPlaybackUrl)==null?void 0:G.baseUrl);var F;y.push(T==null?void 0:(F=T.videostatsDelayplayUrl)==null?void 0:F.baseUrl);var k;y.push(T==
null?void 0:(k=T.videostatsWatchtimeUrl)==null?void 0:k.baseUrl);var d;y.push(T==null?void 0:(d=T.ptrackingUrl)==null?void 0:d.baseUrl);var z;y.push(T==null?void 0:(z=T.qoeUrl)==null?void 0:z.baseUrl);var C;y.push(T==null?void 0:(C=T.atrUrl)==null?void 0:C.baseUrl);G=_.r(y);for(F=G.next();!F.done;F=G.next())if((F=F.value)&&Q.test(F)){G=F.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}G=void 0}G&&f.push({testUrl:_.fx.location.origin+G,baseUrl:_.fx.location.origin+
"/feed/download",method:"GET"})}f=f.length!==0?f[Math.floor(Math.random()*f.length)]:void 0;return(V=f)?D.return(xd9(V.testUrl,V.baseUrl,V.method)):D.return(4)})};
_.Rrc=function(){if(_.fx.vOL===void 0||_.fx.vOL===null||typeof _.fx.vOL!=="function")return 2;try{return _.fx.vOL()===!0?0:1}catch(V){return 0}};
hrF=function(V){switch(V){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.JZ(V,"unknown result type")}};
_.UdY=function(V,D){var f=Number(_.XB("CATSTAT",0));if(D.oBC===void 0)return f;D=D.oBC;V=hrF(V);return f&~(3<<D)|V<<D};
VH3=function(V){var D,f;if((V=(D=V.auxiliaryUi)==null?void 0:(f=D.messageRenderers)==null?void 0:f.bkaEnforcementMessageViewModel)&&V.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return V};
f69=function(){for(var V=_.r(Object.values(_.DC9)),D=V.next();!D.done;D=V.next())D=D.value,D.isAsync&&D.oBC&&_.ql("CATSTAT",_.UdY(2,D))};
_.KR=function(V,D){V=_.Qu("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",V);(D===void 0?0:D)?_.nLc(V,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.T_(_.bd(),V,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
PzX=function(){if(!tH9){if(Polymer.Base){var V=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{V.apply(this,arguments)}catch(l){_.Ah(l)}};
var D=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{D.apply(this,arguments)}catch(l){_.Ah(l)}};
var f=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{f.apply(this,arguments)}catch(l){_.Ah(l)}};
var n=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{n.apply(this,arguments)}catch(l){_.Ah(l)}};
var t=Polymer.Base._listen,J=new WeakMap;Polymer.Base._listen=function(l,G,F){var k=function(){try{F.apply(this,arguments)}catch(d){_.Ah(d)}};
J.set(F,k);t.call(this,l,G,k)};
var H=Polymer.Base._unlisten;Polymer.Base._unlisten=function(l,G,F){H.call(this,l,G,J.get(F))}}if(Polymer.Async){var Q=Polymer.Async,T=Q._atEndOfMicrotask;
Q._atEndOfMicrotask=function(){try{T.apply(Q,arguments)}catch(l){_.Ah(l)}}}if(Polymer.RenderStatus){var y=Polymer.RenderStatus,Z=y.afterNextRender;
y.afterNextRender=function(l,G,F){Z.call(y,l,function(){try{G.apply(this,arguments)}catch(k){_.Ah(k)}},F)}}tH9=!0}};
_.yu=function(V){var D=V?_.Qx(V):"";if(D){if(D.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(D.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(D.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(D.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(D.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.c("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(D.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";D=D.toLowerCase();if(D==="/")return"home";if(D==="/channel_memberships")return"channel-memberships-shopfront";if(D.indexOf("/feed/trending")===0)return"trending";if(D.indexOf("/feed/explore")===0)return"explore";if(D.indexOf("/live")===0)return"live";if(D.indexOf("/results")===0)return"search";if(D.indexOf("/sports")===0)return"sports";if(D.indexOf("/fashion")===0||D.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(D))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(D))return _.c("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(D.indexOf("/channel/")===0||D.indexOf("/user/")===0||D.indexOf("/gaming")===0||D.indexOf("/post/")===0)return"channel";if(oLY(V))return"show";if(D==="/playlist"||D.indexOf("/playlist/")===0||D==="/view_play_list"||D.indexOf("/view_play_list/")===0||D.indexOf("/show/")===0)return"playlist";if(D==="/feed/history"||D.indexOf("/feed/history/")===0)return"history";if(D===
"/new")return"labs";if(D==="/feed/subscriptions")return"subscriptions";if(D.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(D==="/history_controls")return"standalone";if(D.indexOf("/account")===0||D==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(D.indexOf("/paid_memberships")===0||D.indexOf("/refund")===0||D.indexOf("/purchases")===0||D.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(D.indexOf("/product")===0)return"yts-products";if(D.indexOf("/premium")===
0||D.indexOf("/musicpremium")===0)return D.indexOf("/premium/offers")===0||D.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(D==="/cart/checkout"||D==="/cart")return"ypc-checkout";if(D.indexOf("/feed/downloads")===0||D.indexOf("/redeem")===0||D.indexOf("/reporthistory")===0)return"browse";if(D.indexOf("/hashtag")===0)return"hashtag-landing-page";if(D.indexOf("/handle")===0)return"handle";if(D.indexOf("/source")===0)return"audio-pivot";if(D.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(D.indexOf("/playables")===0)return"playables";if(D.indexOf("/create/live/join")===0)return"open-in-app";if(D.indexOf("/shorts")===0)return"shorts";if(D.indexOf("/feed/channels")===0)return"subscriptions-channels";(D=V?_.Qx(V):"")&&D.indexOf("/watch")===0&&_.c("web_watch_enable_learning_journey")?(V=_.pZ(V),V=!!V.list&&V.list.indexOf("LJPP")===0):V=!1;if(V)return"learning_journey_watch"}};
_.Zx=function(V){var D,f;(V=(f=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:f.url)&&(D=_.yu(V));return D};
oLY=function(V){var D=V?_.Qx(V):"";if(!D)return!1;D=D.toLowerCase();return D.indexOf("/show/")===0||D.indexOf("/playlist")===0&&(V=_.pZ(V),V.list&&V.list.indexOf("EL")===0)?!0:!1};
co=function(V){var D="unknown",f;var n=((f=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:f.webPageType)||"";n?(f=n.toLowerCase(),f.startsWith("web_page_type_")&&(f=f.slice(14))):f=n;f&&Jvn[f.toUpperCase()]?D=Jvn[f.toUpperCase()]:_.g(V,_.jL)||_.g(V,rv9)?D="browse":_.g(V,_.ld)?D="search":_.g(V,_.pl)&&(D="watch");D==="watch"&&_.Zx(V||null)==="learning_journey_watch"&&(D="learning_journey_watch");D==="unknown"&&_.zP(Error("Qf`"+JSON.stringify({clickTrackingParams:V==null?void 0:V.clickTrackingParams,
commandMetadata:V==null?void 0:V.commandMetadata,allEndpointKeys:Object.keys(V||[])})));return D};
_.FS=function(V){if(!_.HtR||V)_.HtR=_.Ki();return _.HtR};
_.wOn=function(V){return!!_.g(V,_.pl)||!!_.g(V,_.gU)&&_.c("kevlar_enable_shorts_prefetch")};
_.QK3=function(V,D){V=_.g(V,_.pl)||_.g(V,_.gU);return"v"+V.videoId+(V.playlistId?"-pl"+V.playlistId:"")+(D?"-an1":"")+(V.params?"-pr"+V.params:"")};
vo=function(V){return function(){return new V}};
k7=function(V){var D=_.DY();return function(){return D.resolve(V)}};
btX=function(V){var D=_.tU("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;if(!_.g(V,_.gU))return D&&_.zP(Error("Tf")),!1;var f;return _.c("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.g(V,_.gU))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:TMY(V)?!0:(D&&_.zP(Error("Uf")),!1)};
TMY=function(V){var D=(_.g(V,_.pl)||_.g(V,_.gU)).videoId;if(!D||!K9Z.test(D))return!1;var f;return(V=(f=_.g(V.commandMetadata,_.he))==null?void 0:f.url)&&(V.includes(D)||V.startsWith("/clip"))?!0:!1};
_.Ztn=function(){var V=_.Gm();return V.getFlag(192)?V.getFlag(190):!(_.c("web_watch_cinematics_disabled_by_default")||_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&yvX())};
_.ss=function(V,D,f){var n={};n.currentUrl=D;n.vis=V.vis!==void 0?V.vis:0;n.splay=!1;D=_.Gm();n.autoCaptionsDefaultOn=D.getFlag(66);D.getFlag(141)?D.getFlag(140)?n.autonavState="STATE_OFF":n.autonavState="STATE_ON":n.autonavState="STATE_NONE";n.html5Preference="HTML5_PREF_WANTS";isNaN(_.XB("STS"))||(n.signatureTimestamp=_.XB("STS"));V.autonav&&(n.autoplay=!0,n.autonav=!0);V.mutedAutoplay&&(n.autoplay=!0,n.mutedAutoplay=!0);V.inlinePlayback&&(n.autoplay=!0,n.autonav=!1,n.isInlineUnmutedPlayback=!!V.inlineUnmuted);
n.referer=f;n.lactMilliseconds=V.lact!==void 0?V.lact.toString():"-1";_.c("enable_unknown_lact_fix_on_html5")&&n.lactMilliseconds==="-1"&&_.zP(new _.cI("Unknown LACT is set in playbackContext.",{"lact in tempData":V.lact||"undefined",autonav:V.autonav||"undefined"}));V={};D.getFlag(194)&&(V.hasShownAmbientMode=!0);D.getFlag(192)&&(V.hasToggledOffAmbientMode=!0);_.Ztn()&&(V.watchAmbientModeEnabled=!0);n.watchAmbientModeContext=V;return n};
jKZ=function(V){var D={},f=V.pbis||0;f&&(D.playbackBeginsInSeconds=f);V.prefetch_reason&&V.prefetch_reason==="hc_pbis"&&(D.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return D};
_.dU=function(V){V=V===void 0?!1:V;var D=_.Gm(),f="USER_INTERFACE_THEME_LIGHT";D.getFlag(165)?f="USER_INTERFACE_THEME_DARK":D.getFlag(174)?f="USER_INTERFACE_THEME_LIGHT":_.Bo()&&(f="USER_INTERFACE_THEME_DARK");return V?f:l6Y()||f};
_.G0Y=function(){return!_.c("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Bo=function(){return _.G0Y()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.ud=function(){var V=_.Gm();return _.G0Y()&&!V.getFlag(165)&&!V.getFlag(174)};
l6Y=function(){var V=V===void 0?window.location.href:V;if(_.c("kevlar_disable_theme_param"))return null;var D=_.Qx(V);if(_.egZ(D))return"USER_INTERFACE_THEME_DARK";try{var f=_.pZ(V).theme;return cv9.get(f)||null}catch(n){}return null};
_.egZ=function(V){return _.c("enable_dark_theme_only_on_shorts")?!(V==null||!V.startsWith("/shorts/")):!1};
_.vLX=function(V,D,f,n,t){D=D===void 0?!1:D;f=f===void 0?!1:f;var J=_.XB("INNERTUBE_CONTEXT");if(!J)return _.NG(Error("Xf")),{};J=(0,_.sB.unsafeClone)(J);_.c("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var H=J.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=_.XB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints=window.innerHeight;H.screenPixelDensity=
Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());H.userInterfaceTheme=_.dU();if(!D){var Q=_.KIZ();Q&&(H.connectionType=Q);_.c("web_log_effective_connection_type")&&(Q=Zlc())&&(J.client.effectiveConnectionType=Q)}var T;if(_.c("web_log_memory_total_kbytes")&&((T=_.fx.navigator)==null?0:T.deviceMemory)){var y;T=(y=_.fx.navigator)==null?void 0:y.deviceMemory;J.client.memoryTotalKbytes=""+T*1E6}D&&n&&!_.c("web_it_context_set_original_url_ks")&&
(H.originalUrl=F9R(_.fx.location.href,n).toString());_.c("web_gcf_hashes_innertube")&&(Q=BNL())&&(y=Q.coldConfigData,T=Q.coldHashData,Q=Q.hotHashData,J.client.configInfo=J.client.configInfo||{},y&&(J.client.configInfo.coldConfigData=y),T&&(J.client.configInfo.coldHashData=T),Q&&(J.client.configInfo.hotHashData=Q));y=_.pZ(_.fx.location.href);!_.c("web_populate_internal_geo_killswitch")&&y.internalcountrycode&&(H.internalGeo=y.internalcountrycode);!_.c("web_populate_client_screen_killswitch")&&t&&(H.clientScreen=
t);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo||(H.mainAppWebInfo={}),H.mainAppWebInfo.graftUrl=n||_.fx.location.href,_.c("kevlar_woffle")&&_.NZ.instance&&(n=_.NZ.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!n.appInstalledEventFired&&n.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=GmY(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&
(!_.c("web_lr_app_quality_killswitch")&&(n=_.XB("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:n})),n=_.XB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:n}));!_.c("web_populate_time_zone_itc_killswitch")&&(n=T2Z())&&(H.timeZone=n);(n=zdR())?H.experimentsToken=n:delete H.experimentsToken;H=RdL();n=_.gLn();n=(0,_.sB.getValues)(n.tokenJars);J.request=Object.assign({},J.request,{internalExperimentFlags:H,consistencyTokenJars:n});
!_.c("web_prequest_context_killswitch")&&(H=_.XB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=H);n=_.Gm();H=n.getFlag(58);n=n.get("gsml","");J.user=Object.assign({},J.user);H&&(J.user.enableSafetyMode=H);n&&(J.user.lockedSafetyMode=!0);_.c("warm_op_csn_cleanup")?f&&(D=_.Ni())&&(J.clientScreenNonce=D):!D&&(D=_.Ni())&&(J.clientScreenNonce=D);V&&(J.clickTracking={clickTrackingParams:V});if(V=_.Yw("yt.mdx.remote.remoteClient_"))J.remoteClient=V;_.mR.getInstance().setLocationOnInnerTubeContext(J);
try{var Z=SEd(),l=Z.bid;delete Z.bid;J.adSignalsInfo={params:[],bid:l};for(var G=_.r(Object.entries(Z)),F=G.next();!F.done;F=G.next()){var k=_.r(F.value),d=k.next().value,z=k.next().value;Z=d;l=z;V=void 0;(V=J.adSignalsInfo.params)==null||V.push({key:Z,value:""+l})}var C,A;if(((C=J.client)==null?void 0:C.clientName)==="TVHTML5"||((A=J.client)==null?void 0:A.clientName)==="TVHTML5_UNPLUGGED"){var O=_.XB("INNERTUBE_CONTEXT");O.adSignalsInfo&&(J.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,
J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(W){_.NG(W)}return J};
_.k0Y=function(V){var D=new z_(_.XB("ONE_PICK_URL",""));D.urlParamMap_.set("hostId",V);(V=_.XB("GAPI_LOCALE"))&&D.urlParamMap_.set("hl",V);(V=_.XB("SESSION_INDEX"))&&D.urlParamMap_.set("authuser",V);(V=_.XB("DELEGATED_SESSION_ID"))&&D.urlParamMap_.set("groupId",V);return D};
BMn=function(){var V=_.DY(),D=V.resolve(_.RB);V=V.resolve(_.CR);return new sKc(D,V)};
uAx=function(V){if(window.IntersectionObserver)return new dCY(V,400);throw new TypeError("dg");};
mCU=function(){var V=Hammer.TouchAction,D=V.prototype.preventDefaults;V.prototype.preventDefaults=function(f){var n=this.actions.indexOf("pan-down")>-1;if(!n)return D.call(this,f);if(!NMR){var t=f.srcEvent;f=f.direction;var J;if((J=this.manager)==null?0:J.session.prevented)t.preventDefault();else if(n&&f&Hammer.DIRECTION_DOWN)return this.preventSrc(t)}}};
zgF=function(V){if(!V||V.size===0)return Hammer.DIRECTION_ALL;if(V.size===2){if(V.has("up")&&V.has("down"))return Hammer.DIRECTION_VERTICAL;if(V.has("right")&&V.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(V.size===1){if(V.has("up"))return Hammer.DIRECTION_UP;if(V.has("down"))return Hammer.DIRECTION_DOWN;if(V.has("right"))return Hammer.DIRECTION_RIGHT;if(V.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Czn=function(){return RgR?Promise.resolve(RgR):new Promise(function(V,D){var f=self.indexedDB.open("swpushnotificationsdb");f.onerror=D;f.onsuccess=function(){var n=f.result;if(n.objectStoreNames.contains("swpushnotificationsstore"))RgR=n,V(RgR);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Czn()};
f.onupgradeneeded=q63})};
q63=function(V){V=V.target.result;V.objectStoreNames.contains("swpushnotificationsstore")&&V.deleteObjectStore("swpushnotificationsstore");V.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
EL9=function(V){var D=XOL(),f;return _.w(function(n){switch(n.nextAddress){case 1:return _.wx(n,2),_.b(n,V.match(D,{cacheName:"yt-appshell-assets"}),4);case 4:f=n.yieldResult;_.YJ(n,3);break;case 2:_.KW(n);case 3:return n.return(f)}})};
XOL=function(){var V=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?AvY.registration.scope:a6d;V.endsWith("/")&&(V=V.slice(0,-1));return V+"/app_shell_home"};
Y6F=function(V){V.map(function(D){return D.source}).join("|")};
_.$Cc=function(V){return _.w(function(D){return D.return(EL9(V))})};
it3=function(){var V=window.caches,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,_.$Cc(V),2);D=f.yieldResult;return f.return(!!D)})};
xC3=function(){_.w(function(V){if(V.nextAddress==1){if(S6R)return V.jumpTo(0);S6R=!0;if(_.c("enable_system_health_primes_monitoring"))return _.HI(W9n,3E4),pOU(),V.return();if(!(Math.random()<_.tU("web_system_health_fraction")))return V.jumpTo(0);L93={heightPixels:screen.height,widthPixels:screen.width};qZ&&!isNaN(qZ.jsHeapSizeLimit)&&(L93.memoryTotalKbytes=String(Math.round(qZ.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(L93.devicePixelRatio=window.devicePixelRatio);return _.b(V,I6n(),4)}_.HI(W9n,
3E4);return _.b(V,OtU(),0)})};
I6n=function(){return _.w(function(V){if(V.nextAddress==1)return XS.intersectionObserverPresent="IntersectionObserver"in window,XS.serviceWorkerPresent="serviceWorker"in navigator,XS.webSharePresent="share"in navigator,XS.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,XS.cacheStoragePresent="caches"in window,XS.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,XS.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
XS.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Es&&Es.webkitTemporaryStorage&&"queryUsageAndQuota"in Es.webkitTemporaryStorage,XS.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.b(V,LIY(),2);XS.indexedDbPresent=V.yieldResult;XS.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;XS.broadcastChannelPresent="BroadcastChannel"in window;XS.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(XS.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,XS.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.yz(V)})};
W9n=function(){var V=9E4+Math.random()*2E3;_.Vf()>V||(_.c("enable_system_health_primes_monitoring")?pOU():OtU())};
OtU=function(){var V;return _.w(function(D){if(D.nextAddress==1)return _.b(D,MHn(),2);V=D.yieldResult;_.dq("systemHealthCaptured",V);_.yz(D)})};
pOU=function(){var V={metric:{}},D=hgX();D.networkEvents.length&&(V.metric.networkEvents=UCx(D));_.dq("systemHealthCaptured",V)};
MHn=function(){var V,D,f,n,t,J,H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:V={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)};D=window.screen;_.c("enable_is_extended_monitoring")&&D&&"isExtended"in D&&(V.isExtended=!!D.isExtended);f={metric:{staticContext:L93,dynamicContext:V,webMetric:VnU,webApiSupport:XS}};
if(n=_.Ni())f.csn=n;qZ&&(f.metric.webMetric.currentHeapKbytes=Math.round(qZ.usedJSHeapSize/1E3));window.matchMedia&&(f.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,f.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,f.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Es&&typeof Es.getBattery==="function")){Z.jumpTo(2);break}return _.b(Z,Es.getBattery(),3);case 3:if(t=
Z.yieldResult)f.metric.dynamicContext.chargingStatus=t.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(f.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(XS.storageEstimatePresent)return _.b(Z,navigator.storage.estimate(),8);if(!XS.webkitTemporaryStoragePresent){Z.jumpTo(5);break}return _.b(Z,D0Z(),7);case 7:J=Z.yieldResult;Z.jumpTo(5);break;case 8:J=Z.yieldResult;case 5:return f.metric.dynamicContext.deviceStorageQuotaMbytes=((H=J)==null?0:H.quota)?String(Math.round(J.quota/
1048576/10)*10):"-1",f.metric.dynamicContext.deviceStorageUsageMbytes=((Q=J)==null?0:Q.usage)?String(Math.round(J.usage/1048576/10)*10):"-1",T=f.metric.dynamicContext,_.b(Z,it3(),9);case 9:return T.hasAppShell=Z.yieldResult,y=hgX(),y.networkEvents.length&&(f.metric.networkEvents=UCx(y)),Z.return(f)}})};
D0Z=function(){return new Promise(function(V){var D;XS.webkitTemporaryStoragePresent&&(D=Es.webkitTemporaryStorage)!=null&&D.queryUsageAndQuota?Es.webkitTemporaryStorage.queryUsageAndQuota(function(f,n){V({usage:f,quota:n})}):V(void 0)})};
_.AP=function(V){V&=16777215;V=[(V&16711680)>>16,(V&65280)>>8,V&255];return fgn(V[0],V[1],V[2])};
_.aB=function(V){V=[(V&16711680)>>>16,(V&65280)>>>8,V&255,(V&4278190080)>>>24];var D=_.n$9(V,function(f){return f==(f&255)});
V[3]=(V[3]/255).toFixed(3);if(!D)throw Error("eg`"+V.join(","));return"rgba("+V.join(",")+")"};
_.tnZ=function(V){return[(V&16711680)>>>16,(V&65280)>>>8,V&255]};
_.P2x=function(V){V=V.map(function(D){D/=255;return D<=.03928?D/12.92:Math.pow((D+.05)/1.05,2.4)});
return V[0]*.2126+V[1]*.7152+V[2]*.0722};
Y7=function(V,D){V=_.tnZ(V);return"rgba("+V[0]+", "+V[1]+", "+V[2]+", "+D+")"};
_.o$R=function(){try{return!!self.localStorage}catch(V){return!1}};
w$L=function(){if(JfL())_.zP(Error("fg"));else{var V=document.createElement("iframe");V.style.display="none";var D=D===void 0?window.location.href:D;var f=_.mW(_.XB("PERSIST_IDENTITY_IFRAME_URL"));D=f?f:(new URL(D)).host.indexOf("studio")===0?_.t4(rf3,"persist_identity"):_.t4(HEY,"persist_identity");_.z6(V,1,D);V.id="persist_identity";var n;(n=document.body)==null||n.appendChild(V)}};
JfL=function(){var V=Qx9;V||(V=document.querySelector("#persist_identity"));return V};
Thc=function(){var V=!1;try{V=!!window.sessionStorage.getItem("session_logininfo")}catch(D){V=!0}return(_.XB("INNERTUBE_CLIENT_NAME")==="WEB"||_.XB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&V};
bEZ=function(V,D){if(!Thc())return!1;D||(D=_.XB("LOGIN_INFO"));return D?(V.session_logininfo=D,!0):!1};
yfx=function(V,D){V=V===void 0?!1:V;if((D===void 0||!D)&&KmZ!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.EG("LOG_STICKINESS",!1)){D=_.Ni();var f=_.u8(),n={identityStickinessData:{initialState:KmZ}};D&&f&&_.I4(D,f,n)}if(D=JfL())if(f=D.src?(new URL(D.src)).origin:"*",V){var t;(t=D.contentWindow)==null||t.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(V=window.sessionStorage.getItem("session_logininfo"))){var J;(J=D.contentWindow)==null||J.postMessage({loginInfo:V},f)}};
_.$7=function(V){V=V===void 0?!0:V;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.ql("LOGIN_INFO",""),V&&window.sessionStorage.setItem("from_switch_account","1"),yfx(!0,V)}catch(D){}};
ZEZ=function(V){V&&(V.startsWith("https://accounts.google.com/AddSession")?_.$7():V.startsWith("https://accounts.google.com/ServiceLogin")?_.$7():V.startsWith("https://myaccount.google.com")&&_.Y4(V).getPath().endsWith("/youtubeoptions")&&_.$7())};
id=function(V,D){ZEZ(V);if(_.EG("LOGGED_IN",!0)&&Thc()){var f=H$9(V);f==null&&(f={});bEZ(f,D)&&_.xo(V,f)}};
jxX=function(){function V(D){for(D=D.target;D&&D.nodeName!=="A";)if(D=D.parentNode,!(D&&D instanceof HTMLElement))return;if(D&&!D.hasAttribute("download")&&D.getAttribute("rel")!=="external"&&D.href)return D.href}
document.addEventListener("mousedown",function(D){D.button!==0&&(D=V(D))&&id(D)});
document.addEventListener("click",function(D){(D=V(D))&&id(D)})};
eFR=function(){var V=new lgL;try{if(_.EG("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(Q){V.increment(5,!1);return}if(_.XB("LOGIN_INFO")){var D=Gnd?Gnd:window.location;_.XB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&w$L();var f=H$9(D.href);f==null&&(f={});var n=f.session_logininfo,t=Number(window.sessionStorage.getItem("stickiness_reload")),J=n===_.XB("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
t>=2||J)t>=2?V.increment(2,J):J?V.increment(7,J):window.sessionStorage.getItem("session_logininfo")||(V.increment(3,J),KmZ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.XB("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.XB("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))V.increment(4,J),window.sessionStorage.removeItem("stickiness_reload");
else if(t<2){window.sessionStorage.setItem("stickiness_reload",String(t+1));var H=D.href;H=_.Mi(H,"sttick");id(H,window.sessionStorage.getItem("session_logininfo"));H=_.LZ(H,{sttick:t});V.increment(t,J);_.pc(D,H)}}else V.increment(6,!1)}else _.$7(!1)}catch(Q){}};
_.SL=function(V,D,f,n,t){D=D===void 0?{}:D;f=f===void 0?"":f;n=n===void 0?window:n;V=_.I9(V,D);id(V);f=_.cS(V+f,t);_.pc(n.location,f)};
_.cfY=function(V,D,f,n,t){t=t===void 0?!1:t;f&&_.xo(V,f);f=_.cS(V);var J=_.y2(f);V!=J&&_.$w(Error("gg`"+V));V=J;D=D||Ae(V).toString(36);try{if(t)return t=V,t=FRU(t),id(t),_.R3(window,t,D,"attributionsrc")}catch(H){_.Ah(H)}id(V);return _.R3(window,f,D,n)};
FmX=function(V){if(V.urlEndpoint){if(V=_.pZ(V.urlEndpoint.url),V.adurl)return UG(V.adurl)}else if(V.watchEndpoint)return"//www.youtube.com/watch?v="+V.watchEndpoint.videoId;return null};
g$X=function(V){if(!V||!V.reportingPings)return null;var D={};V.reportingPings.forEach(function(f){f.pingType in D?D[f.pingType].push(f.url):D[f.pingType]=[f.url]});
return{adpings:edX(D)}};
_.Wo=function(){return{isShellLoad:_.EG("IS_SHELL_LOAD",!1)}};
knZ=function(){navigator.serviceWorker.getRegistrations().then(function(V){V.forEach(v$9)})};
v$9=function(V){V&&_.sxZ(Bh9,V.scope)};
_.sxZ=function(V,D){D={scope:D||_.PI("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.HS(V),D)};
pR=function(V,D,f,n){if(D&&D.serializedYpcCujLoggingParams){if(f){var t={};t.transactionErrorType=f;n&&(t.errorMessage=n);D.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:t}}}f={};f.ypcCujContext=D;V=_.Qu("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",V,f);_.T_(_.bd(),V,"FLOW_TYPE_YPC_ACQUISITION")}};
_.d0L=function(V,D,f,n){var t={};t.serializedTransactionFlowLoggingParams=D;f&&(t.errorType=f);n&&(t.errorMessage=n);_.dq(V,t);_.uN()};
_.udn=function(V){V&&_.d0L("transactionFlowStarted",V)};
_.NhZ=function(V){V&&_.d0L("transactionFlowCancelled",V)};
_.LR=function(V,D,f){D&&_.d0L("transactionFlowFailed",D,V,f)};
m09=function(V){var D=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");D&&(D.inert=V)};
_.IB=function(){this.megabloxUrl_=null};
_.Os=function(V){try{var D=zFc==null?void 0:zFc.composedPath(V)}catch(f){D=V.composedPath?V.composedPath():[]}return D&&D.length>0?D:V.composedPath?V.composedPath():[]};
_.x7=function(V){return _.Os(V)[0]};
_.MZ=function(V){if(!(V instanceof Element))return null;V=V.classList?Array.from(V.classList):void 0;if(!V)return null;var D=V.indexOf("style-scope");return D>-1&&D+1<V.length?V[D+1]:null};
hP=function(V){if(!(V instanceof HTMLElement))return null;var D=V&&(V.$$||V.polymerController)?V.tagName.toLowerCase():null;return D?D:_.MZ(V)};
RF9=function(V,D){return V.replace(/[^a-z]*[^\s]+/g,function(f){return f+".style-scope."+D})};
C2Z=function(V,D){return D?V.split(",").map(function(f){return RF9(f.trim(),D)}).join(", "):V};
_.Us=function(V){var D,f,n,t;return(t=(n=(f=(D=V.root)!=null?D:V.shadowRoot)!=null?f:V.__shady_native_shadowRoot)!=null?n:V.__shady_shadowRoot)!=null?t:V};
Vg=function(V){return V instanceof ShadowRoot?ShadowRoot:V instanceof DocumentFragment?DocumentFragment:V instanceof Document?Document:HTMLElement};
q_F=function(V){var D,f,n;return(n=(f=(D=V.parentElement)!=null?D:V.__shady_native_parentElement)!=null?f:V.__shady_parentElement)!=null?n:null};
X$F=function(V){var D,f,n;return(n=(f=(D=V.parentNode)!=null?D:V.__shady_native_parentNode)!=null?f:V.__shady_parentNode)!=null?n:null};
E$9=function(V){var D,f,n;return(n=(f=(D=V.__shady_parentNode)!=null?D:V.__shady_native_parentNode)!=null?f:V.parentNode)!=null?n:null};
AfX=function(V){var D,f;return(f=(D=X$F(V))!=null?D:V.host)!=null?f:null};
agF=function(V){var D,f,n;return(n=(f=(D=V.nextSibling)!=null?D:V.__shady_native_nextSibling)!=null?f:V.__shady_nextSibling)!=null?n:null};
Y_Z=function(V){var D,f,n;return(n=(f=(D=V.previousSibling)!=null?D:V.__shady_native_previousSibling)!=null?f:V.__shady_previousSibling)!=null?n:null};
$0L=function(V){var D,f,n;return(n=(f=(D=V.nextElementSibling)!=null?D:V.__shady_native_nextElementSibling)!=null?f:V.__shady_nextElementSibling)!=null?n:null};
iEY=function(V){var D,f,n;return(n=(f=(D=V.previousElementSibling)!=null?D:V.__shady_native_previousElementSibling)!=null?f:V.__shady_previousElementSibling)!=null?n:null};
S_n=function(V){var D,f,n;return new Set([].concat(_.sz((D=V.children)!=null?D:[]),_.sz((f=V.__shady_native_children)!=null?f:[]),_.sz((n=V.__shady_children)!=null?n:[])))};
WmX=function(V){var D,f,n;return new Set([].concat(_.sz((D=V.childNodes)!=null?D:[]),_.sz((f=V.__shady_native_childNodes)!=null?f:[]),_.sz((n=V.__shady_childNodes)!=null?n:[])))};
p$R=function(V){if(!V)return null;var D=_.MZ(V);if(!D){var f;return(f=Node.prototype.getRootNode)==null?void 0:f.call(V)}D=D.toUpperCase();for(V=q_F(V);V&&V.tagName!==D;)V=q_F(V);return V?_.Us(V):null};
Lm9=function(V){for(;V&&!(V instanceof HTMLElement);)V=AfX(V);return V};
IgZ=function(V){var D=Lm9(V);return V===D?_.MZ(V):D?hP(D):null};
OEZ=function(V){return(V=Lm9(V))?hP(V):null};
x0Y=function(V){if(V instanceof Comment)return!1;if(V instanceof Text){var D,f;if(((f=(D=V.textContent)==null?void 0:D.trim())!=null?f:"")==="")return!1}return!0};
Dv=function(V,D,f){var n=D(V);for(f=f===void 0?OEZ(V):f;n&&(IgZ(n)!==f||!x0Y(n));)V=n,n=D(V);return n};
Mn9=function(V,D,f){if(!D)return null;V=OEZ(V);return IgZ(D)===V&&x0Y(D)?D:Dv(D,f,V)};
hFY=function(V){return Dv(V,E$9,_.MZ(V))};
U0n=function(V){return Dv(V,$0L)};
VOZ=function(V){return Dv(V,agF)};
DF3=function(V){return Dv(V,iEY)};
fQ9=function(V){return Dv(V,Y_Z)};
nEd=function(V){return Mn9(V,V.firstChild||V.__shady_native_firstChild||V.__shady_firstChild||null,agF)};
tOn=function(V){var D,f,n;var t=(n=(f=(D=V.firstElementChild)!=null?D:V.__shady_native_firstElementChild)!=null?f:V.__shady_firstElementChild)!=null?n:null;return Mn9(V,t,$0L)};
PMY=function(V){var D,f,n;var t=(n=(f=(D=V.lastChild)!=null?D:V.__shady_native_lastChild)!=null?f:V.__shady_lastChild)!=null?n:null;return Mn9(V,t,Y_Z)};
oEc=function(V){var D,f,n;var t=(n=(f=(D=V.lastElementChild)!=null?D:V.__shady_native_lastElementChild)!=null?f:V.__shady_lastElementChild)!=null?n:null;return Mn9(V,t,iEY)};
J$R=function(V){var D=OEZ(V);return Array.from(WmX(V)).filter(function(f){return IgZ(f)===D})};
r$3=function(V){var D=hP(V);return Array.from(S_n(V)).filter(function(f){return _.MZ(f)===D})};
_.fI=function(V,D,f){if(V instanceof HTMLElement&&_.MZ(V)===f){var n=Array.from(V.classList).indexOf("style-scope");if(n===-1)V.classList.add("style-scope"),V.classList.add(D);else if(!(n+1>=V.classList.length)){n=V.classList[n+1];var t,J;V==null||(t=V.classList)==null||(J=t.replace)==null||J.call(t,n,D)}}if(V instanceof HTMLElement||V instanceof DocumentFragment)for(t=_.r(S_n(V)),J=t.next();!J.done;J=t.next())_.fI(J.value,D,f);return V};
nI=function(V,D){if(V instanceof HTMLElement&&_.MZ(V)===D){var f=Array.from(V.classList).indexOf("style-scope");f===-1||f+1>=V.classList.length||V.classList.remove("style-scope",V.classList[f+1])}if(V instanceof HTMLElement||V instanceof DocumentFragment){f=_.r(V.children);for(var n=f.next();!n.done;n=f.next())nI(n.value,D)}return V};
_.HCF=function(V,D){return Vg(V).prototype.appendChild.call(V,D)};
wg9=function(V,D){if(V===D)return!0;V=WmX(V);return Array.from(V).some(function(f){return wg9(f,D)})};
_.Pt=function(V,D){if(V instanceof tA)return V;(D==null?0:D.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(V,"ownerDocument")&&Object.defineProperty(V,"ownerDocument",{get:function(){return window.document}});
return new tA(V)};
TDZ=function(){var V=tA.prototype,D=[].concat(_.sz(Q0X?[]:["getRootNode"]),["setAttribute","removeAttribute"]);D=_.r(D);for(var f=D.next(),n={};!f.done;n={method$jscomp$48:void 0},f=D.next())n.method$jscomp$48=f.value,V[n.method$jscomp$48]=function(t){return function(){return this.host[t.method$jscomp$48].apply(this.host,arguments)}}(n)};
Kc9=function(){var V=tA.prototype,D=[].concat(_.sz(Q0X?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.sz(bCU?[]:["querySelector","querySelectorAll"]));D=_.r(D);for(var f=D.next(),n={};!f.done;n={method$jscomp$49:void 0},f=D.next())n.method$jscomp$49=f.value,V[n.method$jscomp$49]=function(t){return function(){return this.root[t.method$jscomp$49].apply(this.root,arguments)}}(n)};
j03=function(){var V=tA.prototype,D=[].concat(_.sz(y$Y?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.sz(ZCd?[]:["parentNode"]));D=_.r(D);for(var f=D.next(),n={};!f.done;n={prop$jscomp$62:void 0},f=D.next())n.prop$jscomp$62=f.value,Object.defineProperty(V,n.prop$jscomp$62,{get:function(t){return function(){return this.host[t.prop$jscomp$62]}}(n),
configurable:!0})};
ejd=function(){var V=tA.prototype,D=["activeElement"].concat(_.sz(y$Y?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.sz(lQ9?[]:["children"]),_.sz(GaR?[]:["lastChild"]));D=_.r(D);for(var f=D.next(),n={};!f.done;n={prop$jscomp$63:void 0},f=D.next())n.prop$jscomp$63=f.value,Object.defineProperty(V,n.prop$jscomp$63,{get:function(t){return function(){return this.root[t.prop$jscomp$63]}}(n),
configurable:!0})};
c$x=function(){for(var V=tA.prototype,D=_.r(["innerHTML","textContent"]),f=D.next(),n={};!f.done;n={prop$jscomp$64:void 0},f=D.next())n.prop$jscomp$64=f.value,Object.defineProperty(V,n.prop$jscomp$64,{get:function(t){return function(){return this.root[t.prop$jscomp$64]}}(n),
set:function(t){return function(J){this.root[t.prop$jscomp$64]=J}}(n),
configurable:!0})};
FcL=function(V){var D=tA.prototype;V=_.r(Object.entries(V));for(var f=V.next(),n={};!f.done;n={fn$jscomp$362:void 0},f=V.next()){var t=_.r(f.value);f=t.next().value;t=t.next().value;n.fn$jscomp$362=t;D[f]=function(J){return function(){return J.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.sz(arguments)))}}(n)}};
vE9=function(){for(var V=tA.prototype,D=_.r(Object.entries(gEd)),f=D.next(),n={};!f.done;n={fn$jscomp$363:void 0},f=D.next()){var t=_.r(f.value);f=t.next().value;t=t.next().value;n.fn$jscomp$363=t;Object.defineProperty(V,f,{get:function(J){return function(){return J.fn$jscomp$363.apply(null,[this.host.node||this.host].concat(_.sz(arguments)))}}(n),
configurable:!0})}};
_.oU=function(V){return V instanceof kac||V instanceof Document?V:new kac(V)};
s0Z=function(){for(var V=kac.prototype,D=_.r("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),f=D.next(),n={};!f.done;n={method$jscomp$50:void 0},f=D.next())n.method$jscomp$50=f.value,V[n.method$jscomp$50]=function(t){return function(){return HTMLElement.prototype[t.method$jscomp$50].call.apply(HTMLElement.prototype[t.method$jscomp$50],[this.node].concat(_.sz(arguments)))}}(n)};
BDY=function(){for(var V=kac.prototype,D=_.r("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),f=D.next(),n={};!f.done;n={prop$jscomp$65:void 0},f=D.next())n.prop$jscomp$65=f.value,Object.defineProperty(V,n.prop$jscomp$65,{get:function(t){return function(){var J;return(J=this.node["__shady_native_"+t.prop$jscomp$65])!=null?J:this.node[t.prop$jscomp$65]}}(n),
configurable:!0})};
_.JA=function(V,D,f){f===void 0&&(f=!V.classList.contains(D));f?V.classList.add(D):V.classList.remove(D)};
_.rI=function(V,D,f){f===void 0&&(f=!V.hasAttribute(D));if(D==="class")throw Error("kg");f?_.oU(V).setAttribute(D,""):_.oU(V).removeAttribute(D)};
dFY=function(V){return(V.localName!=="slot"?[]:(0,_.Ht)(V).assignedNodes({flatten:!0})).filter(function(D){return D.nodeType===Node.ELEMENT_NODE})};
_.uH9=function(V){return(V=_.Pt(V).querySelector("slot"))&&V.localName==="slot"?dFY(V):[]};
_.wI=function(V,D){window.ShadyCSS&&window.ShadyCSS.styleSubtree(V,D)};
Qg=function(V,D){var f=D.bind(V);return function(n){f(n,n.detail)}};
_.Ty=function(V,D){var f=NDX.get(V);f||(f=new WeakMap,NDX.set(V,f));if(f.has(D))return f.get(D);if(_.c("web_fi_listen_disable_bound_fn_helper")){var n=D.bind(V);V=function(t){n(t,t==null?void 0:t.detail)}}else V=Qg(V,D);
f.set(D,V);return V};
RjR=function(V,D){mFZ(V);V.created[zjZ].push(D)};
mFZ=function(V){if(!V.created||!V.created[zjZ]){var D=V.created,f=D?[D]:[];V.created=function(){for(var n=_.r(f),t=n.next();!t.done;t=n.next())t.value.apply(this)};
V.created[zjZ]=f}};
CM3=function(V){return function(){var D=_.gQ.apply(0,arguments);return function(f,n,t){V.apply(null,_.sz(D))(f,n,t)}}};
q8Y=function(){return function(){var V=_.gQ.apply(0,arguments);return function(D,f,n){ucY.apply(null,_.sz(V))(D,f,n)}}};
_.u=function(V){return q8Y()(V)};
_.R=function(){return CM3(RRZ).apply(null,_.sz(_.gQ.apply(0,arguments)))};
_.bU=function(V){return _.c("pbcm_fi_listen_decorators")?Xg9(V):CM3(mwZ)(V)};
Xg9=function(V){return function(D,f){RjR(D,function(){var n=this[f],t=_.c("web_fi_listen_disable_bound_fn_helper")?function(J){n(J,J.detail)}.bind(this):Qg(this,n);
EEn.has(V)?B1(this.hostElement,V,t):this.hostElement.addEventListener(V,t)})}};
_.KI=function(){return CM3(zRF).apply(null,_.sz(_.gQ.apply(0,arguments)))};
_.q=function(V){V=V===void 0?{}:V;return CM3(NK3)(V)};
_.yg=function(V){if(V.hostElement&&V!==V.hostElement){var D=_.Fw(V.hostElement);D=V.renderIdom?D:D.shadowRoot}D||(V=V.root,D=V instanceof Node?_.Fw(V):null);return D};
_.Zv=function(V){return A$U?aQX(V):function(D,f){Object.defineProperty(D,f,{get:function(){var n;return(n=_.yg(this))==null?void 0:n.querySelector(V)},
enumerable:!0,configurable:!0})}};
aQX=function(V){return function(D,f){Object.defineProperty(D,f,{get:function(){var n,t=(n=_.Pt(this.hostElement))==null?void 0:n.querySelector(V);if(t)return t;var J;return(J=_.yg(this))==null?void 0:J.querySelector(V)},
enumerable:!0,configurable:!0})}};
_.jY=function(V){return A$U?Y8F(V):function(D,f){Object.defineProperty(D,f,{get:function(){var n;return(n=_.yg(this))==null?void 0:n.querySelectorAll(V)},
enumerable:!0,configurable:!0})}};
Y8F=function(V){return function(D,f){Object.defineProperty(D,f,{get:function(){var n,t=(n=_.Pt(this.hostElement))==null?void 0:n.querySelectorAll(V);if(t==null?0:t.length)return t;var J;return(J=_.yg(this))==null?void 0:J.querySelectorAll(V)},
enumerable:!0,configurable:!0})}};
$FF=function(V){return function(D){if(![_.xi,_.E].includes(Object.getPrototypeOf(D.prototype).constructor))throw Error("lg");cx9(Object.assign({},typeof V!=="string"?V:{is:V,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(D)}};
_.Gy=function(){var V=V===void 0?{}:V;return function(D){if(![M2,_.lU].includes(Object.getPrototypeOf(D.prototype).constructor))throw Error("mg");F$3(Object.assign({},V,{disableInheritanceCheck:!0}))(D)}};
S8U=function(V,D){iCZ[V]!=null||(iCZ[V]=new Set);iCZ[V].add(D)};
_.eY=function(){var V=_.KI.apply(null,_.sz(_.gQ.apply(0,arguments)));return function(D,f){S8U(D.is,f);V(D,f)}};
gI=function(V,D,f){if(ct(V)&&!WcZ.has(D)){D=D.replace(/^JSC\$[\d]+_/,"");D=D.replace(/\.\d+(\.|$)/g,function(J,H){return".#"+H});
F2[V]!=null||(F2[V]={});var n,t;(n=F2[V])[t=D]!=null||(n[t]=new Set);F2[V][D].has(f)||(F2[V][D].add(f),_.dq("polymerPropertyAccessEvent",{componentName:V,propertyName:D,accessType:f}))}};
pgY=function(){return _.c("polymer_property_access_logging_debug")||_.c("polymer_enable_property_access_logging")};
ct=function(V){if(_.c("polymer_property_access_logging_debug"))return!0;if(!_.c("polymer_enable_property_access_logging"))return!1;Lcx||(Lcx=Date.now());return(Ae(V)+Lcx)%100<_.tU("polymer_property_access_logging_percent")};
IQZ=function(V,D){return ct(D)&&V.hostElement.loggingStatus?new Proxy(V,{get:function(f,n,t){if(f.hostElement.loggingStatus.bypassProxyController)return f[n];f.hostElement.loggingStatus.isExternalGet=!0;var J=f[n];f.hostElement.loggingStatus.isExternalGet=!1;if(J instanceof Function)return function(){var H=_.gQ.apply(0,arguments);try{return f.hostElement.loggingStatus.currentExternalCall=n,gI(D,n,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),J.apply(this===t?f:this,H)}finally{f.hostElement.loggingStatus.currentExternalCall=
void 0}};
gI(D,n,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return J},
set:function(f,n,t){if(f.hostElement.loggingStatus.bypassProxyController)return f[n]=t,!0;f.hostElement.loggingStatus.isRendererStamper?gI(D,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):f.hostElement.loggingStatus.isDeclarativeExternal||gI(D,n,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{f.hostElement.loggingStatus.currentExternalSet=n,f[n]=t}finally{f.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):V};
OC9=function(V,D){V&&V.loggingStatus&&!V.loggingStatus.isDeclarativeExternal&&!V.loggingStatus.isExternalGet&&V.loggingStatus.currentExternalSet!==D&&gI(V.tagName.toLowerCase(),D,"PROPERTY_ACCESS_GET_INTERNAL")};
vt=function(V,D,f){V&&(f||V.loggingStatus&&!V.loggingStatus.isInitializing&&!V.loggingStatus.isDefiningPropertyAccessor&&V.loggingStatus.currentExternalSet!==D)&&gI(V.tagName.toLowerCase(),D,"PROPERTY_ACCESS_SET_INTERNAL")};
xF3=function(){return{_definePropertyAccessor:function(V,D){var f=this,n=f.hostElement.loggingStatus;n&&(n.isDefiningPropertyAccessor=!0);var t=f[V];t!==void 0&&(f.__data?f._setPendingProperty(V,t):(f.__dataProto!=null||(f.__dataProto={}),f.__dataProto[V]=t));n&&(n.isDefiningPropertyAccessor=!1);Object.defineProperty(this,V,{get:function(){OC9(f.hostElement,V);return this.__data[V]},
set:function(J){D||this._setPendingProperty(V,J,!0)&&this._invalidateProperties()}})},
created:function(){var V=this._setPendingProperty.bind(this);this._setPendingProperty=function(D,f,n){vt(this.hostElement,D);return V.apply(this,[D,f,n])}}}};
MOU=function(V){pgY()&&_.u(ku.prototype)(V.prototype,"__templateBindingLoggingBehavior")};
hjx=function(V,D){if(D.resolvedFactories.length!==V.resolvedFactories.length)return!0;D=_.r(D.resolvedFactories.entries());for(var f=D.next();!f.done;f=D.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;if(n.providerClass){if(n.providerClass!==V.resolvedFactories[f].providerClass)return!0}else if(n.providerValue){if(n.providerValue!==V.resolvedFactories[f].providerValue)return!0}else if(n.factory!==V.resolvedFactories[f].factory)return!0}return!1};
UF9=function(V,D){V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,f.constructor===Array)UF9(f,D);else{var n=D;n.has(f)||(f.inject&&n.add(f),f.behaviors&&UF9(f.behaviors,n))}};
sr=function(V,D){var f=V[D];V[D]=function(){var n=_.gQ.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(f)return f.apply(this,n)}};
nd9=function(){_.Bt.Class=function(f,n){f=VG9(f,n);sr(f.prototype,"created");return f};
sr(dI.prototype,"_initializeProperties");sr(_.uU.prototype,"_initializeProperties");if(Dh3)sr(fwY,"created");else{var V=function(){sr(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))V();else{var D=customElements.define;customElements.define=function(f,n,t){D.call(customElements,f,n,t);f==="tp-yt-iron-list"&&(V(),customElements.define=D)}}}};
P13=function(V,D){V.prototype.behaviors=V.prototype.behaviors||[];V.prototype.behaviors.unshift(tGx.InjectBehavior);V.prototype.provide=D};
_.zy=function(V){return function(D){if(!V.disableElementRegistration){V.noInjection||P13(D,V.providers);var f=D.prototype;f.__templateHelpers||ucY(NA.prototype)(f,"__templateHelpers");f=V.is;odn||(odn=Date.now());(Ae(f)+odn)%100<_.tU("polymer_log_prop_change_observer_percent")&&ucY(m8.prototype)(D.prototype,"__propertyObserverObserver");D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(_.J8Y.YtHostElementBehavior);MOU(D);$FF({is:V.is,notifyObserversOnUndefined:V.notifyObserversOnUndefined!==
!1,fastInit:V.fastInit,template:V.template,disableEnforceFastDefaultValuesCheck:!0})(D)}}};
_.a=function(V){return _.zy({is:V.is,template:V.template,disableElementRegistration:V.disableElementRegistration,cssBuildOptOut:V.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
wdZ=function(V,D){if(r8x){V=new V;for(var f=_.r(Object.getOwnPropertyNames(V)),n=f.next();!n.done;n=f.next())n=n.value,D[n]=V[n];for(f=D;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){n=_.r(Object.getOwnPropertyNames(f));for(var t=n.next();!t.done;t=n.next())t=t.value,V.hasOwnProperty(t)||Object.defineProperty(V,t,Ha3(D,t))}}else V.apply(D)};
Ha3=function(V,D){return{get:function(){var f=V[D];return f instanceof Function?f.bind(V):f},
set:function(f){V[D]=f}}};
T5Y=function(V,D){for(var f=V._noAccessors,n=_.r(Object.getOwnPropertyNames(V)),t=n.next();!t.done;t=n.next())if(t=t.value,!Q1d.has(t))if(f)D[t]=V[t];else{var J=Object.getOwnPropertyDescriptor(V,t);J&&(J.configurable=!0,Object.defineProperty(D,t,J))}};
baX=function(V,D,f){return function(n){if(f){var t=f();n.model=t}if(V[D])V[D](n,n.detail)}};
RU=function(V){var D=[];if(typeof V==="string")V.length>0&&D.push.apply(D,_.sz(V.split(".")));else{V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,typeof f==="string"?D.push.apply(D,_.sz(f.split("."))):D.push(f)}return D};
K1R=function(V,D){if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){for(var f=0;f<D.length;f++){if(!V)return;V=V[D[f]]}return V}};
y8d=function(V,D){if(V.length>D.length)return!1;for(var f=0;f<V.length;f++)if(V[f]!==D[f])return!1;return!0};
j1c=function(V,D,f){if(D.type==="compute"){var n=D.getter.bind(f);var t=D.args}else n=function(){return f[D.method.methodName].apply(f,_.sz(_.gQ.apply(0,arguments)))},t=D.method.args;
ZaZ(V,D.propertyKey,n,t,D.value)};
GCF=function(V,D){if(D.readOnly){var f=Object.getOwnPropertyDescriptor(V.model,D.propertyKey);Object.defineProperty(V.model,D.propertyKey,{get:f.get,set:function(){}});
V.model[lwn(D.propertyKey)]=f.set}};
e7L=function(V,D,f){if(f){var n=D.propertyKey,t=D.selector;D=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.sz(D.selectorArgs.map(function(J){return{type:"path",path:J}})));
ZaZ(V,n,function(J){var H=_.gQ.apply(1,arguments);return t.apply(null,[f.getState()].concat(_.sz(H)))},D)}};
F1d=function(V,D,f){var n=_.Kl(D.propertyKey)+"-changed";c8X(V,function(t){var J={value:t.value,queueProperty:!0};t.path.split(".").length>1&&(J.path=t.path);f.dispatchEvent(new CustomEvent(n,{detail:J}))},[{type:"wildcard",
path:D.propertyKey}])};
gdx=function(V,D,f){c8X(V,function(){f[D.method.methodName].apply(f,_.sz(_.gQ.apply(0,arguments)))},D.method.args)};
lwn=function(V){return"_set"+(V.charAt(0).toUpperCase()+V.slice(1))};
kC3=function(){return _.c("enable_track_defined_via_mutable_signal")||vdL};
s1Z=function(){var V,D=ub(function(f){V=f},!1);
return[V,D]};
mhd=function(V){V=V.trim().replace(B5X,",").replace(dhn,"$1");var D=V[0];D==="-"&&(D=V[1]);if(D>="0"&&D<="9")return{type:"literal",value:Number(V)};if(D==="'"||D==='"')return{type:"literal",value:V.slice(1,-1)};if(D=V.match(uRZ)){D=D[1];var f=N5Y[D];if(f)return{type:f,path:V.slice(0,-(D.length+1))}}return{type:"path",path:V}};
q9Z=function(V){var D=V.match(z7R);if(D)return V={methodName:D[1],args:R7R},D[2].trim()&&(D=D[2].replace(C1n,"&comma;").split(","),V.args=D.map(mhd)),V};
XdF=function(V,D,f,n){n=n===void 0?!1:n;D=_.Kl(D);var t=Z5;t&&(f=t(f,D,"attribute",V));CI(V,f,D,n)};
CI=function(V,D,f,n){D=Edc(D,n===void 0?!1:n);D===void 0?V.removeAttribute(f):V.setAttribute(f,D)};
Edc=function(V,D){switch(typeof V){case "object":case "function":if(V instanceof Date)return V.toString();if(V){if((D===void 0?0:D)&&!_.c("polymer_reflect_objects_as_boolean_killswitch"))return V?"":void 0;D=window.trustedTypes?window.trustedTypes.isHTML(V)||window.trustedTypes.isScript(V)||window.trustedTypes.isScriptURL(V):void 0;if(D)return V;try{return JSON.stringify(V)}catch(f){_.zP(Error("Ig`"+V))}}break;case "boolean":return V?"":void 0;default:return V!==null&&V!==void 0?V.toString():void 0}};
A8R=function(V){if(V===void 0)throw Error("Jg");return V};
S9L=function(V,D,f,n){var t=awX(n);if(t.length){n=f;var J="property";Y9X.test(f)?J="attribute":f[f.length-1]==="$"&&(f=f.slice(0,-1),J="attribute");var H=$h9(t);H&&J==="attribute"&&(f==="class"&&V.hasAttribute("class")&&(H+=" "+V.getAttribute(f)),CI(V,H,f));J==="attribute"&&n==="disable-upgrade$"&&V.setAttribute("disable-upgrade","");V.localName==="input"&&n==="value"&&V.setAttribute("value","");V.removeAttribute(n);J==="property"&&(f=_.yR(f));D=A8R(D);iaZ(D,J,f,t);return!0}return f.slice(0,3)===
"on-"?(V.removeAttribute(f),(J=D).events!=null||(J.events=[]),D.events.push({name:f.slice(3),value:n}),!0):f==="id"?(D.id=n,!0):!1};
awX=function(V){for(var D=[],f=0,n;(n=W1c.exec(V))!==null;){n.index>f&&D.push({type:"literal",value:V.slice(f,n.index)});var t=n[1][0];f=!!n[2];n=n[3].trim();if(t==="{")throw Error("Kg");(t=q9Z(n))?D.push({type:"method",negate:f,signature:t}):D.push({type:"path",negate:f,path:n});f=W1c.lastIndex}f&&f<V.length&&(V=V.substring(f))&&D.push({type:"literal",value:V});return D};
$h9=function(V){for(var D="",f=0;f<V.length;f++){var n=V[f];n.type==="literal"&&(D+=n.value)}return D};
iaZ=function(V,D,f,n){V.bindings!=null||(V.bindings=[]);V.bindings.push({kind:D,target:f,parts:n})};
xhL=function(V,D,f){var n=!1;if(V.localName==="template"){n=f;var t=D.stripWhitespace;t=pdd(V,t===void 0?!1:t);var J=V.content.ownerDocument.createDocumentFragment();t.content=J;J.appendChild(V.content);n&&(n.templateInfo=t);n=!0}else V.localName==="slot"&&(D.hasInsertionPoint=!0);if(V.firstChild&&(t=f,V.localName!=="script"&&V.localName!=="style")){J=0;for(var H=V.firstChild;H;){var Q=H;if(Q.localName==="template"){var T=Q.getAttribute("is");if((H=T==="dom-if")||T==="dom-repeat"){Q.removeAttribute("is");
T=Q.ownerDocument.createElement("ps-"+T);Q.parentNode.replaceChild(T,Q);T.appendChild(Q);var y=Array.from(Q.attributes);y=_.r(y);for(var Z=y.next();!Z.done;Z=y.next())Z=Z.value,H?L1L.has(Z.name)&&CI(T,Z.value,Z.name):Iw3.has(Z.name)?CI(T,Z.value,Z.name):Oax.has(Z.name),Q.removeAttribute(Z.name);H=T}else H=Q}if(H.nodeType===Node.TEXT_NODE){Q=void 0;T=V;for(y=H;((Q=y.nextSibling)==null?void 0:Q.nodeType)===Node.TEXT_NODE;)Z=void 0,(Z=y).textContent!=null||(Z.textContent=""),y.nextSibling.textContent&&
(y.textContent+=y.nextSibling.textContent),T.removeChild(y.nextSibling);if(D.stripWhitespace&&H.textContent&&!H.textContent.trim()){V.removeChild(H);H=H.nextSibling;continue}}xhL(H,D,{parentIndex:J,parentInfo:t});H.parentNode&&J++;H=H.nextSibling}}var l;if((l=V.hasAttributes)==null?0:l.call(V)){l=f=A8R(f);t=!1;J=Array.from(V.attributes);J=_.r(J);for(Q=J.next();!Q.done;Q=J.next())Q=Q.value,t=S9L(V,l,Q.name,Q.value)||t;n=t||n}V.nodeType===Node.TEXT_NODE&&(l=awX(V.textContent),l.length&&(V.textContent=
$h9(l)||" ",f=A8R(f),iaZ(f,"text","textContent",l),n=!0));f&&n&&(f.infoIndex=D.nodeInfoList.push(f)-1)};
pdd=function(V,D){D={nodeInfoList:[],stripWhitespace:(D===void 0?!1:D)||V.hasAttribute("strip-whitespace")};xhL(V.content,D);return D};
MGX=function(V){Object.assign(V,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
UhY=function(V,D,f){D.signalCache!=null||(D.signalCache={});var n=D.signalCache[f];if(!n){var t=f.split(".");n=!h7F(V,t[0]);if(t.length>1&&n){var J=V.getPathMutationSignal(t);n=function(){var H=z4(V.owner,function(){return V.getWithPath([t[0]])}),Q,T=(Q=J())==null?void 0:Q.value;
return{rootWasDefined:H!==void 0,value:T}}}else n=function(){var H=V.getWithPath(t);
return{rootWasDefined:H!==void 0,value:H}};
D.signalCache[f]=n}return n()};
D63=function(V,D,f,n,t){D=D.parts.map(function(H,Q){if(H.type==="literal"){f.partWasDefined!=null||(f.partWasDefined=[]);var T;(T=f.partWasDefined)[Q]||(T[Q]=H.value!==void 0);return H.value}var y;if(H.type==="method"){var Z,l=(Z=(y=f.partWasDefined)==null?void 0:y[Q])!=null?Z:!1;l||(l=H.signature.args.every(function(k){return k.type==="literal"}));
var G=!1,F=!0;y=H.signature.args.map(function(k){if(k.type==="literal")return k.value;if(k.type!=="path")throw Error("Lg`"+k.type);var d=UhY(V,f,k.path);k=d.value;d=d.rootWasDefined;G||(G=d);F&&(F=d);return k});
l||(l=t===1?F:G);f.partWasDefined!=null||(f.partWasDefined={});f.partWasDefined[Q]=l;if(!l)return;y=(Q=UhY(V,f,H.signature.methodName).value)&&typeof Q==="function"?Q.apply(n,y):void 0}else Z=UhY(V,f,H.path),y=Z.value,f.partWasDefined!=null||(f.partWasDefined={}),(l=f.partWasDefined)[Q]||(l[Q]=y!==void 0||Z.rootWasDefined);H.negate&&(y=!y);return y});
if(D.length===1){var J;return((J=f.partWasDefined)==null?0:J[0])?D[0]:VZc}return D.join("")};
fSZ=function(V){return typeof V==="object"&&!!V&&"notifyPath"in V&&"canNotifyPath"in V};
nDY=function(V){return typeof V==="object"&&!!V&&"notifyPath"in V};
tZ9=function(V){return"polymerController"in V};
Pq9=function(V,D){D=""+RU(D)[0];if(fSZ(V))return V.canNotifyPath(D);if(tZ9(V)&&fSZ(V.polymerController))return V.polymerController.canNotifyPath(D);if(nDY(V)){var f;return!((f=V.properties)==null||!f[D])}if(tZ9(V)&&nDY(V.polymerController)){var n;return!((n=V.polymerController.properties)==null||!n[D])}return!1};
oDL=function(V,D,f){fSZ(V)||nDY(V)?V.notifyPath(D,f):tZ9(V)&&(fSZ(V.polymerController)||nDY(V.polymerController))&&V.polymerController.notifyPath(D,f)};
rtR=function(V,D,f){if(f!==VZc){V.kind==="attribute"||V.target!=="textContent"&&(V.target!=="value"||D.localName!=="input"&&D.localName!=="textarea")||(f=f===void 0?"":f);var n,t=(n=JtY.Polymer)==null?void 0:n.sanitizeDOMValue;t&&(f=t(f,V.target,V.kind,D));if(V.kind==="attribute"){V=V.target;if(V==="class"||V==="name"||V==="slot")D=(0,_.Ht)(D);CI(D,f,V)}else if(V=V.target,f!==D[V]||typeof f==="object")D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0,gI(D.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
D[V]=f,D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)}};
HvZ=function(V,D,f,n){var t=D.parts[0];if(D.parts.length!==1||t.type!=="path"||!Pq9(f,D.target))return!1;var J=_.r(t.path.split(".")),H=J.next().value,Q=pJ(J);if(h7F(V,H))return!1;n.signalCache!=null||(n.signalCache={});J=n.signalCache[t.path];var T;J=(T=J)==null?void 0:T().value;if((J==null?void 0:J.path)!==void 0){n=RU(J.path);var y=RU(t.path);n=[D.target].concat(_.sz(n.slice(y.length-1)));oDL(f,n,t.negate?!J.value:J.value);return!0}var Z=qA(V,H);var l=Z.getChangeRecordSignal(Q),G=!1;J=function(){if(!G){var k=
z4(V.owner,function(){return Z.getWithPath([])});
G||(G=k!==void 0)}return{value:l(),rootWasDefined:G}};
n.signalCache[t.path]=J;n.partWasDefined!=null||(n.partWasDefined={});J=J();(y=n.partWasDefined)[0]||(y[0]=J.rootWasDefined);var F=z4(V.owner,function(){return Z.getWithPath(Q)});
n.partWasDefined[0]&&z4(V.owner,function(){return void rtR(D,f,t.negate?!F:F)});
return!0};
wGZ=function(V,D,f,n,t,J){if(!HvZ(V,D,f,n)){var H=D63(V,D,n,t,J);z4(V.owner,function(){return void rtR(D,f,H)})}};
QDX=function(V,D,f,n,t,J){f=_.r(f);for(var H=f.next(),Q={};!H.done;Q={infoIndex:void 0},H=f.next()){H=H.value;var T=H.bindings;Q.infoIndex=H.infoIndex;H=H.parentInfo;if(T){T=_.r(T);for(var y=T.next(),Z={};!y.done;Z={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},y=T.next()){Z.b$jscomp$252=y.value;if(Q.infoIndex===void 0)throw Error("Mg");Z.bindingCtx$jscomp$4={};V.effect(function(l,G){return function(){t&&!t()||wGZ(V,l.b$jscomp$252,D[G.infoIndex],l.bindingCtx$jscomp$4,n,J)}}(Z,Q))}}H&&QDX(V,D,[H],
n,t,J)}};
TbU=function(V,D){V=(D.parentInfo?TbU(V,D.parentInfo):V).firstChild;for(var f=0;V;V=V.nextSibling)if(D.parentIndex===f++)return V;throw Error("Ng");};
KyZ=function(V,D,f,n){V=document.importNode(V.content,!0);V.__noInsertionPoint=!(n==null?0:n.hasInsertionPoint);for(var t=Array(D.length),J={},H=0;H<D.length;H++){var Q=D[H],T=TbU(V,Q);t[H]=T;Q.id&&(J[Q.id]=T);if(Q.templateInfo){var y=T.parentElement;y&&(y.templateInfo=Q.templateInfo,y.parentSignalProxy=f,y.eventListenerHost=n.eventListenerHost,y.stampingEnabled=n.enabledSignal)}y=void 0;if((y=Q.events)==null?0:y.length)for(y=0;y<Q.events.length;y++){var Z=Q.events[y];bvY(n.eventListenerHost,T,Z.name,
Z.value,n.getModel)}}QDX(f,t,D,n.thisCtx,n.enabledSignal,n.methodInvocationRequirement);return{root:V,nodes:t,nodesById:J}};
Zv9=function(V,D){V=V();var f;(f=yt9.ShadyCSS)==null||f.prepareTemplate(V,D);D=pdd(V);return{template:V,nodeInfoList:D.nodeInfoList,hasInsertionPoint:D.hasInsertionPoint}};
G1X=function(){jDF=!1;for(var V=X2.length,D=0;D<V;D++){var f=X2[D];if(f)try{f()}catch(n){Promise.resolve().then(function(){throw n;})}}X2.splice(0,V);
lSc+=V};
gD3=function(V){jDF||(jDF=!0,ekx.textContent=(ctn++).toString());X2.push(V);return Fy9++};
_.aU=function(V,D,f){Er++;V=D?new vDZ(Er,V,D,f):new k1c(Er,V);AA.set(Er,V);return Er};
sDc=function(V){(V=AA.get(V))&&V.cancel()};
d6Z=function(V,D){V=Bb9.get(V);return V?(D=V.get(D))?D:null:null};
_.Yu=function(V,D,f,n){var t=d6Z(V,D);if(!t){t=new uNL;var J=Bb9.get(V);J||(J=new Map,Bb9.set(V,J));J.set(D,t)}V=f.bind(V);t.run(V,n,void 0)};
_.NbL=function(V,D){var f;(f=d6Z(V,D))==null||f.cancel()};
m6d=function(V){var D;(D=d6Z(V,"doRender"))==null||D.flush()};
$u=function(V){var D;return(D=V.hostElement)!=null?D:V};
zkR=function(V){var D=V.indexOf(".");return D===-1?V:V.slice(0,D)};
Rkn=function(V,D,f,n,t,J){J=(t=(n=J?zkR(D):D)?D:null)?V.get(t):V.__data[D];t&&J===void 0&&(J=f[D]);_.PA(V.hostElement,o1Y(n)+"-changed",{value:J,queueProperty:!0,path:t!=null?t:void 0},{bubbles:!1,composed:!1})};
Cq9=function(V,D){V.__isReflecting=!0;XdF(V.hostElement,D,V.__data[D]);V.__isReflecting=!1};
qQY=function(V){if(V._onIronRequestResizeNotifications){var D=V._onIronRequestResizeNotifications.bind(V);V._onIronRequestResizeNotifications=function(f){_.x7(f)!==V.hostElement&&D(f)}}V._ariaActiveAttributeChanged&&(V._ariaActiveAttributeChanged=V._ariaActiveAttributeChanged.bind(V.hostElement));
V._activeChanged&&(V._activeChanged=function(f){V.toggles?CI(V.hostElement,f?"true":"false",V.ariaActiveAttribute):V.hostElement.removeAttribute(V.ariaActiveAttribute);V._changedButtonState()});
V._asyncClick&&(V._asyncClick=function(){_.aU(function(){V.hostElement.click()},1)});
!V.keyEventTarget||V.keyEventTarget instanceof EventTarget||(V.keyEventTarget=$u(V.keyEventTarget));V._disabledChanged&&(V._disabledChanged=V._disabledChanged.bind(V.hostElement));V._observeItems&&(V._observeItems=function(f){var n=$u(f);return _.Fw(n).observeNodes(function(t){V._updateItems();V._updateSelected();_.PA(n,"iron-items-changed",t,{bubbles:!1,cancelable:!1})})});
V._updateItems&&V._updateItems===_.iU._updateItems&&(V._updateItems=function(){var f=_.Fw(V.hostElement).queryDistributedElements(V.selectable||"*");f=Array.prototype.filter.call(f,V._bindFilterItem);V._setItems(f)});
V._computeKeyboardClass&&(V._computeKeyboardClass=function(f){_.JA(V.hostElement,"keyboard-focus",f)});
V.ensureRipple&&(V.ensureRipple=function(f){if(V.hasRipple&&!V.hasRipple()){if(!V._createRipple)return;V._ripple=V._createRipple();V._ripple.noink=V.noink;var n=V._rippleContainer||V.hostElement;n&&_.Pt(n).appendChild(V._ripple)}var t;if(f&&((t=V._ripple)==null?0:t.uiDownAction)){n=_.Pt(V._rippleContainer||V.hostElement);var J;t=(J=f.composedPath())==null?void 0:J[0];n.contains(t)&&V._ripple.uiDownAction(f)}});
V._updateMultiselectable&&(V._updateMultiselectable=function(f){f?V.hostElement.setAttribute("aria-multiselectable","true"):V.hostElement.removeAttribute("aria-multiselectable")})};
XGR=function(V,D,f){f=_.r(f);for(var n=f.next();!n.done;n=f.next())wdZ(n.value.constructor,V);wdZ(D.constructor,V)};
At9=function(V,D){V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,f.type==="signal"){var n=f.propertyKey;if(D.hasOwnProperty(n)&&D[n]!=null&&f.attributeType===Object){a:{n=D[n].constructor;for(var t=_.r(EDY),J=t.next();!J.done;J=t.next())if(J=J.value,n===J){n=J;break a}n=Object}f.attributeType=n}}};
aS9=function(){};
YQY=function(V){var D;return(D=V.hostElement)!=null?D:V};
$69=function(){throw Error("Rg");};
ivZ=function(V,D){V.constructor.prototype.useSignals=!0;var f=new V.constructor;XGR(f,V,D.behaviors);At9(D.reactiveSchemas,f);f={};for(var n=_.r(D.reactiveSchemas),t=n.next();!t.done;t=n.next())t=t.value,t.type==="signal"&&(f[t.propertyKey]=t.attributeType);var J={copyPropertiesToProto:$69,didRegister:!1,typesForSignals:f},H=["disable-upgrade"].concat(_.sz(D.observedAttributes)),Q=function(T){SY.call(this,V,D,J,T)};
_.v(Q,SY);_.IG.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return H}}});
J.copyPropertiesToProto=function(){for(var T=0;T<D.behaviors.length;T++)T5Y(D.behaviors[T],Q.prototype);T5Y(V,Q.prototype)};
D.legacyOptimizations||J.copyPropertiesToProto();Q.prototype.is=V.is;return Q};
SQ9=function(V,D){if(Object.getPrototypeOf(D.prototype).constructor!==_.E)throw Error("Sg");D.prototype.is=V.is;return ivZ(D.prototype,V)};
WyY=function(V){return V.type==="compute"||V.type==="computeWithMethod"};
pGZ=function(V){for(var D=V.reactiveSchemas.filter(WyY),f=new Map,n=new Map,t=new Map,J=_.r(D),H=J.next();!H.done;H=J.next())H=H.value,f.set(H.propertyKey,H),n.set(H.propertyKey,[]),t.set(H.propertyKey,0);J=0;D=_.r(D);for(H=D.next();!H.done;H=D.next()){H=H.value;for(var Q=_.r(H.type==="computeWithMethod"?H.method.args:H.args),T=Q.next();!T.done;T=Q.next())T=T.value,T.type!=="literal"&&(T=T.path.split(".")[0],n.has(T)&&(n.get(T).push(H.propertyKey),t.set(H.propertyKey,t.get(H.propertyKey)+1),J++))}H=
[].concat(_.sz(n.keys())).filter(function(y){return t.get(y)===0});
for(D=[];H.length;)for(Q=H.shift(),D.push(f.get(Q)),Q=_.r(n.get(Q)),T=Q.next();!T.done;T=Q.next())T=T.value,t.set(T,t.get(T)-1),J--,t.get(T)===0&&H.push(T);f=V.reactiveSchemas.filter(function(y){return!WyY(y)});
V.reactiveSchemas=[].concat(_.sz(f),_.sz(D))};
Lyc=function(V,D){if(D.properties)for(var f=_.r(Object.entries(D.properties)),n=f.next();!n.done;n=f.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;V.properties[n]=typeof t==="function"?{type:t}:t}D.observers&&V.observers.push.apply(V.observers,_.sz(D.observers));D.disabledPolySiReactions&&V.disabledPolySiReactions.push.apply(V.disabledPolySiReactions,_.sz(D.disabledPolySiReactions))};
ISF=function(V,D){for(var f=D.length-1;f>=0;f--){var n=D[f];Array.isArray(n)?ISF(V,n):V.indexOf(n)<0&&V.unshift(n)}};
OvY=function(V,D){V.reactiveSchemas=V.reactiveSchemas.filter(function(f){return f.type==="observe"&&D.includes(f.method.methodName)||WyY(f)&&D.includes(f.propertyKey)?!1:!0})};
MZZ=function(V,D){var f=D.prototype,n,t,J={is:V.is,reactiveSchemas:[],observedAttributes:[],behaviors:[tGx.InjectBehavior,NA.prototype],disableElementRegistration:V.disableElementRegistration,provide:(n=V.providers)!=null?n:[],reactivityMode:V.reactivityMode,signalProperties:(t=f.signalProperties)!=null?t:[]};"template"in D?J.templateGetter=function(){return D.template}:V.getTemplate&&(J.templateGetter=V.getTemplate);
f.behaviors&&ISF(J.behaviors,f.behaviors);x6d(J,D);return J};
x6d=function(V,D){for(var f=D.prototype,n={properties:{},observers:[],disabledPolySiReactions:[]},t=_.r(V.behaviors),J=t.next();!J.done;J=t.next())Lyc(n,J.value);Lyc(n,f);if(V.signalProperties)for(f=_.r(V.signalProperties),t=f.next();!t.done;t=f.next())delete n.properties[t.value];f=_.r(Object.entries(n.properties));for(t=f.next();!t.done;t=f.next()){J=_.r(t.value);t=J.next().value;J=J.next().value;var H=void 0;if((H=V.signalProperties)==null||!H.includes(t)){H=void 0;var Q=V,T=J.type;if(!T)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{T=Reflect.getMetadata("design:type",D,t);for(var y=_.r(hkF),Z=y.next();!Z.done;Z=y.next())if(Z=Z.value,T===Z){T=Z;break a}T=Object}else T=String;J.computed||J.selector||(Q.reactiveSchemas.push({type:"signal",propertyKey:t,value:J.value,attributeType:T,readOnly:J.readOnly}),Q.observedAttributes.push(_.Kl(t)));J.reflectToAttribute&&Q.reactiveSchemas.push({type:"reflect",propertyKey:t});if(J.computed){T=q9Z(J.computed);if(!T)throw Error("Tg");Q.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:t,method:T,value:J.value})}J.observer&&Q.reactiveSchemas.push({type:"observe",method:{methodName:J.observer,args:[{type:"path",path:t}]}});J.notify&&Q.reactiveSchemas.push({type:"notify",propertyKey:t});J.selector&&Q.reactiveSchemas.push({type:"redux",propertyKey:t,selector:J.selector,selectorArgs:(H=J.selectorArgs)!=null?H:[]})}}U6Y&&pGZ(V);D=_.r(n.observers);for(t=D.next();!t.done;t=D.next())f=V,t=t.value,(J=q9Z(t))?f.reactiveSchemas.push({type:"observe",method:J}):console.log('Warning: unable to parse observe declaration: "'+
t+'"');OvY(V,n.disabledPolySiReactions)};
VcZ=function(V,D){for(var f=0;f<D.length;f++){var n=D[f],t=void 0;(t=n).showHideApi!=null||(t.showHideApi={});t=void 0;!!V!==!((t=n.showHideApi)==null||!t.hideTemplateChildren)&&(n.nodeType===Node.TEXT_NODE?V?(n.showHideApi.polymerTextContent=n.textContent,n.textContent=""):(t=void 0,n.textContent=(t=n.showHideApi.polymerTextContent)!=null?t:null):n instanceof Element&&n.localName==="slot"?V?(n.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Ht)((0,_.Ht)(n).parentNode).replaceChild(n.showHideApi.polymerReplaced,
n)):(t=n.showHideApi.polymerReplaced)&&(0,_.Ht)((0,_.Ht)(t).parentNode).replaceChild(n,t):n instanceof HTMLElement&&n.style&&(V?(n.showHideApi.polymerDisplay=n.style.display,n.style.display="none"):n.style.display=n.showHideApi.polymerDisplay));n.showHideApi.hideTemplateChildren=V;n.showHideChildren&&n.showHideChildren(V)}};
fOF=function(){if(!DJd){var V=document.createElement("style");V.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(V);DJd=!0}};
Wt=function(){return _.c("disable_hidden_dom_if_using_stamper")};
n5Y=function(V,D){var f=_.pI().getState();return D?V.apply(null,[f].concat(_.sz(D))):V(f)};
o5d=function(){if(tcc)return tcc;var V=_.r(_.HJ(0,void 0,"Nl6eIe")),D=V.next().value;V.next();var f=V.next().value;_.pI().subscribe(function(){P9R(f)});
return tcc=D};
P9R=function(V){_.c("delay_redux_signal_update_killswitch")?V(function(D){return D+1}):J7U||(J7U=!0,Promise.resolve().then(function(){V(function(D){return D+1});
J7U=!1}))};
_.pI=function(){return r79.getAppStore()};
Hzc=function(V,D){return r79.getSelectFn()(V,D)};
_.LI=function(V){r79.getDispatchFn()(V)};
w_9=function(V,D){var f={},n;for(n in V)f[n]=D(V[n],n);return f};
_.IU=function(V,D){return function(){var f;return(f=_.Nq(V))!=null?f:D}};
_.Or=function(V,D){var f=Object.assign({},V),n;for(n in D)D.hasOwnProperty(n)&&(f[n]=_.IU(V[n],D[n]));return f};
QpR=function(V,D,f){V instanceof Element&&(f.debugName||(f.debugName="<"+V.tagName.toLowerCase()+(V.tagName.includes("-")?">":"."+V.className+">")),_.c("ytwiz_enable_debug_component_props")&&(V.debugProps||(V.debugProps=w_9(D,function(n){return function(){return n()}}))))};
Ttc=function(V){var D;if(!(D=xu.traceAllComponents)){var f;D=(f=x8)==null?void 0:f.activeSpan;D=(D==null?void 0:D.name)!=="ytComponent"}return D?A_Z("ytComponent",{},V):V()};
_.MA=function(V,D){var f=function(n){return Ttc(function(t){var J=bzx={};var H;if(((H=f)==null?0:H.idomCompat)&&n.renderedFromIdom){var Q;H=typeof f.idomCompat==="object"?(Q=f)==null?void 0:Q.idomCompat.callbacks:{};H=_.r(KsL(n,H,f.debugName));Q=H.next().value;H.next();H=H.next().value;var T=y7c(V,Q);J.privateValue=T;bzx=void 0;QpR(T,Q,f);J={debugName:f.debugName};t&&J&&Object.assign(t.attributes,J);t=xYL(T);t=Array.isArray(t)?t[0]:t;t[T2]||(t[T2]={});t[T2].updateSignalsFromIdomProps=H;ZzU(Q,T);return T}H=
w_9(n,jpc);Q=y7c(V,H);J.privateValue=Q;bzx=void 0;QpR(Q,H,f);J={debugName:f.debugName};t&&J&&Object.assign(t.attributes,J);ZzU(H,Q);return Q})};
f.debugName=D===void 0?"":D;return f};
y7c=function(V,D){V=V(D);return Z9(V)};
lO9=function(V,D){V[D]||(V=new _.cI("IDOM interop setter undefined. Key:",D),_.NG(V))};
jpc=function(V,D){return D==="children"||D==="ref"||typeof V==="function"||V===void 0?V:function(){return _.Nq(V)}};
KsL=function(V,D,f){var n={},t={},J={},H={},Q;for(Q in V){H={key$jscomp$899:H.key$jscomp$899};H.key$jscomp$899=Q;var T=V[H.key$jscomp$899];if(H.key$jscomp$899==="children"||H.key$jscomp$899==="ref")n[H.key$jscomp$899]=T;else if(typeof T==="function")H.key$jscomp$899 in D||T.length>0?(J[H.key$jscomp$899]=T,n[H.key$jscomp$899]=function(Z){return function(){return J[Z.key$jscomp$899].apply(J,_.sz(_.gQ.apply(0,arguments)))}}(H)):n[H.key$jscomp$899]=T;
else if(!(V[H.key$jscomp$899]===void 0&&H.key$jscomp$899 in D)){var y=_.r(_.HJ(V[H.key$jscomp$899],{debugName:"__cwis:"+f+":"+H.key$jscomp$899},"orv71b"));T=y.next().value;y=y.next().value;n[H.key$jscomp$899]=T;t[H.key$jscomp$899]=y}}return[n,t,function(Z){var l={},G;for(G in Z)l={key$jscomp$900:l.key$jscomp$900,val$jscomp$115:void 0},l.key$jscomp$900=G,l.val$jscomp$115=Z[l.key$jscomp$900],l.key$jscomp$900!=="children"&&l.key$jscomp$900!=="ref"&&(typeof l.val$jscomp$115==="function"?l.key$jscomp$900 in
D?J[l.key$jscomp$900]=l.val$jscomp$115:l.val$jscomp$115.length>0&&(J[l.key$jscomp$900]=l.val$jscomp$115,_.zP(new _.cI("Callback detected that was not set in the idomCompat callbacks map. Key:",l.key$jscomp$900))):l.key$jscomp$900 in D&&l.val$jscomp$115===void 0||(lO9(t,l.key$jscomp$900),ZJ(function(F){return function(){t[F.key$jscomp$900](F.val$jscomp$115)}}(l))))}]};
c7Z=function(V,D,f){var n=jNY(V.prototype,Gun,V.prototype.behaviors);n.prototype.is=D;n.prototype.localName=D;f&&eVR(n,f);return function(t){t&&(n.prototype.hostElement=t);var J=new n;J.root=J;J.hostElement=t;return J}};
eVR=function(V,D){var f;Object.defineProperty(V.prototype,"_template",{get:function(){f===void 0&&(f=D());return f},
set:function(n){f=n},
configurable:!0,enumerable:!0})};
spR=function(V,D,f,n){function t(){if(!F){for(var k=new Set,d=_.r(Z),z=d.next();!z.done;z=d.next()){z=z.value;for(var C=_.r(Object.getOwnPropertyNames(z)),A=C.next();!A.done;A=C.next()){A=A.value;var O=void 0,W=(O=Object.getOwnPropertyDescriptor(z,A))==null?void 0:O.value;W&&W instanceof Function&&!hA(A)&&(!Q[A]||_.c("polymer_forward_method_killswitch"))&&k.add(A)}}d=_.r(Object.entries(Object.getOwnPropertyDescriptors(V.prototype)));for(z=d.next();!z.done;z=d.next())C=_.r(z.value),z=C.next().value,
C=C.next().value,C.value instanceof Function&&!hA(z)&&k.add(z);F=k}return F}
Fs9(V,D,n==null?void 0:n.providers);l1F(V.prototype,V,!0);var J=c7Z(V,D,f),H,Q=(H=V.prototype.properties)!=null?H:{},T,y,Z=(y=(T=V.prototype.behaviors)==null?void 0:T.flat(Infinity))!=null?y:[];f=_.r(Z);for(H=f.next();!H.done;H=f.next())Q=Object.assign({},H.value.properties,Q);var l=[].concat(_.sz(g59),_.sz(Object.keys(Q).map(function(k){return _.Kl(k)}))),G=!1,F;
return{ctor:function(k,d){var z=J(k),C,A;k=[].concat(_.sz((C=n==null?void 0:n.allowedProps)!=null?C:[]),_.sz((A=n==null?void 0:n.allowedPropsFromBehaviors)!=null?A:[]));z.allowedProps=k.length>0?k:void 0;C={};A=_.r(l);for(k=A.next();!k.done;k=A.next())k=k.value,C[k]=_.yR(k);z.__dataAttributes=C;var O=z.ready.bind(z);z.ready=function(){d.beforeReady();O();if(ct(D)&&!G){var W=z.__templateInfo;if(W==null?0:W.hostProps){W=_.r(Object.keys(W.hostProps));for(var I=W.next();!I.done;I=W.next())gI(D,I.value,
"PROPERTY_ACCESS_GET_INTERNAL")}G=!0}};
z._overrideLegacyUndefined=!0;return z},
props:Q,observedAttributes:l,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var k=[],d=new Set,z=_.r(Object.keys(Q)),C=z.next();!C.done;C=z.next())C=C.value,k.push([C,Q[C].readOnly]),d.add(C);z=t();C=_.r(Object.keys(Object.getOwnPropertyDescriptors(V.prototype)));for(var A=C.next();!A.done;A=C.next())A=A.value,!v5U(A)||z.has(A)||d.has(A)||(k.push([A,!1]),d.add(A));d=_.r(ku3);for(z=d.next();!z.done;z=d.next())k.push([z.value,!0]);return k},
getPropsToForwardBeforeReady:function(k){for(var d=[],z=_.r(Object.entries(k)),C=z.next();!C.done;C=z.next()){var A=_.r(C.value);C=A.next().value;A=A.next().value;if(v5U(C)&&!(A instanceof Function)&&(d.push([C,!1]),ct(D))){var O=A=void 0;(O=(A=k)._createPropertyAccessor)==null||O.call(A,C)}}return d},
shouldForwardProp:v5U,shouldLog:ct}};
Fs9=function(V,D,f){P13(V,f);V.prototype.behaviors.unshift(BtU);if(pgY()){if(ct(D)){var n;(n=V.prototype).behaviors!=null||(n.behaviors=[]);V.prototype.behaviors.unshift(xF3())}MOU(V)}_.u(NA.prototype)(V.prototype,"__templateHelpers")};
hA=function(V){return dJR.has(V)||V.startsWith("__compute__")};
v5U=function(V){return!hA(V)&&!V.startsWith("_")&&!V.endsWith("_")};
RVX=function(V,D){function f(){var G=T();G=_.r(G);for(var F=G.next();!F.done;F=G.next()){var k=_.r(F.value);F=k.next().value;k=k.next().value;ueY(l.prototype,F,k)}n=!0}
var n=!1,t=V.ctor,J=V.getInitialMethods,H=V.observedAttributes,Q=V.getPropsToForwardBeforeReady,T=V.getPropsToForwardBeforeRegister,y=V.shouldForwardProp,Z=V.shouldLog,l=function(){var G=HTMLElement.call(this)||this;G.didForwardDynamicProps=!1;G.loggingStatus={};n||f();G.inst=t(G,{beforeReady:function(){G.didForwardDynamicProps||(G.forwardDynamicProps(),G.didForwardDynamicProps=!0)}});
G.controllerProxy=IQZ(G.inst,D);G.forwardMethods();return G};
_.v(l,HTMLElement);l.prototype.forwardMethods=function(){for(var G=this,F=_.r(this.inst.getExtraMethodsToForward()),k=F.next(),d={};!k.done;d={method$jscomp$60:void 0},k=F.next()){var z=_.r(k.value);k=z.next().value;z=z.next().value;d.method$jscomp$60=z;this[k]=function(C){return function(){return C.method$jscomp$60.call.apply(C.method$jscomp$60,[G.inst].concat(_.sz(_.gQ.apply(0,arguments))))}}(d)}F=_.r(J());
for(d=F.next();!d.done;d=F.next())d=d.value,y(d)&&Nt9(this,d),Z(D)&&!hA(d)&&mJL(this.inst,d)};
l.prototype.forwardDynamicProps=function(){var G=Q(this.inst);G=_.r(G);for(var F=G.next();!F.done;F=G.next()){var k=_.r(F.value);F=k.next().value;k=k.next().value;ueY(this,F,k);Z(D)&&!hA(F)&&zVU(this.inst,F)}};
l.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
l.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
l.prototype.attributeChangedCallback=function(G,F,k){this.inst.attributeChangedCallbackWrapper(G,F,k)};
_.IG.Object.defineProperties(l.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return D}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.IG.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return H}}});
customElements.define(D,l)};
ueY=function(V,D,f){V.hasOwnProperty(D)||Object.defineProperty(V,D,{get:function(){var n,t=((n=V.is)!=null?n:V.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||gI(t,D,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,n=this.polymerController[D],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,n},
set:function(n){if(!f){var t,J=((t=V.is)!=null?t:V.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||gI(J,D,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=D,this.loggingStatus.bypassProxyController=!0,this.polymerController[D]!==n&&(t={},this.polymerController.setProperties((t[D]=n,t)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Nt9=function(V,D,f){var n=V.polymerController;V[D]=function(){var t=_.gQ.apply(0,arguments);V.loggingStatus.currentExternalCall=D;V.loggingStatus.bypassProxyController=!0;var J,H=((J=V.is)!=null?J:V.tagName).toLowerCase();gI(H,D,"PROPERTY_ACCESS_CALL_EXTERNAL");var Q;J=(Q=f!=null?f:n[D])==null?void 0:Q.call.apply(Q,[n].concat(_.sz(t)));V.loggingStatus.currentExternalCall=void 0;V.loggingStatus.bypassProxyController=!1;return J}};
mJL=function(V,D){var f=V.hostElement,n=V[D];V[D]=function(){var t=_.gQ.apply(0,arguments);if(f.loggingStatus.currentExternalCall!==D){var J,H=((J=f.is)!=null?J:f.tagName).toLowerCase();gI(H,D,"PROPERTY_ACCESS_CALL_INTERNAL")}return n==null?void 0:n.apply(V,t)}};
zVU=function(V,D){var f=Object.getOwnPropertyDescriptor(V,D);f&&!f.get&&Object.defineProperty(V,D,{get:function(){OC9(V.hostElement,D);return f.value},
set:function(n){vt(V.hostElement,D);f.value=n}})};
C93=function(V){return _.c("poly_si_dom_repeat_detached_fix_killswitch")||V.tagName!=="PS-DOM-REPEAT"?V.tagName==="DOM-REPEAT":!0};
X_X=function(V,D){var f=qtL(V);V instanceof Element&&f.unshift(V);V=_.r(f.filter(C93));for(var n=V.next();!n.done;n=V.next()){var t=void 0;n=_.r((t=n.value.__instances)!=null?t:[]);for(t=n.next();!t.done;t=n.next())if(t=t.value,t.root){t=Array.from(t.root.children);t=_.r(t);for(var J=t.next();!J.done;J=t.next())f.push.apply(f,_.sz(X_X(J.value,D)))}}return f.filter(function(H){return H.usePatchedLifecycles&&H.lifecycleIsConnected===D})};
qtL=function(V){var D=null;V instanceof Element?D=Element.prototype.querySelectorAll:V instanceof DocumentFragment&&(D=DocumentFragment.prototype.querySelectorAll);return D?Array.from(D.call(V,"*")):[]};
Ur=function(V){rc(function(){for(var D=_.r(X_X(V,!1)),f=D.next();!f.done;f=D.next()){f=f.value;f.lifecycleIsConnected=!0;try{var n=void 0,t=void 0,J=void 0,H=void 0;(n=(H=f.polymerController)!=null?H:f)==null||(J=(t=n).connectedCallback)==null||J.call(t)}catch(Q){_.NG(Q)}}})};
Va=function(V){rc(function(){for(var D=_.r(X_X(V,!0)),f=D.next();!f.done;f=D.next()){f=f.value;f.lifecycleIsConnected=!1;try{var n=void 0,t=void 0,J=void 0,H=void 0;(n=(H=f.polymerController)!=null?H:f)==null||(J=(t=n).disconnectedCallback)==null||J.call(t)}catch(Q){_.NG(Q)}}})};
St9=function(){if(!E5R){E5R=!0;var V=[Node];Db&&V.push(Db.Wrapper);var D=Node.prototype.insertBefore,f=Node.prototype.removeChild;V=_.r(V);for(var n=V.next(),t={};!n.done;t={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},n=V.next())n=n.value,t.nativeInsertBefore=n.prototype.insertBefore,n.prototype.insertBefore=function(H){return function(Q,T){if(Q instanceof DocumentFragment){var y=Array.from(Q.children);Q=H.nativeInsertBefore.call(this,Q,T);
if(this.isConnected&&H.nativeInsertBefore===D)for(T=_.r(y),y=T.next();!y.done;y=T.next())Ur(y.value);return Q}y=Q instanceof Element&&Q.isConnected;T=H.nativeInsertBefore.call(this,Q,T);y&&Va(Q);this.isConnected&&Ur(Q);return T}}(t),t.nativeAppendChild=n.prototype.appendChild,n.prototype.appendChild=function(H){return function(Q){if(Q instanceof DocumentFragment){var T=Array.from(Q.children);
Q=H.nativeAppendChild.call(this,Q);if(this.isConnected){T=_.r(T);for(var y=T.next();!y.done;y=T.next())Ur(y.value)}return Q}T=Q instanceof Element&&Q.isConnected;y=H.nativeAppendChild.call(this,Q);T&&Va(Q);this.isConnected&&Ur(Q);return y}}(t),t.nativeRemoveChild=n.prototype.removeChild,n.prototype.removeChild=function(H){return function(Q){var T=Q instanceof Element&&Q.isConnected,y=H.nativeRemoveChild.call(this,Q);
T&&f===H.nativeRemoveChild&&Va(Q);return y}}(t),t.nativeReplaceChild=n.prototype.replaceChild,n.prototype.replaceChild=function(H){return function(Q,T){if(Q instanceof DocumentFragment){var y=Array.from(Q.children);
Q=H.nativeReplaceChild.call(this,Q,T);if(this.isConnected)for(Va(T),T=_.r(y),y=T.next();!y.done;y=T.next())Ur(y.value);return Q}y=Q instanceof Element&&Q.isConnected;var Z=this.isConnected,l=H.nativeReplaceChild.call(this,Q,T);Z&&Va(T);y&&Va(Q);Z&&Ur(Q);return l}}(t);
V=[Element];Db&&V.push(Db.Wrapper);V=_.r(V);n=V.next();for(t={};!n.done;t={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},n=V.next())n=n.value,n.prototype.before=A73(n.prototype.before),n.prototype.after=A73(n.prototype.after),t.nativeReplaceWith=n.prototype.replaceWith,n.prototype.replaceWith=function(H){return function(){var Q=_.gQ.apply(0,arguments),T=_.r(aOZ(Q)),y=T.next().value,
Z=T.next().value;T=this.isConnected;H.nativeReplaceWith.apply(this,Q);Q=_.r(Z);for(Z=Q.next();!Z.done;Z=Q.next())Va(Z.value);if(T)for(Va(this),y=_.r(y),T=y.next();!T.done;T=y.next())T=T.value,T instanceof Element&&Ur(T)}}(t),t.nativeRemove=n.prototype.remove,n.prototype.remove=function(H){return function(){var Q=this.isConnected;
H.nativeRemove.call(this);Q&&Va(this)}}(t),t.nativeInsertAdjacentElement=n.prototype.insertAdjacentElement,n.prototype.insertAdjacentElement=function(H){return function(Q,T){var y=T.isConnected;
Q=H.nativeInsertAdjacentElement.call(this,Q,T);y&&Va(T);Q.isConnected&&Ur(Q);return Q}}(t),t.nativeSetAttribute=n.prototype.setAttribute,n.prototype.setAttribute=function(H){return function(Q,T){var y=YtZ(this);
if(!y.usePatchedLifecycles)return H.nativeSetAttribute.call(this,Q,T);var Z=this.getAttribute(Q);H.nativeSetAttribute.call(this,Q,T);T=this.getAttribute(Q);$Jc(y,Q,Z,T)}}(t),t.nativeRemoveAttribute=n.prototype.removeAttribute,n.prototype.removeAttribute=function(H){return function(Q){var T=YtZ(this);
if(!T.usePatchedLifecycles)return H.nativeRemoveAttribute.call(this,Q);var y=this.getAttribute(Q);H.nativeRemoveAttribute.call(this,Q);y!==null&&$Jc(T,Q,y,null)}}(t),t.nativeToggleAttribute=n.prototype.toggleAttribute,n.prototype.toggleAttribute=function(H){return function(Q,T){var y=YtZ(this);
if(!this.usePatchedLifecycles)return H.nativeToggleAttribute.call(this,Q,T);var Z=this.getAttribute(Q),l=Z!==null;T=H.nativeToggleAttribute.call(this,Q,T);T!==l&&$Jc(y,Q,Z,T?"":null);return T}}(t);
V=[Document,DocumentFragment,Element,ShadowRoot];Db&&V.push(Db.Wrapper);V=_.r(V);for(t=V.next();!t.done;t=V.next())t=t.value,t.prototype.prepend=A73(t.prototype.prepend),t.prototype.append=A73(t.prototype.append);(Db==null?void 0:Db.noPatch)===!0&&izX();document.readyState==="complete"?Ur(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ur(document.body)});
var J=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");J&&J.get&&J.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:J.enumerable,configurable:!0,get:J.get,set:function(H){H||Va(this);J.set.call(this,H);return H}})}};
A73=function(V){return function(){var D=_.gQ.apply(0,arguments),f=_.r(aOZ(D)),n=f.next().value;f=f.next().value;V.apply(this,D);D=_.r(f);for(f=D.next();!f.done;f=D.next())Va(f.value);if(this.isConnected)for(n=_.r(n),D=n.next();!D.done;D=n.next())D=D.value,D instanceof Element&&Ur(D)}};
izX=function(){for(var V=_.r(WsX),D=V.next();!D.done;D=V.next()){D=D.value.prototype;for(var f=_.r(p_Z),n=f.next();!n.done;n=f.next()){n=n.value;var t=Object.getOwnPropertyDescriptor(D,n);t&&Object.defineProperty(D,"__shady_native_"+n,t)}}};
$Jc=function(V,D,f,n){var t,J;if((t=V.polymerController)==null?0:(J=t.observedAttributes)==null?0:J.includes(D))if(V=V.polymerController,V.attributeChangedCallbackWrapper)V.attributeChangedCallbackWrapper.call(V,D,f,n);else{var H;(H=V.attributeChangedCallback)==null||H.call(V,D,f,n)}};
aOZ=function(V){var D=[],f=[];V=_.r(V);for(var n=V.next();!n.done;n=V.next())n=n.value,n instanceof Element&&n.isConnected&&f.push(n),n instanceof DocumentFragment?D.push.apply(D,_.sz(Array.from(n.children))):D.push(n);return[D,f]};
YtZ=function(V){return!(V instanceof Element)&&V.node instanceof Element?V.node:V};
Ls9=function(V,D){var f=D?["children"].concat(_.sz(D)):["children"];D=[];f=_.r(f);for(var n=f.next();!n.done;n=f.next()){var t=n.value;if(V.hasOwnProperty(t)){n=V[t];n=typeof n==="function"?n():n;n=Z9(Array.isArray(n)?n:[n]).flat();if(t!=="children"){t=o1Y(t);for(var J=_.r(n),H=J.next();!H.done;H=J.next())H=H.value,H instanceof Element&&H.setAttribute("slot",t)}D.push(n)}}D.length===0?V=[]:(V=Z9(_.K("div",null,D)),V=Array.from(V.childNodes));return V};
Ozc=function(V,D,f){var n={};_.mK(function(){var t={},J;for(J in D)if(D.hasOwnProperty(J)){var H=void 0,Q=void 0;if(!(((H=f.slotProps)==null?0:H.includes(J))||J==="children"||((Q=f.callbackProps)==null?0:Q.includes(J))||J==="ref")&&(H=_.Nq(D[J]),n[J]!==H)){n[J]=H;Q=void 0;var T=(Q=V.hostElement)!=null?Q:V;IOd.has(J)&&(T[J]=H);t[J]=H}}ZJ(function(){if(V.setProperties)V.setProperties(t);else for(var y=_.r(Object.entries(t)),Z=y.next();!Z.done;Z=y.next()){var l=_.r(Z.value);Z=l.next().value;l=l.next().value;
V[Z]=l}})})};
McY=function(V,D,f,n){var t=Ls9(f,n.slotProps),J=(0,_.Ht)(V);t=_.r(t);for(var H=t.next();!H.done;H=t.next())J.appendChild(H.value);Ozc(D,f,n);n=_.r(n.callbackProps||[]);t=n.next();for(J={};!t.done;J={kebabEventName:void 0,eventListener:void 0},t=n.next())H=t=t.value,String(t).substring(0,2)==="on"&&f[H]?(J.kebabEventName=o1Y(String(t).substring(2)),J.eventListener=f[H],V.addEventListener(J.kebabEventName,J.eventListener),_.dc(function(Z){return function(){V.removeEventListener(Z.kebabEventName,Z.eventListener)}}(J))):
D[H]=f[H];
if(f.ref){f=_.r(xJL(f.ref));var Q=f.next().value,T=f.next().value,y=D.attached.bind(D);D.attached=function(){Q(V);y()};
_.dc(function(){T()})}};
xJL=function(V){if(typeof V==="function"){var D;return[function(f){D=V(f)},
function(){var f;(f=D)==null||f()}]}if(!V.onRender||!V.onUnmount)throw Error("Xg");
return[V.onRender,V.onUnmount]};
DzZ=function(V,D,f,n,t){n=n===void 0?{}:n;var J=hVY,H=!1;J?(H=!0,hVY=void 0):(UJU=D,J=document.createElement(D),UJU=void 0);var Q=J;Q.usePatchedLifecycles=!0;Q.lifecycleIsConnected=!1;J.loggingStatus={};var T=V4U(V,D,J,n,t);_.dc(function(){Q.lifecycleIsConnected&&(Q.lifecycleIsConnected=!1,T.disconnectedCallback())});
H||McY(J,T,f,n);return J};
V4U=function(V,D,f,n,t){t=t===void 0?spR:t;fhn[D]!=null||(fhn[D]=t(V,D,n==null?void 0:n.getTemplate,n));var J=fhn[D],H=J.ctor;t=J.getInitialMethods;var Q=J.getPropsToForwardBeforeReady;V=J.getPropsToForwardBeforeRegister;n=J.shouldForwardProp;var T=J.observedAttributes,y=J.shouldLog,Z=H(f,{beforeReady:function(){var l=Z;l._takeAttributes?l._takeAttributes():l.setPropertiesFromInitialAttributeValues&&l.setPropertiesFromInitialAttributeValues();l=_.r(Q(f.polymerController));for(var G=l.next();!G.done;G=
l.next()){var F=_.r(G.value);G=F.next().value;F=F.next().value;ueY(f,G,F);y(D)&&!hA(G)&&zVU(f.polymerController,G)}f.polymerController=IQZ(Z,D)}});
f.polymerController=Z;f.polymerController.observedAttributes=T;J=_.r(Z.getExtraMethodsToForward());for(H=J.next();!H.done;H=J.next())T=_.r(H.value),H=T.next().value,T=T.next().value,Nt9(f,H,T);t=_.r(t());for(J=t.next();!J.done;J=t.next())J=J.value,n(J)&&Nt9(f,J),y(D)&&!hA(J)&&mJL(Z,J);V=_.r(V());for(n=V.next();!n.done;n=V.next())t=_.r(n.value),n=t.next().value,t=t.next().value,ueY(f,n,t);return Z};
t49=function(V,D){return fm===D?(V.isInert=!0,fm="",!0):n2d===D?(V.isInert=!0,n2d="",!0):!1};
PIY=function(V){var D=nm;nm=V;return D};
J0Y=function(V){if(t2.has(V))n2d=V;else if(Pr.has(V)&&nm&&o2Y(nm)===V){var D;(D=nm)._numRenders!=null||(D._numRenders=0);nm._numRenders++;if(nm._numRenders>1)throw Error("Yg");return nm}};
r0F=function(V){t2.has(o2Y(V))?n2d=o2Y(V):Pr.has(o2Y(V))&&nm!==V&&(V._isInert=!0)};
o2Y=function(V){var D;return(D=V==null?void 0:V.tagName.toLowerCase())!=null?D:""};
H53=function(V,D){if(V.componentType===FY)throw Error("Zg");Pr.add(D);var f=function(){var n=HTMLElement.call(this)||this;n.is=D;if(UJU===D)return n.isInert=!0,n;n.createElement();return n};
_.v(f,HTMLElement);f.prototype.createElement=function(){if(!this.isInert){hVY=this;var n=_.r(_.eCR(function(){return _.K(V,null)})).next().value;
hVY=void 0;MGX(this);return n}};
customElements.define(D,f)};
QuY=function(V,D,f,n,t){V.prototype.is=D;(n==null?0:n.useSink)?wv9(V,D,f,n,t):(f=spR(V,D,f,n),RVX(f,D));return V};
wv9=function(V,D,f,n,t){St9();var J=_.MA(function(H){return DzZ(V,D,H,Object.assign({},n,{getTemplate:f}),t)},"a");
J.debugName=D+" (CoW wrapped)";H53(J,D);return J};
b5x=function(V){return!TSd.has(V)};
Z5Y=function(V,D,f,n){function t(){if(!l){for(var G=new Set(KNx),F=_.r(J.behaviors),k=F.next();!k.done;k=F.next()){k=k.value;for(var d=_.r(Object.getOwnPropertyNames(k)),z=d.next();!z.done;z=d.next()){z=z.value;var C=void 0,A=(C=Object.getOwnPropertyDescriptor(k,z))==null?void 0:C.value;A&&A instanceof Function&&(!y[z]||_.c("polymer_forward_method_killswitch"))&&G.add(z)}}F=_.r(Object.entries(Object.getOwnPropertyDescriptors(V.prototype)));for(k=F.next();!k.done;k=F.next())d=_.r(k.value),k=d.next().value,
d=d.next().value,d.value instanceof Function&&G.add(k);l=G}return l}
var J=MZZ({is:D,disableElementRegistration:!1,getTemplate:f,providers:n==null?void 0:n.providers,reactivityMode:n==null?void 0:n.reactivityMode},V);if((n==null?0:n.allowedProps)||(n==null?0:n.allowedPropsFromBehaviors)){var H,Q;J.allowedProps=[].concat(_.sz((H=n.allowedProps)!=null?H:[]),_.sz((Q=n.allowedPropsFromBehaviors)!=null?Q:[]))}var T=SQ9(J,V);D=T.observedAttributes;var y={};f=_.r(J.reactiveSchemas);for(n=f.next();!n.done;n=f.next())if(n=n.value,n.type==="signal")y[n.propertyKey]={readOnly:n.readOnly},
n.readOnly&&(y[lwn(n.propertyKey)]={readOnly:!0});else if(n.type==="compute"||n.type==="computeWithMethod"||n.type==="redux")y[n.propertyKey]={readOnly:!0};var Z=J.reactiveSchemas.length,l;return{ctor:function(G,F){G=new T(G);G.beforeReady=F.beforeReady;return G},
props:y,observedAttributes:D,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var G=[],F=new Set,k=_.r(y09),d=k.next();!d.done;d=k.next())d=d.value,G.push([d,d!=="observers"&&d!=="properties"]),F.add(d);k=_.r(Object.keys(y));for(d=k.next();!d.done;d=k.next())d=d.value,G.push([d,y[d].readOnly]),F.add(d);k=t();d=_.r(Object.keys(Object.getOwnPropertyDescriptors(V.prototype)));for(var z=d.next();!z.done;z=d.next())z=z.value,!b5x(z)||k.has(z)||F.has(z)||(G.push([z,!1]),F.add(z));G.push(["allowedProps",
!0]);return G},
getPropsToForwardBeforeReady:function(G){var F=[];G=_.r(Object.keys(G));for(var k=G.next();!k.done;k=G.next()){k=k.value;var d=t();b5x(k)&&!d.has(k)&&F.push([k,!1])}G=_.r(J.reactiveSchemas.slice(Z));for(k=G.next();!k.done;k=G.next())k=k.value,k.type!=="compute"&&k.type!=="computeWithMethod"&&k.type!=="redux"&&k.type!=="signal"||F.push([k.propertyKey,k.type==="signal"?k.readOnly:!0]);return F},
shouldForwardProp:b5x,shouldLog:ct}};
_.Y=function(V,D,f,n){var t,J,H=(J=(t=n)==null?void 0:t.mode)!=null?J:0;n!=null||(n={});var Q;(Q=n).reactivityMode!=null||(Q.reactivityMode=0);H===1&&_.oT("creator_poly_si_disable_list").includes(D)&&(H=2);return H===1?QuY(V,D,f,Object.assign({},n,{useSink:!0}),Z5Y):QuY(V,D,f,Object.assign({},n,{useSink:H===2}))};
_.o5=function(){return function(V,D,f,n){var t,J,H=(J=(t=n)==null?void 0:t.mode)!=null?J:2;n!=null||(n={});var Q;(Q=n).reactivityMode!=null||(Q.reactivityMode=0);if(H===0)throw Error("$g`"+H);return wv9(V,D,f,n,H===1?Z5Y:void 0)}};
_.J2=function(V){return _.c("creator_poly_si_killswitch")?!1:_.c("force_all_poly_si_batches")&&(V==="poly_si_all_on_test_check"||V==="creator_poly_si_batch_050"?0:V)||document.documentElement.hasAttribute("use-signals")?!0:!V||_.c(V+"_holdback_enabled")&&_.c("kevlar_polysi_holdback")?!1:_.c(V)};
rs=function(V){return V?V.icon?V.icon.iconType.toLowerCase():V.customThumbnail?"member":"":""};
juX=function(V){if(!V)return"";V=_.r(V);for(var D=V.next();!D.done;D=V.next())if((D=D.value)&&D.liveChatAuthorBadgeRenderer&&(D=rs(D.liveChatAuthorBadgeRenderer))&&D!=="verified")return D;return""};
lhZ=function(V,D){if(!V)return null;var f;return((f=V.find(function(n){return n&&n.liveChatAuthorBadgeRenderer?rs(n.liveChatAuthorBadgeRenderer)===D:!1}))==null?void 0:f.liveChatAuthorBadgeRenderer)||null};
_.v2Y=function(V){var D=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;V=G7R(V);D=G7R(D);var f=enc(V.hex);D=enc(D.hex);var n=D[0]/255;var t=D[1]/255,J=D[2]/255,H=Math.max(n,t,J),Q=Math.min(n,t,J),T=0,y=0,Z=.5*(H+Q);H!=Q&&(H==n?T=60*(t-J)/(H-Q):H==t?T=60*(J-n)/(H-Q)+120:H==J&&(T=60*(n-t)/(H-Q)+240),y=0<Z&&Z<=.5?(H-Q)/(2*Z):(H-Q)/(2-2*Z));n=[Math.round(T+360)%360,y,Z];f=c0L(f,D);for(V=FN3(V.hex);f<4.5;){V=n[2]>=.5?V.darker((4.5-f)/2):V.brighter((4.5-f)/2);f=V.toString();
t=g2Y(f);if(!t.length)throw Error("Xd`"+f);f=t;f=c0L(f,D)}return V.hex()};
c0L=function(V,D){V=_.P2x(V);D=_.P2x(D);return(Math.max(V,D)+.05)/(Math.min(V,D)+.05)};
_.Hr=function(V){return"#"+("000000"+(V&16777215).toString(16)).slice(-6)};
_.k7Z=function(V){for(var D=0,f=0;f<V.length;f++)D=V.charCodeAt(f)+((D<<5)-D);V="#";for(f=0;f<3;f++)V+=("00"+(D>>f*8&255).toString(16)).slice(-2);return V};
suY=function(V){V=(V||"").split(":");V.length===1&&V.unshift("yt-icons");V[1]=V[1].toLowerCase();return V};
znx=function(V,D){var f=(D=D===void 0?!1:D)?BSZ:dzc,n=D?u0x:NS9;V.getIconNames().forEach(function(t){t=D?t:t.substring(t.indexOf(":")+1);V.name==="yt-icons"?mzL.add(t):t.includes("-filled")?f.add(t):n.add(t)})};
ws=function(V,D,f,n){f=f===void 0?!1:f;n=n===void 0?!1:n;var t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,Rnc,2);if(n)return Q.return(mzL.has(V));t=f?BSZ:dzc;J=f?u0x:NS9;return D?(H=V.includes("-filled")?V:V.concat("-filled"),Q.return(t.has(H))):Q.return(J.has(V))})};
_.Xv9=function(V){if(CIn(V))return V;var D=V=V.toLowerCase();(V=qSd.get(V))&&(D=V);return D};
_.Qa=function(V){if(CIn(V))return V.toString();var D=E2R.get(V);if(D)return D;D=V.toLowerCase();var f="yt-icons",n=D.replace(/_/g,"-");switch(V){case "MY_CHANNEL":D="account_circle";break;case "ADD_TO_LIBRARY":D="add";break;case "ALERT_WARN_RED":D="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":D="person_music";break;case "BLOCK_USER":D="block";break;case "CAPTIONS":D="closed_caption";break;case "CLOSED_CAPTION":f="av";D="closed-caption";break;case "COLLECTION":f="maps";D="layers";break;case "CONTACT":f=
"icons";D="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":f="ytcp-icons";D=n.split("creator-studio-")[1];break;case "DISMISSAL":D="close";break;case "DO_NOT_DISTURB":D="block";break;case "DOGFOOD":f="icons";D="pets";break;case "DRAFT":D="paper_corner_folded";break;
case "EMPTY_LIKE":D="like_outline";break;case "EXIT_APP":D="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":D=n;break;case "GAMES":f="ytg";D="my-games";break;case "GO_TO_PAGE":D="arrow-forward";break;case "GROUP":f="social";break;case "HIDE":D="not_interested";break;case "INPUT_COMPONENT":f="icons";D="settings-input-component";break;case "KIDS_BLOCK":D="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":f="ytg";D="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":f=
"ytg";D="membership-post-purchase";break;case "MULTIVIEW":D="screen_multi_view";break;case "MY_LOCATION":f="maps";D=n;break;case "NOTIFICATIONS_INBOX":D="NOTIFICATIONS";break;case "NEXT":D="chevron_right";break;case "OFFLINE":D="power-settings-new";break;case "PAUSE":f="miniplayer";break;case "PAYMENT":f="icons";break;case "PHONE_DOWNLOAD":D="phone_download";break;case "PREMIUM_STANDALONE":f="yt-logos";D="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":f="yt-logos";D="premium_standalone_cairo";
break;case "QUESTION_ANSWER":D="question_answer";break;case "REDEEM":f="icons";D="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":D="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":D="library_add";break;case "SCHOOL":f="yt-sys-icons";D="creator_academy";break;case "SETTINGS_LIGHT":D="settings_applications";break;case "SETTINGS_MATERIAL":D="settings";break;case "SEARCH_HISTORY":D="watch_history";break;case "SHOPPING_BAG":D="bag";break;case "SOCIAL":case "PEOPLE":f=
"yt-icons";D="people";break;case "STAFF_PICK":f="ytg";D="spotlight";break;case "START_DVR":D="add";break;case "STOP_DVR":f="av";D="stop";break;case "TAB_LIKED":D="like";break;case "TAB_INBOX":D="mail";break;case "TERMS_OF_SERVICE":f="icons";D="description";break;case "TRENDING":D="fire";break;case "UNBLOCK_USER":D="remove";break;case "UNPLUGGED_DARK_THEME":f="image";D="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":D="live";break;case "UNPLUGGED_SPORTS":f="ytu";D="visibility-off";break;
case "VIDEOS":f="av";D="play-circle-filled";break;case "YOUTUBE":f="yt-logos";D="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":f="yt-logos-ext";D="yt-logo-red-updated";break;case "YOUTUBE_LOGO":f="yt-logos-ext";D="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":f="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":f="shorts";D=n;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":f="yt-sys-icons";D="youtube_improve_tv";break;case "OUTLINE_BAG":f=
"yt-sys-icons";D="bag";break;case "QUEUE_PLAY_LAST":f="yt-sys-icons";D="list_queue_last";break;case "SLASH_CIRCLE_LEFT":D="slash_circle_left";break;case "SPEED_1_POINT_2X":D="1_point_2x";break;case "SPEED_1_POINT_5X":D="1_point_5x";break;case "SPEED_1_POINT_8X":D="1_point_8x";break;case "SPEED_POINT_2X":D="point_2x";break;case "SPEED_POINT_5X":D="point_5x";break;case "SPEED_POINT_8X":D="point_8x";break;case "SPEED_1X":D="1x";break;case "SPEED_2X":D="2x";break;case "TAB_BOOKMARK":D="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":f="yt-sys-icons";D="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":f="yt-sys-icons";D="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":f="yt-sys-icons",D="tic_tac_toe"}D=f+":"+D;E2R.set(V,D);return D};
CIn=function(V){var D;_.c("kevlar_use_wil_icons")?D=!!_.DY().resolve(_.TK).resolveIcon({iconName:V.toString()}):D=!1;return D};
_.Km=function(V,D,f,n){f=f===void 0?{}:f;n=n===void 0?!1:n;f===null&&(f={});var t=_.oT("kevlar_command_handler_command_banlist");t=_.r(t);for(var J=t.next();!J.done;J=t.next())if(J=V?V.hasOwnProperty(J.value):void 0,J)return!1;t=_.g(V.commandMetadata,_.he);return n&&t!=null&&t.url?!1:!D.disableCommandHandlerOverride&&_.bS.instance?(n=_.bS.instance,f.form||(f.form={element:D}),f.form.element||(f.form.element=D),!f.clickedVisualElement&&D.visualElement&&(f.clickedVisualElement=D.visualElement),n.resolveCommand(V,
f),!0):!1};
A0Y=function(V,D){V=ya(V);for(var f=_.r(V.visibilityMonitorKeys||[]),n=f.next();!n.done;n=f.next())D.unobserveByKey(n.value);V.visibilityMonitorKeys=void 0};
i59=function(V,D){if(_.Ni()){if(_.c("kevlar_vimio_use_shared_monitor"))ahF(V,D.data);else if(!ahF(V,D.data))return;var f=D.data,n=YSL(f);if(_.c("enable_client_ve_spec_logging"))A0Y(V,D.observer);else{var t=ya(V);t.trackedParams&&t.trackedParams!==n&&A0Y(V,D.observer)}t=ya(V);!f||t.data&&t.data===f||(t.data=f);$zF(V,D);t.trackedParams=n}};
$zF=function(V,D){var f=D.observer;if(!f&&_.c("web_skip_missing_vimio_observer")){var n,t;_.zP(new _.cI("VisibilityObserver is not defined.",V.tagName,V.trackedParams,(n=D.data)==null?void 0:n.trackingParams,(t=D.data)==null?void 0:t.loggingDirectives))}else{var J=D.layer,H=D.visibilityCallback||function(){},Q=D.prescanCallback,T=ya(V);
n=[];D.showOption&&n.push(f.observe(V,function(){D.skipLogging&&D.skipLogging()||_.Zb().reportShown(T,void 0,J);H(!0)},D.showOption));
D.hideOption&&n.push(f.observe(V,function(){_.Zb().reportHidden(T,void 0,J);H(!1)},D.hideOption));
D.prescanOption&&Q&&n.push(f.observe(V,function(){Q()},D.prescanOption));
T.visibilityMonitorKeys=n}};
ahF=function(V,D){V=ya(V);if(V.visualElement&&!D)return!0;if(!D)return!1;var f=!1;if(_.c("enable_client_ve_spec_logging")){var n,t;f=!!((n=D.loggingDirectives)==null?0:(t=n.clientVeSpec)==null?0:t.uiType)}n=YSL(D);if(!n&&!f)return!1;_.c("mweb_component_visibility_logging")&&(V.veContainer||(V.veContainer={}),V.veContainer.trackingParams=n);if(V.trackedParams&&V.trackedParams===n)return!1;var J;if(_.c("enable_client_ve_spec_logging")&&((J=V.visualElement)==null?0:J.isClientVe())){var H;J=(H=V.visualElement)==
null?void 0:H.getAsJspb();var Q,T,y,Z;if(_.fJ(J,2)===((Q=D.loggingDirectives)==null?void 0:(T=Q.clientVeSpec)==null?void 0:T.uiType)&&_.fJ(J,3,-1)===((y=D.loggingDirectives)==null?void 0:(Z=y.clientVeSpec)==null?void 0:Z.elementIndex))return!1}if(_.c("enable_client_ve_spec_logging")){var l,G;!V.visualElement&&((l=D.loggingDirectives)==null?0:(G=l.clientVeSpec)==null?0:G.uiType)&&(Q=D.loggingDirectives.clientVeSpec,D=Q.uiType,H=Q.elementIndex,Q=Q.clientYoutubeData,V.visualElement=_.jD(_.lS(),{veType:D,
elementIndex:H,clientYouTubeData:Q}))}return!0};
YSL=function(V){if(V==null?0:V.rendererContext){var D=_.g(V.rendererContext,_.GK);if(D==null?0:D.loggingDirectives)return D.loggingDirectives.trackingParams}return(V==null?0:V.loggingDirectives)?V.loggingDirectives.trackingParams:V==null?void 0:V.trackingParams};
ya=function(V){var D;return(D=V.polymerController)!=null?D:V};
LNY=function(V){_.Zb();if(_.a9(eD().JSC$10603_elementShouldLogGesture).bind(eD())(V,4)){SS9(V);var D=WNR(V);pvU.set(V,D)}};
SS9=function(V){pvU.has(V)&&(pvU.get(V).cancel("untrack hover element"),pvU.delete(V))};
WNR=function(V){var D,f=[],n=!1,t=new _.Qf(function(J,H){cr(V,"mouseenter",_.a9(function(){var Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return D=(0,_.VW)(),Q=IhX(V),f.push(Q),T=O5x(V,function(){n=!0;H(Error("ah"))}),_.b(Z,Q,2);
if(Z.nextAddress!=3)return T&&Fo(T),y=xzZ(V),f.push(y),_.b(Z,y,3);J();_.yz(Z)})}))});
t.then(function(){var J=(0,_.VW)()-D;J=Math.round(J);if(!(500>J||6E5<=J)){var H=V.getScreenLayer?V.getScreenLayer():void 0;H=_.Ni(H)||"";var Q=M4X(_.Zb(),V);_.L6(H,V.visualElement?V.visualElement:_.gs(Q),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:J}})}LNY(V)},function(){vr&&(vr(),vr=null);
n&&(SS9(V),LNY(V))});
return t};
IhX=function(V){var D;return(new _.Qf(function(f,n){vr=function(){n(Error("bh"))};
D=_.dm.debounce(_.a9(function(){Fo(t);f()}),1,100);
var t=_.kt(V,"mousemove",D)})).thenCatch(function(){var f=_.dm.cancelDebouncedJobMap.get(D);
f&&_.dm.cancelJob(f)})};
xzZ=function(V){var D;return(new _.Qf(function(f,n){vr=function(){n(Error("ch"))};
D=cr(V,"mouseleave",_.a9(function(){f()}))})).thenCatch(function(){Fo(D)})};
O5x=function(V,D){return cr(V,"mouseleave",_.a9(D))};
Uz3=function(V){hnR&&_.sm.cancel(hnR);hnR=_.sm.run(function(){_.PA(V,"yt-visibility-refresh");hnR=0})};
Vfc=function(V){V=Number(V);return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
fEX=function(V){if(!V)return!1;if(_.g(V,_.DOU))return!0;var D;if(V=(D=_.g(V,_.Tm))==null?void 0:D.commands)for(D=_.r(V),V=D.next();!V.done;V=D.next())if(_.g(V.value,_.DOU))return!0;return!1};
nXY=function(V){var D=!0;D=D===void 0?!0:D;if(!V.useSignals&&!V.experimentalPropertiesChanged||_.c("experimental_templating_behavior_nopatch_killswitch")){var f=V._propertiesChanged;V._propertiesChanged=function(n,t,J){D?V.debounceRender():V.doRender();f&&f.call(V,n,t,J)}}};
tfU=function(V,D){if(V.useSignals||V.experimentalPropertiesChanged)if(_.c("experimental_templating_behavior_nopatch_killswitch"))V.experimentalPropertiesChanged=function(){};
else return;var f=new Set,n=[V].concat(_.sz(V.behaviors));n=_.r(n);for(var t=n.next();!t.done;t=n.next()){t=t.value;for(var J in t.properties)f.has(J)||(V._addPropertyEffect(J,"function",D),f.add(J))}};
Prc=function(){var V=Polymer.Element,D=V._prepareTemplate;V._prepareTemplate=function(){D.call(this);var f=this.prototype;if(f.experimentalTemplatingInUse&&f.experimentalTemplatingInUse()&&f.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.NG(Error("dh"));else{f=this.template.content.childNodes;for(var n=f.length-1;n>=0;n--){var t=f[n];t.nodeName!=="STYLE"&&t.nodeName!=="LINK"&&t.nodeName!=="SCRIPT"&&t.nodeName!=="#comment"&&t.remove()}}}};
oX9=function(V){var D=!0;D=D===void 0?!0:D;Prc();var f=V.ready;V.ready=function(){this._template=null;f.call(this)};
tfU(V,D?V.debounceRender:V.doRender)};
rdZ=function(V,D,f){if(f===null||f===void 0)return f;var n=rBZ(V.tagName.toLowerCase(),D,function(){throw Error("Tb");});
if(n===null)return f;n=JdL[n];var t;if((t=n.isUnwrappable)==null?0:t.call(n,f)){if(n.unwrap)return n.unwrap(f);throw Error("gh");}return n.filterString?n.filterString(V.tagName,D,String(f)):f};
HFn=function(V,D,f){var n=D[D.length-1]!=="$",t=rdZ(V,D,f);if(n)if(typeof t==="function"&&D.startsWith("reactiveon")&&D===D.toLowerCase()){var J=OR;ldL(V,D.slice(8),function(H){z4(J,function(){t(H)})})}else V[D]=t;
else f=t==null?null:String(t),jOc(V,D.slice(0,-1),f)};
ds=function(V){wpZ.length===0&&requestAnimationFrame(function(){setTimeout(function(){var D=wpZ.slice();wpZ.length=0;D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;try{f()}catch(n){_.Br(n)}}})});
wpZ.push(V)};
Q_Z=function(V){if(V){var D=V.component;if(D){var f;D==null||(f=D.events)==null||f.publish("DISCONNECTED");var n;D==null||(n=D.onDisconnected)==null||n.call(D)}var t,J;(t=V.__spec)==null||(J=t.didUnmount)==null||J.call(t);for(D=0;D<V.childNodes.length;D++)Q_Z(V.childNodes[D])}};
N3=function(V,D,f){var n=D&&D.key,t=LG;t[0]=V;t[1]=n;t[2]=void 0;for(var J in D)D.hasOwnProperty(J)&&(V=D[J],n=IP,n.push(J),n.push(V));D=LG;a:{if(J=LG[2])for(V=0;V<J.length;V+=2)if(J[V]==="nonce"){J=J[V+1];break a}J=""}J=mYd(D[0],D[1],J);V=AN(J);n=D[2];if(!V.staticsApplied&&(V.staticsApplied=!0,n&&n.length))if((t=V._attrsArr)&&t.length){for(t=0;t<n.length;t+=2)uS[n[t]]=t+1;t=V._attrsArr||(V._attrsArr=Zhx(0));for(var H=0,Q=0;Q<t.length;Q+=2){var T=t[Q],y=t[Q+1],Z=uS[T];Z?n[Z]===y&&delete uS[T]:(t[H]=
T,t[H+1]=y,H+=2)}CG(t,H);for(var l in uS)ge9(J,l,n[uS[l]],Oq),delete uS[l]}else for(l=0;l<n.length;l+=2)ge9(J,n[l],n[l+1],Oq);ABL(J,V,Oq);CG(D,0);f&&f(aP);zt3()};
TJL=function(V){var D=V.toString().toLowerCase();return function(f,n){N3(D,f,n)}};
_.m7=function(V,D,f){f===void 0?delete V[D.name]:V[D.name]=f};
_.zK=function(V){var D={androidIncludeFontPadding:!1},f=0,n=[],t=[],J=[];if(V.simpleText)return D.content=V.simpleText,D;if(V.runs===void 0)return D.content="",D;V=_.r(V.runs);for(var H=V.next();!H.done;H=V.next()){H=H.value;var Q=H.text,T=void 0,y=(T=Q)==null?void 0:T.length;if(Q&&y){n.push(Q);if(H.bold||H.italics||H.strikethrough||H.underline||H.textColor!=null&&H.textColor!==0||H.deemphasize){Q=t;T=Q.push;var Z={startIndex:f,length:y};H.bold&&(Z.weightLabel="FONT_WEIGHT_MEDIUM");H.italics&&(Z.italic=
!0);H.strikethrough&&(Z.strikethrough="LINE_STYLE_SINGLE");H.underline&&(Z.underline="LINE_STYLE_SINGLE");H.textColor!=null&&H.textColor!==0?document.documentElement.hasAttribute("dark")?Z.fontColor=H.darkModeTextColor||H.textColor:Z.fontColor=H.textColor:H.deemphasize&&(document.documentElement.hasAttribute("dark")?Z.fontColor=parseInt("ff"+bFY("#aaa").substring(1),16):Z.fontColor=parseInt("ff"+bFY("#606060").substring(1),16));T.call(Q,Z)}H.navigationEndpoint&&(Q=J,T=Q.push,Z={startIndex:f,length:y,
onTap:{innertubeCommand:H.navigationEndpoint}},H.loggingDirectives&&_.m7(Z,KZd,H.loggingDirectives),T.call(Q,Z));f+=y}}D.content=n.join("");D.styleRuns=t.length?t:void 0;D.commandRuns=J.length?J:void 0;return D};
ZFx=function(V){if(V==null||!V.runs)return!0;V=_.r(V.runs);for(var D=V.next();!D.done;D=V.next())if(D=D.value,D.bracket||D.errorUnderline||D.deemphasize||_.g(D,R5)||_.g(D,ydL))return!1;return!0};
j_R=function(V,D){return function(f){var n=D.unit;if(n!==f)throw Error("jh`"+V+"`"+n+"`"+f);return D}};
Cm=function(V){if(!((V==null?0:V.value)&&(V==null?0:V.unit)))return"";switch(V.unit){case "DIMENSION_UNIT_FRACTION":var D="%";break;default:D="px"}V=V.value;D==="%"&&(V*=100);return""+V+D};
lEL=function(V){try{return V()}catch(D){_.zP(D)}};
_.Xo=function(V){var D=_.g(V,_.q3);if(D)return D;if((D=_.g(V,Gi9))&&D.commands)return eEU(D.commands);if((D=_.g(V,cd3))&&D.commands)return eEU(D.commands);if((V=_.g(V,FZZ))&&V.identifier&&V.command&&(gXR||(gXR=[]),!gXR.includes(V.identifier)))return gXR.push(V.identifier),_.g(V.command,_.q3)};
eEU=function(V){if(V.length!==0){var D=[];V=_.r(V);for(var f=V.next();!f.done;f=V.next())(f=_.Xo(f.value))&&D.push(f);return{commandExecutorCommand:{commands:D}}}};
_.A2=function(V){var D=V.defaultTarget,f=V.elementConfig,n=V.elementsCommand,t=V.skipOnClick,J=V.forceNewState,H=V.additionalCommandArgs,Q=V.innertubeCommand||_.Xo(n);if(Q){V={};var T=vXY(Q);n=T.navigatingCommand;T=T.href;n&&T?(V.href$=T,kid(V,n,T,D),_.c("web_atagconfig_pointerdown")&&s_F(V,n),J&&(V["force-new-state$"]=!0)):(V.role$="button",V.href$="javascript:void(0);");_.g(Q,BJx)&&(V["aria-haspopup$"]=!0);t||(V.onclick=function(y){var Z={};if(dOY(y)){if(H==null?0:H.clickedVisualElement)Z={clickedVisualElement:H.clickedVisualElement};
Z=Object.assign({},{form:{element:y.target,event:y,createScreenConfig:Z}},H);y.preventDefault();_.Em(Q,Z)}});
return Object.assign({},f,V)}};
upF=function(V){if(V.length){if(V.length===1)return V[0];var D={};_.m7(D,_.Tm,{commands:V});return D}};
a5=function(V){return V&&V.href$!=="javascript:void(0);"};
vXY=function(V){var D,f=((D=_.g(V,_.Tm))==null?void 0:D.commands)||[V];V=_.r(f);for(D=V.next();!D.done;D=V.next()){D=D.value;var n=void 0,t=void 0;f=(t=_.g((n=D)==null?void 0:n.commandMetadata,_.he))==null?void 0:t.url;_.c("web_remove_web_navigation_endpoint_data")||(n=void 0,f=f||((n=_.g(D,NJc))==null?void 0:n.url));if(f&&f!=="/service_ajax"){if(n=G6(f,mOx))return V=_.y2(n),{navigatingCommand:D,href:V};_.zP(new _.cI("AttributedString URL could not be sanitized",f))}}return{}};
dOY=function(V){return V.button!==void 0?V.button===0&&!(V.shiftKey||V.altKey||V.metaKey||V.ctrlKey):!(V.shiftKey||V.altKey||V.metaKey||V.ctrlKey)};
kid=function(V,D,f,n){f=!hh(f);var t,J,H;if((t=_.g(D,_.jL))!=null&&t.nofollow||(J=_.g(D,_.pl))!=null&&J.nofollow||(H=_.g(D,_.a2))!=null&&H.nofollow||f)V.rel$="nofollow";var Q;D=((Q=_.g(D,_.a2))==null?void 0:Q.target)==="TARGET_NEW_WINDOW"?"_blank":n===void 0?"":n;V.target$=D};
s_F=function(V,D){D.clickTrackingParams&&(V.params={itct:D.clickTrackingParams});V.onpointerdown=function(f){zEL(f)};
V._data=D};
REc=function(V){(V.loggingUrls||[]).forEach(function(D){$e(D.baseUrl,D.attributionSrcMode)})};
CrL=function(V){V.currentTarget._data&&REc(V.currentTarget._data)};
zEL=function(V){var D=V.currentTarget;V=lEL(function(){return D.href});
var f=D.params;V&&_.xo(V,f||{},8,!0)};
q$F=function(V,D){if(D=_.g(D,_.a2))(D==null?void 0:D.target)==="TARGET_NEW_WINDOW"&&(V.target="_blank"),D.nofollow&&(V.rel="nofollow")};
Xp9=function(V){V=_.g(V==null?void 0:V.commandMetadata,_.he);return(V==null?0:V.url)?V.url:null};
_.Yt=function(V,D){(V=_.Xo(V))&&_.Em(V,D)};
_.Em=function(V,D){NvZ(function(f){D?f.resolveCommand(V,D):f.resolveCommand(V)})};
Y$Y=function(V,D){var f=["yt-core-attributed-string__link"];D!=null&&D.noLinkColor||((D==null?0:D.isOverlay)?f.push("yt-core-attributed-string__link--overlay-call-to-action-color"):f.push("yt-core-attributed-string__link--call-to-action-color"),(D==null?0:D.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color"));f={className:f.join(" "),tabindex$:"0"};var n=V.onTap||V.onLongPress;if(!n)return f;var t=EX9(V);t&&(f["aria-label$"]=t);D=_.A2({elementsCommand:n,elementConfig:f,skipOnClick:!(D==
null||!D.skipOnClick),forceNewState:!0});V.onLongPress&&(n=new AdR(function(){var J=_.Xo(V.onLongPress);J&&_.DY().resolve(_.fH).resolveCommand(J)}),D&&aEd(n,D));
return D||f};
EX9=function(V){var D,f;return(D=V.onTapOptions)==null?void 0:(f=D.accessibilityInfo)==null?void 0:f.accessibilityLabel};
$On=function(V){var D=V;V<=16777215&&(D+=parseInt("ff000000",16));return _.aB(D)};
iFR=function(V){var D=V.isDarkTheme;var f=V.extension;V=V.runColor;var n=void 0;if(f=f==null?void 0:f.colorMap){D=D?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f=_.r(f);for(var t=f.next();!t.done;t=f.next())if(t=t.value,D===t.key){n=t.value;break}}n==null&&V&&(n=V);if(n)return $On(n)};
$t=function(V){var D=V.config;var f=V.image;var n=V.imageConfig;var t=V.imageWrapperConfig;var J=V.run;var H=V.tag;var Q=V.textLength;var T=V.startIndex===void 0?0:V.startIndex;V=V.length;T===void 0&&(T=0);J={run:J,startIndex:T,endIndex:V!==void 0?T+V:Q,tag:H};f&&(J.image=f);n&&(J.imageConfig=n);t&&(J.imageWrapperConfig=t);D&&(J.config=D);return J};
WZ9=function(V,D){var f=[];f.push("yt-core-attributed-string");(D==null?0:D.className)&&f.push(D==null?void 0:D.className);(D==null?0:D.ellipsisTruncate)?f.push("yt-core-attributed-string--ellipsis-truncate"):(D==null?0:D.noWrap)?f.push("yt-core-attributed-string--white-space-no-wrap"):(D==null?0:D.noPreWrap)||f.push("yt-core-attributed-string--white-space-pre-wrap");(D==null?0:D.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color");V.alignment&&f.push(S$9(V.alignment));V.lineBreakMode&&
f.push("yt-core-attributed-string--word-wrapping");return f.join(" ")};
ppX=function(V){if(V.weight)return V.weight;switch(V.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}};
LZL=function(V){switch(V){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"}};
S$9=function(V){switch(V){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"}};
Wr=function(V,D,f){var n=D;V.content&&f&&(f=V.content.indexOf("\n"),f!==-1&&(n=Math.min(D,f)));if(!V.content||V.content.length<=n)D=V;else if(V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.paragraphStyleRuns){D=iS(V.content,n);f=n;var t=V.attachmentRuns;if(t){var J=[];t=_.r(t);for(var H=t.next();!H.done;H=t.next())H=Object.assign({},H.value),H.startIndex===void 0||H.startIndex>=f||(H.length||(H.length=0),H.length+H.startIndex>f&&(H.length=f-H.startIndex),J.push(H));f=J}else f=void 0;
J=IE9(n,V.commandRuns);t=n;var Q=V.decorationRuns;if(Q){H=[];Q=_.r(Q);for(var T=Q.next();!T.done;T=Q.next()){T=T.value;var y=_.g(T.textDecorator,SD);if(y&&y.startIndex!==void 0&&!(y.startIndex>=t)){T=Object.assign({},T,{textDecorator:{highlightTextDecorator:Object.assign({},y)}});y=_.g(T.textDecorator,SD);if(!y.length||y.length+y.startIndex>t)y.length=t-y.startIndex;H.push(T)}}t=H}else t=void 0;H=IE9(n,V.styleRuns);if(Q=V.paragraphStyleRuns)for(V=[],Q=_.r(Q),T=Q.next();!T.done;T=Q.next()){var Z=T.value;
T=Object.assign({},Z);if(!(T.startIndex===void 0||T.startIndex>=n)){if(!T.length||T.length+T.startIndex>n)T.length=n-T.startIndex;y=[];var l=void 0,G=void 0;if((l=Z)==null?0:(G=l.listGroup)==null?0:G.listItems)for(Z=_.r(Z.listGroup.listItems),l=Z.next();!l.done;l=Z.next())if(l=Object.assign({},l.value),!(l.startIndex===void 0||l.startIndex>=n)){if(!l.length||l.length+l.startIndex>n)l.length=n-l.startIndex;y.push(l)}y.length>0&&(T.listGroup||(T.listGroup={}),T.listGroup=Object.assign({},T.listGroup,
{listItems:y}));V.push(T)}}else V=void 0;D={content:D,attachmentRuns:f,commandRuns:J,decorationRuns:t,styleRuns:H,paragraphStyleRuns:V}}else D=Object.assign({},V,{content:iS(V.content,n)});return D};
IE9=function(V,D){if(D){var f=[];D=_.r(D);for(var n=D.next();!n.done;n=D.next())if(n=Object.assign({},n.value),!(n.startIndex===void 0||n.startIndex>=V)){if(!n.length||n.length+n.startIndex>V)n.length=V-n.startIndex;f.push(n)}return f}};
iS=function(V,D){var f=D,n;if(n=f>0)n=V.charCodeAt(f-1),n=n>=55296&&n<=56319;n&&(f=V.charCodeAt(f),n=f>=56320&&f<=57343);n&&--D;return V.substring(0,D)};
hEX=function(V,D,f){f=f===void 0?OFY:f;if(V){var n=_.DY().resolve(Uq);n||_.c("mweb_no_observer_killswitch")?i59(V,{data:D,observer:n,visibilityCallback:f,hideOption:xOc,showOption:MfU,layer:V.layer}):_.zP(new _.cI("Warning: monitorVisibility called with null observer",V.tagName,D==null?void 0:D.loggingDirectives,D==null?void 0:D.trackingParams))}else _.zP(new _.cI("Warning: monitorVisibility called with null element",D==null?void 0:D.loggingDirectives,D==null?void 0:D.trackingParams,D==null?void 0:
D.rendererContext))};
PjR=function(V,D){var f=[],n=V.content.length,t,J=(t=_.DY().resolve(_.Vx(_.pm)))==null?void 0:t();if(V.paragraphStyleRuns){t=_.r(V.paragraphStyleRuns);for(var H=t.next();!H.done;H=t.next()){var Q=f.push,T=Q.apply;var y=void 0;H=H.value;if((y=H.listGroup)!=null&&y.listItems){y=[];b:switch(H.listGroup.listType){case "LIST_TYPE_BULLET":var Z="ul";break b;default:Z="span"}y.push($t({run:H,textLength:n,tag:Z,config:{className:"yt-core-attributed-string__list-group"},startIndex:H.startIndex,length:H.length}));
Z=_.r(H.listGroup.listItems);for(var l=Z.next();!l.done;l=Z.next()){l=l.value;b:switch(H.listGroup.listType){case "LIST_TYPE_BULLET":var G="li";break b;default:G="span"}y.push($t({run:H,textLength:n,tag:G,startIndex:l.startIndex,length:l.length}))}H=y}else H=[];T.call(Q,f,_.sz(H))}}if(V.styleRuns&&(D==null||!D.noStyleRuns))for(t=_.r(V.styleRuns),Q=t.next();!Q.done;Q=t.next()){Q=Q.value;T=iFR({extension:_.g(Q.styleRunExtensions,UOc),isDarkTheme:J===void 0?!1:J,runColor:Q.fontColor});y=[];T&&y.push("yt-core-attributed-string--link-inherit-color");
Q.italic&&y.push("yt-core-attributed-string--italicized");Q.underline&&Q.strikethrough?y.push("yt-core-attributed-string--underline-strikethrough",LZL(Q.underline)):Q.underline?y.push("yt-core-attributed-string--underlined",LZL(Q.underline)):Q.strikethrough&&y.push("yt-core-attributed-string--strikethrough",LZL(Q.strikethrough));if(Q.baselineOffset){a:switch(Q.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":H="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":H=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:H="yt-core-attributed-string--baseline-offset-unknown"}y.push(H)}H=y.join(" ");y=Q;Z={};if(y.weight||y.weightLabel)Z.fontWeight=ppX(y).toString();T&&(Z.color=T);f.push($t({run:Q,textLength:n,tag:"span",config:{className:H,style:Z},startIndex:Q.startIndex,length:Q.length}))}if(V.decorationRuns)for(t=_.r(V.decorationRuns),Q=t.next();!Q.done;Q=t.next())Q=Q.value,T={},Q.textDecorator&&(Z=Q.textDecorator,H=J===void 0?!1:J,l=[],y=
_.g(Z,SD),Z=_.g(Z,VUX),y?(Z=l,l=Z.concat,G=[],(H=iFR({extension:_.g(y.highlightTextDecoratorExtensions,DIZ),isDarkTheme:H,runColor:y.backgroundColor}))&&G.push("background-color: "+H+";"),y.backgroundCornerRadius!==void 0&&G.push("border-radius: "+y.backgroundCornerRadius+"px;"),y.leftPadding!==void 0&&G.push("padding-left: "+y.leftPadding+"px;"),y.rightPadding!==void 0&&G.push("padding-right: "+y.rightPadding+"px;"),y.topPadding!==void 0&&G.push("padding-top: "+y.topPadding+"px;"),y.bottomPadding!==
void 0&&G.push("padding-bottom: "+y.bottomPadding+"px;"),l=l.call(Z,G)):Z&&(y=l,l=y.concat,H=H?"#2ba640":"#107516",H=Z.color?$On(Z.color):H,H=["padding: 2px;","border-top: solid "+H+" 2px;","border-bottom: solid "+H+" 2px;","background: linear-gradient(135deg, "+H+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+H+" 3px, rgba(0, 0, 0, 0) 3px);"],l=l.call(y,H)),H=l.join(" "),T.style$=H,H=Q.textDecorator,y=[],Z=_.g(H,VUX),_.g(H,SD)?y.push("yt-core-attributed-string--highlight-text-decorator"):
Z&&y.push("yt-core-attributed-string--bracket-text-decorator"),H=y.join(" "),T.className=H,T.dir="auto"),H=_.g(Q.textDecorator,SD),y=_.g(Q.textDecorator,VUX),Z=_.g(Q.textDecorator,SD),l=_.g(Q.textDecorator,VUX),f.push($t({run:Q,textLength:n,tag:"span",config:T,startIndex:(H==null?void 0:H.startIndex)||(y==null?void 0:y.startIndex)||0,length:(Z==null?void 0:Z.length)||(l==null?void 0:l.length)||0}));if(V.commandRuns&&(D==null||!D.noEndpoints))for(J=_.r(V.commandRuns),t=J.next();!t.done;t=J.next())t=
t.value,Q=Y$Y(t,D),f.push($t({run:t,textLength:n,tag:"a",config:Q,startIndex:t.startIndex,length:t.length}));if(V.attachmentRuns)for(V=_.r(V.attachmentRuns),J=V.next();!J.done;J=V.next()){J=J.value;T=Q=void 0;t={className:"yt-core-attributed-string--inline-block-mod"};if((T=J.element)==null?0:T.properties){T=(Q=J.element)==null?void 0:Q.properties;Q=[];T=_.g(T,fP9);if(T==null?0:T.margin)T=T.margin,T.left&&Q.push("margin-left: "+Cm(T.left)+";"),T.right&&Q.push("margin-right: "+Cm(T.right)+";"),T.top&&
Q.push("margin-top: "+Cm(T.top)+";"),T.bottom&&Q.push("margin-bottom: "+Cm(T.bottom)+";");Q=Q.length!==0?Q.join(" "):void 0;t.style$=Q}H=void 0;Q={alt:"",preserveHeight:!0,preserveWidth:!0};T=["yt-core-attributed-string__image-element"];if(J.alignment){a:switch(J.alignment){case "ALIGNMENT_BASELINE":y="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":y="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:y=
"yt-core-attributed-string__image-element--image-alignment-bottom"}T.push(y)}if((H=J.element)==null?0:H.properties)H=[],y=_.g(J.element.properties,fP9),(y==null?0:y.height)&&H.push("height: "+Cm(y.height)+";"),(y==null?0:y.width)&&H.push("width: "+Cm(y.width)+";"),H=H.length!==0?H.join(" "):void 0,Q.style$=H,y=void 0,H=((y=_.g(J.element.properties,nhR))==null?void 0:y.label)||"",Q.alt=H;Q.className=T.join(" ");T=void 0;Z=y=void 0;H=((Z=J.element)==null?0:Z.type)?(y=_.g(J.element.type,tU9))==null?
void 0:y.image:void 0;f.push($t({run:J,textLength:n,tag:"img",image:H,imageConfig:Q,imageWrapperConfig:t,startIndex:J.startIndex,length:(T=J.length)!=null?T:0}))}if(D==null?0:D.headerRuns)for(D=_.r(D.headerRuns),V=D.next();!V.done;V=D.next())if(V=V.value,V.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(V.headerMapping)){a:{switch(V.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":J=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":J="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":J="yt-core-attributed-string--heading-3";break a}J=void 0}f.push($t({run:V,textLength:n,tag:"span",config:J?{className:J}:void 0,startIndex:V.startIndex,length:V.length}))}return f};
_.Lm=function(V){return(V==null?void 0:V.content)!==void 0};
ohL=function(V){return _.Lm(V)?V:_.zK(V)};
JsY=function(V){return V.image!==void 0&&V.imageConfig!==void 0};
rsd=function(V,D){if(D==null?0:D.userInput)for(V=_.r(V),D=V.next();!D.done;D=V.next())if(D=D.value,D.tag!=="a"&&D.tag!=="li"){var f=void 0;(f=D).config||(f.config={});D.config.dir=D.tag==="ul"?_.DY().resolve(_.I5):"auto"}};
HQd=function(V){return function(D){var f=V.run;(f.onTap!==void 0||f.onLongPress!==void 0)&&_.g(f,KZd)&&hEX(D,{loggingDirectives:_.g(f,KZd)})}};
wiF=function(V){return function(D){for(var f in V)(Oq[f]||Oq[E0["default"]])(D,f,V[f])}};
KeY=function(V,D){Qvc(D);var f={data:null,start:0,end:V.length,parts:[]};D=_.r(D);for(var n=D.next();!n.done;n=D.next())n=n.value,TiF(f,n.startIndex,n.endIndex,n);bQU(V,f);return f};
TiF=function(V,D,f,n){for(var t=_.r(V.parts),J=t.next();!J.done;J=t.next()){J=J.value;if(typeof J==="string")throw Error("lh");if(J.start<=D&&f<=J.end){TiF(J,D,f,n);return}}V.parts.push({data:n,parts:[],start:D,end:f})};
bQU=function(V,D){for(var f=D.parts.length;f>=0;f--){var n=D.parts[f],t=D.parts[f-1],J=f===D.parts.length?D.end:n.start;t=f===0?D.start:t.end;J!==t&&D.parts.splice(f,0,V.slice(t,J));n&&bQU(V,n)}};
Qvc=function(V){V.sort(function(D,f){if(D.startIndex<f.startIndex)return-1;if(f.startIndex<D.startIndex)return 1;D=D.endIndex-D.startIndex;f=f.endIndex-f.startIndex;return D>f?-1:f>D?1:0})};
_.ys3=function(V){var D=V.thumbnails;if(D){V={sources:[]};D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n={};n.url=f.url;n.width=f.width;n.height=f.height;V.sources.push(n)}return V}};
ZQx=function(V,D,f,n){if(!D)return V.length>=1?V[V.length-1]:null;if(n)for(var t=_.r(V),J=t.next();!J.done;J=t.next()){J=J.value;var H=void 0,Q=(H=J.url)==null?void 0:H.indexOf(n);if(Q!==void 0&&Q>=0)return J}n=_.r(V);for(t=n.next();!t.done;t=n.next())if(t=t.value,t.width&&t.height&&(f&&t.width>=D||!f&&t.height>=D))return t;for(D=V.length-1;D>=0;D--)if(f&&V[D].width||!f&&V[D].height)return V[D];return V[0]};
_.jv9=function(V){var D;return(V=(D=V.sources)==null?void 0:D[0])?V.width/V.height:0};
_.lPY=function(V){if(V.sources){V=_.r(V.sources);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=void 0;if((f=D.clientResource)==null?0:f.imageName)return D}}};
G9d=function(V){var D;if((D=V.clientResource)!=null&&D.imageColor)return _.aB(V.clientResource.imageColor)};
_.csZ=function(V,D,f,n,t,J,H){if(!D||D.length===0||D[0].clientResource)return null;if(f&&D[0].url)return D[0].url;n===void 0&&(n=!0);if(n){var Q;V=eT9*(t||(V==null?void 0:(Q=V.getBoundingClientRect())==null?void 0:Q.width)||0)}else{var T;V=eT9*(J||(V==null?void 0:(T=V.getBoundingClientRect())==null?void 0:T.height)||0)}D=ZQx(D,V,n,H);return(D==null?0:D.url)?D.url:(D==null?0:D.imageData)?D.imageData:null};
Fe3=function(V,D,f){f=f?[f]:[];V.opacity&&f.push("opacity: "+V.opacity+";");D&&V.placeholderColor?(V=_.aB(V.placeholderColor),f.push("background-color: "+V+";")):f.push("background-color: transparent;");return f.join(" ")};
ghn=function(V,D,f,n,t){var J=["yt-core-image"];D&&J.push(D);f||J.push("yt-core-image--fill-parent-height");n||J.push("yt-core-image--fill-parent-width");switch(V.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":J.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":J.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":J.push("yt-core-image--content-mode-center");break;default:J.push("yt-core-image--content-mode-scale-to-fill")}V.flipForRtlLayout&&
J.push("yt-core-image--flip-rtl");switch(t){case "TOP_START":var H;J.push(((H=document.body)==null?void 0:H.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return J.join(" ")};
k9c=function(V){var D;if(V==null?0:(D=V.clientResource)==null?0:D.imageName){var f;V=(f=V.clientResource)==null?void 0:f.imageName;a:{switch(V){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":f="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":f="yt-logos-ext:yt-logo-updated";break a}f=void 0}return f||vhL.get(V)||V}};
dI3=function(V){return _.c("mweb_wiz_skip_render")?svF(V):BiZ(V)};
svF=function(V){return function(D){var f=mYd("wink-root");pG();zt3();VlR(f,_.K(V,D))}};
BiZ=function(V){var D=D===void 0?!1:D;return function(f){if(!D||!_.c("mweb_skip_keto_to_c3_if_no_data")||f.data!==void 0){var n=P9(!1);try{var t=f.children;_.c("mweb_render_outside_patch_killswitch")||aP?t?I2(_.K(V,f,t)):I2(_.K(V,f)):_.zP(new _.cI("ketoToC3 called outside of a patch",{tagName:V.TAG_NAME}))}finally{P9(n)}}}};
uj3=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
mIL=function(V,D){V.onViewportEntered=D;NiX.observe(V)};
zTY=function(){var V={rootMargin:"10%",threshold:.01};_.c("mweb_enable_set_io_root_to_null_safari")?V.root=null:_.c("mweb_enable_set_io_root_to_body_safari")&&(V.root=document.body);return new IntersectionObserver(function(D,f){D.filter(function(n){return n.intersectionRect.height>0}).forEach(function(n){n=n.target;
if(!_.c("mweb_enable_only_update_image_when_connected")||n.isConnected!==!1){var t;(t=n.onViewportEntered)==null||t.call(n);f.unobserve(n)}})},V)};
RT9=function(V,D,f,n,t){function J(){if(n){var Q=n.loadedClass,T=n.notifyOnUnloaded;Q&&_.Om(V,Q);T&&V.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function H(){var Q=f(D,V);Q&&V.getAttribute("src")!==Q&&(_.c("mweb_enable_only_update_image_when_connected")&&V.isConnected===!1||Q===V.src||(V.src=Q),J())}
t=t===void 0?!0:t;V.removeAttribute("src");J();D&&(t?mIL(V,H):H())};
CjF=function(V,D,f){if(!D)return!1;D=f(D,V);f=V.getAttribute("src");return D&&D===f&&V.complete};
qHZ=function(V,D){for(var f in D)f==="className"?V.className=D[f]:(Oq[f]||Oq[E0.default])(V,f,D[f])};
Xic=function(V,D,f,n){dI3(_.xt)({contentMode:D.contentMode,loadedClass:D.loadedClass,isPreloaded:D.isPreloaded,notifyOnLoaded:D.notifyOnLoaded,notifyOnUnloaded:D.notifyOnUnloaded,preferredThumbnail:D.preferredThumbnail,preserveHeight:D.preserveHeight,preserveWidth:D.preserveWidth,objectPosition:D.objectPosition,targetWidth:D.targetWidth,targetHeight:D.targetHeight,shouldShowPlaceholder:D.shouldShowPlaceholder,useWidth:D.useWidth,isToggled:D.isToggled,alt:D.alt,className:D.className,onerror:D.onerror,
onload:D.onload,style$:D.style$,color:D.color,width:D.width,height:D.height,"aria-hidden$":D["aria-hidden$"],draggable:D.draggable,"data-disabled$":D["data-disabled$"],data:V,callback:f,renderLazy:n===void 0?!0:n,hideOn404:!1})};
AsR=function(V,D,f){f=f===void 0?!1:f;var n=V.sources!==void 0?V:_.ys3(V);if(n){var t=D.onload;D.onload=function(T){var y=T.target;f&&y.naturalWidth===120||_.M3(y,"yt-core-image--loaded");D.notifyOnLoaded&&y.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));t==null||t(T)};
D.targetWidth&&D.preserveWidth&&(D.width=D.targetWidth);D.targetHeight&&D.preserveHeight&&(D.height=D.targetHeight);var J=_.lPY(n),H=J&&k9c(J);if(H)return(V=G9d(J))&&(D.color=V),{type:"icon",iconName:H,config:Object.assign({},D,D.alt?{}:{"aria-hidden$":"true"},{"aria-label$":D.alt,role:"img"})};if(V.sources===void 0){D.alt=V.accessibility&&V.accessibility.accessibilityData&&V.accessibility.accessibilityData.label||D.alt;D.style$=Fe3(V,D.shouldShowPlaceholder,D.style$);var Q;D.isPreloaded=!((Q=_.g(V,
Eh9))==null||!Q.isPreloaded)}D.contentMode&&!n.contentMode&&(n.contentMode=D.contentMode);D.className=ghn(n,D.className,D.preserveHeight,D.preserveWidth,D.objectPosition);D.loadedClass="yt-core-image--loaded";return{type:"image",image:n,config:D}}};
_.h2=function(){var V=_.gQ.apply(0,arguments);return _.py(aPc,function(D){var f=V.map(function(n){return n==null?void 0:n(D)});
return function(){return void f.forEach(function(n){return void(n==null?void 0:n())})}})};
Um=function(V,D){var f=D==null?void 0:D.initial;return _.yT(function(){_.Nq(!0);return f=V(f)},{equals:D==null?void 0:D.isEqual},"rSlKsc")};
YHU=function(V,D){if(V===D)return!0;if(V===void 0||D===void 0)return!1;var f,n,t,J,H,Q,T,y;return V.content===D.content&&((f=V.styleRuns)==null?void 0:f.length)===((n=D.styleRuns)==null?void 0:n.length)&&((t=V.commandRuns)==null?void 0:t.length)===((J=D.commandRuns)==null?void 0:J.length)&&((H=V.attachmentRuns)==null?void 0:H.length)===((Q=D.attachmentRuns)==null?void 0:Q.length)&&((T=V.decorationRuns)==null?void 0:T.length)===((y=D.decorationRuns)==null?void 0:y.length)};
SHU=function(V,D){if(V){var f=ohL(V);if(f!=null&&f.content)if(_.c("attr_string_reactive"))dI3($I9)({text:V,config:D});else{var n=!(D==null||!D.ariaLabel)||!(f.commandRuns&&f.commandRuns.length!==0||f.paragraphStyleRuns&&f.paragraphStyleRuns.length!==0);V=n?D==null?void 0:D.ariaLabel:null;n=n?"text":null;N3("span",{className:WZ9(f,D),dir$:(D==null?0:D.userInput)?"auto":void 0,"aria-label$":V,role$:n},function(){if(f.styleRuns||f.commandRuns||f.attachmentRuns||f.decorationRuns){var t=PjR(f,D);rsd(t,
D);t=KeY(f.content,t);t=_.r(t.parts);for(var J=t.next();!J.done;J=t.next())iQF(J.value)}else hN(f.content)})}}};
iQF=function(V){typeof V==="string"?hN(V):JsY(V.data)?N3("span",V.data.imageWrapperConfig,function(){Xic(V.data.image,V.data.imageConfig)}):N3(V.data.tag,V.data.config,function(D){HQd(V.data)(D);
D=_.r(V.parts);for(var f=D.next();!f.done;f=D.next())iQF(f.value)})};
pin=function(V){return V.parts.map(WeZ)};
WeZ=function(V){if(typeof V==="string")return V;V=JsY(V.data)?_.K("span",{el:_.h2(wiF(V.data.imageWrapperConfig))},_.K(_.xt,Object.assign({},{data:V.data.image},V.data.imageConfig))):_.K(V.data.tag,{el:_.h2(HQd(V.data),wiF(V.data.config))},V.parts.map(WeZ));return Z9(V)};
LeR=function(V,D){return V===D?!0:V===void 0||D===void 0?!1:V.noStyleRuns===D.noStyleRuns&&V.noLinkColor===D.noLinkColor&&V.noEndpoints===D.noEndpoints&&V.headerRuns===D.headerRuns&&V.isOverlay===D.isOverlay&&V.linkInheritColor===D.linkInheritColor&&V.userInput===D.userInput};
IPF=function(V){return function(){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k;return{ariaLabel:(D=V.ariaLabel)==null?void 0:D.call(V),className:(f=V.className)==null?void 0:f.call(V),ellipsisTruncate:(n=V.ellipsisTruncate)==null?void 0:n.call(V),isOverlay:(t=V.isOverlay)==null?void 0:t.call(V),linkInheritColor:(J=V.linkInheritColor)==null?void 0:J.call(V),noEndpoints:(H=V.noEndpoints)==null?void 0:H.call(V),noStyleRuns:(Q=V.noStyleRuns)==null?void 0:Q.call(V),noLinkColor:(T=V.noLinkColor)==null?void 0:T.call(V),
noPreWrap:(y=V.noPreWrap)==null?void 0:y.call(V),noWrap:(Z=V.noWrap)==null?void 0:Z.call(V),skipOnClick:(l=V.skipOnClick)==null?void 0:l.call(V),stopPropagation:(G=V.stopPropagation)==null?void 0:G.call(V),userInput:(F=V.userInput)==null?void 0:F.call(V),headerRuns:(k=V.headerRuns)==null?void 0:k.call(V)}}};
OQY=function(V){return V.value===""||V.value==="true"?!0:V.value==="false"?!1:isNaN(Number(V.value))?V.value:Number(V.value)};
V6=function(V,D){V=new xIn(V,D);_.NG(V);throw V;};
MUU=function(V,D,f){var n=PIY(V);V._numRenders=0;try{var t=_.eCR(function(){return _.K(D,Object.assign({},f))})}catch(H){var J=function(Q){Q.args||(Q.args=[]);
Q.args.push("Error in web component wrapper");Q.args.push(V.tagName.toLowerCase());return Q};
_.mw(H instanceof Error?J(H):new xIn("Wiz rendering error",V.tagName.toLowerCase()));throw H;}finally{PIY(n)}return t};
_.fT=function(V,D,f){function n(Z){var l={};Z=_.r(Z);for(var G=Z.next();!G.done;G=Z.next()){G=G.value;var F=void 0,k=void 0,d=void 0,z=_.yR((d=(k=(F=G).getAttribute)==null?void 0:k.call(F,"slot"))!=null?d:"children");if(F=l[z])F.push(G);else if(z in J||z==="children")l[z]=[G]}Z=_.r(Object.keys(l));z=Z.next();for(G={};!z.done;G={content$jscomp$56:void 0},z=Z.next())z=z.value,z!=="children"&&(G.content$jscomp$56=l[z],l[z]=function(C){return function(){return C.content$jscomp$56}}(G));
return l}
f=f===void 0?{}:f;V.componentType!==FY||V6("Components must be marked reactive to be used from web component wrapper.",D);t2.has(D)&&V6("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",D);var t,J=(t=f.props)!=null?t:{};Pr.add(D);var H=hTX();t=function(){var Z=H.apply(this,arguments)||this;Z.rawProps={};Z.queuingRender=!1;Z.dispose=function(){};
Z.isWebComponentWrapper=!0;Z.isReparenting=!1;Z.hasRendered=!1;return Z};
_.v(t,H);t.prototype.render=function(){this.hasRendered=!0;for(var Z=_.r([].concat(_.sz(this.attributes))),l=Z.next();!l.done;l=Z.next())l=l.value,l.name!=="slot"&&this.removeAttribute(l.name);Z=Object.assign({},this.componentProps,this.slotProps);l=_.r(MUU(this,V,Z));Z=l.next().value;l=l.next().value;!(Z[0]instanceof Element)||Z.length>1?V6("Wrapped Wiz components must return a single root element.",D):(Z=Z[0].tagName.toLowerCase(),Z!==D&&V6("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(Z+" !== '"+D),D),this.dispose=l)};
t.prototype.setUpProps=function(){for(var Z=this.rawProps,l=this.attributes,G=_.r(Object.keys(J)),F=G.next();!F.done;F=G.next()){F=F.value;var k=void 0;((k=this)==null?0:k[F])&&this[F]!==UIn&&Z[F]===void 0&&(Z[F]=this[F],(k=Object.getOwnPropertyDescriptor(this.constructor.prototype,F))&&Object.defineProperty(this,F,k))}G=_.r(l);for(F=G.next();!F.done;F=G.next()){k=F.value;F=_.yR(k.name);var d=F==="class"&&!l.getNamedItem("class-name");if(F in J||d)k=OQY(k),F!=="class"||Z.className?Z[F]=k:Z.className=
k}l={};for(var z in J)J[z]!==_.Dn&&J[z]!==Vmx&&(Z[z]instanceof Function&&V6("Function props must be configured as STATIC, not SIGNAL.",D),F=_.r(_.HJ(Z[z],void 0,"Ri8MSe")),G=F.next().value,F=F.next().value,l[z]=F,Z[z]=G);Z=_.r([Z,l]);this.componentProps=Z.next().value;this.setters=Z.next().value;this.slotProps=n(this.childNodes)};
t.prototype.connectedCallback=function(){fm===D&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in J&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
t.prototype.disconnectedCallback=function(){if(!this._isInert){var Z;a:{if(_.DBU)for(Z=this;Z;){if(_.f4F.has(Z)){Z=!0;break a}Z=Z.parentElement}Z=!1}if(Z)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){Z=_.r([].concat(_.sz(this.attributes)));for(var l=Z.next();!l.done;l=Z.next())l=l.value,l.name!=="slot"&&this.removeAttribute(l.name)}this.innerText="";MGX(this)}}};
t.prototype._setPendingPropertyOrPath=function(){};
t.prototype.notifyPath=function(){};
_.IG.Object.defineProperties(t.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var Q=_.r(Object.keys(J)),T=Q.next(),y={};!T.done;y={prop$jscomp$104:void 0},T=Q.next())y.prop$jscomp$104=T.value,T=void 0,((T=f.legacyPolymer)==null?0:T.forwardHostProps)&&IOd.has(y.prop$jscomp$104)||Object.defineProperty(t.prototype,y.prop$jscomp$104,{set:function(Z){return function(l){var G=this;this._isInert||(this.setters?ZJ(function(){var F,k;return void((k=(F=G.setters)[Z.prop$jscomp$104])==null?void 0:k.call(F,l))}):(this.rawProps[Z.prop$jscomp$104]=l,this.queuingRender&&Z.prop$jscomp$104===
"data"&&l!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(y),
get:n3F.has(y.prop$jscomp$104)?void 0:function(){return UIn}});
customElements.define(D,t)};
_.tm9=function(V,D){return(V=_.nT(V,D))?_.y2(_.cS(V)):null};
_.tI=function(V){if(V=_.nT(V,Number.MAX_VALUE,void 0,"width"))return _.cS(V)};
_.nT=function(V,D,f,n){n=n===void 0?"width":n;if(!V||!V.length)return null;if(_.c("kevlar_tuner_should_always_use_device_pixel_ratio")){var t=window.devicePixelRatio;_.c("kevlar_tuner_should_clamp_device_pixel_ratio")?t=Math.min(t,_.tU("kevlar_tuner_clamp_device_pixel_ratio")):_.c("kevlar_tuner_should_use_thumbnail_factor")&&(t=_.tU("kevlar_tuner_thumbnail_factor"));Ps9=t}else Ps9||(Ps9=window.devicePixelRatio);t=Ps9;_.c("kevlar_tuner_should_always_use_device_pixel_ratio")?D*=t:t>1&&(D*=t);if(_.c("kevlar_tuner_min_thumbnail_quality"))return V[0].url||
null;t=V.length;if(_.c("kevlar_tuner_max_thumbnail_quality"))return V[t-1].url||null;if(f)for(var J=0;J<t;J++)if(V[J].url.indexOf(f)>=0)return V[J].url||null;for(f=0;f<t;f++)if(V[f][n]>=D)return V[f].url||null;for(D=t-1;D>0;D--)if(V[D][n])return V[D].url||null;return V[0].url||null};
rMZ=function(){Pj.size?setTimeout(function(){ot(o3L)},0):JMF=0};
o3L=function(){var V=(0,_.VW)(),D=null,f=!1;Pj.forEach(function(t){t.loaded=!0;t.loadTime=V;t.pendingPaint=!1;var J=Hjc.get(t);J&&J.resolve(V);D=t;f||!t.ftlEligible&&t.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(f=!0)});
var n;((n=D)==null?0:n.markDirty)&&D.markDirty();Pj.clear();JMF=0;f&&wKY(V)};
QJd=function(V){Pj.add(V);V.pendingPaint=!0;JMF||(JMF=_.JI(_.dm,rMZ))};
Trd=function(V){V.loaded=!1;V.loadTime=Infinity;var D=Hjc.get(V);D&&(D.reject(Error("rh")),Hjc.delete(V));V.pendingPaint&&(Pj.delete(V),V.pendingPaint=!1)};
_.bjZ=function(V){var D=V.indexOf(":");return D===-1?{originalName:V}:{originalName:V.substring(0,D),datasyncId:V.substring(D+1)}};
_.yMX=function(){return _.w(function(V){if(KoR!==void 0)return V.return(KoR);KoR=new Promise(function(D){var f;return _.w(function(n){switch(n.nextAddress){case 1:return _.wx(n,2),_.b(n,_.rk.open("test-only"),4);case 4:return _.b(n,_.rk.delete("test-only"),5);case 5:_.YJ(n,3);break;case 2:if(f=_.KW(n),f instanceof Error&&f.name==="SecurityError")return D(!1),n.return();case 3:D("caches"in window),_.yz(n)}})});
return V.return(KoR)})};
l4Y=function(){return _.w(function(V){if(V.nextAddress==1)return _.b(V,_.yMX(),2);if(!V.yieldResult)return V.return(void 0);Zj9||(Zj9=new jJn);return V.return(Zj9)})};
GXR=function(V){var D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return _.b(J,l4Y(),2);case 2:D=J.yieldResult;if(!D)throw Error("th");return _.b(J,D.open("yt-player-local-img"),3);case 3:return f=J.yieldResult,_.b(J,f.match(V),4);case 4:n=J.yieldResult;if(!n)throw Error("uh");return _.b(J,n.blob(),5);case 5:return t=J.yieldResult,J.return(t)}})};
e8d=function(V,D){for(var f in V)if(V.hasOwnProperty(f)&&D[f])return f;return null};
cMZ=function(V){return"stamp"+V.replace("-","_")+"_"};
Fo3=function(V){var D=V.match(/\[\[([\w\.]+)\]\]/);if(D&&D.length>1)return D[1];_.NG(Error("wh`"+V));return null};
g3R=function(V){return V===void 0?_.EG("REUSE_COMPONENTS",!1):V||!1};
sJ9=function(V,D,f){f&&(D.is?(v3c.has(D)&&(V=v3c.get(D),f=V.listener,delete D[V.property],f.type==="element"&&D.removeEventListener(f.eventName,f.handler),v3c.delete(D)),kXn(D)):D.__proto__==HTMLElement.prototype&&(D=new _.cI("Rendererstamper removed a non custom element","Stamper: "+V+" element: "+(D&&D.nodeName)),_.zP(D)))};
Br9=function(V,D,f,n){var t=D.node?D.node:D;_.Pt(f).parentNode===t&&(D.removeChild(f),sJ9(V,f,n));if(V=Hj.get(f))Hj.delete(f),_.dm.cancelJob(V);f.hidden=!1};
dB9=function(V,D,f,n){if(D&&D.children&&(f=D.children[f]))if(_.EG("DEFERRED_DETACH"))for(;f&&!Hj.has(f);){var t=V,J=D,H=f,Q=n;H.hidden=!0;t=_.gq(_.dm,Br9.bind(null,t,J,H,Q),0);Hj.set(H,t);f=f.nextElementSibling}else for(;(H=D.lastElementChild)&&(D.removeChild(H),sJ9(V,H,n),H!=f););};
uGL=function(V){var D=_.W2("__slot-el");_.Nl(function(){for(var f=_.r(V.slotContent),n=f.next();!n.done;n=f.next())D.value.appendChild(n.value)});
return _.K("__slot-el",{el:D,skip:!0})};
_.wk=function(V,D,f){f=f===void 0?Nr9:f;t2.add(D);var n;(n=f).propNames!=null||(n.propNames=[]);var t=new Set(f.propNames),J=hTX();n=function(){var y=J.call(this)||this;y.props={};y.isUpdating=!1;y.hasAttached=!1;y.isInert=!1;y.updateQueued=!1;y.initialClasses=[];t49(y,D);return y};
_.v(n,J);n.prototype.forwardKebabCaseProp=function(y,Z){y=_.yR(y);if(t.has(y)||y==="children")this.props[y]=Z};
n.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var y=_.r(this.initialClasses),Z=y.next();!Z.done;Z=y.next())(Z=Z.value)&&this.classList.add(Z);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
n.prototype.handleSlottedContent=function(){for(var y=new Map,Z=_.r(this.children),l=Z.next();!l.done;l=Z.next()){l=l.value;var G=void 0,F=(G=l.getAttribute("slot"))!=null?G:"children";(G=y.get(F))?G.push(l):y.set(F,[l]);if(!l.getAttribute("key")){var k=void 0,d=void 0;l.setAttribute("key",F+"_"+((d=(k=G)==null?void 0:k.length)!=null?d:0))}}y=_.r(y);for(Z=y.next();!Z.done;Z=y.next())l=_.r(Z.value),Z=l.next().value,l=l.next().value,this.forwardKebabCaseProp(Z,_.K(uGL,{slotContent:l}))};
n.prototype.connectedCallback=function(){var y=this;if(!t49(this,D)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var Z=_.r(this.attributes),l=Z.next();!l.done;l=Z.next())l=l.value,this.forwardKebabCaseProp(l.name,OQY(l));this.handleSlottedContent();f.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){y.afterFirstPatch()});
this.hasAttached=!0}};
n.prototype.attributeChangedCallback=function(y,Z,l){this.isInert||this.isUpdating||this.isConnected||y!=="class"||this.initialClasses.push.apply(this.initialClasses,_.sz(l.split(" ")))};
n.prototype.disconnectedCallback=function(){EbF(this)};
n.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var y,Z;VlR(this,_.K(V,Object.assign({},this.props,{idomKey:(Z=(y=this.__incrementalDOMData)==null?void 0:y.key)!=null?Z:D})),!0)}catch(G){var l=G instanceof Error?G:new _.cI("Wiz rendering error");l.args||(l.args=[]);l.args.push("Error in deprecated web component wrapper");l.args.push(D.toLowerCase());_.NG(l);throw G;}finally{this.updateQueued=this.isUpdating=!1}}};
n.prototype.enqueueUpdate=function(){var y=this;return _.w(function(Z){if(f.synchronous)return y.update(),Z.return();if(y.updateQueued)return Z.return();y.updateQueued=!0;return Z.return(Promise.resolve().then(function(){y.update()}))})};
n.prototype.notifyPath=function(){f.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.IG.Object.defineProperties(n,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var H=_.r(f.propNames),Q=H.next(),T={};!Q.done;T={prop$jscomp$106:void 0},Q=H.next())T.prop$jscomp$106=Q.value,Object.defineProperty(n.prototype,T.prop$jscomp$106,{set:function(y){return function(Z){this.isInert||Z===this.props[y.prop$jscomp$106]||(this.props[y.prop$jscomp$106]=Z,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(T)});
customElements.define(D,n)};
_.mBL=function(V,D){return _.wg(V.entities,"markersEngagementPanelSyncEntity",D)};
z8F=function(V,D){return _.wg(V.entities,"fantasyWinProbabilityEntity",D)};
R8Y=function(V,D){return _.wg(V.entities,"fantasyTeamEntity",D)};
CsY=function(V,D){return _.wg(V.entities,"fantasyPlayerEntity",D)};
qU3=function(V,D){return _.wg(V.entities,"booleanEntity",D)};
XKF=function(V,D){return _.wg(V.entities,"qrCodeEntity",D)};
E3x=function(V){return _.wg(V.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
AM3=function(){if(Q6)return Q6;if(window.lottie)return Q6=Promise.resolve(window.lottie);var V=_.mW(_.XB("LOTTIE_URL"));return V?Q6=new Promise(function(D,f){var n=document.createElement("script");n.addEventListener("load",function(){D(lottie)});
n.addEventListener("error",function(t){var J="Lottie library failed to load.";t?t.message&&(J+=" Original description: "+t.message,_.R2(t,J)):t=Error(J);_.zP(t);f(t)});
n.setAttribute("async","");_.Yx(n,V);document.head.appendChild(n)}):Promise.reject(Error("xh"))};
a4Y=function(){return Q6?Q6:AM3()};
YUY=function(V){if(V)switch(V){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.c("kevlar_use_wil_icons"))return V=(V=E3x(_.Ol().getState()))&&V.animationLightUrl&&V.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:V.animationLightUrl,pathDarkTheme:V.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,V?V:Tk.get("LIKE")}};
$Bc=function(V){var D=YUY(V);if(D)return D;switch(V){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Tk.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Tk.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Tk.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Tk.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Tk.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Tk.get("NOTIFICATION_BELL")}};
SUY=function(V,D){if(!V||ijY)D=!1;else{if(V.closest){var f=!!YUY(D);f=_.XB("ID_TOKEN")&&f?!!V.closest("segmented-like-dislike-button-view-model"):!1}else f=!1;if(!f)if(V.closest)if(f=!_.XB("ID_TOKEN"),V=V.closest("ytd-subscription-notification-toggle-button-renderer-next"),f||!V)f=!1;else{var n;f=((n=V.data)==null?void 0:n.targetId)==="notification-bell"&&D!=="EXPAND_MORE"}else f=!1;D=f}return D};
Wo9=function(V){var D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.wx(n,2),_.b(n,fetch(V),4);case 4:return D=n.yieldResult,_.b(n,D.json(),5);case 5:return n.return(n.yieldResult);case 2:f=_.KW(n),_.zP(f),_.yz(n)}})};
pKZ=function(V,D){var f,n,t;return _.w(function(J){if(J.nextAddress==1)return(f=D?V.pathDarkTheme:V.path)?_.b(J,Promise.all([Wo9(f),AM3()]),2):J.return();n=J.yieldResult;t=n[0];be.set(f,t);_.yz(J)})};
_.KT=function(){for(var V=_.gQ.apply(0,arguments),D=!0,f=_.r(V),n=f.next();!n.done;n=f.next())if(typeof n.value!=="string"){D=!1;break}return D?V.join(" ").trim()||void 0:function(){for(var t="",J=_.r(V),H=J.next();!H.done;H=J.next())if(H=H.value,typeof H==="function"&&(H=H()),H)if(typeof H==="string")t+=" "+H;else for(var Q in H)if(H.hasOwnProperty(Q)){var T=H[Q];typeof T==="function"&&(T=T());T&&(t+=" "+Q)}t=t.trim()||void 0;return _.Nq(t)}};
I4X=function(V,D,f,n){function t(H,Q){if(D.value===Q&&V!=null&&V.value){for(;V.value.firstChild;)V.value.removeChild(V.value.firstChild);V.value.classList.add("yt-spec-icon-shape");H(V.value,n)}}
f=_.LoX(_.DY().resolve(_.TK),f);if(typeof f==="function")D.value=null,t(f,null);else{var J=new _.Qf(f.then,f);D.value=J;J.then(function(H){t(H,J)})}};
xB9=function(V,D){var f=document.createElement("div"),n=_.sG(f,function(){return _.K(_.e,{cond:V,then:function(t){return _.K(Ojc,{data:t,options:D})}})});
return[f,n]};
_.y6=function(){for(var V=[],D=_.r(_.gQ.apply(0,arguments)),f=D.next();!f.done;f=D.next())if(f=f.value)if(typeof f==="string")V.push(f);else{f=_.r(Object.entries(f));for(var n=f.next();!n.done;n=f.next()){var t=_.r(n.value);n=t.next().value;(t=t.next().value)&&V.push(n)}}return V.join(" ")};
VS9=function(V){var D=_.W2("animated-rolling-character"),f=z2(),n=Ib(V.character)||Ib(V.previousCharacter);nix(function(){if(V.marginMultiplier){var t;(t=f.value)==null||t.cancel();n?(t=V.previousCharacter?Number(V.previousCharacter)+10:V.rollUp?0:30,V.shouldAnimate||(t-=MmY(V,t))):(t=V.rollUp?0:2,V.shouldAnimate||(t-=V.rollUp?-1:1));D.value.style.marginTop="-"+t*V.marginMultiplier+"px";V.shouldAnimate?f.value=h89(D.value,V,t,n):D.value.style.display=V.character?"":"none"}});
return _.K("animated-rolling-character",{el:D,class:"animated-rolling-character-wiz"},IV(n,function(){for(var t=[],J=1;J<30;J++)t.push(_.K("div",null,J%10));return _.K(_.th,null,_.K("div",null,"\u00a0"),t,_.K("div",null,"\u00a0"))},function(){return UBL(V.character)}))};
UBL=function(V){return _.K(_.th,null,_.K("div",null,"\u00a0"),_.K(_.th,null,IV(!V||_.Hn(V),function(){return _.K("div",null,"\u00a0")},function(){return _.K("div",null,V)})),_.K("div",null,"\u00a0"))};
h89=function(V,D,f,n){f=new Animation(new KeyframeEffect(V,[{transform:"translateY(0px)"},{transform:"translateY("+(n?MmY(D,f):D.rollUp?-1:1)*D.marginMultiplier+"px)"}],DE3),document.timeline);D.character?(V.style.display="",f.onfinish=null):f.onfinish=function(){V.style.display="none"};
f.play();return f};
MmY=function(V,D){var f=Number(V.character)+10;if(V.previousCharacter)if(V.character){var n=Number(V.character),t=Number(V.previousCharacter);V=V.rollUp?t<n?f:f+10:t<n?f-10:f}else V=V.rollUp?30:0;else V=V.character==="0"?f:V.rollUp?f-10:f+10;return D-V};
_.Zn=function(V,D){return function(f){var n={},t;for(t in f){var J=void 0,H=void 0;((J=D)==null?0:(H=J.callbacks)==null?0:H[t])||(n[t]=f[t])}return _.K(GkU,null,function(){for(var Q in n)f[Q]=_.Nq(n[Q]);f.disableReactiveLogging=!0;return _.K(V,Object.assign({},f))})}};
tSF=function(V,D,f,n,t,J,H){f=new Animation(new KeyframeEffect(V,[{transform:"translateY(0px)"},{transform:"translateY("+(J?fuF(D,f,n,t):n?-1:1)*H+"px)"}],nIR),document.timeline);D?(V.style.display="",f.onfinish=null):f.onfinish=function(){V.style.display="none"};
f.play();return f};
fuF=function(V,D,f,n){var t=Number(V)+10;D?V?(V=Number(V),D=Number(D),f=f?D<V?t:t+10:D<V?t-10:t):f=f?30:0:f=V==="0"?t:f?t-10:t+10;return n-f};
oI3=function(V){var D=z2(),f=z2();_.dj(function(){D.value=V.numberText;f.value=V.numberValue},[V.numberText]);
var n=V.fontSizeMultiplier?V.heightPx*V.fontSizeMultiplier:V.heightPx,t=Tv3(function(){if(V.numberText){var H=V.numberText;var Q=V.forceRollUp||!f.value||!V.numberValue||f.value<V.numberValue;var T=!!V.shouldAnimate,y=D.value,Z=[],l=0,G=0,F=(y?y.replace(/\D/g,"").length:0)-(H?H.replace(/\D/g,"").length:0);y=y?y.split(/(\d)/).filter(Boolean):[];for(H=H.split(/(\d)/).filter(Boolean);F<0;){var k=H[G];Z.push({character:k,rollUp:Q,marginMultiplier:n,shouldAnimate:T});G++;Ib(k)&&F++}for(;l<F;)k=y[l],Z.push({previousCharacter:k,
rollUp:Q,marginMultiplier:n,shouldAnimate:T}),l++,Ib(k)||F++;for(;G<H.length;)F=H[G],k=y[l],Ib(F)===Ib(k)?(G++,l++):Ib(F)?(l++,F=void 0):Ib(k)&&(G++,k=void 0),Z.push({character:F,previousCharacter:k,rollUp:Q,marginMultiplier:n,shouldAnimate:T});Q=Z}else Q=[];return Q},[V.numberText]),J=V.numberText?["height: "+n+"px;",
"line-height: "+V.heightPx+"px;"].join(" "):"";return _.K("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:J,dir:"ltr","aria-hidden":"true"},t.map(function(H){return _.K(POx,Object.assign({},H))}))};
r3n=function(V){var D;return(D=J3c[V])!=null?D:"EVENT_SPAN_TYPE_UNKNOWN"};
HkY=function(V){var D=V.nodeName;if(V.id)return D+="#"+V.id;if(V.classList)for(var f=_.r(V.classList),n=f.next();!n.done;n=f.next())D+="."+n.value;V.parentElement&&(D=HkY(V.parentElement)+" > "+D);return D};
wfF=function(V){return function(D){var f=r3n(D.type);return f==="EVENT_SPAN_TYPE_UNKNOWN"?V(D):A_Z("event",{type:f,nodepath:D.target instanceof Element?HkY(D.target):void 0},function(){return V(D)})}};
_.jl=function(V){V&&qj9("event")&&(V=wfF(V));return x3L(function(D){var f,n=(f=V)==null?void 0:f(D);return typeof n==="boolean"?n:!0})};
le=function(V){return function(){return V()?V():void 0}};
QdX=function(V){return new KeyframeEffect(V,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
T1n=function(V){return new KeyframeEffect(V,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Gk=function(V){var D=Um(function(f){f=f?rc(f[0]):void 0;return _.HJ(V(f),void 0,"AwTxXe")},{isEqual:function(f,n){return rc(f[0])===rc(n[0])}});
return[function(){return D()[0]()},
function(f){return void D()[1](f)}]};
_.el=function(V){return function(){var D="",f;for(f in V){for(var n=V[f];typeof n==="function";)n=n();n!==void 0&&n!==null&&(D+="; "+f+": "+n)}return D.length>0?_.Nq(D.slice(2)):_.Nq()}};
bkc=function(V){switch(V){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"}};
jd3=function(V,D,f,n,t,J){var H=KTU(V),Q=H.disabled,T=H.iconPosition,y=H.style,Z=H.focused,l=function(){return!!k()&&T()==="icon-only"},G=function(){return!!k()&&T()==="icon-only-40"},F=function(){return!!k()&&T()==="icon-with-label"},k=function(){return!!D||!(n==null||!n())};
return{type:function(){return y()==="call-to-action-inverse"?"text":y()==="overlay-dark"&&V().type!=="filled"&&V().type!=="tonal"?"tonal":V().type},
shouldFocus:function(){return(Z()||(J==null?void 0:J()))&&!Q()},
hasIconLeading:function(){return!!k()&&T()==="leading"},
hasIconTrailing:function(){return!!k()&&T()==="trailing"},
hasIconLeadingTrailing:function(){return!!k()&&!!(f||t!=null&&t())&&T()==="leading-trailing"},
hasIconOnly:l,hasIconOnly40:G,hasIconWithLabel:F,iconButton:function(){return l()||G()||F()},
visiblyDisabled:function(){return(Q()?"disabled":V().state)==="disabled"||Q()},
overrideSmallSizeIcon:function(){return!V().ignoreIconSizeOverride&&y3Z(V(),k())},
iconToRender:D?D:function(){return _.K(_.cj,{icon:n,size:function(){return Fh(V(),!0,V().ignoreIconSizeOverride)},
active:function(){return V().toggled},
iconFilter:function(){return ZkL(V())}})},
secondaryIconToRender:f?f:function(){return _.K(_.cj,{icon:t,size:function(){return Fh(V(),!0,V().ignoreIconSizeOverride)},
active:function(){return V().toggled},
iconFilter:function(){return ZkL(V())}})}}};
KTU=function(V){return{size:function(){return V().size},
style:function(){return V().style},
focused:function(){return V().focused},
disabled:function(){return V().disabled},
onTap:function(D){var f,n;return(n=(f=V()).onTap)==null?void 0:n.call(f,D)},
alignByText:function(){return V().alignByText},
aTagConfig:function(){return V().aTagConfig},
customColors:function(){return V().customColors},
segmentedPosition:function(){return V().segmentedPosition},
toggled:function(){return V().toggled},
toggleable:function(){return V().toggleable},
accessibilityLabel:function(){return V().accessibilityLabel},
onToggle:function(D){var f,n;return(n=(f=V()).onToggle)==null?void 0:n.call(f,D)},
iconPosition:function(){return V().iconPosition},
oneOffCustomTextWrap:function(){return V().oneOffCustomTextWrap},
disableTextEllipsis:function(){return V().disableTextEllipsis},
disableBackdropFilter:function(){return V().disableBackdropFilter},
tooltipText:function(){return V().tooltipText},
ariaHidden:function(){return V().ariaHidden},
tabIndex:function(){return V().tabIndex},
buttonText:function(){return V().buttonText},
formattedButtonText:function(){return V().formattedButtonText},
animatedTextProps:function(){return V().animatedTextProps}}};
luZ=function(V){return V.style==="overlay-dark"?4:V.style==="overlay"?V.type==="filled"?4:3:V.type==="filled"||V.style==="call-to-action-inverse"||V.style==="mono-inverse"?2:1};
y3Z=function(V,D){D=(V.iconPosition==="icon-only"||V.iconPosition==="icon-only-40"||V.iconPosition==="icon-with-label")&&D;return!V.segmentedPosition&&D&&V.size==="S"};
GrZ=function(){return!_.c("web_disable_backdrop_filter")};
Fh=function(V,D,f){switch(V.size){case "XS":return 16;case "S":return!f&&y3Z(V,D)?24:16;default:return 24}};
euF=function(V){switch(V){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"}};
c39=function(V){switch(V){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"}};
FTx=function(V){switch(V){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"}};
ZkL=function(V){if(V.style==="overlay-dark"&&V.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
gIF=function(V){if(!V)return{};var D=V.color,f=V.backgroundColor;V=V.borderColor;var n="";D&&(n+="color: "+D+";");f&&(n+="background-color: "+f+";");V&&(n+="border-color: "+V+";");return{style:n}};
dEF=function(V,D,f){var n=V.buttonText,t=V.formattedButtonText,J=V.formattedButtonTextLegacy,H=V.animatedTextProps,Q=V.style,T=V.size,y=V.focused,Z=V.disabled,l=V.onTap,G=V.alignByText,F=V.aTagConfig,k=V.customColors,d=V.segmentedPosition,z=V.toggled,C=V.toggleable,A=V.accessibilityLabel,O=V.onToggle,W=V.iconPosition,I=V.oneOffCustomTextWrap,x=V.disableTextEllipsis,oY=V.disableBackdropFilter,wZ=V.tooltipText,ZZ=V.ariaHidden,sd=V.tabIndex,NU=V.ignoreIconSizeOverride,Bn=V.state,aY=V.type;Q==="call-to-action-inverse"&&
(aY="text");Q==="overlay-dark"&&aY!=="filled"&&aY!=="tonal"&&(aY="tonal");var Ed=!!D&&W==="leading",V0=!!D&&W==="trailing",kf=!!D&&!!f&&W==="leading-trailing",mY=!!D&&W==="icon-only",Ko=!!D&&W==="icon-only-40",Eu=!!D&&W==="icon-with-label",y0=mY||Ko||Eu;Z&&(Bn="disabled");var BH=Bn==="disabled"||Z;NU=!NU&&y3Z(V,!!D);Bn={};var wu=(Bn["yt-spec-button-shape-next"]=!0,Bn[euF(aY)]=!0,Bn[c39(Q)]=!BH,Bn["yt-spec-button-shape-next--disabled"]=!!BH,Bn[FTx(T)]=!0,Bn["yt-spec-button-shape-next--focused"]=!!y&&
!Z,Bn["yt-spec-button-shape-next--icon-trailing"]=V0,Bn["yt-spec-button-shape-next--icon-leading"]=Ed,Bn["yt-spec-button-shape-next--icon-leading-trailing"]=kf,Bn["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=kf&&!(n||t),Bn["yt-spec-button-shape-next--icon-button"]=mY||Eu,Bn["yt-spec-button-shape-next--icon-only-default"]=Ko,Bn["yt-spec-button-shape-next--align-by-text"]=!!G,Bn["yt-spec-button-shape-next--segmented-start"]=d==="start",Bn["yt-spec-button-shape-next--segmented-end"]=d===
"end",Bn["yt-spec-button-shape-next--override-small-size-icon"]=NU,Bn["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!I,Bn["yt-spec-button-shape-next--disable-text-ellipsis"]=!!x,Bn["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!oY&&GrZ(),Bn),lF=function(){if(H)dI3(_.vIL)(H);else if(J)J(W==="icon-with-label"||I?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(t){var WH=W==="icon-with-label"||I;SHU(Object.assign({},
t,WH?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!WH})}else n&&hN(n)},rZ=function(WH){l==null||l(WH);
C&&(O==null||O(WH))},wP=F?krn:sdc,gP=F?"aria-current$":"aria-pressed$",uX=function(){D&&(Ed||kf||y0)&&function(){gk({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){D()})}();
(n||t||J||H)&&!y0&&function(){gk({className:"yt-spec-button-shape-next__button-text-content"},function(){lF()})}();
V0&&function(){gk({className:"yt-spec-button-shape-next__icon"},function(){D()})}();
kf&&function(){gk({className:"yt-spec-button-shape-next__secondary-icon"},function(){f()})}();
Z||dI3(_.kl)({model:{color:luZ(V)}})},cH=function(){var WH={};
wP(Object.assign({},(WH.className=_.y6(wu),WH.onclick=F?void 0:rZ,WH.disabled=Z,WH["aria-disabled$"]=BH,WH.style=Z&&F?"pointer-events:none":void 0,WH[gP]=C?!!z:void 0,WH["aria-label$"]=A,WH.title$=wZ!=null?wZ:"",WH["aria-hidden$"]=ZZ,WH.tabindex$=sd,WH),F,gIF(k)),function(){uX()})};
Eu?(T={},Q=(T["yt-spec-button-shape-with-label"]=!0,T["yt-spec-button-shape-with-label--is-overlay"]=Q==="overlay"||Q==="overlay-dark",T),B1F({className:_.y6(Q)},function(){cH();gk({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},lF)})):cH()};
N1L=function(V,D){if(!OR){var f;PkY(function(){return f=jtU(V,D)});
return f}V.parent=_.u5x();return jtU(V,D)};
_.u5x=function(){var V=vw9(OR||void 0,KAU);return gwR(V)?void 0:V};
so=function(V,D){_.Em(V,Object.assign({},D,{forceClickLogging:!0}))};
mEd=function(V,D,f,n){so(V,Object.assign({},{form:{element:D,event:f}},n))};
Rux=function(V,D,f,n,t){var J=void 0;return function(H){var Q=_.Xo(f?V==null?void 0:V.onDisabledTap:V==null?void 0:V.onTap);if(Q){var T;J=(T=J)!=null?T:D==null?void 0:D.value;if(Q)if(_.c("web_button_vm_click_client_ve_killswitch"))mEd(Q,J,H);else{T=zu3(V,Q);if(t){mEd(Q,t,H,{clickedVisualElement:T,form:{element:t}});return}mEd(Q,J,H,{clickedVisualElement:T})}}n&&n(H)}};
zu3=function(V,D){D=D==null?void 0:D.clickTrackingParams;var f,n;if((V=V==null?void 0:(f=V.loggingDirectives)==null?void 0:(n=f.clientVeSpec)==null?void 0:n.uiType)&&!D)return _.Bj(V)};
COY=function(V){switch(V){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"}};
qId=function(V){switch(V){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"}};
XfX=function(V){switch(V){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"}};
EId=function(V){switch(V){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"}};
A3Y=function(V,D){return _.wg(V.entities,"engagementToolbarStateEntityPayload",D)};
YIZ=function(V){(V=_.gs(V))&&_.auR(V)};
_.auR=function(V){var D=_.Ni();D&&_.iC(D,V)};
$Ex=function(V,D,f){_.o4(V,"yt-open-popup-action",[D,f||V])};
ikn=function(V,D){var f=_.R9(V,"endpoint"),n=_.R9(V,"action");return(f=n?n:f)&&D&&(f=D.navigationEndpointPopupMap[f])&&(V=_.Yw(f,V),(f=_.R9(V,"renderer"))&&D.supportedPopups.hasOwnProperty(f))?{openPopupAction:{popupType:D.popupTypeMap[f],popup:V}}:null};
SIn=function(V,D,f,n){if(n){var t;f=f==null?void 0:(t=f.data)==null?void 0:t.contents;(t=f instanceof Array&&f.length?f[0]:f)&&(f=_.R9(t,"renderer"))&&n.supportedPopups.hasOwnProperty(f)&&(D.stopPropagation(),$Ex(V,{openPopupAction:{popupType:n.popupTypeMap[f],popup:t}}))}};
LTL=function(V,D,f,n){n=n===void 0?!1:n;var t=WT9(D);if(t){t.href&&id(t.href);var J=D.button;J=J!==void 0?J===0&&!dk(D):!dk(D);t.data&&J&&pfY(V,t,D,f,n)}};
pfY=function(V,D,f,n,t){t=t===void 0?!1:t;var J=_.tU("pbj_navigate_limit",-1)===0;IuY(D);_.DY().resolve(_.Vx(Ak));var H=D.data;if(Object.keys(H).length!==0)if(!_.c("unplugged_web_disable_actions_for_cec_endpoint")&&_.g(H,_.Tm))_.c("endpoint_behavior_command_executor_fix_killswitch")||(f.preventDefault(),f.stopPropagation()),_.wN(V,[H],V);else if(n=ikn(H,n))H.loggingUrls&&H.loggingUrls.forEach(function(T){T.baseUrl&&_.Ye(T.baseUrl)}),f.preventDefault(),f.stopPropagation(),$Ex(V,n,D);
else{var Q=OkR(0,D.data,f);if(V=D.getForm)V=V(),Q.tempData=Q.tempData||{},Q.tempData=Object.assign({},Q.tempData,V);V=_.Os(f);if(n=V.find(function(T){return!!T.visualElement}))Q.createScreenConfig=Q.createScreenConfig||{},Q.createScreenConfig.clickedVisualElement=n.visualElement;
if(!J)if(f.preventDefault(),f.stopPropagation(),_.g(H,_.xEd)&&!t&&_.bS.instance)_.bS.instance.resolveCommand(H,Q);else if(_.c("kevlar_command_handler_formatted_string")&&!t&&_.bS.instance&&MS9(H))t=V.find(function(T){return!!T.is})||f.target,f={form:Object.assign({},Q,{event:f,
element:t,originatingNode:D})},_.bS.instance.resolveCommand(H,f);else{H=_.Os(f);f=[];for(t=0;t<H.length;t++)(J=H[t].is)&&f.push(J);zqd({parents:f.join(","),text:D.innerText},function(){_.PA(D,"yt-navigate",Q)})}}};
hud=function(V){if(V=WT9(V))IuY(V),ZEZ(V.href)};
WT9=function(V){V=_.Os(V);for(var D,f=0;f<V.length;f++)if(D=V[f],D.tagName==="A"&&D.classList.contains("yt-simple-endpoint")){if(!D.data)break;return D}return null};
dk=function(V){return V.shiftKey||V.altKey||V.metaKey||V.ctrlKey};
UEd=function(V,D){var f={itct:D.clickTrackingParams};_.c("kevlar_client_side_screens")&&(!_.g(D,_.gU)||_.c("kevlar_exclude_endpoint_killswitch"))&&(f.endpoint=JSON.stringify(D));_.c("enable_unknown_lact_fix_on_html5")&&_.DY().resolve(_.Vx(_.ue))&&(f.lact=_.Vf());bEZ(f);_.xo(V,f)};
IuY=function(V){V.href&&Object.keys(V.data).length!==0&&UEd(V.href,V.data)};
MS9=function(V){for(var D=_.r(VyR),f=D.next();!f.done;f=D.next())if(V[f.value])return!1;return!0};
_.Na=function(V,D){if(D){var f={};Dvc.forEach(function(n){n=fyR(D,n,"--yt-lightsource-");Object.assign(f,n)});
nPR.forEach(function(n){n=fyR(D,n,"--yt-basic-");Object.assign(f,n)});
_.wI(V,f)}};
fyR=function(V,D,f){var n={};n[f+_.Kl(D)]=V&&V[D]?_.aB(V[D]):"";return n};
_.zk=function(V,D,f){mA[V]||(mA[V]={});mA[V][D]=f};
_.Rt=function(V){mA[V]||(mA[V]={});return mA[V]};
tyF=function(V){if(!V)return{};var D=V.foregroundTitleColor,f=V.backgroundColor;V=V.borderColor;var n="text";V?n="outline":f&&(n="filled");return{type:n,customColors:{color:D?_.aB(D):void 0,backgroundColor:f?_.aB(f):void 0,borderColor:V?_.aB(V):void 0}}};
HbX=function(V){var D=V.renderer;var f=V.element;var n=V.commandController;var t=V.onTapCallback;var J=V.skipCommandHandling;var H=V.overrides;var Q=V.forceIcon;var T=V.forceModernIconButton;var y=V.forceDisabled;var Z=V.isSubscribe===void 0?!1:V.isSubscribe;var l=V.isPressed===void 0?!1:V.isPressed;var G=V.useButtonSize===void 0?!1:V.useButtonSize;V=PtX(D);Z&&(V.style="mono",V.type="filled");Q=!D.icon||!Q&&D.text?D.icon?D.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:T?"icon-only":"icon-only-40";Q==="icon-only-40"&&(V.type="text");var F;T=Object;Z=T.assign;G=oPY(D,G);l=!!D.isSelected||!_.c("web_propagate_is_pressed_killswitch")&&!!l;var k=D.isSelected!==void 0;y=y===void 0?D.isDisabled:y;var d=D.text?_.zK(D.text):void 0;var z,C,A,O=((z=D.accessibilityData)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label)||((A=D.accessibility)==null?void 0:A.label);z=O?O:_.LA(D.text);f=JKY(D,f,n,t,J);n=rKZ(D);n!=null&&n.length?(n=_.A2({innertubeCommand:upF(n),
forceNewState:!0}),n=a5(n)?n:void 0):n=void 0;return Z.call(T,{},V,G,{iconPosition:Q},H,{focused:!1,toggled:l,toggleable:k,disabled:y,formattedButtonText:d,accessibilityLabel:z,onTap:f,aTagConfig:n},tyF((F=D.colorData)==null?void 0:F.basicColorPaletteData),{oneOffCustomTextWrap:D.oneOffCustomTextWrap})};
JKY=function(V,D,f,n,t){return function(J){var H=rKZ(V);n(H,J);if(!t){H=_.r(H);for(var Q=H.next();!Q.done;Q=H.next())so(Q.value,{form:{element:D,event:J},commandController:f})}}};
rKZ=function(V){var D=[];V.command&&D.push(V.command);V.serviceEndpoint&&D.push(V.serviceEndpoint);V.navigationEndpoint&&D.push(V.navigationEndpoint);return D};
oPY=function(V,D){if(D)switch(V.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(V.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
PtX=function(V){switch(V.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"}}};
_.CT=function(V){return _.yT(function(){o5d()();return Hzc(V)},void 0,"Icv7j")};
qa=function(V,D){return _.wg(V.entities,"likeStatusEntity",D)};
w3U=function(V,D){return _.wg(V.entities,"likeCountEntity",D)};
_.QAR=function(V,D){return _.wg(V.entities,"stringEntity",D)};
TLd=function(V,D){if(!V)return!1;var f,n=(f=_.g(V,_.K6))==null?void 0:f.signal;if(n&&D.signalEndpointMap)return!!D.signalEndpointMap[n];var t;if((f=(t=_.g(V,_.Xh))==null?void 0:t.request)&&D.continuationEndpointMap)return!!D.continuationEndpointMap[f];for(var J in V)if(D.commandEndpointMap[J])return!0;return!1};
bbn=function(V,D){if(D.streamingEndpointMap)for(var f in V)if(D.streamingEndpointMap[f]&&(V=D.streamingEndpointMap[f]))return V()};
KrL=function(V,D){var f,n=(f=_.g(V,_.K6))==null?void 0:f.signal;if(n&&D.signalEndpointMap&&(f=D.signalEndpointMap[n]))return f();var t;if((f=(t=_.g(V,_.Xh))==null?void 0:t.request)&&D.continuationEndpointMap&&(t=D.continuationEndpointMap[f]))return t();for(var J in V)if(D.commandEndpointMap[J]&&(V=D.commandEndpointMap[J]))return V()};
yKY=function(V){var D={"Content-Type":"application/json"};_.XB("EOM_VISITOR_DATA")?D["X-Goog-EOM-Visitor-Id"]=_.XB("EOM_VISITOR_DATA"):_.XB("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=_.XB("VISITOR_DATA"));D["X-Youtube-Bootstrap-Logged-In"]=_.XB("LOGGED_IN",!1);_.XB("DEBUG_SETTINGS_METADATA")&&(D["X-Debug-Settings-Metadata"]=_.XB("DEBUG_SETTINGS_METADATA"));V!=="cors"&&((V=_.XB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(D["X-Youtube-Client-Name"]=V),(V=_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(D["X-Youtube-Client-Version"]=
V),(V=_.XB("CHROME_CONNECTED_HEADER"))&&(D["X-Youtube-Chrome-Connected"]=V),(V=_.XB("DOMAIN_ADMIN_STATE"))&&(D["X-Youtube-Domain-Admin-State"]=V),_.EG("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(V=_.XB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(D["X-YouTube-Lava-Device-Context"]=V));return D};
Zb9=function(V,D){D.watchNextResponse||D.reelItemWatchResponse?D.watchNextResponse?V.content=D.watchNextResponse:V.content=D.reelItemWatchResponse:D.playerResponse?V.player=D.playerResponse:D.reelWatchSequenceResponse&&(V.reelSequence=D.reelWatchSequenceResponse)};
_.Eo=function(V){if(!V)return null;for(var D=[],f=0;f<V.textSegments.length;f++){var n=V.textSegments[f];n.text?D.push(n):n.emojiId&&D.push({emoji_id:n.emojiId})}return{text_segments:D}};
cK9=function(V,D,f,n,t,J,H){J=J===void 0?[]:J;var Q=new _.AI;Q.endpoint=f;if(!f)return _.mw(new _.cI("handle undefined endpoint",D.tagName)),Q;var T=$33(f);T.length&&(_.wN(V,T,D,n),Q.actions=T);f.loggingUrls&&f.loggingUrls.forEach(function(Z){Z.baseUrl&&$e(Z.baseUrl,Z.attributionSrcMode)});
T=!_.c("web_skip_impression_click_killswitch")&&n&&n.impression;if(f.clickTrackingParams&&!jAX(f)&&!lyF(D)&&!T&&(T=_.lS(),!_.at(T,D))){var y=D.getScreenLayer&&D.getScreenLayer();y?T.clickCommand(f,null,y):T.clickCommand(f,null)}T=!1;for(y=0;y<J.length;y++)if((0,J[y])(D,f,n)){T=!0;break}!T&&GcY(f)&&(Q.ajaxPromise=ewx(V,D,f,n,t,H));return Q};
lyF=function(V){var D;return(V=(D=V.data)==null?void 0:D.navigationEndpoint)&&!!V.clickTrackingParams};
jAX=function(V){var D=_.g(V,_.K6);if(D&&(D=D.signal)&&Fr9.indexOf(D)>=0)return!0;for(var f in V)if(gP3.indexOf(f)>=0)return!0;return!1};
GcY=function(V){var D;if(((D=_.g(V,_.K6))==null?void 0:D.signal)==="CLIENT_SIGNAL")return!1;for(var f in V)if(vPY.indexOf(f)>=0)return!1;V=Object.keys(V);return V.length===1&&V[0]==="loggingUrls"?!1:!0};
zw9=function(V,D,f,n,t,J,H){var Q=_.Yl.instance;if(Q&&_.$l(Q,n))var T=_.ie(Q,n,t).then(function(Z){return(Z==null?0:Z.data)?Z:{data:Z}});
else T=V.requestDataForServiceEndpoint(n,t),_.g(n,kc9)||_.g(n,sAZ)||_.g(n,_.BLn)||_.g(n,dvU)||_.zP(new _.cI("No RequestBuilder for endpoint",n));var y=_.Sl();y.promise.thenCatch(function(){var Z=_.R9(n,"action")||_.R9(n,"command")||_.R9(n,"endpoint");Z&&(Z=n[Z],Z.hasOwnProperty("onFailureAction")?_.wN(D,[Z.onFailureAction],f):Z.hasOwnProperty("onFailureCommand")&&_.wN(D,Z.onFailureCommand,f));T.cancel("Resolver promise rejected")});
T.then(function(Z){if(Z){var l=Z.error;if(l){if(J&&J.onServerError)J.onServerError(n,Z);y.reject(new _.cI("Response error",n,l))}else if(Z=Z.data)if(l=Z.error){if(J&&J.onServerError)J.onServerError(n,Z);y.reject(new _.cI("Returned error",n,l))}else{u$Z(D,f,Z,n);NLx(Z);if(l=YmY(Z))for(var G=_.r(l),F=G.next();!F.done;F=G.next()){F=F.value;var k=_.DY().resolve(_.Vx(mvY))||Wj;if(!_.Yl.instance||!k.some(function(z){return!!_.g(n,z)})||_.c("kevlar_response_processor_allowlist_killswitch")){var d=k=void 0;
((d=_.g((k=F)==null?void 0:k.commandMetadata,_.he))==null?0:d.sendPost)?_.HA(D,[F]):_.wN(D,[F],f)}}(G=_.g(Z==null?void 0:Z.frameworkUpdates,pT))&&H&&H(G);if(J&&J.onSuccess)J.onSuccess(n,Z);y.resolve(new _.LT(Z,l))}}else y.reject(new _.cI("Invalid service endpoint provided",n))},function(Z){y.reject(Z)});
return y.promise};
NLx=function(V){var D;(V=(D=_.g(V==null?void 0:V.onResponseReceivedCommand,_.RwU))==null?void 0:D.continuationItems)&&(V==null?void 0:V.length)===1&&_.g(V[0],CtY)&&_.zm("so_r",void 0,"search_overview_answer")};
ewx=function(V,D,f,n,t,J){var H;return(H=D.getNetworkManager&&D.getNetworkManager()?D.getNetworkManager():_.DY().resolve(_.Vx(_.RB)))?zw9(H,V,D,f,n,t,J):_.Br("No network manager.")};
u$Z=function(V,D,f,n){if(f=f.trackingParams||f.loggingDirectives&&f.loggingDirectives.trackingParams){var t;(_.g(n,qhX)||_.g(n,X3X)||_.g(n,EPY))&&n.clickTrackingParams?t=_.gs(n.clickTrackingParams):_.c("web_graft_to_parent_command")&&n.clickTrackingParams&&(t=_.gs(n.clickTrackingParams));var J;n=(J=D.getScreenLayer)==null?void 0:J.call(D);D=_.lS().graftServerVe(f,t,n);_.JR(V,"yt-store-grafted-ve-action",[D])}};
_.AKZ=function(V){var D=new Image;return new _.Qf(function(f,n){D.addEventListener("load",function(){f()});
D.addEventListener("error",function(){n()});
D.src=V})};
ayn=function(V){return!!V};
YhU=function(V){return!!V};
$vZ=function(V,D,f){var n=V.rowIndex;n!==void 0&&_.JR(V.hostElement,"yt-section-reactive-dismissal",[n,D,f])};
_.It=function(V,D,f){V=_.r(V);for(var n=V.next();!n.done;n=V.next()){n=n.value;if(n===D)break;for(var t=_.r(f),J=t.next();!J.done;J=t.next())if(J=J.value,n.tagName===J||!_.c("web_event_button_role_check_killswitch")&&n.role==="button"&&J==="BUTTON")return!0}return!1};
_.Oo=function(V,D,f){V=_.r(V);for(var n=V.next();!n.done;n=V.next()){n=n.value;if(n===D)break;for(var t=_.r(f),J=t.next();!J.done;J=t.next())if(n.id===J.value)return!0}return!1};
ibR=function(V){switch(V){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
ShR=function(V,D){if(!V&&!D)return"medium";V=Math.max(V||0,D||0);return V>=256?"large":V>=96?"medium":"small"};
Wr9=function(V){switch(V){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.hI=function(){var V=_.DY().resolve(_.Vx(_.xl));return V?(V=V.getCurrentPage())?_.Ma(V):null:null};
_.Uo=function(){var V=_.hI();if(!V){var D=_.DY().resolve(_.Vx(_.xl)),f=D?typeof D:"no page manager";D=D?D.getCurrentPage():null;f=new _.cI("Player is missing when requested.",f,D?D.tagName:"no page");_.NG(f)}return V};
_.Ma=function(V){return V&&V.getPlayer?V.getPlayer():null};
p39=function(V,D){V={args:{raw_player_response:V}};D&&(V.args=Object.assign({},V.args,D));return V};
LrZ=function(V){if(V.args){if(V.args.raw_player_response)return V.args.raw_player_response;if(V.args.player_response)return JSON.parse(V.args.player_response)}};
_.Iyd=function(V,D){var f={url:"/watch?v="+V.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};V.playlistId&&(f.url+="&list="+V.playlistId);V.playerParams&&(f.url+="&pp="+V.playerParams);V={watchEndpoint:V,commandMetadata:{webCommandMetadata:f}};D&&(V.clickTrackingParams=D);return V};
xvR=function(){return ObZ||!!_.Yw("yt.player.Application")};
hwd=function(){return My3||!!document.querySelector("link#player-css")};
V3Y=function(){function V(){ObZ=!0;UvF.resolve()}
var D,f;return _.w(function(n){UvF||(UvF=new _.wU,xvR()?V():(D=document.createElement("script"),D.addEventListener("load",V),f=_.vq(_.XB("PLAYER_JS_URL")),_.Yx(D,f),document.head.appendChild(D)));return n.return(UvF.promise)})};
f_3=function(){function V(){My3=!0;Du9.resolve()}
if(!Du9)if(Du9=new _.wU,hwd())V();else{var D=document.createElement("link");D.id="player-css";D.addEventListener("load",V);var f=_.vq(_.XB("PLAYER_CSS_URL"));_.So(D,f,"stylesheet");document.head.appendChild(D)}return Du9.promise};
nSZ=function(){return xvR()&&hwd()?Promise.resolve([]):Promise.all([V3Y(),f_3()])};
t3Y=function(V,D,f){var n={args:{}};V&&(n.args.raw_player_response=V);D&&(n.args.raw_watch_next_response=D);f&&(n.args=Object.assign({},n.args,f));return n};
rS9=function(V,D,f){var n=!1;n=n===void 0?!0:n;V=typeof V==="string"?_.V1(document,V):V;var t=PhY+"_"+_.fo(V),J=oS9[t];if(J&&n)return JSZ(D,f)?J.api.loadVideoByPlayerVars(D.args||null):J.loadNewVideoConfig(D),J.api;J=new Dt(V,t,D,f,void 0);oS9[t]=J;J.addOnDisposeCallback(function(){delete oS9[J.getId()]});
return J.api};
JSZ=function(V,D){return D&&D.serializedExperimentFlags?D.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):V&&V.args&&V.args.fflags?V.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
H2Z=function(){var V=new _.wU;V.resolved=!1;var D=V.resolve;V.resolve=function(f){V.resolved=!0;D(f)};
return V};
QsX=function(V){var D={};wMX().install((D.document_disposed={callback:V},D))};
fX=function(V,D){if(!V&&Math.random()<=_.tU("kevlar_unified_player_logging_threshold")){V=Error("zh`"+(D?D:"Unspecified error"));if(_.c("kevlar_unified_player_throw_errors"))throw V;_.zP(V)}};
_.TFZ=function(){var V=_.Yw("ytDebugData.callbacks");V||(V={},_.M4("ytDebugData.callbacks",V));return V};
KhF=function(V,D){var f=_.TFZ();if(_.c("web_dd_iu")||b2c.includes(V))f[V]=D};
yS9=function(){return _.w(function(V){return V.return({isLeader:_.ubc(_.Ol().getState()),c:_.XB("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Z2d=function(){var V;_.w(function(D){if(D.nextAddress==1)return KhF("APP_STATE",yS9),_.b(D,_.DY().resolve(_.nX),2);V=D.yieldResult;KhF("PI",function(){return _.w(function(f){return f.return(V.getVideoStats())})});
_.yz(D)})};
jsn=function(V){var D=_.OX(_.ab(_.fx.location.href));V=_.OX(_.ab(V));return _.c("kevlar_clear_non_displayable_url_params")?D==tY(V):tY(D)==tY(V)};
tY=function(V){var D=_.l_n(V);V=V.slice(0);var f=["frags"];_.c("kevlar_hide_pp_url_param")&&f.push("pp");_.c("kevlar_hide_time_continue_url_param")&&f.push("time_continue");f=_.r(f);for(var n=f.next();!n.done;n=f.next())n=n.value,V=_.Mi(_.OX(V),n);return _.OX(V)+(D?"#"+D:"")};
PW=function(V,D){D=Number(D)*1E3;var f=Math.round((0,_.VW)()),n=f.toString();V={innertubeResponse:V,serverDateTimestampMs:n,lastModifiedTimestampMs:n,expireTimestampMs:(f+D).toString()};if(D=_.XB("INNERTUBE_CONTEXT_CLIENT_NAME"))V.clientName=D;return V};
eaR=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Gdn};
_.cSF=function(){var V=_.u8(),D=_.Ni();D&&V&&_.WA(D,[V],!0)};
gSd=function(V){return V&&FhU.some(function(D){return V.includes(D)})};
uf9=function(V){var D=_.g(V,_.a2);if(!D)return!1;var f=D.url,n=D.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!f)return _.NG(Error("Eh")),!1;if(D.target==="TARGET_NEW_WINDOW"){var t={};_.c("resolve_url_parent_tracking_params")&&(!_.xw(f)||Ml(window.location.href,f))&&(t={endpoint:V,itct:V.clickTrackingParams});bEZ(t);V=null;try{if(n)return V=_.cfY(f,"_blank",t,void 0,n),vSx(_.DY().resolve(kdR),V,f),!0}catch(G){_.NG(G)}_.xo(f,t);D={target:"_blank",noopener:_.c("set_window_noopener_ks")&&
!D.allowOpener};V=window;n=Kc(f)?f:_.cS(typeof f.href!="undefined"?f.href:String(f));t=self.crossOriginIsolated!==void 0;var J="strict-origin-when-cross-origin";window.Request&&(J=(new Request("/")).referrerPolicy);var H=D.noreferrer;if(t&&H&&J==="unsafe-url")throw Error("ve");J=H&&!t;H=D.target||f.target;var Q=[],T=[],y=!1;for(l in D){var Z=D[l];switch(l){case "width":case "height":case "top":case "left":Q.push(l+"="+Z);break;case "target":break;case "noopener":case "noreferrer":Z?T.push(l):(y=!0,
T.push(l+"=false"));break;case "attributionsrc":Q.push(l+(Z?"="+Z:""));break;default:Q.push(l+"="+(Z?1:0))}}var l=H!==void 0&&!["_blank","_self","_top","_parent",""].includes(H);l=dZ()&&l;ssY&&t&&Q.length===0&&T.length>0&&!l&&!y?(T.length===2&&(T=["noreferrer"]),_.R3(V,n,H,T[0]),V=BFx()):(l=Q.join(","),_.Cx()&&V.navigator&&V.navigator.standalone&&H&&H!="_self"?(l=_.yh("A"),se(l,n),l.target=H,J&&(l.rel="noreferrer"),((D=D.attributionsrc)||D==="")&&l.setAttribute("attributionsrc",D),D=document.createEvent("MouseEvent"),
D.initMouseEvent("click",!0,!0,V,1),l.dispatchEvent(D),V=BFx()):J?(V=_.R3(V,"",H,l),D=_.y2(n),V&&(V.opener=null,D===""&&(D="javascript:''"),D='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+o7(D)+'">',D=dQ(D),(n=V.document)&&n.write&&(n.write(uv(D)),n.close()))):((V=_.R3(V,n,H,l))&&D.noopener&&(V.opener=null),V&&D.noreferrer&&(V.opener=null)));vSx(_.DY().resolve(kdR),V,f);return!0}D=_.Qx(f);D=gSd(D)||f==="https://studio.youtube.com/";n=!(!_.xw(f)||Ml(window.location.href,
f));l=f.indexOf("disable_polymer=1")>=0;if(n||l||D)id(f),uC(),_.SL(f,void 0,void 0,window.top,du3);else return _.zP(new _.cI("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",V)),!1;return!0};
_.zac=function(V,D){D=D===void 0?0:D;if(!(_.g(V,NFR)||_.g(V,muY)||_.g(V,_.a2)&&_.g(V,_.a2).url))return!1;var f,n=(f=_.g(V,_.a2))==null?void 0:f.url;f=n?{externalLinkData:{url:n}}:null;return _.lS().clickCommand(V,f,D)};
RaX=function(V,D){return _.wg(V.entities,"subscriptionStateEntity",D)};
ChZ=function(V,D){return _.wg(V.entities,"subscriptionNotificationStateEntity",D)};
q4Z=function(V,D){return _.wg(V.entities,"upcomingEventReminderStateEntity",D)};
XMc=function(V,D){return _.wg(V.entities,"engagementToolbarSurfaceEntityPayload",D)};
ESY=function(V,D){return _.wg(V.entities,"triStateButtonStateEntityPayload",D)};
AS3=function(V,D){return _.wg(V.entities,"commerceCartCheckoutButtonEntity",D)};
_.a_Y=function(V,D){return _.wg(V.entities,"playlistLoopStateEntity",D)};
Y4Y=function(V,D){return _.wg(V.entities,"commandEntity",D)};
i29=function(V,D,f,n,t){t=t===void 0?{}:t;return function(J){var H,Q;var T=((H=V.loggingDirectives)==null?0:(Q=H.clientVeSpec)==null?0:Q.uiType)?_.Bj(V.loggingDirectives.clientVeSpec.uiType):void 0;t.clickedVisualElement||(t.clickedVisualElement=T);T=$u9(V,D);f(T,J);T=_.r(T);for(H=T.next();!H.done;H=T.next()){H=H.value;Q=n;var y=J,Z=t;Z.form?Z.form.event=y:Z.form={element:Q,event:y};so(H,Z)}}};
$u9=function(V,D){var f=[];D?(V.toggledCommand&&f.push(V.toggledCommand),V.toggledServiceEndpoint&&f.push(V.toggledServiceEndpoint)):(V.defaultCommand&&f.push(V.defaultCommand),V.defaultServiceEndpoint&&f.push(V.defaultServiceEndpoint),V.defaultNavigationEndpoint&&f.push(V.defaultNavigationEndpoint));return f};
S4Y=function(V,D){var f=V.toggledStyle||V.style,n;switch((n=D?f:V.style)==null?void 0:n.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"}}};
_.JY=function(){return _.w(function(V){return V.nextAddress==1?_.b(V,_.DY().resolve(_.nX),2):V.return(_.DY().resolve(Whn)())})};
_.ra=function(){return _.DY().resolve(Whn)()};
_.HW=function(){return m0(function(){return{lottieEl:void 0}})};
pM3=function(V,D){return V.startsWith(D.uniqueId)};
Lhx=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,_.JY(),2);D=n.yieldResult;if((f=D)==null||!f.addEventListener)return wa(),n.return();D.addEventListener("onCueRangeEnter",V);_.yz(n)})};
I_d=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,_.JY(),2);D=n.yieldResult;if((f=D)==null||!f.removeEventListener)return wa(),n.return();D.removeEventListener("onCueRangeEnter",V);_.yz(n)})};
O2x=function(V){var D,f,n,t,J;_.w(function(H){if(H.nextAddress==1)return _.b(H,_.JY(),2);D=H.yieldResult;if((f=D)==null||!f.addCueRange)return wa(),H.return();n=_.r(V.timings);for(t=n.next();!t.done;t=n.next())J=t.value,D.addCueRange(V.uniqueId+"-"+J,J/1E3,(J+100)/1E3);_.yz(H)})};
xuU=function(V){var D,f,n,t,J;_.w(function(H){if(H.nextAddress==1)return _.b(H,_.JY(),2);D=H.yieldResult;if((f=D)==null||!f.removeCueRange)return wa(),H.return();n=_.r(V.timings);for(t=n.next();!t.done;t=n.next())J=t.value,D.removeCueRange(V.uniqueId+"-"+J);_.yz(H)})};
M33=function(){var V,D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.JY(),2);V=n.yieldResult;if((D=V)==null||!D.getPlayerState)return wa(),n.return();f=V.getPlayerState();return n.return(f===2)})};
wa=function(){_.zP(new _.cI("Smartimation player does not exist or is corrupted"))};
had=function(){try{var V;return(V=window.CSS)!=null&&V.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(D){return _.zP(new _.cI("Smartimation CSS.supports threw an error")),!1}};
PQZ=function(V,D,f,n,t){var J=V.playlistId?Uu9:VuL;D=D();f=f();t=!!V.videoId&&t()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Gq(D))return DxX({data:V,actionType:J,disabled:t},f);if(V.videoId&&n())return fqd({data:V,actionType:J,disabled:t});switch(D){case "TRANSFER_STATE_UNKNOWN":return fqd({data:V,actionType:J,disabled:t});case "TRANSFER_STATE_FAILED":return V.videoId?nnZ({data:V,actionType:J,disabled:t}):tuZ({data:V,actionType:J,disabled:t});case "TRANSFER_STATE_COMPLETE":return tuZ({data:V,
actionType:J,disabled:t});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return DxX({data:V,actionType:J,disabled:t},f);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return V.videoId?nnZ({data:V,actionType:J,disabled:t}):fqd({data:V,actionType:J,disabled:t});default:return fqd({data:V,actionType:J,disabled:t})}};
onZ=function(V,D){var f=V.onTapCommand,n=_.Xo(f);if(V.videoId&&_.g(n,_.Q1))return _.g(n,_.Q1).action=D,f;V.playlistId&&_.g(n,_.Tv)&&(_.g(n,_.Tv).action=D);return f};
fqd=function(V){var D=V.data;var f=V.actionType;V=V.disabled;return{text:Jgd,iconType:"OFFLINE_DOWNLOAD",onTap:onZ(D,f.ACTION_ADD),disabled:V}};
DxX=function(V,D){var f=V.data;var n=V.actionType;V=V.disabled;var t="OFFLINE_DOWNLOAD";D>=0&&D<=.1?t="OFFLINE_DOWNLOADING_ZERO":D>.1&&D<=.3?t="OFFLINE_DOWNLOADING_TWENTY":D>.3&&D<=.5?t="OFFLINE_DOWNLOADING_FORTY":D>.5&&D<=.7?t="OFFLINE_DOWNLOADING_SIXTY":D>.7&&D<1?t="OFFLINE_DOWNLOADING_EIGHTY":D===1&&(t="OFFLINE_PIN");return{text:rgR,iconType:t,onTap:onZ(f,n.ACTION_REMOVE_WITH_PROMPT),disabled:V}};
tuZ=function(V){var D=V.data;var f=V.actionType;V=V.disabled;return{text:HuL,iconType:"OFFLINE_PIN",onTap:onZ(D,f.ACTION_REMOVE_WITH_PROMPT),disabled:V}};
nnZ=function(V){var D=V.data;var f=V.actionType;V=V.disabled;return{text:w4Z,iconType:"OFFLINE_DOWNLOAD",onTap:onZ(D,f.ACTION_RETRY),disabled:V}};
KOn=function(V){var D=QwU;TG9.push(V);buY||(D(function(){for(var f=_.r(TG9),n=f.next();!n.done;n=f.next())n=n.value,n();TG9.length=0;buY=!1}),buY=!0)};
QwU=function(V){Promise.resolve().then(V)};
bf=function(V){V=_.r(Tkd(V));var D=V.next().value,f=V.next().value,n=!1;_.Nl(function(){return function(){n=!0}});
return[D,function(t){KOn(function(){n&&!_.c("cow_prevent_state_setter_after_cleanup_killswitch")||f(t)})}]};
_.KX=function(V,D){var f=o5d();return _.yT(function(){f();return Hzc(V,[_.Nq(D)||""])},void 0,"HaeHEc")};
ygd=function(V){var D=_.KX(_.CA,function(){return V().videoId}),f=_.KX(_.q_,function(){return V().playlistId});
return function(){return V().videoId?D:V().playlistId?f:_.r(_.HJ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Zux=function(V){var D=_.KX(XC,function(){return V().videoId}),f=_.KX(_.dT3,function(){return V().playlistId});
return function(){return V().videoId?D:V().playlistId?f:_.r(_.HJ(0,void 0,"K4tgOc")).next().value}};
jwY=function(V){var D=_.KX(_.EBY,function(){return V().videoId});
return function(){return V().videoId?D:_.r(_.HJ(!1,void 0,"Oaxwcf")).next().value}};
lqx=function(V){var D=_.KX(mTY,function(){return V().videoId});
return function(){return V().videoId?D:_.r(_.HJ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
GHx=function(){return{}};
esY=function(){var V,D;return(D=(V=_.DY().resolve(_.Vx(_.pm)))==null?void 0:V())!=null?D:!1};
FOx=function(V,D){V=V===void 0?cg9:V;switch(D.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},V,{isOpen:D.payload});default:return V}};
vn9=function(V,D){V=V===void 0?gnn:V;switch(D.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},V,{isAllowed:D.payload});default:return V}};
swU=function(V,D){V=V===void 0?kHZ:V;switch(D.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},V,{errorMessage:D.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},V,{title:D.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},V,{privacy:D.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},V,{isDisabled:D.payload});default:return V}};
dxU=function(V,D){V=V===void 0?BG9:V;switch(D.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},V,{isOpen:D.payload});default:return V}};
NGd=function(V,D){V=V===void 0?uaR:V;switch(D.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},V,{isFullscreen:D.payload});case "SET_NAVIGATION_BUTTON":var f=D.payload.targetId,n=Object.assign({},V.navigationButtons);n[f]=D.payload.button;return Object.assign({},V,{navigationButtons:n});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},V,{topPanelId:D.payload});case "SET_SECONDARY_HEADER":return f=D.payload.panelId,n=Object.assign({},V.secondaryHeader),n[f]=D.payload.secondaryHeader,
Object.assign({},V,{secondaryHeader:n});default:return V}};
CQY=function(){return TR(Object.assign({},{entities:HNn,voiceSearch:gcx,engagementPanel:NGd,bottomSheet:FOx,cinematicSetting:vn9,shorts:mPF,drawerLayout:dxU,createPlaylist:swU,locationCollection:mxY,reportChannel:zsZ,reportForm:Rs3},z_x))};
qKd=function(V,D){_.dm.addLowPriorityJob(function(){var f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return _.wx(J,2),_.b(J,AM3(),4);case 4:return _.b(J,fetch(V),5);case 5:return f=J.yieldResult,_.b(J,f.json(),6);case 6:n=J.yieldResult;be.set(V,n);requestAnimationFrame(function(){D(n)});
_.YJ(J,0);break;case 2:t=_.KW(J),_.zP(t),_.yz(J)}})})};
X4n=function(V){var D={animationConfig:{},listeners:{}},f=function(){V(!0)};
D.listeners.data_failed=f;D.listeners.error=f;D.listeners.data_ready=function(){V(!1)};
return D};
aqF=function(V){var D=V.model;var f=V.subscribed;var n=V.isOverlay;var t=V.element;var J=V.commandController;var H=V.notificationState;if(f){var Q,T;var y=(D==null?void 0:(Q=D.buttonStyle)==null?void 0:Q.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:D==null?void 0:(T=D.unsubscribeButtonContent)==null?void 0:T.buttonText}else{var Z;y=D==null?void 0:(Z=D.subscribeButtonContent)==null?void 0:Z.buttonText}a:{var l;switch(D==null?void 0:(l=D.buttonStyle)==
null?void 0:l.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":Q="S";break a;default:Q="M"}}a:if(n)n="overlay";else switch(D.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":n="overlay";break a;default:n="mono"}a:if(f)var G="tonal";else switch((G=D.buttonStyle)==
null?void 0:G.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":G="tonal";break a;default:G="filled"}return{style:n,type:G,state:D.disableSubscribeButton?"disabled":"active",size:Q,focused:V.focused,toggled:f,accessibilityLabel:EnF(D,f,H),buttonText:y,iconPosition:D.disableNotificationBell?"none":"leading-trailing",onTap:AgY(D,f,t,J),disableTextEllipsis:!!V.disableTextEllipsis}};
AgY=function(V,D,f,n){return function(t){if(D){var J;var H=V.disableNotificationBell?_.Xo(V==null?void 0:(J=V.unsubscribeButtonContent)==null?void 0:J.onTapCommand):_.Xo(V==null?void 0:V.onShowSubscriptionOptions)}else{var Q;H=_.Xo(V==null?void 0:(Q=V.subscribeButtonContent)==null?void 0:Q.onTapCommand)}H&&so(H,{form:{element:f==null?void 0:f.value},commandController:n});t.stopPropagation()}};
EnF=function(V,D,f){if(D){if(V==null?0:V.disableNotificationBell){var n;return V==null?void 0:(n=V.unsubscribeButtonContent)==null?void 0:n.accessibilityText}switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var t;return V==null?void 0:(t=V.bellAccessibilityData)==null?void 0:t.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var J;return V==null?void 0:(J=V.bellAccessibilityData)==null?void 0:J.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var H;return V==null?void 0:(H=
V.bellAccessibilityData)==null?void 0:H.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var Q;return V==null?void 0:(Q=V.bellAccessibilityData)==null?void 0:Q.disabledLabel;default:var T;return V==null?void 0:(T=V.unsubscribeButtonContent)==null?void 0:T.accessibilityText}}else{var y;return V==null?void 0:(y=V.subscribeButtonContent)==null?void 0:y.accessibilityText}};
YKY=function(V){if(V){switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":V="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":V="NOTIFICATIONS_OFF";break;default:V="NOTIFICATIONS_NONE"}return V}};
$x9=function(V,D,f){f.subscribed!==D&&((f=f.key)&&_.LI(_.y1("subscriptionStateEntity",f,{key:f,subscribed:D})),V.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:D})),D||_.o4(V,"yt-unsubscribe-action"))};
SKY=function(V){V=_.g(_.Xo(V),_.Zt);var D,f,n,t;return(t=_.g(V==null?void 0:(D=V.panelLoadingStrategy)==null?void 0:(f=D.inlineContent)==null?void 0:(n=f.sheetViewModel)==null?void 0:n.content,iuL))==null?void 0:t.listItems};
WO9=function(V,D){if(V.onShowSubscriptionOptions&&D&&(V=SKY(V.onShowSubscriptionOptions),V!=null&&V.length)){var f=YKY(D);V.forEach(function(n){n=_.g(n,_.jK);var t,J,H,Q,T=n==null?void 0:(t=n.leadingImage)==null?void 0:(J=t.sources)==null?void 0:(H=J[0])==null?void 0:(Q=H.clientResource)==null?void 0:Q.imageName;n&&T&&(n.isSelected=T===f)})}};
p4c=function(V,D,f,n){D&&f?V.style.width=f+"px":!D&&n&&(V.style.width=n+"px")};
LOR=function(V,D,f){var n;(n=V.lottieEl)==null||n.goToAndPlay(0);var t;(t=D.lottieEl)==null||t.goToAndPlay(0);_.lf(_.dm,function(){var J;(J=f.lottieEl)==null||J.goToAndPlay(0)},300)};
Gv=function(){return _.DY().resolve(_.Vx(IqY))||{}};
OuZ=function(V){return typeof V==="function"};
_.eK=function(V){Object.keys(V);var D=function(f,n){var t=D.mapping||V;if(!f)return _.K(_.th,null);if(Array.isArray(f)&&(f=xxY(t,D,f),Array.isArray(f))){if(!f.length)return _.K(_.th,null);if(f.length>1){for(var J=!1,H=!1,Q=[],T={},y=0;y<f.length;T={data$jscomp$1865:void 0},y++)if(T.data$jscomp$1865=f[y],T.data$jscomp$1865){var Z=MuY(T.data$jscomp$1865,t),l=Z.mappingEntry;Z=Z.rendererName;l&&Z&&(l&&(!OuZ(l)&&hsd(l)&&(H=!0),!OuZ(l)&&l.asyncId||(J=!0)),Q.push(UxY(T.data$jscomp$1865,l,Z,D,n)))}return H&&
!J?_.K(_.th,null,V7X()):_.K(_.th,null,Q)}f=f[0]}if(!f)return _.K(_.th,null);f=xxY(t,D,[f])[0];if(!f)return _.K(_.th,null);J=MuY(f,t);t=J.mappingEntry;J=J.rendererName;return t&&J?_.K(_.th,null,UxY(f,t,J,D,n)):_.K(_.th,null)};
D.mapping=V;return D};
_.DgY=function(V){var D=void 0,f;for(f in V)if(V.hasOwnProperty(f)){D=f;break}return D};
xxY=function(V,D,f){var n,t=(n=Gv().preProcessOptions)==null?void 0:n.idomOptions;if(!t)return f;Gv();return t.preProcessPropsIdom(V,f,D.triggerRerender)};
MuY=function(V,D){return(V=_.DgY(V))?{mappingEntry:D[V],rendererName:V}:{mappingEntry:void 0,rendererName:void 0}};
UxY=function(V,D,f,n,t){if(!D)return _.K(_.th,null);var J={};t&&t[f]&&(J=Object.assign({},t[f]));V[f]!==void 0&&(J.data=V[f]);if(OuZ(D))return D.debugName||(D.debugName=f),_.K(D,J);D.asyncId&&(n.pendingIdsMap=n.pendingIdsMap||{},n.pendingIdsMap[f]=D.asyncId);return D.templateFn?D.templateFn(J):hsd(D)?V7X():_.K(_.th,null)};
hsd=function(V){var D;return(D=V.showPlaceholder)!=null?D:Gv().defaultShowPlaceholder};
V7X=function(){var V=Gv().placeholder;return V()};
ffR=function(V){V=_.g(V,_.cW);return(V==null?void 0:V.iconName)&&!(V==null?0:V.title)};
PA9=function(V,D,f){var n;return _.K(_.th,null,V==null?void 0:(n=V.actions)==null?void 0:n.map(function(t){return _.K("div",{class:function(){var J={"yt-flexible-actions-view-model-wiz__action":!0};J["yt-flexible-actions-view-model-wiz__action--row-action"]=D;J["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(ffR(t))var H=!0;else if(H=_.g(t,_.FO),(H==null?0:H.isToggled)&&ffR(H==null?void 0:H.toggledButtonViewModel)||(H==null||!H.isToggled)&&ffR(H==null?void 0:H.defaultButtonViewModel))H=
!0;else{var Q;H=((Q=_.g(t,nYY))==null?0:Q.playlistId)?!0:!1}J=(J["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=H,J["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=f,J);return _.y6(J)}},t7X([t],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!D}}))}))};
oY9=function(V){var D=V.layout===1,f,n=((f=V.data)==null?void 0:f.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";f={};n=(f["yt-flexible-actions-view-model-wiz"]=!0,f["yt-flexible-actions-view-model-wiz--inline"]=!D,f["yt-flexible-actions-view-model-wiz--scrollable"]=n,f);var t,J;return _.K("yt-flexible-actions-view-model",{class:_.y6(V.className,n)},(t=V.data)==null?void 0:(J=t.actionsRows)==null?void 0:J.map(function(H){if(D){var Q;return _.K("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
PA9(H,D,!((Q=V.data)==null||!Q.respectActionIntrinsicWidth)))}return PA9(H,D,!1)}))};
JoZ=function(V,D){D=D===void 0?{shouldPersist:!0}:D;return{useUpdatableData:function(f,n){var t=[],J=_.r(_.Gk(function(){var y=f();if(n!=null&&n.length&&t){var Z=t.length>0;for(var l=!1,G=0;G<n.length;G++){var F=n[G]();Z&&F!==t[G]&&(l=!0);t[G]=F}Z=l}else Z=!1;if(Z)_.vW.remove(T());else if(Z=_.vW.get(T()))return Z;return y})),H=J.next().value,Q=J.next().value,T=_.yT(function(){return V(f())},void 0,"VFraLb");
_.BJ(function(){if(T()!=null){kC.set(T(),[H,Q,!1]);var y=T();_.dc(function(){kC.delete(y)})}},"Fdafud");
return[H,function(y){Q(y);D.shouldPersist&&_.vW.set(T(),y)}]},
getData:function(f){var n;return(n=kC.get(V(f)))==null?void 0:n[0]()},
updateData:function(f,n){f=V(f);var t=kC.get(f);if(!t)return!1;var J=_.r(t);t=J.next().value;J=J.next().value;n=n(t());J(n);D.shouldPersist&&_.vW.set(f,n);return!0},
useUpdatableDataIdom:function(f,n){var t=V(f),J=_.vW.get(t),H=_.r(bf(J!=null?J:f)),Q=H.next().value,T=H.next().value,y=z2(J!=null?J:f);_.dj(function(){if(t!=null)return kC.set(t,[function(){return y.value},
function(Z){T(Z);y.value=Z},
kC.has(t)]),_.dm.addJob(function(){_.sw(_.dm,function(){var Z=kC.get(t);Z&&(Z[2]=!1)},0)},8),function(){var Z;
((Z=kC.get(t))==null?0:Z[2])||kC.delete(t)}},[t]);
_.dj(function(){Q!==f&&(T(f),y.value=f)},n?[].concat(_.sz(n),[t]):[t]);
return[Q,T]}}};
roZ=function(V){var D=_.r(_.HJ(!0,void 0,"bKtO6d")),f=D.next().value;D.next();return function(){var n=Z9(V.children());return _.K(_.e,{cond:f,then:function(){return n},
else:V.fallback})}()};
_.BW=function(V){var D=H0c(V),f=D.data,n=D.mapping,t=D.wrapper;D=D.pendingFallback;var J=function(){return wxn(_.Nq(f))},H=function(){var Q=J(),T=[];
Q=_.r(Q);for(var y=Q.next();!y.done;y=Q.next()){var Z=void 0;y=y.value;var l=void 0;for(Z in y)if(!(!y).hasOwnProperty(Z)){l=Z;break}(Z=l)&&T.push(Z)}return T};
return V.data?_.K(roZ,{fallback:D},function(){return _.K(_.FB,{each:H},function(Q,T){var y=t?function(l){return t(function(){return n[Q](l,T)},Z,T)}:function(l){return n[Q](l,T)};
y.debugName||(y.debugName=String(Q));if(!n[String(Q)])return document.createComment("");y.componentType!==FY&&Qr9(String(Q));var Z=TnU(J,Q,T);return _.K(y,{data:Z})})}):_.K(_.th,null)};
H0c=function(V){var D=V.targetId||b03(V.children);if(!V.data||!D||_.c("mweb_new_replaceables_killswitch"))return Object.assign({},V,{mapping:V.children,wrapper:void 0});var f="stamper-"+KB9++,n=function(){var Q;return(Q=typeof V.targetId==="function"?V.targetId(f):V.targetId)!=null?Q:f};
D=_.r(yox(function(){var Q=wxn(V.data());Q.targetId=n;return Q})).next().value;
var t=Object.assign({},Gv().replaceableMapping,V.children);if(V.replacementWrapper){var J=t.notificationTextRenderer,H=t.notificationMultiActionRenderer;J&&(t.notificationTextRenderer=function(Q,T){return V.replacementWrapper(J({data:Q.data},T))});
H&&(t.notificationMultiActionRenderer=function(Q,T){return V.replacementWrapper(H({data:Q.data},T))})}return Object.assign({},V,{data:D,
mapping:t,wrapper:function(Q,T,y){return N1L({targetId:n,stamperIndex:y},Q)}})};
TnU=function(V,D,f){var n;return _.yT(function(){var t=V()[f()];if(t)n=t[D];else return _.zP(new _.cI("Stamper failed to find "+String(D)+" at index "+f()+" of data array of length "+(V().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),n;return t[D]},void 0,"wgRPHd")};
b03=function(V){V=_.r(Object.keys(V));for(var D=V.next();!D.done;D=V.next())if(D=D.value,Z0d.includes(D)||jrF.includes(D)||lfF.includes(D))return!0;return!1};
wxn=function(V){return V?Array.isArray(V)?V:[V]:[]};
Qr9=function(V){if(_.c("web_enable_renderer_logger")){var D;(D=_.DY().resolve(_.Vx(GZ3)))!=null&&D.loggingEnabled&&!D.ids.has(V)&&D.ids.add(V)}};
eZx=function(V){return!(V==null||!V.iconName||(V==null?0:V.title))};
con=function(V,D,f,n){f&&_.dm.cancelJob(f);f=_.dm.addLowPriorityJob(function(){n(void 0)},5E3);
n(f);D&&V!==(D.likeStatus==="LIKE")&&D.key&&_.LI(_.y1("likeStatusEntity",D.key,{key:D.key,likeStatus:V?"LIKE":"INDIFFERENT",hadUserInteraction:V}))};
_.FBR=function(V,D){return _.wg(V.entities,"accountLinkStatusEntity",D)};
gYn=function(V,D){return _.wg(V.entities,"hatsSurveyEntity",D)};
vYY=function(V,D){return _.wg(V.entities,"hatsSurveyStateEntity",D)};
kZY=function(V,D){return _.wg(V.entities,"quantityIncrementerEntity",D)};
srF=function(V){switch(V){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
BnF=function(V){switch(V){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}};
dgd=function(V){switch(V){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"}};
_.Nnc=function(V){var D=_.tU("web_generic_client_event_wait_period ",0);D||(D=3E5);var f=usX.get(V);!_.c("enable_web_client_experiment_event_timeout_killswitch")&&f&&(0,_.VW)()-f<D||(usX.set(V,(0,_.VW)()),_.dq("genericClientExperimentEvent",{eventType:V}))};
mg9=function(V){switch(V){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""}};
zZY=function(V){if(!V)return"";var D,f=(D=_.DY().resolve(_.Vx(_.pm)))==null?void 0:D(),n;if(!f&&((n=V.vibrantColorPalette)==null?0:n.iconInactiveColor))return Y7(V.vibrantColorPalette.iconInactiveColor,"1");var t;return f&&((t=V.darkColorPalette)==null?0:t.iconInactiveColor)?Y7(V.darkColorPalette.iconInactiveColor,"1"):V.color?Y7(V.color,"1"):V.sampledThumbnailColor?(V=V.sampledThumbnailColor,"rgba("+V.red+","+V.green+","+V.blue+");"):""};
_.da=function(V,D){if(!V.includes("DATE_PLACEHOLDER"))return V;var f=new Date(0);f.setUTCSeconds(D);return V.replace("DATE_PLACEHOLDER",RZ9(f))};
_.uf=function(V){return V!=null&&V.watch?V.watch.isTheaterMode:!1};
_.Ns=function(V){return V!=null&&V.watch?V.watch.isWatchFullscreen:!1};
_.mf=function(V){V=_.CAL(V);return _.c("web_watch_enable_single_column_grid_view")?V:!1};
_.CAL=function(V){return V.watch.isWatchNarrowWidth};
q3n=function(V,D,f){return function(n){var t=V.command;t&&(so(t,{form:{element:f}}),D([t],n))}};
EYZ=function(V,D,f,n,t){return function(J){var H=Xxx(V,D);H&&so(H,{form:{element:f},commandController:n});t&&J.stopPropagation()}};
Xxx=function(V,D){if(V.signInEndpoint&&!_.c("web_subscribe_sign_in_endpoint_killswitch"))return V.signInEndpoint;if(D){if(V.serviceEndpoints)return V.serviceEndpoints[1];if(V.onUnsubscribeEndpoints)return V.onUnsubscribeEndpoints[0]}else{if(V.serviceEndpoints)return V.serviceEndpoints[0];if(V.onSubscribeEndpoints)return V.onSubscribeEndpoints[0]}};
Aox=function(V,D){var f,n,t,J;D=D&&((f=V.unsubscribeAccessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)||((t=V.subscribeAccessibility)==null?void 0:(J=t.accessibilityData)==null?void 0:J.label);return V.longSubscriberCountText?[D,_.LA(V.longSubscriberCountText)].filter(function(H){return H}).join(" "):D};
zv=function(V,D){return D||(V==null?0:V.isChannelDelegate)?"disabled":"active"};
afx=function(V,D){var f;switch((f=V.style)==null?void 0:f.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:zv(V)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:zv(V)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:zv(V,!0)};case "OVERLAY":return D?{style:"overlay",type:"tonal",state:zv(V)}:{style:"overlay",type:"filled",state:zv(V)};default:return D?{style:"mono",type:"tonal",state:zv(V)}:{style:"mono",type:"filled",state:zv(V)}}};
Y3Y=function(V){switch(V){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
$gY=function(V){switch(V){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
i0L=function(V,D){var f=V.map(function(n){return n.toString()});
return _.jl(function(n){if(f.includes(n.key)){D&&n.preventDefault();var t;(t=n.currentTarget)==null||t.click()}})};
_.S3Z=function(){return i0L(["Enter"])};
_.WBY=function(){return i0L(["Enter"," "],!0)};
_.R7=function(V){if(V.composedPath)return V.composedPath();if(!V.__composedPath){for(var D=[],f=V.target;f;)D.push(f),f=f.parentNode;D.push(window);V.__composedPath=D}return V.__composedPath};
_.CX=function(V,D,f){V=_.r(V);for(var n=V.next();!n.done;n=V.next()){n=n.value;if(n===D)break;for(var t=_.r(f),J=t.next();!J.done;J=t.next())if(J=J.value,n.tagName===J||n.role==="button"&&J==="BUTTON")return!0}return!1};
LBR=function(V,D){var f,n=(f=D.observer)!=null?f:_.DY().resolve(Uq);if(V){f=pxU(V);var t=[];D.showOption&&t.push(n.observe(V,function(){D.visibilityCallback(!0,V)},D.showOption));
D.hideOption&&t.push(n.observe(V,function(){D.visibilityCallback(!1,V)},D.hideOption));
D.prescanOption&&D.prescanCallback&&t.push(n.observe(V,function(){D.prescanCallback()},D.prescanOption));
var J;f.visibilityMonitorKeys=((J=f.visibilityMonitorKeys)!=null?J:[]).concat(t)}};
pxU=function(V){var D;return(D=V.polymerController)!=null?D:V};
_.XO=function(V){return!!_.qs(V)};
_.Ew=function(V,D,f,n,t){return function(J){var H=_.u5x();_.BJ(function(){if(J){_.IfR(J,V(),t);var Q=_.O0c(J,V(),D,f,n,H);_.dc(Q)}},"nr377e")}};
_.IfR=function(V,D,f){var n=xgn(D),t=M7x(D);D=n&&hZZ;var J=t&&UgF;(n||t)&&LBR(V,{visibilityCallback:function(H){var Q=_.DY().resolve(_.fH);H&&n?Q.resolveCommand(n,{form:{element:f?V:void 0},disableClickTracking:!0}):!H&&t&&Q.resolveCommand(t,{form:{element:f?V:void 0},disableClickTracking:!0})},
showOption:D,hideOption:J})};
_.O0c=function(V,D,f,n,t,J){var H=new Map;if(D=_.qs(D)){var Q;V=(n==null?void 0:(Q=n.onTap)==null?void 0:Q.value)||V;f=V0R(D,V,f==null?void 0:f.onTap,t,J);V.addEventListener("click",f);H.set("click",f)}return function(){for(var T=_.r(H),y=T.next();!y.done;y=T.next()){var Z=_.r(y.value);y=Z.next().value;Z=Z.next().value;V.removeEventListener(y,Z)}}};
_.qs=function(V){var D;return(V=(D=_.g(V,Dn9))==null?void 0:D.onTap)&&_.Xo(V)};
xgn=function(V){var D;return(V=(D=_.g(V,Dn9))==null?void 0:D.onVisible)&&_.Xo(V)};
M7x=function(V){var D;return(V=(D=_.g(V,Dn9))==null?void 0:D.onHidden)&&_.Xo(V)};
V0R=function(V,D,f,n,t){var J=function(Q){_.DY().resolve(_.fH).resolveCommand(V,Q)},H=function(Q){n&&_.CX(_.R7(Q),D,n)||J(Q.target?{form:{element:Q.target,
sourceData:V,mutationContext:t}}:void 0)};
f&&(H=function(Q){f(Q,J)});
return H};
f2Y=function(V){switch(V){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}};
ng9=function(V){var D=V.numAvatarsInCluster;switch(V.clusterSize){case "small":return D===2?22:18;case "40":return D===2?24:22;default:return D===2?24:20}};
t0X=function(V,D){return function(f){var n=Object.keys(D);_.BJ(function(){if(V!=null&&V()){for(var t=_.r(n),J=t.next();!J.done;J=t.next())J=J.value,f.addEventListener(J,D[J]);_.dc(function(){for(var H=_.r(n),Q=H.next();!Q.done;Q=H.next())Q=Q.value,f.removeEventListener(Q,D[Q])})}},"bXZGfe")}};
PuY=function(V){switch(ng9(V)){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""}};
ogF=function(V){switch(V){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""}};
JyU=function(V){switch(ng9(V)){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""}};
ryY=function(V){switch(V){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""}};
HSY=function(V){switch(V){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}};
wZY=function(V){return V==="medium"||V==="48"||V==="large"||V==="extra-large"||V==="extra-extra-large"||V==="giant"};
QEd=function(V){return!!((V==null?0:V.includes(3))||(V==null?0:V.includes(5)))};
bSX=function(V){return{size:TYc(V.data.avatarImageSize),onTap:V.onTap,decorations:V.decorations||[],badgeText:V.badgeText,accessibilityText:V.accessibilityText,avatarButtonCustomClassName:V.avatarButtonCustomClassName,clusterLayoutConfig:V.clusterLayoutConfig}};
TYc=function(V){switch(V){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"}};
Kt3=function(V){switch(V){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}};
yy3=function(V){switch(V){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""}};
ZSL=function(V){var D=V.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",f,n=V.avatars&&V.avatars.length>0?(f=_.g(V.avatars[0],_.AY))==null?void 0:f.avatarImageSize:"AVATAR_SIZE_UNKNOWN";f=Kt3(n)||0;if(D){var t,J=(t=V.avatarClusterSize)!=null?t:"AVATAR_SIZE_M";D=Kt3(J);var H,Q,T=Math.min((Q=(H=V.avatars)==null?void 0:H.length)!=null?Q:0,4),y;return{avatars:((y=V.avatars)==null?void 0:y.slice(0,4))||[],avatarSizeInPx:f,avatarStackStyle:{width:D+"px",height:D+"px",position:"relative"},avatarStyle:function(l){var G=
ng9({clusterSize:TYc(J),numAvatarsInCluster:T,avatarIndex:l});var F=Kt3(J);T===3&&l===2?(F=(F-G)/2,F=(_.XB("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*F):F=void 0;return{position:"absolute",top:T===2&&l===1||T===3&&l===2||T===4&&l>=2?"0":void 0,bottom:T===2&&l===0||T>2&&l<2?"0":void 0,left:T===2&&l===1||T>2&&(l===1||l===3)?"0":void 0,right:T<=3&&l===0||T===4&&(l===0||l===2)?"0":void 0,transform:F?"translateX("+F+"px)":void 0,width:G+"px",height:G+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(l){return{clusterSize:TYc(V.avatarClusterSize),numAvatarsInCluster:T,avatarIndex:l}},
avatarButtonCustomClassName:void 0}}var Z;return{avatars:((Z=V.avatars)==null?void 0:Z.slice())||[],avatarSizeInPx:f,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:yy3(n),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
jEx=function(V,D,f){return function(){so(V,{form:{element:D},commandController:f})}};
l2Y=function(V){switch(V){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Go9=function(V){switch(V){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"}};
emX=function(V){var D=V.data;V=V.hidden===void 0?!1:V.hidden;var f={};V={class:_.y6("yt-page-indicator-view-model",(f["yt-page-indicator-view-model__indicator--hidden"]=!D.indicatorCount,f)),hidden:V};if(D.indicatorCount){f=[];for(var n=0;n<D.indicatorCount;n++){var t={};t=_.y6("yt-page-indicator-view-model__indicator",(t["yt-page-indicator-view-model__indicator--selected"]=D.selectedIndex===n,t));f.push(_.K("div",{class:t}))}D=_.K(_.th,null,f)}else D=_.K(_.th,null);return _.K("yt-page-indicator-view-model",
V,D)};
Ft9=function(V){V&&(cyn(V)?delete V.inlinePlayerData:"inlinePlaybackEndpoint"in V&&delete V.inlinePlaybackEndpoint)};
ggZ=function(V){if("accessibilityText"in V)return V.accessibilityText||"";if("title"in V){var D,f,n;return((D=V.title)==null?void 0:(f=D.accessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)||""}if("accessibility"in V){var t,J;return((t=V.accessibility)==null?void 0:(J=t.accessibilityData)==null?void 0:J.label)||""}return""};
cyn=function(V){return"inlinePlayerData"in V};
a7=function(V){return new vgd(V)};
koZ=function(V){var D=V.data;V=_.jl(function(){var t=_.g(D.onTap,_.q3);t&&_.DY().resolve(_.fH).resolveCommand(t);return!1});
var f={sources:[{url:D.thumbnailUrl,width:120,height:90}]},n=D.rating&&D.ratingA11yLabel&&D.reviewsCount&&D.reviewsCountA11yLabel;return _.K("place-data-view-model",null,D.placeName&&D.placeCategory?_.K("div",{class:"yt-spec-place-data-view-model-shape","on:click":V},_.K(_.xt,{data:f,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.K(_.YC,{className:"yt-spec-place-data-view-model-shape__place-link",command:D.onTap},_.K("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:D.placeName},D.placeName)),_.K("div",{class:"yt-spec-place-data-view-model-shape__metadata"},n?_.K("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.K("span",{class:"score",title:D.ratingA11yLabel},D.rating),_.K("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.K(_.cj,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.K("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:D.reviewsCountA11yLabel},D.reviewsCount)):_.K("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.K("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.K("span",{class:"category",title:D.placeCategory},D.placeCategory)))):null)};
sEn=function(V){return function(D){V&&(V.thumbnailElRef=D.thumbnailElRef,V.thumbnail=D.thumbnail,V.thumbnailOverlays=D.thumbnailOverlays,V.thumbnailSize=D.thumbnailSize)}};
BYU=function(V){var D;return(D=V.sharedUi)==null?void 0:D.animatedThumbnailEnabled};
dnX=function(V){var D;return(D=V.sharedUi)==null?void 0:D.inlinePreviewEnabled};
_.uxY=function(V){var D;return(D=V.sharedUi)==null?void 0:D.currentPageSubType};
NYF=function(V){switch(V){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"}};
zmZ=function(V){var D=_.r(_.HJ(!1,void 0,"RIOonf")),f=D.next().value,n=D.next().value;_.Nl(function(){var t=V==null?void 0:V();if(t){var J=_.DY().resolve(_.Vx(mn9));if(J){var H={triggeringElement:t,onDwellTriggeredFn:function(){n(!0)},
onDwellEndFn:function(){n(!1)}};
J.registerElement(H);_.dc(function(){_.$C(J,H)})}}});
return f};
RmY=function(V,D,f){f?f(D):_.Yt(D,V.target?{form:{element:V.target}}:void 0)};
_.SK=function(V,D,f,n){_.BJ(function(){var t=V.value;if(t){var J=new Map,H,Q=(H=D())==null?void 0:H.onTap;Q&&(H=function(T){a:{var y=T.composedPath();y=_.r(y);for(var Z=y.next();!Z.done;Z=y.next()){Z=Z.value;if(Z===t)break;if(Z.className.indexOf("HostIsClickableAdComponent")>=0||Z.tagName==="A".toString()||Z.tagName==="BUTTON".toString()){y=!0;break a}}y=!1}y||RmY(T,Q,f)},(n==null?0:n())||_.c("enable_web_home_top_landscape_image_layout_level_click")?(t.addEventListener("tap",H),J.set("tap",H)):(t.addEventListener("click",
H),J.set("click",H)));
_.dc(function(){for(var T=_.r(J),y=T.next();!y.done;y=T.next()){var Z=_.r(y.value);y=Z.next().value;Z=Z.next().value;t.removeEventListener(y,Z)}})}},"g9MHN")};
Cud=function(V,D){var f,n=(f=V.interaction)==null?void 0:f.onTap;if(V=_.A2({elementsCommand:n,forceNewState:!0,skipOnClick:!0}))return V.onclick=function(t){dOY(t)&&(t.preventDefault(),n&&RmY(t,n,D))},a5(V)?V:void 0};
qAx=function(V){switch(V){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
XZ3=function(V){switch(V){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"}};
EgL=function(V){switch(V){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"}};
_.Ayn=function(V){return _.c("rich_grid_enable_dynamic_offset")&&V?Math.max(Math.round((V-_.tU("rich_grid_dynamic_offset_anchor_width",1300))/100*_.tU("rich_grid_dynamic_offset_offset_per_100",10)),_.tU("rich_grid_dynamic_offset_lower_bound",-60)):0};
a2F=function(V,D){switch(D){case 4:return 16;case 1:return V<528?16:V<1024?32:48;case 2:return(V>=528?16:8)/2;case 3:return(V<528?16:V<1024?32:48)+(V>=528?16:8)/2;default:return 0}};
YAZ=function(V){var D=V.originalContainerWidth;var f=V.sizing;var n=V.standardUnit;if(V.isCompactList&&D<528)return 1;switch(f){case "STANDARD":return n;case "COMPACT":return n+1;case "EXTRA_COMPACT":return _.c("web_responsive_extra_compact_2x")?n*2:_.c("web_responsive_current")?n===1?2:n%2===0?n/2*3:n+2:n<4?n*2:Math.ceil(n*3/2);case "MINI":return n>1?n*2:3;default:return n}};
iSc=function(V){var D=V.containerWidth;var f=V.peek;var n=V.gutter;var t=V.numItems;V=V.ignoreMaxWidthLimit;D=f?Math.max((D-f-n*t)/t,0):Math.max((D-n*(t-1))/t,0);return V?D:Math.min(D,$nL)};
_.WW=function(V){var D=V.containerWidth;var f=V.hasPeek;var n=V.sizing;var t=V.marginSettings;var J=V.isCompactList;var H=V.enableFullBleedForSingleCol;var Q=V.standardUnitMinWidth;n=n||"STANDARD";f=!!f;V=D>=528?16:8;var T=f?D>=528?48:24:0;t=a2F(D,t);var y=Math.max(D-t*2,0);Q=_.c("kevlar_disable_min_width_override")?void 0:Q;Q=Math.min(Math.max(Math.floor((y-T+V)/((Q!=null?Q:SAZ)+_.Ayn(D)+V)),1),6);var Z=(H=!!H&&Q===1)||Q===1&&n!=="STANDARD";f=f||Z?y:Math.min(y,($nL+V)*Q-V);n=YAZ({originalContainerWidth:D,
sizing:n,standardUnit:Q,isCompactList:J});return{itemWidth:iSc({containerWidth:f,peek:T,gutter:V,numItems:n,ignoreMaxWidthLimit:Z}),gutter:V,maxContainerWidth:f,numItems:n,margin:H?0:t,contentMargin:a2F(D,1),typographyBump:iSc({containerWidth:f,peek:T,gutter:V,numItems:Q,ignoreMaxWidthLimit:Z})>400&&!(J&&D<528),standardUnit:Q}};
WtZ=function(V){switch(V){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.pZd=function(V){if(V){var D;if((D=V.responsiveContainerConfiguration)==null?0:D.responsiveSize)return WtZ(V.responsiveContainerConfiguration.responsiveSize);if(V.layoutSizing)switch(V.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"}}};
Ltd=function(V){if(V.fullbleed)return 1;switch(V.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
M0Z=function(V,D,f,n,t,J,H,Q){a:if(V===4&&n==="LOCKUP_CONTENT_TYPE_SOURCE")var T=1;else switch(V){case 3:T=1;break a;default:T=0}a:switch(V){case 4:J=!!(J&&J<100);break a;default:J=!1}a:switch(V){case 3:case 4:var y=n==="LOCKUP_CONTENT_TYPE_CHANNEL"||n==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:y=!1}a:switch(V){case 5:var Z=!0;break a;case 4:Z=!1;break a;default:Z=!1}return{isOverlay:Z,isCard:I2n(n,H),sizing:D!=null?D:"STANDARD",typographyBump:f!=null?f:!1,isTiny:J,isCentered:y,isCollection:OSd(n),
arrangement:T,addMarginForFullbleed:V===1&&n!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:V===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:xnY(n,t,Q),disableRounding:V===5||I2n(n,H)||V===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:OSd(n)?2:0,useLegacyTypography:!(Q==null||!Q.useLegacyTypography),useRichGridLegacyTypography:!(Q==null||!Q.useRichGridLegacyTypography)&&!_.c("web_enable_typography_bump"),compactMetadata:T===0&&n==="LOCKUP_CONTENT_TYPE_VIDEO"}};
OSd=function(V){switch(V){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}};
I2n=function(V,D){if(D&&V==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(V){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
xnY=function(V,D,f){if(D&&(f==null||!f.alwaysRespectPodcastShowAspectRatio||V!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(V){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}};
hmX=function(V){switch(V){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"}};
Un9=function(V){switch(V){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
VrX=function(V){switch(V){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}};
_.pX=function(V){if(V){var D;return((D=_.DY().resolve(_.Vx(_.pm)))==null?0:D())?V.darkThemeImage:V.image}};
nUd=function(V,D,f,n,t,J){if(t&&J&&D==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:t,height:J};if(!f)return{};t=f.size;f=f.allowFullWidth;if(D==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&f)return{fullWidth:!0};if(t===void 0)return{};switch(V){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:t,height:t};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:t,height:1/DSU*t};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:t*
fj9,height:t};default:return(n==null?0:n.height)&&(n==null?0:n.width)?n.width/n.height>1?{maxWidth:t*fj9}:{maxWidth:t}:{maxWidth:t}}};
trY=function(V){var D;return V&&((D=_.pX(V.themedImage))!=null?D:V.image)};
PZ9=function(V){var D;return V==null?void 0:(D=V.sources)==null?void 0:D[0]};
oUY=function(V){switch(V){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"}};
JwU=function(V){switch(V.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"}}};
rwY=function(V){var D=_.uxY(_.pI().getState())||"";return V?V+D:""};
HKc=function(V){switch(V){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
QgU=function(V){var D=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],f=_.r(_.HJ(void 0,void 0,"JrqNsb")),n=f.next().value,t=f.next().value,J=_.r(_.HJ(void 0,void 0,"rWytse"));f=J.next().value;var H=J.next().value;J=_.r(_.HJ(void 0,void 0,"DHRqxe"));var Q=J.next().value,T=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:n,pointerDownEvent:f,pointerLeaveEvent:Q},touchFeedbackOnPointerUp:_.jl(function(y){waX(_.R7(y),D)||(t(y),H(void 0),T(void 0))}),
touchFeedbackOnPointerDown:_.jl(function(y){V==null||V(y);waX(_.R7(y),D)||(H(y),t(void 0),T(void 0))}),
touchFeedbackOnPointerLeave:_.jl(function(y){waX(_.R7(y),D)||(T(y),H(void 0),t(void 0))})}};
waX=function(V,D){D=D===void 0?[]:D;D=[].concat(_.sz(D),["BUTTON".toString()]);V=_.r(V);for(var f=V.next();!f.done;f=V.next()){f=f.value;for(var n=_.r(D),t=n.next();!t.done;t=n.next())if(f.tagName===t.value)return!0}return!1};
TB3=function(V){switch(V){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"}};
bKn=function(V){return V.scrollHeight-V.offsetHeight>1};
K2R=function(V,D){var f;return Wr(V,((f=V.content)==null?void 0:f.length)||0,!D)};
ywX=function(V,D){D=K2R(V,D);var f,n;return(((f=V.content)==null?void 0:f.length)||0)>(((n=D.content)==null?void 0:n.length)||0)};
jg9=function(V,D,f,n,t,J){if(!D||LX){var H;return Wr(V,((H=V.content)==null?void 0:H.length)||0,!0)}D=n.value;if(!f.value||!D||!V.content)return V;f=0;n=V.content.length;H=0;ZKn||(ZKn=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Q=ZKn;for(t=t*J*Q;f<=n;)J=Math.floor(f+(n-f)/2),Q=Wr(V,J)||V,D.firstChild&&(D.firstChild.textContent=Q.content),D.scrollHeight>t?n=J-1:(H=J,f=J+1);return Wr(V,H)};
lj9=function(V,D){var f,n;return(((f=V.content)==null?void 0:f.length)||0)>(((n=D.content)==null?void 0:n.length)||0)};
GQL=function(V){var D=V.isTruncated;var f=V.isAbsoluteButton;var n=V.lineHeight;var t=V.contentRef.value,J=V.placeholderTruncationTextRef.value,H=V.truncationTextRef.value;V=V.appDirection==="rtl";if(t&&J){var Q=J.offsetLeft;V&&(Q=t.offsetWidth-J.offsetWidth-J.offsetLeft);if(D){D=J.offsetWidth;J=t.offsetWidth;var T=f?J-D-70:Q-70;n="linear-gradient(\n      to top, transparent 0%,\n      transparent "+n+"rem,\n      #000 "+n+"rem,\n      #000 100%), linear-gradient(\n      to "+((V?"left":"right")+
",\n      #000 0px,\n      #000 "+T+"px,\n      transparent "+(f?J-D:T+70)+"px)");t.style.setProperty("-webkit-mask-image",n);t.style.setProperty("mask-image",n)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");f?V?(H.style.setProperty("left","0"),H.style.setProperty("right","unset")):(H.style.setProperty("left",""),H.style.setProperty("right","0")):V?(H.style.setProperty("left","unset"),H.style.setProperty("right",Q+"px")):(H.style.setProperty("left",Q+"px"),
H.style.setProperty("right","unset"))}};
eMZ=function(V,D,f,n,t){var J=_.W2("truncated-text-content"),H=_.W2("truncated-text-content"),Q=_.W2("button"),T=_.W2("button"),y=_.W2("button"),Z=_.DY().resolve(_.I5),l=_.r(bf(K2R(V,t))),G=l.next().value,F=l.next().value;l=_.r(bf(_.c("enable_truncated_text_max_lines")?lj9(V,G):ywX(V,t)));var k=l.next().value,d=l.next().value,z=z2(null);_.dj(function(){function C(){if(J.value&&Q.value&&y.value)if(_.c("enable_truncated_text_max_lines")){var W=jg9(V,t,J,H,D,f);F(W);n||requestAnimationFrame(function(){if(J.value&&
Q.value&&y.value){var I=bKn(J.value)||lj9(V,W);d(I);GQL({isTruncated:I,isAbsoluteButton:bKn(J.value),lineHeight:f,contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z})}})}else F(K2R(V,t)),requestAnimationFrame(function(){if(J.value&&Q.value&&y.value)if(bKn(J.value))d(!0),n||GQL({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:f,contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z});else{var I=ywX(V,t);d(I);n||GQL({isTruncated:I,isAbsoluteButton:!1,lineHeight:f,contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z})}})}
var A,O;(A=z.value)==null||(O=A.stop)==null||O.call(A);A=new _.I7(C,17);C();z.value=A},[V.content,
D,f,Z,n,t]);_.Nl(function(){var C=function(){ZKn=void 0;var O,W;(O=z.value)==null||(W=O.fire)==null||W.call(O)};
if(window.ResizeObserver){var A=new ResizeObserver(C);A.observe(J.value);return function(){var O,W;(O=z.value)==null||(W=O.stop)==null||W.call(O);A.disconnect()}}window.addEventListener("resize",C);
return function(){var O,W;(O=z.value)==null||(W=O.stop)==null||W.call(O);window.removeEventListener("resize",C)}});
return{isTruncated:k,displayText:G,contentRef:J,hiddenRef:H,placeholderTruncationTextRef:Q,hiddenTruncationTextRef:T,truncationTextRef:y}};
cwn=function(V){var D=V.text;var f=V.alwaysShowTruncationText;var n=V.truncationText;var t=V.onTextClick;var J=V.maxLines===void 0?2:V.maxLines;var H=V.disableTextMask===void 0?!1:V.disableTextMask;var Q=V.textStyle===void 0?"default":V.textStyle;var T=V.accessibilityLabel===void 0?"":V.accessibilityLabel;var y=V.textSize===void 0?"small":V.textSize;var Z=V.alwaysTruncateAtMaxLines===void 0?!1:V.alwaysTruncateAtMaxLines;var l=V.expandOnClick===void 0?!1:V.expandOnClick;V=_.r(bf(!1));var G=V.next().value,
F=V.next().value;V=_.jl(function(){l&&F(!G);t==null||t()});
a:switch(y){case "medium":var k=2;break a;case "large":k=2.2;break a;default:k=1.8}var d=eMZ(D,G?Infinity:J,k,H,Z),z=d.isTruncated;D=d.displayText;Z=d.contentRef;var C=d.hiddenRef,A=d.placeholderTruncationTextRef,O=d.hiddenTruncationTextRef;d=d.truncationTextRef;var W={};f=_.y6((W["truncated-text-wiz__absolute-button"]=!H,W["truncated-text-wiz__bottom-button"]=H,W["truncated-text-wiz--hidden"]=!(!G&&(f||z)),W));H={};Q=_.y6((H["truncated-text-wiz"]=!0,H["truncated-text-wiz--overlay"]=Q==="overlay",
H["truncated-text-wiz--medium-text"]=y==="medium",H["truncated-text-wiz--large-text"]=y==="large",H["truncated-text-wiz--primary-text"]=Q==="primary-text",H));y={};y=_.y6((y["truncated-text-wiz__truncated-text-content"]=!0,y["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,y));return _.K("truncated-text",{class:Q,"on:click":V,style:"line-height: "+k+"rem;"},_.K("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:Z,style:G?"":"max-height: "+J*k+"rem;"},
_.K(_.Ow,{text:D}),_.K("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:A,style:"line-height: "+k+"rem;"},_.K(_.Ow,{text:n}))),_.K("truncated-text-content",{class:y,el:C,style:G?"":"max-height: "+J*k+"rem;","aria-hidden":"true"},_.K(_.Ow,{text:D}),_.K("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:O,style:"line-height: "+k+"rem;"},_.K(_.Ow,{text:n}))),_.K("button",{"aria-label":T,class:f,el:d,style:"line-height: "+k+"rem;"},
_.K(_.Ow,{text:n})))};
F2n=function(V){return V.scrollHeight-V.offsetHeight>1};
gUZ=function(V,D){var f;return Wr(V,((f=V.content)==null?void 0:f.length)||0,!D)};
vUZ=function(V,D){D=gUZ(V,D);var f,n;return(((f=V.content)==null?void 0:f.length)||0)>(((n=D.content)==null?void 0:n.length)||0)};
sgd=function(V,D,f,n,t,J){if(!D||LX){var H;return Wr(V,((H=V.content)==null?void 0:H.length)||0,!0)}D=n.value;if(!f.value||!D||!V.content)return V;f=0;n=V.content.length;H=0;kQd||(kQd=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Q=kQd;for(t=t*J*Q;f<=n;)J=Math.floor(f+(n-f)/2),Q=Wr(V,J)||V,D.firstChild&&(D.firstChild.textContent=Q.content),D.scrollHeight>t?n=J-1:(H=J,f=J+1);return Wr(V,H)};
BBx=function(V,D){var f,n;return(((f=V.content)==null?void 0:f.length)||0)>(((n=D.content)==null?void 0:n.length)||0)};
dSx=function(V){var D=V.isTruncated;var f=V.isAbsoluteButton;var n=V.lineHeight;var t=V.contentRef.value,J=V.placeholderTruncationTextRef.value,H=V.truncationTextRef.value;V=V.appDirection==="rtl";if(t&&J){var Q=J.offsetLeft;V&&(Q=t.offsetWidth-J.offsetWidth-J.offsetLeft);if(D){D=J.offsetWidth;J=t.offsetWidth;var T=f?J-D-70:Q-70;n="linear-gradient(\n      to top, transparent 0%,\n      transparent "+n+"rem,\n      #000 "+n+"rem,\n      #000 100%), linear-gradient(\n      to "+((V?"left":"right")+
",\n      #000 0px,\n      #000 "+T+"px,\n      transparent "+(f?J-D:T+70)+"px)");t.style.setProperty("-webkit-mask-image",n);t.style.setProperty("mask-image",n)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");f?V?(H.style.setProperty("left","0"),H.style.setProperty("right","unset")):(H.style.setProperty("left",""),H.style.setProperty("right","0")):V?(H.style.setProperty("left","unset"),H.style.setProperty("right",Q+"px")):(H.style.setProperty("left",Q+"px"),
H.style.setProperty("right","unset"))}};
u8L=function(V,D,f,n,t){var J=_.W2("truncated-text-content"),H=_.W2("truncated-text-content"),Q=_.W2("button"),T=_.W2("button"),y=_.W2("button"),Z=_.DY().resolve(_.I5),l=_.r(_.Gk(function(){return gUZ(V(),t())})),G=l.next().value,F=l.next().value;
l=_.r(_.Gk(function(){return _.c("enable_truncated_text_max_lines")?BBx(V(),G()):vUZ(V(),t())}));
var k=l.next().value,d=l.next().value,z=null;_.BJ(function(){function C(){if(J.value&&Q.value&&y.value)if(_.c("enable_truncated_text_max_lines")){var W=sgd(V(),t(),J,H,D(),f());F(W);n()||requestAnimationFrame(function(){if(J.value&&Q.value&&y.value){var I=F2n(J.value)||BBx(V(),W);d(I);dSx({isTruncated:I,isAbsoluteButton:F2n(J.value),lineHeight:f(),contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z})}})}else F(gUZ(V(),t())),requestAnimationFrame(function(){if(J.value&&Q.value&&
y.value){var I=V();
D();var x=f(),oY=n(),wZ=t();F2n(J.value)?(d(!0),oY||dSx({isTruncated:!0,isAbsoluteButton:!0,lineHeight:x,contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z})):(I=vUZ(I,wZ),d(I),oY||dSx({isTruncated:I,isAbsoluteButton:!1,lineHeight:x,contentRef:J,placeholderTruncationTextRef:Q,truncationTextRef:y,appDirection:Z}))}})}
var A,O;(A=z)==null||(O=A.stop)==null||O.call(A);A=new _.I7(C,17);C();z=A},"EujZId");
_.Nl(function(){F(gUZ(V(),t()));d(_.c("enable_truncated_text_max_lines")?BBx(V(),G()):vUZ(V(),t()));var C=function(){kQd=void 0;var O,W;(O=z)==null||(W=O.fire)==null||W.call(O)};
if(window.ResizeObserver){var A=new ResizeObserver(C);A.observe(J.value);_.dc(function(){var O,W;(O=z)==null||(W=O.stop)==null||W.call(O);A.disconnect()})}else window.addEventListener("resize",C),_.dc(function(){var O,W;
(O=z)==null||(W=O.stop)==null||W.call(O);window.removeEventListener("resize",C)})});
return{isTruncated:k,displayText:G,contentRef:J,hiddenRef:H,placeholderTruncationTextRef:Q,hiddenTruncationTextRef:T,truncationTextRef:y}};
_.NB9=function(V,D,f,n,t,J){var H=function(y){y.preventDefault()},Q=function(){var y=V.value;
if(y)return(y._data=D)?(y.addEventListener("touchstart",zEL,{passive:!0}),y.addEventListener("click",CrL),D.clickTrackingParams&&(y.params={itct:D.clickTrackingParams}),q$F(y,D),se(y,Xp9(D)||"")):y.addEventListener("click",H),function(){D?(y.removeEventListener("touchstart",zEL,{passive:!0}),y.removeEventListener("click",CrL)):y.removeEventListener("click",H)}},T=function(){var y=V.value;
if(y){var Z=_.A2({innertubeCommand:D,elementsCommand:f,forceNewState:n,stopPropagation:J});if(Z)return y._data=Z._data,Z["aria-haspopup$"]&&y.setAttribute("aria-haspopup",Z["aria-haspopup$"].toString()),Z["force-new-state$"]&&y.setAttribute("force-new-state",Z["force-new-state$"].toString()),Z.href$&&se(y,Z.href$),Z.rel$&&(y.rel=Z.rel$),Z.role$&&y.setAttribute("role",Z.role$),Z.target$&&(y.target=Z.target$),y.params=Z.params,Z.onclick&&y.addEventListener("click",Z.onclick),Z.onpointerdown&&y.addEventListener("onpointerdown",
Z.onpointerdown),function(){Z.onclick&&y.removeEventListener("click",Z.onclick);Z.onpointerdown&&y.removeEventListener("onpointerdown",Z.onpointerdown)}}};
_.dj(t?T:Q,[D,f])};
mSU=function(V){var D=V.children;var f=V.className;var n=V.dir;var t=V.style;var J=V.role;var H=V.ariaSelected;var Q=V.ariaLabel;var T=V.ariaHidden;var y=V.ariaLabelledby;var Z=V.ariaDescribedby;var l=V.command;var G=V.elementsCommand;var F=V.forceNewState;var k=V.isPlaceholder;var d=V.tabIdentifier;var z=V.target;var C=V.tabIndex;var A=V.useATagConfig;var O=V.stopPropagation;V=_.W2("a");_.NB9(V,l,G,F,A,O);return _.K("a",{el:V,"on:click":_.jl(function(){return O===!1}),
class:f,style:t,dir:n,role:J?J:l?void 0:"group","aria-hidden":T?!0:void 0,"aria-label":Q,"aria-labelledby":y,"aria-describedby":Z,"aria-selected":H,tabindex:C!==void 0?C:void 0,target:z,"tab-identifier":d,"force-new-state":F?!0:void 0,"is-placeholder":k?!0:void 0},D)};
zMF=function(V){return{content:V!=null?V:""}};
RML=function(V){return _.Xo(V.onTap)||_.qs(V.rendererContext)};
XaX=function(V){var D=V.data;V={class:V.className};a:switch(D.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var f="yt-video-attribute-view-model--vertical";break a;default:f="yt-video-attribute-view-model--horizontal"}a:switch(D.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var n="yt-video-attribute-view-model--image-small";break a;default:n="yt-video-attribute-view-model--image-large"}a:switch(D.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var t="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":t="yt-video-attribute-view-model--image-avatar";break a;default:t=""}a:switch(D.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var J="yt-video-attribute-view-model--metadata-header";break a;default:J=""}a:switch(D.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var H="yt-video-attribute-view-model--container-card";break a;default:H=""}f=["yt-video-attribute-view-model",f,n,t,J,H,RML(D)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(D.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Q="";else n=D.lightColorPalette,t=D.darkColorPalette,J=((Q=_.DY().resolve(_.Vx(_.pm)))==null?0:Q())&&t?t:n,Q=(Q=J==null?void 0:J.section2Color)?_.aB(Q):"";return _.K("yt-video-attribute-view-model",V,_.K("div",{class:f,style:_.el({"background-color":Q})},RML(D)||!_.c("web_video_attribute_view_model_a11y_fix")?_.K(mSU,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:RML(D),
role:"group",ariaLabel:D.title,forceNewState:!0},D.heroText||D.image?_.K(CZ9,{data:D}):null,_.K(qaR,{data:D,sizeSmall:D.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.K("div",{class:"yt-video-attribute-view-model__content-container"},D.heroText||D.image?_.K(CZ9,{data:D}):null,_.K(qaR,{data:D,sizeSmall:D.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
EUX=function(V){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:V.overflowMenuA11yLabel,onTap:function(D){D.preventDefault();D.stopPropagation();if(V.overflowMenuOnTap){var f=_.A2({elementsCommand:V.overflowMenuOnTap,forceNewState:!0});if(f==null?0:f.onclick)f.onclick(D)}}}};
CZ9=function(V){V=V.data;var D,f=((D=_.DY().resolve(_.Vx(_.pm)))==null?0:D())&&V.darkThemeImage?V.darkThemeImage:V.image;D=EUX(V);return _.K("div",{class:"yt-video-attribute-view-model__hero-section"},f?_.K(_.xt,{data:f,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):V.heroText?_.K("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.K("span",{class:"yt-video-attribute-view-model__hero-text"},V.heroText)):null,V.overflowMenuOnTap?
_.K("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.K(xC,{data:D,iconName:"MORE_VERT"})):null)};
qaR=function(V){var D=V.data;V=V.sizeSmall;var f=D.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",n=RML(D);n=_.A2({innertubeCommand:n});n=a5(n);var t={};V={class:_.y6("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=V,t)),role:n?"link":"group"};n=_.K("h1",{class:"yt-video-attribute-view-model__title"},D.title);f=D.subtitle?_.K("h4",{class:"yt-video-attribute-view-model__subtitle"},f?_.K(AwR,{text:zMF(D.subtitle),truncationText:zMF(D.subtitleTruncationText),
maxLines:2}):_.K("span",null,D.subtitle)):null;if(D.secondarySubtitle){t=D.secondarySubtitle;if(t!=null&&t.attachmentRuns){for(var J=[],H=_.r(t.attachmentRuns),Q=H.next();!Q.done;Q=H.next())Q=Q.value,Q.element&&J.push(Object.assign({},Q,{element:Object.assign({},Q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));t=Object.assign({},t,{attachmentRuns:J})}t=_.K("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.K(_.Ow,{text:t}))}else t=null;return _.K("div",V,n,f,t,D.buttonViewModel?aj9(D.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
YaR=function(V){return{content:V!=null?V:""}};
$SY=function(V){return _.Xo(V.onTap)||_.qs(V.rendererContext)};
iKR=function(V){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:V.overflowMenuA11yLabel,onTap:function(D){D.preventDefault();D.stopPropagation();if(V.overflowMenuOnTap){var f=_.A2({elementsCommand:V.overflowMenuOnTap,forceNewState:!0});if(f==null?0:f.onclick)f.onclick(D)}}}};
_.hY=function(V,D,f,n,t){n=n===void 0?{}:n;if(!t||Math.random()<5E-4){D=D||null;f=f||null;V=V instanceof Error?V:new _.cI(V);if(V.args)for(var J=_.r(V.args),H=J.next();!H.done;H=J.next())H=H.value,H instanceof Object&&(n=Object.assign({},H,n));n.category="H5 Ads Control Flow";D&&(n.slot=D?"slot:  "+D.slotType:"");f&&(n.layout=f?"layout:  "+f.layoutType:"",n.layoutId=f.layoutId);t&&(n.known_error_aggressively_sampled=!0);V.args=[n];_.zP(V)}};
_.Sa9=function(V,D){_.o4(V,"yt-open-popup-action",[_.M_(D),V])};
_.Uw=function(V,D){_.Sa9(V,_.pA(D))};
pa9=function(V){if(!V)return"";if(W2d[V])return W2d[V];Vw||(Vw=_.yh("A"));Vw.href!==V&&se(Vw,V);var D=Vw.pathname;W2d[V]=D.startsWith("/")?D:"/"+D;return W2d[V]};
L29=function(){var V=pa9(window.location.href);if(V==="/")return"home";if(V.startsWith("/results"))return"search";if(V.startsWith("/watch"))return"watch";if(V.startsWith("/shorts"))return"shorts";if(V.startsWith("/hashtag"))return"hashtag";if(V.startsWith("/create_channel"))return"create_channel";if(V.startsWith("/@")||V.startsWith("/user/")||V.startsWith("/channel/"))return"channel";if(V.startsWith("/experiments"))return"experiments";if(V.startsWith("/sponsor_channel"))return"sponsorship";if(V.startsWith("/select_site"))return"settings";
if(V.startsWith("/locate"))return"locate";if(V.startsWith("/redeem"))return"redeem";if(V.startsWith("/musicpremium")||V.startsWith("/premium")||V.startsWith("/red"))return"premium";if(V.startsWith("/paid_memberships"))return"paid_memberships";if(V.startsWith("/oops"))return"oops";if(V.startsWith("/clip"))return"clip";var D;return(Dr==null?void 0:(D=Dr.response)==null?void 0:D.page)==="404"?"404":V.startsWith("/feed/history")?"history":V.startsWith("/feed/library")?"library":V.startsWith("/feed/subscriptions")?
"subscriptions":V.startsWith("/feed/trending")?"trending":V.startsWith("/feed/news_destination")?"news":V.startsWith("/playlist")?"playlist":V.startsWith("/minor_moment")?"minor_moment":V.startsWith("/playable/")||V.match("^/playables/(?!saved).")?"mini_app":V.startsWith("/playables")?"playables":V.startsWith("/create/live/join")?"open_in_app":V.startsWith("/feed/explore")?"explore":"browse"};
_.MrU=function(){var V=Dr==null?void 0:Dr.response,D=V==null?void 0:V.endpoint;if(!D)return(V==null?void 0:V.page)==="watch"?"watch":L29();var f;V=(f=_.g(D==null?void 0:D.commandMetadata,_.he))==null?void 0:f.webPageType;f=!1;if(V&&!Ijc.includes(V))switch(V){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 n;return((n=_.g(D==null?void 0:D.commandMetadata,_.he))==null?0:n.url)&&pa9(_.g(D.commandMetadata,_.he).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var t;return(D=(t=_.g(D,_.jL))==null?void 0:t.browseId)?OKx[D]||"browse":"browse";default:f=!0}if(_.g(D,_.fL)||_.g(D,xSR))return"sponsorship";t=pa9(window.location.href);if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/create_channel"))return"create_channel";
if(_.g(D,_.a2)&&t.startsWith("/shorts"))return"shorts";if(_.g(D,_.a2)&&t.startsWith("/watch"))return"watch";f&&(D=new _.cI("Unsupported mWeb page type",{pathname:t,webPageType:V}),_.NG(D));return"browse"};
nL=function(V,D,f,n){return V&&D?V!==f||D!==n?(_.hY(Error("Mh"),void 0,void 0,{"stored-slot":V,"stored-layout":D,"latest-slot":f,"latest-layout":n}),!1):!0:!1};
hMU=function(V,D,f){return V({targetId:D},function(n){return f.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},n,{header:f.continuationItems?f.continuationItems[0]:void 0}):Object.assign({},n,{contents:f.continuationItems?f.continuationItems:[]})})};
US9=function(V,D,f,n){if(D=D.trackingParams){var t,J=(t=f.getScreenLayer)==null?void 0:t.call(f);f=_.Ni(J);t=_.u8(J);if(f&&t){var H=_.gs(D);_.c("combine_ve_grafts")?V.graftServerVe(D,t,J):_.Y8(f,t,H);n==null||n(H)}}};
Dyc=function(V){var D;return((D=VgU.get(V))==null?void 0:D.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
tg9=function(V,D){var f={type:D.slotType,controlFlowManagerLayer:fac.get(D.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D.slotEntryTrigger&&(f.entryTriggerType=D.slotEntryTrigger.triggerType);D.slotPhysicalPosition!==1&&(f.slotPhysicalPosition=D.slotPhysicalPosition);if(V){f.debugData={slotId:D.slotId};if(V=D.slotEntryTrigger)f.debugData.slotEntryTriggerData=nO9(V);V=D.slotFulfillmentTriggers;f.debugData.fulfillmentTriggerData=[];V=_.r(V);for(var n=V.next();!n.done;n=V.next())f.debugData.fulfillmentTriggerData.push(nO9(n.value));
D=D.slotExpirationTriggers;f.debugData.expirationTriggerData=[];D=_.r(D);for(V=D.next();!V.done;V=D.next())f.debugData.expirationTriggerData.push(nO9(V.value))}return f};
nO9=function(V,D){var f={type:V.triggerType};D!=null&&(f.category=D);V.triggeringSlotId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedSlotId=V.triggeringSlotId);V.triggeringLayoutId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedLayoutId=V.triggeringLayoutId);return f};
Po9=function(V,D,f,n){D={opportunityType:D};V&&(n||f)&&(n=_.dw(n||[],function(t){return tg9(V,t)}),D.debugData=Object.assign({},f&&f.length>0?{associatedSlotId:f}:{},n.length>0?{slots:n}:{}));
return D};
oO3=function(V){return tE(V.opportunityAdapterMap).concat(tE(V.triggerAdapterMap)).concat(tE(V.fulfillmentAdapterFactoryMap)).concat(tE(V.slotAdapterFactoryMap)).concat(tE(V.layoutRenderingAdapterFactoryMap))};
tE=function(V){var D=[];V=_.r(V.values());for(var f=V.next();!f.done;f=V.next())f=f.value,f.isAdsControlFlowEventListener&&D.push(f);return D};
om=function(V){var D=V.slotId,f=V.slotType,n=V.slotPhysicalPosition;return D===void 0?new PC("Cannot construct a slot due to the missing id.",{adSlotMetadata:V}):f===void 0?new PC("Cannot construct a slot due to the missing type.",{adSlotMetadata:V}):n===void 0?new PC("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:V}):{slotId:D,slotType:f,slotPhysicalPosition:n,managerLayer:"external",adSlotLoggingData:V.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new JWU}};
rWX=function(V){var D=V.layoutId,f=V.layoutType;return D===void 0?new JE("Cannot construct a layout due to the missing id.",{adLayoutMetadata:V}):f===void 0?new JE("Cannot construct a layout due to the missing type.",{adLayoutMetadata:V}):{layoutId:D,layoutType:f,managerLayer:"external",adLayoutLoggingData:V.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new JWU,interactionLoggingAdsClientData:{}}};
HMx=function(V){if((V=V.value)&&V.querySelector("img")){var D=V.querySelector("img");D.addEventListener("error",function(){GXR(D.src).then(function(f){(f=_.Ft(f).toString())?D.src=f:D.removeAttribute("src")}).catch(function(){D.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
HC=function(V,D){if(D&&(wmZ(D.viewableCommand)||wmZ(D.endOfSessionCommand))){V=V.value;var f=QLc(D==null?void 0:D.viewableCommand);D=QLc(D==null?void 0:D.endOfSessionCommand);if(!r3){var n=_.tU("custom_active_view_tos_timeout_ms");r3=n>0&&n!==36E5?new TzZ(bMZ(),n):new TzZ(bMZ())}Kbd(r3,V);yW9(r3,V,f,D)}};
w3=function(V){r3&&Kbd(r3,V.value)};
bMZ=function(){var V=_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(V==null?void 0:V.length)===2?V[1]:null};
wmZ=function(V){V=_.Xo(V);return!(V==null||!V.loggingUrls)&&V.loggingUrls.length>0};
QLc=function(V){if(!V)return[];var D=[],f,n;((n=(f=_.Xo(V))==null?void 0:f.loggingUrls)!=null?n:[]).forEach(function(t){t.baseUrl&&D.push(t.baseUrl)});
return D};
ZMY=function(V){return V.shorts.isDesktopSmallWidth};
_.jLY=function(V){return V.shorts.isShortsActive};
_.laX=function(V){return V.shorts.isWatchWhileMode};
_.KL=function(V){return V.shorts.isFullscreen};
_.yw=function(V){return V.shorts.isShortsPipActive};
eH9=function(V){var D,f;if(V=(D=_.g(V.reelsAdCardButtoned,GDL))==null?void 0:(f=D.animatedRenderingConfig)==null?void 0:f.easeOutSeconds)return V+"s"};
FbL=function(V,D,f){return _.w(function(n){return n.return(new Promise(function(t){var J=new Image;J.onload=function(){t(new cWY(V,D,f,J.naturalWidth,J.naturalHeight))};
J.src=f.toString()}))})};
gOY=function(V,D){return Math.round(V/1E-5)===Math.round(D/1E-5)};
vOF=function(V,D){return Math.round(V/1E-5)===Math.round(D/1E-5)};
kDU=function(V,D){return V.year===D.year&&V.month===D.month&&V.day===D.day};
sLL=function(V,D){return V.year!==D.year?V.year<D.year:V.month!==D.month?V.month<D.month:V.day<D.day};
dyU=function(V){return V.day===Bzc(V.year,V.month)?V.month===11?{year:V.year+1,month:0,day:1}:{year:V.year,month:V.month+1,day:1}:{year:V.year,month:V.month,day:V.day+1}};
urY=function(){var V=new Date,D={year:V.getFullYear(),month:V.getMonth(),day:V.getDate()};return{start:D,end:{year:V.getFullYear()+2,month:V.getMonth(),day:V.getDate()},selectedDate:dyU(D)}};
NzZ=function(V){return(new Ss(2)).format(new Date(V.year,V.month,V.day))};
my9=function(V){return{year:V.getFullYear(),month:V.getMonth(),day:V.getDate()}};
zHc=function(V,D){V=(V+(Number(D.utcOffsetSec)+(new Date(V*1E3)).getTimezoneOffset()*60))*1E3;D=my9(new Date(V));return{date:D,secondsSinceMidnight:Math.floor((V-(new Date(D.year,D.month,D.day)).getTime())/1E3)}};
RHc=function(V,D){D=D.months.findIndex(function(f){return f.year===V.year&&f.month===V.month});
return D>=0?D:void 0};
Coc=function(V){if(!V)return!1;try{if(V.host&&V.host.tagName==="YT-FORMATTED-STRING"&&V.host.id==="contenteditable-textarea"||V.nodeType===Node.ELEMENT_NODE&&V.tagName==="YTD-COMMENTBOX")return!0}catch(D){return!1}return Coc(V.parentNode)};
Zr=function(V){return V?!(V.tagName!=="A"||!V.href||!V.classList.contains("yt-simple-endpoint")):!1};
qTX=function(V){return V?V.tagName==="IMG"&&V.classList.contains("emoji"):!1};
Xmx=function(V,D,f){if(!V)return null;var n=Zr(V);if(n&&f)return D=V.pathname.substring(V.pathname.indexOf("/channel/")+9),document.createTextNode("@"+D);if(n&&!f)return document.createTextNode("");if(qTX(V))return f=V.alt,V=V.dataset.emojiId,!V&&D&&(D=_.jb(D,f))&&D.isCustomEmoji&&(V=D.emojiId),V?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+V+">"):document.createTextNode(f);n=V.cloneNode(!1);for(var t=0;t<V.childNodes.length;++t){var J=Xmx(V.childNodes[t],D,f);J&&n.appendChild(J)}return n};
ln=function(V){return V?Zr(V)?V:ln(V.lastChild):null};
EO9=function(V){return V?Zr(V)?V:EO9(V.firstChild):null};
AW9=function(V){if(!V)return null;for(var D=V.previousSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.previousSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.previousSibling;else break;(D=ln(D))?V=D:V=(V=V.parentNode)?ln(V.previousElementSibling):null;return V};
aa3=function(V){if(!V)return null;for(var D=V.nextSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.nextSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.nextSibling;else break;return(D=EO9(D))?D:aa3(V.parentNode)};
YTR=function(V){var D=_.GS(),f=D.JSC$9384_getStartNode();if(!Coc(f.parentNode))return null;D=D.JSC$9384_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var n=_.qr(f,Zr);if(n){if(V&&D===0||!V&&D===f.length)return n}else{if(V&&D===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.eb(f.nextElementSibling,"display")==="block"?null:EO9(f.nextElementSibling);if(!V&&D===0)return f?ln(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(V){if(0<=D&&D<f.childNodes.length)return EO9(f.childNodes[D])}else if(0<
D&&D<=f.childNodes.length)return ln(f.childNodes[D-1]);return null};
$yX=function(V,D,f){if(!V)return null;if(V.nodeType===Node.TEXT_NODE)if(f){var n=AW9(V);if(n&&!/^\s+\S/.test(V.wholeText.substr(0,D)))return n}else if((n=aa3(V))&&!/\S\s+/.test(V.wholeText.substr(D,V.wholeText.length)))return n;return V.nodeType===Node.ELEMENT_NODE?f?AW9(V.childNodes[D]):aa3(V.childNodes[D]):$yX(V.parentNode,D,f)};
iM3=function(V){if(V.hasChildNodes())switch(V.tagName){case "DIV":case "A":case "SPAN":var D="";for(V=V.firstChild;V;V=V.nextSibling)D+=iM3(V);return D;default:return""}else switch(V.nodeType){case 3:return V.textContent;default:return""}};
cC=function(V,D){return V.year===D.year&&V.month===D.month&&V.day===D.day};
FW=function(V,D){return V.year!==D.year?V.year<D.year:V.month!==D.month?V.month<D.month:V.day<D.day};
STZ=function(V){return{year:V.getFullYear(),month:V.getMonth(),day:V.getDate()}};
Wb9=function(V){var D=LJ9;D=D===void 0?LJ9:D;D(new Date(V.year,V.month,V.day))};
g3=function(V){return STZ(new Date(Number(V.seconds)*1E3))};
pm9=function(V){return V.year!==void 0&&V.month!==void 0&&V.day!==void 0};
Lbd=function(V){return V.start!==void 0&&V.end!==void 0};
IaF=function(V){return Lbd(V)?V.start:V};
OMY=function(V){return Lbd(V)?V.end:void 0};
Mg9=function(V,D){for(var f=[],n=new Date(V.start.year,V.start.month);n.getFullYear()<V.end.year||n.getFullYear()===V.end.year&&n.getMonth()<=V.end.month;){var t=f,J=t.push,H=n.getFullYear(),Q=n.getMonth(),T=V,y=D,Z=void 0,l=[],G=Object.freeze({extraCssClass:"invisible"}),F=new Date(H,Q),k=STZ(F);F=F.getDay();for(var d=STZ(new Date);k.month===Q;){F!==xyY&&Z||(Z=Array.from({length:7}).fill(G),l.push(Z));var z={date:{year:H,month:Q,day:k.day},extraCssClass:"",debugClass:""};z.extraCssClass=y(z.date,
k,d,T).trim();Z[(F-xyY+7)%7]=z;k=k.day===Bzc(k.year,k.month)?k.month===11?{year:k.year+1,month:0,day:1}:{year:k.year,month:k.month+1,day:1}:{year:k.year,month:k.month,day:k.day+1};F=(F+1)%7}J.call(t,{weeks:l,monthLabel:vC.SHORTMONTHS[Q]+" "+H,year:H,month:Q,monthLabelExtraCssClass:l[0][2]===G?"shift-down-label":""});n.setMonth(n.getMonth()+1)}return f};
hHX=function(V,D){D=D.months.findIndex(function(f){return f.year===V.year&&f.month===V.month});
return D>=0?D:void 0};
VXF=function(V,D){a:{var f=f===void 0?[2,3]:f;f=_.r(f);for(var n=f.next();!n.done;n=f.next()){var t=new Date;if((new UyL(n.value)).parse(D,t,{validate:!0})){t.setHours(0,0,0,0);D=t;break a}}D=null}if(!D)return{isValid:!1,value:void 0};D=STZ(D);f=V.end;return FW(D,V.start)||FW(f,D)?{isValid:!1,value:void 0}:{isValid:!0,value:D}};
P0x=function(V){var D=DbY;D=D===void 0?foc:D;var f=V.columnsToShow||[],n=nWF(V.columnDimensions,V.columnsToShow,V.leftFloatingColumns,D);return f.map(function(t,J){var H=V.columns[t];if(H===void 0)throw Error("Sh");var Q=n?n[J]:"";var T=V.getCustomTooltip?V.getCustomTooltip(t,H.headerTooltipParagraphs):H.headerTooltipParagraphs;var y=tXR(V,t);return{type:t,index:J,style:Q,classes:y,headerName:H.headerName||"",headerIcon:H.headerIcon,headerTooltipParagraphs:T||[],headerTooltipHelpContext:H.headerTooltipHelpContext,
sortOrders:H.sortOrders||[],selectionState:H.isSelectionCheckbox?V.selectionState:void 0}})};
tXR=function(V,D){var f=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],n=V.columns[D];if(n===void 0)return"";var t=f.includes("DEFAULTS")&&n.cssClass?[n.cssClass]:[];if(f.includes("SORTING")){n.sortOrders&&n.sortOrders.length&&t.push("sortable");if(V.sorting&&V.sorting.columnType===D)a:switch(V.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var J="column-sorted";break a;default:J=""}else J="";J&&t.push(J)}f.includes("FLOATING")&&(D=V.columnsToShow.indexOf(D),V.leftFloatingColumns&&D<V.leftFloatingColumns&&
t.push("floating-column"),V.leftFloatingColumns&&D===V.leftFloatingColumns-1&&t.push("last-floating-column"));f.includes("RIGHT_ALIGN")&&n.rightAlignHeader&&t.push("right-align");return t.filter(function(H){return H}).join(" ")};
nWF=function(V,D,f,n){f=f===void 0?0:f;n=n===void 0?foc:n;if(V){var t=[],J=0;oWF(V,D,n).forEach(function(H,Q){var T="min-width:"+H.minWidth+"px;padding-left:"+H.paddingLeft+"px;padding-right:"+H.paddingRight+"px;flex:"+H.flexGrow+" 0 "+H.minWidth+"px;";H.maxWidth!==Infinity&&(T=[T,"max-width:"+H.maxWidth+"px;"].join(""));J>0&&Q<f&&(T=[T,"left:"+J+"px;"].join(""));t.push(T);J+=H.minWidth+H.paddingLeft+H.paddingRight});
return t}};
oWF=function(V,D,f){f=f===void 0?foc:f;return D.map(function(n,t){n=V&&V[n]||{};var J=t===0?f.paddingLeftFirstColumn:f.padding;n.paddingLeft!==void 0&&(J=n.paddingLeft);t=t===D.length-1?f.paddingRightLastColumn:f.padding;n.paddingRight!==void 0&&(t=n.paddingRight);return{paddingLeft:J,paddingRight:t,minWidth:n.minWidth!==void 0?n.minWidth:f.minWidth,maxWidth:n.maxWidth!==void 0?n.maxWidth:f.maxWidth,flexGrow:n.flexGrow!==void 0?n.flexGrow:f.flexGrow}})};
J1n=function(V){var D=V.reduce(function(n,t){var J=t.columnId,H={};t.headerText&&(H.headerName=_.LA(t.headerText));t.rightAlignHeader&&(H.rightAlignHeader=t.rightAlignHeader);var Q;if((Q=t.headerIcon)==null?0:Q.iconType)H.headerIcon=_.Qa(t.headerIcon.iconType);n[J]=H;return n},{}),f=V.filter(function(n){return!n.hideColumn}).map(function(n){return n.columnId});
V=V.filter(function(n){return!!n.dimensions}).reduce(function(n,t){n[t.columnId]=t.dimensions;
return n},{});
return{columns:D,columnsToShow:f,columnDimensions:V}};
_.r1Z=function(V){return V?V.simpleText?V.simpleText:V.runs?V.runs.map(function(D){return D.text}).join(""):"":""};
bdY=function(V){var D=V.data;var f=V.onTap;var n=V.isSelected;var t=V.onFocusIn;if(!D)return{};V=Hd3(D);n===void 0&&(n=D==null?void 0:D.isSelected);var J;return{text:whR(D,V),startIcon:(J=D.icon)==null?void 0:J.iconType,state:n?0:2,type:0,onTap:QyR(D,f),accessibilityLabel:TpL(D,V),onFocusIn:function(){return t==null?void 0:t()}}};
whR=function(V,D){if(!D)return V.text?_.r1Z(V.text):void 0};
QyR=function(V,D){return function(f){D==null||D(f,V)}};
Hd3=function(V){V=V.style&&V.style.styleType;return!LX&&V==="STYLE_EXPLORE_LAUNCHER_CHIP"};
TpL=function(V,D){if(D){var f,n,t;return(t=(f=V.accessibilityData)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)!=null?t:whR(V,!1)}};
kV=function(V){return{signalAction:{signal:V}}};
ZdZ=function(){return _.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?KxR:_.y19};
jyL=function(V,D){V=V===void 0?"SOFT_RELOAD_PAGE":V;D=D===void 0?49504:D;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:D}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:V}}]}}}};
loY=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Vc(_.Zl("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:ZdZ()}};
GhU=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:ZdZ()}};
ezd=function(V,D){var f=_.Vc(_.Zl("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),n=_.Vc(_.Zl("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),t={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Vc(_.Zl("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};t.serviceEndpoint=V?V:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[kV("SOFT_RELOAD_PAGE")]}};return{title:f,bodyText:n,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:t},
style:{value:D!=null?D:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
FxZ=function(V){V=V===void 0?{}:V;return{title:_.Vc(V.localizedZeroStateTitleText===void 0?"":V.localizedZeroStateTitleText),bodyText:_.Vc(V.localizedZeroStateMessage===void 0?"":V.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Vc(V.localizedZeroStateButtonText===void 0?"":V.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[c1Y]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
vWZ=function(V){V=V===void 0?{}:V;return{title:_.Vc(V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Vc(V.localizedOptInMessage===void 0?"":V.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Vc(_.Zl("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:_.Vc(_.Zl("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:[gWx]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Bpx=function(V,D){var f=D=D===void 0?{}:D;D=f.offlineTitleText===void 0?"":f.offlineTitleText;var n=f.offlineDescriptionText===void 0?"":f.offlineDescriptionText,t=f.formattedSupplementalText,J=f.actionButtonText===void 0?"":f.actionButtonText,H=f.titleText===void 0?"":f.titleText;f=f.descriptionText===void 0?"":f.descriptionText;var Q={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.Vc(J),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};V||(H=D,f=n,Q={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.Vc(J),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.Vc(H),titleLength:H.length,subtitle:_.Vc(f),supplementalText:t,primaryButton:{buttonRenderer:Q},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[khX]},
darkTileImage:{thumbnails:[syZ]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.NpY=function(V,D,f,n,t,J,H,Q,T,y,Z){t=t===void 0?!1:t;J=J===void 0?!1:J;H=H===void 0?0:H;Q=Q===void 0?-Infinity:Q;T=T===void 0?!1:T;y=y===void 0?!1:y;Z=Z===void 0?!1:Z;var l=[],G=_.Vc(_.Zl("SMART_DOWNLOADS",void 0,"Smart downloads")),F=_.Vc(dbX(H,Q,V.length));Q=H=void 0;y?H={statementBannerRenderer:Bpx(Z,n)}:t?V.length>0?Q=uyU(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.c("kevlar_manual_downloads_above"),G,F):T?Q={alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===
void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedPromptMessage===void 0?"":f.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Zl("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Zl("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:_.JT3}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(Q={backgroundPromoRenderer:{bodyText:_.Vc(_.Zl("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"}}}):
J&&(Q={alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedOptInMessage===void 0?"":f.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Zl("TURN_ON",void 0,"Turn on"),accessibilityText:_.Zl("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}}}}}});f=_.Vc(_.Zl("YOUR_DOWNLOADS",void 0,"Your downloads"));n=void 0;D.length>0?(n=void 0,_.c("kevlar_display_downloads_numbers")&&(n=_.Vc(_.jJ("VIDEO_COUNT",D.length))),n=uyU(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,f,n)):t||V.length||
y||(n={backgroundPromoRenderer:{bodyText:_.Vc(_.Zl("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}}}});H?l.push({richSectionRenderer:{content:H}}):Q&&!_.c("kevlar_manual_downloads_above")&&l.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
n&&l.push({richSectionRenderer:{content:n,loggingDirectives:{clientVeSpec:{uiType:51721}}}});Q&&_.c("kevlar_manual_downloads_above")&&l.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(D.length>0||t&&V.length>0&&!y)&&l.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Vc(_.Zl("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:l}};
_.zzc=function(V){return mb9(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Rzd=function(V){return mb9(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
mb9=function(V,D){var f=[];V=uyU(V,D,!0);f.push({richSectionRenderer:{content:V}});return{contents:f}};
uyU=function(V,D,f,n,t){f=f===void 0?!1:f;var J="RESPONSIVE_SIZE_STANDARD";_.c("kevlar_modern_downloads_compact")?J="RESPONSIVE_SIZE_COMPACT":_.c("kevlar_modern_downloads_extra_compact")&&(J="RESPONSIVE_SIZE_EXTRA_COMPACT");V={isExpanded:f,contents:s1(V),entitySelectorType:D,responsiveContainerConfiguration:{responsiveSize:J}};n&&(V.title=n);t&&(V.subtitle=t);f||(_.c("kevlar_smart_downloads_show_more_button")?(V.showMoreButton={buttonRenderer:{accessibility:{label:_.Zl("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Vc(_.Zl("SHOW_MORE",void 0,"Show more"))}},V.showLessButton={buttonRenderer:{accessibility:{label:_.Zl("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("SHOW_LESS",void 0,"Show less"))}}):(V.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Zl("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}}}},V.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Zl("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}}}},V.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Zl("VIEW_ALL",void 0,"View all"),accessibilityText:_.Zl("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:hR("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:V}};
s1=function(V){var D=[];V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,SpY(f)){var n=D,t=n.push;var J=void 0;if(f==null?0:(J=f.videoEntity)==null?0:J.videoId){J=El(_.Ol().getState(),f.videoEntity.videoId);var H=_.Ol().getState();var Q=_.HR(f.videoEntity.videoId,"mainVideoEntity");H=!!_.vR(H.entities)[Q];H={videoId:f.videoEntity.videoId,title:DH(f.videoEntity.title),shortBylineText:DH(f.channelEntity.title),thumbnail:f.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:H&&_.c("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:SjR(f.videoEntity.videoId,J,f.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Zl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};f.videoEntity.lengthSeconds&&(H.thumbnailOverlays=TWF(f.videoEntity.lengthSeconds,J));H.isWatched=J>0;_.c("kevlar_modern_downloads_page")&&(H.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:f.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Zl("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},H.badges=void 0);f=H}else f={};t.call(n,{richItemRenderer:{content:{videoRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(ifY(f)){n=D;t=n.push;var T=Q=J=void 0,y=void 0,Z=void 0,l=void 0,G=void 0,F=void 0,k=void 0,d=void 0,z=void 0,C=void 0;H=f.mainPlaylistEntity.playlistId;var A=f==null?void 0:(C=f.mainPlaylistEntity)==null?void 0:(z=C.thumbnailStyleData)==null?void 0:(d=z[0])==null?void 0:(k=d.value)==null?void 0:(F=k.collageThumbnail)==
null?void 0:F.coverThumbnail;if(H&&A){F=WSY(H);!_.c("enable_offline_playlist_page")&&(f==null?0:(G=f.mainPlaylistEntity)==null?0:G.videos)&&(G=f==null?void 0:(l=f.mainPlaylistEntity)==null?void 0:(Z=l.videos)==null?void 0:Z[0],Z=_.PR(G).entityId,Z=JSON.parse(Z).videoId,Z!==void 0&&(l=El(_.Ol().getState(),Z),F=_.U2(Z,H,void 0,void 0,l)));Z=[];if(f==null?0:(y=f.mainPlaylistEntity)==null?0:(T=y.videos)==null?0:T.length)Z=[pcZ(),Object.assign({},(Q=WJX(f==null?void 0:f.mainPlaylistEntity.videos.length))!=
null?Q:{})];f={playlistId:H,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:A}},navigationEndpoint:F,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:Z,title:DH(f.mainPlaylistEntity.title),shortBylineText:DH(f==null?void 0:(J=f.channelEntity)==null?void 0:J.title),badges:[{metadataBadgeRenderer:{label:_.Zl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.c("kevlar_modern_downloads_page")&&(f.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:C03,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:H,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Zl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},f.badges=void 0)}else f=void 0;t.call(n,{richItemRenderer:{content:{playlistRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return D};
dbX=function(V,D,f){V=V?qx9(V):"";D!==void 0&&isFinite(D)?D===0?D=_.Zl("UPDATING",void 0,"Updating..."):(D=Qjn(new Date(D),new Date),D=_.Zl("UPDATED_TIME",{relative_time:D},"Updated "+D)):D="";var n="";V&&D&&(n=" \u2022 ");if(f&&_.c("kevlar_display_downloads_numbers")){f=_.jJ("VIDEO_COUNT",f);if(V||D)n=" \u2022 ";return f+n+V+n+D}return V+n+D};
XhX=function(V){return CH9(V.entities).length};
_.EWn=function(V,D){var f=WtZ(V.responsiveSize),n;V=!((n=V.responsiveMap)==null||!n.some(function(t){return t.containerSize==="CONTAINER_SIZE_NARROW"&&t.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:D,sizing:f,enableFullBleedForSingleCol:!1,isCompactList:f==="COMPACT"&&V}};
A1Z=function(V,D){return _.wg(V.entities,"votingEntity",D)};
aoR=function(V){if(V){var D;return((D=_.DY().resolve(_.Vx(_.pm)))==null?0:D())?V.darkTheme:V.lightTheme}};
YxZ=function(V,D){if(V.simpleText)return Object.assign({},V,{simpleText:iS(V.simpleText,D)});if(!V.runs)return V;for(var f=Object.assign({},V,{runs:[]}),n=0,t=_.r(V.runs),J=t.next();!J.done;J=t.next())if(J=J.value,J.text)if(n+J.text.length<=D)f.runs.push(J),n+=J.text.length;else return f.runs.push(Object.assign({},J,{text:iS(J.text,D-n)})),f;return V};
$bn=function(V,D){return _.wg(V.entities,"chipBarStateEntity",D)};
idx=function(V,D){return _.wg(V.entities,"chipEntity",D)};
Wx9=function(V,D,f,n){return function(){var t=SxU.has(V.displayType)&&V.selected,J=t&&V.deselectCommand?V.deselectCommand:V.tapCommand;!J||t&&n||_.Yt(J,{form:{element:D==null?void 0:D.value}});f==null||f()}};
phx=function(V){switch(V){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""}};
LxU=function(V,D){return{triggeringElement:V,onDwellTriggeredFn:function(){var f={triggeringElement:V,loadVideoPreviewEventData:D},n=document.querySelector(".video-preview");n&&n.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:f}))},
onDwellEndFn:function(){var f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
IoL=function(V,D){var f=_.DY().resolve(_.Vx(mn9)),n=function(){var t=D();return f&&t?LxU(V.value,t):null};
_.BJ(function(){var t=n();f&&t&&Promise.resolve().then(function(){f.registerElement(t)});
_.dc(function(){f&&t&&Promise.resolve().then(function(){_.$C(f,t)})})},"csPUge")};
xbY=function(V){var D=V.dataset.resizeObserverId;if(D)return D;D=""+OdZ++;return V.dataset.resizeObserverId=D};
MXX=function(V,D){var f=xbY(V);BC.has(f)||BC.set(f,new Set);BC.get(f).add(D);d3.has(f)&&D(Object.assign({},{target:V},d3.get(f)))};
hzY=function(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=xbY(D.target),n=Object.assign({},{target:D.target},d3.get(f));if(n!=null&&n.contentRect?n.contentRect.width!==D.contentRect.width||n.contentRect.height!==D.contentRect.height:1)for(d3.set(f,{borderBoxSize:D.borderBoxSize,contentBoxSize:D.contentBoxSize,contentRect:D.contentRect,devicePixelContentBoxSize:D.devicePixelContentBoxSize}),f=_.r(BC.get(f)||[]),n=f.next();!n.done;n=f.next())n=n.value,n(D)}};
Vw9=function(){return un?un:un=new UbX(hzY)};
DDn=function(V,D){var f=xbY(V);BC.has(f)&&(BC.get(f).delete(D),BC.get(f).size===0&&(BC.delete(f),d3.delete(f),un.unobserve(V),delete V.dataset.resizeObserverId));BC.size===0&&un&&(un.disconnect(),un=void 0)};
n69=function(V,D){var f=_.DY().resolve(Uq);return fV9.map(function(n){return f.observe(V,D,n)})};
tw9=function(V){var D=_.DY().resolve(Uq);V.forEach(function(f){D.unobserveByKey(f)})};
_.JG3=function(V,D){var f=Object.assign({},P53,D);D=_.r(m4n());var n=D.next().value,t=D.next().value,J=function(H){var Q=H.contentRect.height;if((H=H.contentRect.width)||Q||f.canHaveZeroSize)n.width()===H&&n.height()===Q||t(n,{height:Q,width:H})};
_.Nl(function(){var H=V instanceof HTMLElement?V:V.value,Q=o6d(J,f.throttleMs),T=[];f.useVisibilityObserver&&(T=n69(H,function(y,Z){requestAnimationFrame(function(){Z==="visible"?(MXX(H,Q),Vw9().observe(H)):DDn(H,Q)})}));
T.length||(MXX(H,Q),Vw9().observe(H));_.dc(function(){T.length&&(tw9(T),T.length=0);DDn(H,Q)})});
return n};
HeR=function(V){var D=V.data;var f=V.callback;var n=V.enableSingleChipSelection;var t=V.disableChipsScrollAnimation;var J=_.py("div"),H=z2(!1),Q=z2(0);V={};V=_.r(bf(D.autoselectedChipIndex!=null?(V[D.autoselectedChipIndex]=!0,V):{}));var T=V.next().value,y=V.next().value,Z=function(){var wZ=J.value;return wZ==null||wZ.scrollLeft-1<=0},l=function(){var wZ=J.value;
return wZ==null?!1:wZ.scrollLeft+1>=(wZ==null?NaN:wZ.scrollWidth)-(wZ==null?NaN:wZ.clientWidth)};
V=_.r(bf(Z()));var G=V.next().value,F=V.next().value;V=_.r(bf(l()));var k=V.next().value,d=V.next().value;V=D.isHorizontallyScrollable;var z=function(wZ){J.value!=null&&(_.XB("HTML_DIR")==="rtl"&&(wZ=-wZ),J.value.scrollBy({left:wZ,behavior:t?"instant":"smooth"}))},C=function(){z(-320)},A=function(){z(320)},O=_.jl(function(wZ){H.value=!0;
Q.value=wZ.clientX}),W=_.jl(function(wZ){if(H.value){wZ=wZ.clientX;
var ZZ=wZ-Q.value;Q.value=wZ;var sd;(sd=J.value)==null||sd.scrollBy({left:-ZZ})}}),I=_.jl(function(){var wZ=Z(),ZZ=l();
wZ!==G&&F(wZ);ZZ!==k&&d(ZZ)});
xb("pointerup",function(){H.value&&(H.value=!1)});
var x={},oY={};return _.K("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},IV(D.title,function(){return _.K("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.K("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},D.title),rGF(D.overflowButton))}),_.K("div",{class:"ytChipsShelfViewModelChipsShelfContent"},IV(D.previousButton!=null,function(){var wZ={};
return _.K("div",{class:_.y6("ytChipsShelfViewModelLeftArrowContainer",(wZ.ytChipsShelfViewModelLeftArrowContainerIsHidden=G,wZ))},rGF(D.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:C}}))}),_.K("div",{el:J,
"on:pointerdown":O,"on:pointermove":W,"on:scroll":I,class:_.y6("ytChipsShelfViewModelChipsScrollContainer",(x.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!V,x))},_.K("div",{class:_.y6("ytChipsShelfViewModelChipsContainer",(oY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!V,oY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!V&&!1,oY)),role:"tablist"},(D.contents||[]).map(function(wZ,ZZ){return _.K("div",{class:"ytChipsShelfViewModelChipWrapper"},
rGF(wZ,{chipViewModel:{callback:function(sd,NU){if(n){var Bn={};y((Bn[ZZ]=NU,Bn))}else Bn={},y(Object.assign({},T,(Bn[ZZ]=NU,Bn)));f==null||f(sd,NU,ZZ)},
disableDeselection:n,selected:!!T[ZZ]}}))}))),IV(D.nextButton!=null,function(){var wZ={};
return _.K("div",{class:_.y6("ytChipsShelfViewModelRightArrowContainer",(wZ.ytChipsShelfViewModelRightArrowContainerIsHidden=k,wZ))},rGF(D.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:A}}))})))};
QZ9=function(V,D,f,n,t){V=D?V.switchOffCommand:V.switchOnCommand;if(n&&t)wQZ(V,f,t);else{var J,H;(J=_.A2({elementsCommand:V}))==null||(H=J.onclick)==null||H.call(J,f)}};
wQZ=function(V,D,f){V=_.A2({elementsCommand:V,additionalCommandArgs:{commandController:{onSuccess:function(){f(!1)},
onServerError:function(){f(!1)}}}});
if(V==null?0:V.onclick)V.onclick(D),f(!0)};
beZ=function(V){if(V)return _.g(V,T6Z)};
lVd=function(V,D,f){if(D)return[KuY];switch(V){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[NR];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return f?[NR]:[yGY,NR];case "TRANSFER_STATE_PAUSED_BY_USER":return[Zed,NR];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[jZY,NR];default:return[KuY]}};
GfR=function(V,D,f,n){return lVd(V,D,n).map(function(t){var J=t.text,H=t.iconType,Q=t.videoAction;t=t.playlistAction;J=J?{content:J}:void 0;H=H&&{sources:[{clientResource:{imageName:H}}]};var T=(0,_.sB.unsafeClone)(f);if(T){var y=_.g(T,_.Q1),Z=_.g(T,_.Tv);y&&Q?y.action=Q:Z&&t&&(Z.action=t)}return{title:J,leadingImage:H,rendererContext:T&&{commandContext:{onTap:{innertubeCommand:T}}}}})};
eWd=function(V){V=_.qs(V.rendererContext);var D;return(D=_.g(V,_.Tv))==null?void 0:D.playlistId};
cG9=function(V){var D;return(D=V.listItems)==null?void 0:D.some(function(f){var n;return _.XO((n=_.g(f,_.jK))==null?void 0:n.rendererContext)})};
g6R=function(V){var D;return(D=V.listItems)==null?void 0:D.some(function(f){f=_.g(f,_.jK);return!!_.g(f==null?void 0:f.leadingAccessory,Fu9)})};
sZ3=function(V){var D=V.element;var f=V.veType;var n=V.storedVisualElement===void 0?null:V.storedVisualElement;var t=V.elementIndex===void 0?0:V.elementIndex;V=V.clientYouTubeData;var J=_.Ni();J!==v6X&&(kfd.clear(),v6X=J);if(D.visualElement&&kfd.has(D.visualElement))return null;if(n&&kfd.has(n))return D.visualElement=n,null;f=_.jD(_.lS(),{veType:f,elementIndex:t,clientYouTubeData:V});if(!f)return null;D.visualElement=f;kfd.add(f);return f};
_.mD=function(V,D,f,n){f=f===void 0?null:f;n=n===void 0?OFY:n;var t=t===void 0?null:t;ds(function(){if(D){f instanceof Function&&(f=f());var J=sZ3({element:D,veType:V,storedVisualElement:f,clientYouTubeData:void 0});J&&(hEX(D,t),n(J))}})};
zS=function(V,D){if(V){switch(D){case 0:V=V.primaryTitleColor;break;case 1:V=V.secondaryTitleColor;break;case 2:V=V.surgeColor;break;case 3:V=V.section2Color;break;case 4:V=V.section3Color;break;default:return}if(V)return _.AP(V)}};
B69=function(V){return V?_.aB(V):""};
dDL=function(V){return(V==null?void 0:V.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
uUU=function(V,D){var f;return"linear-gradient(to bottom, "+((f=D==null?void 0:D.map(function(n){var t=V?n.darkThemeColor:n.lightThemeColor;return t?_.aB(t)+" "+((n==null?void 0:n.startLocation)||0)*100+"%":"transparent"}))==null?void 0:f.join(", "))+")"};
N6d=function(V,D,f,n,t){if(!((n==null?0:n.height)&&(n==null?0:n.width)))return{size:0};var J=n.width;n=n.height;if(t)return D==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&J>n?{size:312/fj9}:D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(f!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||V!==1&&V!==2||D!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&D!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&D!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(D==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||n===J)switch(V){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||n>J)switch(V){case 1:case 3:return{size:240*DSU};default:return{size:360*DSU}}switch(V){case 1:case 2:return{size:1/fj9*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.mD9=function(V){if(!("matchMedia"in window))return _.$w(Error("Th")),function(){return!1};
var D=window.matchMedia(V);V=_.r(_.HJ(D.matches,void 0,"jLJc8e"));var f=V.next().value,n=V.next().value,t=function(J){n(J.matches)};
D.addEventListener?(D.addEventListener("change",t),_.dc(function(){D.removeEventListener("change",t)})):D.addListener&&(D.addListener(t),_.dc(function(){D.removeListener(t)}));
return f};
zWZ=function(V){return V==="IMAGE_BANNER_STYLE_INSET"||V==="IMAGE_BANNER_STYLE_UNKNOWN"};
RWZ=function(){if(!("matchMedia"in window))return _.$w(Error("Th")),function(){return 0};
var V=m0(function(){return window.matchMedia("(max-width: 527.9px)")}),D=m0(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),f=m0(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),n=m0(function(){return window.matchMedia("(min-width: 1024px)")}),t=_.r(_.HJ(V.matches,void 0,"og9kEc")),J=t.next().value,H=t.next().value;
t=_.r(_.HJ(D.matches,void 0,"ybDWCb"));var Q=t.next().value,T=t.next().value;t=_.r(_.HJ(f.matches,void 0,"o0Gfh"));var y=t.next().value,Z=t.next().value;t=_.r(_.HJ(n.matches,void 0,"yqUUgd"));var l=t.next().value,G=t.next().value,F=m0(function(){return function(C){H(C.matches)}}),k=m0(function(){return function(C){T(C.matches)}}),d=m0(function(){return function(C){Z(C.matches)}}),z=m0(function(){return function(C){G(C.matches)}});
_.Nl(function(){V.addEventListener?(V.addEventListener("change",F),D.addEventListener("change",k),f.addEventListener("change",d),n.addEventListener("change",z)):V.addListener&&(V.addListener(F),D.addListener(k),f.addListener(d),n.addListener(z));_.dc(function(){V.removeEventListener?(V.removeEventListener("change",F),D.removeEventListener("change",k),f.removeEventListener("change",d),n.removeEventListener("change",z)):V.removeListener&&(V.removeListener(F),D.removeListener(k),f.removeListener(d),
n.removeListener(z))})});
return function(){return J()?1:Q()?2:y()?3:l()?4:0}};
C5Z=function(V){var D=0;V=_.r([V.title,V.metadata,V.actions,V.description,V.attribution]);for(var f=V.next();!f.done;f=V.next())f.value&&D++;return D};
qJF=function(V){return V===1||V===2?1:0};
E6c=function(V){var D,f=((D=_.DY().resolve(_.Vx(_.pm)))==null?0:D())&&V.data.darkThemeImage?V.data.darkThemeImage:V.data.image;D=_.K("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.K("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},f?_.K(_.xt,{data:f,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),XQ3(V.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));f=_.K(_.Ow,{text:V.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var n=V.data;if(n.bodyText){var t=[];n=_.r(n.bodyText);for(var J=n.next();!J.done;J=n.next())t.push(_.K(_.Ow,{text:J.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else t=_.K(_.th,null);return _.K("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},D,f,t,XQ3(V.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.K(_.Ow,{text:V.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.K(_.Ow,{text:V.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
aV9=function(V){V=(new AG9).parse(V);return(new w2).render(V).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(D){var f=D.split(":").map(Number),n=0,t=0;if(f.length===3)f=_.r(f),n=f.next().value,t=f.next().value,f=f.next().value;else if(f.length===2)f=_.r(f),t=f.next().value,f=f.next().value;else if(f.length===1)f=_.r(f).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(n*3600+t*60+f)+'" role="button">'+D+"</span>"})};
YJL=function(V){V=_.r(V.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var D=V.next(),f={};!D.done;f={clickHandler$jscomp$4:void 0},D=V.next()){D=D.value;f.clickHandler$jscomp$4=function(t){t=Number(t.target.getAttribute("data-time"));if(isNaN(t))throw Error("Vh");var J;(J=_.ra())==null||J.seekTo(t,!0)};
var n=function(t){return function(J){J.key!=="Enter"&&J.key!=="Space"||(0,t.clickHandler$jscomp$4)(J)}}(f);
D.setAttribute("tabindex","0");D.removeEventListener("click",f.clickHandler$jscomp$4);D.removeEventListener("keydown",n);D.addEventListener("click",f.clickHandler$jscomp$4);D.addEventListener("keydown",n)}};
$DZ=function(){return _.K("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.K(Rm,{percentWidth:100}),_.K(Rm,{animationDelay:200}),_.K(Rm,{animationDelay:400}),_.K(Rm,{animationDelay:600}),_.K(Rm,{animationDelay:800,percentWidth:60}),_.K("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.K(Rm,{percentWidth:100}),_.K(Rm,{animationDelay:200}),_.K(Rm,{animationDelay:400}),_.K(Rm,{animationDelay:600,percentWidth:50}))};
Rm=function(V){return _.K("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(V.percentWidth===void 0?100:V.percentWidth)+"%"},_.K("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(V.animationDelay===void 0?0:V.animationDelay)+"ms"}))};
ieU=function(){var V=_.r(_.HJ(function(){return""},void 0,"v2wS5e")),D=V.next().value;
return[function(){return D()()},
V.next().value]};
SJn=function(V,D){V=V?qx9(V):"";D!==void 0&&isFinite(D)?D===0?D=_.Zl("UPDATING",void 0,"Updating..."):(D=Qjn(new Date(D),new Date),D=_.Zl("UPDATED_TIME",{relative_time:D},"Updated "+D)):D="";var f="";V&&D&&(f=" \u2022 ");return _.Vc(V+f+D)};
LuZ=function(V,D,f,n,t,J){D=D===void 0?0:D;var H=Wun[D],Q=H.title,T=H.iconType,y=H.topButtonRenderer,Z=H.sectionClientVE;H=H.videoClientVE;var l;if(D!==1||V.length){f=[];V=_.r(V);for(n=V.next();!n.done;n=V.next()){var G=n.value;if(SpY(G))f.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:G.videoEntity.videoId,title:DH(G.videoEntity.title),shortBylineText:DH(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Zl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:H}}}}}});else if(ifY(G)){n=f;var F=n.push;var k=void 0,d=void 0,z=void 0,C=void 0,A=void 0,O=void 0,W=void 0,I=void 0,x=G.mainPlaylistEntity.playlistId,oY=G==null?void 0:(I=G.mainPlaylistEntity)==null?void 0:(W=I.thumbnailStyleData)==null?void 0:(O=W[0])==null?void 0:(A=O.value)==null?void 0:(C=A.collageThumbnail)==null?void 0:C.coverThumbnail;C=WSY(x);if(!_.c("enable_offline_playlist_page")&&
(G==null?0:(z=G.mainPlaylistEntity)==null?0:z.videos)){b:{z=G==null?void 0:(d=G.mainPlaylistEntity)==null?void 0:d.videos;d=_.Ol().getState().entities;if(z!=null&&z.length&&d)for(z=_.r(z),A=z.next();!A.done;A=z.next())if(A=_.PR(A.value).entityId,(A=JSON.parse(A).videoId)&&f73(d,A)==="TRANSFER_STATE_COMPLETE"){d=A;break b}d=""}d!==void 0&&(C=El(_.Ol().getState(),d),C=_.U2(d,x,void 0,void 0,C))}d=LSZ(_.Zl("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),WSY(x));G=x&&oY&&d?{playlistId:x,navigationEndpoint:C,
viewPlaylistText:d,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:oY}},title:DH(G.mainPlaylistEntity.title),shortBylineText:DH(G==null?void 0:(k=G.channelEntity)==null?void 0:k.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:pQY,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Zl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:H}}}:
void 0;F.call(n,{gridPlaylistRenderer:G})}}H={gridRenderer:{items:f}};D===1&&(l=SJn(t,J))}else if(n){var wZ=_.Vc((F=f==null?void 0:f.localizedPromptMessage)!=null?F:"");H={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Vc(_.Zl("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.JT3}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Vc(_.Zl("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};l=SJn(t,J)}else wZ=_.Vc(_.Zl("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
H={};return{contents:[{shelfRenderer:{title:Q,titleAnnotation:l,icon:{iconType:T},subtitle:wZ,content:H,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:y}]}}}}],loggingDirectives:{clientVeSpec:{uiType:Z}}}};
IVd=function(V,D,f,n,t,J,H,Q,T,y,Z){f=f===void 0?{}:f;n=n===void 0?{}:n;t=t===void 0?!1:t;J=J===void 0?!1:J;H=H===void 0?!1:H;Q=Q===void 0?!1:Q;T=T===void 0?!1:T;y=y===void 0?0:y;Z=Z===void 0?-Infinity:Z;if(!(D.length||V.length||t||Q))return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:FxZ(f)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Vc(_.Zl("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 l=[];V.length&&l.push(LuZ(V,0));Q?l.push({contents:[{statementBannerRenderer:Bpx(T,n)}]}):t?l.push(LuZ(D,1,f,H,y,Z)):J&&l.push({contents:[{statementBannerRenderer:vWZ(f)}]});(t&&D.length||V.length)&&l.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Vc(_.Zl("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 l.map(function(G){return{itemSectionRenderer:G}})};
CL=function(V,D){if(typeof V!=="object")return null;V=_.r(Object.entries(V));for(var f=V.next();!f.done;f=V.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;if(f===D)return f;if(n=CL(n,D))return f+"."+n}return null};
qR=function(V){var D=V.content;return(V=V.styleRuns)&&D?{runs:V.map(function(f){var n={text:D.slice(f.startIndex,f.startIndex+f.length)};f.fontColor&&(n.textColor=f.fontColor);return n})}:{simpleText:D}};
Mw9=function(V,D,f,n){var t=OeU;n&&(V.quantity=n);if(!V.quantity||!V.maxQuantity)return{};n=V.minusButton;var J=V.plusButton,H,Q,T,y;return{value:V.quantity,maxValue:V.maxQuantity,onChangeCallback:function(Z){t(V,Z)},
minusLabel:(H=_.g(n,xDn))==null?void 0:H.label,minimumReachedLabel:(Q=_.g(n,xDn))==null?void 0:Q.limitReachedLabel,plusLabel:(T=_.g(J,xDn))==null?void 0:T.label,maximumReachedLabel:(y=_.g(J,xDn))==null?void 0:y.limitReachedLabel,disabled:D,onRemoveCommand:f}};
OeU=function(V,D){var f=V.quantityIncrementerEntityKey;if(f){var n={};n.quantity=D;_.LI(_.XW("quantityIncrementerEntity",f,n));V.onChangeCommand&&_.Yt(V.onChangeCommand)}};
ViL=function(V,D){(V=hWL(V))&&(D?UDF.push({command:V,sourceData:{},commandContext:void 0}):_.DY().resolve(_.fH).resolveCommand(V))};
hWL=function(V){return _.g(V,_.q3)};
DKY=function(){var V=window.performance.timeOrigin+window.performance.now(),D=(new _.E1).setSeconds(V/1E9);return _.kr(D,2,_.gR(V%1E9),0)};
AE=function(V,D){var f=_.g(_.g(V,_.q3),fGX);f&&(D&&(f.serializedAdditionalMetadata=_.V3(D)),ViL(V,!0))};
n_Y=function(V){switch(V){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"}};
tiX=function(){return!!_.XB("ID_TOKEN")};
JpR=function(V){return V instanceof Error&&V.cause instanceof Pw3&&V.cause.rpcErrorCode!==void 0?!o_9.includes(V.cause.rpcErrorCode):!0};
HBd=function(){return _.I9(rpx,{authuser:""+(_.XB("SESSION_INDEX")||0)})};
am=function(V,D,f,n){f=f===void 0?"MINI_APP_SDK_API_UNSPECIFIED":f;n=n===void 0?"":n;var t=new _.cI;f={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:n,sdkApi:f};V instanceof Error&&(t.message=V.message,t.name=V.name,V.cause instanceof Pw3&&V.cause.rpcErrorCode!==void 0&&(f.rpcErrorCode=V.cause.rpcErrorCode));var J;(J=D.onError)==null||J.call(D,{loggingError:t,metadata:f})};
QfZ=function(V,D,f,n){switch(V){case "MINI_APP_SOURCE_GAMESNACKS":return new YV(D,f,n);default:return new wsc(D,f,n)}};
T$L=function(V){switch(V){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"}};
bB3=function(V){switch(V){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"}};
Knx=function(V){switch(V){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"}};
ypL=function(){return Math.floor(Math.random()*4)+1};
ZBY=function(V,D,f,n){V=_.r(Object.entries(V));for(var t=V.next(),J={};!t.done;J={message$jscomp$957:void 0},t=V.next()){var H=_.r(t.value);t=H.next().value;H=H.next().value;J.message$jscomp$957=H;D.push(setTimeout(function(Q){return function(){n(!1);f(Q.message$jscomp$957.text)}}(J),J.message$jscomp$957.delayMs));
Number(t)>0&&D.push(setTimeout(function(){n(!0)},J.message$jscomp$957.delayMs-400))}};
jfd=function(V,D){var f=f===void 0?OFY:f;_.c("mweb_fix_monitor_visibility_after_render")?V&&ds(function(){hEX(V,D,f)}):ds(function(){hEX(V,D,f)})};
epn=function(V){var D=V.data;var f=V.uniqueId;V=V.overrides;var n,t=((n=D.timedAnimationData)==null?void 0:n.animationTiming)||[];return _.K("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.K(lGd,{settings:{uniqueId:f,timings:t,experimentEnabled:t.length>0,enabled:t.length>0}},GpL(D.buttonRenderer,{buttonRenderer:{buttonOverrides:V}})))};
v_Z=function(V){cpx||(cpx=Fnn(new _.aW(1,void 0,void 0,g_9),0));var D=cpx.format(Math.floor(V));D=_.AO==="be"||_.AO==="bg"||_.AO==="es"||_.AO==="et"||_.AO==="hu"||_.AO==="ka"||_.AO==="lv"||_.AO==="pl"||_.AO==="pt-PT"||_.AO==="sq"?D.replace(new RegExp("^(\\d)"+g_9.GROUP_SEP.replace(".","\\.")+"(\\d+("+g_9.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):D;return V>=1E3&&V<=9999&&D[1]==="."&&(_.AO==="sl"||_.AO==="it")?D.replace(".",""):D};
kpU=function(V,D){N3("ytd-button-renderer",{data:V,className:D?D.className:"",overrides:D==null?void 0:D.buttonOverrides},pG)};
dKL=function(V,D,f,n){if(V)return n=n||V.likeStatus,D?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="LIKE",isDisabled:!V.likesAllowed,defaultIcon:{iconType:f},defaultText:n==="LIKE"?V.likeCountWithUnlikeText:V.likeCountText,toggledText:n==="LIKE"?V.likeCountText:V.likeCountWithLikeText,defaultNavigationEndpoint:sfF(V,"LIKE"),defaultServiceEndpoint:B$3(V,"LIKE"),toggledServiceEndpoint:B$3(V,"INDIFFERENT"),defaultTooltip:_.LA(V.likeCountTooltipText),toggledTooltip:_.LA(V.likeCountTooltipText),
targetId:V.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="DISLIKE",isDisabled:!V.likesAllowed,defaultIcon:{iconType:f},defaultText:n==="DISLIKE"?V.dislikeCountWithUndislikeText:V.dislikeCountText,toggledText:n==="DISLIKE"?V.dislikeCountText:V.dislikeCountWithDislikeText,defaultNavigationEndpoint:sfF(V,"DISLIKE"),defaultServiceEndpoint:B$3(V,"DISLIKE"),toggledServiceEndpoint:B$3(V,"INDIFFERENT"),defaultTooltip:_.LA(V.dislikeCountTooltipText),
toggledTooltip:_.LA(V.dislikeCountTooltipText)}};
sfF=function(V,D){if(D==="LIKE")return V.likeCommand;if(D==="DISLIKE")return V.dislikeNavigationEndpoint};
B$3=function(V,D){var f;return(f=V.serviceEndpoints)==null?void 0:f.find(function(n){var t;return((t=_.g(n,_.$V))==null?void 0:t.status)===D})};
_.mK9=function(V,D,f){return window.spf&&!_.c("web_disable_spfjs_client")?uiY(V,D,f):N$d(V,D)};
uiY=function(V,D,f){var n=null,t=(new _.Qf(function(J,H){var Q={};if(D){Q.method=D.method;var T=D.postParams||{};LiR(V,D)&&(T[_.XB("XSRF_FIELD_NAME")]=_.XB("XSRF_TOKEN"));Q.postData=_.bE(T);D.type&&(Q.type=D.type);T=D.headers}Q.headers=YEY(V,T);_.c("debug_forward_web_query_parameters")&&(V=_.Win(V,window.location.search));Q.experimental_headers=Q.headers;Q.onError=function(y){y.err&&y.xhr&&(y.err.params={url:y.xhr.responseURL,response:y.xhr.responseText.substr(0,64)});H(y.err)};
Q.onPartDone=function(y){f&&f.call(null,y.part)};
Q.onDone=function(y){var Z=zpc(y.response,"xsrf_token");Ml(window.location.href,V)&&Z&&_.ql("XSRF_TOKEN",Z);if(Z=zpc(y.response,"service_worker_killswitch"))_.ql("SERVICE_WORKER_KILLSWITCH",Z),knZ();J(y.response)};
n=spf.request(V,Q)})).then(RpR);
t.thenCatch(function(J){var H=J instanceof _.Sb,Q=J&&J.hasOwnProperty("params")&&J.params.response?J.params.response:"";J instanceof Error&&(Q?H?m3d(J):Q===')]}\'\n{"reload":"now"}'?m3d(J):(CwR(J,V,Q),qVn(J,Q)?_.zP(J):_.NG(J)):m3d(J));n&&n.abort()});
return t};
RpR=function(V){if(V.type==="multipart"){var D=V.timing;V=V.parts.reduce(function(f,n){Object.assign(f,n);return f},{});
V.timing=V.timing||{};Object.assign(V.timing,D);V.type="reduced"}return V};
N$d=function(V,D){D=D===void 0?{}:D;var f=null,n=new _.Qf(function(t,J){D.onFinish=function(H){if(H.readyState===XMLHttpRequest.DONE)if(H.status===200){if(H.responseType!=="json"){var Q=H.response;Q.substring(0,5)===")]}'\n"&&(Q=Q.substring(5));try{var T=JSON.parse(Q)}catch(y){T=y}}else T=H.response;T instanceof Error?J(T):(Q=zpc(T,"xsrf_token"),Ml(window.location.href,V)&&Q&&_.ql("XSRF_TOKEN",Q),H=H.responseURL,window.performance&&window.performance.getEntriesByName?(Q=window.performance.getEntriesByName(H).pop())?
H={responseStart:(0,_.VW)()-(Q.responseEnd-Q.responseStart)}:(Math.random()<.01&&(Q=Error("gi"),Q.params=H,_.zP(Q)),H={responseStart:-1}):H={responseStart:0},T.timing=T.timing||{},Object.assign(T.timing,H),t(T))}else J(Error("fi`"+H.status))};
(f=_.T5(V,D))||J(Error("fi`"+f.status))});
n.thenCatch(function(t){t instanceof Error&&(CwR(t,V),qVn(t)&&(t.level="WARNING"))});
_.c("cancel_pending_navs")&&n.thenCatch(function(){f.abort()});
return n};
zpc=function(V,D){var f=V[D],n=V.parts;V.type==="multipart"&&n&&(f=(V=n.find(function(t){return D in t}))&&V[D]);
return f};
CwR=function(V,D,f){var n=V.message||"";D={original:n,url:D};if(f)if(n=n.match(/position:?\s*(\d+)/)){n=n&&Number(n[1])?Number(n[1]):0;var t=Math.max(n-25,0);D.position=n;D.response=f.substring(t,n+25)}else D.response=f.substring(0,50);_.R2(V,D);try{V.message="JSON parse error"}catch(J){}};
qVn=function(V,D){V=V.message||"";V=!!(V.indexOf("<")>=0||V.indexOf("end of ")>=0||V.indexOf("Unterminated string")>=0||V.indexOf("Unexpected EOF"));if(!V&&D)for(var f=D.length,n=!1,t=0;t<f;t++)if(n&&D[t]==="\\")t++;else if(D[t]==='"')n=!n;else if(D[t]==="<"&&!n){V=!0;break}return V};
XsU=function(){return document.documentElement.hasAttribute("dark")};
_.E_R=function(V,D){if(V!=="GFEEDBACK"&&V!=="GUIDED_HELP")_.Ah(Error("hi`"+V));else{var f=_.DY().resolve(_.Vx(_.xl));if(f&&(f=f.getCurrentPage())&&f.getServiceTrackingParams&&(f=f.getServiceTrackingParams()))for(var n=0,t;t=f[n++];)if(t.service===V){if(V=t.params)for(f=0;n=V[f++];)D[n.key]=n.value;break}}};
_.ApY=function(V){var D=_.hI();D&&(D=D.getPlayer())&&(D.pauseVideo(),V.playback_id=D.getVideoData().cpn,V.eid=D.getVideoData().eventId,Object.assign(V,D.getFeedbackProductData()))};
aGZ=function(){var V={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.XB("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(V.enableAnonymousFeedback=!0);_.XB("SESSION_INDEX")&&(V.authuser=String(_.XB("SESSION_INDEX")));_.c("enable_pageid_for_feedback")&&_.XB("DELEGATED_SESSION_ID")&&(V.pageId=String(_.XB("DELEGATED_SESSION_ID")));return V};
_.WC=function(V){_.c("enable_ypc_spinners")&&_.o4(V,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},V])};
_.pL=function(V){_.c("enable_ypc_spinners")&&_.o4(V,"yt-close-popup-action",["yt-loading-renderer"])};
YVX=function(V){return new Promise(function(D,f){_.Em({verifyCommand:{recaptchaToken:V.recaptchaResponse}},{commandController:{onSuccess:function(n,t){t||f("ChallengeService did not return a response.");var J;D({challengeCompleted:(J=t.verified)!=null?J:!1})},
onServerError:function(n,t){f(t)}}})})};
$KF=function(V,D,f,n){D({recaptchaResponse:n}).then(function(t){t.challengeCompleted?_.lE()?(f(3),_.DY().resolve(_.fH).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:V}})):f(2):f(4)},function(){f(4)})};
iBX=function(V,D,f){_.EX("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.XB("HL"),function(){var n;(n=window.grecaptcha)==null||n.ready(function(){var t=window.grecaptcha;t?(f(t.render(V,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:$KF.bind(null,V,YVX,D)})),D(1)):D(4)})})};
SVZ=function(V,D){return function(){switch(D()){case 0:return V().captchaLoadingMessage;case 1:return V().challengeReason;case 3:return V().captchaSuccessfulMessage;case 2:return V().captchaCookieSetFailureMessage;case 4:return V().captchaFailedMessage;default:return V().challengeReason}}()};
_.LL=function(){if(!Wnd){var V=document.querySelector("#player.skeleton");V&&(_.ZC(V),Wnd=!0)}};
_.LnU=function(){return psZ=kbx()};
xKZ=function(){return _.w(function(V){return IGd!==void 0?V.return():_.b(V,OB9(),0)})};
OB9=function(){return _.w(function(V){if(V.nextAddress==1)return _.b(V,BCZ(),2);psZ=V.yieldResult;IGd=_.dm.addLowPriorityJob(OB9,5E3);_.yz(V)})};
fzY=function(V){var D=D===void 0?MiU:D;var f,n,t=(f=V.responseContext)==null?void 0:(n=f.mainAppWebResponseContext)==null?void 0:n.trackingParam;if(!t){D.increment("MISSING");var J,H,Q,T,y,Z;_.zP(new _.cI("282054944_a",{yxu:!!((J=V.responseContext)==null?0:(H=J.mainAppWebResponseContext)==null?0:H.loggedOut),hSS:((Q=V.responseContext)==null?void 0:Q.mainAppWebResponseContext)===void 0,dnS:V.responseContext===void 0,suj:(T=V.playabilityStatus)==null?void 0:T.contextParams,ofS:(((y=V.streamingData)==
null?void 0:y.formats)||[]).length>0,kQK:(((Z=V.streamingData)==null?void 0:Z.adaptiveFormats)||[]).length>0,os:!!V.offlineState,cotn:V.cotn}));return 2}f="";try{f=hpX(t)}catch(F){return D.increment("C_ERROR"),_.NG(F),2}try{var l=_.UK3(f);var G=VxL(l)}catch(F){return D.increment("P_ERROR"),_.NG(F),2}G=_.Vh(G,D$Z,1,_.DC());t=[];G=_.r(G);for(l=G.next();!l.done;l=G.next())n=l.value,l=n.getPath(),f=(0,_.sB.getValueByKeys)(V,l.split(".")),f=String(f===void 0||f===null?"":f),n=n.getValue()||"",J=/[+\-\/_]/g,
f.replace(J,"")!==n.replace(J,"")&&(D.increment("MISMATCH"),_.c("ab_mis_log_err")&&(f=new _.cI("282054944_p",{wwS:l,g:String(f),e:String(n)}),_.NG(f)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(l)||(l.match(/enforcementMessageViewModel/i)?t.push(3):t.push(2)));if(t.length>0)return Math.max.apply(Math,_.sz(t));D.increment("SUCCESS");return 1};
PDU=function(V){var D=new Im;if(V.interpreterJavascript){var f=_.gyZ(V.interpreterJavascript);f=AL(f).toString();var n=new nQd;_.lB(n,6,f);_.fc(D,1,n,Ar)}else V.interpreterUrl&&(f=_.mW(V.interpreterUrl),f=_.HS(f).toString(),n=new _.txY,_.lB(n,4,f),_.fc(D,2,n,Ar));V.interpreterHash&&_.O1(D,3,V.interpreterHash,Ar);V.program&&_.O1(D,4,V.program,Ar);V.globalName&&_.O1(D,5,V.globalName,Ar);V.clientExperimentsStateBlob&&_.O1(D,7,V.clientExperimentsStateBlob,Ar);return D};
xV=function(V){var D={};V=_.r(V.split("&"));for(var f=V.next();!f.done;f=V.next())f=f.value.split("="),f.length===2&&(D[f[0]]=f[1]);return D};
oQF=function(V){return Number(V.t)||7200};
u1Z=function(){if(_.c("bg_st_hr"))return"havuokmhhs-0";var V,D=((V=performance)==null?void 0:V.timeOrigin)||0;return"havuokmhhs-"+Math.floor(D)};
Jm3=function(){return new Promise(function(V){var D=window.top;D.ntpevasrs!==void 0?V(new MR(D.ntpevasrs)):(D.ntpqfbel===void 0&&(D.ntpqfbel=[]),D.ntpqfbel.push(function(f){V(new MR(f))}))})};
rm9=function(V){var D=V.nPJ.bind(V);_.M4("yt.aba.att",D);V=V.g55.bind(V);_.M4("yt.aba.att2",V)};
w0L=function(V){switch(_.Qx(V.input)){case _.xy(Hs9):var D={};return D.encryptedVideoId=V.innerTubeRequest.externalVideoId,D}return{}};
bsx=function(V){switch(_.Qx(V.input)){case _.xy(Hs9):if(_.c("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.xy(QeU):if(_.c("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.xy(hE):if(_.c("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&V.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.xy(T89):var D,f;if(_.c("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((f=_.g((D=V.config)==null?void 0:D.command,qhX))==null?0:f.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.ymU=function(V){var D;if(V.playlistVideoRenderer&&((D=V.playlistVideoRenderer)==null?0:D.engagementBar))return KdF(V.playlistVideoRenderer.engagementBar);if(_.g(V,U1)){var f;if(V=(f=_.g(V,U1))==null?void 0:f.engagementBar)return KdF(V)}return""};
KdF=function(V){if(!V)return"";V=_.g(V,_.ZsZ);if(V==null||!V.actions)return"";V=_.r(V.actions);for(V=V.next();!V.done;V=V.next()){V=_.g(V.value,_.je3);var D=void 0;if((D=V)==null||!D.itemId)break;return V.itemId}return""};
_.lzL=function(V){var D;if(V.playlistVideoRenderer&&((D=V.playlistVideoRenderer)==null?0:D.videoId))return V.playlistVideoRenderer.videoId;if(_.g(V,U1)){var f,n;if(V=(f=_.g(V,U1))==null?void 0:(n=f.playlistItemData)==null?void 0:n.videoId)return V}return""};
_.Gxx=function(V){var D;if(V.playlistVideoRenderer&&((D=V.playlistVideoRenderer)==null?0:D.voteCount))return V.playlistVideoRenderer.voteCount;if(_.g(V,U1)){var f,n;if(V=(f=_.g(V,U1))==null?void 0:(n=f.playlistItemData)==null?void 0:n.voteCount)return V}return 0};
_.V7=function(V,D){return _.wg(V.entities,"flowStateEntity",D)};
cmL=function(V,D,f,n){var t=void 0;V=_.r(V[D.iconName]||[]);for(var J=V.next();!J.done;J=V.next()){J=J.value;var H=D.iconSize;var Q=D.iconStyle;H=!H||H===J[2];var T=ebZ[J[0]];n&&n!==J[1]||!H||Q&&Q!==T?Q=!1:t?(Q=ebZ[J[0]],Q=!!D.iconStyle||Q==="youtube_outline",H=t.version<=J[1],Q=(!!D.iconSize||J[2]===24)&&Q&&H):Q=!0;Q&&(t={name:D.iconName,style:ebZ[J[0]],size:J[2],version:J[1],allowMirroring:!!J[3],url:f(D.iconName,J)})}return t};
Fdn=function(V,D,f,n){return V+(""+ebZ[f[0]]+((n===void 0?0:n)?"_experimental":"")+"/"+D+"/v"+f[1]+"/")+(f[2]+"px.svg")};
gQd=function(V,D){return Fdn("https://fonts.gstatic.com/s/i/",V,D)};
vQY=function(V,D){return Fdn("https://fonts.gstatic.com/s/i/",V,D,!0)};
kx9=function(V,D){return Fdn("https://www.gstatic.com/youtube/img/icons/web/",V,D)};
B8U=function(V){var D=V.enabled;var f=V.itemPlaybackModel;var n=V.thumbnailElRef;var t=V.containerElRef;var J=V.options;var H;_.BJ(function(){var Q=t==null?void 0:t.value;var T,y=(T=n())==null?void 0:T.value;T=f();var Z=J();if(D&&T&&Q&&y&&(Z==null?0:Z.thumbnail)){var l={data:T,hostElement:Q},G,F,k=_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover")?[].concat(_.sz((G=Z.thumbnailOverlays)!=null?G:[]),_.sz((F=T.overlays)!=null?F:[])):Z.thumbnailOverlays||[],d,z;Q={mediaRenderer:l,
lockupElement:Q,thumbnailElement:y,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Xo((d=T.inlinePlayerData)==null?void 0:d.onVisible),navigationEndpoint:_.Xo((z=T.inlinePlayerData)==null?void 0:z.onSelect),thumbnail:Z.thumbnail,thumbnailOverlays:k,accessibilityText:Z.accessibilityText||""},thumbnailSize:Z.thumbnailSize,enableRounding:Z.enableRounding}}}else Q=void 0;if(d=Q){var C;(C=H)==null||D1(C);H=a7(d);var A,O;((A=f())==null?0:(O=A.inlinePlayerData)==null?0:O.forceImpAutoplay)&&
seZ(H)}},"B33dEc");
_.dc(function(){var Q;(Q=H)==null||D1(Q)})};
d$X=function(V){V=atob(V);for(var D=[],f=0;f<V.length;f++)D.push(V.charCodeAt(f));return new Blob([new Uint8Array(D)],{type:"image/png"})};
N8n=function(V,D,f,n){n=n===void 0?"INSERTION_POSITION_UNSPECIFIED":n;return V({targetId:D},function(t){var J,H=(J=t.contents)!=null?J:[];J=f!=null?f:[];var Q=unR(H);switch(n){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},t,{contents:[].concat(_.sz(H.slice(0,Q)),_.sz(J),_.sz(H.slice(Q+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},t,{contents:[].concat(_.sz(J),_.sz(H))});case "INSERTION_POSITION_LAST":return Object.assign({},t,{contents:[].concat(_.sz(H),_.sz(J))});
default:return t}})};
zbZ=function(V,D,f,n,t){t=t===void 0?"RELATIVE_INSERTION_POSITION_AFTER":t;return V({targetId:D},function(J){var H,Q=(H=J.contents)!=null?H:[];H=m$X(Q,f);if(H<0)return J;H=t==="RELATIVE_INSERTION_POSITION_BEFORE"?H:H+1;return Object.assign({},J,{contents:[].concat(_.sz(Q.slice(0,H)),_.sz(n),_.sz(Q.slice(H)))})})};
unR=function(V){var D=V.findIndex(function(f){return _.g(f,_.fY)});
return D>=0?D:V.length};
m$X=function(V,D){return V.findIndex(function(f){a:{f=_.r(Object.values(f));for(var n=f.next();!n.done;n=f.next())if((n=n.value)&&n.targetId){f=n.targetId;break a}f=""}return f===D})};
CDZ=function(V,D,f){return V({targetId:D},function(n){var t,J=(t=n.contents)!=null?t:[];return Object.assign({},n,{contents:Rb3(J,f)})})};
Rb3=function(V,D){return V.filter(function(f){var n=D.includes;a:{f=_.r(Object.values(f));for(var t=f.next();!t.done;t=f.next())if((t=t.value)&&t.targetId){f=t.targetId;break a}f=""}return!n.call(D,f||"")})};
_.qvY=function(V,D){return{engagementPanelSectionListRenderer:{panelIdentifier:V,identifier:D,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.EQ9=function(V){var D,f=(D=V.getOption("captions","tracklist",{includeAsr:!0}))!=null?D:[];return f=X0x(f,V)};
Amx=function(V){return V.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
X0x=function(V,D){D=Amx(D);if(D==null||!D.length)return V;var f=D.filter(function(H){return H});
D=V.filter(function(H){return H.languageCode.startsWith("en")});
f=_.r(f);for(var n=f.next();!n.done;n=f.next())if(n=n.value,D.length){var t=D[0],J=Object.assign({},t);t.languageCode!==n.languageCode&&(J.displayName=t.languageName+" >> "+n.languageName,J.translationLanguage=n,V.push(J))}return V};
azY=function(V,D,f){V=_.EQ9(V);if(V.length)return f?V.find(function(n){if(typeof(n==null?void 0:n.translationLanguage)==="object"){var t;return((t=n.translationLanguage)==null?void 0:t.languageCode)===D}return!1}):V==null?void 0:V.find(function(n){return n.languageCode===D})};
Yvx=function(V){return V.getOption("captions","tracklist",{includeAsr:!0})};
$$F=function(V){return V.getOption("captions","tracklist",{includeAsr:!0})};
isn=function(V){var D=$$F(V);if(D==null?0:D.length)return D;V.loadModule("captions");return $$F(V)};
Svn=function(V){var D=V.getOption("captions","track");if(D)return D;V.loadModule("captions");return V.getOption("captions","track")};
p0L=function(V){var D=isn(V);if(D!=null&&D.length){var f=Svn(V),n;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Zl("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(f==null?0:f.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.sz(D.map(function(t){return{listItemViewModel:{title:{content:t.displayName},
isSelected:t.displayName===(f==null?void 0:f.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:t.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Zl("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!f.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!f.translationLanguage&&{selectionText:{content:(f==null?void 0:(n=f.translationLanguage)==null?void 0:n.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Wdc(V)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Wdc=function(V){var D=Amx(V);if(D==null||!D.length)throw Error("Fi");var f=Svn(V);V=D.filter(function(n){return!n.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.sz(V.map(function(n){var t;return{listItemViewModel:{title:{content:n.languageName},isSelected:n.languageName===(f==null?void 0:(t=f.translationLanguage)==null?void 0:t.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:n.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
x$n=function(V){return new Promise(function(D,f){if(V===void 0)_.NG(Error("Ji"),"ERROR"),f(Error("Ji"));else{f=new _.Ld3;var n=_.IzL();f=f.init();var t=_.Osc(_.XB("YPC_MB_URL"),!0);Promise.all([f,t]).then(function(){var J=payments.business.integration.ClientTokenFactory.createClientToken(V,n);D(J)})}})};
U$R=function(V,D,f,n,t,J,H){var Q=_.Sl();f=f.replace(/-/g,"+").replace(/_/g,"/");var T=_.Gm().get("hl"),y=_.nY(_.IB),Z=D==null?void 0:D.element;Z&&_.WC(Z);MxX(D,!0);_.hbY(y,f,Q.resolve,function(){Z&&_.pL(Z)},function(l){Z&&_.pL(Z);
Q.reject(l)},T,n?function(l){n&&_.ie(V,n,{backend_analytics:l})}:void 0,Q.resolve,t,J,H);
return Q.promise};
MxX=function(V,D){!(V=V==null?void 0:V.element)||V.tagName!=="YT-BUTTON-RENDERER"&&V.tagName!=="YTD-BUTTON-RENDERER"||(V.disabled=D)};
VV9=function(){var V=_.Zl("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Vc(V),actionButton:{buttonRenderer:GhU()}}},popupType:"TOAST"}};
DjF=function(){var V=_.Zl("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Vc(V),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
fKU=function(V){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:V}]}}};
tx=function(V,D,f,n){var t;return _.w(function(J){if(J.nextAddress==1)return _.wx(J,2),_.b(J,V,4);if(J.nextAddress!=2)return(t=_.cR(D.getState().entities).length>0)?J.return({title:_.Vc(_.Zl("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Vc(_.Zl("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:loY()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
J.return(ezd(f,n));_.KW(J);return J.return(ezd(f,n))})};
nZ9=function(V,D){return D?D==="PPSV"||qpY(V,D):!1};
tV9=function(V){V.responseContext||(V.responseContext={});V.responseContext.maxAgeSeconds=0;return V};
oN=function(V){var D;return _.w(function(f){return f.nextAddress==1?_.b(f,PxX(V,"service:topbar:fallback"),2):(D=f.yieldResult)&&_.PV(D)?f.return(tV9(_.PV(D))):f.return()})};
oZ9=function(V){var D;return _.w(function(f){return f.nextAddress==1?_.b(f,PxX(V,"service:downloads_settings:fallback"),2):(D=f.yieldResult)&&_.PV(D)?f.return(D):f.return()})};
PxX=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return V?_.b(n,V.get(D),2):n.return();f=n.yieldResult;return!f||!_.PV(f)||!isNaN(Number(f.data.expireTimestampMs))&&f.isExpired()?n.return():n.return(f)})};
JjF=function(V){var D=_.DY().resolve(Jx).getState().entities;return V.playlistId?nZ9(D,V.playlistId):!1};
rjY=function(V,D){var f;if(D==null?0:(f=D.requestTemplate)==null?0:f.panelId)V.panelId=D.requestTemplate.panelId;var n;if(D==null?0:(n=D.requestTemplate)==null?0:n.params)V.params=D.requestTemplate.params};
wPZ=function(){if(HPL)return HPL();var V=!_.c("idb_response_store_auth_killswitch"),D={};HPL=Ub("yt-it-response-store",{objectStores:(D.ResponseStore={addedAtVersion:1},D),shared:!V,upgrade:function(f,n){n(1)&&(f=Ei(f,"ResponseStore",{keyPath:["key","clientName"]}),AB(f,"byExpiration","expireTimestampMs"),AB(f,"byInterface","clientName"))},
version:1});return HPL()};
QS3=function(V){return _.iE(wPZ(),V)};
bPX=function(V,D){var f;return _.w(function(n){return n.nextAddress==1?_.b(n,_.hU(),2):(f=n.yieldResult)?n.return(new T9d(V,D,f)):n.return()})};
KVY=function(V){var D=Object.keys(V)[0];if(D)return V.screenExit&&(D=D+";"+V.screenExit.screen),D};
yjY=function(V){var D=new Map;V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,f!=null&&(D.has(f.taskType)||D.set(f.taskType,[]),D.get(f.taskType).push(f));return D};
ZPY=function(V){return!isNaN(V)&&V>0};
jSn=function(V){V=[].concat(_.sz(V)).sort(function(f,n){return f-n});
var D=Math.floor(V.length/2);return V.length%2?V[D]:(V[D-1]+V[D])/2};
e1Y=function(V,D){V=V===void 0?Zm9:V;D=D===void 0?{}:D;_.M4("yt.logging.errors.log",_.NG);K7U();lKZ(c2R(),D);window.onerror=V;GBL=y2L;window.addEventListener("unhandledrejection",function(f){if(f.reason instanceof Error){var n=f.reason;_.R2(n,{source:"unhandledrejection"});n.name==="AbortError"&&(n.level="WARNING")}y2L(f.reason);f.preventDefault()})};
_.cj3=function(V){return V.a11y.ephemeralAction||null};
_.FVR=function(V){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ,ZZ,sd,NU,Bn,aY,Ed,V0,kf,mY,Ko,Eu,y0,BH,wu,lF,rZ;return _.w(function(wP){if(wP.nextAddress==1)return _.b(wP,_.ZH(V,{mode:"readonly",enableRetries:!0},function(gP){return js(gP,"playbackData").then(function(uX){var cH=uX.map(function(ol){return ol.transfer}).filter(function(ol){return!!ol}),WH=uX.map(function(ol){return ol.offlineVideoPolicy}).filter(function(ol){return!!ol}),S5=uX.filter(function(ol){return!!ol.key}).map(function(ol){return _.HR(_.PR(ol.key).entityId,
"downloadStatusEntity")});
cH=js(gP,"transfer",cH);WH=js(gP,"offlineVideoPolicy",WH);S5=js(gP,"downloadStatusEntity",S5);var Il=cH.then(function(ol){ol=ol.reduce(function(al,cB){(cB==null?0:cB.offlineVideoStreams)&&al.push.apply(al,_.sz(cB.offlineVideoStreams));return al},[]).filter(function(al){return!!al});
return js(gP,"offlineVideoStreams",ol)});
return XT.all([cH,WH,Il,S5]).then(function(ol){var al=_.r(ol);ol=al.next().value;var cB=al.next().value;var jE=al.next().value;al=al.next().value;return[uX,ol,cB,jE,al]})})}),2);
if(wP.nextAddress!=3)return D=wP.yieldResult,_.b(wP,_.ZH(V,{mode:"readonly",enableRetries:!0},function(gP){return js(gP,"mainDownloadsListEntity").then(function(uX){var cH,WH;return(WH=(cH=uX[0])==null?void 0:cH.downloads)!=null?WH:[]})}),3);
f=wP.yieldResult;n=_.r(D);t=n.next().value;J=n.next().value;H=n.next().value;Q=n.next().value;T=n.next().value;y=t;Z=J;l=H;G=Q;F=T;k={};d={};z={};C={};A={};O=[];W=_.r(Z);for(I=W.next();!I.done;I=W.next())(x=I.value)&&(k[x.key]=x);oY=_.r(l);for(wZ=oY.next();!wZ.done;wZ=oY.next())(ZZ=wZ.value)&&(d[ZZ.key]=ZZ);sd=_.r(F);for(NU=sd.next();!NU.done;NU=sd.next())(Bn=NU.value)&&(z[Bn.key]=Bn);aY=_.r(G);for(Ed=aY.next();!Ed.done;Ed=aY.next())(V0=Ed.value)&&(C[V0.key]=V0);kf=_.r(f);for(mY=kf.next();!mY.done;mY=
kf.next())Ko=mY.value,Eu=void 0,A[(Eu=Ko.videoItem)!=null?Eu:""]=!0,Ko.videoItem&&(BH=y0=void 0,wu=(BH=(y0=_.PR(Ko.videoItem))==null?void 0:y0.entityId)!=null?BH:"",O.push({externalVideoId:wu}));lF=y.filter(function(gP){if(!gP||!gP.key||!gP.offlineVideoPolicy)return!1;gP=_.PR(gP.key).entityId;gP=_.HR(gP,"downloadStatusEntity");var uX;return!(gP&&((uX=z[gP])==null?void 0:uX.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
rZ=lF.map(function(gP){var uX=k[gP.transfer],cH=[];if(uX==null?0:uX.offlineVideoStreams)for(var WH=_.r(uX.offlineVideoStreams),S5=WH.next();!S5.done;S5=WH.next())(S5=C[S5.value])&&cH.push(S5);WH=d[gP.offlineVideoPolicy];S5=A;var Il=gP==null?void 0:gP.playerResponseTimestamp,ol=_.PR(WH.key).entityId;gP=_.HR(ol,"mainVideoEntity");if(WH.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var al="OFFLINE_VIDEO_STATE_DISABLED";WH.expirationTimestamp&&Number(WH.expirationTimestamp)<Date.now()/1E3&&(al="OFFLINE_VIDEO_STATE_EXPIRED")}else if(WH.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")al="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(uX==null?void 0:uX.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":al="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":al="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":al="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":al="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":al="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":al="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:al="OFFLINE_VIDEO_STATE_UNKNOWN"}if(al==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(uX==null?void 0:uX.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":al="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":al="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":al=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}ol={id:ol,videoState:al};if(uX==null?0:uX.cotn)ol.cotn=uX.cotn;if(uX==null?0:uX.maximumDownloadQuality)ol.selectedVideoQuality=uX==null?void 0:uX.maximumDownloadQuality;if(uX==null?0:uX.lastProgressTimeMs)ol.lastProgressTimeMs=uX.lastProgressTimeMs;Il&&(ol.playerResponseSavedTimeMs=String(Number(Il)*1E3));uX=String;Il=0;cH=_.r(cH);for(al=cH.next();!al.done;al=cH.next())if(al=al.value,al.streamsProgress){al=_.r(al.streamsProgress);for(var cB=al.next();!cB.done;cB=
al.next()){var jE=void 0;Il+=Number((jE=cB.value.numBytesDownloaded)!=null?jE:0)}}ol.downloadedBytes=uX(Il);ol.selectedOfflineMode=S5[gP]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";WH.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(ol.offlinePlaybackDisabledReason=WH.offlinePlaybackDisabledReason);return ol});
return wP.return({offlineVideos:rZ,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:O}}})})};
gZZ=function(){var V;return _.w(function(D){return D.nextAddress==1?_.b(D,_.bR(),2):(V=D.yieldResult)?D.return(_.FVR(V)):D.return({state:"PES Unavailable"})})};
sSd=function(){var V,D,f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,_.bR(),2);if(t.nextAddress!=3)return(V=t.yieldResult)?_.b(t,vZ9(V),3):t.return({state:"PES Unavailable"});D=t.yieldResult;f={};n=D.reduce(function(J,H){J[H.key]=H;return J},f);
return t.return(kB9(n))})};
kB9=function(V){for(var D={},f=[],n=_.r(Object.keys(V)),t=n.next();!t.done;t=n.next()){var J=t.value;t=V[J];var H=void 0;if(((H=t)==null?void 0:H.entityType)==="mainVideoEntity"){delete V[J];var Q=t.data;t={};if(Q){var T=void 0;H=(T=Q.videoId)!=null?T:"vid-"+J;J=V;t.video=Q;delete t.video.formattedDescription;delete t.video.thumbnail;Q.owner&&(T=J[Q.owner],T==null?0:T.data)&&(delete J[T.key],t.video.owner=T.data,delete t.video.owner.avatar);if(Q=Q.downloadState)if(T=J[Q],T==null?0:T.data)if(delete J[Q],
Q=T.data.playbackData)if(T=J[Q],T!=null&&T.data){delete J[Q];Q=T.data;delete Q.playerResponseJson;t.playbackData=Q;if(Q.transfer&&(T=J[Q.transfer],T==null?0:T.data)){delete J[T.key];var y=T.data;t.transfer=y;T=[];y=_.r(y.offlineVideoStreams||[]);for(var Z=y.next();!Z.done;Z=y.next())if(Z=J[Z.value])delete J[Z.key],T.push(Z.data);T&&(t.streams=T)}(Q=Q.offlineVideoPolicy)&&(Q=J[Q])&&Q.data&&(delete J[Q.key],t.offlineVideoPolicy=Q.data)}D[H]=t}}else t&&t.entityType==="offlineOrchestrationActionWrapperEntity"&&
t.data&&(delete V[t.key],H=t.data,J=void 0,f.push({id:H.rootActionId,type:((J=H.actionProto)==null?void 0:J.actionType)||"",entity:t}))}D.wrapperEntities=f;Object.keys(V).length>0&&(D.unknownKeys=V);return D};
B9L=function(){var V,D,f,n,t,J,H,Q,T;return _.w(function(y){if(y.nextAddress==1)return V=!!(new _.qY("")).expiringStorage_,n=!!((D=_.fx.crypto)==null?0:(f=D.subtle)==null?0:f.importKey),t=!!_.fx.BroadcastChannel,J=!!_.fx.navigator.locks,_.b(y,LIY(),2);H=y.yieldResult;Q=V&&n&&t&&J&&H;T={isSupported:Q};if(Q)return y.return(T);T.missingBrowserFeatures=[];H||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");V||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
n||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");t||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");J||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return y.return(T)})};
djZ=function(){var V;return!((V=rK?rK:null)==null||!V.window)};
_.N9Y=function(V){if(_.mX()&&_.QY9("Chromium")>=120){var D=_.uMn().mediaSession;try{D.setActionHandler("enterpictureinpicture",function(){V()})}catch(f){}}};
mjx=function(V){for(var D=[],f=_.r(document.styleSheets),n=f.next(),t={};!n.done;t={node$jscomp$730:void 0},n=f.next())t.node$jscomp$730=n.value.ownerNode,t.node$jscomp$730&&(t.node$jscomp$730 instanceof HTMLStyleElement||t.node$jscomp$730 instanceof HTMLLinkElement)&&D.push(new Promise(function(J){return function(H){var Q=J.node$jscomp$730.cloneNode(!0);Q.onload=function(){H()};
Q.onerror=function(){_.zP(Error("lj"));H()};
V.document.head.appendChild(Q)}}(t)));
return Promise.all(D)};
$jn=function(V){var D=[_.fi(z1x),_.fi(R1n),_.fi(Cx9)];qM9(window.document.documentElement,V.document.documentElement,[_.fi(XPc),_.fi(EZY),_.fi(Aj9),_.fi(aKR),_.fi(YM3)]);qM9(window.document.body,V.document.body,D)};
qM9=function(V,D,f){V=_.r(V.attributes);for(var n=V.next();!n.done;n=V.next())if(n=n.value)try{_.iv(f,D,n.name,n.value)}catch(t){}};
SMX=function(V,D){V=new _.HV(V.document.documentElement);V.start(iPX,D);return V};
WVZ=function(V){var D=V.document.documentElement;D.addEventListener("click",function(f){LTL(D,f)});
D.addEventListener("touchstart",function(f){hud(f)});
D.addEventListener("mousedown",function(f){hud(f)})};
LV9=function(V,D,f,n){n=n===void 0?!1:n;D=new pPY(D||V,f||V);return{x:V.x+((n===void 0?0:n)?D.lengthX*-1:D.lengthX)*.2,y:V.y+((n===void 0?0:n)?D.lengthY*-1:D.lengthY)*.2}};
IKF=function(V){if(!V)return!1;var D=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",f,n,t,J=(t=(f=V.errorScreen)==null?void 0:f.playerLegacyDesktopYpcTrailerRenderer)!=null?t:(n=V.errorScreen)==null?void 0:n.ypcTrailerRenderer;return!!D||!!J};
_.OPF=function(V,D){if(!V)return!1;var f,n=(f=V.errorScreen)==null?void 0:f.playerLegacyDesktopYpcOfferRenderer,t;D=!!(D==null?0:(t=D.playerOverlayRenderer)==null?0:t.gatedActionsOverlayRenderer);return!!IKF(V)||!!n||!!D};
h13=function(V){return xjY(V,0,"gclid",V.search(MV9))>=0||xjY(V,0,"gad_source",V.search(MV9))>=0};
DfX=function(V){var D=[],f=0;return{clear:function(){f=D.length=0},
push:function(n){D[f]=n;f=(f+1)%V},
iterate:function(){return function t(){var J,H,Q,T;return _.Ujd(t,function(y){switch(y.nextAddress){case 1:_.TO(y,2),J=D.length,H=0;case 4:if(!(H<J)){y.jumpTo(2);break}Q=f+H;T=_.V8X;return _.b(y,D[Q%J],7);case 7:T(y.yieldResult);H++;y.jumpTo(4);break;case 2:_.Qz(y),_.bK(y,0)}})}()}}};
nkZ=function(){var V=fm3,D=xu.bufferSize;V||(V=[]);V=V.map(r3n);var f=new Set(V),n=DfX(D);return{flush:function(){var t=Array.from(n.iterate());n.clear();t=t.map(function(J){return{name:J.name,timestamp:J.startTime,attributes:J.attributes}});
return JSON.stringify(t)},
onSpanStart:function(t){t.name==="event"&&f.has(t.attributes.type)||n.push(t)}}};
t89=function(){var V=nkZ(),D=V.flush;XEL({onSpanStart:V.onSpanStart});s5R.subscribe("handleError",function(f){try{f.params.breadcrumbs=D()}catch(n){_.NG(n,"WARNING")}})};
PcZ=function(V,D,f){var n=V.endTime;if(n==null)throw Error("nj");var t=V.name,J={};n-=V.startTime;var H=V.startTime;J={webTracing:(J[t]=V.attributes,J)};f=_.a9(h4Y)(t,n,H,J,f,D);if(V.children)for(V=_.r(V.children),t=V.next();!t.done;t=V.next())PcZ(t.value,D,f)};
JC9=function(){for(var V={},D=_.r(xu.enabledSpansArray),f=D.next();!f.done;f=D.next())V[f.value]=!0;if(xu.exportToCsi||xu.exportBreadcrumbs)V={enabledSpans:V},x8={sessionId:V.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:V.enabledSpans};xu.exportBreadcrumbs&&t89();xu.exportToCsi&&XEL(okF)};
rCX=function(V){return new Promise(function(D){window.setTimeout(D,V)})};
HrY=function(V){var D={bicf:function(J){V.ynD=J},
blc:function(){return V.getLatestChallengeResponse()},
bcr:function(J){V.oG3.push(J)}},f=window.top;
f.ntpevasrs=D;if(f.ntpqfbel!==void 0)for(var n=_.r(f.ntpqfbel),t=n.next();!t.done;t=n.next())t=t.value,t(D);f.ntpqfbel=void 0};
wzZ=function(V){return _.w(function(D){if(D.nextAddress==1)return _.wx(D,2),_.b(D,V.v1j(),4);if(D.nextAddress!=2)return _.YJ(D,0);_.KW(D);_.yz(D)})};
Q6X=function(V){var D,f;(D=V.ytcsi)==null||(f=D.tick)==null||f.call(D,"pot_ist")};
T7L=function(V){if(V instanceof Error){var D=_.Yw("yt.logging.errors.log");D&&D(V,"WARNING")}};
br9=function(V){try{var D=JSON.parse(V);if(D.bgChallenge)return D}catch(f){}};
yC9=function(){var V=window,D={networkStatusManagerPromise:_.DY().resolve(new uz3(_.ik)),initialChallengeSli:_.c("wpo_att_sli")?new _.XTF("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};V=V===void 0?window:V;var f=V.ytAtR,n;D==null||(n=D.initialChallengeSli)==null||_.wK(n);if(f){if(f=br9(f)){var t;D==null||(t=D.initialChallengeSli)==null||_.Q7(t,"SUCCESS");KPd(f,D)}V.ytAtR=void 0}else V.ytAtRC=function(J){if(J=br9(J)){var H;D==null||(H=D.initialChallengeSli)==null||
_.Q7(H,"SUCCESS");KPd(J,D);V.ytAtRC=void 0}}};
lmR=function(){if(ZrX)return ZrX;try{var V=_.yh("IFRAME");_.N8(V,_.t4(j63));V.sandbox.add("allow-same-origin");V.style.display="none";document.body.appendChild(V);return ZrX=V}catch(D){V=new _.cI("Failed to create sandbox iframe"),_.NG(V)}};
G89=function(V){var D,f;return(f=V==null?void 0:(D=V.contentWindow)==null?void 0:D.fetch)!=null?f:window.fetch};
eQY=function(V){var D,f;return(f=V==null?void 0:(D=V.contentWindow)==null?void 0:D.JSON.parse)!=null?f:JSON.parse};
cCX=function(V){var D,f;return(f=V==null?void 0:(D=V.contentWindow)==null?void 0:D.Request)!=null?f:window.Request};
FPn=function(V){var D,f;return(f=V==null?void 0:(D=V.contentWindow)==null?void 0:D.TextDecoder)!=null?f:window.TextDecoder};
gk9=function(){return function(V,D){_.XB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[V]=D}};
vkd=function(){return function(V,D){var f={};f[V]=D;V=_.a9(_.x7x)(f);Object.keys(V).length>0&&_.N1(V)}};
B7L=function(){if(APF()==="hidden")var V="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else APF()==="visible"&&(V="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",k8U=null);V&&s6F(V)};
s6F=function(V){if(V==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||V==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(dfF===V)return;dfF=V}var D=9E4+Math.random()*2E3;if(V!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Vf()>D)&&APF()==="visible"){D=-1;k8U&&(D=Math.round((0,_.VW)()-k8U));var f=String;var n=_.Yw("_fact",window);n=n==null||n==-1?-1:Math.max(Date.now()-n,0);_.dq("foregroundHeartbeat",{firstActivityMs:f(n),clientDocumentNonce:lUZ,index:String(uD3),lastEventDeltaMs:String(D),trigger:V});
_.M4("_fact",-1,window);uD3++;k8U=(0,_.VW)()}};
_.N7X=function(){try{return!!self.sessionStorage}catch(V){return!1}};
mfX=function(){var V=navigator;return new Promise(function(D,f){var n;(n=V.webkitTemporaryStorage)!=null&&n.queryUsageAndQuota?V.webkitTemporaryStorage.queryUsageAndQuota(function(t,J){D({usage:t,quota:J})},function(t){f(t)}):f(Error("vj"))})};
zQX=function(V,D){var f={errorSeverity:D.errorSeverity.toString(),wizFeatureFlags:Object.entries(D.featureFlags).join("\n")};bm9(D,f);D=D.errorSeverity;D===3?_.NG(V,"ERROR",void 0,void 0,void 0,f):D===2&&_.NG(V,"WARNING",void 0,void 0,void 0,f);_.c("cow_if_errors_in_popup")&&D===3&&V.message.indexOf("<If>")!==-1&&window.alert(V.message)};
RQR=function(V,D){var f=O2.get(V)||{layerNode:D};f.layerNode=D;CiL(V,f);V.getScreenLayer=function(){return T3(f.layerNode)}};
Cc9=function(V){var D;V=V.parentNode;for(var f;V&&((D=O2.get(V))==null||!D.isRenderer)&&!((f=V.polymerController)!=null?f:V).isRenderer_;)V=V.parentNode||V.host;if(D=V)return O2.get(D)};
qfX=function(V){if(V){O2.delete(V);var D=_.DY().resolve(Uq);A0Y(V,D)}};
Ekx=function(V,D,f){if(f===void 0?0:f){if(f=V.getAttribute("client-ve-type"),D.data&&!D.disableReactiveLogging||f)_.mK(function(){Xz9(V,_.Nq(D.data))}),_.dc(function(){return void qfX(V)})}else typeof D.data!=="function"&&Xz9(V,D.data)};
Xz9=function(V,D){ACR++;amZ(V,D)&&_.dm.addJob(function(){_.sw(_.dm,function(){if(amZ(V,D)&&V.ownerDocument.documentElement===document.documentElement&&V){var f;if(V.getAttribute("layer")){var n=f=Number(V.getAttribute("layer")),t=O2.get(V);t?t.layerNode.layer=n:RQR(V,new Yfc(n));(n=Cc9(V))&&(t=O2.get(V))!=null&&(t.layerNode.parent=n.layerNode)}else if(f=O2.get(V))f=T3(f.layerNode);else{f=T3;n=new Yfc;if(t=Cc9(V))n.parent=t.layerNode;RQR(V,n);f=f(n)}f!=null||(f=0);n=V.getAttribute("client-ve-type");
t=Number(n);var J=!1;n=!1;var H=O2.get(V),Q;if((Q=H)&&!(Q=H[$fc]!==D)&&(Q=t)){var T;Q=((T=O2.get(V))==null?void 0:T.clientVeType)===void 0}Q&&(H[$fc]=D,J=n=H.isRenderer=!0);O2.has(V)&&(O2.get(V).clientVeType=t);V.visualElement&&(n=!0);if(_.c("wiz_next_ld_fix_client_ve_spec")){var y;T=((y=_.g(D==null?void 0:D.rendererContext,_.GK))==null?void 0:y.loggingDirectives)||(D==null?void 0:D.loggingDirectives)}else T=D==null?void 0:D.loggingDirectives;T&&T.clientVeSpec&&(y=irR(_.Zb(),V),y=_.SfY(_.lS(),T,y||
void 0,f))&&(V.visualElement=y);!V.visualElement&&t&&J&&(V.veType=t,y=void 0,_.c("wiz_next_client_ve_parent_fix")&&(y=irR(_.Zb(),V)),y=_.jD(_.lS(),V,y,f),V.visualElement=y);n&&(y=_.DY().resolve(Uq),i59(V,{data:D,observer:y,layer:f,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
amZ=function(V,D){return(D==null?0:D.trackingParams)||(D==null?0:D.loggingDirectives)||_.g(D==null?void 0:D.rendererContext,_.GK)||V.getAttribute("client-ve-type")?!0:!1};
WPY=function(V,D,f){V.componentType!==FY&&f instanceof HTMLElement&&D&&!_.c("cow_logging_in_component_wrapper")&&Ekx(f,D,!0)};
M8d=function(){if(!pz9){pz9=!0;var V=Object.assign({},{enableLazyTsx:_.c("mweb_enable_wiz_lazy_tsx")||_.c("kevlar_enable_wiz_lazy_tsx")||_.c("creator_enable_wiz_lazy_tsx")||LPn,flushRenderEffectsDuringRender:!0},{handleError:zQX,enableComponentStacksInErrorMessages:!1});Object.assign(UR,V);NqY=ImU;Or3();qqn=J0Y;zhc=r0F;_.c("ytwiz_enable_debug_component_props")&&(V=document.body.firstElementChild,window.ng||V.__ngContext__||(V.__ngContext__={},V.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
xfX))}};
Or3=function(){_.c("cow_logging_in_component_wrapper")?(ZzU=function(V,D){D instanceof HTMLElement&&Ekx(D,V,!0)},GP9=function(){}):(ZzU=function(){},GP9=WPY)};
hQ3=function(V,D,f){D=D===void 0?{}:D;var n,t=(n=_.g(V.commandMetadata,_.he))==null?void 0:n.url;n=D.form||{};!f||n.element||n.skipDefaultElement||(D.form=D.form||{},D.form.element=f);if(t&&t!=="/service_ajax")return{type:0,command:V,form:D.form};if(_.c("kevlar_service_command_check")){if(_.$l(_.DY().resolve(_.CR),V))return Object.assign({},{type:1,command:V},D)}else{var J;if((J=_.g(V.commandMetadata,_.he))==null?0:J.apiUrl)return Object.assign({},{type:1,command:V},D)}return{type:2,command:V,form:D.form}};
Ufn=function(V){if(V.form){var D=V.form,f=Object.assign({},D);D=D.element;f=(delete f.element,f);if(D)return[_.HA(D,[V.command,f,V.commandController])]}return[]};
VIY=function(V){if(V.form){var D=V.form,f=Object.assign({},D);D=D.element;f=(delete f.element,f);D&&_.wN(D,[V.command],D,f)}};
fi3=function(V,D,f){var n=new DpL(V,D),t=new bY(V,D,f);V={"/youtubei/v1/browse":new KY(V,D,f),"/youtubei/v1/player":n,"/youtubei/v1/navigation/resolve_url":new y7,"/youtubei/v1/next":t,"/youtubei/v1/guide":new Z1(f),"/youtubei/v1/search":new j9(V,D,f),"/youtubei/v1/reel/reel_item_watch":new lY(V,D,f),"/youtubei/v1/get_watch":new G3(n,t)};V["/youtubei/v1/account/account_menu"]=new e9;V["/youtubei/v1/notification/get_notification_menu"]=new cV;return V};
gK=function(){var V=_.DY().resolve(Fc);return Promise.resolve(nMd(V,_.fx.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
tIx=function(V){return V&&(V=_.vV(_.l_n(V)))?(new URLSearchParams(V)).get("service"):null};
BV=function(V,D){_.JI(_.kv(),function(){_.zm("adl")});
_.DY().resolve(PpZ)(D);V=V.root;V.loadData&&V.loadData(D);(D==null?0:D.response)?_.Q7(aU9(),"SUCCESS"):_.zP(new _.cI("Lifecycle: No response in data",_.EG("IS_SHELL_LOAD"),D?D.page:"NO_PAGE",D?D.endpoint:"NO_ENDPOINT"));V.polymerController.$["page-manager"].lazyPrepareCriticalPages((D==null?void 0:D.page)||"",D.endpoint);var f,n;((n=_.g(D==null?void 0:(f=D.endpoint)==null?void 0:f.commandMetadata,_.he))==null?0:n.webPageType)&&_.Ol().dispatch(_.s5(_.g(D.endpoint.commandMetadata,_.he).webPageType))};
oM9=function(){var V,D;return _.w(function(f){switch(f.nextAddress){case 1:V=window;if(!V.getDataPromise){f.jumpTo(2);break}_.wx(f,3);return _.b(f,V.getDataPromise(),5);case 5:return f.return(f.yieldResult);case 3:return _.KW(f),_.b(f,gK(),6);case 6:return f.return(f.yieldResult);case 2:if(V.getInitialData)return D=V.getInitialData(),V.getInitialData=void 0,f.return(D);throw Error("xj`"+_.fx.location.href);}})};
rJL=function(){_.ql("CSI_SERVICE_NAME","youtube");_.N1({loadType:"cold"});_.c("kevlar_log_lcp")&&JJZ(function(V){_.zm("lcp",V.value)})};
HD9=function(){var V=_.Al(document.location.href,"enable");V&&V.indexOf("scraper")>-1&&_.ql("ADD_SCRAPER_ATTRIBUTES",!0)};
KFZ=function(V){var D=V.root;V=[weR,Qn9,_.dK];_.c("web_feedback_endpoint_autolog_allowlist_killswitch")&&V.push(_.uY,TV9);bDY(function(f,n){return hQ3(f,n,D)},function(f){if(!f.command)return[];
var n;((n=f.form)==null?0:n.element)?f.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},f.form,{endpoint:f.command})})):D.handleNavigate(f);return[]},V);
_.DY().addProvider({provide:_.fH,useValue:_.bS.instance})};
ZD9=function(){var V={},D={},f;for(f in yJX){var n=_.r(_.HJ(yJX[f],void 0,"NBH2te"));V[f]=n.next().value;D[f]=n.next().value}return[V,function(t){for(var J in t){var H=void 0;(H=D[J])==null||H(t[J])}}]};
_.GAX=function(V,D){var f=_.sB.getValueByKeys(V,"contents","twoColumnWatchNextResults","results","results","contents"),n=_.sB.getValueByKeys(V,"contents","twoColumnWatchNextResults","playlist","playlist")||null,t=null,J=null;if(n)t=_.sB.getValueByKeys(n,"titleText"),J=_.sB.unsafeClone(_.sB.getValueByKeys(n,"longBylineText")),f="",J&&(f=_.LA(J)),J=_.pA(f);else if(f){f=_.r(f);for(var H=f.next();!H.done;H=f.next())H=H.value,H.videoPrimaryInfoRenderer&&(t=_.sB.getValueByKeys.apply(_.sB,[H].concat(_.sz(jnZ)))),
H.videoSecondaryInfoRenderer&&(J=_.sB.getValueByKeys.apply(_.sB,[H].concat(_.sz(lin))))}else _.$w(Error("Cj"));var Q;V.currentVideoEndpoint?Q=V.currentVideoEndpoint:_.$w(Error("Dj"));var T;D&&(T=_.sB.getValueByKeys(D,"playabilityStatus","miniplayer","miniplayerRenderer"));V={miniplayerTitle:t,miniplayerSubtitle:J,watchEndpoint:Q,playlistData:n};T&&(V.miniplayerRenderer=T);return V};
eoZ=function(V){if(V)return _.zK(V)};
_.cJn=function(){return{isFullscreen:function(){throw Error("Ej");},
toggleFullscreen:function(){throw Error("Fj");},
exitFullscreen:function(){throw Error("Gj");},
isAutonavEnabled:function(){throw Error("Hj");},
setAutonavEnabled:function(){throw Error("Ij");},
isAutoplaySetExplicitly:function(){throw Error("Jj");}}};
FFU=function(V){return V.videoDuration?V.numTaps>1&&V.tapDirection!==0?_.Nw(V.draggedTime/V.videoDuration,0,1):_.Nw((V.playedTime||0)/V.videoDuration,0,1):0};
gM3=function(V){return V.videoDuration?V.isDragging||V.numTaps>1&&V.tapDirection!==0?_.Nw(V.draggedTime/V.videoDuration,0,1):_.Nw((V.playedTime||0)/V.videoDuration,0,1):0};
kAZ=function(V){var D,f,n;return _.g(V==null?void 0:(D=V.markersMap)==null?void 0:(f=D.find(function(t){return t.key==="HEATSEEKER"}))==null?void 0:(n=f.value)==null?void 0:n.heatmap,vMX)};
snY=function(V){var D,f;return(f=(D=kAZ(V))==null?void 0:D.heatMarkersDecorations)!=null?f:[]};
BVR=function(V){if(_.c("mweb_supported_chapters_killswitch"))return!0;var D;return!!(V==null?0:(D=V.markersMap)==null?0:D.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))};
_.dpY=function(V){var D=Object,f=D.assign,n;V={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(n=V==null?void 0:V.getPlayerState())!=null?n:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return f.call(D,{},{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},V,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
uZL=function(V){return function(D){var f=V(),n,t=(n=f.playerApi)==null?void 0:n.getPlayerState();D&&D!==f.playerState&&(D===1||D===2)&&f.setState({playerState:t})}};
mpY=function(V){return function(D){var f=V(),n=f.playerApi;n&&(D==null?void 0:D.type)==="newdata"&&(NVZ&&(clearTimeout(NVZ),NVZ=void 0),_.c("web_shorts_use_progress_state_for_gapless")?(D=n==null?void 0:n.getProgressState(D==null?void 0:D.playertype),D=D.seekableEnd-D.seekableStart):D=n==null?void 0:n.getDuration(D==null?void 0:D.playertype),f.setState({playedTime:0,videoDuration:D}))}};
zoR=function(V){return function(D){var f=V(),n=f.playerApi;if(n){var t=n.getPresentingPlayerType();_.c("web_shorts_use_progress_state_for_gapless")?(n=n.getProgressState(t),n=n.seekableEnd-n.seekableStart):n=n.getDuration(t);f.setState({playedTime:D,videoDuration:n})}}};
Cp9=function(V){_.mD(112394,V,function(){return RoX},function(D){RoX=D})};
EM9=function(V,D){if(!V)return[];var f,n,t;V=((f=V.markersMap)==null?void 0:(n=f.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))==null?void 0:(t=n.value)==null?void 0:t.chapters)||[];
!qLd(V)||(D==null?0:D.ignoreStub)||(V=[XeY()].concat(_.sz(V)));return V};
XeY=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
qLd=function(V){if(V.length===0)return!1;var D;return((D=_.g(V[0],m$))==null?void 0:D.timeRangeStartMillis)!==0};
z3=function(V){return V?V.timeRangeStartMillis||0:0};
ai9=function(V,D){if(V.isDragging&&D)return V=AJc(V,D),V===-1?XeY():EM9(D)[V]};
AJc=function(V,D){return V.isDragging&&D?EM9(D,{ignoreStub:!0}).findIndex(function(f,n,t){f=YLY(V);return $p3(f,t,n).scrubberHovering}):-1};
YLY=function(V){return Object.assign({},V,{videoDuration:V.videoDuration*1E3,playedTime:V.playedTime*1E3,draggedTime:V.draggedTime*1E3})};
$p3=function(V,D,f){var n=z3(_.g(D[f],m$));D=z3(_.g(D[f+1],m$))||V.videoDuration;f=V.isDragging;var t;if(t=V.isDragging)t=V.draggedTime,t=t!==null&&t>=n&&t<D;var J=V.playedTime;return J!==null&&J>=n&&J<D?{videoPosition:"active",isScrubbing:f,scrubberHovering:t}:V.playedTime<n?{videoPosition:"pending",isScrubbing:f,scrubberHovering:t}:{videoPosition:"seen",isScrubbing:f,scrubberHovering:t}};
iDX=function(V,D){return V.videoPosition==="seen"||(D===void 0?0:D)>0};
SLY=function(V,D,f){D=V/D.storyboardInterval;var n=EM9(f);if(!n.length)return-D*72;f=0;n=_.r(n);for(var t=n.next();!t.done;t=n.next())if(z3(_.g(t.value,m$))/1E3<V)f++;else break;return-(D*72)-f*56};
WFX=function(V){return V?V.width/V.columns:0};
peR=function(V){return V.isHovering?V.hoveredTime:V.draggedTime};
LFU=function(V,D){V=V.draggedTime*1E3;return V>=D.visibleTimeRangeStartMillis&&V<=D.visibleTimeRangeEndMillis};
_.IiL=function(V){if(V===void 0||Number.isNaN(V))return"--:--";var D=Math.abs(Math.floor(V)),f=Math.floor(D/86400),n=Math.floor(D%86400/3600),t=Math.floor(D%3600/60);D=Math.floor(D%60);var J="";f>0&&(J+=f+":",n<10&&(J+="0"));if(f>0||n>0)J+=n+":",t<10&&(J+="0");J+=t+":";D<10&&(J+="0");J+=D;return V>=0?J:"-"+J};
OD3=function(V,D){return function(){var f=peR(V());var n=D();var t=V().playerApi;if(t&&t.getNumberOfStoryboardLevels()!==0){var J=t.getStoryboardFrameIndex(f,1);J!==-1?n=t.getStoryboardFrame(J,1):(f=t.getStoryboardFrameIndex(f,0),t=t.getStoryboardFrame(f,0),n&&t&&(t.height*=3,t.width*=3),n=t)}else n=null;if(!n)return null;D()&&(n.width=90*n.columns,n.height=160*n.rows);return n}};
_.RN=function(V){if(!V||V.getVideoData)return V};
xpd=function(){var V;return{playerApi:(V=_.ra())!=null?V:void 0}};
MI3=function(V){var D;_.w(function(f){if(f.nextAddress==1)return _.b(f,_.JY(),2);if(D=f.yieldResult)D.unMute(!0),D.setVolume(V,!0);_.yz(f)})};
hoL=function(V,D){V&&(V.value=""+D,V.style.setProperty("--gradient-percent",D+"%"))};
Upn=function(V){var D;return(D=V==null?void 0:V.value)!=null?D:0};
VFX=function(){var V;_.w(function(D){if(D.nextAddress==1)return _.b(D,_.JY(),2);V=D.yieldResult;if(!V)return D.return();V.isMuted()?V.unMute(!0):V.mute(!0);_.yz(D)})};
D5R=function(V){var D=_.DY().resolve(_.qw).getPlayerElement();D&&V&&(V===1?D.pause():D.play())};
fcx=function(V){_.JR(V,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
nzL=function(V){_.JR(V,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
PlL=function(V){return _.sG(V.document.body,function(){return _.K(tF3,null)})};
oz9=function(){var V=window.performance.getEntriesByType("navigation");return V?V.map(function(D){return D.type}).includes("reload"):!1};
K_F=function(){Xc(Xc(Xc(Xc(Xc(Xc(Xc(_.DY().resolve(_.E5),_.JXX),_.rXY),_.H7Y),_.wU9),_.Qhd),_.Tyd),_.b7U)};
yX9=function(V,D){D=D===void 0?!1:D;var f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return D||!_.c("kevlar_shorts_seedless_retry_initial_load")||(f=window,n=!(!f.getDataPromise&&!f.getInitialData),n)?_.b(H,oM9(),2):(setTimeout(yX9.bind(window,V,!0),1E3),H.return());if(H.nextAddress!=3)return t=H.yieldResult,_.b(H,Z7R(t),3);J=H.yieldResult;BV(V,J);_.yz(H)})};
Z7R=function(V){var D;if((D=V.response)==null||!D.replacementEndpoint)return _.Qv(V);D=_.DY().resolve(Fc);V=V.response;_.g(V.replacementEndpoint,_.gU)&&V.sequenceContinuation&&(_.g(V.replacementEndpoint,_.gU).sequenceParams=V.sequenceContinuation);return Ax(D,V.replacementEndpoint,{},_.fx.location.href,"shorts",function(){},function(){return!1})};
lcZ=function(V){var D=_.DY().resolve(jh9);V.playerResponse&&D.handleResponse(V.playerResponse);V.response&&D.handleResponse(V.response)};
GEF=function(V){var D=_.Ol(),f,n=_.g((f=V.response)==null?void 0:f.frameworkUpdates,pT),t;f=_.g((t=V.playerResponse)==null?void 0:t.frameworkUpdates,pT);var J;V=_.g((J=V.reelWatchSequenceResponse)==null?void 0:J.frameworkUpdates,pT);n&&_.yc(n,D);f&&_.yc(f,D);V&&_.yc(V,D)};
e3Z=function(V){var D;_.c("enable_redirect_linking_for_desktop_web_client")&&((D=window.location.hash)==null?0:D.includes("redirect_state"))&&V.url&&(V.url=V.url.toString()+window.location.hash)};
gz9=function(V){var D=_.DY(),f=D.resolve(Fc);D=D.resolve(_.cXY);V.endpoint&&(f=F_R(f,V.endpoint),f.content&&V.response&&_.aN(D,V.response,f.content),f.player&&V.playerResponse&&_.aN(D,V.playerResponse,f.player),f.reelSequence&&V.reelWatchSequenceResponse&&_.aN(D,V.reelWatchSequenceResponse,f.reelSequence))};
Yv=function(V,D){_.c("web_service_params_response_processor")&&lcZ(D);GEF(D);var f;(D==null?0:D.url)&&((f=window.location.hash)==null?0:f.includes("redirect_state"))&&(e3Z(D),(f=tIx(D.url))&&_.o4(V.root,"yt-initialize-third-party",[f,D]));gz9(D);f=_.DY();var n=f.resolve(vz3);D.playerResponse&&f.resolve(kEc).handleResponse(D.playerResponse);if(D.playerResponse){f=void 0;if(_.c("ab_v_vid_sig")&&D.endpoint){var t,J=(t=_.g(D.endpoint,_.pl))!=null?t:_.g(D.endpoint,_.gU);J&&(f=J.videoId)}shn(n,D.playerResponse,
f)}D.playerResponse&&VH3(D.playerResponse)&&_.c("web_enable_ab_rsp_cl")?xKZ().then(function(){Byc(n,D.playerResponse);BV(V,D)}):BV(V,D)};
ug9=function(V){if(V=V.root.data){var D=_.DY().resolve(d5d);V.endpoint&&(V.response&&D.handleResponse(V.response,void 0,document.querySelector("ytd-app")),V.playerResponse&&D.handleResponse(V.playerResponse),V.reelWatchSequenceResponse&&D.handleResponse(V.reelWatchSequenceResponse))}};
NyZ=function(V){var D,f,n,t,J,H;return _.w(function(Q){switch(Q.nextAddress){case 1:D=window;if(!D.getDataPromise){Q.jumpTo(2);break}_.wx(Q,3);return _.b(Q,D.getDataPromise(),5);case 5:f=Q.yieldResult;Yv(V,f);_.YJ(Q,4);break;case 3:return _.KW(Q),_.b(Q,gK(),6);case 6:n=Q.yieldResult,BV(V,n);case 4:return Q.return();case 2:if(!_.c("sw_nav_preload_pbj")){Q.jumpTo(7);break}D.fetchInitialData=function(){var T;return _.w(function(y){if(y.nextAddress==1)return _.b(y,gK(),2);T=y.yieldResult;BV(V,T);_.yz(y)})};
if(D.getInitialData){D.loadInitialData=function(T){Yv(V,T)};
t=D.getInitialData();D.getInitialData=void 0;Yv(V,t);Q.jumpTo(8);break}D.fetchInitialData=void 0;return _.b(Q,gK(),9);case 9:J=Q.yieldResult,BV(V,J);case 8:return Q.return();case 7:D.getInitialData?(H=D.getInitialData(),D.getInitialData=void 0,Yv(V,H)):D.loadInitialData=function(T){Yv(V,T)},_.yz(Q)}})};
m5Y=function(V){var D=0;return function(){return D<V.length?{done:!1,value:V[D++]}:{done:!0}}};
z3x=typeof Object.defineProperties=="function"?Object.defineProperty:function(V,D,f){if(V==Array.prototype||V==Object.prototype)return V;V[D]=f.value;return V};
R3L=function(V){V=["object"==typeof globalThis&&globalThis,V,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var D=0;D<V.length;++D){var f=V[D];if(f&&f.Math==Math)return f}throw Error("a");};
_.IG=R3L(this);$v=function(V,D){if(D)a:{var f=_.IG;V=V.split(".");for(var n=0;n<V.length-1;n++){var t=V[n];if(!(t in f))break a;f=f[t]}V=V[V.length-1];n=f[V];D=D(n);D!=n&&D!=null&&z3x(f,V,{configurable:!0,writable:!0,value:D})}};
$v("Symbol",function(V){if(V)return V;var D=function(J,H){this.$jscomp$symbol$id_=J;z3x(this,"description",{configurable:!0,writable:!0,value:H})};
D.prototype.toString=function(){return this.$jscomp$symbol$id_};
var f="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",n=0,t=function(J){if(this instanceof t)throw new TypeError("b");return new D(f+(J||"")+"_"+n++,J)};
return t});
$v("Symbol.iterator",function(V){if(V)return V;V=Symbol("c");for(var D="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f<D.length;f++){var n=_.IG[D[f]];typeof n==="function"&&typeof n.prototype[V]!="function"&&z3x(n.prototype,V,{configurable:!0,writable:!0,value:function(){return ClZ(m5Y(this))}})}return V});
$v("Symbol.asyncIterator",function(V){return V?V:Symbol("d")});
var ClZ=function(V){V={next:V};V[Symbol.iterator]=function(){return this};
return V},qnc=typeof Object.create=="function"?Object.create:function(V){var D=function(){};
D.prototype=V;return new D},XUX=function(){function V(){function f(){}
new f;Reflect.construct(f,[],function(){});
return new f instanceof f}
if(typeof Reflect!="undefined"&&Reflect.construct){if(V())return Reflect.construct;var D=Reflect.construct;return function(f,n,t){f=D(f,n);t&&Reflect.setPrototypeOf(f,t.prototype);return f}}return function(f,n,t){t===void 0&&(t=f);
t=qnc(t.prototype||Object.prototype);return Function.prototype.apply.call(f,t,n)||t}}(),Ezc;
if(typeof Object.setPrototypeOf=="function")Ezc=Object.setPrototypeOf;else{var AX3;a:{var acY={a:!0},Yn9={};try{Yn9.__proto__=acY;AX3=Yn9.a;break a}catch(V){}AX3=!1}Ezc=AX3?function(V,D){V.__proto__=D;if(V.__proto__!==D)throw new TypeError("e`"+V);return V}:null}iY=Ezc;
_.v=function(V,D){V.prototype=qnc(D.prototype);V.prototype.constructor=V;if(iY)iY(V,D);else for(var f in D)if(f!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(D,f);n&&Object.defineProperty(V,f,n)}else V[f]=D[f];V.superClass_=D.prototype};
_.r=function(V){var D=typeof Symbol!="undefined"&&Symbol.iterator&&V[Symbol.iterator];if(D)return D.call(V);if(typeof V.length=="number")return{next:m5Y(V)};throw Error("f`"+String(V));};
pJ=function(V){for(var D,f=[];!(D=V.next()).done;)f.push(D.value);return f};
_.sz=function(V){return V instanceof Array?V:pJ(_.r(V))};
_.WV=function(V){return S9(V,V)};
S9=function(V,D){V.raw=D;Object.freeze&&(Object.freeze(V),Object.freeze(D));return V};
pY=function(V,D){return Object.prototype.hasOwnProperty.call(V,D)};
$5Z=typeof Object.assign=="function"?Object.assign:function(V,D){for(var f=1;f<arguments.length;f++){var n=arguments[f];if(n)for(var t in n)pY(n,t)&&(V[t]=n[t])}return V};
$v("Object.assign",function(V){return V||$5Z});
var i7Y=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},SnY=function(V){if(V.isRunning_)throw new TypeError("h");
V.isRunning_=!0};
i7Y.prototype.JSC$6827_next_=function(V){this.yieldResult=V};
var W_Y=function(V,D){V.abruptCompletion_={exception:D,isException:!0};V.nextAddress=V.catchAddress_||V.finallyAddress_};
i7Y.prototype.return=function(V){this.abruptCompletion_={return:V};this.nextAddress=this.finallyAddress_};
_.b=function(V,D,f){V.nextAddress=f;return{value:D}};
i7Y.prototype.jumpTo=function(V){this.nextAddress=V};
_.yz=function(V){V.nextAddress=0};
_.wx=function(V,D,f){V.catchAddress_=D;f!=void 0&&(V.finallyAddress_=f)};
_.TO=function(V,D){V.catchAddress_=0;V.finallyAddress_=D||0};
_.YJ=function(V,D,f){V.nextAddress=D;V.catchAddress_=f||0};
_.KW=function(V,D){V.catchAddress_=D||0;D=V.abruptCompletion_.exception;V.abruptCompletion_=null;return D};
_.Qz=function(V,D,f,n){n?V.finallyContexts_[n]=V.abruptCompletion_:V.finallyContexts_=[V.abruptCompletion_];V.catchAddress_=D||0;V.finallyAddress_=f||0};
_.bK=function(V,D,f){f=V.finallyContexts_.splice(f||0)[0];(f=V.abruptCompletion_=V.abruptCompletion_||f)?f.isException?V.nextAddress=V.catchAddress_||V.finallyAddress_:f.jumpTo!=void 0&&V.finallyAddress_<f.jumpTo?(V.nextAddress=f.jumpTo,V.abruptCompletion_=null):V.nextAddress=V.finallyAddress_:V.nextAddress=D};
pUY=function(V){this.JSC$6832_context_=new i7Y;this.program_=V};
Icc=function(V,D){SnY(V.JSC$6832_context_);var f=V.JSC$6832_context_.yieldAllIterator_;if(f)return L_U(V,"return"in f?f["return"]:function(n){return{value:n,done:!0}},D,V.JSC$6832_context_.return);
V.JSC$6832_context_.return(D);return LY(V)};
L_U=function(V,D,f,n){try{var t=D.call(V.JSC$6832_context_.yieldAllIterator_,f);if(!(t instanceof Object))throw new TypeError("g`"+t);if(!t.done)return V.JSC$6832_context_.isRunning_=!1,t;var J=t.value}catch(H){return V.JSC$6832_context_.yieldAllIterator_=null,W_Y(V.JSC$6832_context_,H),LY(V)}V.JSC$6832_context_.yieldAllIterator_=null;n.call(V.JSC$6832_context_,J);return LY(V)};
LY=function(V){for(;V.JSC$6832_context_.nextAddress;)try{var D=V.program_(V.JSC$6832_context_);if(D)return V.JSC$6832_context_.isRunning_=!1,{value:D.value,done:!1}}catch(f){V.JSC$6832_context_.yieldResult=void 0,W_Y(V.JSC$6832_context_,f)}V.JSC$6832_context_.isRunning_=!1;if(V.JSC$6832_context_.abruptCompletion_){D=V.JSC$6832_context_.abruptCompletion_;V.JSC$6832_context_.abruptCompletion_=null;if(D.isException)throw D.exception;return{value:D.return,done:!0}}return{value:void 0,done:!0}};
O7Z=function(V){this.next=function(D){SnY(V.JSC$6832_context_);V.JSC$6832_context_.yieldAllIterator_?D=L_U(V,V.JSC$6832_context_.yieldAllIterator_.next,D,V.JSC$6832_context_.JSC$6827_next_):(V.JSC$6832_context_.JSC$6827_next_(D),D=LY(V));return D};
this.throw=function(D){SnY(V.JSC$6832_context_);V.JSC$6832_context_.yieldAllIterator_?D=L_U(V,V.JSC$6832_context_.yieldAllIterator_["throw"],D,V.JSC$6832_context_.JSC$6827_next_):(W_Y(V.JSC$6832_context_,D),D=LY(V));return D};
this.return=function(D){return Icc(V,D)};
this[Symbol.iterator]=function(){return this}};
_.Ujd=function(V,D){D=new O7Z(new pUY(D));iY&&V.prototype&&iY(D,V.prototype);return D};
x5Z=function(V){function D(n){return V.next(n)}
function f(n){return V.throw(n)}
return new Promise(function(n,t){function J(H){H.done?n(H.value):Promise.resolve(H.value).then(D,f).then(J,t)}
J(V.next())})};
_.w=function(V){return x5Z(new O7Z(new pUY(V)))};
SW9=function(V){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return V};
this.next=function(D){return Promise.resolve(V.next(D))};
this["throw"]=function(D){return new Promise(function(f,n){var t=V["throw"];t!==void 0?f(t.call(V,D)):(f=V["return"],f!==void 0&&f.call(V),n(new TypeError("i")))})};
V["return"]!==void 0&&(this["return"]=function(D){return Promise.resolve(V["return"](D))})};
_.gQ=function(){for(var V=Number(this),D=[],f=V;f<arguments.length;f++)D[f-V]=arguments[f];return D};
_.V8X=function(V){return V};
$v("globalThis",function(V){return V||_.IG});
$v("Reflect",function(V){return V?V:{}});
$v("Reflect.construct",function(){return XUX});
$v("Reflect.setPrototypeOf",function(V){return V?V:iY?function(D,f){try{return iY(D,f),!0}catch(n){return!1}}:null});
$v("Promise",function(V){function D(){this.batch_=null}
function f(H){return H instanceof t?H:new t(function(Q){Q(H)})}
if(V&&(typeof _.IG.PromiseRejectionEvent!=="undefined"||!_.IG.Promise||_.IG.Promise.toString().indexOf("[native code]")===-1))return V;D.prototype.asyncExecute=function(H){if(this.batch_==null){this.batch_=[];var Q=this;this.asyncExecuteFunction(function(){Q.executeBatch_()})}this.batch_.push(H)};
var n=_.IG.setTimeout;D.prototype.asyncExecuteFunction=function(H){n(H,0)};
D.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var H=this.batch_;this.batch_=[];for(var Q=0;Q<H.length;++Q){var T=H[Q];H[Q]=null;try{T()}catch(y){this.asyncThrow_(y)}}}this.batch_=null};
D.prototype.asyncThrow_=function(H){this.asyncExecuteFunction(function(){throw H;})};
var t=function(H){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var Q=this.createResolveAndReject_();try{H(Q.resolve,Q.reject)}catch(T){Q.reject(T)}};
t.prototype.createResolveAndReject_=function(){function H(y){return function(Z){T||(T=!0,y.call(Q,Z))}}
var Q=this,T=!1;return{resolve:H(this.resolveTo_),reject:H(this.JSC$6848_reject_)}};
t.prototype.resolveTo_=function(H){if(H===this)this.JSC$6848_reject_(new TypeError("j"));else if(H instanceof t)this.settleSameAsPromise_(H);else{a:switch(typeof H){case "object":var Q=H!=null;break a;case "function":Q=!0;break a;default:Q=!1}Q?this.resolveToNonPromiseObj_(H):this.fulfill_(H)}};
t.prototype.resolveToNonPromiseObj_=function(H){var Q=void 0;try{Q=H.then}catch(T){this.JSC$6848_reject_(T);return}typeof Q=="function"?this.settleSameAsThenable_(Q,H):this.fulfill_(H)};
t.prototype.JSC$6848_reject_=function(H){this.settle_(2,H)};
t.prototype.fulfill_=function(H){this.settle_(1,H)};
t.prototype.settle_=function(H,Q){if(this.state_!=0)throw Error("k`"+H+"`"+Q+"`"+this.state_);this.state_=H;this.result_=Q;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
t.prototype.scheduleUnhandledRejectionCheck_=function(){var H=this;n(function(){if(H.notifyUnhandledRejection_()){var Q=_.IG.console;typeof Q!=="undefined"&&Q.error(H.result_)}},1)};
t.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var H=_.IG.CustomEvent,Q=_.IG.Event,T=_.IG.dispatchEvent;if(typeof T==="undefined")return!0;typeof H==="function"?H=new H("unhandledrejection",{cancelable:!0}):typeof Q==="function"?H=new Q("unhandledrejection",{cancelable:!0}):(H=_.IG.document.createEvent("CustomEvent"),H.initCustomEvent("unhandledrejection",!1,!0,H));H.promise=this;H.reason=this.result_;return T(H)};
t.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var H=0;H<this.onSettledCallbacks_.length;++H)J.asyncExecute(this.onSettledCallbacks_[H]);this.onSettledCallbacks_=null}};
var J=new D;t.prototype.settleSameAsPromise_=function(H){var Q=this.createResolveAndReject_();H.callWhenSettled_(Q.resolve,Q.reject)};
t.prototype.settleSameAsThenable_=function(H,Q){var T=this.createResolveAndReject_();try{H.call(Q,T.resolve,T.reject)}catch(y){T.reject(y)}};
t.prototype.then=function(H,Q){function T(G,F){return typeof G=="function"?function(k){try{y(G(k))}catch(d){Z(d)}}:F}
var y,Z,l=new t(function(G,F){y=G;Z=F});
this.callWhenSettled_(T(H,y),T(Q,Z));return l};
t.prototype.catch=function(H){return this.then(void 0,H)};
t.prototype.callWhenSettled_=function(H,Q){function T(){switch(y.state_){case 1:H(y.result_);break;case 2:Q(y.result_);break;default:throw Error("l`"+y.state_);}}
var y=this;this.onSettledCallbacks_==null?J.asyncExecute(T):this.onSettledCallbacks_.push(T);this.isRejectionHandled_=!0};
t.resolve=f;t.reject=function(H){return new t(function(Q,T){T(H)})};
t.race=function(H){return new t(function(Q,T){for(var y=_.r(H),Z=y.next();!Z.done;Z=y.next())f(Z.value).callWhenSettled_(Q,T)})};
t.all=function(H){var Q=_.r(H),T=Q.next();return T.done?f([]):new t(function(y,Z){function l(k){return function(d){G[k]=d;F--;F==0&&y(G)}}
var G=[],F=0;do G.push(void 0),F++,f(T.value).callWhenSettled_(l(G.length-1),Z),T=Q.next();while(!T.done)})};
return t});
var IN=function(V,D,f){if(V==null)throw new TypeError("m`"+f);if(D instanceof RegExp)throw new TypeError("n`"+f);return V+""};
$v("String.prototype.startsWith",function(V){return V?V:function(D,f){var n=IN(this,D,"startsWith"),t=n.length,J=D.length;f=Math.max(0,Math.min(f|0,n.length));for(var H=0;H<J&&f<t;)if(n[f++]!=D[H++])return!1;return H>=J}});
$v("Object.setPrototypeOf",function(V){return V||iY});
$v("Symbol.dispose",function(V){return V?V:Symbol("o")});
$v("SuppressedError",function(V){function D(f,n,t){if(!(this instanceof D))return new D(f,n,t);t=Error(t);"stack"in t&&(this.stack=t.stack);this.message=t.message;this.error=f;this.suppressed=n}
if(V)return V;_.v(D,Error);D.prototype.name="SuppressedError";return D});
var MF3=function(V,D,f){V instanceof String&&(V=String(V));for(var n=V.length,t=0;t<n;t++){var J=V[t];if(D.call(f,J,t,V))return{i:t,v:J}}return{i:-1,v:void 0}};
$v("Array.prototype.find",function(V){return V?V:function(D,f){return MF3(this,D,f).v}});
$v("WeakMap",function(V){function D(){}
function f(T){var y=typeof T;return y==="object"&&T!==null||y==="function"}
function n(T){if(!pY(T,J)){var y=new D;z3x(T,J,{value:y})}}
function t(T){var y=Object[T];y&&(Object[T]=function(Z){if(Z instanceof D)return Z;Object.isExtensible(Z)&&n(Z);return y(Z)})}
if(function(){if(!V||!Object.seal)return!1;try{var T=Object.seal({}),y=Object.seal({}),Z=new V([[T,2],[y,3]]);if(Z.get(T)!=2||Z.get(y)!=3)return!1;Z.delete(T);Z.set(y,4);return!Z.has(T)&&Z.get(y)==4}catch(l){return!1}}())return V;
var J="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var H=0,Q=function(T){this.JSC$6855_id_=(H+=Math.random()+1).toString();if(T){T=_.r(T);for(var y;!(y=T.next()).done;)y=y.value,this.set(y[0],y[1])}};
Q.prototype.set=function(T,y){if(!f(T))throw Error("p");n(T);if(!pY(T,J))throw Error("q`"+T);T[J][this.JSC$6855_id_]=y;return this};
Q.prototype.get=function(T){return f(T)&&pY(T,J)?T[J][this.JSC$6855_id_]:void 0};
Q.prototype.has=function(T){return f(T)&&pY(T,J)&&pY(T[J],this.JSC$6855_id_)};
Q.prototype.delete=function(T){return f(T)&&pY(T,J)&&pY(T[J],this.JSC$6855_id_)?delete T[J][this.JSC$6855_id_]:!1};
return Q});
$v("Map",function(V){if(function(){if(!V||typeof V!="function"||!V.prototype.entries||typeof Object.seal!="function")return!1;try{var Q=Object.seal({x:4}),T=new V(_.r([[Q,"s"]]));if(T.get(Q)!="s"||T.size!=1||T.get({x:4})||T.set({x:4},"t")!=T||T.size!=2)return!1;var y=T.entries(),Z=y.next();if(Z.done||Z.value[0]!=Q||Z.value[1]!="s")return!1;Z=y.next();return Z.done||Z.value[0].x!=4||Z.value[1]!="t"||!y.next().done?!1:!0}catch(l){return!1}}())return V;
var D=new WeakMap,f=function(Q){this[0]={};this[1]=J();this.size=0;if(Q){Q=_.r(Q);for(var T;!(T=Q.next()).done;)T=T.value,this.set(T[0],T[1])}};
f.prototype.set=function(Q,T){Q=Q===0?0:Q;var y=n(this,Q);y.list||(y.list=this[0][y.id]=[]);y.entry?y.entry.value=T:(y.entry={next:this[1],previous:this[1].previous,head:this[1],key:Q,value:T},y.list.push(y.entry),this[1].previous.next=y.entry,this[1].previous=y.entry,this.size++);return this};
f.prototype.delete=function(Q){Q=n(this,Q);return Q.entry&&Q.list?(Q.list.splice(Q.index,1),Q.list.length||delete this[0][Q.id],Q.entry.previous.next=Q.entry.next,Q.entry.next.previous=Q.entry.previous,Q.entry.head=null,this.size--,!0):!1};
f.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0};
f.prototype.has=function(Q){return!!n(this,Q).entry};
f.prototype.get=function(Q){return(Q=n(this,Q).entry)&&Q.value};
f.prototype.entries=function(){return t(this,function(Q){return[Q.key,Q.value]})};
f.prototype.keys=function(){return t(this,function(Q){return Q.key})};
f.prototype.values=function(){return t(this,function(Q){return Q.value})};
f.prototype.forEach=function(Q,T){for(var y=this.entries(),Z;!(Z=y.next()).done;)Z=Z.value,Q.call(T,Z[1],Z[0],this)};
f.prototype[Symbol.iterator]=f.prototype.entries;var n=function(Q,T){var y=T&&typeof T;y=="object"||y=="function"?D.has(T)?y=D.get(T):(y=""+ ++H,D.set(T,y)):y="p_"+T;var Z=Q[0][y];if(Z&&pY(Q[0],y))for(Q=0;Q<Z.length;Q++){var l=Z[Q];if(T!==T&&l.key!==l.key||T===l.key)return{id:y,list:Z,index:Q,entry:l}}return{id:y,list:Z,index:-1,entry:void 0}},t=function(Q,T){var y=Q[1];
return ClZ(function(){if(y){for(;y.head!=Q[1];)y=y.previous;for(;y.next!=y.head;)return y=y.next,{done:!1,value:T(y)};y=null}return{done:!0,value:void 0}})},J=function(){var Q={};
return Q.previous=Q.next=Q.head=Q},H=0;
return f});
$v("Set",function(V){if(function(){if(!V||typeof V!="function"||!V.prototype.entries||typeof Object.seal!="function")return!1;try{var f=Object.seal({x:4}),n=new V(_.r([f]));if(!n.has(f)||n.size!=1||n.add(f)!=n||n.size!=1||n.add({x:4})!=n||n.size!=2)return!1;var t=n.entries(),J=t.next();if(J.done||J.value[0]!=f||J.value[1]!=f)return!1;J=t.next();return J.done||J.value[0]==f||J.value[0].x!=4||J.value[1]!=J.value[0]?!1:t.next().done}catch(H){return!1}}())return V;
var D=function(f){this.JSC$6869_map_=new Map;if(f){f=_.r(f);for(var n;!(n=f.next()).done;)this.add(n.value)}this.size=this.JSC$6869_map_.size};
D.prototype.add=function(f){f=f===0?0:f;this.JSC$6869_map_.set(f,f);this.size=this.JSC$6869_map_.size;return this};
D.prototype.delete=function(f){f=this.JSC$6869_map_.delete(f);this.size=this.JSC$6869_map_.size;return f};
D.prototype.clear=function(){this.JSC$6869_map_.clear();this.size=0};
D.prototype.has=function(f){return this.JSC$6869_map_.has(f)};
D.prototype.entries=function(){return this.JSC$6869_map_.entries()};
D.prototype.values=function(){return this.JSC$6869_map_.values()};
D.prototype.keys=D.prototype.values;D.prototype[Symbol.iterator]=D.prototype.values;D.prototype.forEach=function(f,n){var t=this;this.JSC$6869_map_.forEach(function(J){return f.call(n,J,J,t)})};
return D});
$v("Math.log2",function(V){return V?V:function(D){return Math.log(D)/Math.LN2}});
$v("Object.values",function(V){return V?V:function(D){var f=[],n;for(n in D)pY(D,n)&&f.push(D[n]);return f}});
$v("Object.is",function(V){return V?V:function(D,f){return D===f?D!==0||1/D===1/f:D!==D&&f!==f}});
$v("Array.prototype.includes",function(V){return V?V:function(D,f){var n=this;n instanceof String&&(n=String(n));var t=n.length;f=f||0;for(f<0&&(f=Math.max(f+t,0));f<t;f++){var J=n[f];if(J===D||Object.is(J,D))return!0}return!1}});
$v("String.prototype.includes",function(V){return V?V:function(D,f){return IN(this,D,"includes").indexOf(D,f||0)!==-1}});
$v("Array.from",function(V){return V?V:function(D,f,n){f=f!=null?f:function(Q){return Q};
var t=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(typeof J=="function"){D=J.call(D);for(var H=0;!(J=D.next()).done;)t.push(f.call(n,J.value,H++))}else for(J=D.length,H=0;H<J;H++)t.push(f.call(n,D[H],H));return t}});
$v("Object.entries",function(V){return V?V:function(D){var f=[],n;for(n in D)pY(D,n)&&f.push([n,D[n]]);return f}});
$v("Number.isFinite",function(V){return V?V:function(D){return typeof D!=="number"?!1:!isNaN(D)&&D!==Infinity&&D!==-Infinity}});
$v("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
$v("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
$v("Number.isInteger",function(V){return V?V:function(D){return Number.isFinite(D)?D===Math.floor(D):!1}});
$v("Number.isSafeInteger",function(V){return V?V:function(D){return Number.isInteger(D)&&Math.abs(D)<=Number.MAX_SAFE_INTEGER}});
$v("String.prototype.endsWith",function(V){return V?V:function(D,f){var n=IN(this,D,"endsWith");f===void 0&&(f=n.length);f=Math.max(0,Math.min(f|0,n.length));for(var t=D.length;t>0&&f>0;)if(n[--f]!=D[--t])return!1;return t<=0}});
var h3Y=function(V,D){V instanceof String&&(V+="");var f=0,n=!1,t={next:function(){if(!n&&f<V.length){var J=f++;return{value:D(J,V[J]),done:!1}}n=!0;return{done:!0,value:void 0}}};
t[Symbol.iterator]=function(){return t};
return t};
$v("Array.prototype.entries",function(V){return V?V:function(){return h3Y(this,function(D,f){return[D,f]})}});
$v("Math.trunc",function(V){return V?V:function(D){D=Number(D);if(isNaN(D)||D===Infinity||D===-Infinity||D===0)return D;var f=Math.floor(Math.abs(D));return D<0?-f:f}});
$v("Number.isNaN",function(V){return V?V:function(D){return typeof D==="number"&&isNaN(D)}});
$v("Array.prototype.keys",function(V){return V?V:function(){return h3Y(this,function(D){return D})}});
$v("Array.prototype.values",function(V){return V?V:function(){return h3Y(this,function(D,f){return f})}});
$v("Array.prototype.fill",function(V){return V?V:function(D,f,n){var t=this.length||0;f<0&&(f=Math.max(0,t+f));if(n==null||n>t)n=t;n=Number(n);n<0&&(n=Math.max(0,t+n));for(f=Number(f||0);f<n;f++)this[f]=D;return this}});
var O5=function(V){return V?V:Array.prototype.fill};
$v("Int8Array.prototype.fill",O5);$v("Uint8Array.prototype.fill",O5);$v("Uint8ClampedArray.prototype.fill",O5);$v("Int16Array.prototype.fill",O5);$v("Uint16Array.prototype.fill",O5);$v("Int32Array.prototype.fill",O5);$v("Uint32Array.prototype.fill",O5);$v("Float32Array.prototype.fill",O5);$v("Float64Array.prototype.fill",O5);
$v("Object.fromEntries",function(V){return V?V:function(D){var f={};if(!(Symbol.iterator in D))throw new TypeError("r`"+D);D=D[Symbol.iterator].call(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;if(Object(n)!==n)throw new TypeError("s");f[n[0]]=n[1]}return f}});
$v("String.prototype.replaceAll",function(V){return V?V:function(D,f){if(D instanceof RegExp&&!D.global)throw new TypeError("t");return D instanceof RegExp?this.replace(D,f):this.replace(new RegExp(String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),f)}});
$v("Object.getOwnPropertySymbols",function(V){return V?V:function(){return[]}});
$v("String.prototype.repeat",function(V){return V?V:function(D){var f=IN(this,null,"repeat");if(D<0||D>1342177279)throw new RangeError("u");D|=0;for(var n="";D;)if(D&1&&(n+=f),D>>>=1)f+=f;return n}});
$v("Array.prototype.findIndex",function(V){return V?V:function(D,f){return MF3(this,D,f).i}});
$v("Array.prototype.flatMap",function(V){return V?V:function(D,f){var n=[];Array.prototype.forEach.call(this,function(t,J){t=D.call(f,t,J,this);Array.isArray(t)?n.push.apply(n,t):n.push(t)});
return n}});
$v("String.prototype.codePointAt",function(V){return V?V:function(D){var f=IN(this,null,"codePointAt"),n=f.length;D=Number(D)||0;if(D>=0&&D<n){D|=0;var t=f.charCodeAt(D);if(t<55296||t>56319||D+1===n)return t;D=f.charCodeAt(D+1);return D<56320||D>57343?t:(t-55296)*1024+D+9216}}});
$v("String.fromCodePoint",function(V){return V?V:function(D){for(var f="",n=0;n<arguments.length;n++){var t=Number(arguments[n]);if(t<0||t>1114111||t!==Math.floor(t))throw new RangeError("v`"+t);t<=65535?f+=String.fromCharCode(t):(t-=65536,f+=String.fromCharCode(t>>>10&1023|55296),f+=String.fromCharCode(t&1023|56320))}return f}});
$v("String.prototype.padStart",function(V){return V?V:function(D,f){var n=IN(this,null,"padStart");D-=n.length;f=f!==void 0?String(f):" ";return(D>0&&f?f.repeat(Math.ceil(D/f.length)).substring(0,D):"")+n}});
$v("Promise.prototype.finally",function(V){return V?V:function(D){return this.then(function(f){return Promise.resolve(D()).then(function(){return f})},function(f){return Promise.resolve(D()).then(function(){throw f;
})})}});
$v("Math.imul",function(V){return V?V:function(D,f){D=Number(D);f=Number(f);var n=D&65535,t=f&65535;return n*t+((D>>>16&65535)*t+n*(f>>>16&65535)<<16>>>0)|0}});
$v("Object.hasOwn",function(V){return V?V:function(D,f){return Object.prototype.hasOwnProperty.call(D,f)}});
$v("Math.sign",function(V){return V?V:function(D){D=Number(D);return D===0||isNaN(D)?D:D>0?1:-1}});
$v("Array.prototype.flat",function(V){return V?V:function(D){D=D===void 0?1:D;var f=[];Array.prototype.forEach.call(this,function(n){Array.isArray(n)&&D>0?(n=Array.prototype.flat.call(n,D-1),f.push.apply(f,n)):f.push(n)});
return f}});
$v("String.raw",function(V){return V?V:function(D,f){if(D==null)throw new TypeError("w");for(var n=D.raw,t=n.length,J="",H=0;H<t;++H)J+=n[H],H+1<t&&H+1<arguments.length&&(J+=String(arguments[H+1]));return J}});
$v("Reflect.ownKeys",function(V){return V?V:function(D){var f=[],n=Object.getOwnPropertyNames(D);D=Object.getOwnPropertySymbols(D);for(var t=0;t<n.length;t++)(n[t].substring(0,14)=="jscomp_symbol_"?D:f).push(n[t]);return f.concat(D)}});
$v("Object.getOwnPropertyDescriptors",function(V){return V?V:function(D){for(var f={},n=Reflect.ownKeys(D),t=0;t<n.length;t++)f[n[t]]=Object.getOwnPropertyDescriptor(D,n[t]);return f}});
$v("WeakSet",function(V){if(function(){if(!V||!Object.seal)return!1;try{var f=Object.seal({}),n=Object.seal({}),t=new V([f]);if(!t.has(f)||t.has(n))return!1;t.delete(f);t.add(n);return!t.has(f)&&t.has(n)}catch(J){return!1}}())return V;
var D=function(f){this.JSC$6876_map_=new WeakMap;if(f){f=_.r(f);for(var n;!(n=f.next()).done;)this.add(n.value)}};
D.prototype.add=function(f){this.JSC$6876_map_.set(f,!0);return this};
D.prototype.has=function(f){return this.JSC$6876_map_.has(f)};
D.prototype.delete=function(f){return this.JSC$6876_map_.delete(f)};
return D});
$v("Promise.allSettled",function(V){function D(n){return{status:"fulfilled",value:n}}
function f(n){return{status:"rejected",reason:n}}
return V?V:function(n){var t=this;n=Array.from(n,function(J){return t.resolve(J).then(D,f)});
return t.all(n)}});
$v("Number.parseInt",function(V){return V||parseInt});
_._DumpException=window._DumpException||function(V){throw V;};
window._DumpException=_._DumpException;var U5n,xv,Mw,hx,VM3,DXF,fIx,nTd,pw,tM9;U5n=U5n||{};_.fx=this||self;_.M4=function(V,D,f){V=V.split(".");f=f||_.fx;for(var n;V.length&&(n=V.shift());)V.length||D===void 0?f[n]&&f[n]!==Object.prototype[n]?f=f[n]:f=f[n]={}:f[n]=D};
xv=function(V){var D=_.Yw("WIZ_global_data.oxN3nb");V=D&&D[V];return V!=null?V:!1};
Mw=_.fx._F_toggles_default_kevlar_base||[];hx=function(){};
hx.get=function(){return null};
_.Yw=function(V,D){V=V.split(".");D=D||_.fx;for(var f=0;f<V.length;f++)if(D=D[V[f]],D==null)return null;return D};
_.U5=function(V){V.instance_=void 0;V.getInstance=function(){return V.instance_?V.instance_:V.instance_=new V}};
_.wR=function(V){var D=typeof V;return D!="object"?D:V?Array.isArray(V)?"array":D:"null"};
_.MU=function(V){var D=_.wR(V);return D=="array"||D=="object"&&typeof V.length=="number"};
_.VV=function(V){var D=typeof V;return D=="object"&&V!=null||D=="function"};
_.fo=function(V){return Object.prototype.hasOwnProperty.call(V,VM3)&&V[VM3]||(V[VM3]=++DXF)};
VM3="closure_uid_"+(Math.random()*1E9>>>0);DXF=0;fIx=function(V,D,f){return V.call.apply(V.bind,arguments)};
nTd=function(V,D,f){if(!V)throw Error();if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(t,n);return V.apply(D,t)}}return function(){return V.apply(D,arguments)}};
_.F1=function(V,D,f){_.F1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?fIx:nTd;return _.F1.apply(null,arguments)};
_.lC=function(V,D){var f=Array.prototype.slice.call(arguments,1);return function(){var n=f.slice();n.push.apply(n,arguments);return V.apply(this,n)}};
_.Vd=function(){return Date.now()};
pw=function(V){return V};
_.fg=function(V,D){function f(){}
f.prototype=D.prototype;V.superClass_=D.prototype;V.prototype=new f;V.prototype.constructor=V;V.base=function(n,t,J){for(var H=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)H[Q-2]=arguments[Q];return D.prototype[t].apply(n,H)}};
tM9=function(V){return V};var PJ9,oTY;_.S=function(V,D,f,n){var t=arguments.length,J=t<3?D:n===null?n=Object.getOwnPropertyDescriptor(D,f):n,H;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")J=Reflect.decorate(V,D,f,n);else for(var Q=V.length-1;Q>=0;Q--)if(H=V[Q])J=(t<3?H(J):t>3?H(D,f,J):H(D,f))||J;t>3&&J&&Object.defineProperty(D,f,J)};
_.p=function(V,D){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(V,D)};
PJ9=function(V,D){if(D!==null&&D!==void 0){if(typeof D!=="object"&&typeof D!=="function")throw new TypeError("x");if(f===void 0){if(!Symbol.dispose)throw new TypeError("z");var f=D[Symbol.dispose]}if(typeof f!=="function")throw new TypeError("A");V.stack.push({value:D,dispose:f,async:!1})}return D};
oTY=function(V){function D(J){V.error=V.hasError?new SuppressedError(J,V.error,"An error was suppressed during disposal."):J;V.hasError=!0}
function f(){for(;n=V.stack.pop();)try{if(!n.async&&t===1)return t=0,V.stack.push(n),Promise.resolve().then(f);if(n.dispose){var J=n.dispose.call(n.value);if(n.async)return t|=2,Promise.resolve(J).then(f,function(H){D(H);return f()})}else t|=1}catch(H){D(H)}if(t===1)return V.hasError?Promise.reject(V.error):Promise.resolve();
if(V.hasError)throw V.error;}
var n,t=0;f()};_.fg(_.VY,Error);_.VY.prototype.name="CustomError";var J9L;var r9X=void 0,H3Y,wDU=typeof TextDecoder!=="undefined",nFX,fZL=typeof String.prototype.isWellFormed==="function",DUc=typeof TextEncoder!=="undefined";var QQc;_.eB=function(V){for(var D=[],f=0,n=0;n<V.length;n++){var t=V.charCodeAt(n);t<128?D[f++]=t:(t<2048?D[f++]=t>>6|192:((t&64512)==55296&&n+1<V.length&&(V.charCodeAt(n+1)&64512)==56320?(t=65536+((t&1023)<<10)+(V.charCodeAt(++n)&1023),D[f++]=t>>18|240,D[f++]=t>>12&63|128):D[f++]=t>>12|224,D[f++]=t>>6&63|128),D[f++]=t&63|128)}return D};
QQc=function(V){for(var D=[],f=0,n=0;f<V.length;){var t=V[f++];if(t<128)D[n++]=String.fromCharCode(t);else if(t>191&&t<224){var J=V[f++];D[n++]=String.fromCharCode((t&31)<<6|J&63)}else if(t>239&&t<365){J=V[f++];var H=V[f++],Q=V[f++];t=((t&7)<<18|(J&63)<<12|(H&63)<<6|Q&63)-65536;D[n++]=String.fromCharCode(55296+(t>>10));D[n++]=String.fromCharCode(56320+(t&1023))}else J=V[f++],H=V[f++],D[n++]=String.fromCharCode((t&15)<<12|(J&63)<<6|H&63)}return D.join("")};var b3=String.prototype.trim?function(V){return V.trim()}:function(V){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(V)[1]},T_Y=/&/g,b39=/</g,KUY=/>/g,y9x=/"/g,Z3c=/'/g,jQL=/\x00/g,lIL=/[\x00&<>"']/;var tF=!!(Mw[0]>>15&1),GFY=!!(Mw[0]>>16&1),ex3=!!(Mw[0]&8),c99=!!(Mw[0]&2),FUY=!!(Mw[0]&4),gTY=!!(Mw[0]&16),vTn=!!(Mw[0]&128);var l3=tF?GFY:xv(610401301),kFd=tF?ex3:xv(772657768),sQ9=tF?c99:xv(513659523),B_Y=tF?FUY:xv(568333945),ssY=tF?gTY:xv(1331761403),pHZ=tF?vTn:xv(748402147);var GL,dX9=_.fx.navigator;GL=dX9?dX9.userAgentData||null:null;var Ww;_.$F=function(V,D){return Array.prototype.indexOf.call(V,D,void 0)};
_.Sd=function(V,D,f){Array.prototype.forEach.call(V,D,f)};
_.Pb=function(V,D,f){return Array.prototype.filter.call(V,D,f)};
_.dw=function(V,D,f){return Array.prototype.map.call(V,D,f)};
Ww=function(V,D,f){return Array.prototype.some.call(V,D,f)};
_.n$9=function(V,D,f){return Array.prototype.every.call(V,D,f)};var o$=function(V){o$[" "](V);return V};
o$[" "]=function(){};
var ze=function(V,D){try{return o$(V[D]),!0}catch(f){}return!1},l9U=function(V,D,f,n){n=n?n(D):D;
return Object.prototype.hasOwnProperty.call(V,n)?V[n]:V[n]=f(D)};var uI9,Ob,N_9,mXL,RxY,CJc,n1n,qNn,XDU,ETY,LX,aIn,YNn,WUn,pDY,LUZ;_.uMn=function(){return _.fx.navigator||null};
uI9=kF();_.JF=oFn();Ob=gZ("Edge");N_9=Ob||_.JF;_.rf=gZ("Gecko")&&!(_.TL(_.jR(),"WebKit")&&!gZ("Edge"))&&!(gZ("Trident")||gZ("MSIE"))&&!gZ("Edge");_.Hb=_.TL(_.jR(),"WebKit")&&!gZ("Edge");mXL=_.Hb&&gZ("Mobile");_.zxX=_.KXn();RxY=_.ycF();CJc=(RY()?GL.platform==="Linux":gZ("Linux"))||_.ZxY();n1n=_.TZY();qNn=bxX();XDU=gZ("iPad");ETY=gZ("iPod");_.A9X=_.Cx();LX=_.TL(_.jR(),"KaiOS");aIn=function(){var V=_.fx.document;return V?V.documentMode:void 0};
a:{var $XZ="",i3n=function(){var V=_.jR();if(_.rf)return/rv:([^\);]+)(\)|;)/.exec(V);if(Ob)return/Edge\/([\d\.]+)/.exec(V);if(_.JF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(V);if(_.Hb)return/WebKit\/(\S+)/.exec(V);if(uI9)return/(?:Version)[ \/]?(\S+)/.exec(V)}();
i3n&&($XZ=i3n?i3n[1]:"");if(_.JF){var SN3=aIn();if(SN3!=null&&SN3>parseFloat($XZ)){YNn=String(SN3);break a}}YNn=$XZ}WUn=YNn;pDY={};_.wf=function(V){return l9U(pDY,V,function(){return _.yY(WUn,V)>=0})};
if(_.fx.document&&_.JF){var IIL=aIn();LUZ=IIL?IIL:parseInt(WUn,10)||void 0}else LUZ=void 0;_.O39=LUZ;var voY,kRX,xXY;_.Qd=dZ();voY=bxX()||gZ("iPod");kRX=gZ("iPad");xXY=_.rcF();_.Tl=_.mX();_.CH=_.zL()&&!_.Cx();var MMZ,b4,LMd,om9,UXn,hxd;MMZ={};b4=null;LMd=_.rf||_.Hb||typeof _.fx.btoa=="function";_.V3=function(V,D){D===void 0&&(D=0);hxd();D=MMZ[D];for(var f=Array(Math.floor(V.length/3)),n=D[64]||"",t=0,J=0;t<V.length-2;t+=3){var H=V[t],Q=V[t+1],T=V[t+2],y=D[H>>2];H=D[(H&3)<<4|Q>>4];Q=D[(Q&15)<<2|T>>6];T=D[T&63];f[J++]=y+H+Q+T}y=0;T=n;switch(V.length-t){case 2:y=V[t+1],T=D[(y&15)<<2]||n;case 1:V=V[t],f[J]=D[V>>2]+D[(V&3)<<4|y>>4]+T+n}return f.join("")};
om9=function(V){var D="";UXn(V,function(f){D+=String.fromCharCode(f)});
return D};
_.UK3=function(V){var D=[];UXn(V,function(f){D.push(f)});
return D};
_.rP=function(V){var D=V.length,f=D*3/4;f%3?f=Math.floor(f):_.QY("=.",V[D-1])&&(f=_.QY("=.",V[D-2])?f-2:f-1);var n=new Uint8Array(f),t=0;UXn(V,function(J){n[t++]=J});
return t!==f?n.subarray(0,t):n};
UXn=function(V,D){function f(T){for(;n<V.length;){var y=V.charAt(n++),Z=b4[y];if(Z!=null)return Z;if(!_.Hn(y))throw Error("E`"+y);}return T}
hxd();for(var n=0;;){var t=f(-1),J=f(0),H=f(64),Q=f(64);if(Q===64&&t===-1)break;D(t<<2|J>>4);H!=64&&(D(J<<4&240|H>>2),Q!=64&&D(H<<6&192|Q))}};
hxd=function(){if(!b4){b4={};for(var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++){var n=V.concat(D[f].split(""));MMZ[f]=n;for(var t=0;t<n.length;t++){var J=n[t];b4[J]===void 0&&(b4[J]=t)}}}};var qdY=typeof Uint8Array!=="undefined",sYR=!_.JF&&typeof btoa==="function",BZ9=/[-_.]/g,vF9={"-":"+",_:"/",".":"="},Rl={};var zU,DcZ;zU=function(V,D){if(D!==Rl)throw Error("G");this.JSC$6907_value_=V;if(V!=null&&V.length===0)throw Error("F");};
_.Co=function(){return Vjx||(Vjx=new zU(null,Rl))};
DcZ=function(V){return new Uint8Array(ml(V)||0)};
zU.prototype.isEmpty=function(){return this.JSC$6907_value_==null};
zU.prototype.sizeBytes=function(){var V=ml(this);return V?V.length:0};
var ml=function(V){if(Rl!==Rl)throw Error("G");var D=V.JSC$6907_value_;D=D==null||qdY&&D!=null&&D instanceof Uint8Array?D:typeof D==="string"?dUZ(D):null;return D==null?D:V.JSC$6907_value_=D},Vjx;var NZc=void 0;var GU=typeof Symbol==="function"&&typeof Symbol()==="symbol",f09=l6("jas",void 0,!0),SW=l6(void 0,"0di"),B7=l6(void 0,"1oa"),Lw=l6(void 0,Symbol()),NPF=l6(void 0,"0ub"),zlZ=l6(void 0,"0ubs"),XBd=l6(void 0,"0ubsb"),IFd=l6(void 0,"0actk"),$f=l6("m_m","messagePrototypeMarker",!0),Yu9=l6(void 0,"vps"),BPX=l6();var z99,mUd,Gj,naY;z99={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};mUd=Object.defineProperties;_.eE=GU?f09:"internalArrayState";naY=[];vH(naY,7);Gj=Object.freeze(naY);var iX={},u6={},tjR=function(V,D,f){this.iterable=V;this.mapper=D;this.thisArg=f};
tjR.prototype.next=function(){var V=this.iterable.next();V.done||(V.value=this.mapper.call(this.thisArg,V.value));return V};
tjR.prototype[Symbol.iterator]=function(){return this};
var PmR=Object.freeze({}),Ar={};_.oax=i6(function(V){return V!==null&&V!==void 0});var Ydd=i6(function(V){return typeof V==="number"}),aZ3=i6(function(V){return typeof V==="string"}),$U9=i6(function(V){return typeof V==="boolean"}),JQZ=i6(function(V){return V!=null&&typeof V==="object"&&typeof V.then==="function"}),pJL=i6(function(V){return typeof V==="function"}),VT=i6(function(V){return!!V&&(typeof V==="object"||typeof V==="function")});var po=typeof _.fx.BigInt==="function"&&typeof _.fx.BigInt(0)==="bigint";var XV=i6(function(V){return po?V>=rQR&&V<=HV3:V[0]==="-"?ixZ(V,wFn):ixZ(V,QR9)}),wFn=Number.MIN_SAFE_INTEGER.toString(),rQR=po?BigInt(Number.MIN_SAFE_INTEGER):void 0,QR9=Number.MAX_SAFE_INTEGER.toString(),HV3=po?BigInt(Number.MAX_SAFE_INTEGER):void 0;var TeL=typeof Uint8Array.prototype.slice==="function",Ou=0,xp=0,Ik;var dR,Rq,bX,Cw,xUY;dR=typeof BigInt==="function"?BigInt.asIntN:void 0;_.qo=typeof BigInt==="function"?BigInt.asUintN:void 0;Rq=Number.isSafeInteger;bX=Number.isFinite;Cw=Math.trunc;xUY=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $LY={};var kUc={},bVU=function(){try{var V=function(){return XUX(Map,[],this.constructor)};
_.v(V,Map);o$(new V);return!1}catch(D){return!0}}(),Kg=function(){this.JSC$6927_map_=new Map};
_.P=Kg.prototype;_.P.get=function(V){return this.JSC$6927_map_.get(V)};
_.P.set=function(V,D){this.JSC$6927_map_.set(V,D);this.size=this.JSC$6927_map_.size;return this};
_.P.delete=function(V){V=this.JSC$6927_map_.delete(V);this.size=this.JSC$6927_map_.size;return V};
_.P.clear=function(){this.JSC$6927_map_.clear();this.size=this.JSC$6927_map_.size};
_.P.has=function(V){return this.JSC$6927_map_.has(V)};
_.P.entries=function(){return this.JSC$6927_map_.entries()};
_.P.keys=function(){return this.JSC$6927_map_.keys()};
_.P.values=function(){return this.JSC$6927_map_.values()};
_.P.forEach=function(V,D){return this.JSC$6927_map_.forEach(V,D)};
Kg.prototype[Symbol.iterator]=function(){return this.entries()};
var D3=function(){if(bVU)return Object.setPrototypeOf(Kg.prototype,Map.prototype),Object.defineProperties(Kg.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Kg;var V=function(){return XUX(Map,[],this.constructor)};
_.v(V,Map);return V}(),WB=function(V,D,f,n){f=f===void 0?elY:f;
n=n===void 0?elY:n;var t=D3.call(this)||this;t.arrayState=V[_.eE]|0;t.valueCtor=D;t.keyToApi=f;t.valueToApi=t.valueCtor?FYY:n;for(var J=0;J<V.length;J++){var H=V[J],Q=f(H[0],!1,!0),T=H[1];D?T===void 0&&(T=null):T=n(H[1],!1,!0,void 0,void 0,t.arrayState);D3.prototype.set.call(t,Q,T)}return t};
_.v(WB,D3);var KGx=function(V){if(V.arrayState&2)throw Error("K");};
_.P=WB.prototype;_.P.clear=function(){KGx(this);D3.prototype.clear.call(this)};
_.P.delete=function(V){KGx(this);return D3.prototype.delete.call(this,this.keyToApi(V,!0,!1))};
_.P.entries=function(){if(this.valueCtor){var V=D3.prototype.keys.call(this);V=new tjR(V,gpd,this)}else V=D3.prototype.entries.call(this);return V};
_.P.values=function(){if(this.valueCtor){var V=D3.prototype.keys.call(this);V=new tjR(V,WB.prototype.get,this)}else V=D3.prototype.values.call(this);return V};
_.P.forEach=function(V,D){this.valueCtor?D3.prototype.forEach.call(this,function(f,n,t){V.call(D,t.get(n),n,t)}):D3.prototype.forEach.call(this,V,D)};
_.P.set=function(V,D){KGx(this);V=this.keyToApi(V,!0,!1);return V==null?this:D==null?(D3.prototype.delete.call(this,V),this):D3.prototype.set.call(this,V,this.valueToApi(D,!0,!0,this.valueCtor,!1,this.arrayState))};
_.P.has=function(V){return D3.prototype.has.call(this,this.keyToApi(V,!1,!1))};
_.P.get=function(V){V=this.keyToApi(V,!1,!1);var D=D3.prototype.get.call(this,V);if(D!==void 0){var f=this.valueCtor;return f?(f=this.valueToApi(D,!1,!0,f,this.callToMutableOnAccess,this.arrayState),f!==D&&D3.prototype.set.call(this,V,f),f):D}};
WB.prototype[Symbol.iterator]=function(){return this.entries()};
WB.prototype.toJSON=void 0;var vpY;var quY=function(){},Oc=function(V,D){for(var f in V)!isNaN(f)&&D(V,+f,V[f])},XHd=function(V){var D=new quY;
Oc(V,function(f,n,t){D[n]=tZ(t)});
D.reviveUnknownFields=V.reviveUnknownFields;return D},dLc={reviveIntoImmutable:!0};var C6R;var io9,Su3;var yQZ,gu,TP,GP,ZVc,FX,yf,jRn,l09,sk,GYZ,Bb,Nk,mz;yQZ=_.Lo(0);_.yd={};_.ZX=function(V,D,f,n,t){D=gu(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D,f,t);if(D!==null||n&&V.noLegacyNull!==u6)return D};
gu=function(V,D,f,n){if(D===-1)return null;var t=D+(f?0:-1),J=V.length-1;if(!(J<1+(f?0:-1))){if(t>=J){var H=V[J];if(H!=null&&typeof H==="object"&&H.constructor===Object){f=H[D];var Q=!0}else if(t===J)f=H;else return}else f=V[t];if(n&&f!=null){n=n(f);if(n==null)return n;if(!Object.is(n,f))return Q?H[D]=n:V[t]=n,n}return f}};
_.tB=function(V,D,f,n){Tj(V);var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z3(t,t[_.eE]|0,D,f,n);return V};
_.jP=function(V,D,f){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return du(V,V[_.eE]|0,D,f)!==void 0};
_.l4=function(V,D,f,n){var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return du(t,t[_.eE]|0,D,GP(V,n,f))!==void 0};
_.DC=function(V){return V===PmR?2:4};
_.Gl=function(V,D){V=_.ZX(V,D,void 0,void 0,DoF);return V==null?_.Co():V};
TP=function(V,D,f,n){Tj(V);var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=t[_.eE]|0;if(n==null){var H=nf3(t);if(tWd(H,t,J,f)===D)H.set(f,0);else return V}else J=PXd(t,J,f,D);Z3(t,J,D,n);return V};
_.eP=function(V,D,f,n){var t=V[_.eE]|0,J=Yp(t);t=PXd(V,t,f,D,J);Z3(V,t,D,n,J)};
GP=function(V,D,f){return _.cb(V,D)===f?f:-1};
_.cb=function(V,D){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return tWd(nf3(V),V,void 0,D,void 0)};
ZVc=function(V,D,f){var n=V[_.eE]|0,t=Yp(n),J=gu(V,f,t);if(J!=null&&J[$f]===iX){if(!NL(J))return H7(J),J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var H=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(J)&&(H=J);if(H){var Q=H[_.eE]|0;Q&2&&(H=ok(H,Q))}H=P7(H,D,!0);H!==J&&Z3(V,n,f,H,t);return H};
_.bW=function(V,D,f,n){var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=t[_.eE]|0;D=du(t,J,D,f,n);if(D==null)return D;J=t[_.eE]|0;if(!NL(V,J)){var H=cr9(D);H!==D&&(H7(V)&&(t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=t[_.eE]|0),D=H,J=Z3(t,J,f,D,n),bF(t,J))}return D};
_.Vh=function(V,D,f,n){var t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ofX(V,t,t[_.eE]|0,D,f,n,!1,!0)};
_.fc=function(V,D,f,n){f=JZZ(f);_.tB(V,D,f,n);f&&!NL(f)&&bF(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return V};
_.nc=function(V,D,f,n){n=JZZ(n);TP(V,D,f,n);n&&!NL(n)&&bF(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return V};
FX=function(V,D,f){Tj(V);var n=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=n[_.eE]|0;if(f==null)return Z3(n,t,D),V;for(var J=f===Gj?7:f[_.eE]|0,H=J,Q=Fm(J),T=Q||Object.isFrozen(f),y=!0,Z=!0,l=0;l<f.length;l++){var G=f[l];Q||(G=NL(G),y&&(y=!G),Z&&(Z=G))}Q||(J=y?13:5,J=Z?J&-4097:J|4096);T&&J===H||(f=tZ(f),H=0,J=e_(J,t));J!==H&&vH(f,J);t=Z3(n,t,D,f);2&J||!(4096&J||16&J)||bF(n,t);return V};
yf=function(V,D,f,n){HwL(V,D,f,n);return V};
jRn=function(V,D,f){HwL(V,D,gf,void 0,f,1,!0);return V};
_.vb=function(V,D,f){V=_.ZX(V,D,void 0,f);D=typeof V;V=V==null?V:D==="bigint"?_.Lo((0,_.qo)(64,V)):_.jW(V)?D==="string"?_.Qld(V):_.HoX(V):void 0;return V};
_.ks=function(V,D){var f=f===void 0?!1:f;var n;return(n=_.OxL(_.ZX(V,D)))!=null?n:f};
_.fJ=function(V,D,f){f=f===void 0?0:f;var n;return(n=_.vB(_.ZX(V,D)))!=null?n:f};
l09=function(V,D){var f=f===void 0?0:f;V=_.sc(_.ZX(V,D));return V!=null?V:f};
sk=function(V,D,f){f=f===void 0?yQZ:f;var n;return(n=_.KY3(_.ZX(V,D)))!=null?n:f};
GYZ=function(V){var D=D===void 0?yQZ:D;var f;return(f=_.vb(V,23))!=null?f:D};
Bb=function(V,D){var f=f===void 0?0:f;var n;return(n=_.ZX(V,D,void 0,void 0,_.HB))!=null?n:f};
_.df=function(V,D,f,n){f=f===void 0?"":f;var t;return(t=_.Yf(_.ZX(V,D,n)))!=null?t:f};
_.u4=function(V,D){var f=f===void 0?0:f;var n;return(n=_.eW(_.ZX(V,D)))!=null?n:f};
Nk=function(V,D){var f=f===void 0?"0":f;V=bo9(_.ZX(V,D),!0);return V!=null?V:f};
mz=function(V,D,f){return _.df(V,GP(V,f,D))};
_.zl=function(V,D,f,n){return _.bW(V,D,GP(V,n,f),void 0)};
_.KJ=function(V,D){return _.Yf(_.ZX(V,D,void 0,_.yd))};
_.oV=function(V,D,f){return _.tB(V,D,IZL(f))};
_.sX=function(V,D,f){return _.kr(V,D,IZL(f),!1)};
_.R$=function(V,D,f){return _.tB(V,D,_.gR(f))};
_.c2=function(V,D,f){return _.tB(V,D,zJ(f))};
_.lB=function(V,D,f){return _.tB(V,D,aq(f))};
_.O1=function(V,D,f,n){return _.kr(V,D,aq(f),"",n)};
_.nh=function(V,D,f){return _.tB(V,D,f==null?f:_.lX(f))};
_.Cg=function(V,D,f){return _.kr(V,D,f==null?f:_.lX(f),0)};var Ne=function(V,D,f){this.buffer=V;if(f&&!D)throw Error();this.JSC$6939_isImmutable=D};var efc=function(V,D,f,n){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6942_start_=0;this.init(V,D,f,n)},qk,FG3,gaF,kYY,doL,cQ9;
_.P=efc.prototype;_.P.init=function(V,D,f,n){var t=n===void 0?{}:n;n=t.aliasBytesFields===void 0?!1:t.aliasBytesFields;t=t.treatNewDataAsImmutable===void 0?!1:t.treatNewDataAsImmutable;this.aliasBytesFields=n;this.treatNewDataAsImmutable=t;V&&(V=wB3(V,this.treatNewDataAsImmutable),this.bytes_=V.buffer,this.bytesAreImmutable_=V.JSC$6939_isImmutable,this.JSC$6942_start_=D||0,this.end_=f!==void 0?this.JSC$6942_start_+f:this.bytes_.length,this.cursor_=this.JSC$6942_start_)};
_.P.free=function(){this.clear();cQ9.length<100&&cQ9.push(this)};
_.P.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6942_start_=0;this.aliasBytesFields=!1};
_.P.reset=function(){this.cursor_=this.JSC$6942_start_};
_.P.atEnd=function(){return this.cursor_==this.end_};
_.XX=function(V,D){var f=0,n=0,t=0,J=V.bytes_,H=V.cursor_;do{var Q=J[H++];f|=(Q&127)<<t;t+=7}while(t<32&&Q&128);t>32&&(n|=(Q&127)>>4);for(t=3;t<32&&Q&128;t+=7)Q=J[H++],n|=(Q&127)<<t;qk(V,H);if(Q<128)return D(f>>>0,n>>>0);throw Error("X");};
qk=function(V,D){V.cursor_=D;if(D>V.end_)throw Error("Y`"+D+"`"+V.end_);};
_.Ek=function(V){var D=V.bytes_,f=V.cursor_,n=D[f++],t=n&127;if(n&128&&(n=D[f++],t|=(n&127)<<7,n&128&&(n=D[f++],t|=(n&127)<<14,n&128&&(n=D[f++],t|=(n&127)<<21,n&128&&(n=D[f++],t|=n<<28,n&128&&D[f++]&128&&D[f++]&128&&D[f++]&128&&D[f++]&128&&D[f++]&128)))))throw Error("X");qk(V,f);return t};
_.AF=function(V){var D=V.bytes_,f=V.cursor_,n=D[f],t=D[f+1],J=D[f+2];D=D[f+3];qk(V,V.cursor_+4);return(n<<0|t<<8|J<<16|D<<24)>>>0};
FG3=function(V){var D=_.AF(V);V=_.AF(V);return pn3(D,V)};
gaF=function(V){var D=_.AF(V),f=_.AF(V);V=(f>>31)*2+1;var n=f>>>20&2047;D=4294967296*(f&1048575)+D;return n==2047?D?NaN:V*Infinity:n==0?V*4.9E-324*D:V*Math.pow(2,n-1075)*(D+4503599627370496)};
_.vaF=function(V){for(var D=0,f=V.cursor_,n=f+10,t=V.bytes_;f<n;){var J=t[f++];D|=J;if((J&128)===0)return qk(V,f),!!(D&127)}throw Error("X");};
kYY=function(V,D){if(D<0)throw Error("Z`"+D);var f=V.cursor_,n=f+D;if(n>V.end_)throw Error("Y`"+(V.end_-f)+"`"+D);V.cursor_=n;return f};
doL=function(V,D){if(D==0)return _.Co();var f=kYY(V,D);V.aliasBytesFields&&V.bytesAreImmutable_?f=V.bytes_.subarray(f,f+D):(V=V.bytes_,D=f+D,f=f===D?new Uint8Array(0):TeL?V.slice(f,D):new Uint8Array(V.subarray(f,D)));return f.length==0?_.Co():new zU(f,Rl)};
cQ9=[];var BeX=function(V,D,f,n){if(cQ9.length){var t=cQ9.pop();t.init(V,D,f,n);V=t}else V=new efc(V,D,f,n);this.decoder_=V;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;sRR(this,n)},sRR=function(V,D){D=D===void 0?{}:D;
V.discardUnknownFields=D.discardUnknownFields===void 0?!1:D.discardUnknownFields},moY=function(V,D,f,n){if(dcx.length){var t=dcx.pop();
sRR(t,n);t.decoder_.init(V,D,f,n);return t}return new BeX(V,D,f,n)},sqR,An,uJZ,dcx;
BeX.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;dcx.length<100&&dcx.push(this)};
BeX.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
sqR=function(V){if(V.decoder_.atEnd())return!1;V.fieldCursor_=V.decoder_.cursor_;var D=_.Ek(V.decoder_)>>>0,f=D>>>3;D&=7;if(!(D>=0&&D<=5))throw Error("T`"+D+"`"+V.fieldCursor_);if(f<1)throw Error("U`"+f+"`"+V.fieldCursor_);V.nextField_=f;V.nextWireType_=D;return!0};
An=function(V){switch(V.nextWireType_){case 0:V.nextWireType_!=0?An(V):_.vaF(V.decoder_);break;case 1:V=V.decoder_;qk(V,V.cursor_+8);break;case 2:if(V.nextWireType_!=2)An(V);else{var D=_.Ek(V.decoder_)>>>0;V=V.decoder_;qk(V,V.cursor_+D)}break;case 5:V=V.decoder_;qk(V,V.cursor_+4);break;case 3:D=V.nextField_;do{if(!sqR(V))throw Error("V");if(V.nextWireType_==4){if(V.nextField_!=D)throw Error("W");break}An(V)}while(1);break;default:throw Error("T`"+V.nextWireType_+"`"+V.fieldCursor_);}};
uJZ=function(V,D,f){var n=V.decoder_.end_,t=_.Ek(V.decoder_)>>>0,J=V.decoder_.cursor_+t,H=J-n;H<=0&&(V.decoder_.end_=J,f(D,V,void 0,void 0,void 0),H=J-V.decoder_.cursor_);if(H)throw Error("S`"+t+"`"+(t-H));V.decoder_.cursor_=J;V.decoder_.end_=n};
_.NeF=function(V){var D=_.Ek(V.decoder_)>>>0;V=V.decoder_;var f=kYY(V,D);V=V.bytes_;if(wDU){var n=V,t;(t=H3Y)||(t=H3Y=new TextDecoder("utf-8",{fatal:!0}));D=f+D;n=f===0&&D===n.length?n:n.subarray(f,D);try{var J=t.decode(n)}catch(y){if(r9X===void 0){try{t.decode(new Uint8Array([128]))}catch(Z){}try{t.decode(new Uint8Array([97])),r9X=!0}catch(Z){r9X=!1}}!r9X&&(H3Y=void 0);throw y;}}else{J=f;D=J+D;f=[];for(var H=null,Q,T;J<D;)Q=V[J++],Q<128?f.push(Q):Q<224?J>=D?DZ():(T=V[J++],Q<194||(T&192)!==128?(J--,
DZ()):f.push((Q&31)<<6|T&63)):Q<240?J>=D-1?DZ():(T=V[J++],(T&192)!==128||Q===224&&T<160||Q===237&&T>=160||((t=V[J++])&192)!==128?(J--,DZ()):f.push((Q&15)<<12|(T&63)<<6|t&63)):Q<=244?J>=D-2?DZ():(T=V[J++],(T&192)!==128||(Q<<28)+(T-144)>>30!==0||((t=V[J++])&192)!==128||((n=V[J++])&192)!==128?(J--,DZ()):(Q=(Q&7)<<18|(T&63)<<12|(t&63)<<6|n&63,Q-=65536,f.push((Q>>10&1023)+55296,(Q&1023)+56320))):DZ(),f.length>=8192&&(H=VRY(H,f),f.length=0);J=VRY(H,f)}return J};
_.mcZ=function(V){var D=_.Ek(V.decoder_)>>>0;return doL(V.decoder_,D)};
_.zfc=function(V,D,f){var n=_.Ek(V.decoder_)>>>0;for(n=V.decoder_.cursor_+n;V.decoder_.cursor_<n;)f.push(D(V.decoder_))};
dcx=[];var RfY=function(V,D){this.JSC$6949_lo=V>>>0;this.JSC$6949_hi=D>>>0},qFU=function(V){if(!V)return CmU||(CmU=new RfY(0,0));
if(!/^\d+$/.test(V))return null;fw(V);return new RfY(Ou,xp)},CmU,iwX=function(V,D){this.JSC$6951_lo=V>>>0;
this.JSC$6951_hi=D>>>0},YcZ=function(V){if(!V)return XFx||(XFx=new iwX(0,0));
if(!/^-?\d+$/.test(V))return null;fw(V);return new iwX(Ou,xp)},XFx;var Eax=function(){this.JSC$6953_buffer_=[]},$ox,AQc;
Eax.prototype.length=function(){return this.JSC$6953_buffer_.length};
Eax.prototype.end=function(){var V=this.JSC$6953_buffer_;this.JSC$6953_buffer_=[];return V};
$ox=function(V,D,f){for(;f>0||D>127;)V.JSC$6953_buffer_.push(D&127|128),D=(D>>>7|f<<25)>>>0,f>>>=7;V.JSC$6953_buffer_.push(D)};
AQc=function(V,D){for(;D>127;)V.JSC$6953_buffer_.push(D&127|128),D>>>=7;V.JSC$6953_buffer_.push(D)};
_.Scx=function(V,D){if(D>=0)AQc(V,D);else{for(var f=0;f<9;f++)V.JSC$6953_buffer_.push(D&127|128),D>>=7;V.JSC$6953_buffer_.push(1)}};
_.OW=function(V,D){V.JSC$6953_buffer_.push(D>>>0&255);V.JSC$6953_buffer_.push(D>>>8&255);V.JSC$6953_buffer_.push(D>>>16&255);V.JSC$6953_buffer_.push(D>>>24&255)};var a0d,iF,pB3,OwZ;a0d=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Eax};
iF=function(V,D){D.length!==0&&(V.blocks_.push(D),V.totalLength_+=D.length)};
_.K3R=function(V,D){_.L4(V,D,2);D=V.encoder_.end();iF(V,D);D.push(V.totalLength_);return D};
_.yZ9=function(V,D){var f=D.pop();for(f=V.totalLength_+V.encoder_.length()-f;f>127;)D.push(f&127|128),f>>>=7,V.totalLength_++;D.push(f);V.totalLength_++};
_.L4=function(V,D,f){AQc(V.encoder_,D*8+f)};
pB3=function(V,D,f){if(f!=null){switch(typeof f){case "string":qFU(f)}_.L4(V,D,1);switch(typeof f){case "number":V=V.encoder_;SdZ(f);_.OW(V,Ou);_.OW(V,xp);break;case "bigint":f=BigInt.asUintN(64,f);f=new RfY(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));V=V.encoder_;D=f.JSC$6949_hi;_.OW(V,f.JSC$6949_lo);_.OW(V,D);break;default:f=qFU(f),V=V.encoder_,D=f.JSC$6949_hi,_.OW(V,f.JSC$6949_lo),_.OW(V,D)}}};
OwZ=function(V,D,f){_.L4(V,D,2);AQc(V.encoder_,f.length);iF(V,V.encoder_.end());iF(V,f)};var Qq9,iVF,SFZ,LGZ,I0R;Qq9=zj();_.YFR=zj();_.$c3=zj();iVF=zj();SFZ=zj();_.WGc=zj();_.a$=zj();_.pFc=zj();LGZ=zj();I0R=zj();_.OV3=zj();_.xcL=zj();_.Xm=function(V,D,f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,D,f)};
_.Xm.prototype.toJSON=function(){return n4(this)};
_.Xm.prototype.serialize=function(V){return JSON.stringify(n4(this,V))};
var nrY=function(V,D){if(D==null||D=="")return new V;D=JSON.parse(D);if(!Array.isArray(D))throw Error("$");return new V(C3Z(D))};
_.Xm.prototype.getExtension=function(V){mLF(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V.fieldIndex);uFF(this,V.fieldIndex);return V.ctor?V.isRepeated?V.getExtensionFn(this,V.ctor,V.fieldIndex,_.DC(),V.JSC$6964_hasMessageId):V.getExtensionFn(this,V.ctor,V.fieldIndex,V.JSC$6964_hasMessageId):V.isRepeated?V.getExtensionFn(this,V.fieldIndex,_.DC(),V.JSC$6964_hasMessageId):V.getExtensionFn(this,V.fieldIndex,V.defaultValue,V.JSC$6964_hasMessageId)};
_.Xm.prototype.clone=function(){var V=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=V[_.eE]|0;return ru(this,V,D)?Jn(this,V,!0):new this.constructor(ok(V,D,!1))};
_.Xm.prototype[$f]=iX;_.Xm.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Rk=function(V,D,f){this.$$binaryReaderFn=V;this.$$binaryWriterFn=D;V=pw(Qq9);this.$$isMsg=!!V&&f===V||!1},GJU=TRx(function(V,D,f,n,t){if(V.nextWireType_!==2)return!1;
uJZ(V,ZVc(D,n,f),t);return!0},ZwL),evx=TRx(function(V,D,f,n,t){if(V.nextWireType_!==2)return!1;
uJZ(V,ZVc(D,n,f),t);return!0},ZwL),Yr=Symbol(),EW=Symbol(),kJU=Symbol(),Rvn=Symbol(),uVZ=Symbol(),jqn,lRY;var DeL,Mjn,hfY,Ucc,VAX,DtY,fL9,nH3,tAY,P_c,oHn,rHc,Hq9,Qo9,T4F;DeL=function(V,D){var f=new a0d;CX9(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f,qe(Yr,ak,$r,D));iF(f,f.encoder_.end());V=new Uint8Array(f.totalLength_);D=f.blocks_;for(var n=D.length,t=0,J=0;J<n;J++){var H=D[J];V.set(H,t);t+=H.length}f.blocks_=[V];return V};
Mjn=_.S_(function(V,D,f){if(V.nextWireType_!==1)return!1;_.W7(D,f,gaF(V.decoder_));return!0},aRX,I0R);
hfY=_.S_(function(V,D,f,n){if(V.nextWireType_!==1)return!1;_.eP(D,f,n,gaF(V.decoder_));return!0},aRX,I0R);
Ucc=_.S_(function(V,D,f,n){if(V.nextWireType_!==5)return!1;var t=_.AF(V.decoder_);V=(t>>31)*2+1;var J=t>>>23&255;t&=8388607;_.eP(D,f,n,J==255?t?NaN:V*Infinity:J==0?V*1.401298464324817E-45*t:V*Math.pow(2,J-150)*(t+8388608));return!0},function(V,D,f){D=_.HB(D);
D!=null&&(_.L4(V,f,5),V=V.encoder_,f=Ik||(Ik=new DataView(new ArrayBuffer(8))),f.setFloat32(0,+D,!0),xp=0,Ou=f.getUint32(0,!0),_.OW(V,Ou))},LGZ);
_.Ys=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;_.W7(D,f,_.XX(V.decoder_,Uu));return!0},_.xr,_.a$);
VAX=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;V=_.XX(V.decoder_,Uu);_.W7(D,f,V===0?void 0:V);return!0},_.xr,_.a$);
DtY=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.XX(V.decoder_,Uu));return!0},_.xr,_.a$);
_.$s=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;_.W7(D,f,_.Ek(V.decoder_));return!0},W3n,iVF);
fL9=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;V=_.Ek(V.decoder_);_.W7(D,f,V===0?void 0:V);return!0},W3n,iVF);
nH3=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.Ek(V.decoder_));return!0},W3n,iVF);
tAY=_.S_(function(V,D,f){if(V.nextWireType_!==1)return!1;_.W7(D,f,FG3(V.decoder_));return!0},_.L33,_.pFc);
P_c=_.AZn(function(V,D,f){if(V.nextWireType_!==1&&V.nextWireType_!==2)return!1;D=_.sW(D,D[_.eE]|0,f);V.nextWireType_==2?_.zfc(V,FG3,D):D.push(FG3(V.decoder_));return!0},function(V,D,f){D=_.Efd(Zo9,D,!1);
if(D!=null)for(var n=0;n<D.length;n++)pB3(V,f,D[n])},_.pFc);
_.i4=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;_.W7(D,f,_.vaF(V.decoder_));return!0},_.IRZ,_.YFR);
oHn=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.vaF(V.decoder_));return!0},_.IRZ,_.YFR);
_.SP=_.S_(function(V,D,f){if(V.nextWireType_!==2)return!1;_.W7(D,f,_.NeF(V));return!0},_.xoX,_.$c3);
_.JHZ=_.S_(function(V,D,f,n){if(V.nextWireType_!==2)return!1;_.eP(D,f,n,_.NeF(V));return!0},_.xoX,_.$c3);
rHc=_.AZn(function(V,D,f){if(V.nextWireType_!==2)return!1;V=_.NeF(V);_.sW(D,D[_.eE]|0,f).push(V);return!0},function(V,D,f){D=_.Efd(_.Yf,D,!0);
if(D!=null)for(var n=0;n<D.length;n++){var t=V,J=f,H=D[n];H!=null&&OwZ(t,J,tRL(H))}},_.$c3);
Hq9=void 0;Hq9=Hq9===void 0?Qq9:Hq9;_.Wb=new Rk(function(V,D,f,n,t){if(V.nextWireType_!==2)return!1;n=P7(void 0,n,!0);_.sW(D,D[_.eE]|0,f).push(n);uJZ(V,n,t);return!0},function(V,D,f,n,t){if(Array.isArray(D))for(var J=0;J<D.length;J++)MWd(V,D[J],f,n,t)},Hq9);
_.pg=TRx(function(V,D,f,n,t,J){if(V.nextWireType_!==2)return!1;var H=D[_.eE]|0;PXd(D,H,J,f,Yp(H));D=ZVc(D,n,f);uJZ(V,D,t);return!0},MWd);
_.wLR=_.S_(function(V,D,f){if(V.nextWireType_!==2)return!1;_.W7(D,f,_.mcZ(V));return!0},_.UoU,_.OV3);
Qo9=_.S_(function(V,D,f,n){if(V.nextWireType_!==2)return!1;_.eP(D,f,n,_.mcZ(V));return!0},_.UoU,_.OV3);
T4F=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.Ek(V.decoder_)>>>0);return!0},function(V,D,f){D=_.sc(D);
D!=null&&D!=null&&(_.L4(V,f,0),AQc(V.encoder_,D))},SFZ);
_.Lg=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;_.W7(D,f,_.Ek(V.decoder_));return!0},_.V_F,_.xcL);var yHZ=function(){var V=bqR,D=KQF;this.fieldIndex=175237375;this.ctor=D;this.isRepeated=0;this.getExtensionFn=_.bW;this.defaultValue=void 0;this.JSC$6964_hasMessageId=V.messageId!=null?Ar:void 0};
yHZ.prototype.register=function(){o$(this)};var ZqX=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ZqX,_.Xm);var joc=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(joc,_.Xm);var orZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(orZ,_.Xm);var lL9=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(lL9,_.Xm);var GWL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(GWL,_.Xm);var eeY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(eeY,_.Xm);var cHY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(cHY,_.Xm);cHY.prototype.getData=function(){return _.Gl(this,2)};var FQL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(FQL,_.Xm);var gHx=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(gHx,_.Xm);gHx.prototype.getStyle=function(){return _.bW(this,ZqX,1)};var De=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(De,_.Xm);De.prototype.getPayloadCase=function(){return _.cb(this,tL)};
De.prototype.getStyle=function(){return _.zl(this,gHx,6,tL)};
var vHL=function(){var V=new De,D=new GWL;return _.nc(V,7,tL,D)},kWZ=function(){var V=new De,D=new eeY;
return _.nc(V,8,tL,D)},tL=[1,
2,3,4,5,6,7,8];var soL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(soL,_.Xm);var B4R=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(B4R,_.Xm);var dtZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(dtZ,_.Xm);var ulY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ulY,_.Xm);var N49=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(N49,_.Xm);var mt3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(mt3,_.Xm);var ze3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ze3,_.Xm);var Re9=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Re9,_.Xm);Re9.prototype.getData=function(){return _.Gl(this,2)};var C_Z=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(C_Z,_.Xm);var PF9=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(PF9,_.Xm);PF9.prototype.getPayloadCase=function(){return _.cb(this,I$)};
var I$=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ok=function(V,D){V=Error.call(this,V);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=D===void 0?2:D};
_.v(Ok,Error);var qZx=Promise;var XLX=function(V){this.channelPromise=V};
XLX.prototype.send=function(V,D,f){this.channelPromise.then(function(n){n.send(V,D,f)})};var EH9=function(V,D){this.data=V;this.channel=D};
EH9.prototype.reply=function(V,D,f){this.channel.send(V,D,f)};var AHX=function(V){this.JSC$7030_port_=V};
AHX.prototype.send=function(V,D,f){f=f===void 0?[]:f;var n=new MessageChannel;aLX(n.port1,D);this.JSC$7030_port_.postMessage(V,[n.port2].concat(f))};
var YZZ=function(V,D){aLX(V,D);return new AHX(V)},aLX=function(V,D){D&&(V.onmessage=function(f){D(new EH9(f.data,YZZ(f.ports[0])))})};var $t9=function(V){this.verifier_=V},iqx=function(V){var D=Object.create(null);
(typeof V==="string"?[V]:V).forEach(function(f){if(f==="null")throw Error("ba");D[f]=!0});
return function(f){return D[f]===!0}};_.SZd=function(){if(!_.fx.addEventListener||!Object.defineProperty)return!1;var V=!1,D=Object.defineProperty({},"passive",{get:function(){V=!0}});
try{var f=function(){};
_.fx.addEventListener("test",f,D);_.fx.removeEventListener("test",f,D)}catch(n){}return V}();var WQZ;_.xs=function(V){var D=V.destination;var f=V.iframe;var n=V.origin;var t=V.channelName===void 0?"ZNWN1d":V.channelName;var J=V.onMessage===void 0?void 0:V.onMessage;V=V.onEstablished===void 0?void 0:V.onEstablished;return WQZ({destination:D,getSource:function(){return f.contentWindow},
originVerifier:n instanceof $t9?n:typeof n==="function"?new $t9(n):new $t9(iqx(n)),channelName:t,onMessage:J,onEstablished:V})};
WQZ=function(V){var D=V.destination;var f=V.getSource;var n=V.originVerifier;var t=V.token===void 0?void 0:V.token;var J=V.channelName;var H=V.onMessage===void 0?void 0:V.onMessage;var Q=V.onEstablished===void 0?void 0:V.onEstablished;return new XLX(new qZx(function(T,y){var Z=function(l){l.source&&l.source===f()&&n.verifier_(l.origin)&&(l.data.n||l.data)===J&&(D.removeEventListener("message",Z,!1),t&&l.data.t!==t?y(Error("ca`"+J+"`"+t+"`"+l.data.t)):(T(YZZ(l.ports[0],H)),Q&&Q(l)))};
D.addEventListener("message",Z,!1)}))};var pLY=function(V){try{V()}catch(D){nx(D)}};var ILU=function(V){var D=this;var f=V.getMessageType;var n=V.onUnregisteredMessage===void 0?function(){}:V.onUnregisteredMessage;
var t=V.onBeforeRegisteredMessage===void 0?function(){}:V.onBeforeRegisteredMessage;
V=V.onAfterRegisteredMessage===void 0?function(){}:V.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=f;this.onUnregisteredMessage_=n;this.onBeforeRegisteredMessage_=t;this.onAfterRegisteredMessage_=V;this.onMessage=function(J){return LQF(D,J)}};
ILU.prototype.register=function(V,D){this.registry_.set(V,D);return this};
var LQF=function(V,D){var f=V.getMessageType_(D.data),n=V.registry_.get(f);n?(pLY(function(){return V.onBeforeRegisteredMessage_(D,f)}),pLY(function(){return n(D)}),pLY(function(){return V.onAfterRegisteredMessage_(D,f)})):pLY(function(){return V.onUnregisteredMessage_(D,f)})};var Oq3=function(V){this.JSC$7047_channel_=V},MA9,heY;
Oq3.prototype.send=function(V,D,f){this.JSC$7047_channel_.send(n4(V),D,f)};
_.xt9=function(V,D){return function(f){var n=new V(f.data);return D(new EH9(n,f.channel))}};
MA9=function(V){return function(D){return V(new EH9(D.data,new Oq3(D.channel)))}};
heY=function(V,D){return MA9(_.xt9(V,D))};var Ut9=function(V,D,f,n){this.registry=V;this.delegate=D;this.receiveMessageConstructor=f;this.createInitMessage=n;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},t_9=function(V){var D=new ILU({getMessageType:V.getPayloadCase});
return new Ut9(D,new Oq3(_.xs({iframe:V.child,destination:window,origin:V.origin,channelName:V.channelName,onMessage:heY(V.receiveMessageConstructor,D.onMessage)})),V.receiveMessageConstructor,V.createInitMessage)},VpY=function(V,D){V.createInitMessage=D};
Ut9.prototype.send=function(V){if(!this.initialised)throw new Ok("Attempted to send a message before initialisation.");this.delegate.send(V)};
var DVU=function(V,D){return _.w(function(f){if(!V.initialised)throw new Ok("Attempted to send a message before initialisation.");return f.return(new Promise(function(n){V.delegate.send(D,heY(V.receiveMessageConstructor,n))}))})};
Ut9.prototype.init=function(){var V=this;return _.w(function(D){if(V.initialised)throw new Ok("Attempted to initialise twice. The SDK can only be initialised once.");if(V.createInitMessage!==void 0){var f=V.delegate,n=f.send,t=V.createInitMessage;var J=new joc;var H=[].concat(_.sz(V.features));J=_.v7(J,1,H,_.lX);n.call(f,t.call(V,J))}V.initialised=!0;_.yz(D)})};
var Mk=function(V,D){if(V.initialised)throw new Ok('Attempted to set up API "'+D+'" after initialisation. All APIs must be set up before initialising the SDK.');V.features.add(D);return V.registry};
_.IG.Object.defineProperties(Ut9.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var fMZ=function(V){this.channel=V;this.registered=!1};
fMZ.prototype.update=function(V){if(this.channel.isInitialised){if(!this.registered)throw new Ok("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var D=new De;var f=new lL9;f=_.oV(f,1,V);D=_.nc(D,2,tL,f);this.channel.send(D)}else this.register();this.JSC$7061_audioEnabled=V};
fMZ.prototype.register=function(){Mk(this.channel,1);this.registered=!0};
fMZ.prototype.isAudioEnabled=function(){return this.JSC$7061_audioEnabled};var nRx=function(V){this.channel=V};
_.P=nRx.prototype;_.P.onFirstFrameReady=function(V){Mk(this.channel,2).register(11,function(D){D=_.zl(D.data,soL,11,I$);if(!D)throw new Ok("Unexpectedly nonexistent GameFirstFrameReadyEvent");V(_.df(D,1))})};
_.P.onReady=function(V){Mk(this.channel,2).register(4,function(D){D=_.zl(D.data,dtZ,4,I$);if(!D)throw new Ok("Unexpectedly nonexistent GameReadyEvent");V(_.df(D,1))})};
_.P.onLevelComplete=function(V){Mk(this.channel,2).register(5,function(D){D=_.zl(D.data,ulY,5,I$);if(!D)throw new Ok("Unexpectedly nonexistent LevelCompleteEvent");V(_.df(D,1),_.fJ(D,2))})};
_.P.onGameOver=function(V){Mk(this.channel,2).register(6,function(D){D=_.zl(D.data,B4R,6,I$);if(!D)throw new Ok("Unexpectedly nonexistent GameOverEvent");V(_.df(D,1))})};
_.P.pause=function(){var V=this;if(!this.channel.isInitialised)return Mk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ok("Using unregistered Game Feature: pause.");var D=vHL();return new Promise(function(f){return _.w(function(n){if(n.nextAddress==1)return _.b(n,DVU(V.channel,D),2);f();_.yz(n)})})};
_.P.resume=function(){var V=this;if(!this.channel.isInitialised)return Mk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ok("Using unregistered Game Feature: resume.");var D=kWZ();return new Promise(function(f){return _.w(function(n){if(n.nextAddress==1)return _.b(n,DVU(V.channel,D),2);f();_.yz(n)})})};var tpL=function(V){this.channel=V};
tpL.prototype.onReady=function(V){Mk(this.channel,5).register(8,function(D){if(!_.zl(D.data,N49,8,I$))throw new Ok("Unexpectedly nonexistent PageReadyEvent");V()})};var PPZ=function(V){this.channel=V};
PPZ.prototype.onChange=function(V){Mk(this.channel,3).register(7,function(D){D=_.zl(D.data,mt3,7,I$);if(!D)throw new Ok("Unexpectedly nonexistent ScoreEvent");V(_.df(D,1),_.fJ(D,2))})};var oRx={load:function(){throw new Ok("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ok("Storage used, but storage.onSave() listener not set!");}},JzY=function(V){this.channel=V;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},rzd=function(V){Mk(V.channel,4).register(2,oRx.load).register(3,oRx.save);
V.initialSetupDone=!0};
JzY.prototype.onLoad=function(V){this.initialSetupDone||rzd(this);this.loadRegistered||(this.loadRegistered=!0,Mk(this.channel,4).register(2,function(D){var f,n,t;return _.w(function(J){if(J.nextAddress==1){f=_.zl(D.data,ze3,2,I$);if(!f)throw new Ok("Unexpectedly nonexistent StorageLoad");n=_.df(f,1);return _.b(J,V(n),2)}t=J.yieldResult;var H=D.reply,Q=new De;var T=new cHY;T=_.lB(T,1,n);T=_.tB(T,2,_.qL(t,!1));Q=_.nc(Q,3,tL,T);H.call(D,Q);_.yz(J)})}))};
JzY.prototype.onSave=function(V){this.initialSetupDone||rzd(this);this.saveRegistered||(this.saveRegistered=!0,Mk(this.channel,4).register(3,function(D){var f,n,t;return _.w(function(J){if(J.nextAddress==1){f=_.zl(D.data,Re9,3,I$);if(!f)throw new Ok("Unexpectedly nonexistent StorageSave");n=_.df(f,1);t=DcZ(f.getData());return _.b(J,V(n,t),2)}var H=D.reply,Q=new De;var T=new FQL;T=_.lB(T,1,n);Q=_.nc(Q,4,tL,T);H.call(D,Q);_.yz(J)})}))};var HUc=function(V){this.channel=V};
HUc.prototype.update=function(V){if(!this.channel.features.has(6))throw new Ok("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var D=new De,f=new gHx;V=_.fc(f,1,V);D=_.nc(D,6,tL,V);this.channel.send(D)};
HUc.prototype.register=function(){Mk(this.channel,6)};var wu3=function(V){this.channel=V;this.userActivityLoggingIntervalMs=0};
wu3.prototype.onUserActivity=function(V,D){this.userActivityLoggingIntervalMs=D;Mk(this.channel,7).register(9,function(f){if(!_.zl(f.data,C_Z,9,I$))throw new Ok("Unexpectedly nonexistent ClickEvent");V()})};var QMR=function(V){var D=this;this.channel=V;this.init=this.channel.init.bind(this.channel);this.page=new tpL(this.channel);this.game=new nRx(this.channel);this.audio=new fMZ(this.channel);this.score=new PPZ(this.channel);this.storage=new JzY(this.channel);this.style=new HUc(this.channel);this.userActivity=new wu3(this.channel);VpY(this.channel,function(f){var n=new orZ;f=_.fc(n,1,f);f=_.R$(f,3,D.userActivity.userActivityLoggingIntervalMs);n=D.audio.isAudioEnabled();n!==void 0&&_.oV(f,2,n);n=new De;
return _.nc(n,5,tL,f)})};var TdY=function(){this.timedFunctionContext=0};
TdY.prototype.timeExecution=function(V,D){var f=this;return function(){var n=_.gQ.apply(0,arguments);f.timedFunctionContext=V;return D.apply(null,_.sz(n))}};var bUR=function(){var V={};this.priorityTasks=(V[3]=[],V[2]=[],V[1]=[],V);this.isFlushing=!1},ww=function(V,D,f){var n=KE9(V,f);
V.priorityTasks[f].push(D);n&&V.priorityTasks[f].length===1&&V.flush()},KE9=function(V,D){return Object.keys(V.priorityTasks).map(function(f){return Number(f)}).filter(function(f){return!isNaN(f)&&f>D}).every(function(f){return V.priorityTasks[f].length===0})};
bUR.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(V){return V.length>0});)yzL(this,3),yzL(this,2),yzL(this,1)}catch(V){throw Object.values(this.priorityTasks).forEach(function(D){return void D.splice(0,D.length)}),V;
}finally{this.isFlushing=!1}}};
var yzL=function(V,D){for(;KE9(V,D)&&V.priorityTasks[D].length>0;)V.priorityTasks[D][0](),V.priorityTasks[D].shift()};
_.IG.Object.defineProperties(bUR.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(V){return V.length>0})}}});var TuZ={};var ZUZ=globalThis.trustedTypes,rnd=ZUZ,w7Z;var JL=function(V){this.privateDoNotAccessOrElseWrappedResourceUrl=V};
JL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var jM9,lMR,GMx,e$3,cz3,FEn,gRL,vRd;jM9=_.WV([""]);lMR=S9(["\x00"],["\\0"]);GMx=S9(["\n"],["\\n"]);e$3=S9(["\x00"],["\\u0000"]);cz3=_.WV([""]);FEn=S9(["\x00"],["\\0"]);gRL=S9(["\n"],["\\n"]);vRd=S9(["\x00"],["\\u0000"]);_.kM9=Q2(function(V){return V(jM9)})||Q2(function(V){return V(lMR)})||Q2(function(V){return V(GMx)})||Q2(function(V){return V(e$3)});
_.sMF=_.wQ(cz3)&&_.wQ(FEn)&&_.wQ(gRL)&&_.wQ(vRd);var eo;_.T6=function(V,D){this.privateDoNotAccessOrElseWrappedUrl=D};
_.T6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Bdx=bv("about:blank");eo=bv("about:invalid#zClosurez");var b4x=function(V){this.isValid=V},dVX=new b4x(function(V){return/^[^:]*([/?#]|$)/.test(V)}),uqx=Ze("data"),NdX=Ze("http"),mVX=Ze("https"),z$X=Ze("ftp"),R$Y=Ze("mailto"),CPd=Ze("intent"),qPU=Ze("vnd.youtube"),Klc=[uqx,
NdX,mVX,R$Y,z$X,dVX],ynZ=PS(function(){return typeof URL==="function"}),XuY=["data:",
"http:","https:","mailto:","ftp:"],jk9=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var BS=function(V){this.privateDoNotAccessOrElseWrappedHtml=V};
BS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var yhc=PS(function(){return new BS(ZUZ?ZUZ.emptyHTML:"")});var ERX={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"},mM=function(V,D){var f=Error.call(this,V+" cannot be used with intent "+ERX[D]);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.type=V;this.intent=D;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.v(mM,Error);_.Xt=function(V){this.privateDoNotAccessOrElseWrappedScript=V};
_.Xt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var eG3=function(V){this.privateDoNotAccessOrElseWrappedAttributePrefix=V};
eG3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var cnF="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var eqZ=function(V){var D=_.Yw("window.location.href");V==null&&(V='Unknown Error of type "null/undefined"');if(typeof V==="string")return{message:V,name:"Unknown error",lineNumber:"Not available",fileName:D,stack:"Not available"};var f=!1;try{var n=V.lineNumber||V.line||"Not available"}catch(H){n="Not available",f=!0}try{var t=V.fileName||V.filename||V.sourceURL||_.fx.$googDebugFname||D}catch(H){t="Not available",f=!0}D=AzX(V);if(!(!f&&V.lineNumber&&V.fileName&&V.stack&&V.message&&V.name)){f=V.message;
if(f==null){if(V.constructor&&V.constructor instanceof Function){if(V.constructor.name)f=V.constructor.name;else if(f=V.constructor,hF[f])f=hF[f];else{f=String(f);if(!hF[f]){var J=/function\s+([^\(]+)/m.exec(f);hF[f]=J?J[1]:"[Anonymous]"}f=hF[f]}f='Unknown Error of type "'+f+'"'}else f="Unknown Error of unknown type";typeof V.toString==="function"&&Object.prototype.toString!==V.toString&&(f+=": "+V.toString())}return{message:f,name:V.name||"UnknownError",lineNumber:n,fileName:t,stack:D||"Not available"}}return{message:V.message,
name:V.name,lineNumber:V.lineNumber,fileName:V.fileName,stack:D}},AzX=function(V,D){D||(D={});
D[aMR(V)]=!0;var f=V.stack||"",n=V.cause;n&&!D[aMR(n)]&&(f+="\nCaused by: ",n.stack&&n.stack.indexOf(n.toString())==0||(f+=typeof n==="string"?n:n.message+"\n"),f+=AzX(n,D));V=V.errors;if(Array.isArray(V)){n=1;var t;for(t=0;t<V.length&&!(n>4);t++)D[aMR(V[t])]||(f+="\nInner error "+n++ +": ",V[t].stack&&V[t].stack.indexOf(V[t].toString())==0||(f+=typeof V[t]==="string"?V[t]:V[t].message+"\n"),f+=AzX(V[t],D));t<V.length&&(f+="\n... "+(V.length-t)+" more inner errors")}return f},aMR=function(V){var D=
"";
typeof V.toString==="function"&&(D=""+V);return D+V.stack},hF={};var YP9,UG,o7,iUx,SP9,$V9,aV,Ae,puY;YP9=function(V,D){for(var f=V.split("%s"),n="",t=Array.prototype.slice.call(arguments,1);t.length&&f.length>1;)n+=f.shift()+t.shift();return n+f.join("%s")};
_.ia=function(V){return encodeURIComponent(String(V))};
UG=function(V){return decodeURIComponent(V.replace(/\+/g," "))};
o7=function(V){lIL.test(V)&&(V.indexOf("&")!=-1&&(V=V.replace(T_Y,"&amp;")),V.indexOf("<")!=-1&&(V=V.replace(b39,"&lt;")),V.indexOf(">")!=-1&&(V=V.replace(KUY,"&gt;")),V.indexOf('"')!=-1&&(V=V.replace(y9x,"&quot;")),V.indexOf("'")!=-1&&(V=V.replace(Z3c,"&#39;")),V.indexOf("\x00")!=-1&&(V=V.replace(jQL,"&#0;")));return V};
iUx=function(V){var D={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var f=_.fx.document.createElement("div");return V.replace($V9,function(n,t){var J=D[n];if(J)return J;t.charAt(0)=="#"&&(t=Number("0"+t.slice(1)),isNaN(t)||(J=String.fromCharCode(t)));J||(_.$x(f,dQ(n+" ")),J=f.firstChild.nodeValue.slice(0,-1));return D[n]=J})};
SP9=function(V){return V.replace(/&([^;]+);/g,function(D,f){switch(f){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return f.charAt(0)!="#"||(f=Number("0"+f.slice(1)),isNaN(f))?D:String.fromCharCode(f)}})};
$V9=/&([^;\s<&]+);?/g;_.igx=function(V){return String(V).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.WEU=String.prototype.repeat?function(V,D){return V.repeat(D)}:function(V,D){return Array(D+1).join(V)};
_.Uk=function(V,D){if(!Number.isFinite(V))return String(V);V=String(V);var f=V.indexOf(".");f===-1&&(f=V.length);var n=V[0]==="-"?"-":"";n&&(V=V.substring(1));return n+(0,_.WEU)("0",Math.max(0,D-f))+V};
aV=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Vd()).toString(36)};
Ae=function(V){for(var D=0,f=0;f<V.length;++f)D=31*D+V.charCodeAt(f)>>>0;return D};
_.yR=function(V){return String(V).replace(/\-([a-z])/g,function(D,f){return f.toUpperCase()})};
_.Kl=function(V){return String(V).replace(/([A-Z])/g,"-$1").toLowerCase()};
puY=function(V){return V.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(D,f,n){return f+n.toUpperCase()})};var LEZ=function(){this.names=new Map};
LEZ.prototype.getName=function(V){var D=this.names.get(V);if(D)return D;var f;D=(f=V.description)!=null?f:aV();this.names.set(V,D);return D};var IMF=function(V){var D=Error.call(this,V?V.length+" errors occurred during unsubscription:\n"+V.map(function(f,n){return n+1+") "+f.toString()}).join("\n  "):"");
this.message=D.message;"stack"in D&&(this.stack=D.stack);this.errors=V;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.v(IMF,Error);var Oe=function(V){this.initialTeardown=V;this.closed=!1;this._teardowns=this._parentage=null};
_.P=Oe.prototype;
_.P.unsubscribe=function(){if(!this.closed){this.closed=!0;var V=this._parentage;if(Array.isArray(V))for(var D=_.r(V),f=D.next();!f.done;f=D.next())f.value.remove(this);else V==null||V.remove(this);D=this.initialTeardown;if(I3(D))try{D()}catch(J){var n=J instanceof IMF?J.errors:[J]}var t=this._teardowns;if(t)for(this._teardowns=null,D=_.r(t),f=D.next();!f.done;f=D.next()){f=f.value;try{I3(f)?f():f.unsubscribe()}catch(J){f=void 0,n=(f=n)!=null?f:[],J instanceof IMF?n=[].concat(_.sz(n),_.sz(J.errors)):
n.push(J)}}if(n)throw new IMF(n);}};
_.P.add=function(V){if(V&&V!==this)if(this.closed)I3(V)?V():V.unsubscribe();else{if(V instanceof Oe){if(V.closed||V._hasParent(this))return;V._addParent(this)}var D;(this._teardowns=(D=this._teardowns)!=null?D:[]).push(V)}};
_.P._hasParent=function(V){var D=this._parentage;return D===V||Array.isArray(D)&&D.includes(V)};
_.P._addParent=function(V){var D=this._parentage;this._parentage=Array.isArray(D)?(D.push(V),D):D?[D,V]:V};
_.P._removeParent=function(V){var D=this._parentage;D===V?this._parentage=null:Array.isArray(D)&&Lc(D,V)};
_.P.remove=function(V){var D=this._teardowns;D&&Lc(D,V);V instanceof Oe&&V._removeParent(this)};
var OU9=new Oe;OU9.closed=!0;Oe.JSC$7157_EMPTY=OU9;var kj9=function(){setTimeout.apply(null,_.sz(_.gQ.apply(0,arguments)))};var VE=function(V){Oe.call(this);this.JSC$7162_isStopped=!1;this.destination=V instanceof VE?V:new DT(!V||I3(V)?{next:V!=null?V:void 0}:V);vrX(V)&&V.add(this)};
_.v(VE,Oe);VE.JSC$7157_EMPTY=Oe.JSC$7157_EMPTY;VE.create=function(V,D,f){return new fp(V,D,f)};
_.P=VE.prototype;_.P.next=function(V){this.JSC$7162_isStopped||this._next(V)};
_.P.error=function(V){this.JSC$7162_isStopped||(this.JSC$7162_isStopped=!0,this._error(V))};
_.P.complete=function(){this.JSC$7162_isStopped||(this.JSC$7162_isStopped=!0,this._complete())};
_.P.unsubscribe=function(){this.closed||(this.JSC$7162_isStopped=!0,Oe.prototype.unsubscribe.call(this))};
_.P._next=function(V){this.destination.next(V)};
_.P._error=function(V){this.destination.error(V);this.unsubscribe()};
_.P._complete=function(){this.destination.complete();this.unsubscribe()};
var DT=function(V){this.partialObserver=V};
DT.prototype.next=function(V){var D=this.partialObserver;if(D.next)try{D.next(V)}catch(f){M8(f)}};
DT.prototype.error=function(V){var D=this.partialObserver;if(D.error)try{D.error(V)}catch(f){M8(f)}else M8(V)};
DT.prototype.complete=function(){var V=this.partialObserver;if(V.complete)try{V.complete()}catch(D){M8(D)}};
var fp=function(V,D,f){VE.call(this);var n;I3(V)||!V?n={next:V!=null?V:void 0,error:D!=null?D:void 0,complete:f!=null?f:void 0}:n=V;this.destination=new DT(n)};
_.v(fp,VE);fp.JSC$7157_EMPTY=VE.JSC$7157_EMPTY;fp.create=VE.create;var fW=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Vz=function(V){V&&(this._subscribe=V)};
_.P=Vz.prototype;_.P.lift=function(V){var D=new Vz;D.source=this;D.operator=V;return D};
_.P.subscribe=function(V,D,f){V=V&&V instanceof VE||V&&I3(V.next)&&I3(V.error)&&I3(V.complete)&&vrX(V)?V:new fp(V,D,f);D=this.operator;f=this.source;V.add(D?D.call(V,f):f?this._subscribe(V):this._trySubscribe(V));return V};
_.P._trySubscribe=function(V){try{return this._subscribe(V)}catch(D){V.error(D)}};
_.P.forEach=function(V,D){var f=this;D=BuY(D);return new D(function(n,t){var J=f.subscribe(function(H){try{V(H)}catch(Q){t(Q),J==null||J.unsubscribe()}},t,n)})};
_.P._subscribe=function(V){var D;return(D=this.source)==null?void 0:D.subscribe(V)};
Vz.prototype[fW]=function(){return this};
Vz.prototype.pipe=function(){var V=_.gQ.apply(0,arguments);return V.length?skd(V)(this):this};
Vz.create=function(V){return new Vz(V)};var xVc=function(){var V=Error.call(this,"object unsubscribed");this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.v(xVc,Error);var J4=function(){this.observers=[];this.hasError=this.JSC$7178_isStopped=this.closed=!1;this.thrownError=null};
_.v(J4,Vz);_.P=J4.prototype;_.P.lift=function(V){var D=new np(this,this);D.operator=V;return D};
_.P._throwIfClosed=function(){if(this.closed)throw new xVc;};
_.P.next=function(V){this._throwIfClosed();if(!this.JSC$7178_isStopped){var D=this.observers.slice();D=_.r(D);for(var f=D.next();!f.done;f=D.next())f.value.next(V)}};
_.P.error=function(V){this._throwIfClosed();if(!this.JSC$7178_isStopped){this.hasError=this.JSC$7178_isStopped=!0;this.thrownError=V;for(var D=this.observers;D.length;)D.shift().error(V)}};
_.P.complete=function(){this._throwIfClosed();if(!this.JSC$7178_isStopped){this.JSC$7178_isStopped=!0;for(var V=this.observers;V.length;)V.shift().complete()}};
_.P.unsubscribe=function(){this.JSC$7178_isStopped=this.closed=!0;this.observers=null};
_.P._trySubscribe=function(V){this._throwIfClosed();return Vz.prototype._trySubscribe.call(this,V)};
_.P._subscribe=function(V){this._throwIfClosed();this._checkFinalizedStatuses(V);return this._innerSubscribe(V)};
_.P._innerSubscribe=function(V){var D=this,f=this.JSC$7178_isStopped,n=this.observers;return this.hasError||f?Oe.JSC$7157_EMPTY:(n.push(V),new Oe(function(){return Lc(D.observers,V)}))};
_.P._checkFinalizedStatuses=function(V){var D=this.thrownError,f=this.JSC$7178_isStopped;this.hasError?V.error(D):f&&V.complete()};
J4.create=function(V,D){return new np(V,D)};
var np=function(V,D){J4.call(this);this.destination=V;this.source=D};
_.v(np,J4);np.create=J4.create;np.prototype.next=function(V){var D,f;(D=this.destination)==null||(f=D.next)==null||f.call(D,V)};
np.prototype.error=function(V){var D,f;(D=this.destination)==null||(f=D.error)==null||f.call(D,V)};
np.prototype.complete=function(){var V,D;(V=this.destination)==null||(D=V.complete)==null||D.call(V)};
np.prototype._subscribe=function(V){var D,f;return(f=(D=this.source)==null?void 0:D.subscribe(V))!=null?f:Oe.JSC$7157_EMPTY};var a8=function(V){J4.call(this);this._value=V};
_.v(a8,J4);a8.create=J4.create;a8.prototype._subscribe=function(V){var D=J4.prototype._subscribe.call(this,V);!D.closed&&V.next(this._value);return D};
a8.prototype.getValue=function(){var V=this.thrownError,D=this._value;if(this.hasError)throw V;this._throwIfClosed();return D};
a8.prototype.next=function(V){J4.prototype.next.call(this,this._value=V)};
_.IG.Object.defineProperties(a8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var zO=new Vz(function(V){return V.complete()});var DW=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var qWR=function(V){return V&&typeof V.length==="number"&&typeof V!=="function"};var MpY={now:function(){return(MpY.delegate||Date).now()},
delegate:void 0};var Oz=function(V,D,f){V=V===void 0?Infinity:V;D=D===void 0?Infinity:D;f=f===void 0?MpY:f;J4.call(this);this.bufferSize=V;this.windowTime=D;this.timestampProvider=f;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=D===Infinity;this.bufferSize=Math.max(1,V);this.windowTime=Math.max(1,D)};
_.v(Oz,J4);Oz.create=J4.create;Oz.prototype.next=function(V){var D=this.buffer,f=this.infiniteTimeWindow,n=this.timestampProvider,t=this.windowTime;this.JSC$7178_isStopped||(D.push(V),!f&&D.push(n.now()+t));h$X(this);J4.prototype.next.call(this,V)};
Oz.prototype._subscribe=function(V){this._throwIfClosed();h$X(this);for(var D=this._innerSubscribe(V),f=this.infiniteTimeWindow,n=this.buffer.slice(),t=0;t<n.length&&!V.closed;t+=f?1:2)V.next(n[t]);this._checkFinalizedStatuses(V);return D};
var h$X=function(V){var D=V.bufferSize,f=V.timestampProvider,n=V.buffer;V=V.infiniteTimeWindow;var t=(V?1:2)*D;D<Infinity&&t<n.length&&n.splice(0,n.length-t);if(!V){D=f.now();f=0;for(V=1;V<n.length&&n[V]<=D;V+=2)f=V;f&&n.splice(0,f+1)}};var VRV=function(V,D){D=D===void 0?UVY:D;this.schedulerActionCtor=V;this.now=D};
VRV.prototype.schedule=function(V,D,f){D=D===void 0?0:D;return(new this.schedulerActionCtor(this,V)).schedule(f,D)};
var UVY=MpY.now;var s3x=function(){var V=Error.call(this,"no elements in sequence");this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.v(s3x,Error);var gx=function(V,D,f,n,t){VE.call(this,V);this.onUnsubscribe=t;D&&(this._next=function(J){try{D(J)}catch(H){this.destination.error(H)}});
f&&(this._error=function(J){try{f(J)}catch(H){this.destination.error(H)}this.unsubscribe()});
n&&(this._complete=function(){try{n()}catch(J){this.destination.error(J)}this.unsubscribe()})};
_.v(gx,VE);gx.JSC$7157_EMPTY=VE.JSC$7157_EMPTY;gx.create=VE.create;gx.prototype.unsubscribe=function(){var V;this.closed||(V=this.onUnsubscribe)!=null&&V.call(this);VE.prototype.unsubscribe.call(this)};var LW=function(V,D){this.source=V;this.subjectFactory=D;this._subject=null;this._refCount=0;this._connection=null};
_.v(LW,Vz);LW.create=Vz.create;LW.prototype._subscribe=function(V){return DUr(this).subscribe(V)};
var DUr=function(V){var D=V._subject;if(!D||D.JSC$7178_isStopped)V._subject=V.subjectFactory();return V._subject};
LW.prototype._teardown=function(){this._refCount=0;var V=this._connection;this._subject=this._connection=null;V==null||V.unsubscribe()};
LW.prototype.connect=function(){var V=this,D=this._connection;if(!D){D=this._connection=new Oe;var f=DUr(this);D.add(this.source.subscribe(new gx(f,void 0,function(n){V._teardown();f.error(n)},function(){V._teardown();
f.complete()},function(){return V._teardown()})));
D.closed&&(this._connection=null,D=Oe.JSC$7157_EMPTY)}return D};var I3Z=Array.isArray;var xeZ=Array.isArray,fZU=Object,M_d=fZU.getPrototypeOf,hGd=fZU.prototype,UeY=fZU.keys;var dx=function(V,D,f){VE.call(this,V);this._next=D;this.shouldComplete=f};
_.v(dx,VE);dx.JSC$7157_EMPTY=VE.JSC$7157_EMPTY;dx.create=VE.create;dx.prototype._complete=function(){this.shouldComplete()?VE.prototype._complete.call(this):this.unsubscribe()};var JLd=["addListener","removeListener"],ox9=["addEventListener","removeEventListener"],Hcx=["on","off"];var tD=function(){Oe.call(this)};
_.v(tD,Oe);tD.JSC$7157_EMPTY=Oe.JSC$7157_EMPTY;tD.prototype.schedule=function(){return this};var nFY=function(V,D){return setInterval.apply(null,[V,D].concat(_.sz(_.gQ.apply(2,arguments))))};var PN=function(V,D){Oe.call(this);this.scheduler=V;this.work=D;this.pending=!1};
_.v(PN,tD);PN.JSC$7157_EMPTY=tD.JSC$7157_EMPTY;PN.prototype.schedule=function(V,D){D=D===void 0?0:D;if(this.closed)return this;this.state=V;V=this.id;var f=this.scheduler;V!=null&&(this.id=tRU(this,V,D));this.pending=!0;this.delay=D;this.id=this.id||this.requestAsyncId(f,this.id,D);return this};
PN.prototype.requestAsyncId=function(V,D,f){f=f===void 0?0:f;return nFY(V.flush.bind(V,this),f)};
var tRU=function(V,D,f){f=f===void 0?0:f;if(f!=null&&V.delay===f&&V.pending===!1)return D;clearInterval(D)};
PN.prototype.execute=function(V,D){if(this.closed)return Error("ma");this.pending=!1;if(V=this._execute(V,D))return V;this.pending===!1&&this.id!=null&&(this.id=tRU(this,this.id,null))};
PN.prototype._execute=function(V){var D=!1;try{this.work(V)}catch(n){D=!0;var f=!!n&&n||Error(n)}if(D)return this.unsubscribe(),f};
PN.prototype.unsubscribe=function(){if(!this.closed){var V=this.id,D=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Lc(D,this);V!=null&&(this.id=tRU(this,V,null));this.delay=null;tD.prototype.unsubscribe.call(this)}};var P3F=function(V,D){D=D===void 0?UVY:D;VRV.call(this,V,D);this.actions=[];this.active=!1;this.scheduled=void 0};
_.v(P3F,VRV);P3F.prototype.flush=function(V){var D=this.actions;if(this.active)D.push(V);else{var f;this.active=!0;do if(f=V.execute(V.state,V.delay))break;while(V=D.shift());this.active=!1;if(f){for(;V=D.shift();)V.unsubscribe();throw f;}}};var gw=new Vz(xx);var wSR=Array.isArray;var oz=function(V,D){PN.call(this,V,D);this.scheduler=V;this.work=D};
_.v(oz,PN);oz.JSC$7157_EMPTY=PN.JSC$7157_EMPTY;oz.prototype.schedule=function(V,D){D=D===void 0?0:D;if(D>0)return PN.prototype.schedule.call(this,V,D);this.delay=D;this.state=V;this.scheduler.flush(this);return this};
oz.prototype.execute=function(V,D){return D>0||this.closed?PN.prototype.execute.call(this,V,D):this._execute(V,D)};
oz.prototype.requestAsyncId=function(V,D,f){f=f===void 0?0:f;return f!=null&&f>0||f==null&&this.delay>0?PN.prototype.requestAsyncId.call(this,V,D,f):V.flush(this)};var oFH=function(){P3F.apply(this,arguments)};
_.v(oFH,P3F);var p7F=new oFH(oz);var JcU=function(){this.performanceMonitor=new TdY;this.queue=new bUR;this.internalSymbol=Symbol();this.debugNames=new LEZ};
JcU.prototype.getOnBackgrounded=function(){return gw};
_.IG.Object.defineProperties(JcU.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var JD=function(V,D){D=Error.call(this,D?V+": "+D:String(V));this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=V;this.__proto__=JD.prototype;this.name=String(V)};
_.v(JD,Error);var vl=function(V){JD.call(this,1E3,'sfr:"'+V+'"');this.measurementStrategyFailureReason=V;this.__proto__=vl.prototype};
_.v(vl,JD);var kA=function(){JD.call(this,1003);this.__proto__=kA.prototype};
_.v(kA,JD);var rT=function(){JD.call(this,1009);this.__proto__=rT.prototype};
_.v(rT,JD);var rcp=function(){JD.call(this,1011);this.__proto__=rcp.prototype};
_.v(rcp,JD);var HxP=function(){JD.call(this,1007);this.__proto__=kA.prototype};
_.v(HxP,JD);var Ge=function(V){JD.call(this,1004,String(V));this.inputObservableIndex=V;this.__proto__=Ge.prototype};
_.v(Ge,JD);var Ejn=function(V){JD.call(this,1010,V);this.__proto__=eC.prototype};
_.v(Ejn,JD);var eC=function(V){JD.call(this,1005,V);this.__proto__=eC.prototype};
_.v(eC,JD);var wnp=function(V){var D=_.gQ.apply(1,arguments),f=this;this.orderedFactories=[];this.orderedFactories.push(V);D.forEach(function(n){f.orderedFactories.push(n)})};
wnp.prototype.isSupported=function(V){return this.orderedFactories.some(function(D){return D.isSupported(V)})};
wnp.prototype.makeBeacon=function(V,D){for(var f=0;f<this.orderedFactories.length;f++)if(this.orderedFactories[f].isSupported(D))return this.orderedFactories[f].makeBeacon(V,D);throw new rT;};var FkY=Symbol("na"),QYl=Symbol("oa"),XE=function(V,D){this.value=V;this.timeline=D},q9=function(V,D){if(D.timeline!==V.timeline)throw new HxP;
return V.value-D.value};
_.P=XE.prototype;_.P.equals=function(V){return q9(this,V)===0};
_.P.maximum=function(V){if(V.timeline!==this.timeline)throw new HxP;return this.value>=V.value?this:V};
_.P.round=function(){return new XE(Math.round(this.value),this.timeline)};
_.P.add=function(V){return new XE(this.value+V,this.timeline)};
_.P.toString=function(){return String(this.value)};var HN=function(V,D){this.context=V;this.JSC$7284_pinger=D};
HN.prototype.isSupported=function(V){return this.JSC$7284_pinger.isSupported(V)};
HN.prototype.makeBeacon=function(V,D){if(!this.isSupported(D))throw new rT;return new wT(this.context,this.JSC$7284_pinger,D!=null?D:void 0,V)};
var wT=function(V,D,f,n){var t=this;this.JSC$7290_pinger=D;this.properties=f;this.url=n;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var J;this.method=(J=f==null?void 0:f.beaconMethod)!=null?J:"GET";this.backgroundedSubscription=V.getOnBackgrounded().subscribe(function(){t.sendNow()})};
wT.prototype.deactivate=function(){this.internalIsPending=!1};
wT.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7290_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var V,D;this.JSC$7290_pinger.pingWithHeadersAndBody((V=this.properties)!=null?V:{},this.customHeaders,(D=this.body)!=null?D:"",this.url)}else this.JSC$7290_pinger.ping(this.url);this.internalIsPending=!1}catch(f){}else this.internalIsPending=!1};
wT.prototype.setHeader=function(V){this.customHeaders.set(V,void 0)};
_.IG.Object.defineProperties(wT.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var bxY=function(){for(var V=_.r(_.gQ.apply(0,arguments)),D=V.next();!D.done;D=V.next())if(D=D.value,D.available()){this.timeProvider=D;return}this.timeProvider=new TZV};
_.P=bxY.prototype;_.P.available=function(){return this.timeProvider.available()};
_.P.now=function(){return this.timeProvider.now()};
_.P.setTimeout=function(V,D){return this.timeProvider.setTimeout(V,D)};
_.P.clearTimeout=function(V){this.timeProvider.clearTimeout(V)};
_.P.interval=function(V,D){var f=this.intervalObservable(V).subscribe(D);return function(){return void f.unsubscribe()}};
_.P.intervalObservable=function(V){return this.timeProvider.intervalObservable(V)};
_.IG.Object.defineProperties(bxY.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var TZV=function(){this.timeline=Symbol()};
_.P=TZV.prototype;_.P.available=function(){return!1};
_.P.now=function(){return new XE(0,this.timeline)};
_.P.setTimeout=function(){return 0};
_.P.clearTimeout=function(){};
_.P.interval=function(){return function(){}};
_.P.intervalObservable=function(){return gw};var QE=function(V,D){this.intrinsicFunctionNamespace=V;this.performanceMonitor=D};
_.P=QE.prototype;_.P.setTimeout=function(V,D){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,V),D)};
_.P.clearTimeout=function(V){this.intrinsicFunctionNamespace.clearTimeout(V)};
_.P.interval=function(V,D){var f=this.intervalObservable(V).subscribe(D);return function(){return void f.unsubscribe()}};
_.P.intervalObservable=function(V){var D=this;return new Vz(function(f){var n=0,t=D.intrinsicFunctionNamespace.setInterval(function(){f.next(n++)},V);
return function(){D.intrinsicFunctionNamespace.clearInterval(t)}})};
_.P.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var KXH=function(V,D){QE.call(this,V,D);this.timeline=QYl};
_.v(KXH,QE);KXH.prototype.now=function(){return new XE(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
KXH.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&QE.prototype.available.call(this)};var ycp=function(V,D){QE.call(this,V,D);this.timeline=FkY};
_.v(ycp,QE);ycp.prototype.now=function(){return new XE(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
ycp.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&QE.prototype.available.call(this)};var jYF=function(V){this.context=V;if(ZxV===void 0)a:{var D,f,n=(D=V.global)==null?void 0:(f=D.document)==null?void 0:f.createElement("meta");if(n)try{n.httpEquiv="origin-trial";n.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";V.global.document.head.append(n);ZxV=n;break a}catch(t){}ZxV=void 0}},
ZxV;
jYF.prototype.isSupported=function(V){return eDL(this.context)!==void 0&&!(V==null||!V.endOfSession)&&!T$(this.context)&&!(V==null?0:V.attributionEnabled)&&!(V==null?0:V.customHeaders)&&!(V==null?0:V.customBody)};
jYF.prototype.makeBeacon=function(V,D){if(!this.isSupported(D))throw new rT;return new bg(this.context,V,D)};
var bg=function(V,D,f){this.context=V;this.properties=f;this.JSC$7317_urlWithoutToken=D;var n;this.beaconMethod=(n=f==null?void 0:f.beaconMethod)!=null?n:"GET";V=eDL(this.context);if(V===void 0)throw Error();this.fetchLater=V;lZr(this,GLo(this))},lZr=function(V,D){V.beaconResult&&V.beaconResult.activated||(V.beaconAbort=new AbortController,V.beaconResult=V.fetchLater(D,{method:V.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:V.beaconAbort.signal,activateAfter:96E4}))},GLo=function(V){V=V.JSC$7317_urlWithoutToken;
return(V.slice(-1)[0]==="&"?V:V+"&")+"flapi=1"};
bg.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
bg.prototype.sendNow=function(){};
bg.prototype.setHeader=function(){};
_.IG.Object.defineProperties(bg.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7317_urlWithoutToken},
set:function(V){this.JSC$7317_urlWithoutToken=V;V=GLo(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);lZr(this,V)}},
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 e9o=function(V){this.context=V};
e9o.prototype.isSupported=function(){return!T$(this.context)&&!!this.context.global.fetch};
e9o.prototype.ping=function(){var V=this;return RX.apply(null,_.sz(_.gQ.apply(0,arguments).map(function(D){return ta(V.context.global.fetch(D,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(kj(function(f){return f.status===200}))}))).pipe(BQd(function(D){return D}),utF())};
e9o.prototype.pingWithHeadersAndBody=function(V,D,f){for(var n=_.gQ.apply(3,arguments),t=this,J=new Headers,H=_.r(D.entries()),Q=H.next();!Q.done;Q=H.next()){var T=_.r(Q.value);Q=T.next().value;T=T.next().value;J.set(Q,T)}var y,Z=(y=V.keepAlive)!=null?y:!1;RX.apply(null,_.sz(n.map(function(l){return ta(t.context.global.fetch(l,Object.assign({},{method:String(V.beaconMethod),cache:"no-cache"},Z?{keepalive:!0}:{},{mode:"no-cors",headers:J,body:f}))).pipe(kj(function(G){return G.status===200}))}))).pipe(BQd(function(l){return l}),
utF())};var ccH,o6d;_.Kp=function(){};
_.YF=function(V){return V};
ccH=function(V){var D=D||0;return function(){return V.apply(this,Array.prototype.slice.call(arguments,0,D))}};
_.yE=function(V){var D=!1,f;return function(){D||(f=V(),D=!0);return f}};
_.ZT=function(V,D){var f=0;return function(n){_.fx.clearTimeout(f);var t=arguments;f=_.fx.setTimeout(function(){V.apply(void 0,t)},D)}};
o6d=function(V,D){var f=0,n=!1,t=[],J=function(){f=0;n&&(n=!1,H())},H=function(){f=_.fx.setTimeout(J,D);
var Q=t;t=[];V.apply(void 0,Q)};
return function(Q){t=arguments;f?n=!0:H()}};var gFF=function(){return l3&&GL?GL.mobile:!FXp()&&(gZ("iPod")||gZ("iPhone")||gZ("Android")||gZ("IEMobile"))},FXp=function(){return l3&&GL?!GL.mobile&&(gZ("iPad")||gZ("Android")||gZ("Silk")):gZ("iPad")||gZ("Android")&&!gZ("Mobile")||gZ("Silk")};var vFl;_.sB={};vFl="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.sB.add=function(V,D,f){if(V!==null&&D in V)throw Error("qa`"+D);V[D]=f};
_.sB.clear=function(V){for(var D in V)delete V[D]};
_.sB.clone=function(V){var D={},f;for(f in V)D[f]=V[f];return D};
_.sB.contains=function(V,D){return zDn(V,D)};
_.sB.containsKey=function(V,D){return V!==null&&D in V};
_.sB.containsValue=zDn;_.sB.create=qeU;_.sB.createImmutableView=function(V){var D=V;Object.isFrozen&&!Object.isFrozen(V)&&(D=Object.create(V),Object.freeze(D));return D};
_.sB.createSet=XS9;_.sB.equals=function(V,D){for(var f in V)if(!(f in D)||V[f]!==D[f])return!1;for(var n in D)if(!(n in V))return!1;return!0};
_.sB.every=function(V,D,f){for(var n in V)if(!D.call(f,V[n],n,V))return!1;return!0};
_.sB.extend=function(V,D){for(var f,n,t=1;t<arguments.length;t++){n=arguments[t];for(f in n)V[f]=n[f];for(var J=0;J<vFl.length;J++)f=vFl[J],Object.prototype.hasOwnProperty.call(n,f)&&(V[f]=n[f])}};
_.sB.filter=function(V,D,f){var n={},t;for(t in V)D.call(f,V[t],t,V)&&(n[t]=V[t]);return n};
_.sB.findKey=RDY;_.sB.findValue=function(V,D,f){return(D=RDY(V,D,f))&&V[D]};
_.sB.forEach=function(V,D,f){for(var n in V)D.call(f,V[n],n,V)};
_.sB.get=function(V,D,f){return V!==null&&D in V?V[D]:f};
_.sB.getAllPropertyNames=function(V,D,f){if(!V)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return m8x(V);for(var n={};V&&(V!==Object.prototype||D)&&(V!==Function.prototype||f);){for(var t=Object.getOwnPropertyNames(V),J=0;J<t.length;J++)n[t[J]]=!0;V=Object.getPrototypeOf(V)}return m8x(n)};
_.sB.getAnyKey=function(V){for(var D in V)return D};
_.sB.getAnyValue=function(V){for(var D in V)return V[D]};
_.sB.getCount=function(V){var D=0,f;for(f in V)D++;return D};
_.sB.getKeys=m8x;_.sB.getSuperClass=function(V){return(V=Object.getPrototypeOf(V.prototype))&&V.constructor};
_.sB.getValueByKeys=function(V,D){var f=_.MU(D),n=f?D:arguments;for(f=f?0:1;f<n.length;f++){if(V==null)return;V=V[n[f]]}return V};
_.sB.getValues=function(V){var D=[],f=0,n;for(n in V)D[f++]=V[n];return D};
_.sB.isEmpty=function(V){for(var D in V)return!1;return!0};
_.sB.isImmutableView=function(V){return!!Object.isFrozen&&Object.isFrozen(V)};
_.sB.map=function(V,D,f){var n={},t;for(t in V)n[t]=D.call(f,V[t],t,V);return n};
_.sB.remove=function(V,D){var f;(f=D in V)&&delete V[D];return f};
_.sB.set=function(V,D,f){V[D]=f};
_.sB.setIfUndefined=function(V,D,f){return D in V?V[D]:V[D]=f};
_.sB.setWithReturnValueIfNotSet=function(V,D,f){if(D in V)return V[D];f=f();return V[D]=f};
_.sB.some=function(V,D,f){for(var n in V)if(D.call(f,V[n],n,V))return!0;return!1};
_.sB.transpose=function(V){var D={},f;for(f in V)D[V[f]]=f;return D};
_.sB.unsafeClone=Cv3;var j$=function(V,D,f,n,t){this.allowedElements=V;this.elementPolicies=D;this.allowedGlobalAttributes=f;this.globalAttributePolicies=n;this.globallyAllowedAttributePrefixes=t},kLl=function(V,D,f){f=V.elementPolicies.get(f);
return(f==null?0:f.has(D))?f.get(D):V.allowedGlobalAttributes.has(D)?{policyAction:1}:(f=V.globalAttributePolicies.get(D))?f:V.globallyAllowedAttributePrefixes&&[].concat(_.sz(V.globallyAllowedAttributePrefixes)).some(function(n){return D.indexOf(n)===0})?{policyAction:1}:{policyAction:0}};var sYE="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(" "),
BZF=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],dUP="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
u9E=[["dir",{policyAction:3,conditions:PS(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:PS(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:PS(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:PS(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],NZr=new j$(new Set(sYE),new Map(BZF),new Set(dUP),new Map(u9E)),mUu=new j$(new Set(sYE.concat(["BUTTON",
"INPUT"])),new Map(BZF),new Set(PS(function(){return dUP.concat(["class","id","name"])})),new Map(PS(function(){return u9E.concat([["style",
{policyAction:1}]])})));var z9F,R9o,qdl;z9F=function(V,D,f,n,t){this.JSC$7377_sanitizerTable=V;this.styleElementSanitizer=D;this.styleAttributeSanitizer=f;this.JSC$7377_resourceUrlPolicy=n;this.JSC$7377_navigationUrlPolicy=t;this.changes=[]};
_.C3P=function(V,D){var f=document.implementation.createHTMLDocument("");V=R9o(V,D,f);f=f.body;f.appendChild(V);f=(new XMLSerializer).serializeToString(f);f=f.slice(f.indexOf(">")+1,f.lastIndexOf("</"));return dQ(f)};
R9o=function(V,D,f){D=ALY(D,f);D=document.createTreeWalker(D,5,function(Q){if(Q.nodeType===3)Q=1;else if(Yec(Q))if(Q=ae9(Q),Q===null)Q=2;else{var T=V.JSC$7377_sanitizerTable;Q=Q!=="FORM"&&(T.allowedElements.has(Q)||T.elementPolicies.has(Q))?1:2}else Q=2;return Q});
for(var n=D.nextNode(),t=f.createDocumentFragment(),J=t;n!==null;){var H=void 0;if(n.nodeType===3)V.styleElementSanitizer&&J.nodeName==="STYLE"?(n=V.styleElementSanitizer(n.data),H=V.createTextNode(n)):H=V.createTextNode(n.data);else if(Yec(n))H=qdl(V,n,f);else throw Error("da");J.appendChild(H);if(n=D.firstChild())J=H;else for(;!(n=D.nextSibling())&&(n=D.parentNode());)J=J.parentNode}return t};
z9F.prototype.createTextNode=function(V){return document.createTextNode(V)};
qdl=function(V,D,f){var n,t=ae9(D);f=f.createElement(t);D=D.attributes;for(var J=_.r(D),H=J.next();!H.done;H=J.next()){var Q=H.value;H=Q.name;Q=Q.value;var T=kLl(V.JSC$7377_sanitizerTable,H,t);a:{if(n=T.conditions){n=_.r(n);for(var y=n.next();!y.done;y=n.next()){var Z=_.r(y.value);y=Z.next().value;Z=Z.next().value;var l=void 0;if((y=(l=D.getNamedItem(y))==null?void 0:l.value)&&!Z.has(y)){n=!1;break a}}}n=!0}if(n)switch(T.policyAction){case 1:ni(f,H,Q);break;case 2:throw Error();case 3:ni(f,H,Q.toLowerCase());
break;case 4:V.styleAttributeSanitizer?(Q=V.styleAttributeSanitizer(Q),ni(f,H,Q)):ni(f,H,Q);break;case 5:V.JSC$7377_resourceUrlPolicy?(T={type:2,attributeName:H,elementName:t},Q=Exc(Q),(Q=V.JSC$7377_resourceUrlPolicy(Q,T))&&ni(f,H,Q.toString())):ni(f,H,Q);break;case 6:if(V.JSC$7377_resourceUrlPolicy){T={type:2,attributeName:H,elementName:t};n=[];Q=_.r(Q.split(","));for(y=Q.next();!y.done;y=Q.next())Z=_.r(y.value.trim().split(/\s+/,2)),y=Z.next().value,Z=Z.next().value,n.push({url:y,descriptor:Z});
Q={parts:[]};n=_.r(n);for(y=n.next();!y.done;y=n.next())y=y.value,Z=Exc(y.url),(Z=V.JSC$7377_resourceUrlPolicy(Z,T))&&Q.parts.push({url:Z.toString(),descriptor:y.descriptor});ni(f,H,$83(Q))}else ni(f,H,Q);break;case 7:T=Q;if(V.JSC$7377_navigationUrlPolicy){T={type:2,attributeName:H,elementName:t};Q=Exc(Q);Q=V.JSC$7377_navigationUrlPolicy(Q,T);if(Q===null)break;T=Q.toString()}Q=T;T=_.Z43(Q);T=T!==void 0&&XuY.indexOf(T.toLowerCase())!==-1?Q:"about:invalid#zClosurez";ni(f,H,T)}}return f};
_.Xnl=PS(function(){return new z9F(NZr)});
_.EFU=PS(function(){return new z9F(mUu)});var AcH=function(){this.calledBuild=!1;this.JSC$7389_sanitizerTable=NZr},aZ6=function(){AcH.apply(this,arguments)};
_.v(aZ6,AcH);aZ6.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new z9F(this.JSC$7389_sanitizerTable,void 0,void 0,this.JSC$7389_resourceUrlPolicy,this.JSC$7389_navigationUrlPolicy)};var Ydu=/[^#]*/;var n4x=function(V){try{return!!V&&V.location.href!=null&&ze(V,"foo")}catch(D){return!1}},ixP=function(V){var D=$Ul;
if(D)for(var f in D)Object.prototype.hasOwnProperty.call(D,f)&&V(D[f],f,D)},SdP=function(){var V=[];
ixP(function(D){V.push(D)});
return V},$Ul={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"},WXF=_.yE(function(){return SdP()}),LXP=function(){var V=pn6("IFRAME"),
D={};
_.Sd(WXF(),function(f){V.sandbox&&V.sandbox.supports&&V.sandbox.supports(f)&&(D[f]=!0)});
return D},pn6=function(V,D){D=D===void 0?document:D;
return D.createElement(String(V).toLowerCase())};var lg;_.Nw=function(V,D,f){return Math.min(Math.max(V,D),f)};
lg=function(V,D,f){return V+f*(D-V)};_.uB=function(V,D){this.x=V!==void 0?V:0;this.y=D!==void 0?D:0};
_.P=_.uB.prototype;_.P.clone=function(){return new _.uB(this.x,this.y)};
_.P.equals=function(V){return V instanceof _.uB&&(this==V?!0:this&&V?this.x==V.x&&this.y==V.y:!1)};
_.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.P.translate=function(V,D){V instanceof _.uB?(this.x+=V.x,this.y+=V.y):(this.x+=Number(V),typeof D==="number"&&(this.y+=D));return this};
_.P.scale=function(V,D){this.x*=V;this.y*=typeof D==="number"?D:V;return this};_.bB=function(V,D){this.width=V;this.height=D};
_.P=_.bB.prototype;_.P.clone=function(){return new _.bB(this.width,this.height)};
_.P.area=function(){return this.width*this.height};
_.P.aspectRatio=function(){return this.width/this.height};
_.P.isEmpty=function(){return!this.area()};
_.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.scale=function(V,D){this.width*=V;this.height*=typeof D==="number"?D:V;return this};var Cy=function(V,D){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=V===gtY&&D||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=IZU};
Cy.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var OxU=function(V){return V instanceof Cy&&V.constructor===Cy&&V.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===IZU?V.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},IZU={},gtY={};
new Cy(gtY,"");var jC,jB,e$,xUV,UUU,h9p,Nr,DLU,npp,fFL,vN,tE6,Qlu,wHl,HoY,TPE,boF,KY6,yrF,$Z9,ZoF,lFV,GUF,jlo,G$;jC=function(V){return V?new G$(_.mk(V)):J9L||(J9L=new G$)};
_.V1=function(V,D){return typeof D==="string"?V.getElementById(D):D};
jB=function(V,D){return(D||document).getElementsByTagName(String(V))};
_.MRo=function(V){return xUV("yt-formatted-string","paper-input-input",V)};
e$=function(V,D,f,n){V=n||V;return(D=D&&D!="*"?String(D).toUpperCase():"")||f?V.querySelectorAll(D+(f?"."+f:"")):V.getElementsByTagName("*")};
xUV=function(V,D,f){var n=document,t=V&&V!="*"?String(V).toUpperCase():"";return t||D?(f||n).querySelector(t+(D?"."+D:"")):e$(n,V,D,f)[0]||null};
UUU=function(V,D){_.sB.forEach(D,function(f,n){n=="style"?V.style.cssText=f:n=="class"?V.className=f:n=="for"?V.htmlFor=f:h9p.hasOwnProperty(n)?V.setAttribute(h9p[n],f):_.tc(n,"aria-")||_.tc(n,"data-")?V.setAttribute(n,f):V[n]=f})};
h9p={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"};_.Ki=function(V){V=(V||window).document;V=V.compatMode=="CSS1Compat"?V.documentElement:V.body;return new _.bB(V.clientWidth,V.clientHeight)};
_.VEp=function(V){var D=_.cN(V);V=V.defaultView;return new _.uB(V.pageXOffset||D.scrollLeft,V.pageYOffset||D.scrollTop)};
_.cN=function(V){return V.scrollingElement?V.scrollingElement:_.Hb||V.compatMode!="CSS1Compat"?V.body||V.documentElement:V.documentElement};
Nr=function(V){return V?V.defaultView:window};
_.FP=function(V,D,f){return DLU(document,arguments)};
DLU=function(V,D){var f=D[1],n=fFL(V,String(D[0]));f&&(typeof f==="string"?n.className=f:Array.isArray(f)?n.className=f.join(" "):UUU(n,f));D.length>2&&npp(V,n,D,2);return n};
npp=function(V,D,f,n){function t(Q){Q&&D.appendChild(typeof Q==="string"?V.createTextNode(Q):Q)}
for(;n<f.length;n++){var J=f[n];if(!_.MU(J)||_.VV(J)&&J.nodeType>0)t(J);else{a:{if(J&&typeof J.length=="number"){if(_.VV(J)){var H=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){H=typeof J.item=="function";break a}}H=!1}_.Sd(H?_.Od(J):J,t)}}};
_.yh=function(V){return fFL(document,V)};
fFL=function(V,D){D=String(D);V.contentType==="application/xhtml+xml"&&(D=D.toLowerCase());return V.createElement(D)};
_.gT=function(){return document.createTextNode("\n")};
vN=function(V){if(V.nodeType!=1)return!1;switch(V.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};
tE6=function(V,D){npp(_.mk(V),V,arguments,1)};
_.kN=function(V){for(var D;D=V.firstChild;)V.removeChild(D)};
_.sO=function(V,D){D.parentNode&&D.parentNode.insertBefore(V,D)};
_.BN=function(V,D){D.parentNode&&D.parentNode.insertBefore(V,D.nextSibling)};
_.ZC=function(V){return V&&V.parentNode?V.parentNode.removeChild(V):null};
_.P6Y=function(V,D){var f=D.parentNode;f&&f.replaceChild(V,D)};
_.opE=function(V){var D,f=V.parentNode;if(f&&f.nodeType!=11)if(V.removeNode)V.removeNode(!1);else{for(;D=V.firstChild;)f.insertBefore(D,V);_.ZC(V)}};
_.dT=function(V){return V.children!=void 0?V.children:Array.prototype.filter.call(V.childNodes,function(D){return D.nodeType==1})};
_.rrH=function(V){return V.nextElementSibling!==void 0?V.nextElementSibling:_.Jru(V.nextSibling,!0)};
_.Jru=function(V,D){for(;V&&V.nodeType!=1;)V=D?V.nextSibling:V.previousSibling;return V};
_.IO=function(V){return _.VV(V)&&V.nodeType==1};
_.ER=function(V,D){if(!V||!D)return!1;if(V.contains&&D.nodeType==1)return V==D||V.contains(D);if(typeof V.compareDocumentPosition!="undefined")return V==D||!!(V.compareDocumentPosition(D)&16);for(;D&&V!=D;)D=D.parentNode;return D==V};
Qlu=function(V,D){if(V==D)return 0;if(V.compareDocumentPosition)return V.compareDocumentPosition(D)&2?1:-1;if("sourceIndex"in V||V.parentNode&&"sourceIndex"in V.parentNode){var f=V.nodeType==1,n=D.nodeType==1;if(f&&n)return V.sourceIndex-D.sourceIndex;var t=V.parentNode,J=D.parentNode;return t==J?HoY(V,D):!f&&_.ER(t,D)?-1*wHl(V,D):!n&&_.ER(J,V)?wHl(D,V):(f?V.sourceIndex:t.sourceIndex)-(n?D.sourceIndex:J.sourceIndex)}n=_.mk(V);f=n.createRange();f.selectNode(V);f.collapse(!0);V=n.createRange();V.selectNode(D);
V.collapse(!0);return f.compareBoundaryPoints(_.fx.Range.START_TO_END,V)};
wHl=function(V,D){var f=V.parentNode;if(f==D)return-1;for(;D.parentNode!=f;)D=D.parentNode;return HoY(D,V)};
HoY=function(V,D){for(;D=D.previousSibling;)if(D==V)return-1;return 1};
TPE=function(V){var D,f=arguments.length;if(!f)return null;if(f==1)return arguments[0];var n=[],t=Infinity;for(D=0;D<f;D++){for(var J=[],H=arguments[D];H;)J.unshift(H),H=H.parentNode;n.push(J);t=Math.min(t,J.length)}J=null;for(D=0;D<t;D++){H=n[0][D];for(var Q=1;Q<f;Q++)if(H!=n[Q][D])return J;J=H}return J};
_.mk=function(V){return V.nodeType==9?V:V.ownerDocument||V.document};
boF=function(V){return V.contentDocument||V.contentWindow.document};
_.ug=function(V,D){if("textContent"in V)V.textContent=D;else if(V.nodeType==3)V.data=String(D);else if(V.firstChild&&V.firstChild.nodeType==3){for(;V.lastChild!=V.firstChild;)V.removeChild(V.lastChild);V.firstChild.data=String(D)}else _.kN(V),V.appendChild(_.mk(V).createTextNode(String(D)))};
KY6={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};yrF={IMG:" ",BR:"\n"};$Z9=function(V){var D;V.tagName=="A"&&V.hasAttribute("href")||V.tagName=="INPUT"||V.tagName=="TEXTAREA"||V.tagName=="SELECT"||V.tagName=="BUTTON"?D=!V.disabled&&(!V.hasAttribute("tabindex")||ZoF(V)):D=V.hasAttribute("tabindex")&&ZoF(V);return D};
ZoF=function(V){V=V.tabIndex;return typeof V==="number"&&V>=0&&V<32768};
lFV=function(V){var D=[];jlo(V,D,!0);V=D.join("");V=V.replace(/ \xAD /g," ").replace(/\xAD/g,"");V=V.replace(/\u200B/g,"");V=V.replace(/ +/g," ");V!=" "&&(V=V.replace(/^\s*/,""));return V};
GUF=function(V){var D=[];jlo(V,D,!1);return D.join("")};
jlo=function(V,D,f){if(!(V.nodeName in KY6))if(V.nodeType==3)f?D.push(String(V.nodeValue).replace(/(\r\n|\r|\n)/g,"")):D.push(V.nodeValue);else if(V.nodeName in yrF)D.push(yrF[V.nodeName]);else for(V=V.firstChild;V;)jlo(V,D,f),V=V.nextSibling};
_.elV=function(V,D,f){if(!D&&!f)return null;var n=D?String(D).toUpperCase():null;return _.qr(V,function(t){return(!n||t.nodeName==n)&&(!f||typeof t.className==="string"&&_.i3(t.className.split(/\s+/),f))},!0)};
_.qr=function(V,D,f){V&&!f&&(V=V.parentNode);for(f=0;V;){if(D(V))return V;V=V.parentNode;f++}return null};
G$=function(V){this.JSC$7414_document_=V||_.fx.document||document};
_.P=G$.prototype;_.P.getElement=function(V){return _.V1(this.JSC$7414_document_,V)};
_.P.$=G$.prototype.getElement;_.P.getElementsByTagName=function(V,D){return(D||this.JSC$7414_document_).getElementsByTagName(String(V))};
_.P.getElementsByTagNameAndClass=function(V,D,f){return e$(this.JSC$7414_document_,V,D,f)};
_.P.$$=G$.prototype.getElementsByTagNameAndClass;_.P.setProperties=UUU;_.P.JSC$7416_createDom=function(V,D,f){return DLU(this.JSC$7414_document_,arguments)};
_.P.createElement=function(V){return fFL(this.JSC$7414_document_,V)};
_.P.createTextNode=function(V){return this.JSC$7414_document_.createTextNode(String(V))};
_.P.getWindow=function(){return this.JSC$7414_document_.defaultView};
var ZN=function(V){return _.VEp(V.JSC$7414_document_)};
_.P=G$.prototype;_.P.appendChild=function(V,D){V.appendChild(D)};
_.P.append=tE6;_.P.canHaveChildren=vN;_.P.removeNode=_.ZC;_.P.getChildren=_.dT;_.P.contains=_.ER;_.P=o8.prototype;_.P.getWidth=function(){return this.right-this.left};
_.P.getHeight=function(){return this.bottom-this.top};
_.P.clone=function(){return new o8(this.top,this.right,this.bottom,this.left)};
_.P.contains=function(V){return this&&V?V instanceof o8?V.left>=this.left&&V.right<=this.right&&V.top>=this.top&&V.bottom<=this.bottom:V.x>=this.left&&V.x<=this.right&&V.y>=this.top&&V.y<=this.bottom:!1};
_.P.expand=function(V,D,f,n){_.VV(V)?(this.top-=V.top,this.right+=V.right,this.bottom+=V.bottom,this.left-=V.left):(this.top-=V,this.right+=Number(D),this.bottom+=Number(f),this.left-=Number(n));return this};
_.P.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};
_.P.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};
_.P.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};
_.P.translate=function(V,D){V instanceof _.uB?(this.left+=V.x,this.right+=V.x,this.top+=V.y,this.bottom+=V.y):(this.left+=V,this.right+=V,typeof D==="number"&&(this.top+=D,this.bottom+=D));return this};
_.P.scale=function(V,D){D=typeof D==="number"?D:V;this.left*=V;this.right*=V;this.top*=D;this.bottom*=D;return this};var NM=function(V,D,f,n){this.left=V;this.top=D;this.width=f;this.height=n};
_.P=NM.prototype;_.P.clone=function(){return new NM(this.left,this.top,this.width,this.height)};
_.P.boundingRect=function(V){var D=Math.max(this.left+this.width,V.left+V.width),f=Math.max(this.top+this.height,V.top+V.height);this.left=Math.min(this.left,V.left);this.top=Math.min(this.top,V.top);this.width=D-this.left;this.height=f-this.top};
_.P.contains=function(V){return V instanceof _.uB?V.x>=this.left&&V.x<=this.left+this.width&&V.y>=this.top&&V.y<=this.top+this.height:this.left<=V.left&&this.left+this.width>=V.left+V.width&&this.top<=V.top&&this.top+this.height>=V.top+V.height};
_.P.distance=function(V){var D=V.x<this.left?this.left-V.x:Math.max(V.x-(this.left+this.width),0);V=V.y<this.top?this.top-V.y:Math.max(V.y-(this.top+this.height),0);return Math.sqrt(D*D+V*V)};
_.P.getSize=function(){return new _.bB(this.width,this.height)};
_.P.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};
_.P.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};
_.P.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};
_.P.translate=function(V,D){V instanceof _.uB?(this.left+=V.x,this.top+=V.y):(this.left+=V,typeof D==="number"&&(this.top+=D));return this};
_.P.scale=function(V,D){D=typeof D==="number"?D:V;this.left*=V;this.width*=V;this.top*=D;this.height*=D;return this};var FYl,Rz,Q83,z$,slp,kUr,BPY,CYc,dLr,NPp;_.mv=function(V,D,f){if(typeof D==="string")(D=_.crF(V,D))&&(V.style[D]=f);else for(var n in D){f=V;var t=D[n],J=_.crF(f,n);J&&(f.style[J]=t)}};
FYl={};_.crF=function(V,D){var f=FYl[D];if(!f){var n=_.yR(D);f=n;V.style[n]===void 0&&(n=(_.Hb?"Webkit":_.rf?"Moz":null)+puY(n),V.style[n]!==void 0&&(f=n));FYl[D]=f}return f};
_.eb=function(V,D){var f=_.mk(V);return f.defaultView&&f.defaultView.getComputedStyle&&(V=f.defaultView.getComputedStyle(V,null))?V[D]||V.getPropertyValue(D)||"":""};
_.X1=function(V,D){return _.eb(V,D)||(V.currentStyle?V.currentStyle[D]:null)||V.style&&V.style[D]};
_.gpu=function(V){return _.X1(V,"position")};
Rz=function(V,D,f){if(D instanceof _.uB){var n=D.x;D=D.y}else n=D,D=f;V.style.left=z$(n,!1);V.style.top=z$(D,!1)};
Q83=function(V){try{return V.getBoundingClientRect()}catch(D){return{left:0,top:0,right:0,bottom:0}}};
_.R8=function(V){var D=_.mk(V),f=new _.uB(0,0);if(V==(D?_.mk(D):document).documentElement)return f;V=Q83(V);D=ZN(jC(D));f.x=V.left+D.x;f.y=V.top+D.y;return f};
_.vpV=function(V,D,f){if(D instanceof _.bB)f=D.height,D=D.width;else if(f==void 0)throw Error("ta");V.style.width=z$(D,!0);V.style.height=z$(f,!0)};
z$=function(V,D){typeof V=="number"&&(V=(D?Math.round(V):V)+"px");return V};
slp=function(V){return kUr(V)};
kUr=function(V){var D=BPY;if(_.X1(V,"display")!="none")return D(V);var f=V.style,n=f.display,t=f.visibility,J=f.position;f.visibility="hidden";f.position="absolute";f.display="inline";V=D(V);f.display=n;f.position=J;f.visibility=t;return V};
BPY=function(V){var D=V.offsetWidth,f=V.offsetHeight,n=_.Hb&&!D&&!f;return(D===void 0||n)&&V.getBoundingClientRect?(V=Q83(V),new _.bB(V.right-V.left,V.bottom-V.top)):new _.bB(D,f)};
CYc=function(V){var D=_.R8(V);V=kUr(V);return new NM(D.x,D.y,V.width,V.height)};
dLr=function(V,D){V=V.style;"opacity"in V?V.opacity=D:"MozOpacity"in V?V.MozOpacity=D:"filter"in V&&(V.filter=D===""?"":"alpha(opacity="+Number(D)*100+")")};
_.SB=function(V,D){V.style.display=D?"":"none"};
_.uFp=function(V){return"rtl"==_.X1(V,"direction")};
NPp=function(V){var D=_.eb(V,"marginLeft"),f=_.eb(V,"marginRight"),n=_.eb(V,"marginTop");V=_.eb(V,"marginBottom");return new o8(parseFloat(n),parseFloat(f),parseFloat(V),parseFloat(D))};
_.mLp=function(V){var D=_.eb(V,"borderLeftWidth"),f=_.eb(V,"borderRightWidth"),n=_.eb(V,"borderTopWidth");V=_.eb(V,"borderBottomWidth");return new o8(parseFloat(n),parseFloat(f),parseFloat(V),parseFloat(D))};var Cp=function(V){this.context=V};
Cp.prototype.isSupported=function(V){return(V==null?0:V.attributionEnabled)||(V==null?void 0:V.beaconMethod)==="POST"||(V==null?0:V.customHeaders)||(V==null?0:V.customBody)||(V==null?0:V.keepAlive)?!1:!T$(this.context)};
Cp.prototype.ping=function(){var V=this;return lK(_.gQ.apply(0,arguments).map(function(D){try{var f=V.context.global,n=!1;n=n===void 0?!1:n;f.google_image_requests||(f.google_image_requests=[]);var t=pn6("IMG",f.document);n&&(t.attributionSrc="");t.src=D;f.google_image_requests.push(t);return!0}catch(J){return!1}}).every(function(D){return D}))};
Cp.prototype.pingWithHeadersAndBody=function(V,D,f){this.ping.apply(this,_.sz(_.gQ.apply(3,arguments)))};var zlP=function(V){this.context=V};
zlP.prototype.isSupported=function(V){return Rlr&&!T$(this.context)&&SeZ(this.context)!==void 0&&!(V==null?0:V.attributionEnabled)&&(V==null?void 0:V.beaconMethod)!=="POST"&&!(V==null?0:V.customHeaders)&&!(V==null?0:V.customBody)};
zlP.prototype.makeBeacon=function(V,D){if(!this.isSupported(D))throw new rT;return new qM(this.context,V)};
var Rlr=!1,qM=function(V,D){this.context=V;this.JSC$7435_urlWithoutToken=D;V=SeZ(this.context);if(V===void 0)throw Error();this.wrappedBeacon=new V(C6E(this),{})},C6E=function(V){V=V.JSC$7435_urlWithoutToken;
return(V.slice(-1)[0]==="&"?V:V+"&")+"pbapi=1"};
qM.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
qM.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
qM.prototype.setHeader=function(){};
_.IG.Object.defineProperties(qM.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7435_urlWithoutToken},
set:function(V){this.JSC$7435_urlWithoutToken=V;this.wrappedBeacon.setURL(C6E(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(V){if(V!=="GET")throw new rT;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var quV=function(V){this.context=V};
quV.prototype.isSupported=function(V){if((V==null?0:V.attributionEnabled)||(V==null?void 0:V.beaconMethod)==="GET"||(V==null?0:V.customHeaders)||(V==null?0:V.customBody)||(V==null?0:V.keepAlive))return!1;var D;return!T$(this.context)&&((D=this.context.global.navigator)==null?void 0:D.sendBeacon)!==void 0};
quV.prototype.ping=function(){var V=this;return lK(_.gQ.apply(0,arguments).map(function(D){var f;return(f=V.context.global.navigator)==null?void 0:f.sendBeacon(D)}).every(function(D){return D}))};
quV.prototype.pingWithHeadersAndBody=function(V,D,f){this.ping.apply(this,_.sz(_.gQ.apply(3,arguments)))};var QJ=function(V){this.value=V},pi=function(V,D){return lK(V.value).pipe(Hl(D))},OB=new QJ(!1),FHd=new QJ(!0);var X3=function(V){this.value=V;this.releasedSubject=new J4};
X3.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.IG.Object.defineProperties(X3.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7448_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var njZ=["FRAME","IMG","IFRAME"],Mo9=/^[01](px)?$/,fW9=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},D9d=function(){var V=new fW9;
V.crossDomainLoadedDefault=!0;V.pendingImagesBlockLoad=!0;return V};var XHu=function(V,D){var f=w6x(V);if(f)if(f.onCreativeLoad)f.onCreativeLoad(D);else{var n=D?[D]:[],t=function(J){for(var H=0;H<n.length;++H)try{n[H](1,J)}catch(Q){}n={push:function(Q){Q(1,J)}}};
f.onCreativeLoad=function(J){n.push(J)};
f.setAttribute("data-creative-load-listener","");f.addEventListener("creativeLoad",function(J){t(J.detail)});
_.fx.addEventListener("message",function(J){HWx(f,t,J)})}};var XP=function(V,D){var f=this;this.global=V;this.parentContext=D;this.JSC$7459_onVisibilityChange=this.document?RX(lK(!0),ma(this.document,"visibilitychange")).pipe(Ez(this.parentContext.performanceMonitor,748),kj(function(){return f.getVisibilityState()}),W6()):lK("visible");
this.document?ma(this.document,"DOMContentLoaded").pipe(Ez(this.parentContext.performanceMonitor,739),iK(1)):lK(OcL("DOMContentLoaded"))},clY=function(V){return V.document!==null&&V.document.visibilityState!==void 0};
XP.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
XP.prototype.querySelector=function(V){return this.document?this.document.querySelector(V):null};
XP.prototype.querySelectorAll=function(V){return this.document?_.Od(this.document.querySelectorAll(V)):[]};
XP.prototype.elementFromPoint=function(V,D){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;V=this.document.elementFromPoint(V,D);return V===null?null:new X3(V)};
var wq3=function(V,D,f){f=f===void 0?!1:f;if(D.ref===void 0||!V.document)return lK(D).pipe(Ez(V.parentContext.performanceMonitor,749));var n=new Oz(1),t=function(){n.next(D)};
f||XHu(D.ref,t);t5U(D.ref,t);return n.pipe(Ez(V.parentContext.performanceMonitor,749),iK(1))};
_.IG.Object.defineProperties(XP.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return ze(this.global,"document")?this.global.document||null:null}}});var QXX=_.WV(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Txx=_.WV(["./reach_worklet.js"]),bWn=_.WV(["./reach_worklet.js"]),Epl=_.WV(["./reach_worklet.html"]),ArU=_.WV(["./reach_worklet.js"]),aFU=_.WV(["./reach_worklet.js"]);_.t4(Epl);_.t4(ArU);_.t4(aFU);var YA={left:0,top:0,width:0,height:0};var YuF,$Ll,iol,Su6,Ml,pHP,LYp,IFu,xjY,MV9,MEu,hlr;YuF=function(V,D,f,n,t,J,H){var Q="";V&&(Q+=V+":");f&&(Q+="//",D&&(Q+=D+"@"),Q+=f,n&&(Q+=":"+n));t&&(Q+=t);J&&(Q+="?"+J);H&&(Q+="#"+H);return Q};
$Ll=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.OG=function(V){return V.match($Ll)};
_.vV=function(V,D){return V?D?decodeURI(V):decodeURIComponent(V):V};
iol=function(V){V=_.OG(V)[1]||null;!V&&_.fx.self&&_.fx.self.location&&(V=_.fx.self.location.protocol.slice(0,-1));return V?V.toLowerCase():""};
_.xw=function(V){return _.vV(_.OG(V)[3]||null,!0)};
_.Qx=function(V){return _.vV(_.OG(V)[5]||null,!0)};
_.l_n=function(V){var D=V.indexOf("#");return D<0?null:V.slice(D+1)};
Su6=function(V){V=_.OG(V);return YuF(V[1],V[2],V[3],V[4])};
_.WYF=function(V){V=_.OG(V);return YuF(V[1],null,V[3],V[4])};
_.ab=function(V){V=_.OG(V);return YuF(null,null,null,null,V[5],V[6],V[7])};
_.OX=function(V){var D=V.indexOf("#");return D<0?V:V.slice(0,D)};
Ml=function(V,D){V=_.OG(V);D=_.OG(D);return V[3]==D[3]&&V[1]==D[1]&&V[4]==D[4]};
pHP=function(V,D){if(V){V=V.split("&");for(var f=0;f<V.length;f++){var n=V[f].indexOf("="),t=null;if(n>=0){var J=V[f].substring(0,n);t=V[f].substring(n+1)}else J=V[f];D(J,t?UG(t):"")}}};
LYp=function(V){var D=V.indexOf("#");D<0&&(D=V.length);var f=V.indexOf("?");if(f<0||f>D){f=D;var n=""}else n=V.substring(f+1,D);return[V.slice(0,f),n,V.slice(D)]};
IFu=function(V,D){return D?V?V+"&"+D:D:V};
_.Ool=function(V,D){if(!D)return V;V=LYp(V);V[1]=IFu(V[1],D);return V[0]+(V[1]?"?"+V[1]:"")+V[2]};
_.xLo=function(V,D,f){if(Array.isArray(D))for(var n=0;n<D.length;n++)_.xLo(V,String(D[n]),f);else D!=null&&f.push(V+(D===""?"":"="+_.ia(D)))};
_.bE=function(V){var D=[],f;for(f in V)_.xLo(f,V[f],D);return D.join("&")};
_.I9=function(V,D){D=_.bE(D);return _.Ool(V,D)};
_.EO=function(V,D,f){f=f!=null?"="+_.ia(f):"";return _.Ool(V,D+f)};
xjY=function(V,D,f,n){for(var t=f.length;(D=V.indexOf(f,D))>=0&&D<n;){var J=V.charCodeAt(D-1);if(J==38||J==63)if(J=V.charCodeAt(D+t),!J||J==61||J==38||J==35)return D;D+=t+1}return-1};
MV9=/#|$/;_.Al=function(V,D){var f=V.search(MV9),n=xjY(V,0,D,f);if(n<0)return null;var t=V.indexOf("&",n);if(t<0||t>f)t=f;n+=D.length+1;return UG(V.slice(n,t!==-1?t:0))};
MEu=/[?&]($|#)/;_.Mi=function(V,D){for(var f=V.search(MV9),n=0,t,J=[];(t=xjY(V,n,D,f))>=0;)J.push(V.substring(n,t)),n=Math.min(V.indexOf("&",t)+1||f,f);J.push(V.slice(n));return J.join("").replace(MEu,"$1")};
_.qG=function(V,D,f){return _.EO(_.Mi(V,D),D,f)};
hlr=function(V){var D=LYp(window.location.href),f=D[1],n=[];f&&f.split("&").forEach(function(t){var J=t.indexOf("=");J=J>=0?t.slice(0,J):t;V.hasOwnProperty(J)||n.push(t)});
D[1]=IFu(n.join("&"),_.bE(V));return D[0]+(D[1]?"?"+D[1]:"")+D[2]};var RBL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(RBL,_.Xm);RBL.prototype.getVersion=function(){return _.df(this,2)};var zBx=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(zBx,_.Xm);var sXd=function(V,D){return _.lB(V,2,D)},m93=function(V,D){return _.lB(V,3,D)};
zBx.prototype.getModel=function(){return _.df(this,4)};
var d9x=function(V,D){return _.lB(V,4,D)},kOU=function(V,D){return _.lB(V,5,D)},Nx3=function(V,D){return _.lB(V,9,D)},vjd=function(V,D){return FX(V,10,D)},gjZ=function(V,D){return _.oV(V,11,D)},BxR=function(V,D){return _.lB(V,1,D)},uEd=function(V,D){return _.oV(V,7,D)};var cax="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var I8=function(V,D,f,n){V=V===void 0?window:V;D=D===void 0?null:D;f=f===void 0?new TdY:f;n=n===void 0?KaF():n;JcU.call(this);var t=this;this.global=V;this.debugChannel=D;this.performanceMonitor=f;this.onPageHide=N9(function(){return ma(t.global,"pagehide")}).pipe(Ez(this.performanceMonitor,941));
this.onLoad=N9(function(){return ma(t.global,"load")}).pipe(Ez(this.performanceMonitor,738),iK(1));
this.onResize=N9(function(){return ma(t.global,"resize")}).pipe(Ez(this.performanceMonitor,741));
this.onMessage=N9(function(){return ma(t.global,"message")}).pipe(Ez(this.performanceMonitor,740));
this.document=new XP(this.global,this);this.timeProvider=new bxY(new ycp(this.intrinsicFunctionNamespace,this.performanceMonitor),new KXH(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new wnp(new jYF(this),new zlP(this),new HN(this,new e9o(this)),new HN(this,new quV(this)),new HN(this,new Cp(this)))};
_.v(I8,JcU);var T$=function(V){var D=V.global;return!!V.global.HTMLFencedFrameElement&&!!D.fence&&typeof D.fence.reportEvent==="function"};
_.P=I8.prototype;_.P.reportFencedFrameEvent=function(V){T$(this)&&this.global.fence.reportEvent(V)};
_.P.getOnBackgrounded=function(){return this.onPageHide.pipe(Ez(this.performanceMonitor,942),Hl(this.queue),kj(function(){}))};
_.P.postMessage=function(V,D,f){f=f===void 0?[]:f;this.global.postMessage(V,D,f)};
_.P.getWidth=function(){return n4x(this.global)?this.global.width:0};
_.P.getHeight=function(){return n4x(this.global)?this.global.height:0};
_.P.isMobile=function(){return FXp()||gFF()};
var EB=function(V,D){try{var f=lWx(D,V.global,V.isMobile());return{left:f.left,top:f.top,width:f.getWidth(),height:f.getHeight()}}catch(n){return YA}};
I8.prototype.validate=function(){var V=this.beaconFactory.isSupported()||T$(this);return this.global&&this.timeProvider.available()&&V};
var pSX=function(V){return(V=qz9(V.global))?ta(V):null};
_.IG.Object.defineProperties(I8.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(V){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!n4x(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}}});_.ULp=!_.JF&&!_.zL();var g4Y=function(V){return V};var ksU=function(V){return V.pipe(CW(function(D){var f=D.endOfSessionReason;var n;return((n=D.viewable)==null?void 0:n.extrapolateToNow().value)||f!=void 0}),iK(1),aX())};var $9Y=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},iWX=function(V){var D=V.sequenceNumber.toString(10).padStart(2,"0");
D=""+V.startTime+D;V.sequenceNumber<99&&V.sequenceNumber++;return D};var eOZ=Ue(VJ(function(V){return V.endOfSessionReason===void 0}),kj(function(V){return Object.assign({},V,{timestamps:cl(V)})}),CW(function(V){var D=V.viewable;
V=V.timestamps;var f;return(f=D==null?void 0:D.extrapolateUsingTimestampMap(V).value)!=null?f:!1}),kj(function(V){var D=V.beaconFactory;
var f=V.timestampedExposureHistory;var n=V.timeOnScreen;var t=V.binaryContext;V=V.timestamps;if(D===void 0||f===void 0||n===void 0||t===void 0)return!1;if(n.extrapolateUsingTimestampMap(V).value.every(function(J){return J>=0}))return!0;
f=f.map(function(J){return J.timestamp+":"+J.value}).join(",");
n=F3({bin:t,tos:n},V);D.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+n+("&eh="+f)).sendNow();return!0}),VJ(function(V){return!V}),aX());var Wad=function(V){return{id:V.pingId,mcvt:V.maxConsecutiveViewTime,p:V.creativePosition,asp:V.adSpeedPosition,tm:V.totalMeasurementTime,tu:V.totalUnviewedTime,mtos:V.maxTimeOnScreen,tos:V.timeOnScreen,v:V.binaryVersion,bin:V.binaryContext,avms:V.measurementStrategy,bs:V.browserSize,mc:V.maximumExposure,"if":V.crossDomainIframeState,vu:V.delayedImpressionJsState,app:V.inApp,mse:V.mraidError,mtop:V.mraidSituation,itpl:V.injectedTemplateId,adk:V.adKey,exk:V.awbidKey,rs:V.requestSource,la:V.isLargeAd,
cr:V.isContentRecommendationAd,uach:V.userAgentClientHints,vs:V.viewState,r:V.reasonCode,pay:V.hasCpmavUrl,co:V.clientPingOrderCounter,rst:V.adRenderStartTime,rpt:V.adRenderPeriodTime,isd:V.initialScrollDepth,lsd:V.loadedScrollDepth,context:V.errorContext,msg:V.errorMessage,stack:V.errorStack,name:V.errorName,ec:V.hasElementChanged,sfr:V.strategyFailureReasons,met:V.creativeSearchResult,wmsd:V.webMeasurementStartDiagnostic,pv:V.pageVisible,epv:V.eosPageVisible,pbe:V.inStatefulBeaconExperiment,fle:V.inFetchLaterBeaconExperiment,
vae:V.inViewableAttributionExperiment,spb:V.supportsPendingBeacon,sfl:V.supportsFetchLater,ffslot:V.isFencedFrameSlotTurtlex,reach:V.sharedStorageReachMode,io2:V.v2VisibilityBitVector,rxdbg:V.rxDebugger,omida:V.omidAppId,omidp:V.omidPartner,omidpv:V.omidPartnerVersion,omidor:V.omidOcclusionReasons,omidv:V.omidVersion,omids:V.omidSessionType,omidam:V.omidAccessMode,omidct:V.omidCreativeType,omidia:V.omidInApp,omiddc:V.omidDeviceCategory,omidlat:V.omidLastActivity,omiddit:V.omidDeviceIdleTime,qid:V.errorEscapedQueryId}};var v43=function(V){var D=[];return V.pipe(kj(function(f){var n=f.beaconFactory,t=f.fetchBeaconFactory,J=f.timeOnScreen,H=f.timeOnScreenUrlPrefixes,Q=f.payloadMapper,T=f.timeOnScreenPingId,y=f.timeOnScreenReason,Z=f.urlSerializer,l=f.viewable,G=f.hasImpressionFired,F=f.inStatefulBeaconExperiment,k=f.supportsPendingBeacon,d=f.supportsFetchLater,z=f.turtlexReportEventData;if(!f.geometryMeasurable||!G||f.maxTimeOnScreen===void 0||J===void 0||H===void 0||Q===void 0||T===void 0||Z===void 0||n===void 0)return!1;
if(f.isTurtlex){if(y===void 0)return!1;H=f.reportFencedFrameEvent;if(!H)return!1;H({eventType:"active-view-time-on-screen",eventData:z!=null?z:"",destination:["buyer"]});return!0}if(!(F||d||y))return!1;z=cl(f);var C;l=(C=l==null?void 0:l.extrapolateUsingTimestampMap(z).value)!=null?C:!1;C=Z(Object.assign({},f,{pingId:T,viewState:l?4:3,reasonCode:y!=null?y:"u",payloadMapper:Q,urlPrefixes:H}),z);if(F){for(;D.length>H.length;)f=void 0,(f=D.shift())==null||f.deactivate();C.forEach(function(O,W){W>=D.length?
D.push(n.makeBeacon(O)):D[W].url=O});
return k&&t&&y!==void 0?(C.forEach(function(O){t.makeBeacon(O).sendNow()}),!0):y!==void 0}if(k&&t&&y!==void 0)return C.forEach(function(O){t.makeBeacon(O).sendNow()}),!0;
if(d&&t){for(;D.length>H.length;)k=void 0,(k=D.shift())==null||k.deactivate();var A=Z(Object.assign({},f,{pingId:T,viewState:l?4:3,reasonCode:y!=null?y:"u",payloadMapper:Q,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),z)[0];C.forEach(function(O,W){W>=D.length?D.push(n.makeBeacon(A,{endOfSession:!0})):D[W].url=A});
return y!==void 0?(C.forEach(function(O){t.makeBeacon(O).sendNow()}),!0):y!==void 0}return y!==void 0?(C.forEach(function(O){n.makeBeacon(O).sendNow()}),!0):!1}),VJ(function(f){return!f}),aX())};var sVn=Ue(CW(function(V){return V.immediateUrlPrefixes!==void 0&&V.payloadMapper!==void 0&&V.urlSerializer!==void 0&&V.inferredPingId!==void 0&&V.beaconFactory!==void 0}),CW(function(V){return U9X(V)!==null}),M5U(function(V){return V.activeViewUnmeasurableEvent},function(V){return V.emit}),kj(function(V){if(V.isTurtlex){var D=V.reportFencedFrameEvent;
if(D){var f;D({eventType:"active-view-unmeasurable",eventData:(f=V.turtlexReportEventData)!=null?f:"",destination:["buyer"]})}}else{f=void 0;var n=U9X(V);if(n==="x"){var t,J=(t=V.geometricMeasurementErrors)!=null?t:V.contextValidationErrors;J&&(D=J.stack,f=J.message)}V.urlSerializer(Object.assign({},V,{urlPrefixes:V.immediateUrlPrefixes,payloadMapper:V.payloadMapper,pingId:V.inferredPingId,viewState:2,reasonCode:n,errorMessage:f,errorStack:D}),cl(V)).forEach(function(H){V.beaconFactory.makeBeacon(H).sendNow()})}}),
iK(1),aX());var VCF=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var GsR=Ue(CW(function(V){return V.payloadMapper!==void 0&&V.immediateUrlPrefixes!==void 0&&V.urlSerializer!==void 0&&V.inferredPingId!==void 0&&V.beaconFactory!==void 0}),kj(function(V){return Object.assign({},V,{timestamps:cl(V)})}),CW(function(V){var D=V.viewable;
var f=V.hasImpressionFired;V=V.timestamps;var n;return!!f&&((n=D==null?void 0:D.extrapolateUsingTimestampMap(V).value)!=null?n:!1)}),M5U(function(V){return V.activeViewViewableEvent},function(V){return V.emit}),kj(function(V){var D=V.beaconFactory,f=V.turtlexReportEventData;
if(V.isTurtlex){var n=V.reportFencedFrameEvent;if(!n)return!1;n({eventType:"active-view-viewable",eventData:f!=null?f:"",destination:["buyer"]});return!0}f=V.urlSerializer(Object.assign({},V,{urlPrefixes:V.immediateUrlPrefixes,payloadMapper:V.payloadMapper,pingId:V.inferredPingId,viewState:4,reasonCode:"v"}),V.timestamps);(n=V.cpmavUrls)&&n.length>0&&V.viewUrlSerializer&&V.viewUrlSerializer(n,V).forEach(function(t){D.makeBeacon(t).sendNow()});
(n=V.viewableRelayUrls)&&n.length>0&&V.viewUrlSerializer&&V.viewUrlSerializer(n,V).forEach(function(t){D.makeBeacon(t).sendNow()});
f.forEach(function(t){D.makeBeacon(t,{attributionEnabled:V.isViewableAttributionEnabled}).sendNow()});
return!0}),VJ(function(V){return!V}),aX());var ii3=kj(function(V){return[V.value.topWindowViewportExternalGeometry.width,V.value.topWindowViewportExternalGeometry.height]});var A4=function(V,D){this.callback=V;this.options=D;this.intersectionObserverV2=this.intersectionObserverV1=null},vAY=function(V,D){D?V.intersectionObserverV2||(D=Object.assign({},V.options,{delay:100,
trackVisibility:!0}),V.intersectionObserverV2=new IntersectionObserver(V.callback,D)):V.intersectionObserverV1||(V.intersectionObserverV1=new IntersectionObserver(V.callback,V.options))},VW6=function(V,D){V=D?V.intersectionObserverV2:V.intersectionObserverV1;
if(!V)throw new rcp;return V};
A4.prototype.observe=function(V,D){VW6(this,V).observe(D)};
A4.prototype.unobserve=function(V,D){VW6(this,V).unobserve(D)};
A4.prototype.disconnect=function(V){VW6(this,V).disconnect()};
A4.prototype.takeRecords=function(V){return VW6(this,V).takeRecords()};var Ci={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:YA,topWindowViewportExternalGeometry:YA,measurementRequests:new J4,elementGeometrySourceName:"ns",elementGeometry:YA,intersectionGeometry:YA,viewportLocalAppOffset:{x:0,y:0}};var mrY=$A(Ue(kj(function(V){var D;return(D=V.exposureOverride)!=null?D:s8Z(V)}),kj(function(V){return isFinite(V)?V:0}))),A43=$A(Ue(kj(function(V){var D;
return(D=V.exposureOverride)!=null?D:s8Z(V)}),kj(function(V){return isFinite(V)?V:-1})));var AD=function(V,D){this.a=V;this.b=D;if(V.clock.timeline!==D.clock.timeline)throw Error();};
AD.prototype.equivalentTo=function(V){return V instanceof AD?this.a.equivalentTo(V.a)&&this.b.equivalentTo(V.b):!1};
AD.prototype.extrapolateToTime=function(V){var D=this.a.extrapolateToTime(V).value,f=this.b.extrapolateToTime(V).value;return{timestamp:V,value:[D,f]}};
_.IG.Object.defineProperties(AD.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 V=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),D=this.a.lastMeasurement.timestamp.equals(V)?this.a.lastMeasurement.value:this.a.extrapolateToTime(V).value,f=this.b.lastMeasurement.timestamp.equals(V)?this.b.lastMeasurement.value:this.b.extrapolateToTime(V).value;return{timestamp:V,value:[D,f]}}}});var az=function(V,D){this.input=V;this.mapFunction=D;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
az.prototype.equivalentTo=function(V){return V instanceof az?this.input.equivalentTo(V.input)&&this.mapFunction===V.mapFunction:!1};
az.prototype.extrapolateToTime=function(V){V=this.input.extrapolateToTime(V);return{timestamp:V.timestamp,value:this.mapFunction(V.value)}};
_.IG.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 YN=function(){};
YN.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
YN.prototype.extrapolateUsingTimestampMap=function(V){var D=this.clock.timeline,f,n=(f=V.get(D))!=null?f:this.clock.now();V.set(D,n);return this.extrapolateToTime(n)};
YN.prototype.map=function(V){return new Dop(this,V)};
YN.prototype.joinWith=function(V){return new fRp(this,V)};
var fRp=function(){AD.apply(this,arguments);this.map=YN.prototype.map;this.joinWith=YN.prototype.joinWith;this.extrapolateToNow=YN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YN.prototype.extrapolateUsingTimestampMap};
_.v(fRp,AD);var Dop=function(){az.apply(this,arguments);this.map=YN.prototype.map;this.joinWith=YN.prototype.joinWith;this.extrapolateToNow=YN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YN.prototype.extrapolateUsingTimestampMap};
_.v(Dop,az);var SC=function(V,D){this.lastMeasurement=D;this.extrapolateToNow=YN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YN.prototype.extrapolateUsingTimestampMap;this.map=YN.prototype.map;this.joinWith=YN.prototype.joinWith;this.clock=V};
SC.prototype.equivalentTo=function(V){return V.active};
SC.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.IG.Object.defineProperties(SC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var $r9=kj(function(V){if(V.value.viewportGeometrySourceName==="omid"){if(V.value.elementGeometrySourceName==="nio")return"omio";if(V.value.elementGeometrySourceName==="geo")return"omgeo"}return V.value.elementGeometrySourceName==="geo"||V.value.elementGeometrySourceName==="nio"?V.value.viewportGeometrySourceName:V.value.elementGeometrySourceName});var dr9=Ue(CW(function(V){return!isNaN(V)}),M9(function(V,D){return isNaN(V)?D:Math.min(V,D)},NaN),W6());var z5F=$A(Ue(kj(function(V){return V.intersectionGeometry.width*V.intersectionGeometry.height/(V.exposedViewportLocalGeometry.width*V.exposedViewportLocalGeometry.height)}),kj(function(V){return isFinite(V)?Math.min(1,V):0})));var YBU=Ue($A(kj(function(V){V=V.exposureOverride?V.elementGeometry.width*V.elementGeometry.height*V.exposureOverride/(V.topWindowViewportExternalGeometry.width*V.topWindowViewportExternalGeometry.height):V.intersectionGeometry.width*V.intersectionGeometry.height/(V.topWindowViewportExternalGeometry.width*V.topWindowViewportExternalGeometry.height);return isFinite(V)?V:0})));var Wkx=function(V,D){var f=this;this.timeProvider=V;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=D.pipe(W6()).subscribe(function(n){LkY(f);f.measurementRequestObserver=n})},INX=function(V,D){LkY(V);
V.lastMeasurementRequest=V.timeProvider.setTimeout(function(){var f;return void((f=V.measurementRequestObserver)==null?void 0:f.next())},D)},LkY=function(V){V.lastMeasurementRequest!==null&&V.timeProvider.clearTimeout(V.lastMeasurementRequest);
V.lastMeasurementRequest=null};
Wkx.prototype.dispose=function(){LkY(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var nf6=function(){};var ZJU=function(V,D){this.context=V;this.strategies=D};
_.v(ZJU,nf6);ZJU.prototype.buildGeometrySource=function(V,D){var f=this.strategies.map(function(J){return J.buildGeometrySource(V,D)}),n=Urd(f.map(function(J){return J.geometrySource})),t=n.capturedErrors.pipe(tWu());
return{geometrySource:n.chain.pipe(Hl(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:t,strategyErrors:n.capturedErrors}].concat(_.sz(f.map(function(J){return J.additionalOutputs}))))}};
var tWu=function(){return M9(function(V,D){D instanceof vl?V.push(D.measurementStrategyFailureReason):V.push(-1);return V},[])};var lCR=function(V,D){this.context=V;this.poller=D};
_.v(lCR,nf6);lCR.prototype.buildGeometrySource=function(V,D){var f=VBY(fCd(this.context,this.poller),biR(this.context,D.requestSource));return{geometrySource:h5Y(V.measurableCreative.pipe(f),D.inApp),additionalOutputs:{}}};var jVZ=function(V,D,f){f=f===void 0?GeF(V,D):f;this.context=V;this.intersectionObserverStrategy=f};
_.v(jVZ,nf6);jVZ.prototype.buildGeometrySource=function(V,D){var f=this.intersectionObserverStrategy(D.useV2);return{geometrySource:h5Y(V.measurableCreative.pipe(f,e5Y(this.context)),D.inApp),additionalOutputs:{}}};var PXu=function(V,D,f){var n=n===void 0?Symbol():n;this.element=V;this.immediateUrls=D;this.timeOnScreenUrls=f;this.symbol=n};var Li=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),rlF=Object.freeze([1,.75,Li.exposureThreshold,Li.largeAdExposureThreshold,0]);var TzZ=function(V,D){D=D===void 0?36E5:D;var f=f===void 0?!0:f;this.creatives=new J4;this.elementsToUnregister=new J4;this.elementMap=new Map;var n=new I8(window,null);n.beaconFactory=new HN(n,new Cp(n));ylc(n,this.creatives,this.elementsToUnregister,V,D,f).subscribe()},yW9=function(V,D,f,n){if(!V.elementMap.has(D)){var t=new X3(D);
V.elementMap.set(D,t);V.creatives.next(new PXu(t,f,n))}},Kbd=function(V,D){V.elementsToUnregister.next(D);
var f=V.elementMap.get(D);f!==void 0&&(f.release(),V.elementMap.delete(D))};var jBc=function(V){var D=V.url;V=V.uaDataValues;this.JSC$7564_url_=D;this.uaDataValues_=V;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var f=/[?&]([^&=]+)=([^&]*)/g;V=f.exec(D);)this.urlParamValues_[V[1]]=V[2]},lxY=function(V){V=V.uaDataValues_;
if(!V)return"";var D=xA("uap",V.platform)+xA("uapv",V.platformVersion)+xA("uafv",V.uaFullVersion)+xA("uaa",V.architecture)+xA("uam",V.model)+xA("uab",V.bitness);V.fullVersionList&&(D+="&uafvl="+encodeURIComponent(V.fullVersionList.map(function(f){return encodeURIComponent(f.brand)+";"+encodeURIComponent(f.version)}).join("|")));
V.wow64!=null&&(D+="&uaw="+Number(V.wow64));return D.slice(1)};var ofY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ofY,_.Xm);ofY.prototype.getId=function(){return _.df(this,1)};var $N=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v($N,_.Xm);$N.prototype.getSeconds=function(){return sk(this,1)};
$N.prototype.setSeconds=function(V){return _.kr(this,1,zJ(V),"0")};_.E1=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(_.E1,_.Xm);_.E1.prototype.getSeconds=function(){return sk(this,1)};
_.E1.prototype.setSeconds=function(V){return _.kr(this,1,zJ(V),"0")};
_.JZP=function(V){var D=Number(Nk(V,1));V=_.fJ(V,2);return new Date(D*1E3+V/1E6)};var ig=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ig,_.Xm);ig.prototype.getUrl=function(){return _.df(this,1)};
ig.prototype.setUrl=function(V){return _.O1(this,1,V)};
ig.prototype.getHeight=function(){return _.fJ(this,2)};
ig.prototype.getWidth=function(){return _.fJ(this,3)};var S$=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(S$,_.Xm);S$.prototype.getAspectRatio=function(){return Bb(this,1)};
S$.prototype.setAspectRatio=function(V){return _.kr(this,1,_.rR(V),0)};
S$.prototype.getDuration=function(){return _.bW(this,$N,2)};var rZF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(rZF,_.Xm);var HwU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(HwU,_.Xm);var wB6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(wB6,_.Xm);var Qql=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Qql,_.Xm);var TRo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(TRo,_.Xm);var bwl=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(bwl,_.Xm);var K3E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(K3E,_.Xm);var yZF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(yZF,_.Xm);var ZwU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ZwU,_.Xm);var WN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(WN,_.Xm);var pp=[2,4,5,6,7];var jqH=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(jqH,_.Xm);var gf=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(gf,_.Xm);_.P=gf.prototype;_.P.getId=function(){return _.bW(this,ofY,1)};
_.P.getName=function(){return _.df(this,2)};
_.P.setDescription=function(V){return _.O1(this,3,V)};
_.P.getUrl=function(){return _.df(this,8)};
_.P.setUrl=function(V){return _.O1(this,8,V)};
var Lp=function(V){return _.Vh(V,ig,10,_.DC())};
gf.prototype.getOwner=function(V){var D=_.c7(this,40,_.Yf,3,!0);XF(D,V);return D[V]};
gf.prototype.getVersion=function(){return sk(this,45)};
var Iz=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Iz,_.Xm);_.lRl=[0,VAX,fL9];_.GJL=[0,VAX,fL9];var evo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(evo,_.Xm);var OO=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(OO,_.Xm);OO.prototype.getStatus=function(){return _.u4(this,1)};
OO.prototype.removeItem=function(V){return jRn(this,2,V)};var cZY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(cZY,_.Xm);cZY.prototype.getName=function(){return _.df(this,8)};var xN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(xN,_.Xm);xN.prototype.getCommand=function(){return _.u4(this,1)};
xN.prototype.getSource=function(){return _.bW(this,cZY,2)};
xN.prototype.setVisible=function(V){return _.sX(this,5,V)};
xN.prototype.removeItem=function(V){return jRn(this,7,V)};var F3U=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(F3U,_.Xm);F3U.prototype.getCommand=function(){return _.u4(this,1)};
F3U.prototype.removeItem=function(V){return jRn(this,4,V)};
var gfH=_.V2(F3U);var MM=function(V,D,f){f=f===void 0?Error():f;var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.code=V;D+=":";f instanceof Error?(this.message=D+f.message,this.stack=f.stack||""):(this.message=D+String(f),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(MM,Error);_.cq=function(){this.JSC$7622_disposed_=this.JSC$7622_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.cq.prototype.JSC$7622_disposed_=!1;_.cq.prototype.isDisposed=function(){return this.JSC$7622_disposed_};
_.cq.prototype.dispose=function(){this.JSC$7622_disposed_||(this.JSC$7622_disposed_=!0,this.disposeInternal())};
_.cq.prototype[Symbol.dispose]=function(){this.dispose()};
_.wX=function(V,D){V.addOnDisposeCallback(_.lC(_.Mr,D))};
_.cq.prototype.addOnDisposeCallback=function(V,D){this.JSC$7622_disposed_?D!==void 0?V.call(D):V():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),D&&(V=V.bind(D)),this.onDisposeCallbacks_.push(V))};
_.cq.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var hD=function(V){_.cq.call(this);this.wpc=V};
_.v(hD,_.cq);hD.prototype.v1j=function(){return this.wpc.f()};
hD.prototype.bwn=function(V){return this.wpc.c(V)};
hD.prototype.rJ=function(V){return this.wpc.m(mNZ(V))};
hD.prototype.j3C=function(V){return this.wpc.mws(mNZ(V))};
var UB=function(V){_.cq.call(this);var D=this;this.ku=V;this.hWJ="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.jS8=void 0;this.dLZ=this.ku.p;this.mVJ=this.w3d.bind(this);this.addOnDisposeCallback(function(){return void vfo(D)})};
_.v(UB,_.cq);var kJL=function(V){var D;return _.w(function(f){if(f.nextAddress==1){if(!V.ku.wpc)throw new MM(30,"NWA");return V.jD1?f.return(V.jD1):_.b(f,V.ku.wpc(),2)}D=f.yieldResult;V.jD1=new hD(D);return f.return(V.jD1)})};
UB.prototype.snapshot=function(V){return this.ku.s(Object.assign({},V.yv&&{c:V.yv},V.d56&&{s:V.d56},V.nnq!==void 0&&{p:V.nnq}))};
UB.prototype.w3d=function(V){this.ku.e(V)};
UB.prototype.dxd=function(V,D){return this.ku.c(V,D,!1)};
var vfo=function(V){V.jS8!==void 0&&(V.hWJ.forEach(function(D){var f;(f=V.jS8)==null||f.removeEventListener(D,V.mVJ)}),V.jS8=void 0)};
UB.prototype.pL3=function(){return this.ku.l()};var sqE,UO=function(){_.cq.apply(this,arguments);this.jnF=1;this[sqE]=this.dispose};
_.v(UO,_.cq);UO.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.jnF++;return this};
UO.prototype.dispose=function(){--this.jnF||_.cq.prototype.dispose.call(this)};
sqE=Symbol.dispose;var BRL=function(V){this.vQK=V;V.addNewEventMetric("/client_streamz/bg/frs",_.Pq("mk"))};
BRL.prototype.record=function(V,D){this.vQK.record("/client_streamz/bg/frs",V,D)};
var doU=function(V){this.gQE=V;V.addNewEventMetric("/client_streamz/bg/wrl",_.Pq("mn"),tl("ac"),tl("sc"),_.Pq("rk"),_.Pq("mk"))};
doU.prototype.record=function(V,D,f,n,t,J){this.gQE.record("/client_streamz/bg/wrl",V,D,f,n,t,J)};
var uVP=function(V){this.rqq=V;V.addNewCounter("/client_streamz/bg/ec",_.Pq("en"),_.Pq("mk"))};
uVP.prototype.increment=function(V,D){this.rqq.JSC$7876_incrementCounter("/client_streamz/bg/ec",V,D)};
var NRF=function(V){this.mAJ=V;V.addNewEventMetric("/client_streamz/bg/el",_.Pq("en"),_.Pq("mk"))};
NRF.prototype.record=function(V,D,f){this.mAJ.record("/client_streamz/bg/el",V,D,f)};
var mol=function(V){this.sbF=V;V.addNewCounter("/client_streamz/bg/cec",tl("ec"),_.Pq("mk"))};
mol.prototype.increment=function(V,D){this.sbF.JSC$7876_incrementCounter("/client_streamz/bg/cec",V,D)};
var zvp=function(V){this.bKq=V;V.addNewCounter("/client_streamz/bg/po/csc",tl("cs"),_.Pq("mk"))};
zvp.prototype.increment=function(V,D){this.bKq.JSC$7876_incrementCounter("/client_streamz/bg/po/csc",V,D)};
var RvH=function(V){this.iKN=V;V.addNewCounter("/client_streamz/bg/po/ctav",_.Pq("av"),_.Pq("mk"))};
RvH.prototype.increment=function(V,D){this.iKN.JSC$7876_incrementCounter("/client_streamz/bg/po/ctav",V,D)};
var CXF=function(V){this.pLi=V;V.addNewCounter("/client_streamz/bg/po/cwsc",_.Pq("su"),_.Pq("mk"))};
CXF.prototype.increment=function(V,D){this.pLi.JSC$7876_incrementCounter("/client_streamz/bg/po/cwsc",V,D)};var oKU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(oKU,_.Xm);var PbR=function(V,D){return _.v7(V,3,D,MRx)};var qcE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(qcE,_.Xm);var XBu=[1,2,3];var Efu=[0,XBu,_.JHZ,nH3,oHn];var AZH=[0,_.Wb,[0,Mjn,_.Ys]];var aRY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(aRY,_.Xm);var YcF=[1,2,3];var $oo=[0,YcF,DtY,hfY,_.pg,AZH];var iwY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(iwY,_.Xm);var Sco=[0,_.Wb,Efu,$oo];var W3H=[0,_.SP];var pB6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(pB6,_.Xm);var L36=[0,_.SP,-1,_.i4];var IRF=[0,_.SP,-1,_.$s,_.i4];var OwP=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(OwP,_.Xm);var xoY=[1,2,3];var MWu=[0,xoY,_.pg,L36,_.pg,IRF,_.pg,W3H];var hvP=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(hvP,_.Xm);hvP.prototype.JSC$7696_serializeBinary=f3d([0,_.SP,MWu,rHc,_.Wb,Sco,tAY,P_c]);var UoL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(UoL,_.Xm);var f3u=function(V){var D=new hvP;D=_.lB(D,1,V.JSC$7812_metricName);var f=V_p(V);D=_.v7(D,3,f,_.Ec);f=[];for(var n=[],t=_.r(V.cellMap.keys()),J=t.next();!J.done;J=t.next())n.push(J.value.split(","));for(t=0;t<n.length;t++){J=n[t];for(var H=V.cellType,Q=V.getCells(J)||[],T=[],y=0;y<Q.length;y++){var Z=Q[y],l=Z&&Z.cellValue;Z=new aRY;switch(H){case 3:l=Number(l);Number.isFinite(l)&&TP(Z,1,YcF,zJ(l));break;case 2:TP(Z,2,YcF,_.rR(Number(l)))}T.push(Z)}H=T;for(Q=0;Q<H.length;Q++){T=H[Q];y=new iwY;T=_.fc(y,
2,T);y=[];Z=DeU(V);for(l=0;l<Z.length;l++){var G=Z[l],F=J[l],k=new qcE;switch(G){case 3:TP(k,1,XBu,aq(String(F)));break;case 2:G=Number(F);Number.isFinite(G)&&TP(k,2,XBu,_.gR(G));break;case 1:TP(k,3,XBu,IZL(F==="true"))}y.push(k)}FX(T,1,y);f.push(T)}}FX(D,4,f);return D};var nrl=function(V){if(!V)return"";if(/^about:(?:blank|srcdoc)$/.test(V))return window.origin||"";V.indexOf("blob:")===0&&(V=V.substring(5));V=V.split("#")[0].split("?")[0];V=V.toLowerCase();V.indexOf("//")==0&&(V=window.location.protocol+V);/^[\w\-]*:\/\//.test(V)||(V=window.location.href);var D=V.substring(V.indexOf("://")+3),f=D.indexOf("/");f!=-1&&(D=D.substring(0,f));f=V.substring(0,V.indexOf("://"));if(!f)throw Error("va`"+V);if(f!=="http"&&f!=="https"&&f!=="chrome-extension"&&f!=="moz-extension"&&
f!=="file"&&f!=="android-app"&&f!=="chrome-search"&&f!=="chrome-untrusted"&&f!=="chrome"&&f!=="app"&&f!=="devtools")throw Error("wa`"+f);V="";var n=D.indexOf(":");if(n!=-1){var t=D.substring(n+1);D=D.substring(0,n);if(f==="http"&&t!=="80"||f==="https"&&t!=="443")V=":"+t}return f+"://"+D+V};var PFF=function(V,D,f){var n=String(_.fx.location.href);return n&&V&&D?[D,t_F(nrl(n),V,f||null)].join(" "):null},t_F=function(V,D,f){var n=[],t=[];
if((Array.isArray(f)?2:1)==1)return t=[D,V],_.Sd(n,function(Q){t.push(Q)}),orP(t.join(" "));
var J=[],H=[];_.Sd(f,function(Q){H.push(Q.key);J.push(Q.value)});
f=Math.floor((new Date).getTime()/1E3);t=J.length==0?[f,D,V]:[J.join(":"),f,D,V];_.Sd(n,function(Q){t.push(Q)});
V=orP(t.join(" "));V=[f,V];H.length==0||V.push(H.join(""));return V.join("_")},orP=function(V){var D=aCY();
D.update(V);return D.digestString().toLowerCase()};var VN=function(V){this.JSC$7707_document_=V||{cookie:""}},JnY;
_.P=VN.prototype;_.P.isEnabled=function(){if(!_.fx.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};
_.P.set=function(V,D,f){var n=!1;if(typeof f==="object"){var t=f.sameSite;n=f.secure||!1;var J=f.domain||void 0;var H=f.path||void 0;var Q=f.maxAge}if(/[;=\s]/.test(V))throw Error("xa`"+V);if(/[;\r\n]/.test(D))throw Error("ya`"+D);Q===void 0&&(Q=-1);f=J?";domain="+J:"";H=H?";path="+H:"";n=n?";secure":"";Q=Q<0?"":Q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Q*1E3)).toUTCString();this.JSC$7707_document_.cookie=V+"="+D+f+H+Q+n+(t!=null?";samesite="+t:"")};
_.P.get=function(V,D){for(var f=V+"=",n=(this.JSC$7707_document_.cookie||"").split(";"),t=0,J;t<n.length;t++){J=b3(n[t]);if(J.lastIndexOf(f,0)==0)return J.slice(f.length);if(J==V)return""}return D};
_.P.remove=function(V,D,f){var n=this.containsKey(V);this.set(V,"",{maxAge:0,path:D,domain:f});return n};
_.P.getKeys=function(){return JnY(this).keys};
_.P.getValues=function(){return JnY(this).values};
_.P.isEmpty=function(){return!this.JSC$7707_document_.cookie};
_.P.getCount=function(){return this.JSC$7707_document_.cookie?(this.JSC$7707_document_.cookie||"").split(";").length:0};
_.P.containsKey=function(V){return this.get(V)!==void 0};
_.P.containsValue=function(V){for(var D=JnY(this).values,f=0;f<D.length;f++)if(D[f]==V)return!0;return!1};
_.P.clear=function(){for(var V=JnY(this).keys,D=V.length-1;D>=0;D--)this.remove(V[D])};
JnY=function(V){V=(V.JSC$7707_document_.cookie||"").split(";");for(var D=[],f=[],n,t,J=0;J<V.length;J++)t=b3(V[J]),n=t.indexOf("="),n==-1?(D.push(""),f.push(t)):(D.push(t.substring(0,n)),f.push(t.substring(n+1)));return{keys:D,values:f}};
_.ZY=new VN(typeof document=="undefined"?null:document);var fpc,rnu;fpc=function(){var V=_.fx.__SAPISID||_.fx.__APISID||_.fx.__3PSAPISID||_.fx.__1PSAPISID||_.fx.__OVERRIDE_SID;if(V)return!0;typeof document!=="undefined"&&(V=new VN(document),V=V.get("SAPISID")||V.get("APISID")||V.get("__Secure-3PAPISID")||V.get("__Secure-1PAPISID"));return!!V};
rnu=function(V,D,f,n){(V=_.fx[V])||typeof document==="undefined"||(V=(new VN(document)).get(D));return V?PFF(V,f,n):null};
_.LqY=function(V){var D=nrl(_.fx==null?void 0:_.fx.location.href),f=[];if(fpc()){D=D.indexOf("https:")==0||D.indexOf("chrome-extension:")==0||D.indexOf("chrome-untrusted://new-tab-page")==0||D.indexOf("moz-extension:")==0;var n=D?_.fx.__SAPISID:_.fx.__APISID;n||typeof document==="undefined"||(n=new VN(document),n=n.get(D?"SAPISID":"APISID")||n.get("__Secure-3PAPISID"));(n=n?PFF(n,D?"SAPISIDHASH":"APISIDHASH",V):null)&&f.push(n);D&&((D=rnu("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",V))&&f.push(D),
(V=rnu("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",V))&&f.push(V))}return f.length==0?null:f.join(" ")};var H4o=function(){this.minSize=1024};
H4o.prototype.compress=function(V){var D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return D=new CompressionStream("gzip"),f=(new Response(D.readable)).arrayBuffer(),n=D.writable.getWriter(),_.b(J,n.write((new TextEncoder).encode(V)),2);case 2:return _.b(J,n.close(),3);case 3:return t=Uint8Array,_.b(J,f,4);case 4:return J.return(new t(J.yieldResult))}})};
H4o.prototype.isSupported=function(V){return V<this.minSize?!1:typeof CompressionStream!=="undefined"};var w7P=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(w7P,_.Xm);var DU=function(V,D){this.intervalMs=V;this.callback=D;this.enabled=!1;this.nowFn=function(){return _.Vd()};
this.lastTimeMs=this.nowFn()};
DU.prototype.setInterval=function(V){this.intervalMs=V;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
DU.prototype.start=function(){var V=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){V.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
DU.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
DU.prototype.tick=function(){var V=this;if(this.enabled){var D=Math.max(this.nowFn()-this.lastTimeMs,0);D<this.intervalMs*.8?this.timer=setTimeout(function(){V.tick()},this.intervalMs-D):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var QkU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(QkU,_.Xm);var TuF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(TuF,_.Xm);var b4o=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(b4o,_.Xm);b4o.prototype.getTransmissionType=function(){return _.u4(this,1)};var SRx=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(SRx,_.Xm);SRx.prototype.getVersion=function(){return _.df(this,2)};var f8=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(f8,_.Xm);var iJY=function(V){FX(WHX,1,V)};
f8.prototype.getModel=function(){return _.df(this,6)};
var Klr=_.V2(f8);var ynP=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ynP,_.Xm);var YRd=["platform","platformVersion","architecture","model","uaFullVersion"],WHX=new f8,$NY=null;var n8=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(n8,_.Xm);var Z46=function(V){return _.nh(V,1,1)};var jkF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,4)};
_.v(jkF,_.Xm);_.ti=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,36)};
_.v(_.ti,_.Xm);_.ti.prototype.getExperimentIds=function(){return _.bW(this,w7P,16)};var l3p=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,19)};
_.v(l3p,_.Xm);l3p.prototype.setLogSource=function(V){return _.nh(this,2,V)};
l3p.prototype.setScheduler=function(V){return _.nh(this,10,V)};var eG6=function(V,D){this.isServiceWorkerScope=D=D===void 0?!1:D;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new l3p;Number.isInteger(V)&&this.logRequest.setLogSource(V);D||(this.locale=document.documentElement.getAttribute("lang"));GjF(this,new n8)};
eG6.prototype.setLogSource=function(V){this.logRequest.setLogSource(V);return this};
var GjF=function(V,D){_.fc(V.logRequest,1,D);_.u4(D,1)||Z46(D);V.isServiceWorkerScope||(D=PT(V),_.df(D,5)||_.lB(D,5,V.locale));V.uach&&(D=PT(V),_.bW(D,f8,9)||_.fc(D,9,V.uach))},cnp=function(V,D){V.transmissionType=D},Fl6=function(V){var D=D===void 0?YRd:D;
var f=V.isServiceWorkerScope?void 0:Nr();f?pqx(f,D).then(function(n){V.uach=Klr(n!=null?n:"[]");n=PT(V);_.fc(n,9,V.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},PT=function(V){var D=_.bW(V.logRequest,n8,1);
D||(D=new n8,GjF(V,D));V=D;D=_.bW(V,ynP,11);D||(D=new ynP,_.fc(V,11,D));return D};
eG6.prototype.build=function(V,D,f,n,t,J){D=D===void 0?0:D;f=f===void 0?0:f;n=n===void 0?null:n;t=t===void 0?0:t;J=J===void 0?0:J;if(!this.isServiceWorkerScope){var H=PT(this);var Q=new b4o;Q=_.nh(Q,1,this.transmissionType);Q=_.oV(Q,2,this.isFinal);f=_.R$(Q,3,f>0?f:void 0);f=_.R$(f,4,t>0?t:void 0);f=_.R$(f,5,J>0?J:void 0);t=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=t[_.eE]|0;f=NL(f,J)?f:ru(f,t,J)?Jn(f,t):new f.constructor(ok(t,J,!0));_.fc(H,10,f)}H=this.logRequest.clone();f=Date.now().toString();
H=_.tB(H,4,zJ(f));V=V.slice();V=FX(H,3,V);n&&(H=new QkU,n=_.R$(H,13,n),H=new TuF,n=_.fc(H,2,n),H=new jkF,n=_.fc(H,1,n),n=_.nh(n,2,9),_.fc(V,18,n));D&&_.c2(V,14,D);return V};Jl.prototype.currBackoffCount_=0;Jl.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Jl.prototype.getValue=function(){return this.currValue_};
var grl=function(V){V.currBaseValue_=Math.min(V.maxValue_,V.currBaseValue_*V.backoffFactor_);V.currValue_=Math.min(V.maxValue_,V.currBaseValue_+(V.randomFactor_?Math.round(V.randomFactor_*(Math.random()-.5)*2*V.currBaseValue_):0));V.currBackoffCount_++};var bqR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,8)};
_.v(bqR,_.Xm);var vrY=_.V2(bqR);var KQF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(KQF,_.Xm);var oi;oi=new yHZ;var rH=function(V){_.cq.call(this);var D=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7785_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$7785_sendBeaconApiEnabled=!1;this.logSource=V.logSource;this.getAuthHeaderValue=
V.getAuthHeaderValue||function(){};
this.logRequestBuilder=new eG6(V.logSource,V.isServiceWorkerScope);this.network=V.network||null;this.productID=V.productID||null;this.bufferSize=1E3;this.clearcutUrl=V.urlOverride||null;this.sessionIndex=V.sessionIndex||null;this.disableAutomaticFlush=V.disableAutomaticFlush||!1;this.withCredentials=!V.disableWithCredentials;this.isServiceWorkerScope=V.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Nr()&&!!Nr().navigator&&Nr().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(kjl())).searchParams&&!!(new URL(kjl())).searchParams.set;var f=Z46(new n8);GjF(this.logRequestBuilder,f);this.flushBackoff=new Jl(1E4,3E5,.1);V=sku(this,V.backgroundJobDeferrer);this.JSC$7785_flushTimer=new DU(this.flushBackoff.getValue(),V);this.backupTimer=new DU(6E5,V);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){BuV(D);
var n;(n=D.metalogService)==null||n.flush()}}),document.addEventListener("pagehide",function(){BuV(D);
var n;(n=D.metalogService)==null||n.flush()}))};
_.v(rH,_.cq);var sku=function(V,D){return V.isBrowserSupported?D?function(){D().then(function(){V.flush()})}:function(){V.flush()}:function(){}};
rH.prototype.disposeInternal=function(){BuV(this);this.JSC$7785_flushTimer.stop();this.backupTimer.stop();_.cq.prototype.disposeInternal.call(this)};
var de6=function(V){V.clearcutUrl||(V.clearcutUrl=kjl());try{return(new URL(V.clearcutUrl)).toString()}catch(D){return(new URL(V.clearcutUrl,Nr().location.origin)).toString()}};
rH.prototype.dispatch=function(V){if(V instanceof _.ti)this.log(V);else try{var D=new _.ti,f=V.serialize();var n=_.lB(D,8,f);this.log(n)}catch(t){HT(this,4,1)}};
var HT=function(V,D,f){V.metalogService&&V.metalogService.increment(D,f)};
rH.prototype.log=function(V){HT(this,2,1);if(this.isBrowserSupported){V=V.clone();var D=this.sequencePosition++;V=_.c2(V,21,D);this.componentId&&_.lB(V,26,this.componentId);D=V;if(bo9(_.ZX(D,1))==null){var f=Date.now();f=Number.isFinite(f)?f.toString():"0";_.tB(D,1,zJ(f))}_.TPR(_.ZX(D,15))!=null||_.c2(D,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),_.fc(D,16,f));HT(this,1,1);D=this.pendingEvents.length-this.bufferSize+1;D>0&&(this.pendingEvents.splice(0,D),
this.numLogsDroppedSinceLastFlush+=D,HT(this,3,D));this.pendingEvents.push(V);this.disableAutomaticFlush||this.JSC$7785_flushTimer.enabled||this.JSC$7785_flushTimer.start()}};
rH.prototype.flush=function(V,D){var f=this;if(this.pendingEvents.length===0)V&&V();else if(this.JSC$7785_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,umo(this);else{var n=Date.now();if(this.noFlushUntilMs>n&&this.startWaitingMs<n)D&&D("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?cnp(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var t=this.pendingEvents.length,
J=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),H=this.getAuthHeaderValue();if(H&&this.lastFailedAuth===H)D&&D("stale-auth-token");else{this.pendingEvents=[];this.JSC$7785_flushTimer.enabled&&this.JSC$7785_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;n=J.serialize();var Q;this.JSC$7785_compressor&&this.JSC$7785_compressor.isSupported(n.length)&&
(Q=this.JSC$7785_compressor.compress(n));var T=Nul(this,n,H),y=function(G){f.flushBackoff.reset();f.JSC$7785_flushTimer.setInterval(f.flushBackoff.getValue());if(G){var F=null;try{var k=JSON.stringify(JSON.parse(G.replace(")]}'\n","")));F=vrY(k)}catch(d){}F&&(G=Number(sk(F,1,_.Lo("-1"))),G>0&&(f.startWaitingMs=Date.now(),f.noFlushUntilMs=f.startWaitingMs+G),mLF(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,oi.fieldIndex),uFF(F,oi.fieldIndex),F=oi.ctor?oi.getExtensionFn(F,oi.ctor,oi.fieldIndex,
oi.JSC$6964_hasMessageId):oi.getExtensionFn(F,oi.fieldIndex,null,oi.JSC$6964_hasMessageId),F=F===null?void 0:F)&&(F=_.fJ(F,1,-1),F!==-1&&(f.flushBackoff=new Jl(F<1?1:F,3E5,.1),f.JSC$7785_flushTimer.setInterval(f.flushBackoff.getValue())))}V&&V();f.numRetriesSinceLastSuccessfulFlush=0},Z=function(G,F){var k=_.Vh(J,_.ti,3,_.DC());
var d=Number(sk(J,14));grl(f.flushBackoff);f.JSC$7785_flushTimer.setInterval(f.flushBackoff.getValue());G===401&&H&&(f.lastFailedAuth=H);d&&(f.numLogsDroppedSinceLastFlush+=d);F===void 0&&(F=f.isRetryable(G));F&&(f.pendingEvents=k.concat(f.pendingEvents),f.disableAutomaticFlush||f.JSC$7785_flushTimer.enabled||f.JSC$7785_flushTimer.start());HT(f,7,1);D&&D("net-send-failed",G);++f.numRetriesSinceLastSuccessfulFlush},l=function(){f.network&&f.network.send(T,y,Z)};
Q?Q.then(function(G){HT(f,5,t);T.requestHeaders["Content-Encoding"]="gzip";T.requestHeaders["Content-Type"]="application/binary";T.body=G;T.bodyType=2;l()},function(){HT(f,6,t);
l()}):l()}}}};
var Nul=function(V,D,f){f=f===void 0?null:f;var n=n===void 0?V.withCredentials:n;var t={},J=new URL(de6(V));f&&(t.Authorization=f);V.sessionIndex&&(t["X-Goog-AuthUser"]=V.sessionIndex,J.searchParams.set("authuser",V.sessionIndex));V.pageId&&(Object.defineProperty(t,"X-Goog-PageId",{value:V.pageId}),J.searchParams.set("pageId",V.pageId));return{url:J.toString(),body:D,bodyType:1,requestHeaders:t,requestType:"POST",withCredentials:n,timeoutMillis:V.timeoutMillis}},BuV=function(V){V.logRequestBuilder.isFinal=
!0;
V.flush();V.logRequestBuilder.isFinal=!1},umo=function(V){meE(V,function(D,f){D=new URL(D);
D.searchParams.set("format","json");var n=!1;try{n=Nr().navigator.sendBeacon(D.toString(),f.serialize())}catch(t){}n||(V.isSendBeaconSupported=!1);return n})},meE=function(V,D){if(V.pendingEvents.length!==0){var f=new URL(de6(V));
f.searchParams.delete("format");var n=V.getAuthHeaderValue();n&&f.searchParams.set("auth",n);f.searchParams.set("authuser",V.sessionIndex||"0");for(n=0;n<10&&V.pendingEvents.length;++n){var t=V.pendingEvents.slice(0,32),J=V.logRequestBuilder.build(t,V.numLogsDroppedSinceLastFlush,V.numRetriesSinceLastSuccessfulFlush,V.productID,V.persistedLogRecoveredCount,V.persistedLogExpiredCount);if(!D(f.toString(),J)){++V.numRetriesSinceLastSuccessfulFlush;break}V.numLogsDroppedSinceLastFlush=0;V.numRetriesSinceLastSuccessfulFlush=
0;V.persistedLogRecoveredCount=0;V.persistedLogExpiredCount=0;V.pendingEvents=V.pendingEvents.slice(t.length)}V.JSC$7785_flushTimer.enabled&&V.JSC$7785_flushTimer.stop()}};
rH.prototype.isRetryable=function(V){return 500<=V&&V<600||V===401||V===0};
var kjl=function(){return"https://play.google.com/log?format=json&hasfast=true"};var zGH=function(){this.abortSupported=typeof AbortController!=="undefined"};
zGH.prototype.send=function(V,D,f){var n=this,t,J,H,Q,T,y,Z,l,G,F;return _.w(function(k){switch(k.nextAddress){case 1:return J=(t=n.abortSupported?new AbortController:void 0)?setTimeout(function(){t.abort()},V.timeoutMillis):void 0,_.wx(k,2,3),H=Object.assign({},{method:V.requestType,
headers:Object.assign({},V.requestHeaders)},V.body&&{body:V.body},V.withCredentials&&{credentials:"include"},{signal:V.timeoutMillis&&t?t.signal:null}),_.b(k,fetch(V.url,H),5);case 5:Q=k.yieldResult;if(Q.status!==200){(T=f)==null||T(Q.status);k.jumpTo(3);break}if((y=D)==null){k.jumpTo(7);break}return _.b(k,Q.text(),8);case 8:y(k.yieldResult);case 7:case 3:_.Qz(k);clearTimeout(J);_.bK(k,0);break;case 2:Z=_.KW(k);switch((l=Z)==null?void 0:l.name){case "AbortError":(G=f)==null||G(408);break;default:(F=
f)==null||F(400)}k.jumpTo(3)}})};
zGH.prototype.getTransmissionType=function(){return 4};_.Hq=function(V,D){D=D===void 0?"0":D;_.cq.call(this);this.logSource=V;this.sessionIndex=D;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7803_clearExperimentIds=this.productID=null;this.JSC$7803_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.v(_.Hq,_.cq);var fJR=function(V,D){V.buildLabel=D;return V},DqY=function(V,D){V.network=D;
return V},tQc=function(V,D){V.JSC$7803_clearExperimentIds=D},VQn=function(V){V.JSC$7803_sendBeaconApiEnabled=!0;
return V};
_.Hq.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Hq.prototype.build=function(){this.network||(this.network=new zGH);var V=new rH({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.LqY,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.wX(this,V);if(this.buildLabel){var D=this.buildLabel,f=
PT(V.logRequestBuilder);_.lB(f,7,D)}V.JSC$7785_compressor=new H4o;this.componentId&&(V.componentId=this.componentId);this.productID&&(V.productID=this.productID);this.pageId&&(V.pageId=this.pageId);this.JSC$7803_clearExperimentIds&&((f=this.JSC$7803_clearExperimentIds)?(V.experimentIds||(V.experimentIds=new w7P),D=V.experimentIds,f=f.serialize(),_.lB(D,4,f)):V.experimentIds&&_.tB(V.experimentIds,4));this.JSC$7803_sendBeaconApiEnabled&&(V.JSC$7785_sendBeaconApiEnabled=V.isSendBeaconSupported);Fl6(V.logRequestBuilder);
this.bufferSize&&(V.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(V);return V};var JN3=function(V,D,f,n,t,J,H){V=V===void 0?-1:V;D=D===void 0?"":D;f=f===void 0?"":f;n=n===void 0?!1:n;t=t===void 0?"":t;_.cq.call(this);this.logSource=V;this.componentId=D;J?D=J:(V=new _.Hq(V,"0"),V.componentId=D,_.wX(this,V),f!==""&&(V.destinationUrl=f),n&&(V.serviceWorkerScopeEnabled=!0),t&&fJR(V,t),H&&DqY(V,H),D=V.build());this.JSC$7807_transport=D};
_.v(JN3,_.cq);JN3.prototype.flush=function(V){V=V||[];if(V.length){for(var D=new UoL,f=[],n=0;n<V.length;n++){var t=V[n],J=f3u(t);f.push(J);t.clear()}FX(D,1,f);this.JSC$7807_transport.dispatch(D);this.JSC$7807_transport.flush()}};var RGE=function(V){this.cellValue=V};var wH=function(V,D,f){this.JSC$7812_metricName=V;this.cellType=D;this.fields=f||[];this.cellMap=new Map},DeU=function(V){return V.fields.map(function(D){return D.fieldType})},V_p=function(V){return V.fields.map(function(D){return D.fieldName})};
_.P=wH.prototype;_.P.addCell=function(V){var D=_.gQ.apply(1,arguments),f=this.getCells(D);f?f.push(new RGE(V)):this.JSC$7812_setCell(V,D)};
_.P.JSC$7812_setCell=function(V){var D=this.JSC$7812_getKey(_.gQ.apply(1,arguments));this.cellMap.set(D,[new RGE(V)])};
_.P.getCells=function(){var V=this.JSC$7812_getKey(_.gQ.apply(0,arguments));return this.cellMap.has(V)?this.cellMap.get(V):void 0};
_.P.getCell=function(){var V=this.getCells(_.gQ.apply(0,arguments));return V&&V.length?V[0]:void 0};
_.P.clear=function(){this.cellMap.clear()};
_.P.JSC$7812_getKey=function(){var V=_.gQ.apply(0,arguments);return V?V.join(","):"key"};var CFH=function(V,D){wH.call(this,V,3,D)};
_.v(CFH,wH);CFH.prototype.JSC$7815_incrementCounterBy=function(V){var D=_.gQ.apply(1,arguments),f=0,n=this.getCell(D);n&&(f=n.cellValue);this.JSC$7812_setCell(f+V,D)};var qWE=function(V,D){wH.call(this,V,2,D)};
_.v(qWE,wH);qWE.prototype.record=function(V){this.addCell(V,_.gQ.apply(1,arguments))};_.QN=function(V){this.id=V};
_.QN.prototype.toString=function(){return this.id};_.TG=function(V,D){this.type=V instanceof _.QN?String(V):V;this.currentTarget=this.target=D;this.defaultPrevented=this.propagationStopped_=!1};
_.TG.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.TG.prototype.preventDefault=function(){this.defaultPrevented=!0};_.bG=function(V,D){_.TG.call(this,V?V.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;V&&this.init(V,D)};
_.fg(_.bG,_.TG);
_.bG.prototype.init=function(V,D){var f=this.type=V.type,n=V.changedTouches&&V.changedTouches.length?V.changedTouches[0]:null;this.target=V.target||V.srcElement;this.currentTarget=D;D=V.relatedTarget;D||(f=="mouseover"?D=V.fromElement:f=="mouseout"&&(D=V.toElement));this.relatedTarget=D;n?(this.clientX=n.clientX!==void 0?n.clientX:n.pageX,this.clientY=n.clientY!==void 0?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.offsetX=_.Hb||V.offsetX!==void 0?V.offsetX:V.layerX,
this.offsetY=_.Hb||V.offsetY!==void 0?V.offsetY:V.layerY,this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0);this.button=V.button;this.keyCode=V.keyCode||0;this.key=V.key||"";this.charCode=V.charCode||(f=="keypress"?V.keyCode:0);this.ctrlKey=V.ctrlKey;this.altKey=V.altKey;this.shiftKey=V.shiftKey;this.metaKey=V.metaKey;this.pointerId=V.pointerId||0;this.pointerType=V.pointerType;this.state=V.state;
this.timeStamp=V.timeStamp;this.event_=V;V.defaultPrevented&&_.bG.superClass_.preventDefault.call(this)};
_.bG.prototype.stopPropagation=function(){_.bG.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.bG.prototype.preventDefault=function(){_.bG.superClass_.preventDefault.call(this);var V=this.event_;V.preventDefault?V.preventDefault():V.returnValue=!1};var X7Y="closure_listenable_"+(Math.random()*1E6|0),K8=function(V){return!(!V||!V[X7Y])};var Err=0;var AnV=function(V,D,f,n,t){this.listener=V;this.proxy=null;this.src=D;this.type=f;this.capture=!!n;this.handler=t;this.key=++Err;this.removed=this.callOnce=!1},a3u=function(V){V.removed=!0;
V.listener=null;V.proxy=null;V.src=null;V.handler=null};rX.prototype.add=function(V,D,f,n,t){var J=V.toString();V=this.listeners[J];V||(V=this.listeners[J]=[],this.typeCount_++);var H=YWl(V,D,n,t);H>-1?(D=V[H],f||(D.callOnce=!1)):(D=new AnV(D,this.src,J,!!n,t),D.callOnce=f,V.push(D));return D};
rX.prototype.remove=function(V,D,f,n){V=V.toString();if(!(V in this.listeners))return!1;var t=this.listeners[V];D=YWl(t,D,f,n);return D>-1?(a3u(t[D]),_.Lx(t,D),t.length==0&&(delete this.listeners[V],this.typeCount_--),!0):!1};
var $eE=function(V,D){var f=D.type;if(!(f in V.listeners))return!1;var n=_.IY(V.listeners[f],D);n&&(a3u(D),V.listeners[f].length==0&&(delete V.listeners[f],V.typeCount_--));return n};
rX.prototype.removeAll=function(V){V=V&&V.toString();var D=0,f;for(f in this.listeners)if(!V||f==V){for(var n=this.listeners[f],t=0;t<n.length;t++)++D,a3u(n[t]);delete this.listeners[f];this.typeCount_--}return D};
rX.prototype.getListener=function(V,D,f,n){V=this.listeners[V.toString()];var t=-1;V&&(t=YWl(V,D,f,n));return t>-1?V[t]:null};
rX.prototype.hasListener=function(V,D){var f=V!==void 0,n=f?V.toString():"",t=D!==void 0;return _.sB.some(this.listeners,function(J){for(var H=0;H<J.length;++H)if(!(f&&J[H].type!=n||t&&J[H].capture!=D))return!0;return!1})};
var YWl=function(V,D,f,n){for(var t=0;t<V.length;++t){var J=V[t];if(!J.removed&&J.listener==D&&J.capture==!!f&&J.handler==n)return t}return-1};var i4E,SWF,Wlo,Llp,I3P,cr,Fo,M_u,O4l,xeP,yN,hGu,p7p;i4E="closure_lm_"+(Math.random()*1E6|0);SWF={};Wlo=0;_.kt=function(V,D,f,n,t){if(n&&n.once)return cr(V,D,f,n,t);if(Array.isArray(D)){for(var J=0;J<D.length;J++)_.kt(V,D[J],f,n,t);return null}f=p7p(f);return K8(V)?V.listen(D,f,_.VV(n)?!!n.capture:!!n,t):Llp(V,D,f,!1,n,t)};
Llp=function(V,D,f,n,t,J){if(!D)throw Error("Aa");var H=_.VV(t)?!!t.capture:!!t,Q=yN(V);Q||(V[i4E]=Q=new rX(V));f=Q.add(D,f,n,H,J);if(f.proxy)return f;n=I3P();f.proxy=n;n.src=V;n.listener=f;if(V.addEventListener)_.SZd||(t=H),t===void 0&&(t=!1),V.addEventListener(D.toString(),n,t);else if(V.attachEvent)V.attachEvent(O4l(D.toString()),n);else if(V.addListener&&V.removeListener)V.addListener(n);else throw Error("Ba");Wlo++;return f};
I3P=function(){var V=xeP,D=function(f){return V.call(D.src,D.listener,f)};
return D};
cr=function(V,D,f,n,t){if(Array.isArray(D)){for(var J=0;J<D.length;J++)cr(V,D[J],f,n,t);return null}f=p7p(f);return K8(V)?V.listenOnce(D,f,_.VV(n)?!!n.capture:!!n,t):Llp(V,D,f,!0,n,t)};
_.ZU=function(V,D,f,n,t){if(Array.isArray(D))for(var J=0;J<D.length;J++)_.ZU(V,D[J],f,n,t);else n=_.VV(n)?!!n.capture:!!n,f=p7p(f),K8(V)?V.unlisten(D,f,n,t):V&&(V=yN(V))&&(D=V.getListener(D,f,n,t))&&Fo(D)};
Fo=function(V){if(typeof V==="number"||!V||V.removed)return!1;var D=V.src;if(K8(D))return $eE(D.eventTargetListeners_,V);var f=V.type,n=V.proxy;D.removeEventListener?D.removeEventListener(f,n,V.capture):D.detachEvent?D.detachEvent(O4l(f),n):D.addListener&&D.removeListener&&D.removeListener(n);Wlo--;(f=yN(D))?($eE(f,V),f.typeCount_==0&&(f.src=null,D[i4E]=null)):a3u(V);return!0};
M_u=function(V,D,f,n,t){f=p7p(f);n=!!n;return K8(V)?V.getListener(D,f,n,t):V?(V=yN(V))?V.getListener(D,f,n,t):null:null};
O4l=function(V){return V in SWF?SWF[V]:SWF[V]="on"+V};
xeP=function(V,D){if(V.removed)V=!0;else{D=new _.bG(D,this);var f=V.listener,n=V.handler||V.src;V.callOnce&&Fo(V);V=f.call(n,D)}return V};
yN=function(V){V=V[i4E];return V instanceof rX?V:null};
hGu="__closure_events_fn_"+(Math.random()*1E9>>>0);p7p=function(V){if(typeof V==="function")return V;V[hGu]||(V[hGu]=function(D){return V.handleEvent(D)});
return V[hGu]};_.jT=function(){_.cq.call(this);this.eventTargetListeners_=new rX(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.fg(_.jT,_.cq);_.jT.prototype[X7Y]=!0;_.P=_.jT.prototype;_.P.setParentEventTarget=function(V){this.parentEventTarget_=V};
_.P.addEventListener=function(V,D,f,n){_.kt(this,V,D,f,n)};
_.P.removeEventListener=function(V,D,f,n){_.ZU(this,V,D,f,n)};
_.P.dispatchEvent=function(V){var D,f=this.parentEventTarget_;if(f)for(D=[];f;f=f.parentEventTarget_)D.push(f);f=this.actualEventTarget_;var n=V.type||V;if(typeof V==="string")V=new _.TG(V,f);else if(V instanceof _.TG)V.target=V.target||f;else{var t=V;V=new _.TG(n,f);_.sB.extend(V,t)}t=!0;var J;if(D)for(J=D.length-1;!V.propagationStopped_&&J>=0;J--){var H=V.currentTarget=D[J];t=UeV(H,n,!0,V)&&t}V.propagationStopped_||(H=V.currentTarget=f,t=UeV(H,n,!0,V)&&t,V.propagationStopped_||(t=UeV(H,n,!1,V)&&
t));if(D)for(J=0;!V.propagationStopped_&&J<D.length;J++)H=V.currentTarget=D[J],t=UeV(H,n,!1,V)&&t;return t};
_.P.disposeInternal=function(){_.jT.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.P.listen=function(V,D,f,n){return this.eventTargetListeners_.add(String(V),D,!1,f,n)};
_.P.listenOnce=function(V,D,f,n){return this.eventTargetListeners_.add(String(V),D,!0,f,n)};
_.P.unlisten=function(V,D,f,n){return this.eventTargetListeners_.remove(String(V),D,f,n)};
_.P.removeAllListeners=function(V){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(V):0};
var UeV=function(V,D,f,n){D=V.eventTargetListeners_.listeners[String(D)];if(!D)return!0;D=D.concat();for(var t=!0,J=0;J<D.length;++J){var H=D[J];if(H&&!H.removed&&H.capture==f){var Q=H.listener,T=H.handler||H.src;H.callOnce&&$eE(V.eventTargetListeners_,H);t=Q.call(T,n)!==!1&&t}}return t&&!n.defaultPrevented};
_.jT.prototype.getListener=function(V,D,f,n){return this.eventTargetListeners_.getListener(String(V),D,f,n)};
_.jT.prototype.hasListener=function(V,D){return this.eventTargetListeners_.hasListener(V!==void 0?String(V):void 0,D)};var lG=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(V){return V&&AsyncContext.Snapshot.wrap(V)}:function(V){return V};var VoY=function(V,D){this.create_=V;this.reset_=D;this.occupants_=0;this.JSC$7847_head_=null};
VoY.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var V=this.JSC$7847_head_;this.JSC$7847_head_=V.next;V.next=null}else V=this.create_();return V};
VoY.prototype.put=function(V){this.reset_(V);this.occupants_<100&&(this.occupants_++,V.next=this.JSC$7847_head_,this.JSC$7847_head_=V)};var D8p=function(){this.workTail_=this.workHead_=null};
D8p.prototype.add=function(V,D){var f=IC9.get();f.set(V,D);this.workTail_?this.workTail_.next=f:this.workHead_=f;this.workTail_=f};
D8p.prototype.remove=function(){var V=null;this.workHead_&&(V=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),V.next=null);return V};
var IC9=new VoY(function(){return new feU},function(V){return V.reset()}),feU=function(){this.next=this.scope=this.fn=null};
feU.prototype.set=function(V,D){this.fn=V;this.scope=D;this.next=null};
feU.prototype.reset=function(){this.next=this.scope=this.fn=null};var nxL,OJF,LHZ,toH;OJF=!1;LHZ=new D8p;_.GG=function(V,D){nxL||toH();OJF||(nxL(),OJF=!0);LHZ.add(V,D)};
toH=function(){var V=Promise.resolve(void 0);nxL=function(){V.then(xNx)}};var Pvl=function(V){V.prototype.$goog_Thenable=!0},oxF=function(V){if(!V)return!1;
try{return!!V.$goog_Thenable}catch(D){return!1}};var JLu,rLu,Hco,Q3F,TQl,bcY,j3P,eDU,vx6,FMu,GBL;_.Qf=function(V,D){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(V!=_.Kp)try{var f=this;V.call(D,function(n){f.resolve_(2,n)},function(n){f.resolve_(3,n)})}catch(n){this.resolve_(3,n)}};
JLu=function(){this.next=this.context=this.JSC$7858_onRejected=this.JSC$7858_onFulfilled=this.child=null;this.always=!1};
JLu.prototype.reset=function(){this.context=this.JSC$7858_onRejected=this.JSC$7858_onFulfilled=this.child=null;this.always=!1};
rLu=new VoY(function(){return new JLu},function(V){V.reset()});
Hco=function(V,D,f){var n=rLu.get();n.JSC$7858_onFulfilled=V;n.JSC$7858_onRejected=D;n.context=f;return n};
_.Qv=function(V){if(V instanceof _.Qf)return V;var D=new _.Qf(_.Kp);D.resolve_(2,V);return D};
_.Br=function(V){return new _.Qf(function(D,f){f(V)})};
Q3F=function(V,D,f){wSE(V,D,f,null)||_.GG(_.lC(D,V))};
_.eT=function(V){return new _.Qf(function(D,f){var n=V.length,t=[];if(n)for(var J=function(y,Z){n--;t[y]=Z;n==0&&D(t)},H=function(y){f(y)},Q,T=0;T<V.length;T++)Q=V[T],Q3F(Q,_.lC(J,T),H);
else D(t)})};
TQl=function(V){return new _.Qf(function(D){var f=V.length,n=[];if(f)for(var t=function(Q,T,y){f--;n[Q]=T?{fulfilled:!0,value:y}:{fulfilled:!1,reason:y};f==0&&D(n)},J,H=0;H<V.length;H++)J=V[H],Q3F(J,_.lC(t,H,!0),_.lC(t,H,!1));
else D(n)})};
bcY=function(V){return new _.Qf(function(D,f){var n=V.length,t=[];if(n)for(var J=function(y){D(y)},H=function(y,Z){n--;
t[y]=Z;n==0&&f(t)},Q,T=0;T<V.length;T++)Q=V[T],Q3F(Q,J,_.lC(H,T));
else D(void 0)})};
_.Sl=function(){var V,D,f=new _.Qf(function(n,t){V=n;D=t});
return new KMu(f,V,D)};
_.Qf.prototype.then=function(V,D,f){return yLF(this,lG(typeof V==="function"?V:null),lG(typeof D==="function"?D:null),f)};
Pvl(_.Qf);j3P=function(V,D,f,n){ZcP(V,Hco(D||_.Kp,f||null,n))};
_.cT=function(V,D){D=lG(D);D=Hco(D,D);D.always=!0;ZcP(V,D);return V};
_.Qf.prototype.finally=function(V){var D=this;V=lG(V);return new Promise(function(f,n){j3P(D,function(t){V();f(t)},function(t){V();
n(t)})})};
_.Qf.prototype.thenCatch=function(V,D){return yLF(this,null,lG(V),D)};
_.Qf.prototype.catch=_.Qf.prototype.thenCatch;_.Qf.prototype.cancel=function(V){if(this.state_==0){var D=new _.Sb(V);_.GG(function(){leY(this,D)},this)}};
var leY=function(V,D){if(V.state_==0)if(V.parent_){var f=V.parent_;if(f.callbackEntries_){for(var n=0,t=null,J=null,H=f.callbackEntries_;H&&(H.always||(n++,H.child==V&&(t=H),!(t&&n>1)));H=H.next)t||(J=H);t&&(f.state_==0&&n==1?leY(f,D):(J?(n=J,n.next==f.callbackEntriesTail_&&(f.callbackEntriesTail_=n),n.next=n.next.next):G6p(f),eDU(f,t,3,D)))}V.parent_=null}else V.resolve_(3,D)},ZcP=function(V,D){V.callbackEntries_||V.state_!=2&&V.state_!=3||cLL(V);
V.callbackEntriesTail_?V.callbackEntriesTail_.next=D:V.callbackEntries_=D;V.callbackEntriesTail_=D},yLF=function(V,D,f,n){var t=Hco(null,null,null);
t.child=new _.Qf(function(J,H){t.JSC$7858_onFulfilled=D?function(Q){try{var T=D.call(n,Q);J(T)}catch(y){H(y)}}:J;
t.JSC$7858_onRejected=f?function(Q){try{var T=f.call(n,Q);T===void 0&&Q instanceof _.Sb?H(Q):J(T)}catch(y){H(y)}}:H});
t.child.parent_=V;ZcP(V,t);return t.child};
_.Qf.prototype.unblockAndFulfill_=function(V){this.state_=0;this.resolve_(2,V)};
_.Qf.prototype.unblockAndReject_=function(V){this.state_=0;this.resolve_(3,V)};
_.Qf.prototype.resolve_=function(V,D){this.state_==0&&(this===D&&(V=3,D=new TypeError("Ca")),this.state_=1,wSE(D,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=D,this.state_=V,this.parent_=null,cLL(this),V!=3||D instanceof _.Sb||FMu(this,D)))};
var wSE=function(V,D,f,n){if(V instanceof _.Qf)return j3P(V,D,f,n),!0;if(oxF(V))return V.then(D,f,n),!0;if(_.VV(V))try{var t=V.then;if(typeof t==="function")return gxo(V,t,D,f,n),!0}catch(J){return f.call(n,J),!0}return!1},gxo=function(V,D,f,n,t){var J=!1,H=function(T){J||(J=!0,f.call(t,T))},Q=function(T){J||(J=!0,n.call(t,T))};
try{D.call(V,H,Q)}catch(T){Q(T)}},cLL=function(V){V.executing_||(V.executing_=!0,_.GG(V.executeCallbacks_,V))},G6p=function(V){var D=null;
V.callbackEntries_&&(D=V.callbackEntries_,V.callbackEntries_=D.next,D.next=null);V.callbackEntries_||(V.callbackEntriesTail_=null);return D};
_.Qf.prototype.executeCallbacks_=function(){for(var V;V=G6p(this);)eDU(this,V,this.state_,this.result_);this.executing_=!1};
eDU=function(V,D,f,n){if(f==3&&D.JSC$7858_onRejected&&!D.always)for(;V&&V.hadUnhandledRejection_;V=V.parent_)V.hadUnhandledRejection_=!1;if(D.child)D.child.parent_=null,vx6(D,f,n);else try{D.always?D.JSC$7858_onFulfilled.call(D.context):vx6(D,f,n)}catch(t){GBL.call(null,t)}rLu.put(D)};
vx6=function(V,D,f){D==2?V.JSC$7858_onFulfilled.call(V.context,f):V.JSC$7858_onRejected&&V.JSC$7858_onRejected.call(V.context,f)};
FMu=function(V,D){V.hadUnhandledRejection_=!0;_.GG(function(){V.hadUnhandledRejection_&&GBL.call(null,D)})};
GBL=nx;_.Sb=function(V){_.VY.call(this,V)};
_.fg(_.Sb,_.VY);_.Sb.prototype.name="cancel";var KMu=function(V,D,f){this.promise=V;this.resolve=D;this.reject=f};var F6;_.Dk=function(V,D){_.jT.call(this);this.JSC$7870_interval_=V||1;this.timerObject_=D||_.fx;this.boundTick_=(0,_.F1)(this.tick_,this);this.last_=_.Vd()};
_.fg(_.Dk,_.jT);_.P=_.Dk.prototype;_.P.enabled=!1;_.P.JSC$7872_timer_=null;_.P.setInterval=function(V){this.JSC$7870_interval_=V;this.JSC$7872_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7872_timer_&&this.stop()};
_.P.tick_=function(){if(this.enabled){var V=_.Vd()-this.last_;V>0&&V<this.JSC$7870_interval_*.8?this.JSC$7872_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7870_interval_-V):(this.JSC$7872_timer_&&(this.timerObject_.clearTimeout(this.JSC$7872_timer_),this.JSC$7872_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.P.start=function(){this.enabled=!0;this.JSC$7872_timer_||(this.JSC$7872_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7870_interval_),this.last_=_.Vd())};
_.P.stop=function(){this.enabled=!1;this.JSC$7872_timer_&&(this.timerObject_.clearTimeout(this.JSC$7872_timer_),this.JSC$7872_timer_=null)};
_.P.disposeInternal=function(){_.Dk.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
F6=function(V,D,f){if(typeof V==="function")f&&(V=(0,_.F1)(V,f));else if(V&&typeof V.handleEvent=="function")V=(0,_.F1)(V.handleEvent,V);else throw Error("Da");return Number(D)>2147483647?-1:_.fx.setTimeout(V,D||0)};
_.k6u=function(V){var D=null;return(new _.Qf(function(f,n){D=F6(function(){f(void 0)},V);
D==-1&&n(Error("Ea"))})).thenCatch(function(f){_.fx.clearTimeout(D);
throw f;})};var Qh=function(V){_.cq.call(this);this.streamzLogger=V;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7876_flushTimer=new _.Dk(this.flushInterval);this.JSC$7876_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.wX(this,this.JSC$7876_flushTimer)};
_.v(Qh,_.cq);Qh.prototype.sendIsolatedPayload=function(V){this.shouldSendIsolatedPayload=V;this.invocationLimit=1};
var s3o=function(V){V.JSC$7876_flushTimer.enabled||V.JSC$7876_flushTimer.start();V.invocationCount++;V.invocationCount>=V.invocationLimit&&V.snapshotAndFlush()};
Qh.prototype.snapshotAndFlush=function(){var V=this.metricMap.values();V=[].concat(_.sz(V)).filter(function(D){return D.cellMap.size});
V.length&&this.streamzLogger.flush(V,this.shouldSendIsolatedPayload);BQu(V);this.invocationCount=0;this.JSC$7876_flushTimer.enabled&&this.JSC$7876_flushTimer.stop()};
Qh.prototype.addNewCounter=function(V){var D=_.gQ.apply(1,arguments);this.metricMap.has(V)||this.metricMap.set(V,new CFH(V,D))};
Qh.prototype.addNewEventMetric=function(V){var D=_.gQ.apply(1,arguments);this.metricMap.has(V)||this.metricMap.set(V,new qWE(V,D))};
var d8r=function(V,D){return V.disabledMetrics.has(D)?void 0:V.metricMap.get(D)};
Qh.prototype.JSC$7876_incrementCounter=function(V){this.JSC$7876_incrementCounterBy(V,1,_.gQ.apply(1,arguments))};
Qh.prototype.JSC$7876_incrementCounterBy=function(V,D){var f=_.gQ.apply(2,arguments),n=d8r(this,V);n&&n instanceof CFH&&(n.JSC$7815_incrementCounterBy(D,f),s3o(this))};
Qh.prototype.record=function(V,D){var f=_.gQ.apply(2,arguments),n=d8r(this,V);n&&n instanceof qWE&&(n.record(D,f),s3o(this))};
var BQu=function(V){for(var D=0;D<V.length;D++)V[D].clear()};_.gH=function(V,D,f){f=f===void 0?{}:f;D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=V;this.metadata=f;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.gH,Error);_.gH.prototype.toString=function(){var V="RpcError("+(hOx(this.code)||String(this.code))+")";this.message&&(V+=": "+this.message);return V};_.utp=_.fx.JSON.parse;_.vT=_.fx.JSON.stringify;_.ko=_.fx.JSON.parse;_.NQr=function(V){switch(V){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 m8o=function(V){switch(V){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var zDH,RDV=function(){};
_.fg(RDV,_.UN9);RDV.prototype.createInstance=function(){return new XMLHttpRequest};
zDH=new RDV;_.kq=function(V){_.jT.call(this);this.headers=new Map;this.JSC$7885_xmlHttpFactory_=V||null;this.JSC$7885_active_=!1;this.JSC$7885_xhr_=null;this.JSC$7885_lastUri_="";this.JSC$7885_lastErrorCode_=0;this.JSC$7885_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7885_timeoutId_=null;this.responseType_="";this.JSC$7885_withCredentials_=!1};
_.fg(_.kq,_.jT);var Cv6=/^https?$/i,qeL=["POST","PUT"],XSF=[],Jin=function(V,D,f,n,t,J,H){var Q=new _.kq;XSF.push(Q);D&&Q.listen("complete",D);Q.listenOnce("ready",Q.cleanupSend_);J&&(Q.timeoutInterval_=Math.max(0,J));H&&(Q.JSC$7885_withCredentials_=H);Q.send(V,f,n,t)};
_.kq.prototype.cleanupSend_=function(){this.dispose();_.IY(XSF,this)};
_.kq.prototype.send=function(V,D,f,n){if(this.JSC$7885_xhr_)throw Error("Fa`"+this.JSC$7885_lastUri_+"`"+V);D=D?D.toUpperCase():"GET";this.JSC$7885_lastUri_=V;this.JSC$7885_lastError_="";this.JSC$7885_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7885_active_=!0;this.JSC$7885_xhr_=this.createXhr();this.JSC$7885_xhr_.onreadystatechange=lG((0,_.F1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7885_xhr_.open(D,String(V),!0),this.inOpen_=!1}catch(H){Exr(this,H);return}V=f||"";f=new Map(this.headers);
if(n)if(Object.getPrototypeOf(n)===Object.prototype)for(var t in n)f.set(t,n[t]);else if(typeof n.keys==="function"&&typeof n.get==="function"){t=_.r(n.keys());for(var J=t.next();!J.done;J=t.next())J=J.value,f.set(J,n.get(J))}else throw Error("Ga`"+String(n));n=Array.from(f.keys()).find(function(H){return"content-type"==H.toLowerCase()});
t=_.fx.FormData&&V instanceof _.fx.FormData;!_.i3(qeL,D)||n||t||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");D=_.r(f);for(n=D.next();!n.done;n=D.next())f=_.r(n.value),n=f.next().value,f=f.next().value,this.JSC$7885_xhr_.setRequestHeader(n,f);this.responseType_&&(this.JSC$7885_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7885_xhr_&&this.JSC$7885_xhr_.withCredentials!==this.JSC$7885_withCredentials_&&(this.JSC$7885_xhr_.withCredentials=this.JSC$7885_withCredentials_);
try{this.JSC$7885_timeoutId_&&(clearTimeout(this.JSC$7885_timeoutId_),this.JSC$7885_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7885_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7885_xhr_.send(V),this.inSend_=!1}catch(H){Exr(this,H)}};
_.kq.prototype.createXhr=function(){return this.JSC$7885_xmlHttpFactory_?this.JSC$7885_xmlHttpFactory_.createInstance():zDH.createInstance()};
_.kq.prototype.timeout_=function(){typeof U5n!="undefined"&&this.JSC$7885_xhr_&&(this.JSC$7885_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7885_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Exr=function(V,D){V.JSC$7885_active_=!1;V.JSC$7885_xhr_&&(V.inAbort_=!0,V.JSC$7885_xhr_.abort(),V.inAbort_=!1);V.JSC$7885_lastError_=D;V.JSC$7885_lastErrorCode_=5;ALl(V);aeF(V)},ALl=function(V){V.errorDispatched_||(V.errorDispatched_=!0,V.dispatchEvent("complete"),V.dispatchEvent("error"))};
_.kq.prototype.abort=function(V){this.JSC$7885_xhr_&&this.JSC$7885_active_&&(this.JSC$7885_active_=!1,this.inAbort_=!0,this.JSC$7885_xhr_.abort(),this.inAbort_=!1,this.JSC$7885_lastErrorCode_=V||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),aeF(this))};
_.kq.prototype.disposeInternal=function(){this.JSC$7885_xhr_&&(this.JSC$7885_active_&&(this.JSC$7885_active_=!1,this.inAbort_=!0,this.JSC$7885_xhr_.abort(),this.inAbort_=!1),aeF(this,!0));_.kq.superClass_.disposeInternal.call(this)};
_.kq.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Yer(this);else this.onReadyStateChangeEntryPoint_()};
_.kq.prototype.onReadyStateChangeEntryPoint_=function(){Yer(this)};
var Yer=function(V){if(V.JSC$7885_active_&&typeof U5n!="undefined")if(V.inSend_&&_.s7(V)==4)setTimeout(V.onReadyStateChange_.bind(V),0);else if(V.dispatchEvent("readystatechange"),V.isComplete()){V.JSC$7885_active_=!1;try{if(V.isSuccess())V.dispatchEvent("complete"),V.dispatchEvent("success");else{V.JSC$7885_lastErrorCode_=6;try{var D=_.s7(V)>2?V.JSC$7885_xhr_.statusText:""}catch(f){D=""}V.JSC$7885_lastError_=D+" ["+V.getStatus()+"]";ALl(V)}}finally{aeF(V)}}},aeF=function(V,D){if(V.JSC$7885_xhr_){V.JSC$7885_timeoutId_&&
(clearTimeout(V.JSC$7885_timeoutId_),V.JSC$7885_timeoutId_=null);
var f=V.JSC$7885_xhr_;V.JSC$7885_xhr_=null;D||V.dispatchEvent("ready");try{f.onreadystatechange=null}catch(n){}}};
_.kq.prototype.isActive=function(){return!!this.JSC$7885_xhr_};
_.kq.prototype.isComplete=function(){return _.s7(this)==4};
_.kq.prototype.isSuccess=function(){var V=this.getStatus(),D;if(!(D=m8o(V))){if(V=V===0)V=iol(String(this.JSC$7885_lastUri_)),V=!Cv6.test(V);D=V}return D};
_.s7=function(V){return V.JSC$7885_xhr_?V.JSC$7885_xhr_.readyState:0};
_.P=_.kq.prototype;_.P.getStatus=function(){try{return _.s7(this)>2?this.JSC$7885_xhr_.status:-1}catch(V){return-1}};
_.P.getResponseText=function(){try{return this.JSC$7885_xhr_?this.JSC$7885_xhr_.responseText:""}catch(V){return""}};
_.P.getResponse=function(){try{if(!this.JSC$7885_xhr_)return null;if("response"in this.JSC$7885_xhr_)return this.JSC$7885_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7885_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7885_xhr_)return this.JSC$7885_xhr_.mozResponseArrayBuffer}return null}catch(V){return null}};
_.P.getAllResponseHeaders=function(){return this.JSC$7885_xhr_&&_.s7(this)>=2?this.JSC$7885_xhr_.getAllResponseHeaders()||"":""};
_.P.getLastError=function(){return typeof this.JSC$7885_lastError_==="string"?this.JSC$7885_lastError_:String(this.JSC$7885_lastError_)};var nKU=function(){};
nKU.prototype.send=function(V,D,f){D=D===void 0?function(){}:D;
f=f===void 0?function(){}:f;
Jin(V.url,function(n){n=n.target;n.isSuccess()?D(n.getResponseText()):f(n.getStatus())},V.requestType,V.body,V.requestHeaders,V.timeoutMillis,V.withCredentials)};
nKU.prototype.getTransmissionType=function(){return 1};var $86=function(V,D){this.zhy=V;this.event=D;this.startTime=Ts()},HGx;
$86.prototype.done=function(){this.zhy.fW(this.event,Ts()-this.startTime)};
var BT=function(){UO.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.v(BT,UO);_.dH=function(V,D,f){var n=Ts();D=D();V.fW(f,Ts()-n);return D};
HGx=function(){BT.apply(this,arguments)};
_.v(HGx,BT);_.P=HGx.prototype;_.P.jf6=function(){};
_.P.xk=function(){};
_.P.fW=function(){};
_.P.logError=function(){};
_.P.q2=function(){};
_.P.pC7=function(){};
_.P.bCd=function(){};
_.P.iCC=function(){};
var icP=function(V){BT.call(this);var D=this;this.h0=V;this.TEST_ONLY={scx:function(){return D.h0},
getExperimentIds:function(){return D.h0.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void D.h0.dispose()})};
_.v(icP,BT);_.P=icP.prototype;_.P.update=function(V){this.h0.dispose();this.h0=V};
_.P.xk=function(V){this.h0.xk(V)};
_.P.fW=function(V,D){this.h0.fW(V,D)};
_.P.logError=function(V){this.h0.logError(V)};
_.P.q2=function(){this.h0.q2()};
_.P.pC7=function(V){this.h0.pC7(V)};
_.P.bCd=function(V){this.h0.bCd(V)};
_.P.iCC=function(V){this.h0.iCC(V)};
_.P.jf6=function(V){this.h0.jf6(V)};
var SeF=function(V,D){_.cq.call(this);var f=this;this.callback=V;this.dB5=D;this.yuW=-D;this.addOnDisposeCallback(function(){return void clearTimeout(f.timer)})};
_.v(SeF,_.cq);var WMH=function(V){if(V.timer===void 0){var D=Math.max(0,V.yuW+V.dB5-Ts());V.timer=setTimeout(function(){try{V.callback()}finally{V.yuW=Ts(),V.timer=void 0}},D)}},pSY=function(V,D){BT.call(this);
this.metrics=V;this.w7=D};
_.v(pSY,BT);_.P=pSY.prototype;_.P.jf6=function(V){this.metrics.anE.record(V,this.w7)};
_.P.xk=function(V){this.metrics.eventCount.increment(V,this.w7)};
_.P.fW=function(V,D){this.metrics.m3E.record(D,V,this.w7)};
_.P.logError=function(V){this.metrics.errorCount.increment(V,this.w7)};
_.P.pC7=function(V){this.metrics.glu.increment(V,this.w7)};
_.P.bCd=function(V){this.metrics.u6J.increment(V,this.w7)};
_.P.iCC=function(V){this.metrics.vlZ.increment(V,this.w7)};
var QPX=function(V,D){D=D===void 0?[]:D;var f={w7:V.w7||"_",wQC:V.wQC||[],m48:V.m48|0,destinationUrl:V.destinationUrl,disableClearcutCredentialBinding:V.disableClearcutCredentialBinding,atB:V.atB||function(){},
o8j:V.o8j||function(J,H){return rN3(J,H,f.atB,f.destinationUrl,f.disableClearcutCredentialBinding)}},n=f.o8j("50",f.wQC.concat(D));
pSY.call(this,{anE:new BRL(n),errorCount:new mol(n),eventCount:new uVP(n),m3E:new NRF(n),hAE:new doU(n),glu:new zvp(n),u6J:new RvH(n),vlZ:new CXF(n)},f.w7);var t=this;this.TEST_ONLY={getExperimentIds:function(){return t.options.wQC.concat(t.nwF).sort(function(J,H){return J-H})}};
this.options=f;this.service=n;this.jYO=!V.o8j;this.flushDebouncer=new SeF(function(){return void t.service.snapshotAndFlush()},f.m48);
this.addOnDisposeCallback(function(){t.flushDebouncer.dispose();t.jYO&&t.service.dispose()});
(this.nwF=D.slice()).sort(_.tr)};
_.v(QPX,pSY);QPX.prototype.q2=function(){WMH(this.flushDebouncer)};var nQd=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(nQd,_.Xm);_.txY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(_.txY,_.Xm);var Im=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,0,Im.messageId)};
_.v(Im,_.Xm);var LMu=_.UW(Im);Im.messageId="bfkj";var wJ3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(wJ3,_.Xm);var qRZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(qRZ,_.Xm);var Ieu=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Ieu,_.Xm);var OcU=_.V2(Ieu);_.wU=function(){var V=this;this.promise=new Promise(function(D,f){V.resolve=D;V.reject=f})};_.uG=function(V){_.cq.call(this);var D=this;this.zM1=Math.floor(Math.random()*200);this.uIS=new Ieu;if("challenge"in V&&LMu(V.challenge)){var f=_.df(V.challenge,4,void 0,Ar);var n=_.df(V.challenge,5,void 0,Ar);_.df(V.challenge,7,void 0,Ar)&&(this.uIS=OcU(_.df(V.challenge,7,void 0,Ar)))}else f=V.program,n=V.globalName;this.addOnDisposeCallback(function(){var k,d,z;return _.w(function(C){if(C.nextAddress==1)return _.b(C,D.yvi,2);k=C.yieldResult;d=k.gM1;(z=d)==null||z();_.yz(C)})});
this.vD=Tcc(V.yZS||{},this.uIS);_.wX(this,this.vD);var t=new _.wU;this.yvi=t.promise;this.vD.xk("t");var J=this.vD.share(),H=new $86(J,"t"),Q=function(k,d,z,C){if(!D.vD.isDisposed()){var A="k";d?A="h":z&&(A="u");A!=="k"?C!==0&&(D.vD.xk(A),D.vD.fW(A,k)):D.zM1<=0?(D.vD.xk(A),D.vD.fW(A,k),D.zM1=Math.floor(Math.random()*200)):D.zM1--}},T=function(k,d,z,C){Promise.resolve().then(function(){H.done();
J.q2();J.dispose();t.resolve({cAN:k,gM1:d,eMF:z,hru:C})})};
if(!_.fx[n])throw this.vD.logError(25),Error("Ha");if(!_.fx[n].a)throw this.vD.logError(26),Error("Ia");try{var y=_.fx[n].a;n=[];for(var Z=[],l=XqF(this.uIS),G=0;G<l.length;G++)n.push(l[G]),Z.push(1);var F=E4L(this.uIS);for(l=0;l<F.length;l++)n.push(F[l]),Z.push(2);this.lN1=_.r(y(f,T,!0,V.bZE,Q,[n,Z],_.df(this.uIS,5))).next().value;this.dLZ=t.promise.then(function(){})}catch(k){throw this.vD.logError(28),k;
}};
_.v(_.uG,_.cq);_.uG.prototype.snapshot=function(V){if(this.isDisposed())throw Error("Ja");this.vD.xk("n");var D=this.vD.share();return this.yvi.then(function(f){var n=f.cAN;return new Promise(function(t){var J=new $86(D,"n");n(function(H){J.done();D.jf6(H.length);D.q2();D.dispose();t(H)},[V.yv,
V.d56,V.kSi,V.nnq])})})};
_.uG.prototype.w3d=function(V){this.yvi.then(function(D){var f;(f=D.eMF)==null||f(V)})};
_.uG.prototype.dxd=function(V,D){return this.yvi.then(function(f){var n;return(n=f.hru)==null?void 0:n(V,D,!1)})};
_.uG.prototype.pL3=function(){return this.vD.share()};var x8V=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(x8V,_.Xm);var Ved=_.UW(x8V);var Mol=function(){this.glb={};this.pj8=null},hDF=function(){Mol.instance||(Mol.instance=new Mol);
return Mol.instance},V5F=function(V,D){return U8H(V,_.bW(D,nQd,1,Ar),_.bW(D,_.txY,2,Ar),_.df(D,3,void 0,Ar))},U8H=function(V,D,f,n){if(!D&&!f)return Promise.resolve();
if(!n)return jPY(D,f);var t;(t=V.glb)[n]||(t[n]=new Promise(function(J,H){jPY(D,f).then(function(){V.pj8=n;J()},function(Q){delete V.glb[n];
H(Q)})}));
return V.glb[n]};var D9u=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(D9u,_.Xm);var fWl=function(V,D){return _.O1(V,1,D)},njF=function(V,D){return _.O1(V,2,D)};var Nm=function(V){_.cq.call(this);var D=this;this.options=V;this.jdj=new _.wU;this.dLZ=this.jdj.promise;this.vqB=new _.wU;this.h1c=1;this.lx3=new _.wU;this.zyi=[];this.noC=V.noC||function(){};
this.r41=new icP(Tcc(V.yZS||{}));t5L(this,V.pV,V.eci,V.qvj,V.tdx,Object.assign({},PKp,V.dSB||{}));this.addOnDisposeCallback(function(){return void oju(D)})};
_.v(Nm,_.cq);Nm.prototype.snapshot=function(V){var D=this;return _.w(function(f){switch(f.nextAddress){case 1:if(D.isDisposed())throw Error("Ja");if(D.pW||D.i5b){f.jumpTo(2);break}return _.b(f,D.vqB.promise,2);case 2:if(!D.pW){f.jumpTo(4);break}return _.b(f,D.pW.snapshot(V),5);case 5:return f.return(f.yieldResult);case 4:throw D.i5b;}})};
var Jar=function(V){var D;return _.w(function(f){if(V.isDisposed())throw Error("Ja");(D=V.cY)!=null&&(D.endTimeMs=0,D.resolver(1));return _.b(f,V.lx3.promise,0)})},oju=function(V){V.i5b=Error("La");
V.vqB.resolve();Aln(V.jdj.promise);V.jdj.reject(Error("La"));V.r41.dispose();Promise.all(V.zyi).then(function(){var f;return _.w(function(n){(f=V.pW)==null||f.dispose();V.pW=void 0;_.yz(n)})});
V.zyi=[];var D;(D=V.cY)!=null&&(D.endTimeMs=0,D.resolver(1));Aln(V.lx3.promise);V.lx3.reject(Error("La"))};
Nm.prototype.w3d=function(V){var D,f;(D=this.pW)==null||(f=D.w3d)==null||f.call(D,V)};
Nm.prototype.dxd=function(V,D){var f,n,t;return(t=(f=this.pW)==null?void 0:(n=f.dxd)==null?void 0:n.call(f,V,D))!=null?t:Promise.resolve()};
var raE=function(V,D){var f=V.noC;V.noC=function(){f();D()}},HWo=function(V,D){V.isDisposed()||(V.pW=D,V.r41.update(D.pL3()),V.vqB.resolve(),V.jdj.resolve(void 0),V.noC())};
Nm.prototype.handleError=function(V){if(!this.isDisposed()){this.i5b=V;this.vqB.resolve();var D,f;(f=(D=this.options).lru)==null||f.call(D,V)}};
var w6o=function(V,D){D&&(Promise.all(V.zyi).then(function(){return void D.dispose()}),V.zyi=[])},mj=function(V,D){V.h1c=D;
var f,n;(n=(f=V.options).xXj)==null||n.call(f,D)},QXY=function(V){V.isDisposed()||(V.lx3.resolve(),V.lx3=new _.wU)},t5L=function(V,D,f,n,t,J){n=n===void 0?hDF():n;
t=t===void 0?Promise.resolve(void 0):t;var H,Q,T,y,Z,l,G,F,k,d,z,C;_.w(function(A){switch(A.nextAddress){case 1:return _.b(A,0,3);case 3:Q=null;if(!H){A.jumpTo(6);break}mj(V,7);_.wx(A,7);return _.b(A,lW(H.snapshot({}),J.ydJ,function(){return Promise.resolve("E:CTO")}),9);
case 9:Q=A.yieldResult;_.YJ(A,6);break;case 7:_.KW(A),Q="E:UCE";case 6:T=void 0,y=H?J.kYi:J.ooA,Z=new Jl(y,J.yTu,J.j8u,J.emJ),l=1;case 10:if(!(l<=J.maxAttempts)){A.jumpTo(12);break}if(l===1){A.jumpTo(13);break}mj(V,0);V.cY=new Txo(Z.getValue(),J.yPi,J.pk5);return _.b(A,V.cY.promise,14);case 14:G=A.yieldResult,V.cY=void 0,G===1?(l=1,Z.reset()):grl(Z);case 13:_.wx(A,15);F=void 0;if(f){F=f;A.jumpTo(17);break}mj(V,5);k=n.pj8;return _.b(A,lW(bWH(D,k,Q),J.yOq,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:F=A.yieldResult;case 17:return mj(V,3),_.b(A,lW(V5F(n,F),J.bvi,function(){return Promise.reject(Error("Na"))}),19);
case 19:return mj(V,8),_.b(A,t,20);case 20:return d=new _.uG({challenge:F,yZS:V.options.yZS,bZE:V.options.bZE}),_.b(A,lW(d.dLZ,J.e5j,function(){return Promise.reject(Error("Oa"))}),21);
case 21:T=d;A.jumpTo(12);break;case 15:z=_.KW(A),V.handleError(z),QXY(V);case 11:l++;A.jumpTo(10);break;case 12:if(V.isDisposed()){A.jumpTo(5);break}T&&(f=void 0,w6o(V,H),H=T,HWo(V,T),QXY(V));mj(V,2);V.cY=new Txo(J.vLJ,J.yPi,J.pk5);return _.b(A,V.cY.promise,22);case 22:V.cY=void 0;if(V.isDisposed()){A.jumpTo(5);break}A.jumpTo(3);break;case 5:(C=H)==null||C.dispose(),_.yz(A)}})};
Nm.prototype.pL3=function(){return this.r41.share()};
var PKp={vLJ:432E5,yPi:3E5,pk5:10,ydJ:1E4,yOq:3E4,bvi:3E4,e5j:6E4,ooA:1E3,kYi:6E4,yTu:6E5,j8u:.25,emJ:2,maxAttempts:10},Txo=function(V,D,f){var n=this;this.endTimeMs=Date.now()+V;this.promise=new Promise(function(J){n.resolver=J});
var t=function(){var J=n.endTimeMs-Date.now();J<=f?n.resolver(0):setTimeout(t,Math.min(J,D))};
t()};var Kap,EKY=(Kap=Math.imul)!=null?Kap:function(V,D){return V*D|0},Gs=[196,
200,224,18],zG=function(V,D,f){f=f===void 0?[]:f;this.maxItems=V;this.kq=D===void 0?0:D;this.sv=f},yaV=function(V){var D=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!D)return new zG(V);var f=D.split(",");if(f.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zG(V);D=f.slice(1);D.length===1&&D[0]===""&&(D=[]);f=Number(f[0]);return isNaN(f)||f<0||f>D.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zG(V)):new zG(V,f,D)};
zG.prototype.serialize=function(){return String(this.kq)+","+this.sv.join()};
zG.prototype.insert=function(V,D){var f=void 0;if(this.sv[this.kq]!==V){var n=this.sv.indexOf(V);n!==-1?(this.sv.splice(n,1),n<this.kq&&this.kq--,this.sv.splice(this.kq,0,V)):(f=this.sv[this.kq],this.sv[this.kq]=V)}this.kq=(this.kq+1)%this.maxItems;V=lJF("iU5q-!O9@$",this.serialize());f&&V&&D(f);return V};
var ZWY=function(V,D){this.kyJ=D;try{var f=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(n){f=!1}f&&(this.index=yaV(V))},jXl=function(V,D,f,n,t){var J=V.index?_.dH(V.kyJ,function(){return $qR(V.index,aJd(D),f,n,t)},"W"):"u";
V.kyJ.iCC(J)},lWo=function(V,D,f){var n=_.r(V.index?_.dH(V.kyJ,function(){return iGY(aJd(D),f)},"R"):["u"]),t=n.next().value;
n=n.next().value;V.kyJ.bCd(t);return n};var GOU={toString:function(V){var D=[],f=0;V-=-2147483648;D[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(V%52);for(V=Math.floor(V/52);V>0;)D[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(V%62),V=Math.floor(V/62);return D.join("")}};var Fal=function(V){V=eBo(V);for(var D=2654435769,f=2654435769,n=314159265,t=V.length,J=t,H=0,Q=function(){D-=f;D-=n;D^=n>>>13;f-=n;f-=D;f^=D<<8;n-=D;n-=f;n^=f>>>13;D-=f;D-=n;D^=n>>>12;f-=n;f-=D;f^=D<<16;n-=D;n-=f;n^=f>>>5;D-=f;D-=n;D^=n>>>3;f-=n;f-=D;f^=D<<10;n-=D;n-=f;n^=f>>>15};J>=12;J-=12,H+=12)D+=cao(V,H),f+=cao(V,H+4),n+=cao(V,H+8),Q();
n+=t;switch(J){case 11:n+=V[H+10]<<24;case 10:n+=V[H+9]<<16;case 9:n+=V[H+8]<<8;case 8:f+=V[H+7]<<24;case 7:f+=V[H+6]<<16;case 6:f+=V[H+5]<<8;case 5:f+=V[H+4];case 4:D+=V[H+3]<<24;case 3:D+=V[H+2]<<16;case 2:D+=V[H+1]<<8;case 1:D+=V[H]}Q();return GOU.toString(n)},eBo=function(V){for(var D=[],f=0;f<V.length;f++)D.push(V.charCodeAt(f));
return D},cao=function(V,D){return V[D]+(V[D+1]<<8)+(V[D+2]<<16)+(V[D+3]<<24)};var gjF,Ri=function(V){_.cq.call(this);this.gf=V;this.rmk=new _.wU;this[gjF]=this.dispose};
_.v(Ri,_.cq);var vju=function(V,D){var f=setTimeout(function(){V.rmk.resolve()},D);
V.addOnDisposeCallback(function(){return void clearTimeout(f)})};
Ri.prototype.j3C=function(V,D){var f=this.rJ(V);D==null||D(f);return _.dH(this.gf,function(){return _.V3(f,2)},this.p07)};
var kOL=function(V,D,f,n){return _.dH(V.gf,function(){return f?V.j3C(D,n):V.rJ(D,n)},V.v1i)};
gjF=Symbol.dispose;var sXu=function(V,D,f,n){Ri.call(this,V);this.ttE=D;this.ucK=f;this.v1i="m";this.p07="x";this.xB5=0;vju(this,n)};
_.v(sXu,Ri);sXu.prototype.rJ=function(V,D){var f=this;this.gf.xk(this.v1i);++this.xB5>=this.ucK&&this.rmk.resolve();var n=V();V=_.dH(this.gf,function(){return f.ttE(n)},"C");
if(V===void 0)throw new MM(17,"YNJ:Undefined");if(!(V instanceof Uint8Array))throw new MM(18,"ODM:Invalid");D==null||D(V);return V};
var BxE=function(V,D,f){Ri.call(this,V);this.ezE=D;this.v1i="f";this.p07="z";vju(this,f)};
_.v(BxE,Ri);BxE.prototype.rJ=function(){return this.ezE};
var d9o=function(V,D,f){Ri.call(this,V);this.oNL=D;this.v1i="w";this.p07="z";vju(this,f)};
_.v(d9o,Ri);d9o.prototype.rJ=function(){var V=this;return _.dH(this.gf,function(){return _.rP(V.oNL)},"d")};
d9o.prototype.j3C=function(){return this.oNL};
var uEu=function(V,D){Ri.call(this,V);this.error=D;this.v1i="e";this.p07="y"};
_.v(uEu,Ri);var Nx6=function(V,D){var f=(D(V.error.message)+":"+D(V.error.stack)).substring(0,2048);D=f.length+1;f=S0d(f);var n=new Uint8Array(4+f.length);n.set([42,D&127|128,D>>7,V.error.code]);n.set(f,4);return n};
uEu.prototype.rJ=function(){if(this.oUq)return this.oUq;this.oUq=Nx6(this,function(V){return"_"+Fal(V)});
return Nx6(this,function(V){return V})};
var m96=function(V,D,f){Ri.call(this,V);this.vw6=D;this.clientState=f;this.v1i="S";this.p07="q"};
_.v(m96,Ri);m96.prototype.rJ=function(){var V=Math.floor(Date.now()/1E3),D=[Math.random()*255,Math.random()*255],f=D.concat([this.vw6&255,this.clientState],[V>>24&255,V>>16&255,V>>8&255,V&255]);V=new Uint8Array(2+f.length);V[0]=34;V[1]=f.length;V.set(f,2);f=V.subarray(2);for(var n=D=D.length;n<f.length;++n)f[n]^=f[n%D];this.gf.pC7(this.clientState);return V};var zBo={vby:3E4,d4u:2E4},C8=function(V){_.cq.call(this);var D=this;this.lqB=new _.wU;this.sZj=0;this.a9=void 0;this.state=2;this.ku=V.ku;this.pV=V.pV;this.dSB=Object.assign({},zBo,V.dSB||{});this.uo=V.ku.pL3();var f;this.onError=(f=V.onError)!=null?f:function(){};
this.yID=V.yID||!1;if(RBU(V)){var n=this.ku;this.wAI=function(){return Jar(n).catch(function(H){H=D.reportError(new MM(D.pA?20:32,"TRG:Disposed",H));D.a9=H;var Q;(Q=D.pA)==null||Q.dispose();D.pA=void 0;D.lqB.reject(H)})};
raE(n,function(){return void CKE(D)});
n.h1c===2&&CKE(this)}else this.wAI=V.dXV,CKE(this);var t=this.uo.share();t.xk("o");var J=new $86(t,"o");this.lqB.promise.then(function(){J.done();t.q2();t.dispose()},function(){return void t.dispose()});
this.addOnDisposeCallback(function(){D.pA?(D.pA.dispose(),D.pA=void 0):D.a9?D.uo.q2():(D.a9=D.reportError(new MM(32,"TNP:Disposed")),D.uo.q2(),D.lqB.reject(D.a9))});
_.wX(this,this.uo)};
_.v(C8,_.cq);C8.prototype.v1j=function(){return this.lqB.promise};
var qzF=function(V,D){if(!(D instanceof MM))if(D instanceof _.gH){var f=Error(D.toString());f.stack=D.stack;D=new MM(11,"EBH:Error",f)}else D=new MM(12,"BSO:Unknown",D);return V.reportError(D)},CKE=function(V){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d;
return _.w(function(z){switch(z.nextAddress){case 1:D=void 0;V.sZj++;f=new _.wU;V.ku instanceof Nm&&V.ku.zyi.push(f.promise);if(!V.yID){z.jumpTo(2);break}n=new _.wU;setTimeout(function(){return void n.resolve()});
return _.b(z,n.promise,2);case 2:return t=V.uo.share(),_.wx(z,4,5),V.state=5,J={},H=[],_.b(z,lW(V.ku.snapshot({yv:J,kSi:H}),V.dSB.d4u,function(){return Promise.reject(new MM(15,"MDA:Timeout"))}),7);
case 7:Q=z.yieldResult;if(V.isDisposed())throw new MM(V.pA?20:32,"MDA:Disposed");T=H[0];V.state=6;return _.b(z,lW(X6l(V.pV,Q),V.dSB.vby,function(){return Promise.reject(new MM(10,"BWB:Timeout"))}),8);
case 8:y=z.yieldResult;if(V.isDisposed())throw new MM(V.pA?20:32,"BWB:Disposed");V.state=7;D=_.dH(t,function(){var A=EjH(V,y,f,T);A.rmk.promise.then(function(){return void V.wAI()});
return A},"i");
case 5:_.Qz(z);t.dispose();_.bK(z,6);break;case 4:Z=_.KW(z);(l=D)==null||l.dispose();if(!V.a9){G=qzF(V,Z);f.resolve();var C;if(C=V.ku instanceof Nm&&V.sZj<2)a:if(Z instanceof MM)C=Z.code!==32&&Z.code!==20&&Z.code!==10;else{if(Z instanceof _.gH)switch(Z.code){case 2:case 13:case 14:case 4:break;default:C=!1;break a}C=!0}if(C)return F=(1+Math.random()*.25)*(V.pA?6E4:1E3),k=setTimeout(function(){return void V.wAI()},F),V.addOnDisposeCallback(function(){return void clearTimeout(k)}),z.return();
V.a9=G}t.logError(V.pA?13:14);V.lqB.reject(V.a9);return z.return();case 6:V.state=8,V.sZj=0,(d=V.pA)==null||d.dispose(),V.pA=D,V.lqB.resolve(),_.yz(z)}})},EjH=function(V,D,f,n){var t=l09(D,2)*1E3;
if(t<=0)throw new MM(31,"TTM:Invalid");if(_.df(D,4))return new d9o(V.uo,_.df(D,4),t);if(!l09(D,3))return new BxE(V.uo,DcZ(_.Gl(D,1)),t);if(!n)throw new MM(4,"PMD:Undefined");n=n(DcZ(_.Gl(D,1)));if(!(n instanceof Function))throw new MM(16,"APF:Failed");V.fzK=Math.floor((Date.now()+t)/1E3);V=new sXu(V.uo,n,l09(D,3),t);V.addOnDisposeCallback(function(){return void f.resolve()});
return V};
C8.prototype.rJ=function(V){return Aap(this,Object.assign({},V),!1)};
C8.prototype.j3C=function(V){return Aap(this,Object.assign({},V),!0)};
C8.prototype.bwn=function(V){if(V>150)return!1;try{return this.cache=new ZWY(V,this.uo),!0}catch(D){return this.reportError(new MM(22,"GBJ:init",D)),!1}};
C8.prototype.reportError=function(V){this.uo.logError(V.code);this.onError(V);return V};
var aWP=function(V,D){D=D instanceof MM?D:new MM(5,"TVD:error",D);return V.reportError(D)},Aap=function(V,D,f){try{if(V.isDisposed())throw new MM(21,"BNT:disposed");
if(!V.pA&&V.a9)throw V.a9;var n,t;return(t=(n=YzL(V,D,f))!=null?n:$9V(V,D,f))!=null?t:iWY(V,D,f)}catch(J){if(!D.z0I)throw aWP(V,J);return Szl(V,f,J)}},YzL=function(V,D,f){var n;
return(n=V.pA)==null?void 0:kOL(n,function(){return Wau(V,D)},f,function(t){var J;
if(V.pA instanceof sXu&&((J=D.s9)==null?0:J.nAA))try{var H;(H=V.cache)==null||jXl(H,Wau(V,D),t,D.s9.x1J,V.fzK-120)}catch(Q){V.reportError(new MM(24,"ELX:write",Q))}})},$9V=function(V,D,f){var n;
if((n=D.s9)!=null&&n.uzc)try{var t,J=(t=V.cache)==null?void 0:lWo(t,Wau(V,D),D.s9.x1J);return J?f?_.dH(V.uo,function(){return _.V3(J,2)},"a"):J:void 0}catch(H){V.reportError(new MM(23,"RXO:read",H))}},iWY=function(V,D,f){var n={stack:[],
error:void 0,hasError:!1};try{if(!D.d6D)throw new MM(29,"SDF:notready");return kOL(PJ9(n,new m96(V.uo,0,V.state)),function(){return Wau(V,D)},f)}catch(t){n.error=t,n.hasError=!0}finally{oTY(n)}},Szl=function(V,D,f){var n={stack:[],
error:void 0,hasError:!1};try{var t=aWP(V,f);return kOL(PJ9(n,new uEu(V.uo,t)),function(){return[]},D)}catch(J){n.error=J,n.hasError=!0}finally{oTY(n)}},Wau=function(V,D){return D.h8n?D.h8n:D.yv?_.dH(V.uo,function(){return D.h8n=S0d(D.yv)},"c"):[]},RBU=function(V){return i6(function(D){if(!VT(D))return!1;
for(var f=_.r(Object.entries(V)),n=f.next();!n.done;n=f.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;if(!(n in D)){if(t.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!t(D[n]))return!1}return!0})}({ku:function(V){return i6(function(D){return D instanceof V})}(Nm)},"");var p6l=function(){var V=_.oB();this.JSC$8005_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",nJ("cookie_enabled"),nJ("cookie_3p_enabled"),_.Pq("browser"))};
p6l.prototype.increment=function(V,D,f){this.JSC$8005_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",V,D,f)};
var lgL=function(){var V=_.oB();this.JSC$8029_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",tl("tick"),nJ("from_st_cookie"))};
lgL.prototype.increment=function(V,D){this.JSC$8029_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",V,D)};
var La6=function(){var V=_.oB();this.JSC$8035_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Pq("status"))};
La6.prototype.increment=function(V){this.JSC$8035_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",V)};
var IWF=function(){var V=_.oB();this.JSC$8038_streamzService=V;V.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Pq("stage"),nJ("is_using_ytd_player"),nJ("has_expandable_tiles"))};
IWF.prototype.increment=function(V,D,f){this.JSC$8038_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",V,D,f)};
var OWo=function(){var V=_.oB();this.JSC$8041_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/response_signature",_.Pq("check_status"))};
OWo.prototype.increment=function(V){this.JSC$8041_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/response_signature",V)};
var x9V=function(){var V=_.oB();this.JSC$8044_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Pq("sig"),tl("de"))};
x9V.prototype.increment=function(V,D){this.JSC$8044_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/e_sig_log",V,D)};
var M5L=function(){var V=_.oB();this.JSC$8047_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Pq("sig"),tl("de"))};
M5L.prototype.increment=function(V,D){this.JSC$8047_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/e_sig_en",V,D)};
_.hBY=function(){var V=_.oB();this.JSC$8050_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Pq("action"))};
_.hBY.prototype.increment=function(V){this.JSC$8050_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/web/enforcement_intent",V)};var qm=window;var U9Y=(new Date).getTime();var VCp=function(V){this.servicePromise_=V;V.then((0,_.F1)(function(){},this),function(){},this)},DrH=function(V,D,f){V.servicePromise_.then(function(n){var t=n[D];
if(!t)throw Error("Pa`"+D);return t.apply(n,f)})},tCF=function(V,D,f){for(var n=Array(arguments.length-2),t=2;t<arguments.length;t++)n[t-2]=arguments[t];
t=fNp(V,D).then(function(J){return J.apply(null,n)},function(J){J=Error("Qa`"+D+"`"+V,{cause:J});
delete nA6[D];return _.Br(J)});
return new VCp(t)},nA6={},fNp=function(V,D){var f=nA6[D];
if(f)return f;f=(f=_.Yw(D))?_.Qv(f):(new _.Qf(function(n,t){var J=(new G$(document)).createElement("SCRIPT");J.async=!0;_.Yx(J,_.rQ(OxU(V)));J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||n()};
J.onerror=function(H){t(Error("Ra`"+D+"`"+V,{cause:H}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(J)})).then(function(){var n=_.Yw(D);
if(!n)throw Error("Sa`"+D+"`"+V);return n});
return nA6[D]=f};var PBY={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},J4P=function(){var V=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=WKd(function(){return _.w(function(D){if(D.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?D.return(Promise.resolve()):_.b(D,oAo(V),2);V.rsaForList.length>
0&&document.addEventListener("click",V.requestAccessForHelpPanel);_.yz(D)})});
this.requestAccessForHelpPanel=function(){if(!(V.rsaForPromises.length>0)){for(var D=_.r(V.rsaForList),f=D.next();!f.done;f=D.next()){f=f.value;try{V.rsaForPromises.push(document.requestStorageAccessFor(f))}catch(n){}}Promise.all(V.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){V.reset()})}}};
J4P.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var oAo=function(V){var D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:D=_.r(Object.values(PBY)),f=D.next();case 2:if(f.done){J.jumpTo(0);break}n=f.value;_.wx(J,5);return _.b(J,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:n}),7);case 7:t=J.yieldResult;t.state!=="granted"&&V.rsaForList.push(n);_.YJ(J,3);break;case 5:_.KW(J);J.jumpTo(0);break;case 3:f=D.next(),J.jumpTo(2)}})};(new J4P).initialize();var r4p=function(V){this.JSC$8064_loader_=V};
r4p.prototype.startHelp=function(V){DrH(this.JSC$8064_loader_,"startHelp",arguments)};
r4p.prototype.JSC$8066_loadChatSupport=function(V){DrH(this.JSC$8064_loader_,"loadChatSupport",arguments)};
var wll=function(V,D){D=D||{};V=tCF(Hiu,"help.service.Lazy.create",V,{apiKey:D.apiKey||D.apiKey,asxUiUri:D.asxUiUri||D.asxUiUri,environment:D.environment||D.environment,flow:D.flow||D.flow,frdProductData:D.frdProductData||D.frdProductData,frdProductDataSerializedJspb:D.frdProductDataSerializedJspb||D.frdProductDataSerializedJspb,helpCenterPath:D.helpCenterPath||D.helpCenterPath,locale:D.locale||D.locale||"en-US".replace(/-/g,"_"),nonce:D.nonce||D.nonce,productData:D.productData||D.productData,receiverUri:D.receiverUri||
D.receiverUri,renderApiUri:D.renderApiUri||D.renderApiUri,theme:D.theme||D.theme,window:D.window||D.window});return new r4p(V)},Hiu=new Cy(gtY,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Q86=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Q86,_.Xm);var TwL=_.V2(Q86);_.biE=new function(V,D,f,n){this.configType=V;this.flagName=f;this.defaultValue=n;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 y4p=function(){this.retriever=_.DY().resolve(Kkr)};LKR(Node);LKR(Element);var Zi6=LKR(HTMLElement);LKR(SVGElement);var j8p,lN6,Ai,Gep;j8p=function(V){return typeof V.className=="string"?V.className:V.getAttribute&&V.getAttribute("class")||""};
lN6=function(V){return V.classList?V.classList:j8p(V).match(/\S+/g)||[]};
_.X6=function(V,D){typeof V.className=="string"?V.className=D:V.setAttribute&&V.setAttribute("class",D)};
_.E7=function(V,D){return V.classList?V.classList.contains(D):_.i3(lN6(V),D)};
_.M3=function(V,D){if(V.classList)V.classList.add(D);else if(!_.E7(V,D)){var f=j8p(V);_.X6(V,f+(f.length>0?" "+D:D))}};
Ai=function(V,D){if(V.classList)Array.prototype.forEach.call(D,function(t){_.M3(V,t)});
else{var f={};Array.prototype.forEach.call(lN6(V),function(t){f[t]=!0});
Array.prototype.forEach.call(D,function(t){f[t]=!0});
D="";for(var n in f)D+=D.length>0?" "+n:n;_.X6(V,D)}};
_.Om=function(V,D){V.classList?V.classList.remove(D):_.E7(V,D)&&_.X6(V,Array.prototype.filter.call(lN6(V),function(f){return f!=D}).join(" "))};
Gep=function(V,D){V.classList?Array.prototype.forEach.call(D,function(f){_.Om(V,f)}):_.X6(V,Array.prototype.filter.call(lN6(V),function(f){return!_.i3(D,f)}).join(" "))};var e5l=function(V){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=V.document},gAL=function(V,D){c4E(V);
var f=document.createElement("div"),n;(n=D.parentNode)==null||n.insertBefore(f,D);f.tabIndex=0;f.id="fc-focus-trap-pre-div";f=document.createElement("div");var t;(t=D.parentNode)==null||t.insertBefore(f,D.nextSibling);f.tabIndex=0;f.id="fc-focus-trap-post-div";var J=FkV(V,D),H=FkV(V,D,!0);J&&H&&(V.focusChangeHandler=function(){var Q=V.document.activeElement;if(Q)if(_.ER(D,Q))V.previouslyFocusedElement=Q;else if(Q===V.document.activeElement)switch(V.previouslyFocusedElement){case J:H.focus();V.previouslyFocusedElement=
H;break;default:J.focus(),V.previouslyFocusedElement=J}},V.document.addEventListener("focus",V.focusChangeHandler,!0),V.document.addEventListener("focusin",V.focusChangeHandler))},c4E=function(V){V.focusChangeHandler&&(document.removeEventListener("focus",V.focusChangeHandler,!0),document.removeEventListener("focusin",V.focusChangeHandler),V.focusChangeHandler=null);
var D;(D=document.getElementById("fc-focus-trap-pre-div"))==null||D.remove();var f;(f=document.getElementById("fc-focus-trap-post-div"))==null||f.remove()},vAV=function(V,D,f,n,t){f=f===void 0?!0:f;
var J;t=(J=t===void 0?null:t)!=null?J:FkV(V,D,n===void 0?!1:n);t!==null&&(t.focus(),f&&gAL(V,D))};
e5l.prototype.disableButton=function(V,D){D=D===void 0?null:D;V.disabled=!0;D&&_.M3(V,D)};
var FkV=function(V,D,f){f=f===void 0?!1:f;if($Z9(D)&&!f)return D;var n=f?[].slice.call(D.children,0).reverse():D.children;n=_.r(n);for(var t=n.next();!t.done;t=n.next())if(t=t.value,Zi6(t)&&(t=FkV(V,t,f)))return t;return $Z9(D)&&f?D:null};var ke6=function(V){this.originalBodyOverflow="";this.JSC$8090_domHelper=jC(V)};
ke6.prototype.enableScrolling=function(){this.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow=this.originalBodyOverflow};_.fg(_.gX,_.cq);_.P=_.gX.prototype;_.P.JSC$8093_id_=0;_.P.disposeInternal=function(){_.gX.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8091_listener_;delete this.handler_};
_.P.start=function(V){this.stop();this.JSC$8093_id_=F6(this.callback_,V!==void 0?V:this.JSC$8091_interval_)};
_.P.stop=function(){this.isActive()&&_.fx.clearTimeout(this.JSC$8093_id_);this.JSC$8093_id_=0};
_.P.fire=function(){this.stop();this.JSC$8093_doAction_()};
_.P.isActive=function(){return this.JSC$8093_id_!=0};
_.P.JSC$8093_doAction_=function(){this.JSC$8093_id_=0;this.JSC$8091_listener_&&this.JSC$8091_listener_.call(this.handler_)};_.fl=function(V){_.cq.call(this);this.handler_=V;this.JSC$8094_keys_={}};
_.fg(_.fl,_.cq);var s8P=[];_.fl.prototype.listen=function(V,D,f,n){Array.isArray(D)||(D&&(s8P[0]=D.toString()),D=s8P);for(var t=0;t<D.length;t++){var J=_.kt(V,D[t],f||this.handleEvent,n||!1,this.handler_||this);if(!J)break;this.JSC$8094_keys_[J.key]=J}return this};
_.fl.prototype.listenOnce=function(V,D,f,n){return Bwl(this,V,D,f,n)};
var Bwl=function(V,D,f,n,t,J){if(Array.isArray(f))for(var H=0;H<f.length;H++)Bwl(V,D,f[H],n,t,J);else{D=cr(D,f,n||V.handleEvent,t,J||V.handler_||V);if(!D)return V;V.JSC$8094_keys_[D.key]=D}return V};
_.fl.prototype.unlisten=function(V,D,f,n,t){if(Array.isArray(D))for(var J=0;J<D.length;J++)this.unlisten(V,D[J],f,n,t);else if(V=M_u(V,D,f||this.handleEvent,_.VV(n)?!!n.capture:!!n,t||this.handler_||this))Fo(V),delete this.JSC$8094_keys_[V.key];return this};
_.fl.prototype.removeAll=function(){_.sB.forEach(this.JSC$8094_keys_,function(V,D){this.JSC$8094_keys_.hasOwnProperty(D)&&Fo(V)},this);
this.JSC$8094_keys_={}};
_.fl.prototype.disposeInternal=function(){_.fl.superClass_.disposeInternal.call(this);this.removeAll()};
_.fl.prototype.handleEvent=function(){throw Error("Ta");};var ai=function(){_.cq.call(this);this.services_={}};
_.fg(ai,_.cq);ai.prototype.connect=function(V){V&&V()};
ai.prototype.isConnected=function(){return!0};
ai.prototype.registerService=function(V,D,f){this.services_[V]={callback:D,objectPayload:!!f}};
ai.prototype.getService=function(V,D){var f=this.services_[V];return f?f:this.defaultService_?{callback:_.lC(this.defaultService_,V),objectPayload:_.VV(D)}:null};
var drl=function(V,D){if(D&&typeof V==="string")try{return JSON.parse(V)}catch(f){return null}else if(!D&&typeof V!=="string")return(0,_.vT)(V);return V};
ai.prototype.disposeInternal=function(){ai.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 Yq=function(V,D){this.sequence_=[];this.onCancelFunction_=V;this.defaultScope_=D||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};
Yq.prototype.cancel=function(V){if(this.fired_)this.result_ instanceof Yq&&this.result_.cancel();else{if(this.parent_){var D=this.parent_;delete this.parent_;V?D.cancel(V):(D.branches_--,D.branches_<=0&&D.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new $q(this))}};
Yq.prototype.continue_=function(V,D){this.blocked_=!1;u36(this,V,D)};
var u36=function(V,D,f){V.fired_=!0;V.result_=f;V.hadError_=!D;NwV(V)},z5p=function(V){if(V.fired_){if(!V.silentlyCanceled_)throw new mrV(V);
V.silentlyCanceled_=!1}};
Yq.prototype.callback=function(V){z5p(this);u36(this,!0,V)};
Yq.prototype.errback=function(V){z5p(this);u36(this,!1,V)};
var R5V=function(V,D,f){iG(V,D,null,f)};
Yq.prototype.finally=function(V){var D=this;return new Promise(function(f,n){iG(D,function(t){V();f(t)},function(t){V();
n(t)})})};
var iG=function(V,D,f,n){var t=V.fired_;t||(D===f?D=f=lG(D):(D=lG(D),f=lG(f)));V.sequence_.push([D,f,n]);t&&NwV(V)};
Yq.prototype.then=function(V,D,f){var n,t,J=new _.Qf(function(H,Q){t=H;n=Q});
iG(this,t,function(H){H instanceof $q?J.cancel():n(H);return CBY},this);
return J.then(V,D,f)};
Pvl(Yq);var qBr=function(V,D){D instanceof Yq?R5V(V,(0,_.F1)(D.branch,D)):R5V(V,function(){return D})};
Yq.prototype.branch=function(V){var D=new Yq;iG(this,D.callback,D.errback,D);V&&(D.parent_=this,this.branches_++);return D};
Yq.prototype.isError=function(V){return V instanceof Error};
var Xlu=function(V){return Ww(V.sequence_,function(D){return typeof D[1]==="function"})},CBY={},NwV=function(V){if(V.unhandledErrorId_&&V.fired_&&Xlu(V)){var D=V.unhandledErrorId_,f=EAl[D];
f&&(_.fx.clearTimeout(f.JSC$8111_id_),delete EAl[D]);V.unhandledErrorId_=0}V.parent_&&(V.parent_.branches_--,delete V.parent_);D=V.result_;for(var n=f=!1;V.sequence_.length&&!V.blocked_;){var t=V.sequence_.shift(),J=t[0],H=t[1];t=t[2];if(J=V.hadError_?H:J)try{var Q=J.call(t||V.defaultScope_,D);Q===CBY&&(Q=void 0);Q!==void 0&&(V.hadError_=V.hadError_&&(Q==D||V.isError(Q)),V.result_=D=Q);if(oxF(D)||typeof _.fx.Promise==="function"&&D instanceof _.fx.Promise)n=!0,V.blocked_=!0}catch(T){D=T,V.hadError_=
!0,Xlu(V)||(f=!0)}}V.result_=D;n&&(Q=(0,_.F1)(V.continue_,V,!0),n=(0,_.F1)(V.continue_,V,!1),D instanceof Yq?(iG(D,Q,n),D.blocking_=!0):D.then(Q,n));f&&(D=new A46(D),EAl[D.JSC$8111_id_]=D,V.unhandledErrorId_=D.JSC$8111_id_)},mrV=function(){_.VY.call(this)};
_.fg(mrV,_.VY);mrV.prototype.message="Deferred has already fired";mrV.prototype.name="AlreadyCalledError";var $q=function(){_.VY.call(this)};
_.fg($q,_.VY);$q.prototype.message="Deferred was canceled";$q.prototype.name="CanceledError";var A46=function(V){this.JSC$8111_id_=_.fx.setTimeout((0,_.F1)(this.throwError,this),0);this.JSC$8111_error_=V};
A46.prototype.throwError=function(){delete EAl[this.JSC$8111_id_];throw this.JSC$8111_error_;};
var EAl={};var aNH={1:"NativeMessagingTransport"},YBL=["pu","lru","pru","lpu","ppu"],ii6=function(){for(var V=10,D=$rl,f=D.length,n="";V-- >0;)n+=D.charAt(Math.floor(Math.random()*f));return n},$rl="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var ST=function(V){_.cq.call(this);this.JSC$8114_domHelper_=V||jC()};
_.fg(ST,_.cq);ST.prototype.transportType=0;ST.prototype.getWindow=function(){return this.JSC$8114_domHelper_.getWindow()};
ST.prototype.getName=function(){return aNH[String(this.transportType)]||""};var WT=function(V,D,f,n,t){ST.call(this,f);this.JSC$8117_channel_=V;this.protocolVersion_=t||2;this.peerHostname_=D||"*";this.JSC$8117_eventHandler_=new _.fl(this);this.maybeAttemptToConnectTimer_=new _.Dk(100,this.getWindow());this.oneSidedHandshake_=!!n;this.setupAckReceived_=new Yq;this.setupAckSent_=new Yq;this.JSC$8117_connected_=new Yq;this.endpointId_=ii6();this.peerEndpointId_=null;this.oneSidedHandshake_?SBp(this.JSC$8117_channel_)==1?qBr(this.JSC$8117_connected_,this.setupAckReceived_):
qBr(this.JSC$8117_connected_,this.setupAckSent_):(qBr(this.JSC$8117_connected_,this.setupAckReceived_),this.protocolVersion_==2&&qBr(this.JSC$8117_connected_,this.setupAckSent_));R5V(this.JSC$8117_connected_,this.notifyConnected_,this);this.JSC$8117_connected_.callback(!0);this.JSC$8117_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.fg(WT,ST);WT.prototype.peerProtocolVersion_=null;WT.prototype.initialized_=!1;WT.prototype.transportType=1;var Wko={};WT.prototype.sendTimerId_=0;
var INY=function(V){var D=V.event_.data;if(typeof D!=="string")return!1;var f=D.indexOf("|"),n=D.indexOf(":");if(f==-1||n==-1)return!1;var t=D.substring(0,f);f=D.substring(f+1,n);D=D.substring(n+1);if(n=p8[t])return n.xpcDeliver(f,D,V.event_.origin),!0;n=plL(D)[0];for(var J in p8){var H=p8[J];if(SBp(H)==1&&!H.isConnected()&&f=="tp"&&(n=="SETUP"||n=="SETUP_NTPV2")&&Lkl(H,V.event_.origin))return delete p8[H.name],H.name=t,p8[t]=H,H.xpcDeliver(f,D),!0}return!1},Oi6=function(V){V.protocolVersion_!=2||
V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=2||V.send("tp","SETUP_NTPV2,"+V.endpointId_);
V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=1||V.send("tp","SETUP")},xro=function(V,D){if(V.protocolVersion_!=2||V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=2||D!=2){if(V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=1||D!=1)return;
V.send("tp","SETUP_ACK")}else V.send("tp","SETUP_ACK_NTPV2");V.setupAckSent_.fired_||V.setupAckSent_.callback(!0)},MCU=function(V,D){D>V.peerProtocolVersion_&&(V.peerProtocolVersion_=D);
V.peerProtocolVersion_==1&&(V.setupAckSent_.fired_||V.oneSidedHandshake_||V.setupAckSent_.callback(!0),V.peerEndpointId_=null)};
_.P=WT.prototype;_.P.connect=function(){var V=this.getWindow(),D=_.fo(V),f=Wko[D];typeof f!=="number"&&(f=0);f==0&&_.kt(V.postMessage?V:V.document,"message",INY,!1,WT);Wko[D]=f+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.P.maybeAttemptToConnect_=function(){var V=SBp(this.JSC$8117_channel_)==0;this.oneSidedHandshake_&&V||this.JSC$8117_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Oi6(this))};
_.P.send=function(V,D){var f=this.JSC$8117_channel_.peerWindowObject_;f&&(this.send=function(n,t){var J=this,H=this.JSC$8117_channel_.name;this.sendTimerId_=F6(function(){J.sendTimerId_=0;try{var Q=f.postMessage?f:f.document;Q.postMessage&&Q.postMessage(H+"|"+n+":"+t,J.peerHostname_)}catch(T){}},0)},this.send(V,D))};
_.P.notifyConnected_=function(){var V=this.JSC$8117_channel_,D=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;V.isConnected()||V.connectionDelay_&&V.connectionDelay_.isActive()||(V.state_=2,_.Mr(V.connectionDelay_),D!==void 0?(V.connectionDelay_=new _.gX(V.connectCb_,D),V.connectionDelay_.start()):(V.connectionDelay_=null,V.connectCb_()))};
_.P.disposeInternal=function(){if(this.initialized_){var V=this.getWindow(),D=_.fo(V),f=Wko[D];Wko[D]=f-1;f==1&&_.ZU(V.postMessage?V:V.document,"message",INY,!1,WT)}this.sendTimerId_&&(_.fx.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Mr(this.JSC$8117_eventHandler_);delete this.JSC$8117_eventHandler_;_.Mr(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8117_connected_.cancel();delete this.JSC$8117_connected_;delete this.send;WT.superClass_.disposeInternal.call(this)};
var plL=function(V){V=V.split(",");V[1]=V[1]||null;return V};var Uru;_.L8=function(V){if(V.getValues&&typeof V.getValues=="function")return V.getValues();if(typeof Map!=="undefined"&&V instanceof Map||typeof Set!=="undefined"&&V instanceof Set)return Array.from(V.values());if(typeof V==="string")return V.split("");if(_.MU(V)){for(var D=[],f=V.length,n=0;n<f;n++)D.push(V[n]);return D}return _.sB.getValues(V)};
_.h5V=function(V){if(V.getKeys&&typeof V.getKeys=="function")return V.getKeys();if(!V.getValues||typeof V.getValues!="function"){if(typeof Map!=="undefined"&&V instanceof Map)return Array.from(V.keys());if(!(typeof Set!=="undefined"&&V instanceof Set)){if(_.MU(V)||typeof V==="string"){var D=[];V=V.length;for(var f=0;f<V;f++)D.push(f);return D}return _.sB.getKeys(V)}}};
Uru=function(V,D,f){if(V.forEach&&typeof V.forEach=="function")V.forEach(D,f);else if(_.MU(V)||typeof V==="string")Array.prototype.forEach.call(V,D,f);else for(var n=_.h5V(V),t=_.L8(V),J=t.length,H=0;H<J;H++)D.call(f,t[H],n&&n[H],V)};var F9R,Vp,f$,o4Y,VBV,fCu,DNF,PWF,n4o;
_.Ll=function(V,D){this.JSC$8122_domain_=this.userInfo_=this.scheme_="";this.JSC$8122_port_=null;this.fragment_=this.JSC$8122_path_="";this.JSC$8122_ignoreCase_=!1;var f;V instanceof _.Ll?(this.JSC$8122_ignoreCase_=D!==void 0?D:V.JSC$8122_ignoreCase_,_.Ii(this,V.scheme_),this.userInfo_=V.userInfo_,_.O7(this,V.JSC$8122_domain_),_.xq(this,V.JSC$8122_port_),_.Mm(this,V.getPath()),_.hi(this,V.JSC$8122_queryData_.clone()),_.U7(this,V.fragment_)):V&&(f=_.OG(String(V)))?(this.JSC$8122_ignoreCase_=!!D,_.Ii(this,
f[1]||"",!0),this.userInfo_=Vp(f[2]||""),_.O7(this,f[3]||"",!0),_.xq(this,f[4]),_.Mm(this,f[5]||"",!0),_.hi(this,f[6]||"",!0),_.U7(this,f[7]||"",!0)):(this.JSC$8122_ignoreCase_=!!D,this.JSC$8122_queryData_=new _.Dp(null,this.JSC$8122_ignoreCase_))};
_.Ll.prototype.toString=function(){var V=[],D=this.scheme_;D&&V.push(f$(D,VBV,!0),":");var f=this.JSC$8122_domain_;if(f||D=="file")V.push("//"),(D=this.userInfo_)&&V.push(f$(D,VBV,!0),"@"),V.push(_.ia(f).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.JSC$8122_port_,f!=null&&V.push(":",String(f));if(f=this.getPath())this.JSC$8122_domain_&&f.charAt(0)!="/"&&V.push("/"),V.push(f$(f,f.charAt(0)=="/"?DNF:fCu,!0));(f=this.JSC$8122_queryData_.toString())&&V.push("?",f);(f=this.fragment_)&&V.push("#",f$(f,
n4o));return V.join("")};
_.Ll.prototype.resolve=function(V){var D=this.clone(),f=!!V.scheme_;f?_.Ii(D,V.scheme_):f=!!V.userInfo_;f?D.userInfo_=V.userInfo_:f=!!V.JSC$8122_domain_;f?_.O7(D,V.JSC$8122_domain_):f=V.JSC$8122_port_!=null;var n=V.getPath();if(f)_.xq(D,V.JSC$8122_port_);else if(f=!!V.JSC$8122_path_){if(n.charAt(0)!="/")if(this.JSC$8122_domain_&&!this.JSC$8122_path_)n="/"+n;else{var t=D.getPath().lastIndexOf("/");t!=-1&&(n=D.getPath().slice(0,t+1)+n)}t=n;if(t==".."||t==".")n="";else if(_.QY(t,"./")||_.QY(t,"/.")){n=
_.tc(t,"/");t=t.split("/");for(var J=[],H=0;H<t.length;){var Q=t[H++];Q=="."?n&&H==t.length&&J.push(""):Q==".."?((J.length>1||J.length==1&&J[0]!="")&&J.pop(),n&&H==t.length&&J.push("")):(J.push(Q),n=!0)}n=J.join("/")}else n=t}f?_.Mm(D,n):f=V.JSC$8122_queryData_.toString()!=="";f?_.hi(D,V.JSC$8122_queryData_.clone()):f=!!V.fragment_;f&&_.U7(D,V.fragment_);return D};
_.Ll.prototype.clone=function(){return new _.Ll(this)};
_.Ii=function(V,D,f){V.scheme_=f?Vp(D,!0):D;V.scheme_&&(V.scheme_=V.scheme_.replace(/:$/,""));return V};
_.O7=function(V,D,f){V.JSC$8122_domain_=f?Vp(D,!0):D;return V};
_.xq=function(V,D){if(D){D=Number(D);if(isNaN(D)||D<0)throw Error("Ua`"+D);V.JSC$8122_port_=D}else V.JSC$8122_port_=null;return V};
_.Ll.prototype.getPath=function(){return this.JSC$8122_path_};
_.Mm=function(V,D,f){V.JSC$8122_path_=f?Vp(D,!0):D;return V};
_.hi=function(V,D,f){D instanceof _.Dp?(V.JSC$8122_queryData_=D,tBP(V.JSC$8122_queryData_,V.JSC$8122_ignoreCase_)):(f||(D=f$(D,PWF)),V.JSC$8122_queryData_=new _.Dp(D,V.JSC$8122_ignoreCase_));return V};
_.iW=function(V,D,f){V.JSC$8122_queryData_.set(D,f);return V};
_.$4=function(V,D){return V.JSC$8122_queryData_.get(D)};
_.U7=function(V,D,f){V.fragment_=f?Vp(D):D;return V};
_.n$=function(V){_.iW(V,"zx",aV());return V};
_.Y4=function(V,D){return V instanceof _.Ll?V.clone():new _.Ll(V,D)};
F9R=function(V,D){V instanceof _.Ll||(V=_.Y4(V));D instanceof _.Ll||(D=_.Y4(D));return V.resolve(D)};
Vp=function(V,D){return V?D?decodeURI(V.replace(/%25/g,"%2525")):decodeURIComponent(V):""};
f$=function(V,D,f){return typeof V==="string"?(V=encodeURI(V).replace(D,o4Y),f&&(V=V.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V):null};
o4Y=function(V){V=V.charCodeAt(0);return"%"+(V>>4&15).toString(16)+(V&15).toString(16)};
VBV=/[#\/\?@]/g;fCu=/[#\?:]/g;DNF=/[#\?]/g;PWF=/[#\?@]/g;n4o=/#/g;_.Dp=function(V,D){this.count_=this.keyMap_=null;this.encodedQuery_=V||null;this.JSC$8123_ignoreCase_=!!D};
_.tu=function(V){V.keyMap_||(V.keyMap_=new Map,V.count_=0,V.encodedQuery_&&pHP(V.encodedQuery_,function(D,f){V.add(UG(D),f)}))};
_.P=_.Dp.prototype;_.P.getCount=function(){_.tu(this);return this.count_};
_.P.add=function(V,D){_.tu(this);this.encodedQuery_=null;V=Pk(this,V);var f=this.keyMap_.get(V);f||this.keyMap_.set(V,f=[]);f.push(D);this.count_+=1;return this};
_.P.remove=function(V){_.tu(this);V=Pk(this,V);return this.keyMap_.has(V)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(V).length,this.keyMap_.delete(V)):!1};
_.P.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.P.isEmpty=function(){_.tu(this);return this.count_==0};
_.P.containsKey=function(V){_.tu(this);V=Pk(this,V);return this.keyMap_.has(V)};
_.P.containsValue=function(V){var D=this.getValues();return _.i3(D,V)};
_.P.forEach=function(V,D){_.tu(this);this.keyMap_.forEach(function(f,n){f.forEach(function(t){V.call(D,t,n,this)},this)},this)};
_.P.getKeys=function(){_.tu(this);for(var V=Array.from(this.keyMap_.values()),D=Array.from(this.keyMap_.keys()),f=[],n=0;n<D.length;n++)for(var t=V[n],J=0;J<t.length;J++)f.push(D[n]);return f};
_.P.getValues=function(V){_.tu(this);var D=[];if(typeof V==="string")this.containsKey(V)&&(D=D.concat(this.keyMap_.get(Pk(this,V))));else{V=Array.from(this.keyMap_.values());for(var f=0;f<V.length;f++)D=D.concat(V[f])}return D};
_.P.set=function(V,D){_.tu(this);this.encodedQuery_=null;V=Pk(this,V);this.containsKey(V)&&(this.count_-=this.keyMap_.get(V).length);this.keyMap_.set(V,[D]);this.count_+=1;return this};
_.P.get=function(V,D){if(!V)return D;V=this.getValues(V);return V.length>0?String(V[0]):D};
_.Jll=function(V,D,f){V.remove(D);f.length>0&&(V.encodedQuery_=null,V.keyMap_.set(Pk(V,D),_.Od(f)),V.count_+=f.length)};
_.Dp.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var V=[],D=Array.from(this.keyMap_.keys()),f=0;f<D.length;f++){var n=D[f],t=_.ia(n);n=this.getValues(n);for(var J=0;J<n.length;J++){var H=t;n[J]!==""&&(H+="="+_.ia(n[J]));V.push(H)}}return this.encodedQuery_=V.join("&")};
_.Dp.prototype.clone=function(){var V=new _.Dp;V.encodedQuery_=this.encodedQuery_;this.keyMap_&&(V.keyMap_=new Map(this.keyMap_),V.count_=this.count_);return V};
var Pk=function(V,D){D=String(D);V.JSC$8123_ignoreCase_&&(D=D.toLowerCase());return D},tBP=function(V,D){D&&!V.JSC$8123_ignoreCase_&&(_.tu(V),V.encodedQuery_=null,V.keyMap_.forEach(function(f,n){var t=n.toLowerCase();
n!=t&&(this.remove(n),_.Jll(this,t,f))},V));
V.JSC$8123_ignoreCase_=D};
_.Dp.prototype.extend=function(V){for(var D=0;D<arguments.length;D++)Uru(arguments[D],function(f,n){this.add(n,f)},this)};var oH=function(V,D){ai.call(this);for(var f=0,n;n=YBL[f];f++)if(n in V&&!/^https?:\/\//.test(V[n]))throw Error("Wa`"+V[n]+"`"+n);this.cfg_=V;this.name=this.cfg_.cn||ii6();this.JSC$8118_domHelper_=D||jC();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.fl(this);V.lpu=V.lpu||Su6(this.JSC$8118_domHelper_.getWindow().location.href)+"/robots.txt";V.ppu=V.ppu||Su6(V.pu||"")+"/robots.txt";p8[this.name]=this;M_u(window,"unload",rlp)||cr(window,"unload",rlp)};
_.fg(oH,ai);var HJH=RegExp("^%*tp$"),wq6=RegExp("^%+tp$");_.P=oH.prototype;_.P.connectionDelay_=null;_.P.peerWindowDeferred_=null;_.P.transport_=null;_.P.state_=1;_.P.isConnected=function(){return this.state_==2};
_.P.peerWindowObject_=null;_.P.iframeElement_=null;_.P.connect=function(V){this.connectCb_=V||_.Kp;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?R5V(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.P.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8118_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var V=this.iframeElement_.contentWindow;V||(V=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=V}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");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$8118_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new WT(this,this.cfg_.ph,this.JSC$8118_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.P.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Mr(this.transport_);this.connectCb_=this.transport_=null;_.Mr(this.connectionDelay_);this.connectionDelay_=null};
_.P.send=function(V,D){if(this.isConnected()){try{var f=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(t){f=!1}if(f){_.VV(D)&&(D=(0,_.vT)(D));f=this.transport_;var n=f.send;HJH.test(V)&&(V="%"+V);V=V.replace(/[%:|]/g,encodeURIComponent);n.call(f,V,D)}else this.close()}};
_.P.xpcDeliver=function(V,D,f){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.F1)(this.xpcDeliver,this,V,D,f));else if(Lkl(this,f)&&!this.isDisposed()&&this.state_!=3)if(V&&V!="tp")this.isConnected()&&(V=V.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),V=wq6.test(V)?V.substring(1):V,V=this.getService(V,D))&&(D=drl(D,V.objectPayload),D!=null&&V.callback(D));else switch(V=this.transport_,f=plL(D),D=f[1],f[0]){case "SETUP_ACK":MCU(V,1);V.setupAckReceived_.fired_||V.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":V.protocolVersion_==2&&(MCU(V,2),V.setupAckReceived_.fired_||V.setupAckReceived_.callback(!0));break;case "SETUP":MCU(V,1);xro(V,1);break;case "SETUP_NTPV2":V.protocolVersion_==2&&(f=V.peerProtocolVersion_,MCU(V,2),xro(V,2),f!=1&&V.peerEndpointId_==null||V.peerEndpointId_==D||Oi6(V),V.peerEndpointId_=D)}};
var SBp=function(V){var D=V.cfg_.role;return typeof D==="number"?D:window.parent==V.peerWindowObject_?1:0},Lkl=function(V,D){var f=V.cfg_.ph;
return _.Hn(D==null?"":String(D))||_.Hn(f==null?"":String(f))||D==V.cfg_.ph};
oH.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete p8[this.name];_.Mr(this.peerLoadHandler_);delete this.peerLoadHandler_;oH.superClass_.disposeInternal.call(this)};
var rlp=function(){for(var V in p8)_.Mr(p8[V])},p8={};var TXl=function(V,D){this.JSC$8132_win=V;this.allowAdsHttpEndpoint=D;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8132_domHelper=jC(V);this.scrollManager=new ke6(V);this.accessibilityManager=new e5l(V);QVF(this)},QVF=function(V){var D=function(){V.allowAdsPopup&&V.allowAdsPopup.style.setProperty("display","none","important");
V.wallElement.style.setProperty("display","","important");c4E(V.accessibilityManager);vAV(V.accessibilityManager,V.wallElement.querySelector(".fc-dialog-container"),!1,!1,V.wallElement.querySelector(".fc-button-whitelist"));V.scrollManager.enableScrolling()};
V.allowAdsPopup=V.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-whitelist-root"});V.allowAdsPopup.style.setProperty("display","none","important");V.JSC$8132_domHelper.appendChild(V.JSC$8132_domHelper.JSC$7414_document_.body,V.allowAdsPopup);var f=V.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-dialog-overlay"});V.JSC$8132_domHelper.appendChild(V.allowAdsPopup,f);var n=V.JSC$8132_domHelper.JSC$7416_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:D});V.JSC$8132_domHelper.appendChild(V.allowAdsPopup,
n);f=V.JSC$8132_domHelper.JSC$7416_createDom("IFRAME");f.className="fc-whitelist-dialog";f.frameBorder="0";f.id="fc-whitelist-iframe";f.tabIndex="0";_.N8(f,V.allowAdsHttpEndpoint);V.JSC$8132_domHelper.appendChild(n,f);n={};n.pu=_.HS(V.allowAdsHttpEndpoint).toString();n.tp=1;n.cn="fc-whitelist-channel";n.ifrid=f.id;n.osh=!0;V.allowAdsCrossPageChannel=new oH(n);V.allowAdsCrossPageChannel.registerService("close",D);V.allowAdsCrossPageChannel.registerService("refresh",function(){V.JSC$8132_win.location.reload()});
V.allowAdsCrossPageChannel.registerService("resize",function(t){if(t){var J=V.allowAdsPopup.querySelector(".fc-whitelist-dialog");t.width&&J.style.setProperty("width",t.width,"important");t.height&&J.style.setProperty("height",t.height,"important")}},!0);
V.allowAdsCrossPageChannel.connect()};
TXl.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8132_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Ju=window,rA=document,bJV=Ju.location,KHY=function(){},ylr=/\[native code\]/,Hk=function(V,D,f){return V[D]=V[D]||f},ZJL=function(V){V=V.sort();
for(var D=[],f=void 0,n=0;n<V.length;n++){var t=V[n];t!=f&&D.push(t);f=t}return D},wA=function(){var V;
if((V=Object.create)&&ylr.test(V))V=V(null);else{V={};for(var D in V)V[D]=void 0}return V},Qp=Hk(Ju,"gapi",{});var Tg={};Tg=Hk(Ju,"___jsl",wA());Hk(Tg,"I",0);Hk(Tg,"hel",10);var jVF=function(){var V=bJV.href;if(Tg.dpo)var D=Tg.h;else{D=Tg.h;var f=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),n=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(V=V&&(f.exec(V)||n.exec(V)))try{D=decodeURIComponent(V[2])}catch(t){}}return D},lCE=function(V){var D=Hk(Tg,"PQ",[]);
Tg.PQ=[];var f=D.length;if(f===0)V();else for(var n=0,t=function(){++n===f&&V()},J=0;J<f;J++)D[J](t)},GsE=function(V){return Hk(Hk(Tg,"H",wA()),V,wA())};var bT=function(V){this.JSC$8134_obj_=V};
bT.prototype.value=function(){return this.JSC$8134_obj_};
bT.prototype.getWidth=function(){return this.JSC$8134_obj_.width};
bT.prototype.getHeight=function(){return this.JSC$8134_obj_.height};
bT.prototype.getStyle=function(){return this.JSC$8134_obj_.style};var eOP=function(V){this.JSC$8137_obj_=V||{}};
_.P=eOP.prototype;_.P.value=function(){return this.JSC$8137_obj_};
_.P.setUrl=function(V){this.JSC$8137_obj_.url=V;return this};
_.P.getUrl=function(){return this.JSC$8137_obj_.url};
_.P.getStyle=function(){return this.JSC$8137_obj_.style};
_.P.getId=function(){return this.JSC$8137_obj_.id};
_.P.getContext=function(){return this.JSC$8137_obj_.context};
var clV=function(V){V.JSC$8137_obj_.attributes=V.JSC$8137_obj_.attributes||{};return new bT(V.JSC$8137_obj_.attributes)};var FHu=function(){eOP.apply(this,arguments)};
_.v(FHu,eOP);var g4V=Hk(Tg,"perf",wA());Hk(g4V,"g",wA());var v46=Hk(g4V,"i",wA());Hk(g4V,"r",[]);wA();wA();var sVH=function(V,D,f){D&&D.length>0&&(D=ksL(D),f&&f.length>0&&(D+="___"+ksL(f)),D.length>28&&(D=D.substr(0,28)+(D.length-28)),f=D,D=Hk(v46,"_p",wA()),Hk(D,f,wA())[V]=(new Date).getTime(),D=g4V.r,typeof D==="function"?D(V,"_p",f):D.push([V,"_p",f]))},ksL=function(V){return V.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var BXo=wA(),dNF=[],K$=function(V){throw Error("Za`"+V);};
dNF.push(["jsl",function(V){for(var D in V)if(Object.prototype.hasOwnProperty.call(V,D)){var f=V[D];typeof f=="object"?Tg[D]=Hk(Tg,D,[]).concat(f):Hk(Tg,D,f)}if(D=V.u)V=Hk(Tg,"us",[]),V.push(D),(D=/^https:(.*)$/.exec(D))&&V.push("http:"+D[1])}]);
var u1P=/^(\/[a-zA-Z0-9_\-]+)+$/,NXF=[/\/amp\//,/\/amp$/,/^\/amp$/],mNP=/^[a-zA-Z0-9\-_\.,!]+$/,zOu=/^gapi\.loaded_[0-9]+$/,ROF=/^[a-zA-Z0-9,._-]+$/,E4U=function(V,D,f,n,t){var J=V.split(";"),H=J.shift(),Q=BXo[H],T=null;Q?T=Q(J,D,f,n):K$("no hint processor for: "+H);T||K$("failed to generate load url");D=T;f=D.match(CWr);(n=D.match(qRP))&&n.length===1&&Xqp.test(D)&&f&&f.length===1||K$("failed sanity: "+V);try{V="?";if(t&&t.length>0){no(t);var y=t.join(",");T=T+"?le="+y;V="&"}if(Tg.rol){var Z=Tg.ol;
Z&&Z.length&&(T=""+T+V+"ol="+Z.length)}}catch(l){}return T},YRu=function(V,D,f,n){V=AlH(V);
zOu.test(f)||K$("invalid_callback");D=aCV(D);n=n&&n.length?aCV(n):null;var t=function(J){return encodeURIComponent(J).replace(/%2C/g,",")};
return[encodeURIComponent(V.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",t(V.version),"/m=",t(D),n?"/exm="+t(n):"","/rt=j/sv=1/d=1/ed=1",V.activeMods?"/am="+t(V.activeMods):"",V.resourceSig?"/rs="+t(V.resourceSig):"",V.zcms?"/t="+t(V.zcms):"","/cb=",t(f)].join("")},AlH=function(V){V.charAt(0)!=="/"&&K$("relative path");
for(var D=V.substring(1).split("/"),f=[];D.length;){V=D.shift();if(!V.length||V.indexOf(".")==0)K$("empty/relative directory");else if(V.indexOf("=")>0){D.unshift(V);break}f.push(V)}V={};for(var n=0,t=D.length;n<t;++n){var J=D[n].split("="),H=decodeURIComponent(J[0]),Q=decodeURIComponent(J[1]);J.length==2&&H&&Q&&(V[H]=V[H]||Q)}D="/"+f.join("/");u1P.test(D)||K$("invalid_prefix");f=0;for(n=NXF.length;f<n;++f)NXF[f].test(D)&&K$("invalid_prefix");f=$NV(V,"k",!0);n=$NV(V,"am");t=$NV(V,"rs");V=$NV(V,"t");
return{pathPrefix:D,version:f,activeMods:n,resourceSig:t,zcms:V}},aCV=function(V){for(var D=[],f=0,n=V.length;f<n;++f){var t=V[f].replace(/\./g,"_").replace(/-/g,"_");
ROF.test(t)&&D.push(t)}return D.join(",")},$NV=function(V,D,f){V=V[D];
!V&&f&&K$("missing: "+D);if(V){if(mNP.test(V))return V;K$("invalid: "+D)}return null},Xqp=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,qRP=/\/cb=/g,CWr=/\/\//g;
BXo.m=function(V,D,f,n){(V=V[0])||K$("missing_hint");return"https://apis.google.com"+YRu(V,D,f,n)};
var iJl=decodeURI("%73cript"),SRo=/^[-+_0-9\/A-Za-z]+={0,2}$/,WHY=function(V,D){for(var f=[],n=0;n<V.length;++n){var t=V[n],J;if(J=t){a:{for(J=0;J<D.length;J++)if(D[J]===t)break a;J=-1}J=J<0}J&&f.push(t)}return f},pqo=function(){var V=Tg.nonce;
return V!==void 0?V&&V===String(V)&&V.match(SRo)?V:Tg.nonce=null:rA.querySelector?(V=rA.querySelector("script[nonce]"))?(V=V.nonce||V.getAttribute("nonce")||"",V&&V===String(V)&&V.match(SRo)?Tg.nonce=V:Tg.nonce=null):null:null},OJp=function(V){if(rA.readyState!="loading")LHP(V);
else{var D=pqo(),f="";D!==null&&(f=' nonce="'+D+'"');V="<"+iJl+' src="'+encodeURI(V)+'"'+f+"></"+iJl+">";rA.write(ICF?ICF.createHTML(V):V)}},LHP=function(V){var D=rA.createElement(iJl);
D.setAttribute("src",ICF?ICF.createScriptURL(V):V);V=pqo();V!==null&&D.setAttribute("nonce",V);D.async="true";(V=rA.getElementsByTagName(iJl)[0])?V.parentNode.insertBefore(D,V):(rA.head||rA.body||rA.documentElement).appendChild(D)},MBu=function(V,D,f){xNo(function(){var n=D===jVF()?Hk(Qp,"_",wA()):wA();
n=Hk(GsE(D),"_",n);V(n)},f)},jHc=function(V,D){var f=D||{};
typeof D=="function"&&(f={},f.callback=D);var n=(D=f)&&D._c;if(n)for(var t=0;t<dNF.length;t++){var J=dNF[t][0],H=dNF[t][1];H&&Object.prototype.hasOwnProperty.call(n,J)&&H(n[J],V,D)}D=[];V?D=V.split(":"):f.features&&(D=f.features);if(!(V=f.h)&&(V=jVF(),!V))throw Error("$a");hOo(D||[],f,V)},hOo=function(V,D,f){V=ZJL(V)||[];
var n=D.callback,t=D.config,J=D.timeout,H=D.ontimeout,Q=D.onerror,T=void 0;typeof Q=="function"&&(T=Q);var y=null,Z=!1;if(J&&!H||!J&&H)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";Q=Hk(GsE(f),"r",[]).sort();var l=Hk(GsE(f),"L",[]).sort(),G=Tg.le||[],F=[].concat(Q),k=function(O,W){if(Z)return 0;Ju.clearTimeout(y);l.push.apply(l,d);var I=((Qp||{}).config||{}).update;I?I(t):t&&Hk(Tg,"cu",[]).push(t);if(W){sVH("me0",O,F);try{MBu(W,f,T)}finally{sVH("me1",O,F)}}return 1};
J>0&&(y=Ju.setTimeout(function(){Z=!0;H()},J));
var d=WHY(V,l);if(d.length){d=WHY(V,Q);var z=Hk(Tg,"CP",[]),C=z.length;z[C]=function(O){if(!O)return 0;sVH("ml1",d,F);var W=function(x){z[C]=null;k(d,O)&&lCE(function(){n&&n();x()})},I=function(){var x=z[C+1];
x&&x()};
C>0&&z[C-1]?z[C]=function(){W(I)}:W(I)};
if(d.length){var A="loaded_"+Tg.I++;Qp[A]=function(O){z[C](O);Qp[A]=null};
V=E4U(f,d,"gapi."+A,Q,G);Q.push.apply(Q,d);sVH("ml0",d,F);D.sync||Ju.___gapisync?OJp(V):LHP(V)}else z[C](KHY)}else k(d)&&n&&n()},UNF;
var VQH=null,Dql=_.fx.trustedTypes;if(Dql&&Dql.createPolicy){try{VQH=Dql.createPolicy("goog#gapi",{createHTML:tM9,createScript:tM9,createScriptURL:tM9})}catch(V){_.fx.console&&_.fx.console.error(V.message)}UNF=VQH}else UNF=VQH;var ICF=UNF,xNo=function(V,D){if(Tg.hee&&Tg.hel>0)try{return V()}catch(f){D&&D(f),Tg.hel--,jHc("debug_error",function(){try{window.___jsl.hefn(f)}catch(n){throw f;}})}else try{return V()}catch(f){throw D&&D(f),f;
}},fJE=Qp.load;
fJE&&Hk(Tg,"ol",[]).push(fJE);Qp.load=function(V,D){return xNo(function(){return jHc(V,D)})};var hXd;var nKL=function(V,D){this.serviceId_=V;this.moduleId_=D||null};
nKL.prototype.toString=function(){return this.serviceId_};
nKL.prototype.getModuleId=function(){return this.moduleId_};var PLZ=new nKL("MpJwZc","MpJwZc");var Jqn=new _.QN("a"),oi3=function(V,D,f){_.TG.call(this,V,D);this.node=D;this.kind=f};
_.v(oi3,_.TG);var tQr=function(){this.JSC$8150_keys_={};this.urlPrefix_="";this.JSC$8150_queryData_={}};
tQr.prototype.toString=function(){var V=this.urlPrefix_+PbE(this),D=_.bE(this.JSC$8150_queryData_),f="";D!=""&&(f="?"+D);return V+f};
var oKL=function(V){V=yp(V,"md");return!!V&&V!=="0"},PbE=function(V){var D=[],f=(0,_.F1)(function(n){this.JSC$8150_keys_[n]!==void 0&&D.push(n+"="+this.JSC$8150_keys_[n])},V);
oKL(V)?(f("md"),f("k"),f("ck"),f("am"),f("rs"),f("gssmodulesetproto"),f("slk"),f("dti")):(f("sdch"),f("k"),f("ck"),f("am"),f("rt"),"d"in V.JSC$8150_keys_||Zp(V,"d","0"),f("d"),f("exm"),f("excm"),(V.JSC$8150_keys_.excm||V.JSC$8150_keys_.exm)&&D.push("ed=1"),f("im"),f("dg"),f("sm"),yp(V,"br")!="1"&&yp(V,"br")!="0"||f("br"),f("br-d"),yp(V,"rb")=="1"&&f("rb"),yp(V,"zs")!=="0"&&f("zs"),JN6(V)!==""&&f("wt"),f("gssmodulesetproto"),f("ujg"),f("sp"),f("rs"),f("cb"),f("ee"),f("slk"),f("dti"),f("m"));return D.join("/")},
yp=function(V,D){return V.JSC$8150_keys_[D]?V.JSC$8150_keys_[D]:null},Zp=function(V,D,f){f?V.JSC$8150_keys_[D]=f:delete V.JSC$8150_keys_[D]},rN6=function(V,D){V.urlPrefix_=D},HGo=function(V,D){D&&D.length>0?(D.sort(),Zp(V,"exm",D.join(","))):Zp(V,"exm",null)},wJ6=function(V,D){D&&D.length>0?(D.sort(),Zp(V,"excm",D.join(","))):Zp(V,"excm",null)},QPY=function(V){return(V=yp(V,"m"))?V.split(","):[]},JN6=function(V){switch(yp(V,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Tcr=function(V,D){var f=Object.keys(D).filter(function(n){return!!Object.keys(D[n]).length}).map(function(n){var t=Object.keys(D[n]);
t.length>1&&t.sort();return n+":"+t.join(",")});
f.sort();Zp(V,"ee",f.join(";"))},W0Z=function(V){var D=yp(V,"ee");
if(!D)return{};V={};D=_.r(D.split(";"));for(var f=D.next();!f.done;f=D.next()){var n=_.r(f.value.split(":"));f=n.next().value;n=n.next().value;V[f]={};n=_.r(n.split(","));for(var t=n.next();!t.done;t=n.next())V[f][t.value]=!0}return V},bGl=function(V){delete V.JSC$8150_keys_.m;
delete V.JSC$8150_keys_.exm;delete V.JSC$8150_keys_.ed};
tQr.prototype.clone=function(){var V=new tQr;V.JSC$8150_keys_=Object.assign({},this.JSC$8150_keys_);V.urlPrefix_=this.urlPrefix_;V.JSC$8150_queryData_=Object.assign({},this.JSC$8150_queryData_);return V};
var p93=function(V,D){D=D===void 0?!0:D;var f=KKo(V),n=new tQr,t=_.OG(f)[5];_.sB.forEach(yNE,function(H){var Q=t.match("/"+H+"=([^/]+)");Q&&Zp(n,H,Q[1])});
var J="";J=V.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";rN6(n,V.substr(0,V.indexOf(J)+J.length));if(!D)return n;(V=_.OG(f)[6]||null)&&pHP(V,function(H,Q){n.JSC$8150_queryData_[H]=Q});
return n},$lY=function(V){V=_.Qx(KKo(V));
return V===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(V)?/\/k=/.test(V):!1},KKo=function(V){return V.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?V.substr(65):V},yNE={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"},ZGH=RegExp("^loaded_(g|h)?[_\\d]+$");_.jN=function(V){this.JSC$8162_id_=V;this.opts={}};
_.jN.prototype.JSC$8164_setLabel=function(V){this.label_=V||void 0;return this};
_.jN.prototype.addUploadMetadata=function(V,D){var f=this.opts.data||{};f[V]=D;this.opts.data=f;return this};
var jPl=function(V){var D=_.sB.filter(V.opts,function(f){return f!==null});
D=_.sB.isEmpty(D)?null:D;V=[V.JSC$8162_id_,V.label_,D];D=lZc(V);return V=V.slice(0,D+1)};
_.jN.prototype.toString=function(){var V=jPl(this);return"("+_.dw(V,function(D){return JSON.stringify(D)}).join(",")+")"};
_.jN.prototype.getId=function(){return this.JSC$8162_id_};
_.jN.prototype.getOptions=function(){return _.sB.clone(this.opts)};var lT=function(){_.jN.call(this,"image-search")};
_.v(lT,_.jN);lT.prototype.setSize=function(V){this.opts.imgsz=V;return this};
lT.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
lT.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};var Gg=function(){_.jN.call(this,"maps")};
_.v(Gg,_.jN);Gg.prototype.setZoom=function(V){this.opts.zoom=V;return this};
Gg.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
Gg.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};_.eN=function(){_.jN.call(this,"photos")};
_.v(_.eN,_.jN);_.eN.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
_.eN.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};var ck=function(){_.jN.call(this,"url")};
_.v(ck,_.jN);var lJp=function(){var V=new ck;V.opts.type="video";V.opts.site="youtube.com";return V};
ck.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
ck.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};var Fu=function(){_.jN.call(this,"video-search")};
_.v(Fu,_.jN);var G4Y=function(){var V=new Fu;V.opts.site="youtube.com";return V};
Fu.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
Fu.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};var eXH=function(){_.jN.call(this,"web")};
_.v(eXH,_.jN);eXH.prototype.JSC$8164_setLabel=function(V){_.jN.prototype.JSC$8164_setLabel.call(this,V);return this};
eXH.prototype.addUploadMetadata=function(V,D){_.jN.prototype.addUploadMetadata.call(this,V,D);return this};var gA=function(){this.items_=[];this.opts={}},cNU=function(V){switch(V){case "image-search":return new lT;
case "maps":return new Gg;case "photos":return new _.eN;case "url":return new ck;case "video-search":return new Fu;case "web":return new eXH}return new _.jN(V)};
gA.prototype.addView=function(V){this.items_.push(typeof V==="string"?cNU(V):V);return this};
var FKl=function(V){return"("+_.dw(V.items_,function(D){return D.toString()}).join(",")+")"};
gA.prototype.toString=function(){return FKl(this)};
gA.prototype.getViews=function(V,D){D=D===void 0?[]:D;for(var f=this.items_,n=0;n<f.length;n++){var t=f[n];t instanceof gA?t.getViews(V,D):t.getId()==V&&D.push(t)}return D};
gA.prototype.getOptions=function(){return _.sB.clone(this.opts)};var zs=function(V){this.basePickerUrl_=V||"https://docs.google.com/picker";this.nav_=new gA};
zs.prototype.nav_=null;zs.prototype.addView=function(V){this.nav_.addView(V);return this};
zs.prototype.getBaseUrl=function(){return this.basePickerUrl_};
zs.prototype.getViews=function(V){return this.nav_.getViews(V)};
_.gKo=function(V,D){V.callback_=D;return V};var vKU=new Map;vKU.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");vKU.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");vKU.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var k4p=new Set;k4p.add("application/vnd.google-apps.kix");k4p.add("application/vnd.google-apps.ritz");k4p.add("application/vnd.google-apps.punch");var EKl=function(V,D,f){var n=f&&_.df(f,1);f=sPp(f);var t=V[0].getId();switch(_.u4(t,2)){case 13:return BcF(V,D,n,f);case 3:return dqo(V,D,n,f);case 10:return uY6(V,D,n,f);case 27:return uY6(V,D,n,f);case 12:return Ncl(V,D);case 2:return mqp(V,D,n,f);case 5:return zXF(V,D,n,f);case 9:return RXP(V,D,n,f);case 6:return Cbo(V,D,n,f);case 25:return q0U(V,D,n,f);case 1:return _.jP(V[0],rZF,26)?XJr(V,D,n,f):uY6(V,D,n,f);default:return{}}},Cbo=function(V,D,f,n){V=V.map(function(t){return{id:t.getId().getId(),
serviceId:"youtube",name:t.getName(),description:_.df(t,3),type:vk(t),lastEditedUtc:_.JZP(_.bW(t,_.E1,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:_.df(t,13),thumbnails:k1(Lp(t))}});
return{action:D,docs:V,viewToken:n,view:f||"youtube",v2Translated:!0}},mqp=function(V,D,f,n){var t=V.map(function(J){var H=J.getId().getId(),Q=_.df(J,7),T=J.getName(),y=vk(J),Z=_.JZP(_.bW(J,_.E1,12)).getTime(),l=J.getUrl(),G=Number(GYZ(J)),F=_.df(J,3),k=_.df(J,11),d=k1(Lp(J));
var z=_.bW(J,Iz,21);z=_.ks(z,1);var C=_.bW(J,Iz,21);C=_.df(C,10);var A=_.df(J,13);var O=_.bW(J,Iz,21);O=_.ks(O,9);var W=_.bW(J,Iz,21);W=_.df(W,11);H={id:H,serviceId:"docs",mimeType:Q,name:T,type:y,lastEditedUtc:Z,url:l,sizeBytes:G,description:F,iconUrl:k,thumbnails:d,isShared:z,downloadUrl:C,embedUrl:A,copyable:O,resourceKey:W};Q=_.bW(J,Iz,21);_.ks(Q,12)&&(H.uploadState="success",H.isNew=!0);Q=_.bW(J,Iz,21);_.jP(Q,S$,3)&&(J=_.bW(J,Iz,21),J=_.bW(J,S$,3),_.jP(J,$N,2)&&(Q=NN(J.getDuration().getSeconds()),
T=J.getDuration(),T=_.fJ(T,2),H.duration=Q+T/1E9),H.aspectRatio=J.getAspectRatio());return H});
return{action:D,docs:t,viewToken:n,view:f||"all",extraUserInputs:ANl(V),v2Translated:!0}},zXF=function(V,D,f,n){V=V.map(function(t){var J=_.bW(t,jqH,15);
J=_.bW(J,ig,1);yf(t,10,ig,J);return{id:t.getId().getId(),serviceId:"web",mimeType:_.df(t,7),name:t.getName(),type:vk(t),url:t.getUrl(),description:_.df(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(t))}});
return{action:D,docs:V,viewToken:n,view:f||"image-search",v2Translated:!0}},RXP=function(V,D,f,n){V=V.map(function(t){return{serviceId:"url",
name:Lp(t)[0].getUrl().split("/").pop(),type:vk(t),mimeType:_.df(t,7),url:t.getUrl(),description:_.df(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(t))}});
return{action:D,docs:V,viewToken:n,view:f||"url",v2Translated:!0}},XJr=function(V,D,f,n){V=V.map(function(t){return{id:t.getId().getId(),
serviceId:"picasa",name:t.getName(),type:vk(t),description:_.df(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(t))}});
return{action:D,docs:V,viewToken:n,view:f||"webcam",v2Translated:!0}},uY6=function(V,D,f,n){return{action:D,
docs:V.map(aJu),viewToken:n,view:Y0E(f||"upload",V),extraUserInputs:ANl(V),v2Translated:!0}},Y0E=function(V,D){return D.some(function(f){var n;
return((n=_.bW(f,WN,30))==null?void 0:_.u4(n,3))===9})?V+"/gmailphotos":V},dqo=function(V,D,f,n){var t=V.map(function(J){var H={id:J.getId().getId(),
serviceId:"picasa",mimeType:_.df(J,7),name:J.getName(),type:vk(J),lastEditedUtc:_.JZP(_.bW(J,_.E1,12)).getTime(),url:J.getUrl(),sizeBytes:Number(GYZ(J)),description:_.df(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(J)),mediaKey:J.getId().getId(),parentId:_.df(J,4)},Q,T=(Q=_.bW(J,Qql,18))==null?void 0:_.bW(Q,wB6,3);T&&(H.latitude=Bb(T,1),H.longitude=Bb(T,2));var y;J=(y=_.bW(J,Qql,18))==null?void 0:sk(y,6);y=J!=null?NN(J):void 0;y&&(H.version=
y);return H});
return{action:D,docs:t,viewToken:n,view:f||"photos",extraUserInputs:ANl(V),v2Translated:!0}},BcF=function(V,D,f,n){V=V.map(function(t){return{id:t.getId().getId(),
serviceId:"et",name:Lp(t)[0].getUrl().split("/").pop(),description:_.df(t,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(t),"etjpg")}});
return{action:D,docs:V,viewToken:n,view:f||"et",v2Translated:!0}},q0U=function(V,D,f,n){V=V.map(function(t){var J=t.getId().getId(),H=n["2"];
return{id:J,serviceId:H.type!=="gmail_themes"&&H.parent==="6226252643674576769"?"picasa":"static_themes",name:t.getName(),mimeType:_.df(t,7),type:vk(t),description:_.df(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:t.getUrl(),thumbnails:k1(Lp(t))}});
return{action:D,docs:V,viewToken:n,view:f||"photos",v2Translated:!0}},Ncl=function(V,D){V=V.map(function(f){var n=_.bW(f,HwU,27);
n=_.c7(n,1,_.Yf,_.DC())[0];return{id:f.getId().getId(),serviceId:"contacts",mimeType:_.df(f,7),name:f.getName(),description:_.df(f,3),url:"mailto:"+n,thumbnail:[{url:_.df(f,11)}],email:n}});
return{action:D,docs:V,view:"contacts",v2Translated:!0}},sPp=function(V){if(!V)return{};
var D=_.df(V,3);D=D&&JSON.parse(D)||{};return{0:_.df(V,1),1:_.df(V,2),2:D}},k1=function(V,D){D=D===void 0?"":D;
if(!V.length)return null;D=="etjpg"&&(V=V.filter(function(f){return f.getUrl().includes("w1200-h300")}));
return V.map(function(f){return{url:f.getUrl(),height:f.getHeight(),width:f.getWidth(),type:D}})},ANl=function(V){return{isAttachment:V.some(function(D){return _.ks(D,31)})}},aJu=function(V){var D,f={id:(D=V.getId())==null?void 0:D.getId(),
serviceId:$qE(V),mimeType:_.df(V,7),name:V.getName(),type:vk(V),sizeBytes:Number(GYZ(V)),description:_.df(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k1(Lp(V)),isNew:!0};if(D=_.bW(V,WN,30)){f.dataUrl=_.df(D,1)||null;a:{var n=_.bW(V,WN,30);switch(_.u4(n,3)){case 9:n=_.zl(n,yZF,2,pp);n={remoteRefs:n&&_.df(n,1)};break a;case 10:case 15:n=_.zl(n,K3E,4,pp);var t=Lp(V);n={photo_id:n&&_.df(n,1),media_key:V.getId().getId(),media_type:_.u4(V,6)===1?1:2,image_url:t&&
t[0].getUrl(),width:t&&String(t[0].getWidth()),height:t&&String(t[0].getHeight())};break a}n=null}f.uploadMetadata=n;f.uploadId=_.df(D,9)||null;f.uploadState=iGV(D)||null}(n=D&&_.zl(D,K3E,4,pp))&&(f.id=_.df(n,1));(n=D&&_.zl(D,ZwU,5,pp))&&(f.contentId=_.df(n,1));(n=D&&_.zl(D,TRo,7,pp))&&(f.contentId=_.df(n,1));(n=D&&_.zl(D,bwl,6,pp))&&(f.contentId=_.df(n,1));(D==null?void 0:_.u4(D,3))===1&&(f.mediaKey=V.getId().getId());return f},$qE=function(V){var D;
switch(((D=_.bW(V,WN,30))==null?void 0:_.u4(D,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},vk=function(V){switch(_.u4(V,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 _.df(V,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},iGV=function(V){switch(V==null?void 0:_.u4(V,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 LKE,S0u,WKu,pJU;_.IJE=function(V,D){var f=D||{};D=f.document||document;var n=_.HS(V).toString(),t=(new G$(D)).createElement("SCRIPT"),J={script_:t,timeout_:void 0},H=new Yq(S0u,J),Q=null,T=f.timeout!=null?f.timeout:5E3;T>0&&(Q=window.setTimeout(function(){WKu(t,!0);H.errback(new pJU(1,"Timeout reached for loading script "+n))},T),J.timeout_=Q);
t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||(WKu(t,f.cleanupWhenDone||!1,Q),H.callback(null))};
t.onerror=function(){WKu(t,!0,Q);H.errback(new pJU(0,"Error while loading script "+n))};
J=f.attributes||{};_.sB.extend(J,{type:"text/javascript",charset:"UTF-8"});UUU(t,J);_.Yx(t,V);LKE(D).appendChild(t);return H};
LKE=function(V){var D=jB("HEAD",V);return D&&D.length!==0?D[0]:V.documentElement};
S0u=function(){if(this&&this.script_){var V=this.script_;V&&V.tagName=="SCRIPT"&&WKu(V,!0,this.timeout_)}};
WKu=function(V,D,f){f!=null&&_.fx.clearTimeout(f);V.onload=function(){};
V.onerror=function(){};
V.onreadystatechange=function(){};
D&&window.setTimeout(function(){_.ZC(V)},0)};
pJU=function(V,D){var f="Jsloader error (code #"+V+")";D&&(f+=": "+D);_.VY.call(this,f);this.code=V};
_.fg(pJU,_.VY);var OG6=_.WV(["https://apis.google.com/js/api.js"]),xqr=_.t4(OG6),Vdo=function(V,D){var f=!1,n=MQu(V,D).then(function(J){f=!0;return J}),t=_.k6u(5E3).then(function(){return f?MQu(V,D):hXu(D).then(function(J){return Uqr(J,V)})});
return bcY([n,t])},MQu=function(V,D){return DlE(D).then(function(f){return Uqr(f,V)})},Uqr=function(V,D){var f=_.tc(D,"gapi.")?D.slice(5):D;
return V[f]?_.Qv(V[f]):new _.Qf(function(n,t){var J=F6(function(){t(Error("cb"))},3E4);
V.load(D,{callback:function(){_.fx.clearTimeout(J);n(V[f])},
onerror:function(H){_.fx.clearTimeout(J);t(H)}})})},DlE=function(V){return V.gapi&&V.gapi.load?_.Qv(V.gapi):hXu(V)},hXu=function(V){return _.IJE(xqr,{document:V.document}).then(function(){return V.gapi})},f9r=function(){};
f9r.prototype.load=function(V,D){D=D===void 0?window:D;var f=Date.now();return Vdo(V,D).then(function(n){var t=Date.now();return{library:n,loadStartMs:f,loadEndMs:t}},function(n){throw n instanceof Error?n:Error(String(n));
})};var Q9L=function(){_.cq.call(this);this.gapiLoader_=new f9r;this.origin_=null;this.gapiPickerIframeResolver_=_.Sl();this.gapiIframesResolver_=_.Sl();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.v(Q9L,_.cq);var nwP=function(V,D){var f=_.Yw("gapi.iframes",D);return f?(V=Date.now(),_.Qv({library:f,loadStartMs:V,loadEndMs:V})):V.gapiLoader_.load("gapi.iframes",D)},tdV=function(V,D,f,n,t,J){var H=!1;
H=H===void 0?!1:H;nwP(V,Nr(D.ownerDocument)).then(function(Q){var T=Q.library;V.gapiIframesResolver_.resolve(T);Q=V.gapiPickerIframeResolver_;var y=Q.resolve,Z=H;Z=Z===void 0?!1:Z;var l={};l["host-message-handler"]=f;V.hostMessageHandlerInternal_=l;var G=_.Y4(n);G=_.Y4(G);G=_.xq(_.O7(_.Ii(new _.Ll,G.scheme_),G.JSC$8122_domain_),G.JSC$8122_port_).toString();V.origin_=G;G=(new FHu).setUrl(n);G.JSC$8137_obj_.where=D;G.JSC$8137_obj_.allowPost=Z;G.JSC$8137_obj_.messageHandlers=l;Z=_.Yw("makeWhiteListIframesFilter",
T)([V.origin_]);G.JSC$8137_obj_.messageHandlersFilter=Z;t!=null&&(G.JSC$8137_obj_.id=t);J!=null&&(G.JSC$8137_obj_.rpctoken=J);Z=clV(G);Z.JSC$8134_obj_.style={display:"block","min-width":"100%",width:"1px"};Z.JSC$8134_obj_.height="100%";clV(G).value().allow="camera 'src' "+V.origin_;T=T.getContext().openChild(G.value());y.call(Q,T)},function(Q){V.gapiIframesResolver_.reject(Q);
V.gapiPickerIframeResolver_.reject(Q)});
return V.gapiPickerIframeResolver_.promise},Pa6=function(V,D){return _.eT([V.gapiIframesResolver_.promise,
V.gapiPickerIframeResolver_.promise]).then(function(f){var n=_.r(f);f=n.next().value;return(n=n.next().value)?n.send("picker-message-handler",D,void 0,_.Yw("makeWhiteListIframesFilter",f)([V.origin_])):_.Br(Error("db"))})};
Q9L.prototype.disposeInternal=function(){owV(this);_.cq.prototype.disposeInternal.call(this)};
var owV=function(V){V.gapiPickerIframeResolver_.promise.then(function(D){D&&(D.unregister("host-message-handler"),delete V.hostMessageHandlerInternal_["host-message-handler"])})};var JhP=function(){this.JSC$8224_nextId=0};var HZF=function(V,D){switch(V.action){case "select-contacts":V=rhl(V.contacts);break;case "visibility":V=V.visible;var f=new xN;V=_.Cg(f,1,7).setVisible(V);f={};f["iframe-command"]=V.serialize();V=f;break;default:V=null}return V?Pa6(D,V):_.Qv()},rhl=function(V){if(!V||V.length==0)return null;
var D=new xN;_.Cg(D,1,11);var f=new JhP;V.forEach(function(n){if(n.email){var t=new gf;t=_.O1(t,2,n.name?n.name:n.email);var J=new HwU;n=_.rZ9(J,1,_.Ec,n.email,_.Yf);n=_.fc(t,27,n);t=new ofY;J=":"+(f.JSC$8224_nextId++).toString(36);t=_.O1(t,1,J);t=_.Cg(t,2,12);n=_.fc(n,1,t)}else n=null;n&&yf(D,7,gf,n)});
V={};V["iframe-command"]=D.serialize();return V};_.w9V=function(){if(RxY){var V=/Windows NT ([0-9.]+)/;return(V=V.exec(_.jR()))?V[1]:"0"}return _.zxX?(V=/1[0|1][_.][0-9_.]+/,(V=V.exec(_.jR()))?V[0].replace(/_/g,"."):"10"):n1n?(V=/Android\s+([^\);]+)(\)|;)/,(V=V.exec(_.jR()))?V[1]:""):qNn||XDU||ETY?(V=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(V=V.exec(_.jR()))?V[1].replace(/_/g,"."):""):""}();var sy;sy=function(V){return(V=V.exec(_.jR()))?V[1]:""};
_.Q9U=function(){if(_.Qd)return sy(/Firefox\/([0-9.]+)/);if(_.JF||Ob||uI9)return WUn;if(_.Tl){if(_.Cx()||_.KXn()){var V=sy(/CriOS\/([0-9.]+)/);if(V)return V}return sy(/Chrome\/([0-9.]+)/)}if(_.CH&&!_.Cx())return sy(/Version\/([0-9.]+)/);if(voY||kRX){if(V=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.jR()))return V[1]+"."+V[2]}else if(xXY)return(V=sy(/Android\s+([0-9.]+)/))?V:sy(/Version\/([0-9.]+)/);return""}();var Tjl=function(){};
_.U5(Tjl);Tjl.prototype.nextId_=0;_.Bk=function(V){return":"+(V.nextId_++).toString(36)};var dA=function(V){_.jT.call(this);this.JSC$8232_dom_=V||jC();this.JSC$8232_id_=null;this.inDocument_=!1;this.JSC$8232_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.fg(dA,_.jT);dA.prototype.idGenerator_=Tjl.getInstance();dA.prototype.getId=function(){return this.JSC$8232_id_||(this.JSC$8232_id_=_.Bk(this.idGenerator_))};
dA.prototype.getElement=function(){return this.JSC$8232_element_};
var uT=function(V){V.googUiComponentHandler_||(V.googUiComponentHandler_=new _.fl(V));return V.googUiComponentHandler_},bZu=function(V,D){if(V==D)throw Error("eb");
var f;if(f=D&&V.parent_&&V.JSC$8232_id_){f=V.parent_;var n=V.JSC$8232_id_;f=f.childIndex_&&n?_.sB.get(f.childIndex_,n)||null:null}if(f&&V.parent_!=D)throw Error("eb");V.parent_=D;dA.superClass_.setParentEventTarget.call(V,D)};
dA.prototype.setParentEventTarget=function(V){if(this.parent_&&this.parent_!=V)throw Error("fb");dA.superClass_.setParentEventTarget.call(this,V)};
dA.prototype.JSC$8234_createDom=function(){this.JSC$8232_element_=this.JSC$8232_dom_.createElement("DIV")};
dA.prototype.render=function(V){K0P(this,V)};
var K0P=function(V,D,f){if(V.inDocument_)throw Error("gb");V.JSC$8232_element_||V.JSC$8234_createDom();D?D.insertBefore(V.JSC$8232_element_,f||null):V.JSC$8232_dom_.JSC$7414_document_.body.appendChild(V.JSC$8232_element_);V.parent_&&!V.parent_.inDocument_||V.enterDocument()};
_.P=dA.prototype;_.P.decorate=function(V){if(this.inDocument_)throw Error("gb");if(V&&this.canDecorate(V)){this.wasDecorated_=!0;var D=_.mk(V);this.JSC$8232_dom_&&this.JSC$8232_dom_.JSC$7414_document_==D||(this.JSC$8232_dom_=jC(V));this.decorateInternal(V);this.enterDocument()}else throw Error("hb");};
_.P.canDecorate=function(){return!0};
_.P.decorateInternal=function(V){this.JSC$8232_element_=V};
_.P.enterDocument=function(){this.inDocument_=!0;yhr(this,function(V){!V.inDocument_&&V.getElement()&&V.enterDocument()})};
_.P.exitDocument=function(){yhr(this,function(V){V.inDocument_&&V.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.P.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);yhr(this,function(V){V.dispose()});
!this.wasDecorated_&&this.JSC$8232_element_&&_.ZC(this.JSC$8232_element_);this.parent_=this.model_=this.JSC$8232_element_=this.childIndex_=this.children_=null;dA.superClass_.disposeInternal.call(this)};
_.P.getModel=function(){return this.model_};
_.P.addChild=function(V,D){var f=this.children_?this.children_.length:0;if(V.inDocument_&&(D||!this.inDocument_))throw Error("gb");if(f<0||f>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);V.parent_==this?(_.sB.set(this.childIndex_,V.getId(),V),_.IY(this.children_,V)):_.sB.add(this.childIndex_,V.getId(),V);bZu(V,this);_.e9x(this.children_,f,0,V);V.inDocument_&&this.inDocument_&&V.parent_==this?(D=this.getContentElement(),
(D.childNodes[f]||null)!=V.getElement()&&(V.getElement().parentElement==D&&D.removeChild(V.getElement()),f=D.childNodes[f]||null,D.insertBefore(V.getElement(),f))):D?(this.JSC$8232_element_||this.JSC$8234_createDom(),f=this.children_?this.children_[f+1]||null:null,K0P(V,this.getContentElement(),f?f.JSC$8232_element_:null)):this.inDocument_&&!V.inDocument_&&V.JSC$8232_element_&&V.JSC$8232_element_.parentNode&&V.JSC$8232_element_.parentNode.nodeType==1&&V.enterDocument()};
_.P.getContentElement=function(){return this.JSC$8232_element_};
var yhr=function(V,D){V.children_&&V.children_.forEach(D,void 0)};
dA.prototype.removeChild=function(V,D){if(V){var f=typeof V==="string"?V:V.getId();V=this.childIndex_&&f?_.sB.get(this.childIndex_,f)||null:null;f&&V&&(_.sB.remove(this.childIndex_,f),_.IY(this.children_,V),D&&(V.exitDocument(),V.JSC$8232_element_&&_.ZC(V.JSC$8232_element_)),bZu(V,null))}if(!V)throw Error("jb");return V};_.fg(f9c,DlR);_.fg(nwZ,DlR);var ZZP;var j9l=function(V,D){D?V.setAttribute("role",D):V.removeAttribute("role")},N7=function(V,D,f){Array.isArray(f)&&(f=f.join(" "));
var n="aria-"+D;f===""||f==void 0?(ZZP||(f={},ZZP=(f.atomic=!1,f.autocomplete="none",f.dropeffect="none",f.haspopup=!1,f.live="off",f.multiline=!1,f.multiselectable=!1,f.orientation="vertical",f.readonly=!1,f.relevant="additions text",f.required=!1,f.sort="none",f.busy=!1,f.disabled=!1,f.hidden=!1,f.invalid="false",f)),f=ZZP,D in f?V.setAttribute(n,f[D]):V.removeAttribute(n)):V.setAttribute(n,f)};var l9L;_.m6=function(V,D,f){_.jT.call(this);this.target=V;this.handle=D||V;this.limits=f||new NM(NaN,NaN,NaN,NaN);this.JSC$8237_document_=_.mk(V);this.JSC$8237_eventHandler_=new _.fl(this);_.wX(this,this.JSC$8237_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;_.kt(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=l9L};
_.fg(_.m6,_.jT);l9L=_.fx.document&&_.fx.document.documentElement&&!!_.fx.document.documentElement.setCapture&&!!_.fx.document.releaseCapture;_.G2F=function(V,D){V.hysteresisDistanceSquared_=Math.pow(D,2)};
_.P=_.m6.prototype;_.P.setEnabled=function(V){this.enabled_=V};
_.P.disposeInternal=function(){_.m6.superClass_.disposeInternal.call(this);_.ZU(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8237_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8237_document_.releaseCapture();this.handle=this.target=null};
_.P.startDrag=function(V){var D=V.type=="mousedown";if(!this.enabled_||this.dragging_||D&&(V.event_.button!=0||_.zxX&&V.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new zg("start",this,V.clientX,V.clientY,V)))this.dragging_=!0,D&&V.preventDefault();else return;else D&&V.preventDefault();D=this.JSC$8237_document_;var f=D.documentElement,n=!this.useSetCapture_;this.JSC$8237_eventHandler_.listen(D,["touchmove","mousemove"],this.handleMove_,
{capture:n,passive:!1});this.JSC$8237_eventHandler_.listen(D,["touchend","mouseup"],this.endDrag,n);this.useSetCapture_?(f.setCapture(!1),this.JSC$8237_eventHandler_.listen(f,"losecapture",this.endDrag)):this.JSC$8237_eventHandler_.listen(Nr(D),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8237_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,n);this.clientX=this.startX=V.clientX;this.clientY=this.startY=V.clientY;this.screenX=V.screenX;this.screenY=V.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=ZN(jC(this.JSC$8237_document_))}};
_.P.endDrag=function(V,D){this.JSC$8237_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8237_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new zg("end",this,V.clientX,V.clientY,V,eUE(this,this.deltaX),chr(this,this.deltaY),D||V.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.P.handleMove_=function(V){if(this.enabled_){var D=V.clientX-this.clientX,f=V.clientY-this.clientY;this.clientX=V.clientX;this.clientY=V.clientY;this.screenX=V.screenX;this.screenY=V.screenY;if(!this.dragging_){var n=this.startX-this.clientX,t=this.startY-this.clientY;if(n*n+t*t>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new zg("start",this,V.clientX,V.clientY,V)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(V);return}}f=F0l(this,D,f);D=f.x;f=f.y;this.dragging_&&this.dispatchEvent(new zg("beforedrag",
this,V.clientX,V.clientY,V,D,f))&&(gwE(this,V,D,f),V.preventDefault())}};
var F0l=function(V,D,f){var n=ZN(jC(V.JSC$8237_document_));D+=n.x-V.pageScroll.x;f+=n.y-V.pageScroll.y;V.pageScroll=n;V.deltaX+=D;V.deltaY+=f;return new _.uB(eUE(V,V.deltaX),chr(V,V.deltaY))};
_.m6.prototype.onScroll_=function(V){var D=F0l(this,0,0);V.clientX=this.clientX;V.clientY=this.clientY;gwE(this,V,D.x,D.y)};
var gwE=function(V,D,f,n){V.target.style.left=f+"px";V.target.style.top=n+"px";V.dispatchEvent(new zg("drag",V,D.clientX,D.clientY,D,f,n))},eUE=function(V,D){var f=V.limits;
V=isNaN(f.left)?null:f.left;f=isNaN(f.width)?0:f.width;return Math.min(V!=null?V+f:Infinity,Math.max(V!=null?V:-Infinity,D))},chr=function(V,D){var f=V.limits;
V=isNaN(f.top)?null:f.top;f=isNaN(f.height)?0:f.height;return Math.min(V!=null?V+f:Infinity,Math.max(V!=null?V:-Infinity,D))};
_.m6.prototype.isDragging=function(){return this.dragging_};
var zg=function(V,D,f,n,t,J,H){_.TG.call(this,V);this.clientX=f;this.clientY=n;this.browserEvent=t;this.left=J!==void 0?J:D.deltaX;this.top=H!==void 0?H:D.deltaY};
_.fg(zg,_.TG);var RH=function(V){this.JSC$8244_map_=new Map;var D=arguments.length;if(D>1){if(D%2)throw Error("pa");for(var f=0;f<D;f+=2)this.set(arguments[f],arguments[f+1])}else V&&this.addAll(V)};
_.P=RH.prototype;_.P.getCount=function(){return this.JSC$8244_map_.size};
_.P.getValues=function(){return Array.from(this.JSC$8244_map_.values())};
_.P.getKeys=function(){return Array.from(this.JSC$8244_map_.keys())};
_.P.containsKey=function(V){return this.JSC$8244_map_.has(V)};
_.P.containsValue=function(V){return this.getValues().some(function(D){return D==V})};
_.P.equals=function(V,D){var f=this;D=D===void 0?function(n,t){return n===t}:D;
return this===V?!0:this.JSC$8244_map_.size!=V.getCount()?!1:this.getKeys().every(function(n){return D(f.JSC$8244_map_.get(n),V.get(n))})};
_.P.isEmpty=function(){return this.JSC$8244_map_.size==0};
_.P.clear=function(){this.JSC$8244_map_.clear()};
_.P.remove=function(V){return this.JSC$8244_map_.delete(V)};
_.P.get=function(V,D){return this.JSC$8244_map_.has(V)?this.JSC$8244_map_.get(V):D};
_.P.set=function(V,D){this.JSC$8244_map_.set(V,D);return this};
_.P.addAll=function(V){if(V instanceof RH){V=_.r(V.JSC$8244_map_);for(var D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;this.JSC$8244_map_.set(D,f)}}else if(V)for(V=_.r(Object.entries(V)),D=V.next();!D.done;D=V.next())f=_.r(D.value),D=f.next().value,f=f.next().value,this.JSC$8244_map_.set(D,f)};
_.P.forEach=function(V,D){var f=this;D=D===void 0?this:D;this.JSC$8244_map_.forEach(function(n,t){return V.call(D,n,t,f)})};
_.P.clone=function(){return new RH(this)};(function(){for(var V=["ms","moz","webkit","o"],D,f=0;D=V[f]&&!_.fx.requestAnimationFrame;++f)_.fx.requestAnimationFrame=_.fx[D+"RequestAnimationFrame"],_.fx.cancelAnimationFrame=_.fx[D+"CancelAnimationFrame"]||_.fx[D+"CancelRequestAnimationFrame"];if(!_.fx.requestAnimationFrame){var n=0;_.fx.requestAnimationFrame=function(t){var J=(new Date).getTime(),H=Math.max(0,16-(J-n));n=J+H;return _.fx.setTimeout(function(){t(J+H)},H)};
_.fx.cancelAnimationFrame||(_.fx.cancelAnimationFrame=function(t){clearTimeout(t)})}})();
var vwl=[[],[]],k2u=0,s9l=!1,BjE=0,uBr=function(V,D){var f=BjE++,n={measureTask:{id:f,fn:V.measure,context:D},mutateTask:{id:f,fn:V.mutate,context:D},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(n.args||(n.args=[]),n.args.length=0,n.args.push.apply(n.args,arguments),n.args.push(n.state)):n.args&&n.args.length!=0?(n.args[0]=n.state,n.args.length=1):n.args=[n.state];n.isScheduled||(n.isScheduled=!0,vwl[k2u].push(n));s9l||(s9l=!0,window.requestAnimationFrame(dlH))}},dlH=
function(){s9l=!1;
var V=vwl[k2u],D=V.length;k2u=(k2u+1)%2;for(var f,n=0;n<D;++n){f=V[n];var t=f.measureTask;f.isScheduled=!1;t.fn&&t.fn.apply(t.context,f.args)}for(n=0;n<D;++n)f=V[n],t=f.mutateTask,f.isScheduled=!1,t.fn&&t.fn.apply(t.context,f.args),f.state={};V.length=0};var Njo=_.WV(["about:blank"]),mlL=_.WV(["javascript:undefined"]),zUF=_.t4(Njo);_.HS(zUF);var RUr=_.t4(mlL);_.HS(RUr);var C$=function(V){_.jT.call(this);this.JSC$8250_element_=V;this.listenKeyIn_=_.kt(this.JSC$8250_element_,"focus",this,!0);this.listenKeyOut_=_.kt(this.JSC$8250_element_,"blur",this,!0)};
_.fg(C$,_.jT);C$.prototype.handleEvent=function(V){var D=new _.bG(V.event_);D.type=V.type=="focusin"||V.type=="focus"?"focusin":"focusout";this.dispatchEvent(D)};
C$.prototype.disposeInternal=function(){C$.superClass_.disposeInternal.call(this);Fo(this.listenKeyIn_);Fo(this.listenKeyOut_);delete this.JSC$8250_element_};var CaE=function(V,D){this.JSC$8253_element_=V;this.JSC$8253_dom_=D};var q7=function(V,D){dA.call(this,D);this.useIframeMask_=!!V;this.lastFocus_=null;this.resizeBackgroundTask_=uBr({mutate:this.resizeBackground_},this);uBr({mutate:this.updateModalAndBackground_},this)};
_.fg(q7,dA);_.P=q7.prototype;_.P.focusHandler_=null;_.P.visible_=!1;_.P.bgEl_=null;_.P.bgIframeEl_=null;_.P.tabCatcherElement_=null;_.P.backwardTabWrapInProgress_=!1;_.P.getCssClass=function(){return"goog-modalpopup"};
_.P.getBackgroundElement=function(){return this.bgEl_};
_.P.JSC$8234_createDom=function(){q7.superClass_.JSC$8234_createDom.call(this);var V=this.getElement(),D=b3(this.getCssClass()).split(" ");Ai(V,D);V.tabIndex=0;_.SB(V,!1);qGE(this);X9E(this)};
var qGE=function(V){if(V.useIframeMask_&&!V.bgIframeEl_){var D=V.JSC$8232_dom_.JSC$7416_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.N8(D,zUF);V.bgIframeEl_=D;V.bgIframeEl_.className=V.getCssClass()+"-bg";_.SB(V.bgIframeEl_,!1);dLr(V.bgIframeEl_,0)}V.bgEl_||(V.bgEl_=V.JSC$8232_dom_.JSC$7416_createDom("DIV",V.getCssClass()+"-bg"),_.SB(V.bgEl_,!1))},X9E=function(V){V.tabCatcherElement_||(V.tabCatcherElement_=V.JSC$8232_dom_.createElement("SPAN"),_.SB(V.tabCatcherElement_,
!1),V.tabCatcherElement_.tabIndex=0,V.tabCatcherElement_.style.position="absolute")};
_.P=q7.prototype;_.P.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.P.canDecorate=function(V){return!!V&&V.tagName=="DIV"};
_.P.decorateInternal=function(V){q7.superClass_.decorateInternal.call(this,V);V=b3(this.getCssClass()).split(" ");Ai(this.getElement(),V);qGE(this);X9E(this);this.getElement().tabIndex=0;_.SB(this.getElement(),!1)};
_.P.enterDocument=function(){this.bgIframeEl_&&_.sO(this.bgIframeEl_,this.getElement());_.sO(this.bgEl_,this.getElement());q7.superClass_.enterDocument.call(this);_.BN(this.tabCatcherElement_,this.getElement());this.focusHandler_=new C$(this.JSC$8232_dom_.JSC$7414_document_);uT(this).listen(this.focusHandler_,"focusin",this.onFocus);EwU(this,!1)};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Mr(this.focusHandler_);q7.superClass_.exitDocument.call(this);_.ZC(this.bgIframeEl_);_.ZC(this.bgEl_);_.ZC(this.tabCatcherElement_)};
_.P.setVisible=function(V){if(V!=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_&&EwU(this,V),V){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8232_dom_.JSC$7414_document_.activeElement}catch(t){}this.updateModalAndBackground_();uT(this).listen(this.JSC$8232_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8232_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);AhV(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)cr(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){uT(this).unlisten(this.JSC$8232_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8232_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)cr(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var D=this.JSC$8232_dom_,f=D.JSC$7414_document_.body,n=D.JSC$7414_document_.activeElement||f;if(!this.lastFocus_||this.lastFocus_==f){this.lastFocus_=null;break a}(n==f||D.contains(this.getElement(),n))&&this.lastFocus_.focus()}catch(t){}this.lastFocus_=
null}}};
var EwU=function(V,D){V.modalAriaVisibilityHelper_||(V.modalAriaVisibilityHelper_=new CaE(V.JSC$8232_element_,V.JSC$8232_dom_));V=V.modalAriaVisibilityHelper_;if(D){V.hiddenElements_||(V.hiddenElements_=[]);D=V.JSC$8253_dom_.getChildren(V.JSC$8253_dom_.JSC$7414_document_.body);for(var f=0;f<D.length;f++){var n=D[f],t;if(t=n!=V.JSC$8253_element_)t=n.getAttribute("aria-hidden"),t=!(t==null||t==void 0?0:String(t));t&&(N7(n,"hidden",!0),V.hiddenElements_.push(n))}}else if(V.hiddenElements_){for(D=0;D<
V.hiddenElements_.length;D++)V.hiddenElements_[D].removeAttribute("aria-hidden");V.hiddenElements_=null}};
q7.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var AhV=function(V,D){V.bgIframeEl_&&_.SB(V.bgIframeEl_,D);V.bgEl_&&_.SB(V.bgEl_,D);_.SB(V.getElement(),D);_.SB(V.tabCatcherElement_,D)};
_.P=q7.prototype;_.P.onShow=function(){this.dispatchEvent("show")};
_.P.onHide=function(){AhV(this,!1);this.dispatchEvent("hide")};
_.P.isVisible=function(){return this.visible_};
_.P.focus=function(){this.focusElement_()};
_.P.resizeBackground_=function(){this.bgIframeEl_&&_.SB(this.bgIframeEl_,!1);this.bgEl_&&_.SB(this.bgEl_,!1);var V=this.JSC$8232_dom_.JSC$7414_document_;var D=_.Ki(Nr(this.JSC$8232_dom_.JSC$7414_document_)||window);var f=Math.max(D.width,Math.max(V.body.scrollWidth,V.documentElement.scrollWidth));V=Math.max(D.height,Math.max(V.body.scrollHeight,V.documentElement.scrollHeight));this.bgIframeEl_&&(_.SB(this.bgIframeEl_,!0),_.vpV(this.bgIframeEl_,f,V));this.bgEl_&&(_.SB(this.bgEl_,!0),_.vpV(this.bgEl_,
f,V))};
_.P.reposition=function(){var V;if(_.gpu(this.getElement())=="fixed")var D=V=0;else D=ZN(this.JSC$8232_dom_),V=D.x,D=D.y;var f=slp(this.getElement());var n=_.Ki(Nr(this.JSC$8232_dom_.JSC$7414_document_)||window);V=Math.max(V+n.width/2-f.width/2,0);D=Math.max(D+n.height/2-f.height/2,0);Rz(this.getElement(),V,D);Rz(this.tabCatcherElement_,V,D)};
_.P.onFocus=function(V){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():V.target==this.tabCatcherElement_&&F6(this.focusElement_,0,this)};
_.P.focusElement_=function(){try{this.getElement().focus()}catch(V){}};
_.P.disposeInternal=function(){_.Mr(this.popupShowTransition_);this.popupShowTransition_=null;_.Mr(this.popupHideTransition_);this.popupHideTransition_=null;_.Mr(this.bgShowTransition_);this.bgShowTransition_=null;_.Mr(this.bgHideTransition_);this.bgHideTransition_=null;q7.superClass_.disposeInternal.call(this)};var mH=function(V,D,f){q7.call(this,D,f);this.JSC$8263_class_=V||"modal-dialog";this.buttons_=(new Xu).addButton(a9P,!0).addButton(YGp,!1,!0)};
_.fg(mH,q7);_.P=mH.prototype;_.P.escapeToCancel_=!0;_.P.hasTitleCloseButton_=!0;_.P.modal_=!0;_.P.draggable_=!0;_.P.backgroundElementOpacity_=.5;_.P.title_="";_.P.JSC$8265_dragger_=null;_.P.JSC$8265_disposeOnHide_=!1;_.P.titleEl_=null;_.P.titleTextEl_=null;_.P.titleTextId_=null;_.P.titleCloseEl_=null;_.P.contentEl_=null;_.P.buttonEl_=null;_.P.getCssClass=function(){return this.JSC$8263_class_};
_.P.setTitle=function(V){this.title_=V;this.titleTextEl_&&_.ug(this.titleTextEl_,V)};
_.P.getTitle=function(){return this.title_};
_.P.getContent=function(){return""};
_.P.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var $lV=function(V){V.getElement()||V.render();return V.getElement()};
mH.prototype.getBackgroundElement=function(){this.getElement()||this.render();return mH.superClass_.getBackgroundElement.call(this)};
var iZ6=function(V,D){V.backgroundElementOpacity_=D;V.getElement()&&(D=V.getBackgroundElement())&&dLr(D,V.backgroundElementOpacity_)};
mH.prototype.setDraggable=function(V){this.draggable_=V;SGF(this,V&&this.inDocument_)};
mH.prototype.JSC$8265_handleDrag=function(){};
var SGF=function(V,D){var f=b3(V.JSC$8263_class_+"-title-draggable").split(" ");V.getElement()&&(D?Ai(V.titleEl_,f):Gep(V.titleEl_,f));D&&!V.JSC$8265_dragger_?(D=new _.m6(V.getElement(),V.titleEl_),V.JSC$8265_dragger_=D,Ai(V.titleEl_,f),_.kt(V.JSC$8265_dragger_,"start",V.setDraggerLimits_,!1,V),_.kt(V.JSC$8265_dragger_,"drag",V.JSC$8265_handleDrag,!1,V)):!D&&V.JSC$8265_dragger_&&(V.JSC$8265_dragger_.dispose(),V.JSC$8265_dragger_=null)};
_.P=mH.prototype;
_.P.JSC$8234_createDom=function(){mH.superClass_.JSC$8234_createDom.call(this);var V=this.getElement(),D=this.JSC$8232_dom_;this.titleTextId_=this.getId();var f=this.getId()+".contentEl";this.titleEl_=D.JSC$7416_createDom("DIV",this.JSC$8263_class_+"-title",this.titleTextEl_=D.JSC$7416_createDom("SPAN",{className:this.JSC$8263_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=D.JSC$7416_createDom("SPAN",this.JSC$8263_class_+"-title-close"));tE6(V,this.titleEl_,this.contentEl_=
D.JSC$7416_createDom("DIV",{className:this.JSC$8263_class_+"-content",id:f}),this.buttonEl_=D.JSC$7416_createDom("DIV",this.JSC$8263_class_+"-buttons"));j9l(this.titleTextEl_,"heading");j9l(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;N7(this.titleCloseEl_,"label","Close");j9l(V,"dialog");N7(V,"labelledby",this.titleTextId_||"");_.SB(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(V=this.buttons_,V.JSC$8266_element_=this.buttonEl_,V.render());_.SB(this.buttonEl_,!!this.buttons_);
iZ6(this,this.backgroundElementOpacity_)};
_.P.decorateInternal=function(V){mH.superClass_.decorateInternal.call(this,V);V=this.getElement();var D=this.JSC$8263_class_+"-content";this.contentEl_=e$(document,null,D,V)[0];this.contentEl_||(this.contentEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",D),V.appendChild(this.contentEl_));D=this.JSC$8263_class_+"-title";var f=this.JSC$8263_class_+"-title-text",n=this.JSC$8263_class_+"-title-close";(this.titleEl_=e$(document,null,D,V)[0])?(this.titleTextEl_=e$(document,null,f,this.titleEl_)[0],this.titleCloseEl_=
e$(document,null,n,this.titleEl_)[0]):(this.titleEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",D),V.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=lFV(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.FP("SPAN",{className:f,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;N7(V,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8232_dom_.JSC$7416_createDom("SPAN",
n),this.titleEl_.appendChild(this.titleCloseEl_));_.SB(this.titleCloseEl_,this.hasTitleCloseButton_);D=this.JSC$8263_class_+"-buttons";(this.buttonEl_=e$(document,null,D,V)[0])?(this.buttons_=new Xu(this.JSC$8232_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8232_dom_.JSC$7416_createDom("DIV",D),V.appendChild(this.buttonEl_),this.buttons_&&(V=this.buttons_,V.JSC$8266_element_=this.buttonEl_,V.render()),_.SB(this.buttonEl_,!!this.buttons_));iZ6(this,this.backgroundElementOpacity_)};
_.P.enterDocument=function(){mH.superClass_.enterDocument.call(this);uT(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);uT(this).listen(this.buttonEl_,"click",this.onButtonClick_);SGF(this,this.draggable_);uT(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var V=this.getElement();j9l(V,"dialog");this.titleTextEl_.id!==""&&N7(V,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){V=this.JSC$8232_dom_;
var D=this.getBackgroundElement();V.removeNode(this.bgIframeEl_);V.removeNode(D)}this.isVisible()&&EwU(this,!1)}};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);SGF(this,!1);mH.superClass_.exitDocument.call(this)};
_.P.setVisible=function(V){V!=this.isVisible()&&(this.inDocument_||this.render(),mH.superClass_.setVisible.call(this,V))};
_.P.onShow=function(){mH.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.P.onHide=function(){mH.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8265_disposeOnHide_&&this.dispose()};
_.P.setDraggerLimits_=function(){var V=this.JSC$8232_dom_.JSC$7414_document_,D=_.Ki(Nr(V)||window),f=Math.max(V.body.scrollWidth,D.width);V=Math.max(V.body.scrollHeight,D.height);var n=slp(this.getElement());_.gpu(this.getElement())=="fixed"?this.JSC$8265_dragger_.limits=new NM(0,0,Math.max(0,D.width-n.width),Math.max(0,D.height-n.height)):this.JSC$8265_dragger_.limits=new NM(0,0,f-n.width,V-n.height)};
_.P.onTitleCloseClick_=function(){W0F(this)};
var W0F=function(V){if(V.hasTitleCloseButton_){var D=V.buttons_,f=D&&D.cancelButton_;f?(D=D.get(f),V.dispatchEvent(new Ey(f,D))&&V.setVisible(!1)):V.setVisible(!1)}},p96=function(V){V.hasTitleCloseButton_=!1;
V.titleCloseEl_&&_.SB(V.titleCloseEl_,V.hasTitleCloseButton_)};
mH.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;mH.superClass_.disposeInternal.call(this)};
mH.prototype.onButtonClick_=function(V){a:{for(V=V.target;V!=null&&V!=this.buttonEl_;){if(V.tagName=="BUTTON")break a;V=V.parentNode}V=null}if(V&&!V.disabled){V=V.name;var D=this.buttons_.get(V);this.dispatchEvent(new Ey(V,D))&&this.setVisible(!1)}};
mH.prototype.onKey_=function(V){var D=!1,f=!1,n=this.buttons_,t=V.target;if(V.type=="keydown")if(this.escapeToCancel_&&V.keyCode==27){var J=n&&n.cancelButton_;t=t.tagName=="SELECT"&&!t.disabled;J&&!t?(f=!0,D=n.get(J),D=this.dispatchEvent(new Ey(J,D))):t||(D=!0)}else{if(V.keyCode==9&&V.shiftKey&&t==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(Z){}F6(this.resetBackwardTabWrap_,0,this)}}else if(V.keyCode==13){if(t.tagName=="BUTTON"&&!t.disabled)J=t.name;
else if(t==this.titleCloseEl_)W0F(this);else if(n){var H=n.defaultButton_,Q;if(Q=H)a:{Q=jB("BUTTON",n.JSC$8266_element_);for(var T,y=0;T=Q[y];y++)if(T.name==H||T.id==H){Q=T;break a}Q=null}t=(t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="A")&&!t.disabled;!Q||Q.disabled||t||(J=H)}J&&n&&(f=!0,D=this.dispatchEvent(new Ey(J,String(n.get(J)))))}else t!=this.titleCloseEl_||V.keyCode!=32&&V.key!=" "||W0F(this);if(D||f)V.stopPropagation(),V.preventDefault();D&&this.setVisible(!1)};
var Ey=function(V,D){this.type="dialogselect";this.key=V;this.caption=D};
_.fg(Ey,_.TG);var Xu=function(V){RH.call(this);V||jC();this.cancelButton_=this.JSC$8266_element_=this.defaultButton_=null};
_.fg(Xu,RH);_.P=Xu.prototype;_.P.clear=function(){RH.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.P.set=function(V,D,f,n){RH.prototype.set.call(this,V,D);f&&(this.defaultButton_=V);n&&(this.cancelButton_=V);return this};
_.P.addButton=function(V,D,f){return this.set(V.key,V.caption,D,f)};
_.P.render=function(){if(this.JSC$8266_element_){_.$x(this.JSC$8266_element_,yhc);var V=jC(this.JSC$8266_element_);this.forEach(function(D,f){D=V.JSC$7416_createDom("BUTTON",{name:f},D);f==this.defaultButton_&&(D.className="goog-buttonset-default");this.JSC$8266_element_.appendChild(D)},this)}};
_.P.decorate=function(V){if(V&&V.nodeType==1){this.JSC$8266_element_=V;V=jB("BUTTON",this.JSC$8266_element_);for(var D,f,n,t=0;D=V[t];t++)if(f=D.name||D.id,n=lFV(D)||D.value,f){var J=t==0;this.set(f,n,J,D.name=="cancel");J&&_.M3(D,"goog-buttonset-default")}}};
_.P.getElement=function(){return this.JSC$8266_element_};
var a9P={key:"ok",caption:"OK"},YGp={key:"cancel",caption:"Cancel"},L0r={key:"yes",caption:"Yes"},I9p={key:"no",caption:"No"},OZV={key:"save",caption:"Save"},xll={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Xu).addButton(a9P,!0,!0),(new Xu).addButton(a9P,!0).addButton(YGp,!1,!0),(new Xu).addButton(L0r,!0).addButton(I9p,!1,!0),(new Xu).addButton(L0r).addButton(I9p,!0).addButton(YGp,!1,!0),(new Xu).addButton(xll).addButton(OZV).addButton(YGp,!0,!0));_.fg(tdY,mH);_.fg(Pa3,zs);var MdV=_.WV(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),hUL=_.WV(["//apis.google.com/js/rpc.js"]),K0Z=_.t4(MdV),bZd=_.t4(hUL),JhZ=null;var RV=function(V,D){_.jT.call(this);this.JSC$8275_element_=V;V=_.IO(this.JSC$8275_element_)?this.JSC$8275_element_:this.JSC$8275_element_?this.JSC$8275_element_.body:null;this.isRtl_=!!V&&_.uFp(V);this.listenKey_=_.kt(this.JSC$8275_element_,_.rf?"DOMMouseScroll":"mousewheel",this,D)};
_.fg(RV,_.jT);RV.prototype.handleEvent=function(V){var D=0,f=0,n=V.event_;n.type=="mousewheel"?(V=Ull(-n.wheelDelta),n.wheelDeltaX!==void 0?(D=Ull(-n.wheelDeltaX),f=Ull(-n.wheelDeltaY)):f=V):(V=n.detail,V>100?V=3:V<-100&&(V=-3),n.axis!==void 0&&n.axis===n.HORIZONTAL_AXIS?D=V:f=V);typeof this.maxDeltaX_==="number"&&(D=_.Nw(D,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(f=_.Nw(f,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(D=-D);D=new V1E(V,n,D,f);this.dispatchEvent(D)};
var Ull=function(V){return _.Hb&&(_.zxX||CJc)&&V%40!=0?V:V/40};
RV.prototype.disposeInternal=function(){RV.superClass_.disposeInternal.call(this);Fo(this.listenKey_);this.listenKey_=null};
var V1E=function(V,D,f,n){_.bG.call(this,D);this.type="mousewheel";this.detail=V;this.deltaX=f;this.deltaY=n};
_.fg(V1E,_.bG);_.nY=function(V){var D="instance_";if(V.instance_&&V.hasOwnProperty(D))return V.instance_;D=new V;return V.instance_=D};var TjY;var D4r=_.WV(["https://about:blank"]),fYF=_.WV(['javascript:""']),nJr=_.WV(["about:blank"]);_.fg(Wq,tdY);_.P=Wq.prototype;_.P.JSC$8283_url_="";_.P.JSC$8283_iframe_=null;_.P.iframeLoaded_=!1;_.P.loadedFired_=!1;_.P.callback_=function(){};
_.P.enterDocument=function(){Wq.superClass_.enterDocument.call(this);w9Y(this.getBackgroundElement(),uT(this))};
_.P.render=function(V){var D=this;Wq.superClass_.render.call(this,V);this.useGapi_?nwP(this.iframeManager_,window).then(function(){return t1E(D)}).then(null,function(){D.callback_({action:"error"})}):PEo(this)};
var t1E=function(V){var D=V.JSC$8232_dom_.JSC$7416_createDom("div",["picker-dialog-content","picker-frame"]);_.SB(D,!1);V.getContentElement().appendChild(D);return tdV(V.iframeManager_,D,function(f){var n=gfH(f["iframe-command"]);switch(n.getCommand()){case 1:f=V.callback_;n=_.bW(n,OO,2);var t="";switch(n.getStatus()){case 2:t="cancel";break;case 1:t="picked";break;case 3:t="error"}var J=_.Vh(n,gf,2,_.DC(PmR));n=J.length===0?{action:t}:EKl(J,t,_.bW(n,evo,7));f.call(V,n);V.setVisible(!1);break;case 4:p96(V);
V.callback_({action:"loaded"});break;case 7:case 8:f=V.callback_;a:{t=n.getCommand();J=_.bW(n,OO,2);switch(t){case 7:t="uploadScheduled";break;case 8:t="uploadStateChange";break;default:n={};break a}n=_.Vh(J,gf,2,_.DC(PmR));if(n.length===0)n={action:t};else{var H=_.bW(J,evo,7);J=H&&_.df(H,1);H=sPp(H);n=uY6(n,t,J,H)}}f.call(V,n)}},V.JSC$8283_url_,V.targetId_,V.rpcToken_).then(function(f){V.JSC$8283_iframe_=f.getIframeEl();
oJE(V);_.SB(V.JSC$8283_iframe_.parentElement,!0);_.M3(V.getElement(),"picker-dialog");JUl(V);return f})},PEo=function(V){V.JSC$8283_iframe_=V.JSC$8232_dom_.JSC$7416_createDom("IFRAME",{id:V.targetId_,
name:V.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.N8(V.JSC$8283_iframe_,rU6(V));_.M3(V.getElement(),"picker-dialog");V.getContentElement().appendChild(V.JSC$8283_iframe_);uT(V).listen(V.JSC$8283_iframe_,"load",function(){return void oJE(V)});
V.JSC$8283_iframe_.src=V.JSC$8283_url_;JUl(V)},wIF=function(V){HHU(V,(0,_.F1)(function(D){D.setAuthToken(this.targetId_,this.rpcToken_)},V))},JUl=function(V){var D=_.$4(_.Y4(V.JSC$8283_url_),"title");
D&&V.setTitle(D)},rU6=function(V){return _.QY9("Internet Explorer")>=7&&_.tc(V.JSC$8283_url_,"https")?_.t4(D4r):_.JF?_.t4(fYF):_.t4(nJr)},oJE=function(V){wIF(V);
V.iframeLoaded_=!0;V.JSC$8283_iframe_.tabIndex=0;V.isVisible()&&V.focus()};
Wq.prototype.handleKeydown_=function(V){V.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),V.stopPropagation(),V.preventDefault())};
var HHU=function(V,D){var f=V.JSC$8281_gadgetsDomHelper_;rh9(function(){D(f.getWindow().gadgets.rpc)},f)};
Wq.prototype.setUrl=function(V){V=_.iW(new _.Ll(V),"rpcService",this.targetId_);_.iW(V,"rpctoken",this.rpcToken_);_.U7(V,"rpctoken="+this.rpcToken_);_.Ii(V,"https");this.JSC$8283_url_=V.toString();this.JSC$8283_iframe_&&(this.JSC$8283_iframe_.src=this.JSC$8283_url_)};
var QTF=function(V,D){V.callback_=D;HHU(V,(0,_.F1)(function(f){f.register(this.targetId_,(0,_.F1)(this.handlePickerAction_,this))},V))};
Wq.prototype.handlePickerAction_=function(V){var D=V.action;D=="loaded"&&(this.loadedFired_=!0,TOu(this,new nwZ(this.isVisible())),bHr(this),p96(this),uT(this).unlisten(this.JSC$8232_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8283_iframe_.tabIndex=0);D!="picked"&&D!="cancel"||this.setVisible(!1);this.callback_(V)};
var bHr=function(V){V.JSC$8283_appId_&&TOu(V,new f9c(V.JSC$8283_appId_,window.location.protocol+"//"+window.location.host))};
Wq.prototype.setRelayUrl=function(V){HHU(this,(0,_.F1)(function(D){D.setRelayUrl(this.targetId_,V)},this))};
var TOu=function(V,D){V.useGapi_&&HZF(D,V.iframeManager_).then(null,function(){V.callback_({action:"error"})});
HHU(V,(0,_.F1)(function(f){f.call(this.targetId_,"picker",null,D)},V))};
Wq.prototype.resizePicker_=function(){var V=Nr(this.JSC$8232_dom_.JSC$7414_document_)||window;if(_.$4(_.Y4(this.JSC$8283_url_),"ignoreLimits")=="true")V=new _.bB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.$4(_.Y4(this.JSC$8283_url_),"shadeDialog")=="true"){var D=$lV(this);D=NPp(D);var f=_.Ki(V);V=f.width-80;f=f.height-40;D&&(V-=D.left?D.left:0,V-=D.right?D.right:0,f-=D.top?D.top:0,f-=D.bottom?D.bottom:0);V=new _.bB(V>0?V:0,f>0?f:0)}else(D=this.preferredDialogWidth_)?(D=Math.max(320,
Math.min(1051,D)),(f=this.preferredDialogHeight_)||(f=_.Ki(V).height*.85),f=Math.max(480,Math.min(650,f))):(D=_.Ki(V),f=D.width*.618,f=f<D.height?Math.round(Math.max(480,Math.min(650,f*.85))):Math.round(Math.max(480,Math.min(650,D.height*.85))),D=Math.round(f/.618)),V=_.Ki(V),D=Math.min(D,Math.max(V.width,320)),f=Math.min(f,Math.max(V.height,480)),V=new _.bB(D,f);_.vpV(this.getContentElement(),V);this.reposition()};
Wq.prototype.reposition=function(){if(_.$4(_.Y4(this.JSC$8283_url_),"shadeDialog")=="true"){var V=slp(this.getElement()),D=_.Ki(this.JSC$8232_dom_.getWindow());V=Math.floor(D.width/2-V.width/2);D=$lV(this);if(D=NPp(D)){var f=D.left?D.left:0;f+=D.right?D.right:0;V=Math.floor(V-f/2)}V=V>0?V:0;D=ZN(this.JSC$8232_dom_).y;Rz(this.getElement(),V,D)}else Wq.superClass_.reposition.call(this)};
Wq.prototype.setVisible=function(V){if(V!=this.isVisible()&&this.autoSizeDialog_){var D=this.JSC$8232_dom_.getWindow();V?(this.resizePicker_(),uT(this).listen(D,"resize",this.resizePicker_),this.iframeLoaded_||uT(this).listen(D,"keydown",this.handleKeydown_)):(uT(this).unlisten(D,"resize",this.resizePicker_),this.iframeLoaded_||uT(this).unlisten(D,"keydown",this.handleKeydown_))}Wq.superClass_.setVisible.call(this,V);TOu(this,new nwZ(V))};
Wq.prototype.focus=function(){Wq.superClass_.focus.call(this);if(this.JSC$8283_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8283_iframe_.focus()}catch(V){}};var z_=function(V,D){D=D===void 0?Wq:D;zs.call(this,V);this.pickerConstructor=D;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(V=window.location.origin)||(V=window.location.protocol+"//"+window.location.host);V&&this.urlParamMap_.set("origin",V);this.postProcessors_=[]};
_.v(z_,Pa3);z_.prototype.JSC$8288_disposeOnHide_=!1;
z_.prototype.build=function(){this.JSC$8189_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8189_appId_);this.getRelayUrl()||this.setRelayUrl(_.Mm(_.U7(_.hi(_.Y4(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var V=new this.pickerConstructor(KLH(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);V.JSC$8265_disposeOnHide_=this.JSC$8288_disposeOnHide_;
V.JSC$8283_appId_=this.JSC$8189_appId_;V.loadedFired_&&bHr(V);QTF(V,this.callback_);return V};
var yUU=function(V){V.urlParamMap_.set("multiselectEnabled","true");return V};
z_.prototype.getHeight=function(){return this.dialogHeight_};
z_.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
z_.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
z_.prototype.getWidth=function(){return this.dialogWidth_};
var ZHU=function(V){V.JSC$8288_disposeOnHide_=void 0;return V};
z_.prototype.setRelayUrl=function(V){this.urlParamMap_.set("parent",V);return this};
var jTY=function(V,D){V.urlParamMap_.set("selectButtonLabel",D);return V};
z_.prototype.setSize=function(V,D){this.dialogWidth_=V;this.dialogHeight_=D;return this};
z_.prototype.setTitle=function(V){this.urlParamMap_.set("title",V);return this};
var KLH=function(V){V.postProcessors_.length&&V.urlParamMap_.set("pp",JSON.stringify(V.postProcessors_));V.urlParamMap_.set("nav",FKl(V.nav_));var D=new _.Ll(V.getBaseUrl());V.urlParamMap_.forEach(function(f,n){_.iW(D,n,f)});
return D};var eAH=function(V,D){V.name!==void 0?(this.name=V.name,this.code=lYF[V.name]):(this.code=V=V.code,this.name=G5F(V));_.VY.call(this,YP9("%s %s",this.name,D))};
_.fg(eAH,_.VY);var G5F=function(V){var D=_.sB.findKey(lYF,function(f){return V==f});
if(D===void 0)throw Error("mb`"+V);return D},Au={},lYF=(Au.AbortError=3,Au.EncodingError=5,Au.InvalidModificationError=9,Au.InvalidStateError=7,Au.NotFoundError=1,Au.NotReadableError=4,Au.NoModificationAllowedError=6,Au.PathExistsError=12,Au.QuotaExceededError=10,Au.SecurityError=2,Au.SyntaxError=8,Au.TypeMismatchError=11,Au);var cUU=function(V,D){_.TG.call(this,V.type,D);this.event_=V};
_.fg(cUU,_.TG);var FLE=function(V,D,f){f===void 0&&(f=V.size);return V.slice?V.slice(D,f):null};var j9Y=new WeakMap,ZZZ=function(V,D){V=[V];for(var f=D.length-1;f>=0;--f)V.push(typeof D[f],D[f]);return V.join("\v")};_.G2Z(function(){if(!_.fx.Blob)return!1;var V=new Uint8Array(100);try{var D=new Blob([V])}catch(f){return!1}return D.size!=100?!1:!0});
var gJF=_.G2Z(function(){if(!_.fx.Blob)return!1;var V=new Uint8Array(100);try{var D=new Blob([V])}catch(f){return!1}return FLE(D,0,1)===null?!1:!0});_.fx.U3bHHf!=null||(_.fx.U3bHHf=0);_.fx.U3bHHf++;var eUR={};var OR=void 0;var F09=Symbol("ub");var X9R=MN("WizInjectionContext_Dispatcher");var nZ=Symbol("vb");var ym=function(){this.afterRenderCallbacks=null},hhL=Symbol("wb"),c9=function(V){this.props=V;
this.__unmounted=!1};
c9.prototype.didPatch=function(){};
c9.prototype.didMount=function(){};
c9.prototype.didUnmount=function(){};
c9.prototype.didUpdate=function(){};var mlU=MN("WizInjectionContext_RootElement");var RUc=MN("WizInjectionContext_AppContext"),zU9=MN("WizInjectionContext_ModelRootElement"),CaR=MN("WizInjectionContext_RendererData"),qGR=MN("WizInjectionContext_InjectingConstructor"),Njx=MN("WizInjectionContext_AsyncDeps"),EwL={};var SGZ=!1;var I9F={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:sQ9,enableLazyTsx:B_Y,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:kFd,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var UR=Object.assign({},{attributes:{},handleError:function(V){throw V;}},I9F);var vJl=Symbol("Ab"),jQ=Symbol("Bb"),aY3=Symbol("Cb"),EJ9=Symbol("Db"),LLF=i6(function(V){return VT(V)&&vJl in V});var D4c=Symbol("Eb"),aH={},UlY=(aH[D4c]=!0,aH.debugName="[component]",aH.getComponentStack=function(){for(var V=[],D=this;D;)fY9(D)&&V.push(D.debugName),D=D.parent;return V},aH.registerSignal=function(){},aH.registerEffect=function(){},aH);var DJ=null,nG=!1,rU3=1,JN=Symbol("Fb"),KG={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 Y1=Symbol("Gb"),$1=Symbol("Hb"),oP=Symbol("Ib"),ZHL=Object.assign({},KG,{value:Y1,dirty:!0,error:null,equal:nJc,kind:"computed",producerMustRecompute:function(V){return V.value===Y1||V.value===$1},
producerRecomputeValue:function(V){if(V.value===$1)throw Error("da");var D=V.value;V.value=$1;var f=bHc(V),n=!1;try{var t=V.computation();fG(null);n=D!==Y1&&D!==oP&&t!==oP&&V.equal(D,t)}catch(J){t=oP,V.error=J}finally{KLn(V,f)}n?V.value=D:(V.value=t,V.version++)}});var eAn=function(){throw Error();};var FLR=null,lY9=Object.assign({},KG,{equal:nJc,value:void 0,kind:"signal"});Object.assign({},KG,{value:Y1,dirty:!0,error:null,equal:nJc,kind:"linkedSignal",producerMustRecompute:function(V){return V.value===Y1||V.value===$1},
producerRecomputeValue:function(V){if(V.value===$1)throw Error("da");var D=V.value;V.value=$1;var f=bHc(V);try{var n=V.source();var t=V.computation(n,D===Y1||D===oP?void 0:{source:V.sourceValue,value:D});V.sourceValue=n}catch(J){t=oP,V.error=J}finally{KLn(V,f)}D!==Y1&&t!==oP&&V.equal(D,t)?V.value=D:(V.value=t,V.version++)}});Object.assign({},KG,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(V){V.schedule!==null&&V.schedule(V.ref)},
hasRun:!1,cleanupFn:function(){}});var vJY=Symbol("Jb"),QT=Symbol("Kb");var T4=Array.isArray;var RAX;var k5H={},qbY=zAF(Object.assign({},{consumerAllowSignalWrites:!0},k5H)),jd=zAF(Object.assign({},{consumerAllowSignalWrites:!0},k5H));var lb=0,G4=!1,iT=function(){this.queue=new Set};
iT.prototype.remove=function(V){this.queue.delete(V)};
iT.prototype.clear=function(){this.queue.clear()};
var sTU=function(){iT.apply(this,arguments)};
_.v(sTU,iT);sTU.prototype.schedule=function(V){this.queue.add(V)};
sTU.prototype.flush=function(){if(this.queue.size){G4=!0;try{for(var V=_.r(this.queue),D=V.next();!D.done;D=V.next()){var f=D.value;this.queue.delete(f);try{f.run()}catch(n){BOP(n)}}}finally{G4=!1}}};
var d4F=new sTU,SN=function(){iT.apply(this,arguments)};
_.v(SN,iT);var uTr=function(){SN.apply(this,arguments)};
_.v(uTr,SN);uTr.prototype.schedule=function(V){V.hasRun?this.queue.add(V):V.run()};
uTr.prototype.flush=function(){if(this.queue.size)if(UR.flushRenderEffectsDuringRender){var V=this.queue;this.queue=new Set;IYc(V)}else IYc(this.queue)};
var XIn=new uTr,NOp=function(){SN.apply(this,arguments)};
_.v(NOp,SN);NOp.prototype.schedule=function(V){var D=this;return _.w(function(f){if(f.nextAddress==1)return V.hasRun?f.jumpTo(2):_.b(f,Promise.resolve(),3);if(f.nextAddress!=2)return V.run(),f.return();D.queue.add(V);_.yz(f)})};
NOp.prototype.flush=function(){var V=this;return _.w(function(D){if(D.nextAddress==1)return V.queue.size?_.b(D,Promise.resolve(),2):D.return();IYc(V.queue);_.yz(D)})};
var YbF=new NOp,m4H=function(){SN.apply(this,arguments)};
_.v(m4H,SN);m4H.prototype.schedule=function(V){this.queue.add(V)};
m4H.prototype.flush=function(){this.queue.size&&IYc(this.queue)};
var AUF=new m4H,WLZ=[XIn,d4F,AUF,YbF],zAp=[XIn,AUF,YbF],iHc=[];FLR=function(){pIF();for(var V=_.r(iHc),D=V.next();!D.done;D=V.next())D=D.value,D()};
var BOP=nx;var FY=Symbol("Pb");var cJ=null,M1L,hAU=null,U43;var Wk={},RAY=Object.assign({},KG,(Wk[vJl]=!0,Wk.effectType=jQ,Wk.isResettableContext=!0,Wk.hasRun=!1,Wk.effectFn=null,Wk.consumerIsAlwaysLive=!0,Wk.consumerAllowSignalWrites=!0,Wk.consumerMarkedDirty=$4U,Wk.kind="effect",Wk.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(nG)throw Error("Qb");this.dirty=!1;if(!this.hasRun||HHL(this)){this.hasRun=!0;uBc(this);var V=_.x4(this),D=bHc(this);xl9("effectRun",this.debugName);try{s0(this.effectFn,this.componentStack)}catch(f){throw UR.enableContextBasedComponentStacks&&
kK(f),f;}finally{MdY("effectRun",this.debugName),KLn(this,D),_.x4(V)}}}},Wk.componentStack=void 0,Wk.debugName="[effect]",Wk[Symbol.dispose]=function(){t1R(this);
if(tN(this))for(var V=0;V<this.producerNode.length;V++)PEx(this.producerNode[V],this.producerIndexOfThis[V]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);V=_.r(zAp);for(var D=V.next();!D.done;D=V.next())D.value.remove(this);dln(this)},Wk));var fdL=Object.assign({},RAY,{effectType:aY3});var neX=Symbol("Rb");var tkZ=Object.assign({},RAY,{effectType:jQ});var adZ=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 JBx={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},oex=
{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}]}},C4d={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},wwX=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Hhd={"*":{async:1,dir:0,loading:2,target:3}};var CEl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,p$={},TmZ=(p$[1]=null,p$[2]=function(V,D){return D instanceof BS?uv(D):eo.toString()},p$[3]=function(V,D){return Kc(D)?_.y2(D):CEl.test(String(D))?String(D):eo.toString()},p$[4]=function(V,D){return D instanceof JL?_.HS(D):eo.toString()},p$[5]=function(V,D){return String(D)},p$[7]=null,p$[8]=null,p$[10]=null,p$);var nlZ=Symbol("Ub");var qx9=function(V){var D=qbl,f=V,n="",t="",J=1;V<0&&(V=-V);if(V===Infinity)V=(Infinity*Math.sign(f)).toString();else{for(var H=0;H<XIH.length;H++){var Q=XIH[H];J=D[Q];if(V>=J||J<=1&&V>.1*J){n=Q;break}}n?(n+="B",t=" "):J=1;V=Math.round(f/J*10)/10+t+n}return V},XIH="Y Z E P T G M K  m u n".split(" "),qbl={"":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};_.EJl=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 H9={};RegExp.prototype.hasOwnProperty("sticky");var $YY=function(V){V=String(V);for(var D=function(n,t,J){for(var H=Math.min(t.length-J,n.length),Q=0;Q<H;Q++){var T=t[J+Q];if(n[Q]!==("A"<=T&&T<="Z"?T.toLowerCase():T))return!1}return!0},f=0;(f=V.indexOf("<",f))!=-1;){if(D("\x3c/script",V,f)||D("\x3c!--",V,f))return"zSoyz";
f+=1}return V};var E0={default:"__default"};var GVU=Object.prototype.hasOwnProperty;yBY.prototype=Object.create(null);var Oq=FWn();var O0=null;var Rt9=function(V){this.created=[];this.deleted=[];this.node=V};var Ck3=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var V=this,D=V;V;)D=V,V=V.parentNode;return D};var veU=function(V,D){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=V;this.key=D;this.text=void 0};var $K=null,ib=null,aP=null,WJ=null,uv9=[],dY9=sO9,LG=[],IP=[],fnY=function(V){return qi3(function(D,f,n){aP=ib=D;ib=null;f(n);BmY(null);ib=aP;aP=aP.parentNode;return D},V)}(),DaZ=function(V){return qi3(function(D,f,n){var t={nextSibling:D};
ib=t;f(n);aP&&BmY(D.nextSibling);return t===ib?null:ib},V)}();var xK=[],Eec=0;var Mq=new yBY;var uS=new yBY;var AUp=FWn(),WWZ=AUp[E0.default],Si9=AUp.style,YiY=["focusin","focusout"],IdF="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var NqY=function(){},GP9=function(){},qqn=function(){},zhc=function(){};var D9=Symbol("ac");var UY9,htc=Mk9;var T2=Symbol("bc");var CN3=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(" ")),
Rh9=new Set(["a","font","script","style","title"]);var Qm={setUp:Tqn,tearDown:Tqn,log:Tqn,logNodeRange:Tqn,graft:function(V,D){D()}};var la={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var G2=null,ed=function(V,D){c9.call(this,V);var f=this;this.functionComponent=D;this.hooks=[];this.hookCounter=0;this.disposeEffects=ub(function(n){f.effectContext=n;_.dc(function(){gbR(f,f.el)})},UR.alwaysTrackContexts||!!OR)};
_.v(ed,c9);ed.prototype.render=function(V){var D=G2;G2=this;this.hookCounter=0;var f=fG(jd),n=_.x4(this.effectContext);try{return xl9("render",this.componentName),this.functionComponent(V)}finally{MdY("render",this.componentName),_.x4(n),fG(f),G2=D}};
_.IG.Object.defineProperties(ed.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return OHd(this.functionComponent)}}});var X2Z=Symbol("pc"),dGx=function(V,D,f){this.afterRenderCallbacks=null;this.kind=V;this.props=D;this.children=f};
_.v(dGx,ym);dGx.prototype.render=function(){var V=BqZ(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var D=_.r(this.afterRenderCallbacks),f=D.next();!f.done;f=D.next())f=f.value,V=f(V);return V};
dGx.prototype.getChildren=function(){return this.children};var Ak9=[];eAn=function(V){throw Error("tb`"+V.debugName);};
(function(){var V=O0;O0=function(D){V==null||V(D);asn(D)}})();var aY6=new WeakMap,Ybp=0;var $4L=void 0,iHr={},SbF=new WeakMap,xfX={getComponent:function(V){if(V.hasAttribute("ng-version"))return iHr;if(!V.__wizComponent)return null;V=V.__wizComponent;SbF.set(V.propsAndState,V);return V.propsAndState},
getDirectiveMetadata:function(V){if(V===iHr)return{framework:"wiz",name:"<Root>",props:{}};V=SbF.get(V);if(!V)throw Error("qc");return{framework:"wiz",name:V.name,props:Object.fromEntries(Object.keys(V.props).map(function(D){return[D,D]}))}},
"\u0275setProfiler":function(V){var D;(D=$4L)==null||D();$4L=SbZ(function(){V(2)})},
getInjector:function(V){return V.__wizComponent},
"\u0275getSignalGraph":function(V){var D;V=(D=V.effects)!=null?D:[];var f=YqY(V),n=Array.from(f.keys());D=[];V=[];for(var t=new Map,J=0;J<n.length;J++)t.set(n[J],J);f=_.r(f.entries());for(n=f.next();!n.done;n=f.next()){J=_.r(n.value);n=J.next().value;var H=J.next().value;J=n;n=t.get(J);var Q=aY6.get(J);Q||(Q=Ybp.toString(),aY6.set(J,Q),Ybp++);var T=void 0,y=(T=J.debugName)!=null?T:"";T=y.startsWith("[signal]")?y:y.replace(/@.+/,"");J.kind==="computed"?D.push({label:T,value:J.value,kind:J.kind,epoch:J.version,
debuggableFn:J.computation,id:Q}):J.kind==="signal"?D.push({label:T,value:J.value,kind:J.kind,epoch:J.version,id:Q}):J.kind==="effect"?(y=void 0,D.push({label:T,kind:J.kind,epoch:J.version,debuggableFn:(y=J.effectFn)!=null?y:void 0,id:Q})):D.push({label:T,kind:J.kind,epoch:J.version,id:Q});J=_.r(H);for(H=J.next();!H.done;H=J.next())V.push({consumer:n,producer:t.get(H.value)})}return{nodes:D,edges:V}},
isSignal:function(V){return typeof V==="function"&&V[JN]!==void 0}};Object.assign({},RAY,{effectType:jQ,hasRun:!0,attributes:null});Object.assign({},RAY,{effectType:jQ,hasRun:!0});_.e.debugName="RlDudd";var $GZ={nonNullableCondIsNull:function(){return Error("wc")}};var IsZ=function(){this.map=new Map};
IsZ.prototype.push=function(V,D){var f=this.map;f.has(V)&&(this.multi||(this.multi=new Map),this.multi.set(D,f.get(V)));f.set(V,D)};
IsZ.prototype.pop=function(V){var D=this.map,f=D.get(V),n;f!==void 0&&((n=this.multi)==null?0:n.has(f))?(D.set(V,this.multi.get(f)),this.multi.delete(f)):D.delete(V);return f};_.FB.debugName="nsTGHd";_.gj.debugName="tbhMcf";_.v9.debugName="zyMFzb";_.kw.debugName="vI1rtf";_.V6Z={OUT_OF_ORDER_HOOK_CALL:function(V){return Error("xc`"+V)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("yc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("zc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("Ac")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(V,D){return Error("Bc`"+((D===void 0?0:D)?"IDOM":"Reactive")+"`"+V)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(V,D){return Error("Cc`"+V+"`"+D)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(V){return Error("Dc`"+V)},
USE_ELEMENT_NOT_ASSIGNED:function(V){return Error("Ec`"+String(V))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(V){return Error("Fc`"+String(V))}};UY9=u4L;var rqn=Symbol("Gc");ckY({beforeRender:function(V){var D=_.x4(V.effectContext);try{var f;((f=V.__syncEffects)==null?0:f.length)&&w1X(V.__syncEffects)}finally{_.x4(D)}},
didPatch:function(V){var D=_.x4(V.effectContext);try{var f;((f=V.__syncEffects)==null?0:f.length)&&w1X(V.__syncEffects)}finally{_.x4(D)}},
didUnmount:function(V){var D;((D=V.hooks)==null?0:D.length)&&V.hooks.forEach(HOZ)}});var WLP,pIp,LLp;WLP=_.fx.window;_.CZ=(WLP==null?void 0:(pIp=WLP.yt)==null?void 0:pIp.config_)||(WLP==null?void 0:(LLp=WLP.ytcfg)==null?void 0:LLp.data_)||{};_.M4("yt.config_",_.CZ);var IYr={},KiY=[];_.cI=function(V){var D=_.gQ.apply(1,arguments);var f=Error.call(this,V);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.args=[].concat(_.sz(D));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.cI,Error);var Z$c=function(V,D,f){this.actionName=V;this.optionalAction=D===void 0?!1:D;this.args=f===void 0?null:f;this.returnValue=[]};_.L=function(V){this.name=V};_.Eq=new _.L("signalAction");var ktR=/^[\w.]*$/,GtU={q:!0,search_query:!0},l5R=String(jGn);var L$;L$=Symbol("Hc");_.IH=function(V){this.name=V};
_.IH.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var sGc=function(V){this.key=V},uz3=function(V){this.deferredKey=V},d29=function(){var V=this;
this.providers=new Map;this.JSC$8540_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(V.providers)}}};
d29.prototype.addProvider=function(V){this.providers.set(V.provide,V);var D=this.JSC$8540_deferred.get(V.provide);if(D)try{D.resolver(this.resolve(V.provide))}catch(f){D.rejector(f)}};
d29.prototype.resolve=function(V){return V instanceof uz3?OHu(this,V):V instanceof sGc?x4V(this,V.key,[],!0):x4V(this,V,[])};
var OHu=function(V,D){D=D.deferredKey;if(V.JSC$8540_deferred.has(D))return V.JSC$8540_deferred.get(D).promise;var f={};f.promise=new Promise(function(n,t){f.resolver=n;f.rejector=t});
V.JSC$8540_deferred.set(D,f);return f.promise},x4V=function(V,D,f,n){n=n===void 0?!1:n;
if(f.indexOf(D)>-1)throw Error("Ic`"+D);if(V.cachedValues.has(D))return V.cachedValues.get(D);if(!V.providers.has(D)){if(n)return;throw Error("Jc`"+D);}n=V.providers.get(D);f.push(D);if(n.useValue!==void 0)var t=n.useValue;else if(n.useFactory)t=n[L$]?M1U(V,n[L$],f):[],t=n.useFactory.apply(n,_.sz(t));else if(n.useClass){t=n.useClass;var J=t[L$]?M1U(V,t[L$],f):[];t=new (Function.prototype.bind.apply(t,[null].concat(_.sz(J))))}else throw Error("Kc`"+D);f.pop();n.skipCache||V.cachedValues.set(D,t);return t},
M1U=function(V,D,f){return D?D.map(function(n){return n instanceof sGc?x4V(V,n.key,f,!0):x4V(V,n,f)}):[]};var Bvx;var Ak=new _.IH("ENDPOINT_HANDLER_TOKEN");_.a2=new _.L("urlEndpoint");var hAL=function(){this.data=[];this.cachedPackedInt52=-1};
hAL.prototype.set=function(V,D){D=D===void 0?!0:D;0<=V&&V<52&&Number.isInteger(V)&&this.data[V]!==D&&(this.data[V]=D,this.cachedPackedInt52=-1)};
hAL.prototype.get=function(V){return!!this.data[V]};
var U46=function(V){V.cachedPackedInt52===-1&&(V.cachedPackedInt52=V.data.reduce(function(D,f,n){return D+(f?Math.pow(2,n):0)},0));
return V.cachedPackedInt52};var SEd=function(V){var D=Vku;V=V===void 0?_.Yw("yt.ads.biscotti.lastId_")||"":V;var f=Object,n=f.assign,t={};t.dt=U9Y;t.flash="0";a:{try{var J=D.JSC$8546_win_.top.location.href}catch(oY){J=2;break a}J=J?J===D.doc_.location.href?0:1:2}t=(t.frm=J,t);try{t.u_tz=-(new Date).getTimezoneOffset();try{var H=qm.history.length}catch(oY){H=0}t.u_his=H;var Q;t.u_h=(Q=qm.screen)==null?void 0:Q.height;var T;t.u_w=(T=qm.screen)==null?void 0:T.width;var y;t.u_ah=(y=qm.screen)==null?void 0:y.availHeight;var Z;t.u_aw=
(Z=qm.screen)==null?void 0:Z.availWidth;var l;t.u_cd=(l=qm.screen)==null?void 0:l.colorDepth}catch(oY){}H=D.JSC$8546_win_;try{var G=H.screenX;var F=H.screenY}catch(oY){}try{var k=H.outerWidth;var d=H.outerHeight}catch(oY){}try{var z=H.innerWidth;var C=H.innerHeight}catch(oY){}try{var A=H.screenLeft;var O=H.screenTop}catch(oY){}try{z=H.innerWidth,C=H.innerHeight}catch(oY){}try{var W=H.screen.availWidth;var I=H.screen.availTop}catch(oY){}G=[A,O,G,F,W,I,k,d,z,C];F=jXY(!1,D.JSC$8546_win_.top);k={};var x=
x===void 0?_.fx:x;d=new hAL;"SVGElement"in x&&"createElementNS"in x.document&&d.set(0);z=LXP();z["allow-top-navigation-by-user-activation"]&&d.set(1);z["allow-popups-to-escape-sandbox"]&&d.set(2);x.crypto&&x.crypto.subtle&&d.set(3);"TextDecoder"in x&&"TextEncoder"in x&&d.set(4);x=U46(d);D=(k.bc=x,k.bih=F.height,k.biw=F.width,k.brdim=G.join(),k.vis=tBZ(D.doc_),k.wgl=!!qm.WebGLRenderingContext,k);f=n.call(f,t,D);f.ca_type="image";V&&(f.bid=V);return f},Vku=new function(){var V=window.document;
this.JSC$8546_win_=window;this.doc_=V};
_.M4("yt.ads_.signals_.getAdSignalsString",function(V){return edX(SEd(V))});_.Vd();navigator.userAgent.indexOf(" (CrKey ");var CLU="XMLHttpRequest"in _.fx?function(){return new XMLHttpRequest}:null;var DYP="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),fdU=[].concat(_.sz(DYP),["client_dev_set_cookie"]);var iOZ={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"},Ein="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(_.sz(DYP)),U2U=!1,a5Z=_.Win,x2d=$2c;var F7U=[{messageFn:function(V){return"Cannot read property '"+V.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(V){return"Cannot call '"+V.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(V){return V.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var neY={messageWeights:[],callbackWeights:[{callback:noZ,weight:500},{callback:tvc,weight:500}]};var tkF=function(){this.callbackWeights=[];this.messageWeights=[]},Pkl,c2R=function(){if(!Pkl){var V=Pkl=new tkF;
V.messageWeights.length=0;V.callbackWeights.length=0;lKZ(V,neY)}return Pkl},lKZ=function(V,D){D.messageWeights&&V.messageWeights.push.apply(V.messageWeights,D.messageWeights);
D.callbackWeights&&V.callbackWeights.push.apply(V.callbackWeights,D.callbackWeights)};_.fg(_.KH,_.cq);_.KH.prototype.subscribe=function(V,D,f){var n=this.topics_[V];n||(n=this.topics_[V]=[]);var t=this.JSC$8570_key_;this.subscriptions_[t]=V;this.subscriptions_[t+1]=D;this.subscriptions_[t+2]=f;this.JSC$8570_key_=t+3;n.push(t);return t};
var oeo=function(V){var D=s5R,f=!1,n=D.subscribe("handleError",function(t){f||(f=!0,this.unsubscribeByKey(n),V.apply(void 0,arguments))},D)};
_.KH.prototype.unsubscribe=function(V,D,f){if(V=this.topics_[V]){var n=this.subscriptions_;if(V=V.find(function(t){return n[t+1]==D&&n[t+2]==f}))return this.unsubscribeByKey(V)}return!1};
_.KH.prototype.unsubscribeByKey=function(V){var D=this.subscriptions_[V];if(D){var f=this.topics_[D];this.publishDepth_!=0?(this.pendingKeys_.push(V),this.subscriptions_[V+1]=function(){}):(f&&_.IY(f,V),delete this.subscriptions_[V],delete this.subscriptions_[V+1],delete this.subscriptions_[V+2])}return!!D};
_.KH.prototype.publish=function(V,D){var f=this.topics_[V];if(f){var n=Array(arguments.length-1),t=arguments.length,J;for(J=1;J<t;J++)n[J-1]=arguments[J];if(this.async_)for(J=0;J<f.length;J++)t=f[J],JBo(this.subscriptions_[t+1],this.subscriptions_[t+2],n);else{this.publishDepth_++;try{for(J=0,t=f.length;J<t&&!this.isDisposed();J++){var H=f[J];this.subscriptions_[H+1].apply(this.subscriptions_[H+2],n)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;f=this.pendingKeys_.pop();)this.unsubscribeByKey(f)}}return J!=
0}return!1};
var JBo=function(V,D,f){_.GG(function(){V.apply(D,f)})};
_.KH.prototype.clear=function(V){if(V){var D=this.topics_[V];D&&(D.forEach(this.unsubscribeByKey,this),delete this.topics_[V])}else this.subscriptions_.length=0,this.topics_={}};
_.KH.prototype.getCount=function(V){if(V){var D=this.topics_[V];return D?D.length:0}V=0;for(D in this.topics_)V+=this.getCount(D);return V};
_.KH.prototype.disposeInternal=function(){_.KH.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var s5R=new _.KH;var Pw=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Pw,_.Xm);Pw.prototype.getColdHashData=function(){return _.df(this,3)};
Pw.prototype.getHotHashData=function(){return _.df(this,5)};
Pw.prototype.setHotHashData=function(V){return _.lB(this,5,V)};var llZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(llZ,_.Xm);var ptF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ptF,_.Xm);_.P=ptF.prototype;_.P.getDeviceId=function(){return _.df(this,6)};
_.P.getExperimentIds=function(V){var D=_.c7(this,9,_.vB,3,!0);XF(D,V);return D[V]};
_.P.getPlayerType=function(){return _.u4(this,36)};
_.P.setHomeGroupInfo=function(V){return _.fc(this,81,V)};
_.P.clearLocationPlayabilityToken=function(){return _.tB(this,89)};var Ky=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Ky,_.Xm);Ky.prototype.setKey=function(V){return _.lB(this,1,V)};
Ky.prototype.getValue=function(){return mz(this,2,Iv9)};
var Iv9=[2,3,4,5,6];var rBP=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(rBP,_.Xm);rBP.prototype.setTrackingParams=function(V){return _.tB(this,1,_.qL(V,!1))};var L8F=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(L8F,_.Xm);var cRL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(cRL,_.Xm);cRL.prototype.getExperimentIds=function(V){var D=_.c7(this,5,_.sc,3,!0);XF(D,V);return D[V]};var ee=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ee,_.Xm);ee.prototype.getToken=function(){return _.KJ(this,2)};
ee.prototype.setToken=function(V){return _.lB(this,2,V)};var lN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(lN,_.Xm);lN.prototype.setSafetyMode=function(V){return _.nh(this,5,V)};var bN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(bN,_.Xm);bN.prototype.setClient=function(V){return _.fc(this,1,V)};var e0Y={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 GmY;_.NZ=function(){var V=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.fx.addEventListener("beforeinstallprompt",function(D){D.preventDefault();V.deferredInstallPrompt=D});
_.fx.addEventListener("appinstalled",function(){V.appInstalledEventFired=!0},{once:!0})};
GmY=function(){if(!_.fx.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.fx.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.fx.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.fx.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.fx.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(V){return"WEB_DISPLAY_MODE_UNKNOWN"}};var v8n=function(){this.syncHeaders=!0},kmY=function(V){var D={},f=[];
"USER_SESSION_ID"in _.CZ&&f.push({key:"u",value:_.XB("USER_SESSION_ID")});if(f=_.LqY(f))D.Authorization=f,f=V=V==null?void 0:V.sessionIndex,f===void 0&&(f=Number(_.XB("SESSION_INDEX",0)),f=isNaN(f)?0:f),_.c("voice_search_auth_header_removal")||(D["X-Goog-AuthUser"]=f.toString()),"INNERTUBE_HOST_OVERRIDE"in _.CZ||(D["X-Origin"]=window.location.origin),V===void 0&&"DELEGATED_SESSION_ID"in _.CZ&&(D["X-Goog-PageId"]=_.XB("DELEGATED_SESSION_ID"));return D};var Hhu={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Oy=_.Yw("ytglobal.prefsUserPrefsPrefs_")||{},wwY;_.M4("ytglobal.prefsUserPrefsPrefs_",Oy);_.x1=function(){this.cookieName=_.XB("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.XB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var V=_.ZY.get(this.cookieName,void 0);V&&this.parse(V)};
_.Gm=function(){wwY||(wwY=new _.x1);return wwY};
_.x1.prototype.get=function(V,D){QO6(V);TmP(V);V=Oy[V]!==void 0?Oy[V].toString():null;return V!=null?V:D?D:""};
_.x1.prototype.set=function(V,D){QO6(V);TmP(V);if(D==null)throw Error("Nc");Oy[V]=D.toString()};
_.x1.prototype.getFlag=function(V){return!!((bhF("f"+(Math.floor(V/31)+1))||0)&1<<V%31)};
_.eJ=function(V,D,f){V="f"+(Math.floor(D/31)+1);D=1<<D%31;var n=bhF(V)||0;n=f?n|D:n&~D;n===0?delete Oy[V]:(f=n.toString(16),Oy[V]=f.toString())};
_.x1.prototype.remove=function(V){QO6(V);TmP(V);delete Oy[V]};
_.x1.prototype.save=function(){var V=!0;_.c("web_secure_pref_cookie_killswitch")&&(V=!1);_.j1(this.cookieName,this.dump(),63072E3,this.cookieDomain,V)};
_.x1.prototype.clear=function(){_.sB.clear(Oy)};
_.x1.prototype.dump=function(){var V=[],D;for(D in Oy)Oy.hasOwnProperty(D)&&V.push(D+"="+encodeURIComponent(String(Oy[D])));return V.join("&")};
var TmP=function(V){if(/^f([1-9][0-9]*)$/.test(V))throw Error("Oc`"+V);},QO6=function(V){if(!/^\w+$/.test(V))throw Error("Pc`"+V);
},bhF=function(V){V=Oy[V]!==void 0?Oy[V].toString():null;
return V!=null&&/^[A-Fa-f0-9]+$/.test(V)?parseInt(V,16):null};
_.x1.prototype.parse=function(V){V=decodeURIComponent(V).split("&");for(var D=0;D<V.length;D++){var f=V[D].split("="),n=f[0];(f=f[1])&&(Oy[n]=f.toString())}};var bln={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"},FgL={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},g8R={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},yec={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var ot;_.M7=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.gq=function(V,D,f){return V.addJob(D,0,f)};
_.M7.prototype.addLowPriorityJob=function(V,D){return this.addJob(V,1,D)};
_.lf=function(V,D,f){return V.addJob(D,2,f)};
_.sw=function(V,D,f){return V.addJob(D,3,f)};
_.JI=function(V,D,f){return V.addJob(D,4,f)};
ot=function(V){var D=_.Yw("yt.scheduler.instance.addImmediateJob");D?D(V):V()};
_.M7.prototype.debounce=function(V,D,f){var n=this,t=0,J=function(){t&&n.cancelJob(t);t=n.addJob(V,D,f);n.cancelDebouncedJobMap.set(J,t)};
return J};
_.M7.prototype.cancelThrottle=function(V){(V=this.cancelThrottledJobMap.get(V))&&V()};var hu=function(){_.M7.apply(this,arguments)};
_.v(hu,_.M7);_.kv=function(){hu.instance||(hu.instance=new hu);return hu.instance};
hu.prototype.addJob=function(V,D,f){f!==void 0&&Number.isNaN(Number(f))&&(f=void 0);var n=_.Yw("yt.scheduler.instance.addJob");return n?n(V,D,f):f===void 0?(V(),NaN):_.rO(V,f||0)};
hu.prototype.cancelJob=function(V){if(V===void 0||!Number.isNaN(Number(V))){var D=_.Yw("yt.scheduler.instance.cancelJob");D?D(V):_.wO(V)}};
hu.prototype.start=function(){var V=_.Yw("yt.scheduler.instance.start");V&&V()};
hu.prototype.pause=function(){var V=_.Yw("yt.scheduler.instance.pause");V&&V()};
_.dm=_.kv();_.FT.prototype.set=function(V,D){D===void 0?this.mechanism.remove(V):this.mechanism.set(V,(0,_.vT)(D))};
_.FT.prototype.get=function(V){try{var D=this.mechanism.get(V)}catch(f){return}if(D!==null)try{return JSON.parse(D)}catch(f){throw"Storage: Invalid value was encountered";}};
_.FT.prototype.remove=function(V){this.mechanism.remove(V)};var Uy=function(V){this.mechanism=V};
_.fg(Uy,_.FT);var KWE=function(V){this.data=V},yBV=function(V){return V===void 0||V instanceof KWE?V:new KWE(V)};
Uy.prototype.set=function(V,D){Uy.superClass_.set.call(this,V,yBV(D))};
Uy.prototype.getWrapper=function(V){V=Uy.superClass_.get.call(this,V);if(V===void 0||V instanceof Object)return V;throw"Storage: Invalid value was encountered";};
Uy.prototype.get=function(V){if(V=this.getWrapper(V)){if(V=V.data,V===void 0)throw"Storage: Invalid value was encountered";}else V=void 0;return V};_.fg(gO,Uy);_.Zho=function(V){var D=V.creation;V=V.expiration;return!!V&&V<_.Vd()||!!D&&D>_.Vd()};
gO.prototype.set=function(V,D,f){if(D=yBV(D)){if(f){if(f<_.Vd()){gO.prototype.remove.call(this,V);return}D.expiration=f}D.creation=_.Vd()}gO.superClass_.set.call(this,V,D)};
gO.prototype.getWrapper=function(V,D){var f=gO.superClass_.getWrapper.call(this,V);if(f)if(!D&&_.Zho(f))gO.prototype.remove.call(this,V);else return f};var VS=function(){};
VS.prototype.next=function(){return DB};
var DB={done:!0,value:void 0},fn=function(V){return{value:V,done:!1}};
VS.prototype.__iterator__=function(){return this};
_.jOr=function(V){if(V instanceof VS)return V;if(typeof V.__iterator__=="function")return V.__iterator__(!1);if(_.MU(V)){var D=0,f=new VS;f.next=function(){for(;;){if(D>=V.length)return DB;if(D in V)return fn(V[D++]);D++}};
return f}throw Error("Qc");};var ldU=function(V){if(V instanceof nn||V instanceof t_||V instanceof PE)return V;if(typeof V.next=="function")return new nn(function(){return V});
if(typeof V[Symbol.iterator]=="function")return new nn(function(){return V[Symbol.iterator]()});
if(typeof V.__iterator__=="function")return new nn(function(){return V.__iterator__()});
throw Error("Rc");},nn=function(V){this.func_=V};
nn.prototype.__iterator__=function(){return new t_(this.func_())};
nn.prototype[Symbol.iterator]=function(){return new PE(this.func_())};
nn.prototype.toEs6=function(){return new PE(this.func_())};
var t_=function(V){this.JSC$8654_iter_=V};
_.v(t_,VS);t_.prototype.next=function(){return this.JSC$8654_iter_.next()};
t_.prototype[Symbol.iterator]=function(){return new PE(this.JSC$8654_iter_)};
t_.prototype.toEs6=function(){return new PE(this.JSC$8654_iter_)};
var PE=function(V){nn.call(this,function(){return V});
this.JSC$8657_iter_=V};
_.v(PE,nn);PE.prototype.next=function(){return this.JSC$8657_iter_.next()};var GVL=function(){};var oc=function(){};
_.fg(oc,GVL);oc.prototype.getCount=function(){for(var V=0,D=_.r(this),f=D.next();!f.done;f=D.next())V++;return V};
oc.prototype[Symbol.iterator]=function(){return ldU(this.__iterator__(!0)).toEs6()};
oc.prototype.clear=function(){var V=Array.from(this);V=_.r(V);for(var D=V.next();!D.done;D=V.next())this.remove(D.value)};_.fg(vI,oc);_.P=vI.prototype;_.P.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var V=this.storage_;if(V)try{V.setItem("__sak","1");V.removeItem("__sak");var D=!0}catch(f){D=f instanceof DOMException&&(f.name==="QuotaExceededError"||f.code===22||f.code===1014||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&V&&V.length!==0}else D=!1;this.cachedIsStorageAvailable_=D}return this.cachedIsStorageAvailable_};
_.P.set=function(V,D){J_(this);try{this.storage_.setItem(V,D)}catch(f){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.P.get=function(V){J_(this);V=this.storage_.getItem(V);if(typeof V!=="string"&&V!==null)throw"Storage mechanism: Invalid value was encountered";return V};
_.P.remove=function(V){J_(this);this.storage_.removeItem(V)};
_.P.getCount=function(){J_(this);return this.storage_.length};
_.P.__iterator__=function(V){J_(this);var D=0,f=this.storage_,n=new VS;n.next=function(){if(D>=f.length)return DB;var t=f.key(D++);if(V)return fn(t);t=f.getItem(t);if(typeof t!=="string")throw"Storage mechanism: Invalid value was encountered";return fn(t)};
return n};
_.P.clear=function(){J_(this);this.storage_.clear()};
_.P.key=function(V){J_(this);return this.storage_.key(V)};
var J_=function(V){if(V.storage_==null)throw Error("Sc");V.isAvailable()||nx(Error("Sc"))};_.fg(jbF,vI);_.fg(lkF,vI);_.fg(kJ,oc);kJ.prototype.set=function(V,D){this.mechanism_.set(this.JSC$8672_prefix_+V,D)};
kJ.prototype.get=function(V){return this.mechanism_.get(this.JSC$8672_prefix_+V)};
kJ.prototype.remove=function(V){this.mechanism_.remove(this.JSC$8672_prefix_+V)};
kJ.prototype.__iterator__=function(V){var D=this.mechanism_[Symbol.iterator](),f=this,n=new VS;n.next=function(){var t=D.next();if(t.done)return t;for(t=t.value;t.slice(0,f.JSC$8672_prefix_.length)!=f.JSC$8672_prefix_;){t=D.next();if(t.done)return t;t=t.value}return fn(V?t.slice(f.JSC$8672_prefix_.length):f.mechanism_.get(t))};
return n};_.qY=function(V){this.expiringStorage_=(V=_.GRY(V))?new gO(V):null;this.JSC$8676_domain_=document.domain||window.location.hostname};
_.qY.prototype.set=function(V,D,f,n){f=f||31104E3;this.remove(V);if(this.expiringStorage_)try{this.expiringStorage_.set(V,D,Date.now()+f*1E3);return}catch(J){}var t="";if(n)try{t=escape((0,_.vT)(D))}catch(J){return}else t=escape(D);_.j1(V,t,f,this.JSC$8676_domain_)};
_.qY.prototype.get=function(V,D){var f=void 0,n=!this.expiringStorage_;if(!n)try{f=this.expiringStorage_.get(V)}catch(t){n=!0}if(n&&(f=_.ZY.get(V,void 0))&&(f=unescape(f),D))try{f=JSON.parse(f)}catch(t){this.remove(V),f=void 0}return f};
_.qY.prototype.remove=function(V){this.expiringStorage_&&this.expiringStorage_.remove(V);_.w8Y(V,"/",this.JSC$8676_domain_)};
_.qY.prototype.getCreationTime=function(V){return this.expiringStorage_&&(V=(this.expiringStorage_.getWrapper(V)||{}).creation,typeof V==="number")?V:null};var ceL=function(){var V;return function(){V||(V=new _.qY("ytidb"));return V}}();var go9;_.BI=[];go9=!1;var ilc=voY||kRX;var rl={},etp=(rl.AUTH_INVALID="No user identifier specified.",rl.EXPLICIT_ABORT="Transaction was explicitly aborted.",rl.IDB_NOT_SUPPORTED="IndexedDB is not supported.",rl.MISSING_INDEX="Index not created.",rl.MISSING_OBJECT_STORES="Object stores not created.",rl.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",rl.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",rl.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",rl.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",rl.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",rl.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",rl.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",rl),HE={},cBL=(HE.AUTH_INVALID="ERROR",HE.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",HE.EXPLICIT_ABORT="IGNORED",
HE.IDB_NOT_SUPPORTED="ERROR",HE.MISSING_INDEX="WARNING",HE.MISSING_OBJECT_STORES="ERROR",HE.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",HE.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",HE.QUOTA_EXCEEDED="WARNING",HE.QUOTA_MAYBE_EXCEEDED="WARNING",HE.UNKNOWN_ABORT="WARNING",HE.INCOMPATIBLE_DB_VERSION="WARNING",HE),wl={},FWH=(wl.AUTH_INVALID=!1,wl.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,wl.EXPLICIT_ABORT=!1,wl.IDB_NOT_SUPPORTED=!1,wl.MISSING_INDEX=!1,wl.MISSING_OBJECT_STORES=!1,wl.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,wl.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,wl.QUOTA_EXCEEDED=!1,wl.QUOTA_MAYBE_EXCEEDED=!0,wl.UNKNOWN_ABORT=!0,wl.INCOMPATIBLE_DB_VERSION=!1,wl),RT=function(V,D,f,n,t){D=D===void 0?{}:D;f=f===void 0?etp[V]:f;n=n===void 0?cBL[V]:n;t=t===void 0?FWH[V]:t;_.cI.call(this,f,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:V},D));this.type=V;this.message=f;this.level=n;this.retryable=t;Object.setPrototypeOf(this,RT.prototype)};
_.v(RT,_.cI);var geF=function(V,D){RT.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:D,foundObjectStores:V},etp.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,geF.prototype)};
_.v(geF,RT);var B2Y=function(V,D){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.index=V;this.objectStore=D;Object.setPrototypeOf(this,B2Y.prototype)};
_.v(B2Y,Error);var diR=["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 Eb=function(V){this.executor=V},XT=function(V){var D=this;
this.state={status:"PENDING"};this.JSC$8704_onFulfilled=[];this.JSC$8704_onRejected=[];V=V.executor;var f=function(t){if(D.state.status==="PENDING"){D.state={status:"FULFILLED",value:t};t=_.r(D.JSC$8704_onFulfilled);for(var J=t.next();!J.done;J=t.next())J=J.value,J()}},n=function(t){if(D.state.status==="PENDING"){D.state={status:"REJECTED",
reason:t};t=_.r(D.JSC$8704_onRejected);for(var J=t.next();!J.done;J=t.next())J=J.value,J()}};
try{V(f,n)}catch(t){n(t)}};
XT.all=function(V){return new XT(new Eb(function(D,f){var n=[],t=V.length;t===0&&D(n);for(var J={i$jscomp$467:0};J.i$jscomp$467<V.length;J={i$jscomp$467:J.i$jscomp$467},++J.i$jscomp$467)XT.resolve(V[J.i$jscomp$467]).then(function(H){return function(Q){n[H.i$jscomp$467]=Q;t--;t===0&&D(n)}}(J)).catch(function(H){f(H)})}))};
XT.resolve=function(V){return new XT(new Eb(function(D,f){V instanceof XT?V.then(D,f):D(V)}))};
XT.reject=function(V){return new XT(new Eb(function(D,f){f(V)}))};
XT.prototype.then=function(V,D){var f=this,n=V!=null?V:miZ,t=D!=null?D:N2X;return new XT(new Eb(function(J,H){f.state.status==="PENDING"?(f.JSC$8704_onFulfilled.push(function(){veL(f,f,n,J,H)}),f.JSC$8704_onRejected.push(function(){kVF(f,f,t,J,H)})):f.state.status==="FULFILLED"?veL(f,f,n,J,H):f.state.status==="REJECTED"&&kVF(f,f,t,J,H)}))};
XT.prototype.catch=function(V){return this.then(void 0,V)};
var veL=function(V,D,f,n,t){try{if(V.state.status!=="FULFILLED")throw Error("Vc");var J=f(V.state.value);J instanceof XT?sOl(V,D,J,n,t):n(J)}catch(H){t(H)}},kVF=function(V,D,f,n,t){try{if(V.state.status!=="REJECTED")throw Error("Wc");
var J=f(V.state.reason);J instanceof XT?sOl(V,D,J,n,t):n(J)}catch(H){t(H)}},sOl=function(V,D,f,n,t){D===f?t(new TypeError("Xc")):f.then(function(J){J instanceof XT?sOl(V,D,J,n,t):n(J)},function(J){t(J)})};var QS;QS=window;_.VW=QS.ytcsi&&QS.ytcsi.now?QS.ytcsi.now:QS.performance&&QS.performance.timing&&QS.performance.now&&QS.performance.timing.navigationStart?function(){return QS.performance.timing.navigationStart+QS.performance.now()}:function(){return(new Date).getTime()};var aT=function(V,D){this.JSC$8716_wrapped=V;this.options=D;this.transactionCount=0;this.startedMs=Math.round((0,_.VW)());this.hasUnknownAbortedTransaction=!1},uvl,Nmo,Kn,RtF;
aT.prototype.add=function(V,D,f){return _.S1(this,[V],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore(V).add(D,f)})};
aT.prototype.clear=function(V){return _.S1(this,[V],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore(V).clear()})};
aT.prototype.close=function(){this.JSC$8716_wrapped.close();var V;((V=this.options)==null?0:V.closed)&&this.options.closed()};
aT.prototype.count=function(V,D){return _.S1(this,[V],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(V).count(D)})};
var Ei=function(V,D,f){V=V.JSC$8716_wrapped.createObjectStore(D,f);return new Tw(V)};
aT.prototype.delete=function(V,D){return _.S1(this,[V],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(V).delete(D)})};
var BmV=function(V,D){return _.S1(V,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore("ResponseStore").index("byInterface").delete(D)})};
aT.prototype.get=function(V,D){return _.S1(this,[V],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(V).get(D)})};
aT.prototype.getAll=function(V,D,f){return _.S1(this,[V],{mode:"readonly",enableRetries:!0},function(n){return n.objectStore(V).getAll(D,f)})};
aT.prototype.put=function(V,D,f){return _.S1(this,[V],{mode:"readwrite",enableRetries:!0},function(n){return n.objectStore(V).put(D,f)})};
aT.prototype.objectStoreNames=function(){return Array.from(this.JSC$8716_wrapped.objectStoreNames)};
_.S1=function(V,D,f,n){var t,J,H,Q,T,y,Z,l,G,F,k,d;return _.w(function(z){switch(z.nextAddress){case 1:var C={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof f==="string"?C.mode=f:Object.assign(C,f);t=C;V.transactionCount++;J=t.enableRetries?3:1;H=0;case 2:if(Q){z.jumpTo(4);break}H++;T=Math.round((0,_.VW)());_.wx(z,5);y=V.JSC$8716_wrapped.transaction(D,t.mode);C=new qXX(y);C=dYl(C,n);return _.b(z,C,7);case 7:return Z=z.yieldResult,l=Math.round((0,_.VW)()),uvl(V,T,l,H,void 0,
D.join(),t),z.return(Z);case 5:G=_.KW(z);F=Math.round((0,_.VW)());k=uw9(G,V.JSC$8716_wrapped.name,D.join(),V.JSC$8716_wrapped.version);if((d=k instanceof RT&&!k.retryable)||H>=J)uvl(V,T,F,H,k,D.join(),t),Q=k;z.jumpTo(2);break;case 4:return z.return(Promise.reject(Q))}})};
uvl=function(V,D,f,n,t,J,H){D=f-D;t?(t instanceof RT&&(t.type==="QUOTA_EXCEEDED"||t.type==="QUOTA_MAYBE_EXCEEDED")&&uE("QUOTA_EXCEEDED",{dbName:mL(V.JSC$8716_wrapped.name),objectStoreNames:J,transactionCount:V.transactionCount,transactionMode:H.mode}),t instanceof RT&&t.type==="UNKNOWN_ABORT"&&(f-=V.startedMs,f<0&&f>=2147483648&&(f=0),uE("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:D,transactionCount:V.transactionCount,dbDuration:f}),V.hasUnknownAbortedTransaction=!0),
Nmo(V,!1,n,J,D,H.tag),_.dO(t)):Nmo(V,!0,n,J,D,H.tag)};
Nmo=function(V,D,f,n,t,J){uE("TRANSACTION_ENDED",{objectStoreNames:n,connectionHasUnknownAbortedTransaction:V.hasUnknownAbortedTransaction,duration:t,isSuccessful:D,tryCount:f,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})};
aT.prototype.getVersion=function(){return this.JSC$8716_wrapped.version};
aT.prototype.getName=function(){return this.JSC$8716_wrapped.name};
var Tw=function(V){this.JSC$8731_wrapped=V};
Tw.prototype.add=function(V,D){return AU(this.JSC$8731_wrapped.add(V,D))};
Tw.prototype.autoIncrement=function(){return this.JSC$8731_wrapped.autoIncrement};
Tw.prototype.clear=function(){return AU(this.JSC$8731_wrapped.clear()).then(function(){})};
var AB=function(V,D,f){V.JSC$8731_wrapped.createIndex(D,f,{unique:!1})};
Tw.prototype.count=function(V){return AU(this.JSC$8731_wrapped.count(V))};
var mYu=function(V,D){return LH(V,{query:D},function(f){return f.delete().then(function(){return f.continue()})}).then(function(){})};
Tw.prototype.delete=function(V){return V instanceof IDBKeyRange?mYu(this,V):AU(this.JSC$8731_wrapped.delete(V))};
Tw.prototype.get=function(V){return AU(this.JSC$8731_wrapped.get(V))};
Tw.prototype.getAll=function(V,D){return"getAll"in IDBObjectStore.prototype?AU(this.JSC$8731_wrapped.getAll(V,D)):zt6(this,V,D)};
var zt6=function(V,D,f){var n=[];return LH(V,{query:D},function(t){if(!(f!==void 0&&n.length>=f))return n.push(t.getValue()),t.continue()}).then(function(){return n})};
Tw.prototype.index=function(V){try{return new bi(this.JSC$8731_wrapped.index(V))}catch(D){if(D instanceof Error&&D.name==="NotFoundError")throw new B2Y(V,this.JSC$8731_wrapped.name);throw D;}};
Tw.prototype.getName=function(){return this.JSC$8731_wrapped.name};
Tw.prototype.keyPath=function(){return this.JSC$8731_wrapped.keyPath};
Tw.prototype.put=function(V,D){return AU(this.JSC$8731_wrapped.put(V,D))};
var LH=function(V,D,f){V=V.JSC$8731_wrapped.openCursor(D.query,D.direction);return RtF(V).then(function(n){return C8L(n,f)})},qXX=function(V){var D=this;
this.JSC$8739_wrapped=V;this.objectStoreCache=new Map;this.JSC$8739_aborted=!1;this.done=new Promise(function(f,n){D.JSC$8739_wrapped.addEventListener("complete",function(){f()});
D.JSC$8739_wrapped.addEventListener("error",function(t){t.currentTarget===t.target&&n(D.JSC$8739_wrapped.error)});
D.JSC$8739_wrapped.addEventListener("abort",function(){var t=D.JSC$8739_wrapped.error;if(t)n(t);else if(!D.JSC$8739_aborted){t=RT;for(var J=D.JSC$8739_wrapped.objectStoreNames,H=[],Q=0;Q<J.length;Q++){var T=J.item(Q);if(T===null)throw Error("Yc");H.push(T)}t=new t("UNKNOWN_ABORT",{objectStoreNames:H.join(),dbName:D.JSC$8739_wrapped.db.name,mode:D.JSC$8739_wrapped.mode});n(t)}})})},dYl=function(V,D){var f=new Promise(function(n,t){try{D(V).then(function(J){n(J)}).catch(t)}catch(J){t(J),V.abort()}});
return Promise.all([f,V.done]).then(function(n){return _.r(n).next().value})};
qXX.prototype.abort=function(){this.JSC$8739_wrapped.abort();this.JSC$8739_aborted=!0;throw new RT("EXPLICIT_ABORT");};
qXX.prototype.objectStore=function(V){V=this.JSC$8739_wrapped.objectStore(V);var D=this.objectStoreCache.get(V);D||(D=new Tw(V),this.objectStoreCache.set(V,D));return D};
var bi=function(V){this.JSC$8741_wrapped=V};
bi.prototype.count=function(V){return AU(this.JSC$8741_wrapped.count(V))};
bi.prototype.delete=function(V){return _.Dd(this,{query:V},function(D){return D.delete().then(function(){return D.continue()})})};
bi.prototype.get=function(V){return AU(this.JSC$8741_wrapped.get(V))};
bi.prototype.getAll=function(V,D){return"getAll"in IDBIndex.prototype?AU(this.JSC$8741_wrapped.getAll(V,D)):Ck6(this,V,D)};
var Ck6=function(V,D,f){var n=[];return _.Dd(V,{query:D},function(t){if(!(f!==void 0&&n.length>=f))return n.push(t.getValue()),t.continue()}).then(function(){return n})};
bi.prototype.keyPath=function(){return this.JSC$8741_wrapped.keyPath};
bi.prototype.unique=function(){return this.JSC$8741_wrapped.unique};
_.Dd=function(V,D,f){V=V.JSC$8741_wrapped.openCursor(D.query===void 0?null:D.query,D.direction===void 0?"next":D.direction);return RtF(V).then(function(n){return C8L(n,f)})};
Kn=function(V,D){this.request=V;this.cursor=D};
RtF=function(V){return AU(V).then(function(D){return D?new Kn(V,D):null})};
Kn.prototype.continue=function(V){this.cursor.continue(V);return RtF(this.request)};
Kn.prototype.delete=function(){return AU(this.cursor.delete()).then(function(){})};
Kn.prototype.getValue=function(){return this.cursor.value};
Kn.prototype.update=function(V){return AU(this.cursor.update(V))};var yS=function(V,D){this.name=V;this.options=D;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},qi6;
yS.prototype.openDb=function(V,D,f){f=f===void 0?{}:f;return EoU(V,D,f)};
yS.prototype.delete=function(V){V=V===void 0?{}:V;return _.$J(this.name,V)};
qi6=function(V,D){return new RT("INCOMPATIBLE_DB_VERSION",{dbName:V.name,oldVersion:V.options.version,newVersion:D})};
_.iE=function(V,D){if(!D)throw q4("openWithToken",mL(V.name));return V.open()};
yS.prototype.open=function(){var V=this;if(!this.isCompatible)throw qi6(this);if(this.connectionPromise)return this.connectionPromise;var D,f=function(){V.connectionPromise===D&&(V.connectionPromise=void 0)},n={blocking:function(J){J.close()},
closed:f,terminated:f,upgrade:this.options.upgrade},t=function(){var J,H,Q,T,y,Z,l,G,F,k;return _.w(function(d){switch(d.nextAddress){case 1:return H=(J=Error().stack)!=null?J:"",_.wx(d,2),_.b(d,V.openDb(V.name,V.options.version,n),4);case 4:for(var z=Q=d.yieldResult,C=V.options,A=[],O=_.r(Object.keys(C.objectStores)),W=O.next();!W.done;W=O.next()){W=W.value;var I=C.objectStores[W],x=I.removedAtVersion===void 0?Number.MAX_VALUE:I.removedAtVersion;!(z.JSC$8716_wrapped.version>=I.addedAtVersion)||z.JSC$8716_wrapped.version>=
x||z.JSC$8716_wrapped.objectStoreNames.contains(W)||A.push(W)}T=A;if(T.length===0){d.jumpTo(5);break}y=Object.keys(V.options.objectStores);Z=Q.objectStoreNames();if(V.timesReopenedToFixMissingObjectStore<_.tU("ytidb_reopen_db_retries",0))return V.timesReopenedToFixMissingObjectStore++,Q.close(),_.dO(new RT("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:y,foundObjectStores:Z})),d.return(t());if(!(V.timesDeletedToFixMissingObjectStore<_.tU("ytidb_remake_db_retries",1))){d.jumpTo(6);
break}V.timesDeletedToFixMissingObjectStore++;return _.b(d,V.delete(),7);case 7:return _.dO(new RT("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:y,foundObjectStores:Z})),d.return(t());case 6:throw new geF(Z,y);case 5:return d.return(Q);case 2:l=_.KW(d);if(l instanceof DOMException?l.name!=="VersionError":"DOMError"in self&&l instanceof DOMError?l.name!=="VersionError":!(l instanceof Object&&"message"in l)||l.message!=="An attempt was made to open a database using a lower version than the existing version."){d.jumpTo(8);
break}return _.b(d,V.openDb(V.name,void 0,Object.assign({},n,{upgrade:void 0})),9);case 9:G=d.yieldResult;F=G.getVersion();if(V.options.version!==void 0&&F>V.options.version+1)throw G.close(),V.isCompatible=!1,qi6(V,F);return d.return(G);case 8:throw f(),l instanceof Error&&!_.c("ytidb_async_stack_killswitch")&&(l.stack=l.stack+"\n"+H.substring(H.indexOf("\n")+1)),uw9(l,V.name,"",(k=V.options.version)!=null?k:-1);}})};
return this.connectionPromise=D=t()};var Aex=new yS("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(V,D){D(1)&&Ei(V,"databases",{keyPath:"actualName"})}});var p8d,SXd=new function(){}(new function(){});new _.wU;var XwE=function(V,D){yS.call(this,V,D);this.options=D;N4(V)};
_.v(XwE,yS);var flY=function(V,D){var f;return function(){f||(f=new XwE(V,D));return f}};
XwE.prototype.openDb=function(V,D,f){f=f===void 0?{}:f;return(this.options.shared?MvX:xi9)(V,D,Object.assign({},f))};
XwE.prototype.delete=function(V){V=V===void 0?{}:V;return(this.options.shared?D1x:hiZ)(this.name,V)};var Eer={},n8F=Ub("ytGcfConfig",{objectStores:(Eer.coldConfigStore={addedAtVersion:1},Eer.hotConfigStore={addedAtVersion:1},Eer),shared:!1,upgrade:function(V,D){D(1)&&(AB(Ei(V,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),AB(Ei(V,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var ABU=function(){_.cq.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var V=_.Yw("yt.gcf.config.hotUpdateCallbacks");V?(this.localHotConfigJobQueue=[].concat(_.sz(V)),this.sharedHotConfigJobQueue=V):(this.sharedHotConfigJobQueue=[],_.M4("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.v(ABU,_.cq);ABU.prototype.disposeInternal=function(){for(var V=_.r(this.localHotConfigJobQueue),D=V.next();!D.done;D=V.next()){var f=this.sharedHotConfigJobQueue;D=f.indexOf(D.value);D>=0&&f.splice(D,1)}this.localHotConfigJobQueue.length=0;_.cq.prototype.disposeInternal.call(this)};var v2=function(){var V=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new ABU;this.TEST_ONLY={initializeConfigDb:function(){V.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return V.coldGlobalConfigGroup},
setHotConfigGroup:function(D){adF(V,D)},
setHotHashData:function(D){V.setHotHashData(D)},
setColdConfigGroup:function(D){YiV(V,D)},
getColdHashData:function(){return V.coldHashData},
getHotHashData:function(){return V.hotHashData},
getHotConfigGroup:function(){return V.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return $YV()},
getExportedHotConfigGroup:function(){return ZB()},
getExportedColdHashData:function(){return _.Yw("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Yw("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ihl(V)},
resetInstance:function(){V.setHotHashData(void 0);SiF(V);delete v2.instance},
setDebounceTimer:function(D){V.debounceTimer=D},
getDebounceTimer:function(){return V.debounceTimer}}},WWP=function(){if(!v2.instance){var V=new v2;
v2.instance=V}return v2.instance},Idp=function(V){var D;
_.w(function(f){if(f.nextAddress==1)return _.c("start_client_gcf")||_.c("delete_gcf_config_db")?_.c("start_client_gcf")?_.b(f,_.hU(),3):f.jumpTo(2):f.return();f.nextAddress!=2&&((D=f.yieldResult)&&_.e1()&&!_.c("delete_gcf_config_db")?(V.isConfigDbInitialized=!0,ihl(V)):(pwl(V),LWp(V)));return _.c("delete_gcf_config_db")?_.b(f,H6x(),0):f.jumpTo(0)})},wrX=function(){var V;
return(V=ZB())!=null?V:_.XB("RAW_HOT_CONFIG_GROUP")},OhP=function(V){var D,f,n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:if(V.hotGlobalConfigGroup)return Q.return(ZB());if(!V.isConfigDbInitialized)return D=q4("getHotConfig IDB not initialized"),_.$w(D),Q.return(Promise.reject(D));f=xJ();n=_.XB("TIME_CREATED_MS");if(!f){t=q4("getHotConfig token error");_.$w(t);Q.jumpTo(2);break}return _.b(Q,rRc(f),3);case 3:if((J=Q.yieldResult)&&J.timestamp>n)return adF(V,J.config),V.setHotHashData(J.hashData),Q.return(ZB());case 2:LWp(V);if(!(f&&V.hotGlobalConfigGroup&&V.hotHashData)){Q.jumpTo(4);
break}return _.b(Q,PCF(V.hotGlobalConfigGroup,V.hotHashData,f,n),4);case 4:return V.hotGlobalConfigGroup?Q.return(ZB()):(H=new _.cI("Config not available in ytConfig"),_.$w(H),Q.return(Promise.reject(H)))}})},Mkl=function(V){var D,f,n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:if(V.coldGlobalConfigGroup)return Q.return($YV());if(!V.isConfigDbInitialized)return D=q4("getColdConfig IDB not initialized"),_.$w(D),Q.return(Promise.reject(D));f=xJ();n=_.XB("TIME_CREATED_MS");if(!f){t=q4("getColdConfig");_.$w(t);Q.jumpTo(2);break}return _.b(Q,JRZ(f),3);case 3:if((J=Q.yieldResult)&&J.timestamp>n)return YiV(V,J.config),xYU(V,J.configData),SiF(V,J.hashData),Q.return($YV());case 2:pwl(V);if(!(f&&V.coldGlobalConfigGroup&&V.coldHashData&&
V.configData)){Q.jumpTo(4);break}return _.b(Q,o83(V.coldGlobalConfigGroup,V.coldHashData,V.configData,f,n),4);case 4:return V.coldGlobalConfigGroup?Q.return($YV()):(H=new _.cI("Config not available in ytConfig"),_.$w(H),Q.return(Promise.reject(H)))}})},ihl=function(V){if(!V.hotGlobalConfigGroup||!V.coldGlobalConfigGroup){if(!xJ()){var D=q4("scheduleGetConfigs");
_.$w(D)}V.initJob||(V.initJob=_.dm.addLowPriorityJob(function(){return _.w(function(f){switch(f.nextAddress){case 1:return _.wx(f,2),_.b(f,OhP(V),4);case 4:_.YJ(f,3);break;case 2:_.KW(f);case 3:return _.wx(f,5),_.b(f,Mkl(V),7);case 7:_.YJ(f,6);break;case 5:_.KW(f);case 6:V.initJob&&(V.initJob=0),_.yz(f)}})},100))}},PSF=function(V,D,f){var n,t,J;
return _.w(function(H){switch(H.nextAddress){case 1:if(!_.c("start_client_gcf")){H.jumpTo(0);break}f&&adF(V,f);V.setHotHashData(D);n=xJ();if(!n){H.jumpTo(3);break}if(f){H.jumpTo(4);break}return _.b(H,rRc(n),5);case 5:t=H.yieldResult,f=(J=t)==null?void 0:J.config;case 4:return _.b(H,PCF(f,D,n),3);case 3:if(f)for(var Q=f,T=_.r(V.configUpdateService.sharedHotConfigJobQueue),y=T.next();!y.done;y=T.next())y=y.value,y(Q);_.yz(H)}})},otx=function(V,D,f){var n,t,J,H;
return _.w(function(Q){if(Q.nextAddress==1){if(!_.c("start_client_gcf"))return Q.jumpTo(0);SiF(V,D);return(n=xJ())?f?Q.jumpTo(4):_.b(Q,JRZ(n),5):Q.jumpTo(0)}Q.nextAddress!=4&&(t=Q.yieldResult,f=(J=t)==null?void 0:J.config);if(!f)return Q.jumpTo(0);H=f.configData;return _.b(Q,o83(f,D,H,n),0)})},BNL=function(){var V=WWP(),D=(0,_.VW)()-V.debounceTimer;
if(!(V.debounceTimer!==0&&D<_.tU("send_config_hash_timer"))){D=_.Yw("yt.gcf.config.coldConfigData");var f=_.Yw("yt.gcf.config.hotHashData"),n=_.Yw("yt.gcf.config.coldHashData");D&&f&&n&&(V.debounceTimer=(0,_.VW)());return{coldConfigData:D,hotHashData:f,coldHashData:n}}},pwl=function(V){YiV(V,_.XB("RAW_COLD_CONFIG_GROUP"));
SiF(V,_.XB("SERIALIZED_COLD_HASH_DATA"));var D;xYU(V,(D=V.coldGlobalConfigGroup)==null?void 0:D.configData)},LWp=function(V){adF(V,_.XB("RAW_HOT_CONFIG_GROUP"));
V.setHotHashData(_.XB("SERIALIZED_HOT_HASH_DATA"))},adF=function(V,D){V.hotGlobalConfigGroup=D;
_.M4("yt.gcf.config.hotConfigGroup",V.hotGlobalConfigGroup||null)},YiV=function(V,D){V.coldGlobalConfigGroup=D;
_.M4("yt.gcf.config.coldConfigGroup",V.coldGlobalConfigGroup||null)};
v2.prototype.setHotHashData=function(V){this.hotHashData=V;_.M4("yt.gcf.config.hotHashData",this.hotHashData||null)};
var SiF=function(V,D){V.coldHashData=D;_.M4("yt.gcf.config.coldHashData",V.coldHashData||null)},xYU=function(V,D){V.configData=D;
_.M4("yt.gcf.config.coldConfigData",V.configData||null)},ZB=function(){return _.Yw("yt.gcf.config.hotConfigGroup")},$YV=function(){return _.Yw("yt.gcf.config.coldConfigGroup")};var wm={},htr=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";wm.assign=function(V){for(var D=Array.prototype.slice.call(arguments,1);D.length;){var f=D.shift();if(f){if(typeof f!=="object")throw new TypeError("ad`"+f);for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(V[n]=f[n])}}return V};
wm.shrinkBuf=function(V,D){if(V.length===D)return V;if(V.subarray)return V.subarray(0,D);V.length=D;return V};
var UYF={arraySet:function(V,D,f,n,t){if(D.subarray&&V.subarray)V.set(D.subarray(f,f+n),t);else for(var J=0;J<n;J++)V[t+J]=D[f+J]},
flattenChunks:function(V){var D,f;var n=f=0;for(D=V.length;n<D;n++)f+=V[n].length;var t=new Uint8Array(f);n=f=0;for(D=V.length;n<D;n++){var J=V[n];t.set(J,f);f+=J.length}return t}},Veu={arraySet:function(V,D,f,n,t){for(var J=0;J<n;J++)V[t+J]=D[f+J]},
flattenChunks:function(V){return[].concat.apply([],V)}};
wm.setTyped=function(){htr?(wm.Buf8=Uint8Array,wm.Buf16=Uint16Array,wm.Buf32=Int32Array,wm.assign(wm,UYF)):(wm.Buf8=Array,wm.Buf16=Array,wm.Buf32=Array,wm.assign(wm,Veu))};
wm.setTyped();var DGY=!0;try{new Uint8Array(1)}catch(V){DGY=!1}
var rO9=function(V){var D,f,n=V.length,t=0;for(D=0;D<n;D++){var J=V.charCodeAt(D);if((J&64512)===55296&&D+1<n){var H=V.charCodeAt(D+1);(H&64512)===56320&&(J=65536+(J-55296<<10)+(H-56320),D++)}t+=J<128?1:J<2048?2:J<65536?3:4}var Q=new wm.Buf8(t);for(D=f=0;f<t;D++)J=V.charCodeAt(D),(J&64512)===55296&&D+1<n&&(H=V.charCodeAt(D+1),(H&64512)===56320&&(J=65536+(J-55296<<10)+(H-56320),D++)),J<128?Q[f++]=J:(J<2048?Q[f++]=192|J>>>6:(J<65536?Q[f++]=224|J>>>12:(Q[f++]=240|J>>>18,Q[f++]=128|J>>>12&63),Q[f++]=
128|J>>>6&63),Q[f++]=128|J&63);return Q};var O63={};O63=function(V,D,f,n){var t=V&65535|0;V=V>>>16&65535|0;for(var J;f!==0;){J=f>2E3?2E3:f;f-=J;do t=t+D[n++]|0,V=V+t|0;while(--J);t%=65521;V%=65521}return t|V<<16|0};for(var gm={},jh,fsu=[],nb6=0;nb6<256;nb6++){jh=nb6;for(var teH=0;teH<8;teH++)jh=jh&1?3988292384^jh>>>1:jh>>>1;fsu[nb6]=jh}gm=function(V,D,f,n){f=n+f;for(V^=-1;n<f;n++)V=V>>>8^fsu[(V^D[n])&255];return V^-1};var Kh={};Kh={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 E8L=[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],al3=[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],JOd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lgd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lk=Array(576);oO(lk);var GV=Array(60);oO(GV);var TV=Array(512);oO(TV);var QW=Array(256);oO(QW);var AR9=Array(29);oO(AR9);var Y2X=Array(30);oO(Y2X);var ts9,PRL,oy9,nyd=!1;var Bw;
Bw=[new si(0,0,0,0,function(V,D){var f=65535;for(f>V.pending_buf_size-5&&(f=V.pending_buf_size-5);;){if(V.lookahead<=1){vw(V);if(V.lookahead===0&&D===0)return 1;if(V.lookahead===0)break}V.strstart+=V.lookahead;V.lookahead=0;var n=V.block_start+f;if(V.strstart===0||V.strstart>=n)if(V.lookahead=V.strstart-n,V.strstart=n,ek(V,!1),V.strm.avail_out===0)return 1;if(V.strstart-V.block_start>=V.w_size-262&&(ek(V,!1),V.strm.avail_out===0))return 1}V.insert=0;if(D===4)return ek(V,!0),V.strm.avail_out===0?3:
4;V.strstart>V.block_start&&ek(V,!1);return 1}),
new si(4,4,8,4,x1R),new si(4,5,16,8,x1R),new si(4,6,32,32,x1R),new si(4,4,16,16,ke),new si(8,16,32,32,ke),new si(8,16,128,128,ke),new si(8,32,128,256,ke),new si(32,128,258,1024,ke),new si(32,258,258,4096,ke)];var fHL={};fHL=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 HAx=Object.prototype.toString;
D_d.prototype.push=function(V,D){var f=this.strm,n=this.options.chunkSize;if(this.ended)return!1;var t=D===~~D?D:D===!0?4:0;typeof V==="string"?f.input=rO9(V):HAx.call(V)==="[object ArrayBuffer]"?f.input=new Uint8Array(V):f.input=V;f.next_in=0;f.avail_in=f.input.length;do{f.avail_out===0&&(f.output=new wm.Buf8(n),f.next_out=0,f.avail_out=n);V=VsY(f,t);if(V!==1&&V!==0)return PNE(this,V),this.ended=!0,!1;if(f.avail_out===0||f.avail_in===0&&(t===4||t===2))if(this.options.to==="string"){var J=wm.shrinkBuf(f.output,
f.next_out);D=J;J=J.length;if(J<65537&&(D.subarray&&DGY||!D.subarray))D=String.fromCharCode.apply(null,wm.shrinkBuf(D,J));else{for(var H="",Q=0;Q<J;Q++)H+=String.fromCharCode(D[Q]);D=H}this.chunks.push(D)}else D=wm.shrinkBuf(f.output,f.next_out),this.chunks.push(D)}while((f.avail_in>0||f.avail_out===0)&&V!==1);if(t===4)return(f=this.strm)&&f.state?(n=f.state.status,n!==42&&n!==69&&n!==73&&n!==91&&n!==103&&n!==113&&n!==666?V=yW(f,-2):(f.state=null,V=n===113?yW(f,-3):0)):V=-2,PNE(this,V),this.ended=
!0,V===0;t===2&&(PNE(this,0),f.avail_out=0);return!0};
var PNE=function(V,D){D===0&&(V.result=V.options.to==="string"?V.chunks.join(""):wm.flattenChunks(V.chunks));V.chunks=[];V.err=D;V.msg=V.strm.msg};var ob6=typeof TextEncoder!=="undefined"?new TextEncoder:null,AO9=ob6?function(V){return ob6.encode(V)}:function(V){V=_.eB(V);
for(var D=new Uint8Array(V.length),f=0;f<D.length;f++)D[f]=V[f];return D};var QcL={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},bnF={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var li=function(V,D){this.version=V;this.args=D};
li.prototype.serialize=function(){return{version:this.version,args:this.args}};var KqZ=function(V,D){this.topic=V;this.dataClass=D};
KqZ.prototype.toString=function(){return this.topic};var Jkl=_.Yw("ytPubsub2Pubsub2Instance")||new _.KH;_.KH.prototype.subscribe=_.KH.prototype.subscribe;_.KH.prototype.unsubscribeByKey=_.KH.prototype.unsubscribeByKey;_.KH.prototype.publish=_.KH.prototype.publish;_.KH.prototype.clear=_.KH.prototype.clear;_.M4("ytPubsub2Pubsub2Instance",Jkl);var bAY=_.Yw("ytPubsub2Pubsub2SubscribedKeys")||{};_.M4("ytPubsub2Pubsub2SubscribedKeys",bAY);var ZA9=_.Yw("ytPubsub2Pubsub2TopicToKeys")||{};_.M4("ytPubsub2Pubsub2TopicToKeys",ZA9);
var yOn=_.Yw("ytPubsub2Pubsub2IsAsync")||{};_.M4("ytPubsub2Pubsub2IsAsync",yOn);_.M4("ytPubsub2Pubsub2SkipSubKey",null);var sWL=void 0,vy9=void 0;var CRc=_.tU("max_body_size_to_compress",5E5),ql9=_.tU("min_body_size_to_compress",500),zV=!0,$_9=0,RO=0,Yld=_.tU("compression_performance_threshold_lr",250),iAd=_.tU("slow_compressions_before_abandon_count",4),uCX=!1,Ngd=new Map,EyF=1,XRX=!0;_.fg(Ch,pRx);Ch.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 rkV=function(V,D,f){f||(f=0);var n=V.W_;if(typeof D==="string")for(var t=0;t<16;t++)n[t]=D.charCodeAt(f)<<24|D.charCodeAt(f+1)<<16|D.charCodeAt(f+2)<<8|D.charCodeAt(f+3),f+=4;else for(t=0;t<16;t++)n[t]=D[f]<<24|D[f+1]<<16|D[f+2]<<8|D[f+3],f+=4;for(D=16;D<80;D++)f=n[D-3]^n[D-8]^n[D-14]^n[D-16],n[D]=(f<<1|f>>>31)&4294967295;D=V.chain_[0];f=V.chain_[1];t=V.chain_[2];for(var J=V.chain_[3],H=V.chain_[4],Q,T,y=0;y<80;y++)y<40?y<20?(Q=J^f&(t^J),T=1518500249):(Q=f^t^J,T=1859775393):y<60?(Q=f&t|J&(f|t),
T=2400959708):(Q=f^t^J,T=3395469782),Q=(D<<5|D>>>27)+Q+H+T+n[y]&4294967295,H=J,J=t,t=(f<<30|f>>>2)&4294967295,f=D,D=Q;V.chain_[0]=V.chain_[0]+D&4294967295;V.chain_[1]=V.chain_[1]+f&4294967295;V.chain_[2]=V.chain_[2]+t&4294967295;V.chain_[3]=V.chain_[3]+J&4294967295;V.chain_[4]=V.chain_[4]+H&4294967295};
Ch.prototype.update=function(V,D){if(V!=null){D===void 0&&(D=V.length);for(var f=D-this.blockSize,n=0,t=this.buf_,J=this.inbuf_;n<D;){if(J==0)for(;n<=f;)rkV(this,V,n),n+=this.blockSize;if(typeof V==="string")for(;n<D;){if(t[J]=V.charCodeAt(n),++J,++n,J==this.blockSize){rkV(this,t);J=0;break}}else for(;n<D;)if(t[J]=V[n],++J,++n,J==this.blockSize){rkV(this,t);J=0;break}}this.inbuf_=J;this.total_+=D}};
Ch.prototype.digest=function(){var V=[],D=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var f=this.blockSize-1;f>=56;f--)this.buf_[f]=D&255,D/=256;rkV(this,this.buf_);for(f=D=0;f<5;f++)for(var n=24;n>=0;n-=8)V[D]=this.chain_[f]>>n&255,++D;return V};var OAY;var eh=function(V){var D=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(Z){D.databaseToken=Z},
triggerThrottle:function(){D.throttledSend()},
cancelThrottle:function(){D.cancelThrottledSend()},
immediateSend:function(Z){return _.w(function(l){return _.b(l,D.immediateSend(Z),0)})},
requestWithinAgeLimit:function(Z,l){return D.requestWithinAgeLimit(Z,l)},
retryQueuedRequests:function(){D.retryQueuedRequests()}};
var f;this.throttleTimeout=(f=V.throttleTimeout)!=null?f:100;var n;this.retryMaxAttempts=(n=V.retryMaxAttempts)!=null?n:1;var t;this.requestAgeLimitMs=(t=V.requestAgeLimitMs)!=null?t:2592E6;var J;this.queuedRequestAgeLimitMs=(J=V.queuedRequestAgeLimitMs)!=null?J:12E4;var H;this.retryDelayMs=(H=V.retryDelayMs)!=null?H:5E3;var Q;this.databaseToken=(Q=V.databaseToken)!=null?Q:void 0;this.enableCleaning=!!V.enableCleaning;var T;this.cleaningRate=(T=V.cleaningRate)!=null?T:.1;var y;this.potentialEsfErrorLimit=
(y=V.potentialEsfErrorLimit)!=null?y:10;V.handleError&&(this.handleError=V.handleError);V.handleWarning&&(this.handleWarning=V.handleWarning);V.disableYtIdbTransactions&&(this.disableYtIdbTransactions=V.disableYtIdbTransactions);V.bypassDbTokenDependency&&(this.bypassDbTokenDependency=V.bypassDbTokenDependency);this.getBooleanFlag=V.getBooleanFlag;this.jobManager=V.jobManager;this.logsStore=V.logsStore;this.networkManager=V.networkManager;this.sendFn=V.sendFn;this.onlineEvent=V.onlineEvent;this.offlineEvent=
V.offlineEvent;Gw(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&HyE(this)},HyE=function(V){Gw(V)&&!V.disableYtIdbTransactions&&(V.initialized=!0,V.enableCleaning&&Math.random()<=V.cleaningRate&&V.logsStore.cleanLogsStore(V.databaseToken),V.retryQueuedRequests(),V.networkManager.isNetworkAvailable()&&V.throttledSend(),V.networkManager.listen(V.onlineEvent,V.throttledSend.bind(V)),V.networkManager.listen(V.offlineEvent,V.cancelThrottledSend.bind(V)))};
_.P=eh.prototype;_.P.writeThenSend=function(V,D){var f=this;D=D===void 0?{}:D;if(Gw(this)&&this.initialized){var n={url:V,options:D,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(n,this.databaseToken).then(function(t){n.id=t;f.networkManager.isNetworkAvailable()&&f.immediateSend(n)}).catch(function(t){f.immediateSend(n);
w2p(f,t)})}else this.sendFn(V,D)};
_.P.sendThenWrite=function(V,D,f){var n=this;D=D===void 0?{}:D;if(Gw(this)&&this.initialized){var t={url:V,options:D,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(t.skipRetry=f);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!t.skipRetry){if(!t.skipRetry){var J=D.onError?D.onError:function(){};
D.onError=function(H,Q){return _.w(function(T){if(T.nextAddress==1)return _.b(T,n.logsStore.set(t,n.databaseToken).catch(function(y){w2p(n,y)}),2);
J(H,Q);_.yz(T)})}}this.sendFn(V,D,t.skipRetry)}else this.logsStore.set(t,this.databaseToken).catch(function(H){n.sendFn(V,D,t.skipRetry);
w2p(n,H)})}else this.sendFn(V,D,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&f)};
_.P.sendAndWrite=function(V,D){var f=this;D=D===void 0?{}:D;if(Gw(this)&&this.initialized){var n={url:V,options:D,timestamp:this.now(),status:"NEW",sendCount:0},t=!1,J=D.onSuccess?D.onSuccess:function(){};
n.options.onSuccess=function(H,Q){n.id!==void 0?f.logsStore.deleteRequest(n.id,f.databaseToken):t=!0;f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);J(H,Q)};
this.sendFn(n.url,n.options,void 0,!0);this.logsStore.set(n,this.databaseToken).then(function(H){n.id=H;t&&f.logsStore.deleteRequest(n.id,f.databaseToken)}).catch(function(H){w2p(f,H)})}else this.sendFn(V,D,void 0,!0)};
_.P.throttledSend=function(){var V=this;if(!Gw(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.logsStore.getMostRecentByStatus("NEW",V.databaseToken),2);if(f.nextAddress!=3)return D=f.yieldResult,D?_.b(f,V.immediateSend(D),3):(V.cancelThrottledSend(),f.return());V.intervalJob&&(V.intervalJob=0,V.throttledSend());_.yz(f)})},this.throttleTimeout))};
_.P.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.P.immediateSend=function(V){var D=this,f;return _.w(function(n){switch(n.nextAddress){case 1:if(!Gw(D))throw Error("ed");if(V.id===void 0){n.jumpTo(2);break}return _.b(n,D.logsStore.markAsQueued(V.id,D.databaseToken),3);case 3:(f=n.yieldResult)||D.handleWarning(Error("fd"));case 2:if(D.requestWithinAgeLimit(V,D.requestAgeLimitMs)){n.jumpTo(4);break}D.handleWarning(Error("gd"));if(V.id===void 0){n.jumpTo(5);break}return _.b(n,D.logsStore.deleteRequest(V.id,D.databaseToken),5);case 5:return n.return();
case 4:V.skipRetry||(V=Q2r(D,V));if(!V){n.jumpTo(0);break}if(!V.skipRetry||V.id===void 0){n.jumpTo(8);break}return _.b(n,D.logsStore.deleteRequest(V.id,D.databaseToken),8);case 8:D.sendFn(V.url,V.options,!!V.skipRetry),_.yz(n)}})};
var Q2r=function(V,D){if(!Gw(V))throw Error("hd");var f=D.options.onError?D.options.onError:function(){};
D.options.onError=function(t,J){var H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:H=VL9(J);(Q=DZY(J))&&V.getBooleanFlag&&V.getBooleanFlag("web_enable_error_204")&&V.handleError(Error("id"),D.url,J);if(!(V.getBooleanFlag&&V.getBooleanFlag("nwl_consider_error_code")&&H||V.getBooleanFlag&&!V.getBooleanFlag("nwl_consider_error_code")&&V.potentialEsfErrorCounter<=V.potentialEsfErrorLimit)){Z.jumpTo(2);break}if(!V.networkManager.sendNetworkCheckRequest){Z.jumpTo(3);break}return _.b(Z,V.networkManager.sendNetworkCheckRequest(),
3);case 3:if(V.networkManager.isNetworkAvailable()){Z.jumpTo(2);break}f(t,J);if(!V.getBooleanFlag||!V.getBooleanFlag("nwl_consider_error_code")||((T=D)==null?void 0:T.id)===void 0){Z.jumpTo(6);break}return _.b(Z,V.logsStore.resetRequest(D.id,V.databaseToken,!1),6);case 6:return Z.return();case 2:if(V.getBooleanFlag&&V.getBooleanFlag("nwl_consider_error_code")&&!H&&V.potentialEsfErrorCounter>V.potentialEsfErrorLimit)return Z.return();V.potentialEsfErrorCounter++;if(((y=D)==null?void 0:y.id)===void 0){Z.jumpTo(8);
break}return D.sendCount<V.retryMaxAttempts?_.b(Z,V.logsStore.resetRequest(D.id,V.databaseToken,!0,Q?!1:void 0),12):_.b(Z,V.logsStore.deleteRequest(D.id,V.databaseToken),8);case 12:V.jobManager.addLowPriorityJob(function(){V.networkManager.isNetworkAvailable()&&V.throttledSend()},V.retryDelayMs);
case 8:f(t,J),_.yz(Z)}})};
var n=D.options.onSuccess?D.options.onSuccess:function(){};
D.options.onSuccess=function(t,J){var H;return _.w(function(Q){if(Q.nextAddress==1)return((H=D)==null?void 0:H.id)===void 0?Q.jumpTo(2):_.b(Q,V.logsStore.deleteRequest(D.id,V.databaseToken),2);V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);n(t,J);_.yz(Q)})};
return D};
eh.prototype.requestWithinAgeLimit=function(V,D){V=V.timestamp;return this.now()-V>=D?!1:!0};
eh.prototype.retryQueuedRequests=function(){var V=this;if(!Gw(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(D){D&&!V.requestWithinAgeLimit(D,V.queuedRequestAgeLimitMs)?V.jobManager.addLowPriorityJob(function(){return _.w(function(f){if(f.nextAddress==1)return D.id===void 0?f.jumpTo(2):_.b(f,V.logsStore.resetRequest(D.id,V.databaseToken),2);V.retryQueuedRequests();_.yz(f)})}):V.networkManager.isNetworkAvailable()&&V.throttledSend()})};
var w2p=function(V,D){V.writeError&&!V.networkManager.isNetworkAvailable()?V.writeError(D):V.handleError(D)},Gw=function(V){return!!V.databaseToken||V.bypassDbTokenDependency};var fx9;var HmX={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var TqH={},TUR=Ub("ServiceWorkerLogsDatabase",{objectStores:(TqH.SWHealthLog={addedAtVersion:1},TqH),shared:!0,upgrade:function(V,D){D(1)&&AB(Ei(V,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var eL9={},G_Z=0;var v7R;var cE=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Sk=function(){if(!cE.instance){var V=_.Yw("yt.networkRequestMonitor.instance")||new cE;
_.M4("yt.networkRequestMonitor.instance",V);cE.instance=V}return cE.instance};
cE.prototype.requestComplete=function(V,D){D&&(this.anyRequestHasSucceeded=!0);V=this.removeParams(V);this.requestMap.get(V)||this.requestMap.set(V,D)};
cE.prototype.isEndpointCFR=function(V){V=this.removeParams(V);return(V=this.requestMap.get(V))?!1:V===!1&&this.anyRequestHasSucceeded?!0:null};
cE.prototype.removeParams=function(V){return V.split("?")[0]};
cE.prototype.removeParams=cE.prototype.removeParams;cE.prototype.isEndpointCFR=cE.prototype.isEndpointCFR;cE.prototype.requestComplete=cE.prototype.requestComplete;cE.getInstance=Sk;var Fk=function(V){_.jT.call(this);var D=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=V!=null?V:{addLowPriorityJob:function(t,J){return setTimeout(t,J)},
cancelJob:function(t){clearTimeout(t)}};
var f,n;this.isOnline=(n=(f=window.navigator)==null?void 0:f.onLine)!=null?n:!0;this.onNavigatorChange=function(){return _.w(function(t){return _.b(t,byH(D),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Kwu(this)};
_.v(Fk,_.jT);Fk.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Fk.instance};
Fk.prototype.isNetworkAvailable=function(){return this.isOnline};
var Kwu=function(V){V.pollingJob=V.jobManager.addLowPriorityJob(function(){var D;return _.w(function(f){if(f.nextAddress==1)return V.isOnline?((D=window.navigator)==null?0:D.onLine)?f.jumpTo(3):_.b(f,byH(V),3):_.b(f,byH(V),3);Kwu(V);_.yz(f)})},3E4)},byH=function(V,D){return V.networkRequestPromise?V.networkRequestPromise:V.networkRequestPromise=new Promise(function(f){var n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:return n=window.AbortController?new window.AbortController:void 0,J=(t=n)==null?void 0:t.signal,H=!1,_.wx(Q,2,3),n&&(V.abortTimeoutKey=V.jobManager.addLowPriorityJob(function(){n.abort()},D||2E4)),_.b(Q,fetch("/generate_204",{method:"HEAD",
signal:J}),5);case 5:H=!0;case 3:_.Qz(Q);V.networkRequestPromise=void 0;V.abortTimeoutKey&&(V.jobManager.cancelJob(V.abortTimeoutKey),V.abortTimeoutKey=0);H!==V.isOnline&&(V.isOnline=H,V.isOnline?V.dispatchEvent("networkstatus-online"):V.dispatchEvent("networkstatus-offline"));f(H);_.bK(Q,0);break;case 2:_.KW(Q),H=!1,Q.jumpTo(3)}})})};var gl=function(){_.jT.call(this);var V=this;this.shouldFlushErrors=!1;Fk.instance||(Fk.instance=new Fk(_.dm));this.sharedNetworkStatusManager=Fk.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(V.shouldFlushErrors&&_.c("offline_error_handling")){var D=k_c().get("errors",!0);if(D){for(var f in D)if(D[f]){var n=new _.cI(f,"sent via offline_errors");n.name=D[f].name;n.stack=D[f].stack;n.level=D[f].level;_.Ah(n)}k_c().set("errors",{},2592E3,!0)}}})};
_.v(gl,_.jT);var ykP=function(){if(!gl.instance){var V=_.Yw("yt.networkStatusManager.instance")||new gl;_.M4("yt.networkStatusManager.instance",V);gl.instance=V}return gl.instance};
_.P=gl.prototype;_.P.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.P.networkStatusHint=function(V){this.sharedNetworkStatusManager.isOnline=V};
_.P.getWindowStatus=function(){var V=window.navigator.onLine;return V===void 0?!0:V};
_.P.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.P.listen=function(V,D){return this.sharedNetworkStatusManager.listen(V,D)};
_.P.sendNetworkCheckRequest=function(V){V=byH(this.sharedNetworkStatusManager,V);V.then(function(D){_.c("use_cfr_monitor")&&Sk().requestComplete("generate_204",D)});
return V};
gl.prototype.sendNetworkCheckRequest=gl.prototype.sendNetworkCheckRequest;gl.prototype.listen=gl.prototype.listen;gl.prototype.enableErrorFlushing=gl.prototype.enableErrorFlushing;gl.prototype.getWindowStatus=gl.prototype.getWindowStatus;gl.prototype.networkStatusHint=gl.prototype.networkStatusHint;gl.prototype.isNetworkAvailable=gl.prototype.isNetworkAvailable;gl.getInstance=ykP;_.ik=function(V){V=V===void 0?{}:V;_.jT.call(this);var D=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ykP();var f=_.Yw("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);f&&(V.rateLimit?(this.rateLimit=V.rateLimit,f("networkstatus-online",function(){ZyY(D,"publicytnetworkstatus-online")}),f("networkstatus-offline",function(){ZyY(D,"publicytnetworkstatus-offline")})):(f("networkstatus-online",function(){D.dispatchEvent("publicytnetworkstatus-online")}),f("networkstatus-offline",
function(){D.dispatchEvent("publicytnetworkstatus-offline")})))};
_.v(_.ik,_.jT);_.ik.prototype.isNetworkAvailable=function(){var V=_.Yw("yt.networkStatusManager.instance.isNetworkAvailable");return V?V.bind(this.nsmInstance)():!0};
_.ik.prototype.networkStatusHint=function(V){var D=_.Yw("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);D&&D(V)};
_.ik.prototype.sendNetworkCheckRequest=function(V){var D=this,f;return _.w(function(n){f=_.Yw("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(D.nsmInstance);return _.c("skip_network_check_if_cfr")&&Sk().isEndpointCFR("generate_204")?n.return(new Promise(function(t){var J;D.networkStatusHint(((J=window.navigator)==null?void 0:J.onLine)||!0);t(D.isNetworkAvailable())})):f?n.return(f(V)):n.return(!0)})};
var ZyY=function(V,D){V.rateLimit?V.lastJobTime?(_.dm.cancelJob(V.schedulerJob),V.schedulerJob=_.dm.addLowPriorityJob(function(){V.lastPublicSignalSent!==D&&(V.dispatchEvent(D),V.lastPublicSignalSent=D,V.lastJobTime=(0,_.VW)())},V.rateLimit-((0,_.VW)()-V.lastJobTime))):(V.dispatchEvent(D),V.lastPublicSignalSent=D,V.lastJobTime=(0,_.VW)()):V.dispatchEvent(D)};var NUR,vE=function(){eh.call(this,{logsStore:{cleanLogsStore:woZ,deleteRequest:HRZ,getMostRecentByStatus:o79,markAsQueued:JP9,resetRequest:rP9,set:Pdn},networkManager:_.mZL(),handleError:function(V,D,f){var n,t=f==null?void 0:(n=f.error)==null?void 0:n.code;if(t===400||t===415){var J;V=new _.cI(V.message,D,f==null?void 0:(J=f.error)==null?void 0:J.code);_.$w(V,void 0,void 0,void 0,!0)}else _.Ah(V)},
handleWarning:_.$w,sendFn:dZZ,now:_.VW,writeError:sB3,jobManager:_.kv(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.tU("potential_esf_error_limit",10),getBooleanFlag:_.c,disableYtIdbTransactions:!(_.e1()&&_.zLn())});this.initializationPromise=new _.wU;_.c("networkless_immediately_drop_all_requests")&&QBZ();D1x("LogsDatabaseV2")};
_.v(vE,eh);_.lso=function(){var V=_.Yw("yt.networklessRequestController.instance");V||(V=new vE,_.M4("yt.networklessRequestController.instance",V),_.c("networkless_logging")&&_.hU().then(function(D){V.databaseToken=D;HyE(V);V.initializationPromise.resolve();V.enableCleaning&&Math.random()<=V.cleaningRate&&V.databaseToken&&KRY(V.databaseToken);_.c("networkless_immediately_drop_sw_health_store")&&j2H(V)}));
return V};
vE.prototype.writeThenSend=function(V,D){D||(D={});D=uSx(V,D);_.e1()||(this.initialized=!1);eh.prototype.writeThenSend.call(this,V,D)};
vE.prototype.sendThenWrite=function(V,D,f){D||(D={});D=uSx(V,D);_.e1()||(this.initialized=!1);eh.prototype.sendThenWrite.call(this,V,D,f)};
vE.prototype.sendAndWrite=function(V,D){D||(D={});D=uSx(V,D);_.e1()||(this.initialized=!1);eh.prototype.sendAndWrite.call(this,V,D)};
vE.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var j2H=function(V){var D;_.w(function(f){if(!V.databaseToken)throw D=q4("clearSWHealthLogsDb"),D;return f.return(yPY(V.databaseToken).catch(function(n){V.handleError(n)}))})};_.CdY=!1;_.RLx=_.fx.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.CdY};_.M4("ytNetworklessLoggingInitializationOptions",_.RLx);var B2=function(V){var D=this;this.config_=null;V?this.config_=V:wAU()&&(this.config_=_.fh());_.gq(_.dm,function(){U_3(D)},5E3)};
B2.prototype.isReady=function(){!this.config_&&wAU()&&(this.config_=_.fh());return!!this.config_};
var hI3=function(V,D,f,n){!_.XB("VISITOR_DATA")&&D!=="visitor_id"&&Math.random()<.01&&_.$w(new _.cI("Missing VISITOR_DATA when sending innertube request.",D,f,n));if(!V.isReady()){var t=new _.cI("innertube xhrclient not ready",D,f,n);_.Ah(t);throw t;}var J={headers:n.headers||{},method:"POST",postParams:f,postBody:n.postBody,postBodyFormat:n.postBodyFormat||"JSON",onTimeout:function(){n.onTimeout()},
onFetchTimeout:n.onTimeout,onSuccess:function(l,G){if(n.onSuccess)n.onSuccess(G)},
onFetchSuccess:function(l){if(n.onSuccess)n.onSuccess(l)},
onError:function(l,G){if(n.onError)n.onError(G)},
onFetchError:function(l){if(n.onError)n.onError(l)},
timeout:n.timeout,withCredentials:!0,compress:n.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");var H="";(t=V.config_.innertubeHostOverride)&&(H=t);var Q=V.config_.innertubeUseThirdPartyAuth||!1,T=_.s4x(Q,H,n);Object.assign(J.headers,T);J.headers.Authorization&&!H&&Q&&(J.headers["x-origin"]=window.location.origin);var y=_.LZ(H+("/youtubei/"+V.config_.innertubeApiVersion+"/"+D),{alt:"json"}),Z=function(l){l=l===void 0?!1:l;var G;if(n.retry&&H!="www.youtube-nocookie.com"&&
(l||_.c("skip_ls_gel_retry")||J.headers["Content-Type"]!=="application/json"||(G=x_Y(D,f,T,Q)),G)){var F=J.onSuccess,k=J.onFetchSuccess;J.onSuccess=function(C,A){MsY(G);F(C,A)};
f.onFetchSuccess=function(C,A){MsY(G);k(C,A)}}try{if(l&&n.retry&&!n.networklessOptions.bypassNetworkless)J.method="POST",n.networklessOptions.writeThenSend?_.lso().writeThenSend(y,J):_.lso().sendAndWrite(y,J);
else if(n.compress){var d=!n.networklessOptions.writeThenSend;if(J.postBody){var z=J.postBody;typeof z!=="string"&&(z=JSON.stringify(J.postBody));aHR(y,z,J,_.T5,d)}else aHR(y,JSON.stringify(J.postParams),J,p1U,d)}else _.c("web_all_payloads_via_jspb")?_.T5(y,J):p1U(y,J)}catch(C){if(C.name==="InvalidAccessError")G&&(MsY(G),G=0),_.$w(Error("kd"));else throw C;}G&&_.gq(_.dm,function(){U_3(V)},5E3)};
_.qsR()?LIY().then(function(l){Z(l)}):Z(!1)};var AuX=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(AuX,_.Xm);var GPl=0,E7Y=_.Hb?"webkit":_.rf?"moz":_.JF?"ms":uI9?"o":"";_.M4("ytDomDomGetNextId",_.Yw("ytDomDomGetNextId")||function(){return++GPl});var ehL={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},xe=function(V){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(V=
V||window.event){this.event=V;for(var D in V)D in ehL||(this[D]=V[D]);this.scale=V.scale;this.rotation=V.rotation;var f=V.target||V.srcElement;f&&f.nodeType==3&&(f=f.parentNode);this.target=f;var n=V.relatedTarget;if(n)try{n=n.nodeName?n:null}catch(t){n=null}else this.type=="mouseover"?n=V.fromElement:this.type=="mouseout"&&(n=V.toElement);this.relatedTarget=n;this.clientX=V.clientX!=void 0?V.clientX:V.pageX;this.clientY=V.clientY!=void 0?V.clientY:V.pageY;this.keyCode=V.keyCode?V.keyCode:V.which;
this.charCode=V.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=V.altKey;this.ctrlKey=V.ctrlKey;this.shiftKey=V.shiftKey;this.metaKey=V.metaKey;this.pageX_=V.pageX;this.pageY_=V.pageY}}catch(t){}},ckV=function(V){if(document.body&&document.documentElement){var D=document.body.scrollTop+document.documentElement.scrollTop;
V.pageX_=V.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);V.pageY_=V.clientY+D}};
xe.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
xe.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
xe.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Oi=_.fx.ytEventsEventsListeners||{};_.M4("ytEventsEventsListeners",Oi);var Ssn=_.fx.ytEventsEventsCounter||{count:0};_.M4("ytEventsEventsCounter",Ssn);var WR3=_.yE(function(){var V=!1;try{var D=Object.defineProperty({},"capture",{get:function(){V=!0}});
window.addEventListener("test",null,D)}catch(f){}return V});_.fg(hB,_.cq);hB.prototype.onMouseMove_=function(V){V.pageX_===void 0&&ckV(V);var D=V.pageX_;V.pageY_===void 0&&ckV(V);this.position_=new _.uB(D,V.pageY_)};
hB.prototype.checkPosition_=function(){if(this.position_){var V=(0,_.VW)();if(this.previousTime_!=0){var D=this.previousPosition_,f=this.position_,n=D.x-f.x;D=D.y-f.y;n=Math.sqrt(n*n+D*D)/(V-this.previousTime_);this.cycles_[this.index_]=Math.abs((n-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(f=D=0;f<4;f++)D+=this.cycles_[f]||0;D>=3&&this.callback_();this.previousVelocity_=n}this.previousTime_=V;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
hB.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.poU(this.mouseListenerKey_)};var xZY={};var tD9=new _.L("rawColdConfigGroup");var ntF=new _.L("rawHotConfigGroup");var FwE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(FwE,_.Xm);var E1Y=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(E1Y,_.Xm);var F4=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V,500)};
_.v(F4,_.Xm);F4.prototype.getPayloadCase=function(){return _.cb(this,gbE)};
F4.prototype.getContext=function(){return _.bW(this,E1Y,33)};
var gbE=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var MY9=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(MY9,_.Xm);var sUX=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(sUX,_.Xm);sUX.prototype.setVideoId=function(V){return TP(this,1,BIY,aq(V))};
sUX.prototype.getPlaylistId=function(){return _.KJ(this,GP(this,BIY,2))};
var BIY=[1,2];var W8Z=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(W8Z,_.Xm);W8Z.prototype.getContext=function(){return _.bW(this,bN,1)};
W8Z.prototype.getTier=function(){return _.u4(this,7)};var vbr,fy,ny;vbr=_.fx.ytPubsubPubsubInstance||new _.KH;fy=_.fx.ytPubsubPubsubSubscribedKeys||{};ny=_.fx.ytPubsubPubsubTopicToKeys||{};_.MLL=_.fx.ytPubsubPubsubIsSynchronous||{};_.KH.prototype.subscribe=_.KH.prototype.subscribe;_.KH.prototype.unsubscribeByKey=_.KH.prototype.unsubscribeByKey;_.KH.prototype.publish=_.KH.prototype.publish;_.KH.prototype.clear=_.KH.prototype.clear;_.M4("ytPubsubPubsubInstance",vbr);_.M4("ytPubsubPubsubTopicToKeys",ny);_.M4("ytPubsubPubsubIsSynchronous",_.MLL);
_.M4("ytPubsubPubsubSubscribedKeys",fy);var P2=window;var kG=_.c("web_enable_lifecycle_monitoring")&&fvc()!==0,kPP=_.c("web_enable_lifecycle_monitoring");var BqP=function(V){var D=this;var f=f===void 0?0:f;var n=n===void 0?_.kv():n;this.JSC$8938_defaultPriority=f;this.scheduler=n;this.completedResolver=new _.wU;this.scheduledPayloads=V;for(V={i$jscomp$491:0};V.i$jscomp$491<this.scheduledPayloads.length;V={payload$jscomp$18:void 0,i$jscomp$491:V.i$jscomp$491},V.i$jscomp$491++)V.payload$jscomp$18=this.scheduledPayloads[V.i$jscomp$491],f=function(t){return function(){t.payload$jscomp$18.job();D.scheduledPayloads[t.i$jscomp$491].processed=!0;D.scheduledPayloads.every(function(J){return J.processed===
!0})&&D.completedResolver.resolve()}}(V),n=this.scheduler.addJob(f,s2u(this,V.payload$jscomp$18)),this.scheduledPayloads[V.i$jscomp$491]=Object.assign({},V.payload$jscomp$18,{job:f,
jobId:n})};
BqP.prototype.flushJobs=function(){var V=this,D=Array.from(this.scheduledPayloads.keys()).sort(function(n,t){return s2u(V,V.scheduledPayloads[t])-s2u(V,V.scheduledPayloads[n])});
D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=this.scheduledPayloads[f.value],f.jobId===void 0||f.processed||(this.scheduler.cancelJob(f.jobId),this.scheduler.addJob(f.job,10))};
BqP.prototype.cancel=function(){for(var V=_.r(this.scheduledPayloads),D=V.next();!D.done;D=V.next())D=D.value,D.jobId===void 0||D.processed||this.scheduler.cancelJob(D.jobId),D.processed=!0;this.completedResolver.resolve()};
var s2u=function(V,D){var f;return(f=D.priority)!=null?f:V.JSC$8938_defaultPriority};var sj=function(V){this.state=V;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};kG&&nuZ(this.state)};
sj.prototype.install=function(V){this.plugins.push(V);return this};
sj.prototype.uninstall=function(){var V=this;_.gQ.apply(0,arguments).forEach(function(D){D=V.plugins.indexOf(D);D>-1&&V.plugins.splice(D,1)})};
sj.prototype.transition=function(V,D){var f=this;kG&&tYc(this.state);var n=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(H){return H===f.state&&J.to===V}):J.from===f.state&&J.to===V});
if(n){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);dGo(this,V,D);this.state=V;kG&&nuZ(this.state);n=n.action.bind(this);var t=this.plugins.filter(function(J){return J[V]}).map(function(J){return J[V]});
n(u4U(this,t),D)}else throw Error("ld`"+this.state+"`"+V);};
var u4U=function(V,D){var f=D.filter(function(t){return Nql(V,t)===10}),n=D.filter(function(t){return Nql(V,t)!==10});
return V.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var t=_.gQ.apply(0,arguments);return _.w(function(J){if(J.nextAddress==1)return _.b(J,V.runImmediateJobsAsync.apply(V,[f].concat(_.sz(t))),2);V.setJobSetWithScheduledJobs.apply(V,[n].concat(_.sz(t)));_.yz(J)})}:function(){var t=_.gQ.apply(0,arguments);
V.runImmediateJobsSync.apply(V,[f].concat(_.sz(t)));V.setJobSetWithScheduledJobs.apply(V,[n].concat(_.sz(t)))}};
sj.prototype.runImmediateJobsSync=function(V){var D=_.gQ.apply(1,arguments);_.kv();for(var f=_.r(V),n=f.next(),t={};!n.done;t={lifecycle$jscomp$2:void 0},n=f.next())t.lifecycle$jscomp$2=n.value,ot(function(J){return function(){mGH(J.lifecycle$jscomp$2.name);ouF(function(){return J.lifecycle$jscomp$2.callback.apply(J.lifecycle$jscomp$2,_.sz(D))});
BE(J.lifecycle$jscomp$2.name)}}(t))};
sj.prototype.runImmediateJobsAsync=function(V){var D=_.gQ.apply(1,arguments),f,n,t,J;return _.w(function(H){H.nextAddress==1&&(_.kv(),f=_.r(V),n=f.next(),t={});if(H.nextAddress!=3){if(n.done)return H.jumpTo(0);t.lifecycle$jscomp$3=n.value;t.asyncJobCompletion=void 0;J=function(Q){return function(){mGH(Q.lifecycle$jscomp$3.name);var T=ouF(function(){return Q.lifecycle$jscomp$3.callback.apply(Q.lifecycle$jscomp$3,_.sz(D))});
JQZ(T)?Q.asyncJobCompletion=_.c("web_lifecycle_error_handling_killswitch")?T.then(function(){BE(Q.lifecycle$jscomp$3.name)}):T.then(function(){BE(Q.lifecycle$jscomp$3.name)},function(y){PUc(y);
BE(Q.lifecycle$jscomp$3.name)}):BE(Q.lifecycle$jscomp$3.name)}}(t);
ot(J);return t.asyncJobCompletion?_.b(H,t.asyncJobCompletion,3):H.jumpTo(3)}t={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};n=f.next();return H.jumpTo(2)})};
sj.prototype.setJobSetWithScheduledJobs=function(V){var D=_.gQ.apply(1,arguments),f=this,n=V.map(function(t){return{job:function(){mGH(t.name);ouF(function(){return t.callback.apply(t,_.sz(D))});
BE(t.name)},
priority:Nql(f,t)}});
n.length&&(this.jobSet=new BqP(n))};
var Nql=function(V,D){var f,n;return(n=(f=V.overridePriority)!=null?f:D.priority)!=null?n:0},mGH=function(V){kG&&V&&nuZ(V)},BE=function(V){kG&&V&&tYc(V)},dGo=function(V,D,f){kPP&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+V.constructor.name+"] '"+V.state+"' to '"+D+"'"),console.log("with message: ",f),console.groupEnd())};
_.IG.Object.defineProperties(sj.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var zhr=function(V){sj.call(this,V===void 0?"none":V);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(){}}]},Rhl;
_.v(zhr,sj);zhr.prototype.runApplicationNavigationBegin=function(V,D){var f=this;this.navigationTimer=_.gq(_.dm,function(){f.currentState==="application_navigating"&&f.transition("none")},5E3);
V(D==null?void 0:D.event)};
zhr.prototype.runApplicationNavigationEnd=function(V,D){this.navigationTimer&&(_.dm.cancelJob(this.navigationTimer),this.navigationTimer=null);V(D==null?void 0:D.event)};
_.fbd=function(){Rhl||(Rhl=new zhr);return Rhl};var D3Z=[];_.M4("yt.logging.transport.getScrapedGelPayloads",function(){return D3Z});var Jk=function(){var V=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return V.totalEntries}}};
Jk.prototype.storePayload=function(V,D){V=JAd(V);this.store[V]?this.store[V].push(D):(this.memoizedKeySequences={},this.store[V]=[D]);this.totalEntries++;_.c("more_accurate_gel_parser")&&(D=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(D));return V};
Jk.prototype.smartExtractMatchingEntries=function(V){if(!V.keys.length)return[];for(var D=CN6(this,V.keys.splice(0,1)[0]),f=[],n=0;n<D.length;n++)this.store[D[n]]&&V.sizeLimit&&(this.store[D[n]].length<=V.sizeLimit?(f.push.apply(f,_.sz(this.store[D[n]])),delete this.store[D[n]]):f.push.apply(f,_.sz(this.store[D[n]].splice(0,V.sizeLimit))));this.totalEntries-=f.length;(V==null?0:V.sizeLimit)&&f.length<(V==null?void 0:V.sizeLimit)&&(V.sizeLimit-=f.length,f.push.apply(f,_.sz(this.smartExtractMatchingEntries(V))));
return f};
Jk.prototype.extractMatchingEntries=function(V){V=CN6(this,V);for(var D=[],f=0;f<V.length;f++)this.store[V[f]]&&(D.push.apply(D,_.sz(this.store[V[f]])),delete this.store[V[f]]);this.totalEntries-=D.length;return D};
Jk.prototype.getSequenceCount=function(V){V=CN6(this,V);for(var D=0,f=0;f<V.length;f++){var n=void 0;D+=((n=this.store[V[f]])==null?void 0:n.length)||0}return D};
var CN6=function(V,D){var f=JAd(D);if(V.memoizedKeySequences[f])return V.memoizedKeySequences[f];var n=Object.keys(V.store)||[];if(n.length<=1&&JAd(D)===n[0])return n;for(var t=[],J=0;J<n.length;J++){var H=n[J].split("/");if(qqH(D.auth,H[0])){var Q=D.isJspb;qqH(Q===void 0?"undefined":Q?"true":"false",H[1])&&qqH(D.cttAuthInfo,H[2])&&(Q=D.tier,Q=Q===void 0?"undefined":JSON.stringify(Q),qqH(Q,H[3])&&t.push(n[J]))}}return V.memoizedKeySequences[f]=t},qqH=function(V,D){return V===void 0||V==="undefined"?
!0:V===D};
Jk.prototype.getSequenceCount=Jk.prototype.getSequenceCount;Jk.prototype.extractMatchingEntries=Jk.prototype.extractMatchingEntries;Jk.prototype.smartExtractMatchingEntries=Jk.prototype.smartExtractMatchingEntries;Jk.prototype.storePayload=Jk.prototype.storePayload;var XtR,CUF,Eux,wq,X2P,r23,J2d,RJY,zJL,cAR,qrd,UA9,u2n;XtR=_.tU("initial_gel_batch_timeout",2E3);CUF=_.tU("gel_queue_timeout_max_ms",6E4);Eux=_.tU("gel_min_batch_size",5);wq=void 0;X2P=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
r23=new X2P;J2d=new X2P;RJY=new X2P;zJL=new X2P;qrd=!0;UA9=1;_.hJx=new Map;u2n=_.fx.ytLoggingTransportTokensToCttTargetIds_||{};_.M4("ytLoggingTransportTokensToCttTargetIds_",u2n);var dA9=_.fx.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.M4("ytLoggingTransportTokensToJspbCttTargetIds_",dA9);var H2={};var kb=_.fx.ytLoggingGelSequenceIdObj_||{};_.M4("ytLoggingGelSequenceIdObj_",kb);var Tsx=[];var vtY=new Set,j5U=0,d3Y=0,Bsx=0,GKx=[],lbX=[],uon=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var imZ=function(){};
imZ.prototype.getUrl=function(V,D){D=D===void 0?!1:D;return V.hasOwnProperty("shareEndpoint")?null:_.RqF(V,null,D)};
var OkR=function(V,D,f){V={endpoint:D,actions:[]};f=(f.path?f.path[0]:f.target).icon||"";D=f.indexOf(":");D>0&&(f=f.substr(D+1));f&&V.actions.push(f);return V};var abX=/Command$/,A2Z=/Endpoint$/,qmY=new Map;var Ebp,Akl;Ebp=1;_.Yb=function(){this.actionRoutingMap=new Map};
_.Yb.prototype.triggerAction=function(V){var D=new Z$c(V,!1,_.gQ.apply(1,arguments));this.handleAction(D);return D.returnValue};
_.Yb.prototype.triggerOptionalAction=function(V){var D=new Z$c(V,!0,_.gQ.apply(1,arguments));this.handleAction(D);return D.returnValue};
_.dl=function(V,D,f){D.forEach(function(n){var t=EtY(n);t&&V.triggerOptionalAction(t,n,f,void 0)})};
_.Yb.prototype.handleAction=function(V){var D=this.actionRoutingMap.get(V.actionName);D&&Akl(V,D);V.optionalAction||V.returnValue.length!==0||(V=new _.cI("Unhandled action",V.actionName),_.$w(V))};
Akl=function(V,D){D.forEach(function(f){var n=null;f?n=f.apply(null,V.args):(f=Error("md"),f.params=V.actionName,_.Ah(f));V.returnValue.push(n)})};
_.$b=function(V,D,f){f||(f=Ebp++);for(var n=_.r(Object.keys(D)),t=n.next();!t.done;t=n.next()){t=t.value;var J=V.actionRoutingMap.get(t);J||(J=new Map,V.actionRoutingMap.set(t,J));V.registerActionHandler(f,t,D[t],J)}return f};
_.Yb.prototype.registerActionHandler=function(V,D,f,n){n.set(V,_.a9(f))};
_.iN=function(V,D,f){D=_.r(Object.keys(D));for(var n=D.next();!n.done;n=D.next())(n=V.actionRoutingMap.get(n.value))&&n.delete(f)};
_.U5(_.Yb);var prR=function(V,D){var f=_.Yb.getInstance();_.Nl(function(){var n={},t=_.$b(f,(n[V]=D,n));_.dc(function(){var J={};_.iN(f,(J[V]="",J),t)})})};var aPc=Symbol("od");UY9=u4L;var rIZ=new Set(["For","If","Match","Watch"]),asH={},YqV=(asH[E0.default]=function(){return pwY},asH.style=function(){return pwY},asH),$GF;
for($GF in YqV)UR.attributes[$GF]=YqV[$GF](UR.attributes[$GF]);var Uq=new _.IH("VISIBILITY_OBSERVER");var lnx={retrieve:function(V){return this.id.\u0275prov.token===V.\u0275prov.token?this.contextValue:this?vw9(this,this.id):F09}};var ImU=function(V,D,f){if(V!==Ly)return!1;V=fnY(document.createElement("div"),function(){var n=P9(!1);try{f[0]()}finally{P9(n)}});
V=Array.from(V.childNodes);V.length===1&&(V=V[0]);return V};var iyL=function(V){V=V.clone();bGl(V);Zp(V,"dg",null);Zp(V,"d","0");HGo(V,null);wJ6(V,null);return V},Sql=!0,WwF=function(V,D,f){var n=f===void 0?{}:f;
f=n.cssRowKey===void 0?void 0:n.cssRowKey;var t=n.combinedSignature===void 0?void 0:n.combinedSignature;var J=n.extraEdges===void 0?void 0:n.extraEdges;n=n.callback===void 0?void 0:n.callback;Zp(V,"m",D.join(","));J&&Tcr(V,J);f&&(Zp(V,"ck",f),t?Zp(V,"rs",t):Sql&&(Sql=!1));if(n){if(n!=null&&!ZGH.test(n))throw Error("bb`"+n);Zp(V,"cb",n)}V=V.toString();_.tc(V,"/")&&(V=Su6(document.location.href)+V);return _.rQ(V)};var LwH=function(V){return p2V(V).then(function(D){return JSON.parse(D.responseText)})},p2V=function(V){var D={},f=D.xmlHttpFactory?D.xmlHttpFactory.createInstance():zDH.createInstance();
return(new _.Qf(function(n,t){var J;try{f.open("GET",V,!0)}catch(T){t(new ui("Error opening XHR: "+T.message,V,f))}f.onreadystatechange=function(){if(f.readyState==4){_.fx.clearTimeout(J);var T;!(T=m8o(f.status))&&(T=f.status===0)&&(T=iol(V),T=!(T=="http"||T=="https"||T==""));T?n(f):t(new IsP(f.status,V,f))}};
f.onerror=function(){t(new ui("Network error",V,f))};
if(D.headers)for(var H in D.headers){var Q=D.headers[H];Q!=null&&f.setRequestHeader(H,Q)}D.withCredentials&&(f.withCredentials=D.withCredentials);D.responseType&&(f.responseType=D.responseType);D.mimeType&&f.overrideMimeType(D.mimeType);D.timeoutMs>0&&(J=_.fx.setTimeout(function(){f.onreadystatechange=function(){};
f.abort();t(new OyH(V,f))},D.timeoutMs));
try{f.send(null)}catch(T){f.onreadystatechange=function(){},_.fx.clearTimeout(J),t(new ui("Error sending XHR: "+T.message,V,f))}})).thenCatch(function(n){n instanceof _.Sb&&f.abort();
throw n;})},ui=function(V,D,f){_.VY.call(this,V+", url="+D);
this.url=D;this.xhr=f};
_.fg(ui,_.VY);ui.prototype.name="XhrError";var IsP=function(V,D,f){ui.call(this,"Request Failed, status="+V,D,f);this.status=V};
_.fg(IsP,ui);IsP.prototype.name="XhrHttpError";var OyH=function(V,D){ui.call(this,"Request timed out",V,D)};
_.fg(OyH,ui);OyH.prototype.name="XhrTimeoutError";hx=hx||{};var NQ=function(){_.cq.call(this)};
_.fg(NQ,_.cq);NQ.prototype.initialize=function(){};var xGV=function(V,D){this.fn_=V;this.handler_=D};
xGV.prototype.execute=function(V){this.fn_&&(this.fn_.call(this.handler_||null,V),this.fn_=this.handler_=null)};
xGV.prototype.abort=function(){this.handler_=this.fn_=null};var mS=function(V,D){_.cq.call(this);this.deps_=V;this.JSC$9066_id_=D;this.onloadCallbacks_=[];this.JSC$9066_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.fg(mS,_.cq);mS.prototype.moduleConstructor_=NQ;mS.prototype.module_=null;mS.prototype.getId=function(){return this.JSC$9066_id_};
mS.prototype.registerCallback=function(V,D){return MeE(this.onloadCallbacks_,V,D)};
var hhU=function(V,D){MeE(V.JSC$9066_onErrorCallbacks_,D)},MeE=function(V,D,f){D=new xGV(D,f);
V.push(D);return D};
mS.prototype.isLoaded=function(){return!!this.module_};
mS.prototype.onLoad=function(V){var D=new this.moduleConstructor_;D.initialize(V());this.module_=D;D=(D=UGl(this.earlyOnloadCallbacks_,V()))||UGl(this.onloadCallbacks_,V());D||(this.JSC$9066_onErrorCallbacks_.length=0);return D};
mS.prototype.onError=function(V){(V=UGl(this.JSC$9066_onErrorCallbacks_,V))&&nx(Error("sd`"+V));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var UGl=function(V,D){for(var f=[],n=0;n<V.length;n++)try{V[n].execute(D)}catch(t){nx(t),f.push(t)}V.length=0;return f.length?f:null};
mS.prototype.disposeInternal=function(){mS.superClass_.disposeInternal.call(this);_.Mr(this.module_)};var V6P,oi6,t6l,PLP,f56,nio,QGH,HOP,w1Y;
_.Rc=function(V,D,f,n,t){n=n===void 0?!1:n;t=t===void 0?!1:t;var J=J===void 0?!0:J;this.scsReferenceUrl_=p93(_.HS(V).toString(),J);this.cssRowKey_=D;this.combinedSignature_=f;this.useNegativeLoading_=n;this.requestedModuleMap_={};this.JSC$9069_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(V=yp(this.scsReferenceUrl_,"excm"))?V.split(","):[];this.shouldScanForCss_=t;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;L0c();_.zw(this,QPY(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
V6P=function(V,D){if(D.href||D.getAttribute("data-href"))if(D=D.href||D.getAttribute("data-href"),$lY(D)&&!p93(D).urlPrefix_.endsWith("_/js/")){D=QPY(p93(D));D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,V.loadedCssModuleList_.includes(f)||V.loadedCssModuleList_.push(f)}};
_.Rc.prototype.JSC$9071_loadModules=function(V,D,f){var n=f===void 0?{}:f;f=n.extraEdges;var t=n.onError;var J=n.onSuccess;n=n.forceReload;this.JSC$9069_moduleInfoMap_=D;if(!V)throw Error("td");if(this.shouldScanForCss_){D=_.r(document.getElementsByTagName("style"));for(var H=D.next();!H.done;H=D.next())V6P(this,H.value);D=_.r(document.getElementsByTagName("link"));for(H=D.next();!H.done;H=D.next())V6P(this,H.value)}D2H(this,f56(this,V),f,t,J,n)};
var D2H=function(V,D,f,n,t,J){n=n===void 0?function(){}:n;
t=t===void 0?function(){}:t;
J=J===void 0?!1:J;nio(V,D,function(H,Q,T){T=T===void 0?Q:T;V.enableFallbackFetch&&J?V.loadWithFetch(H,Q,n,t,T):V.load(H,Q,n,t,T,f)},f)||n(-1)};
_.Rc.prototype.loadWithFetch=function(){_.w(function(){throw Error("ud");})};
_.Rc.prototype.maybeSetAdditionalFields=function(){};
oi6=function(V,D,f){if(V.useNegativeLoading_){var n=V.scsReferenceUrl_;V={cssRowKey:V.cssRowKey_,combinedSignature:V.combinedSignature_,extraEdges:f,requestedModuleIds:t6l(V),requestedCssModuleIds:PLP(V)};var t=V===void 0?{}:V;V=t.requestedModuleIds===void 0?[]:t.requestedModuleIds;f=t.requestedCssModuleIds===void 0?[]:t.requestedCssModuleIds;var J=t.cssRowKey===void 0?void 0:t.cssRowKey;var H=t.combinedSignature===void 0?void 0:t.combinedSignature;var Q=t.extraEdges===void 0?void 0:t.extraEdges;
t=t.callback===void 0?void 0:t.callback;n=iyL(n);Zp(n,"d","1");HGo(n,V);wJ6(n,f);D=WwF(n,D,{cssRowKey:J,combinedSignature:H,extraEdges:Q,callback:t})}else n=V.scsReferenceUrl_,V={cssRowKey:V.cssRowKey_,combinedSignature:V.combinedSignature_,requestedModuleIds:t6l(V),requestedCssModuleIds:PLP(V)},Q=V===void 0?{}:V,V=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds,f=Q.cssRowKey===void 0?void 0:Q.cssRowKey,J=Q.combinedSignature===void 0?void 0:Q.combinedSignature,H=Q.extraEdges===void 0?
void 0:Q.extraEdges,Q=Q.callback===void 0?void 0:Q.callback,n=iyL(n),wJ6(n,V),D=WwF(n,D,{cssRowKey:f,combinedSignature:J,extraEdges:H,callback:Q});return D};
_.zw=function(V,D){for(var f=!1,n=[],t=0;t<D.length;++t){var J=D[t];V.requestedModuleMap_[J]||(V.requestedModuleMap_[J]=!0,V.requestedModuleList_.push(J),f=!0,n.push(J))}f&&(V.requestedModuleListSorted_=!1)};
_.Cn=function(V,D){for(var f=[],n=0;n<D.length;++n){var t=D[n];V.requestedModuleMap_[t]&&(delete V.requestedModuleMap_[t],_.IY(V.requestedModuleList_,t),f.push(t))}};
_.Rc.prototype.load=function(V,D,f,n,t){t=t===void 0?D:t;_.HS(V);var J=this.useCors_,H=this.corsMode_,Q=this.fetchPriority,T=_.yh("SCRIPT");_.Yx(T,V);J&&(T.crossOrigin=H);T.async=!1;Q&&T.setAttribute("fetchpriority",Q);_.zw(this,D);_.JqH(this,V,T,D,f,n,t)};
_.JqH=function(V,D,f,n,t,J,H){H=H===void 0?n:H;V.lastScript_=f;V.insertPos.insertBefore(f,V.insertPos.firstChild);_.rqH(f,n,function(){f.parentElement.removeChild(f);V.lastScript_==f&&(V.lastScript_=null);var Q=new Set;n.map(function(y){return Q.add(y)});
for(var T in V.JSC$9069_moduleInfoMap_)V.JSC$9069_moduleInfoMap_[T].isLoaded()&&Q.add(T);Array.from(Q);J()},function(Q){f.parentElement.removeChild(f);
V.lastScript_==f&&(V.lastScript_=null);_.Cn(V,Q);V.pendingModuleGraphUpdate_?V.pendingModuleGraphUpdate_.then(function(){t(-1,D)}):t(-1,D)},H)};
_.rqH=function(V,D,f,n,t){t=t===void 0?D:t;var J=D.length,H=function(){J=0;V.onload=null;V.onerror=null;Q=function(){}},Q=function(){H();
var y=t.filter(function(Z){return!Bq().getModuleInfo(Z).isLoaded()});
y.length!==0?n(y,"Response was successful but was missing module(s) "+y+"."):f()},T=function(){J--;
J==0&&Q()};
D.forEach(function(y){y=Bq().getModuleInfo(y);y.isLoaded()?T():(MeE(y.earlyOnloadCallbacks_,T),hhU(y,T))});
V.onload=function(){return Q()};
V.onerror=function(){H();n(D)}};
t6l=function(V){V.requestedModuleListSorted_||(V.requestedModuleListSorted_=!0,V.requestedModuleList_.sort());return V.requestedModuleList_};
PLP=function(V){V=V.loadedCssModuleList_;V.sort();return V};
f56=function(V,D){return D.filter(function(f){return!V.requestedModuleMap_[f]})};
nio=function(V,D,f,n){if(V.pendingModuleGraphUpdate_)return V.pendingModuleGraphUpdate_.then(function(){nio(V,D,f,n)}),!0;
if(!V.useNegativeLoading_){var t=[],J=Object.assign({},V.requestedModuleMap_);HOP(V,D,function(Z){t.push(Z.getId())},n,function(Z){return!Z.isLoaded()},J);
D=t}for(J=0;J<D.length;){for(var H=D.length-J,Q=J==0?D:D.slice(J,D.length),T=oi6(V,Q,n),y=_.HS(T).toString();y.length>V.urlMaxLength;)if(H>1)H-=Math.ceil((y.length-V.urlMaxLength)/6),H=Math.max(H,1),Q=D.slice(J,J+H),T=oi6(V,Q,n),y=_.HS(T).toString();else return V.useNegativeLoading_?(V.useNegativeLoading_=!1,V.pendingModuleGraphUpdate_=w1Y(V).then(function(Z){QGH(V,Z,n)}),nio(V,D.slice(J),f,n)):!1;
J+=H;V.useNegativeLoading_?f(T,Q):f(T,Q,J===D.length?D:[])}return!0};
QGH=function(V,D,f){Bq().setAllModuleInfoString((D||{}).moduleGraph);HOP(V,t6l(V),function(n){_.zw(V,[n.getId()])},f);
V.pendingModuleGraphUpdate_=null};
HOP=function(V,D,f,n,t,J){J=J===void 0?{}:J;var H=Bq();D=_.r(D);for(var Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var T=H.getModuleInfo(Q);if(!(J[Q]||t&&!t(T))){J[Q]=!0;var y=T.deps_||[];if(n){var Z=[];n[Q]&&(Z=Object.keys(n[Q]));y=y.concat(Z)}HOP(V,y,f,n,t,J);f(T)}}};
w1Y=function(V){V=V.scsReferenceUrl_.clone();bGl(V);Zp(V,"dg",null);Zp(V,"md","1");return LwH(V.toString())};var cIY=new Uint8Array(123);var Tv6=[];var bOl=function(){this.JSC$8144_loader_=null};
_.P=bOl.prototype;_.P.setBatchModeEnabled=function(){};
_.P.setAllModuleInfoString=function(){};
_.P.addExtraEdge=function(){throw Error("vd");};
_.P.removeExtraEdge=function(){throw Error("wd");};
_.P.getModuleContext=function(){return null};
_.P.isActive=function(){return!1};
_.P.isUserActive=function(){return!1};
_.P.registerCallback=function(){};var qQ=function(V,D,f,n,t){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.name="ModuleLoadFailure";this.type=V;this.status=D;this.requestedModuleIds=f;this.url=n;this.cause=t;this.message=this.toString()};
_.v(qQ,Error);qQ.prototype.toString=function(){return KiV(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var KiV=function(V){switch(V.type){case qQ.JSC$9081_Type.UNAUTHORIZED:return"Unauthorized";case qQ.JSC$9081_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case qQ.JSC$9081_Type.TIMEOUT:return"Timed out";case qQ.JSC$9081_Type.OLD_CODE_GONE:return"Out of date module id";case qQ.JSC$9081_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+V.type}};
hx.ModuleLoadFailure=qQ;hx.ModuleLoadFailure.JSC$9081_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Xk=function(){this.moduleIds_=this.JSC$8144_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$9084_extraEdges_={};this.JSC$9084_callbackMap_={};this.JSC$9084_currentlyLoadingModule_=this.baseModuleInfo_=new mS([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Yq;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.fg(Xk,bOl);var yqF=function(V,D){_.VY.call(this,"Error loading "+V+": "+D)};
_.fg(yqF,_.VY);Xk.prototype.setBatchModeEnabled=function(V){this.batchModeEnabled_=V};
Xk.prototype.setAllModuleInfoString=function(V,D){if(!(this instanceof Xk))this.setAllModuleInfoString(V,D);else if(typeof V==="string"){if(V.startsWith("d$")){V=V.substring(2);for(var f=[],n=0,t=V.indexOf("/"),J=0,H=!1,Q=0;;){var T=H?V.substring(J):V.substring(J,t);if(T.length===0)n++,J="sy"+n.toString(36),T=[];else{var y=T.indexOf(":");if(y<0)J=T,T=[];else if(y===T.length-1)J=T.substring(0,y),T=Array(f[Q-1]);else{J=T.substring(0,y);T=T.substring(y+1).split(",");y=Q;for(var Z=0;Z<T.length;Z++)y-=
T[Z].length===0?1:Number(T[Z]),T[Z]=f[y]}y=0;if(J.length===0)y=1;else if(J.charAt(0)==="+"||J.charAt(0)==="-")y=Number(J);y!==0&&(n+=y,J="sy"+n.toString(36))}f.push(J);ZOF(this,J,T);if(H)break;J=t+1;t=V.indexOf("/",J);t===-1&&(H=!0);Q++}this.moduleIds_=f}else if(V.startsWith("p$"))jGH(this,V);else{V=V.split("/");f=[];for(n=0;n<V.length;n++){Q=V[n].split(":");t=Q[0];H=[];if(Q[1])for(H=Q[1].split(","),Q=0;Q<H.length;Q++)H[Q]=f[parseInt(H[Q],36)];f.push(t);ZOF(this,t,H)}this.moduleIds_=f}D&&D.length?
(_.hc(this.loadingModuleIds_,D),this.lastInitialModuleId_=_.X9(D)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$9084_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$9084_currentlyLoadingModule_=null,(D=this.baseModuleInfo_.onLoad((0,_.F1)(this.getModuleContext,this)))&&D.length&&l5E(this,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.INIT_ERROR,void 0,void 0,void 0,D[0])),Ej(this))}};
var jGH=function(V,D){var f=D.substring(2);for(D=0;D<64;D++)cIY["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(D)]=D;var n={buf:f,pos:0};D5(n);var t=D5(n),J=D5(n)+1;D=Array(t);var H=Array(t),Q=Array(t);J=Array(J);var T=0,y=0,Z=n.pos,l=n.buf.indexOf("|",n.pos);n.pos=l+1;for(l=0;l<t;l++){var G=D5(n),F=G&2,k=G&1;G>>>=2;k?(T+=G>>>1^-(G&1),G="sy"+T.toString(36)):(k=Z,Z+=G,G=f.substring(k,Z));D[l]=G;F&&(J[y++]=G)}J[y]="";n.pos++;y=t&-2;f=t&1;for(T=0;T<y;T+=2)Z=FAd(n),Q[T]=
Z&7,Q[T+1]=Z>>>3&7;f&&(f=FAd(n),Q[y]=f&7);n.pos++;for(y=0;y<t;y++)Q[y]===7&&(Q[y]=D5(n));n.pos++;for(f=y=0;f<t;f++){T=Q[f];Z=T===0?Tv6:Array(T);H[f]=Z;l=y;for(F=0;F<T;F++)l-=D5(n),Z[F]=J[l];J[y]===D[f]&&y++}for(n=0;n<D.length;n++)ZOF(V,D[n],H[n]);V.moduleIds_=D};
_.P=Xk.prototype;_.P.getModuleInfo=function(V){return this.moduleInfoMap[V]};
_.P.addExtraEdge=function(V,D){var f=this.getModuleInfo(V);f&&f.isLoaded()?this.load(D):(this.JSC$9084_extraEdges_[V]||(this.JSC$9084_extraEdges_[V]={}),this.JSC$9084_extraEdges_[V][D]=!0)};
_.P.removeExtraEdge=function(V,D){if(this.JSC$9084_extraEdges_[V]){delete this.JSC$9084_extraEdges_[V][D];for(var f in this.JSC$9084_extraEdges_[V])return;delete this.JSC$9084_extraEdges_[V]}};
_.P.isActive=function(){return this.loadingModuleIds_.length>0};
_.P.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Ej=function(V){var D=V.lastActive_,f=V.isActive();f!=D&&(V.executeCallbacks_(f?"active":"idle"),V.lastActive_=f);D=V.isUserActive();D!=V.userLastActive_&&(V.executeCallbacks_(D?"userActive":"userIdle"),V.userLastActive_=D)},ZOF=function(V,D,f){V.moduleInfoMap[D]?(V=V.moduleInfoMap[D].deps_,V!=f&&V.splice.apply(V,[0,
V.length].concat(_.sz(f)))):V.moduleInfoMap[D]=new mS(f,D)},edY=function(V,D,f){var n=[];
no(D,n);D=[];for(var t={},J=0;J<n.length;J++){var H=n[J],Q=V.getModuleInfo(H);if(!Q)throw Error("xd`"+H);var T=new Yq;t[H]=T;Q.isLoaded()?T.callback(null):(GtL(V,H,Q,!!f,T),V.isModuleLoading(H)||D.push(H))}D.length>0&&(V.loadingModuleIds_.length===0?V.loadModules_(D):(V.requestedModuleIdsQueue_.push(D),Ej(V)));return t},GtL=function(V,D,f,n,t){f.registerCallback(t.callback,t);
hhU(f,function(J){t.errback(new yqF(D,J))});
V.isModuleLoading(D)?n&&(cq6(V,D),Ej(V)):n&&cq6(V,D)};
Xk.prototype.loadModules_=function(V,D,f){var n=this;D||(this.consecutiveFailures_=0);var t=FiV(this,V);this.loadingModuleIds_=t;this.requestedLoadingModuleIds_=this.batchModeEnabled_?V:_.Od(t);Ej(this);if(t.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,t);if(Object.keys(this.JSC$9084_extraEdges_).length>0&&!this.JSC$8144_loader_.supportsExtraEdges)throw Error("yd");V=(0,_.F1)(this.JSC$8144_loader_.JSC$9071_loadModules,this.JSC$8144_loader_,_.Od(t),this.moduleInfoMap,{extraEdges:this.JSC$9084_extraEdges_,
forceReload:!!f,onError:function(J,H){var Q=n.requestedLoadingModuleIds_;J=J!=null?J:void 0;n.consecutiveFailures_++;var T=_.Od(t);n.requestedLoadingModuleIds_=Q;t.forEach(_.lC(_.IY,n.requestedModuleIds_),n);J==401?(l5E(n,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.UNAUTHORIZED,J)),n.requestedModuleIdsQueue_.length=0):J==410?(gio(n,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.OLD_CODE_GONE,J)),viP(n)):n.consecutiveFailures_>=3?(gio(n,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.CONSECUTIVE_FAILURES,
J,T,H)),viP(n)):n.loadModules_(n.requestedLoadingModuleIds_,!0,J==8001||!1)},
onTimeout:(0,_.F1)(this.handleLoadTimeout_,this)});(D=Math.pow(this.consecutiveFailures_,2)*5E3)?_.fx.setTimeout(V,D):V()}};
var FiV=function(V,D){D=D.filter(function(t){return V.moduleInfoMap[t].isLoaded()?(_.fx.setTimeout(function(){return Error("zd`"+t)},0),!1):!0});
for(var f=[],n=0;n<D.length;n++)f=f.concat(ktE(V,D[n]));no(f);return!V.batchModeEnabled_&&f.length>1?(D=f.shift(),V.requestedModuleIdsQueue_=f.map(function(t){return[t]}).concat(V.requestedModuleIdsQueue_),[D]):f},ktE=function(V,D){var f=_.sB.createSet(V.requestedModuleIds_),n=[];
f[D]||n.push(D);D=[D];for(var t=0;t<D.length;t++)for(var J=V.getModuleInfo(D[t]).deps_,H=J.length-1;H>=0;H--){var Q=J[H];V.getModuleInfo(Q).isLoaded()||f[Q]||(n.push(Q),D.push(Q))}n.reverse();no(n);return n};
Xk.prototype.JSC$9079_setLoaded=function(){if(this.JSC$9084_currentlyLoadingModule_){var V=this.JSC$9084_currentlyLoadingModule_.getId(),D=[];if(this.JSC$9084_extraEdges_[V]){for(var f=_.r(Object.keys(this.JSC$9084_extraEdges_[V])),n=f.next();!n.done;n=f.next()){n=n.value;var t=this.getModuleInfo(n);t&&!t.isLoaded()&&(this.removeExtraEdge(V,n),D.push(n))}this.loadMultiple(D)}this.isDisposed()||((D=this.moduleInfoMap[V].onLoad((0,_.F1)(this.getModuleContext,this)))&&D.length&&l5E(this,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.INIT_ERROR,
void 0,void 0,void 0,D[0])),_.IY(this.userInitiatedLoadingModuleIds_,V),_.IY(this.loadingModuleIds_,V),this.loadingModuleIds_.length===0&&viP(this),this.lastInitialModuleId_&&V==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Ej(this),this.JSC$9084_currentlyLoadingModule_=null)}};
Xk.prototype.isModuleLoading=function(V){if(_.i3(this.loadingModuleIds_,V))return!0;for(var D=0;D<this.requestedModuleIdsQueue_.length;D++)if(_.i3(this.requestedModuleIdsQueue_[D],V))return!0;return!1};
Xk.prototype.load=function(V,D){return edY(this,[V],D)[V]};
Xk.prototype.loadMultiple=function(V){return edY(this,V)};
var cq6=function(V,D){_.i3(V.userInitiatedLoadingModuleIds_,D)||V.userInitiatedLoadingModuleIds_.push(D)};
Xk.prototype.beforeLoadModuleCode=function(V){var D=this;this.JSC$9084_currentlyLoadingModule_&&this.JSC$9084_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$9079_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[V]&&sGr(this,this.moduleInfoMap[V].deps_||[],function(f){f.module_=new NQ;_.IY(D.loadingModuleIds_,f.getId())},function(f){return!f.isLoaded()});
this.JSC$9084_currentlyLoadingModule_=this.getModuleInfo(V)};
Xk.prototype.handleLoadTimeout_=function(){gio(this,new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.TIMEOUT));viP(this)};
var gio=function(V,D){V.requestedLoadingModuleIds_.length>1?V.requestedModuleIdsQueue_=V.requestedLoadingModuleIds_.map(function(f){return[f]}).concat(V.requestedModuleIdsQueue_):l5E(V,D)},l5E=function(V,D){var f=V.requestedLoadingModuleIds_;
V.loadingModuleIds_.length=0;for(var n=[],t=0;t<V.requestedModuleIdsQueue_.length;t++){var J=V.requestedModuleIdsQueue_[t].filter(function(T){var y=ktE(this,T);return Ww(f,function(Z){return _.i3(y,Z)})},V);
_.hc(n,J)}for(t=0;t<f.length;t++)_.px(n,f[t]);for(t=0;t<n.length;t++){for(J=0;J<V.requestedModuleIdsQueue_.length;J++)_.IY(V.requestedModuleIdsQueue_[J],n[t]);_.IY(V.userInitiatedLoadingModuleIds_,n[t])}if(t=V.JSC$9084_callbackMap_.error)for(J=0;J<t.length;J++)for(var H=t[J],Q=0;Q<n.length;Q++)H("error",n[Q],D);for(n=0;n<f.length;n++)if(V.moduleInfoMap[f[n]])V.moduleInfoMap[f[n]].onError(D);V.requestedLoadingModuleIds_.length=0;Ej(V)},viP=function(V){for(;V.requestedModuleIdsQueue_.length;){var D=
V.requestedModuleIdsQueue_.shift().filter(function(f){return!this.getModuleInfo(f).isLoaded()},V);
if(D.length>0){V.loadModules_(D);return}}Ej(V)};
Xk.prototype.registerCallback=function(V,D){Array.isArray(V)||(V=[V]);for(var f=0;f<V.length;f++){var n=V[f],t=D,J=this.JSC$9084_callbackMap_;J[n]||(J[n]=[]);J[n].push(t)}};
Xk.prototype.executeCallbacks_=function(V){for(var D=this.JSC$9084_callbackMap_[V],f=0;D&&f<D.length;f++)D[f](V)};
var sGr=function(V,D,f,n,t){n=n===void 0?function(){return!0}:n;
t=t===void 0?{}:t;D=_.r(D);for(var J=D.next();!J.done;J=D.next()){J=J.value;var H=V.getModuleInfo(J);!t[J]&&n(H)&&(t[J]=!0,sGr(V,H.deps_||[],f,n,t),f(H))}};
Xk.prototype.dispose=function(){_.h4(_.sB.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$9084_callbackMap_={};this.isDisposed_=!0};
Xk.prototype.isDisposed=function(){return this.isDisposed_};
_.sR=function(){return new Xk};var Bvo=[5E3,2E4],d2F=function(){this.JSC$8144_loader_=null;this.JSC$9092_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9092_queue_=[];this.JSC$9092_extraEdges_=Object.create(null);this.JSC$9092_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.v(d2F,bOl);_.P=d2F.prototype;_.P.setAllModuleInfoString=function(){this.JSC$9092_currentlyLoadingModule_&&this.JSC$9092_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$9079_setLoaded()};
_.P.getModuleInfo=function(V){var D=this.JSC$9092_moduleInfoMap_[V];D||(D=new mS([],V),this.JSC$9092_moduleInfoMap_[V]=D);return D};
_.P.addExtraEdge=function(V,D){this.getModuleInfo(V).isLoaded()?this.load(D):(this.JSC$9092_extraEdges_[V]||(this.JSC$9092_extraEdges_[V]={}),this.JSC$9092_extraEdges_[V][D]=!0)};
_.P.removeExtraEdge=function(V,D){if(this.JSC$9092_extraEdges_[V]){delete this.JSC$9092_extraEdges_[V][D];for(var f in this.JSC$9092_extraEdges_[V])return;delete this.JSC$9092_extraEdges_[V]}};
_.P.isModuleLoading=function(V){return!!this.loadingModules_[V]};
_.P.load=function(V){uz6(this,[V]);return NvF(this,V)};
_.P.loadMultiple=function(V){var D=this,f=Object.create(null),n=[];V.forEach(function(t){f[t]||(f[t]=NvF(D,t),n.push(t))});
uz6(this,n);return f};
_.P.beforeLoadModuleCode=function(V){var D;((D=this.JSC$9092_currentlyLoadingModule_)==null?void 0:D.getId())==="synthetic_module_overhead"&&this.JSC$9079_setLoaded();var f,n;m2L(this,(n=(f=this.JSC$9092_moduleInfoMap_[V])==null?void 0:f.deps_)!=null?n:[],function(t){t.module_=new NQ},function(t){return!t.isLoaded()});
this.JSC$9092_currentlyLoadingModule_=this.getModuleInfo(V)};
_.P.JSC$9079_setLoaded=function(){if(this.JSC$9092_currentlyLoadingModule_){var V=this.JSC$9092_currentlyLoadingModule_.getId(),D=[];if(this.JSC$9092_extraEdges_[V]){for(var f=_.r(Object.keys(this.JSC$9092_extraEdges_[V])),n=f.next();!n.done;n=f.next())n=n.value,this.getModuleInfo(n).isLoaded()||(this.removeExtraEdge(V,n),D.push(n));this.loadMultiple(D)}this.JSC$9092_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9092_currentlyLoadingModule_=null;(!this.isModuleLoading(V)&&/^sy[0-9a-z]{0,4}$/.test(V)||V==="synthetic_module_overhead")&&delete this.JSC$9092_moduleInfoMap_[V];this.unsetModulesAsLoading(V)}};
_.P.setModulesAsLoading=function(){var V=this;_.gQ.apply(0,arguments).forEach(function(D){V.loadingModules_[D]=!0})};
_.P.unsetModulesAsLoading=function(){var V=this;_.gQ.apply(0,arguments).forEach(function(D){delete V.loadingModules_[D]})};
var NvF=function(V,D){return new _.Qf(function(f,n){var t=V.getModuleInfo(D);t.isLoaded()?f(null):(t.registerCallback(function(){f(null)}),hhU(t,function(J){var H="Error loading "+D+": "+J;
J instanceof hx.ModuleLoadFailure&&J.url&&(H=H+", requested url: "+J.url.toString());n(Error(H))}))})},uz6=function(V,D){D=D.filter(function(f){return!V.isModuleLoading(f)&&!V.getModuleInfo(f).isLoaded()});
D.length>0&&(V.setModulesAsLoading.apply(V,_.sz(D)),V.JSC$9092_queue_.push(D),zdE(V))},zdE=function(V){for(var D={};V.activeLoads_<Infinity&&V.JSC$9092_queue_.length>0;D={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})D.ids$jscomp$36=V.JSC$9092_queue_.shift().filter(function(f){return!V.getModuleInfo(f).isLoaded()}),D.ids$jscomp$36.length>0&&(V.activeLoads_++,D.finishLoad=function(f){return function(){V.activeLoads_--;
zdE(V);f.finishLoad=function(){}}}(D),_.eT(D.ids$jscomp$36.map(function(f){return NvF(V,f)})).then(function(f){return function(){(0,f.finishLoad)()}}(D)),D.attempt$jscomp$6=0,D.load$jscomp$1=function(f){return function(){if(Object.keys(V.JSC$9092_extraEdges_).length>0&&!V.JSC$8144_loader_.supportsExtraEdges)throw Error("yd");
V.JSC$8144_loader_.JSC$9071_loadModules(f.ids$jscomp$36,V.JSC$9092_moduleInfoMap_,{extraEdges:V.JSC$9092_extraEdges_,onError:function(n,t){var J=Bvo[f.attempt$jscomp$6++];J!==void 0?setTimeout(function(){(0,f.load$jscomp$1)()},J):(V.unsetModulesAsLoading.apply(V,_.sz(f.ids$jscomp$36)),(0,f.finishLoad)(),f.ids$jscomp$36.forEach(function(H){H=V.getModuleInfo(H);
if(!H.isLoaded())H.onError(new hx.ModuleLoadFailure(hx.ModuleLoadFailure.JSC$9081_Type.CONSECUTIVE_FAILURES,n,f.ids$jscomp$36,t))}))}})}}(D),(0,D.load$jscomp$1)())},m2L=function(V,D,f,n,t){n=n===void 0?function(){return!0}:n;
t=t===void 0?{}:t;D=_.r(D);for(var J=D.next();!J.done;J=D.next()){J=J.value;var H=V.getModuleInfo(J);!t[J]&&n(H)&&(t[J]=!0,m2L(V,H.deps_||[],f,n,t),f(H))}};var RdU=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var vlZ=Symbol("Bd");window.JSCompiler_renameProperty=function(V){return V};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var CLL=!RdU||HTMLElement.es5Shimmed||_.fx.Reflect===void 0||_.fx.customElements===void 0||_.fx.customElements.polyfillWrapFlushCallback||!1,qE6,hTX=function(){var V=HTMLElement;if(CLL)return V;if(qE6!==void 0)return qE6;var D=_.fx.Reflect,f=function(){return D.construct(V,[],this.constructor)};
f.prototype=V.prototype;f.prototype.constructor=f;f.es5Shimmed=!0;Object.setPrototypeOf(f,V);return qE6=f},X1L=!1;CLL||X1L||(X1L=!0,_.fx.HTMLElement=hTX());/*

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 uh9=/(url\()([^)]*)(\))/g,Bkd=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,dax,fO;var RG=!window.ShadyDOM||!window.ShadyDOM.inUse,EiH=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),AqF=!window.customElements.polyfillWrapFlushCallback,a5P;if(a5P=RG&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var YEV=new CSSStyleSheet;YEV.replaceSync("");var $2r=document.createElement("div");$2r.attachShadow({mode:"open"});$2r.shadowRoot.adoptedStyleSheets=[YEV];a5P=$2r.shadowRoot.adoptedStyleSheets[0]===YEV}catch(V){a5P=!1}
var iOF=a5P,SEu=window.Polymer&&window.Polymer.rootPath||maR(document.baseURI||window.location.href),Z5=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,YwU=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,EE=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,WiH=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,zt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xz=window.Polymer&&window.Polymer.legacyWarnings||!1,p1L=window.Polymer&&window.Polymer.syncInitialRender||
!1,lL=window.Polymer&&window.Polymer.legacyUndefined||!1,LiE=window.Polymer&&window.Polymer.orderedComputed||!1,A_=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ac=window.Polymer&&window.Polymer.fastDomIf||!1,YG=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,I5p=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,OOo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var $G={},x2u={},e6=function(){return HTMLElement.apply(this,arguments)||this};
_.v(e6,HTMLElement);e6.import=function(V,D){return V?(V=$G[V]||x2u[V.toLowerCase()])&&D?V.querySelector(D):V:null};
e6.prototype.attributeChangedCallback=function(V,D,f){D!==f&&this.register()};
e6.prototype.register=function(V){if(V=V||this.id){if(EE&&($G[V]||x2u[V.toLowerCase()])!==void 0)throw $G[V]=x2u[V.toLowerCase()]=null,Error("Cd`"+V);this.id=V;$G[V]=x2u[V.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.IG.Object.defineProperties(e6.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var V=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;V=_.nO(this.getAttribute("assetpath")||"",V.baseURI);this.__assetpath=maR(V)}return this.__assetpath}}});
_.IG.Object.defineProperties(e6,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
e6["import"]=e6.import;e6.prototype.modules=$G;customElements.define("dom-module",e6);var M6E=0,RCR=0,tq=[],hdF=0,zCd=!1,U2L=document.createTextNode(""),Vvo,N2;(new window.MutationObserver(CeR)).observe(U2L,{characterData:!0});_.ii={after:function(V){return{run:function(D){return window.setTimeout(D,V)},
cancel:function(D){window.clearTimeout(D)}}},
run:function(V,D){return window.setTimeout(V,D)},
cancel:function(V){window.clearTimeout(V)}};
_.sm={run:function(V){return window.requestAnimationFrame(V)},
cancel:function(V){window.cancelAnimationFrame(V)}};
Vvo={run:function(V){return window.requestIdleCallback?window.requestIdleCallback(V):window.setTimeout(V,16)},
cancel:function(V){window.cancelIdleCallback?window.cancelIdleCallback(V):window.clearTimeout(V)}};
N2={run:function(V){zCd||(zCd=!0,U2L.textContent=hdF++);tq.push(V);return M6E++},
cancel:function(V){var D=V-RCR;if(D>=0){if(!tq[D])throw Error("Dd`"+V);tq[D]=null}}};var Di6=0,Sh=function(V){var D=V.__mixinApplications;D||(D=new WeakMap,V.__mixinApplications=D);var f=Di6++;return function(n){var t=n.__mixinSet;if(t&&t[f])return n;var J=D,H=J.get(n);H||(H=V(n),J.set(n,H),n=Object.create(H.__mixinSet||t||null),n[f]=!0,H.__mixinSet=n);return H}};_.y$=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(V){return ShadyDOM.patch(V)}:function(V){return V};var fku=Sh(function(V){var D=function(){var f=V.call(this)||this;f.__dataEnabled=!1;f.__dataReady=!1;f.__dataInvalid=!1;f.__data={};f.__dataPending=null;f.__dataOld=null;f.__dataInstanceProps=null;f.__dataCounter=0;f.__serializing=!1;f._initializeProperties();return f};
_.v(D,V);D.createProperties=function(f){var n=this.prototype,t;for(t in f)t in n||n._createPropertyAccessor(t)};
D.attributeNameForProperty=function(f){return f.toLowerCase()};
D.typeForProperty=function(){};
D.prototype._createPropertyAccessor=function(f,n){this._addPropertyToAttributeMap(f);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[f]||(this.__dataHasAccessor[f]=!0,this._definePropertyAccessor(f,n))};
D.prototype._addPropertyToAttributeMap=function(f){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var n=this.__dataAttributes[f];n||(n=this.constructor.attributeNameForProperty(f),this.__dataAttributes[n]=f);return n};
D.prototype._definePropertyAccessor=function(f,n){Object.defineProperty(this,f,{get:function(){return this.__data[f]},
set:n?function(){}:function(t){this._setPendingProperty(f,t,!0)&&this._invalidateProperties()}})};
D.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
D.prototype._initializeProperties=function(){for(var f in this.__dataHasAccessor)this.hasOwnProperty(f)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[f]=this[f],delete this[f])};
D.prototype._initializeInstanceProperties=function(f){Object.assign(this,f)};
D.prototype._setProperty=function(f,n){this._setPendingProperty(f,n)&&this._invalidateProperties()};
D.prototype._getProperty=function(f){return this.__data[f]};
D.prototype._setPendingProperty=function(f,n){var t=this.__data[f],J=this._shouldPropertyChange(f,n,t);J&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||f in this.__dataOld||(this.__dataOld[f]=t),this.__data[f]=n,this.__dataPending[f]=n);return J};
D.prototype._isPropertyPending=function(f){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(f))};
D.prototype._invalidateProperties=function(){var f=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,N2.run(function(){f.__dataInvalid&&(f.__dataInvalid=!1,f._flushProperties())}))};
D.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
D.prototype._flushProperties=function(){this.__dataCounter++;var f=this.__data,n=this.__dataPending,t=this.__dataOld;this._shouldPropertiesChange(f,n,t)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(f,n,t));this.__dataCounter--};
D.prototype._shouldPropertiesChange=function(f,n){return!!n};
D.prototype._propertiesChanged=function(){};
D.prototype._shouldPropertyChange=function(f,n,t){return t!==n&&(t===t||n===n)};
D.prototype.attributeChangedCallback=function(f,n,t,J){n!==t&&this._attributeToProperty(f,t);V.prototype.attributeChangedCallback&&V.prototype.attributeChangedCallback.call(this,f,n,t,J)};
D.prototype._attributeToProperty=function(f,n,t){if(!this.__serializing){var J=this.__dataAttributes;f=J&&J[f]||f;this[f]=this._deserializeValue(n,t||this.constructor.typeForProperty(f))}};
D.prototype._propertyToAttribute=function(f,n,t){this.__serializing=!0;t=arguments.length<3?this[f]:t;this._valueToNodeAttribute(this,t,n||this.constructor.attributeNameForProperty(f));this.__serializing=!1};
D.prototype._valueToNodeAttribute=function(f,n,t){n=this._serializeValue(n);if(t==="class"||t==="name"||t==="slot")f=(0,_.y$)(f);n===void 0?f.removeAttribute(t):f.setAttribute(t,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)};
D.prototype._serializeValue=function(f){switch(typeof f){case "boolean":return f?"":void 0;default:return f!=null?f.toString():void 0}};
D.prototype._deserializeValue=function(f,n){switch(n){case Boolean:return f!==null;case Number:return Number(f);default:return f}};
return D});var noP=0,qoF=[];var tvr=Sh(function(V){function D(J){J=Object.getPrototypeOf(J);return J.prototype instanceof t?J:null}
function f(J){if(!J.hasOwnProperty("__ownProperties")){var H=null;if(J.hasOwnProperty("properties")){var Q=J.properties;if(Q){H={};for(var T in Q){var y=Q[T];H[T]=typeof y==="function"?{type:y}:y}}}J.__ownProperties=H}return J.__ownProperties}
var n=fku(V),t=function(){return n.apply(this,arguments)||this};
_.v(t,n);t.finalize=function(){if(!this.hasOwnProperty("__finalized")){var J=D(this);J&&J.finalize();this.__finalized=!0;this._finalizeClass()}};
t._finalizeClass=function(){var J=f(this);J&&this.createProperties(J)};
t.typeForProperty=function(J){return(J=this._properties[J])&&J.type};
t.prototype._initializeProperties=function(){noP++;this.constructor.finalize();n.prototype._initializeProperties.call(this)};
t.prototype.connectedCallback=function(){n.prototype.connectedCallback&&n.prototype.connectedCallback.call(this);this._enableProperties()};
t.prototype.disconnectedCallback=function(){n.prototype.disconnectedCallback&&n.prototype.disconnectedCallback.call(this)};
_.IG.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var J=this;if(!this.hasOwnProperty("__observedAttributes")){Xj3(this.prototype);var H=this._properties;this.__observedAttributes=H?Object.keys(H).map(function(Q){return J.prototype._addPropertyToAttributeMap(Q)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var J=D(this);this.__properties=Object.assign({},J&&J._properties,f(this))}return this.__properties}}});
return t});var Elc={},AI9=/-[a-z]/g,anU=/([A-Z])/g;for(var P8u={},oo6=HTMLElement.prototype;oo6;){for(var JeF=Object.getOwnPropertyNames(oo6),reY=0;reY<JeF.length;reY++)P8u[JeF[reY]]=!0;oo6=Object.getPrototypeOf(oo6)}var Hll=window.trustedTypes?function(V){return trustedTypes.isHTML(V)||trustedTypes.isScript(V)||trustedTypes.isScriptURL(V)}:function(){return!1},w8l=Sh(function(V){var D=fku(V);
V=function(){return D.apply(this,arguments)||this};
_.v(V,D);V.createPropertiesForAttributes=function(){for(var f=this.observedAttributes,n=0;n<f.length;n++)this.prototype._createPropertyAccessor(P1(f[n]))};
V.attributeNameForProperty=function(f){return oG(f)};
V.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);D.prototype._initializeProperties.call(this)};
V.prototype._initializeProtoProperties=function(f){for(var n in f)this._setProperty(n,f[n])};
V.prototype._ensureAttribute=function(f,n){this.hasAttribute(f)||this._valueToNodeAttribute(this,n,f)};
V.prototype._serializeValue=function(f){switch(typeof f){case "object":if(f instanceof Date)return f.toString();if(f){if(Hll(f))return f;try{return JSON.stringify(f)}catch(n){return""}}default:return D.prototype._serializeValue.call(this,f)}};
V.prototype._deserializeValue=function(f,n){switch(n){case Object:try{var t=JSON.parse(f)}catch(J){t=f}break;case Array:try{t=JSON.parse(f)}catch(J){t=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+f)}break;case Date:t=isNaN(f)?String(f):Number(f);t=new Date(t);break;default:t=D.prototype._deserializeValue.call(this,f,n)}return t};
V.prototype._definePropertyAccessor=function(f,n){if(!P8u[f]){var t=this[f];t!==void 0&&(this.__data?this._setPendingProperty(f,t):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[f]=t))}D.prototype._definePropertyAccessor.call(this,f,n)};
V.prototype._hasAccessor=function(f){return this.__dataHasAccessor&&this.__dataHasAccessor[f]};
V.prototype._isPropertyPending=function(f){return!!(this.__dataPending&&f in this.__dataPending)};
return V});var Qbu={"dom-if":!0,"dom-repeat":!0},T2P=!1,blH=!1,KIF=function(){var V=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(D){return D}});
return function(D,f,n){f=f.getAttribute(n);V&&n.startsWith("on-")?D.setAttribute(n,V.createScript(f,n)):D.setAttribute(n,f)}}(),yer=Sh(function(V){var D=function(){return V.apply(this,arguments)||this};
_.v(D,V);D._parseTemplate=function(f,n){if(!f._templateInfo){var t=f._templateInfo={};t.nodeInfoList=[];t.nestedTemplate=!!n;t.stripWhiteSpace=n&&n.stripWhiteSpace||f.hasAttribute&&f.hasAttribute("strip-whitespace");this._parseTemplateContent(f,t,{parent:null})}return f._templateInfo};
D._parseTemplateContent=function(f,n,t){return this._parseTemplateNode(f.content,n,t)};
D._parseTemplateNode=function(f,n,t){var J=!1;f.localName!="template"||f.hasAttribute("preserve-content")?f.localName==="slot"&&(n.hasInsertionPoint=!0):J=this._parseTemplateNestedTemplate(f,n,t)||J;if(!T2P){T2P=!0;var H=document.createElement("textarea");H.placeholder="a";blH=H.placeholder===H.textContent}blH&&f.localName==="textarea"&&f.placeholder&&f.placeholder===f.textContent&&(f.textContent=null);f.firstChild&&this._parseTemplateChildNodes(f,n,t);f.hasAttributes&&f.hasAttributes()&&(J=this._parseTemplateNodeAttributes(f,
n,t)||J);return J||t.noted};
D._parseTemplateChildNodes=function(f,n,t){if(f.localName!=="script"&&f.localName!=="style")for(var J=f.firstChild,H=0,Q;J;J=Q){if(J.localName=="template"){var T=J.getAttribute("is");if(T&&Qbu[T])for(Q=J,Q.removeAttribute("is"),J=Q.ownerDocument.createElement(T),Q.parentNode.replaceChild(J,Q),J.appendChild(Q);Q.attributes.length;)T=Q.attributes[0].name,KIF(J,Q,T),Q.removeAttribute(T)}Q=J.nextSibling;if(J.nodeType===Node.TEXT_NODE){for(T=Q;T&&T.nodeType===Node.TEXT_NODE;)J.textContent+=T.textContent,
Q=T.nextSibling,f.removeChild(T),T=Q;if(n.stripWhiteSpace&&!J.textContent.trim()){f.removeChild(J);continue}}T={parentIndex:H,parentInfo:t};this._parseTemplateNode(J,n,T)&&(T.infoIndex=n.nodeInfoList.push(T)-1);J.parentNode&&H++}};
D._parseTemplateNestedTemplate=function(f,n,t){n=this._parseTemplate(f,n);(n.content=f.content.ownerDocument.createDocumentFragment()).appendChild(f.content);t.templateInfo=n;return!0};
D._parseTemplateNodeAttributes=function(f,n,t){for(var J=!1,H=Array.from(f.attributes),Q=H.length-1,T;T=H[Q];Q--)J=this._parseTemplateNodeAttribute(f,n,t,T.name,T.value)||J;return J};
D._parseTemplateNodeAttribute=function(f,n,t,J,H){return J.slice(0,3)==="on-"?(f.removeAttribute(J),t.events=t.events||[],t.events.push({name:J.slice(3),value:H}),!0):J==="id"?(t.id=H,!0):!1};
D._contentForTemplate=function(f){var n=f._templateInfo;return n&&n.content||f.content};
D.prototype._stampTemplate=function(f,n){f&&!f.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(f);n=n||this.constructor._parseTemplate(f);var t=n.nodeInfoList;f=document.importNode(n.content||f.content,!0);f.__noInsertionPoint=!n.hasInsertionPoint;var J=f.nodeList=Array(t.length);f.$={};for(var H=0,Q=t.length,T=void 0;H<Q&&(T=t[H]);H++){var y=J[H]=YoY(f,T);T.id&&(f.$[T.id]=y);var Z=y,l=T,G=n;l.templateInfo&&(Z._templateInfo=l.templateInfo,Z._parentTemplateInfo=
G);if(T.events&&T.events.length)for(Z=0,l=T.events,G=void 0;Z<l.length&&(G=l[Z]);Z++)this._addMethodEventListenerToNode(y,G.name,G.value,this)}return f};
D.prototype._addMethodEventListenerToNode=function(f,n,t,J){t=$aZ(J||f,t);this._addEventListenerToNode(f,n,t);return t};
D.prototype._addEventListenerToNode=function(f,n,t){f.addEventListener(n,t)};
D.prototype._removeEventListenerFromNode=function(f,n,t){f.removeEventListener(n,t)};
return D});var bL=0,j6=[],Zlr={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},jbp=/[A-Z]/,lkp=function(V,D,f,n,t){var J=t?rv(V):V;if(D=D[J])for(J=0;J<D.length;J++){var H=D[J];if(H.info.lastRun!==bL&&(!t||InY(V,H.trigger))){H.info.lastRun=bL;H=H.info;for(var Q=f,T=n,y=0,Z=Q.length-1,l=-1;y<=Z;){var G=y+Z>>1,F=T.get(Q[G].methodInfo)-T.get(H.methodInfo);if(F<0)y=G+1;else if(F>0)Z=G-1;else{l=G;break}}l<
0&&(l=Z+1);Q.splice(l,0,H)}}},HXF=[],GRl=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"),pn=Sh(function(V){var D=yer(w8l(V));
V=function(){var f=D.call(this)||this;f.__isPropertyEffectsClient=!0;return f};
_.v(V,D);V.prototype._initializeProperties=function(){D.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};
V.prototype._registerHost=function(){if(WE.length){var f=WE[WE.length-1];f._enqueueClient(this);this.__dataHost=f}};
V.prototype._initializeProtoProperties=function(f){this.__data=Object.create(f);this.__dataPending=Object.create(f);this.__dataOld={}};
V.prototype._initializeInstanceProperties=function(f){var n=this.__readOnly,t;for(t in f)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=f[t])};
V.prototype._addPropertyEffect=function(f,n,t){this._createPropertyAccessor(f,n=="__readOnly");var J=LAn(this,n,!0)[f];J||(J=this[n][f]=[]);J.push(t)};
V.prototype._removePropertyEffect=function(f,n,t){f=LAn(this,n,!0)[f];t=f.indexOf(t);t>=0&&f.splice(t,1)};
V.prototype._hasPropertyEffect=function(f,n){n=this[n];return!(!n||!n[f])};
V.prototype._hasReadOnlyEffect=function(f){return this._hasPropertyEffect(f,"__readOnly")};
V.prototype._hasNotifyEffect=function(f){return this._hasPropertyEffect(f,"__notifyEffects")};
V.prototype._hasReflectEffect=function(f){return this._hasPropertyEffect(f,"__reflectEffects")};
V.prototype._hasComputedEffect=function(f){return this._hasPropertyEffect(f,"__computeEffects")};
V.prototype._setPendingPropertyOrPath=function(f,n,t,J){if(J||rv(Array.isArray(f)?f[0]:f)!==f){if(!J&&(J=Tt(this,f),f=pjn(this,f,n),!f||!D.prototype._shouldPropertyChange.call(this,f,n,J)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(f,n,t)){if(t=this.__dataLinkedPaths)for(var H in t)J=t[H],H1(H,f)?(J=wv(H,J,f),this._setPendingPropertyOrPath(J,n,!0,!0)):H1(J,f)&&(J=wv(J,H,f),this._setPendingPropertyOrPath(J,n,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[f])return this._setPendingProperty(f,
n,t);this[f]=n}return!1};
V.prototype._setUnmanagedPropertyToNode=function(f,n,t){if(t!==f[n]||typeof t=="object")n==="className"&&(f=(0,_.y$)(f)),f[n]=t};
V.prototype._setPendingProperty=function(f,n,t){var J=this.__dataHasPaths&&Jq(f);if(this._shouldPropertyChange(f,n,(J?this.__dataTemp:this.__data)[f])){this.__dataPending||(this.__dataPending={},this.__dataOld={});f in this.__dataOld||(this.__dataOld[f]=this.__data[f]);J?this.__dataTemp[f]=n:this.__data[f]=n;this.__dataPending[f]=n;if(J||this.__notifyEffects&&this.__notifyEffects[f])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[f]=t;return!0}return!1};
V.prototype._setProperty=function(f,n){this._setPendingProperty(f,n,!0)&&this._invalidateProperties()};
V.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
V.prototype._enqueueClient=function(f){this.__dataPendingClients=this.__dataPendingClients||[];f!==this&&this.__dataPendingClients.push(f)};
V.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
V.prototype.__enableOrFlushClients=function(){var f=this.__dataPendingClients;if(f){this.__dataPendingClients=null;for(var n=0;n<f.length;n++){var t=f[n];t.__dataEnabled?t.__dataPending&&t._flushProperties():t._enableProperties()}}};
V.prototype._readyClients=function(){this.__enableOrFlushClients()};
V.prototype.setProperties=function(f,n){for(var t in f)!n&&this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,f[t],!0);this._invalidateProperties()};
V.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
V.prototype._propertiesChanged=function(f,n,t){f=this.__dataHasPaths;this.__dataHasPaths=!1;var J;if(J=this.__computeEffects)if(LiE){bL++;var H=VKZ(this),Q=[],T;for(T in n)lkp(T,J,Q,H,f);for(;T=Q.shift();)ftn(this,"",n,t,T)&&lkp(T.methodInfo,J,Q,H,f);Object.assign(t,this.__dataOld);Object.assign(n,this.__dataPending);this.__dataPending=null}else for(H=n;KO(this,J,H,t,f);)Object.assign(t,this.__dataOld),Object.assign(n,this.__dataPending),H=this.__dataPending,this.__dataPending=null;J=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(n,t,f);this._flushClients();KO(this,this.__reflectEffects,n,t,f);KO(this,this.__observeEffects,n,t,f);if(J){H=this.__notifyEffects;Q=bL++;for(var y in J)if(J[y]){if(T=H){var Z=H;T=Q;var l=y,G=n,F=t,k=f,d=!1,z=k?rv(l):l;if(Z=Z[z]){z=0;for(var C=Z.length,A=void 0;z<C&&(A=Z[z]);z++)A.info&&A.info.lastRun===T||k&&!InY(l,A.trigger)||(A.info&&(A.info.lastRun=T),A.fn(this,l,G,F,A.info,k,void 0),d=!0)}T=d}if(T)var O=!0;else{if(T=f)T=y,l=n,G=rv(T),G!==
T?(G=oG(G)+"-changed",xac(this,G,l[T],T),T=!0):T=!1;T&&(O=!0)}}var W;O&&(W=this.__dataHost)&&W._invalidateProperties&&W._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
V.prototype._propagatePropertyChanges=function(f,n,t){this.__propagateEffects&&KO(this,this.__propagateEffects,f,n,t);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,f,n,t)};
V.prototype._runEffectsForTemplate=function(f,n,t,J){var H=this,Q=function(T,y){KO(H,f.propertyEffects,T,t,y,f.nodeList);for(var Z=f.firstChild;Z;Z=Z.nextSibling)H._runEffectsForTemplate(Z,T,t,y)};
f.runEffects?f.runEffects(Q,n,J):Q(n,J)};
V.prototype.linkPaths=function(f,n){f=Q$(f);n=Q$(n);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[f]=n};
V.prototype.unlinkPaths=function(f){f=Q$(f);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[f]};
V.prototype.notifySplices=function(f,n){var t={path:""};f=Tt(this,f,t);bXx(this,f,t.path,n)};
V.prototype.get=function(f,n){return Tt(n||this,f)};
V.prototype.set=function(f,n,t){t?pjn(t,f,n):this.__readOnly&&this.__readOnly[f]||this._setPendingPropertyOrPath(f,n,!0)&&this._invalidateProperties()};
V.prototype.push=function(f){var n=_.gQ.apply(1,arguments),t={path:""},J=Tt(this,f,t),H=J.length,Q=J.push.apply(J,_.sz(n));n.length&&Gt(this,J,t.path,H,n.length,[]);return Q};
V.prototype.pop=function(f){var n={path:""};f=Tt(this,f,n);var t=!!f.length,J=f.pop();t&&Gt(this,f,n.path,f.length,0,[J]);return J};
V.prototype.splice=function(f,n,t){var J=_.gQ.apply(3,arguments),H={path:""},Q=Tt(this,f,H);n<0?n=Q.length-Math.floor(-n):n&&(n=Math.floor(n));var T=arguments.length===2?Q.splice(n):Q.splice.apply(Q,[n,t].concat(_.sz(J)));(J.length||T.length)&&Gt(this,Q,H.path,n,J.length,T);return T};
V.prototype.shift=function(f){var n={path:""};f=Tt(this,f,n);var t=!!f.length,J=f.shift();t&&Gt(this,f,n.path,0,0,[J]);return J};
V.prototype.unshift=function(f){var n=_.gQ.apply(1,arguments),t={path:""},J=Tt(this,f,t),H=J.unshift.apply(J,_.sz(n));n.length&&Gt(this,J,t.path,0,n.length,[]);return H};
V.prototype.notifyPath=function(f,n){if(arguments.length==1){var t={path:""};n=Tt(this,f,t);t=t.path}else t=Array.isArray(f)?Q$(f):f;this._setPendingPropertyOrPath(t,n,!0,!0)&&this._invalidateProperties()};
V.prototype._createReadOnlyProperty=function(f,n){this._addPropertyEffect(f,"__readOnly");n&&(this["_set"+(f[0].toUpperCase()+f.substring(1))]=function(t){this._setProperty(f,t)})};
V.prototype._createPropertyObserver=function(f,n,t){var J={property:f,method:n,dynamicFn:!!t};this._addPropertyEffect(f,"__observeEffects",{fn:OTL,info:J,trigger:{name:f}});t&&this._addPropertyEffect(n,"__observeEffects",{fn:OTL,info:J,trigger:{name:n}})};
V.prototype._createMethodObserver=function(f,n){var t=Q7F(f);if(!t)throw Error("Ed`"+f);JYL(this,t,"__observeEffects",DsY,null,n)};
V.prototype._createNotifyingProperty=function(f){this._addPropertyEffect(f,"__notifyEffects",{fn:Ml9,info:{eventName:oG(f)+"-changed",property:f}})};
V.prototype._createReflectedProperty=function(f){var n=this.constructor.attributeNameForProperty(f);n[0]==="-"?console.warn("Property "+f+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(f,"__reflectEffects",{fn:hC3,info:{attrName:n}})};
V.prototype._createComputedProperty=function(f,n,t){var J=Q7F(n);if(!J)throw Error("Fd`"+n);n=JYL(this,J,"__computeEffects",ftn,f,t);LAn(this,"__computeInfo")[f]=n};
V.prototype._marshalArgs=function(f,n,t){for(var J=this.__data,H=[],Q=0,T=f.length;Q<T;Q++){var y=f[Q],Z=y.name,l=y.structured,G=y.wildcard,F=y.value;y.literal||(G?(y=H1(Z,n),l=Ta3(J,t,y?n:Z),F={path:y?n:Z,value:l,base:y?Tt(J,Z):l}):F=l?Ta3(J,t,Z):J[Z]);if(lL&&!this._overrideLegacyUndefined&&F===void 0&&f.length>1)return j6;H[Q]=F}return H};
V.addPropertyEffect=function(f,n,t){this.prototype._addPropertyEffect(f,n,t)};
V.createPropertyObserver=function(f,n,t){this.prototype._createPropertyObserver(f,n,t)};
V.createMethodObserver=function(f,n){this.prototype._createMethodObserver(f,n)};
V.createNotifyingProperty=function(f){this.prototype._createNotifyingProperty(f)};
V.createReadOnlyProperty=function(f,n){this.prototype._createReadOnlyProperty(f,n)};
V.createReflectedProperty=function(f){this.prototype._createReflectedProperty(f)};
V.createComputedProperty=function(f,n,t){this.prototype._createComputedProperty(f,n,t)};
V.bindTemplate=function(f){return this.prototype._bindTemplate(f)};
V.prototype._bindTemplate=function(f,n){var t=this.constructor._parseTemplate(f),J=this.__preBoundTemplateInfo==t;if(!J)for(var H in t.propertyEffects)this._createPropertyAccessor(H);n?(t=Object.create(t),t.wasPreBound=J,this.__templateInfo?(f=f._parentTemplateInfo||this.__templateInfo,n=f.lastChild,t.parent=f,f.lastChild=t,(t.previousSibling=n)?n.nextSibling=t:f.firstChild=t):this.__templateInfo=t):this.__preBoundTemplateInfo=t;return t};
V._addTemplatePropertyEffect=function(f,n,t){(f.hostProps=f.hostProps||{})[n]=!0;f=f.propertyEffects=f.propertyEffects||{};(f[n]=f[n]||[]).push(t)};
V.prototype._stampTemplate=function(f,n){n=n||this._bindTemplate(f,!0);WE.push(this);f=D.prototype._stampTemplate.call(this,f,n);WE.pop();n.nodeList=f.nodeList;if(!n.wasPreBound)for(var t=n.childNodes=[],J=f.firstChild;J;J=J.nextSibling)t.push(J);f.templateInfo=n;t=n.nodeList;J=n.nodeInfoList;if(J.length)for(var H=0;H<J.length;H++){var Q=t[H],T=J[H].bindings;if(T)for(var y=0;y<T.length;y++){var Z=T[y],l=Q,G=Z;if(G.isCompound){for(var F=l.__dataCompoundStorage||(l.__dataCompoundStorage={}),k=G.parts,
d=Array(k.length),z=0;z<k.length;z++)d[z]=k[z].literal;k=G.target;F[k]=d;G.literal&&G.kind=="property"&&(k==="className"&&(l=(0,_.y$)(l)),l[k]=G.literal)}oCF(Q,this,Z)}Q.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients());return f};
V.prototype._removeBoundDom=function(f){f=f.templateInfo;var n=f.previousSibling,t=f.nextSibling,J=f.parent;n?n.nextSibling=t:J&&(J.firstChild=t);t?t.previousSibling=n:J&&(J.lastChild=n);f.nextSibling=f.previousSibling=null;f=f.childNodes;for(n=0;n<f.length;n++)t=f[n],(0,_.y$)((0,_.y$)(t).parentNode).removeChild(t)};
V._parseTemplateNode=function(f,n,t){var J=D._parseTemplateNode.call(this,f,n,t);if(f.nodeType===Node.TEXT_NODE){var H=this._parseBindings(f.textContent,n);H&&(f.textContent=rYZ(H)||" ",PfF(this,n,t,"text","textContent",H),J=!0)}return J};
V._parseTemplateNodeAttribute=function(f,n,t,J,H){var Q=this._parseBindings(H,n);if(Q){H=J;var T="property";jbp.test(J)?T="attribute":J[J.length-1]=="$"&&(J=J.slice(0,-1),T="attribute");var y=rYZ(Q);y&&T=="attribute"&&(J=="class"&&f.hasAttribute("class")&&(y+=" "+f.getAttribute(J)),f.setAttribute(J,y));T=="attribute"&&H=="disable-upgrade$"&&f.setAttribute(J,"");f.localName==="input"&&H==="value"&&f.setAttribute(H,"");f.removeAttribute(H);T==="property"&&(J=P1(J));PfF(this,n,t,T,J,Q,y);return!0}return D._parseTemplateNodeAttribute.call(this,
f,n,t,J,H)};
V._parseTemplateNestedTemplate=function(f,n,t){var J=D._parseTemplateNestedTemplate.call(this,f,n,t),H=f.parentNode,Q=t.templateInfo,T=H.localName==="dom-if",y=H.localName==="dom-repeat";A_&&(T||y)&&(H.removeChild(f),t=t.parentInfo,t.templateInfo=Q,t.noted=!0,J=!1);f=Q.hostProps;if(ac&&T)f&&(n.hostProps=Object.assign(n.hostProps||{},f),A_||(t.parentInfo.noted=!0));else for(var Z in f)PfF(this,n,t,"property","_host_"+Z,[{mode:"{",source:Z,dependencies:[Z],hostProp:!0}]);return J};
V._parseBindings=function(f,n){for(var t=[],J=0,H;(H=GRl.exec(f))!==null;){H.index>J&&t.push({literal:f.slice(J,H.index)});J=H[1][0];var Q=!!H[2];H=H[3].trim();var T=!1,y="",Z=-1;J=="{"&&(Z=H.indexOf("::"))>0&&(y=H.substring(Z+2),H=H.substring(0,Z),T=!0);Z=Q7F(H);var l=[];if(Z){var G=Z,F=G.args;G=G.methodName;for(var k=0;k<F.length;k++){var d=F[k];d.literal||l.push(d)}if((F=n.dynamicFns)&&F[G]||Z.static)l.push(G),Z.dynamicFn=!0}else l.push(H);t.push({source:H,mode:J,negate:Q,customEvent:T,signature:Z,
dependencies:l,event:y});J=GRl.lastIndex}J&&J<f.length&&(f=f.substring(J))&&t.push({literal:f});return t.length?t:null};
V._evaluateBinding=function(f,n,t,J,H,Q){f=n.signature?DsY(f,t,J,H,n.signature):t!=n.source?Tt(f,n.source):Q&&Jq(t)?Tt(f,t):f.__data[t];n.negate&&(f=!f);return f};
_.IG.Object.defineProperties(V.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Zlr}}});
return V}),WE=[];var eio=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ln=Sh(function(V){function D(n,t,J,H){if(!eio){for(var Q=t.content.querySelectorAll("style"),T=j7Y(t),y=ltL(J),Z=t.content.firstElementChild,l=0;l<y.length;l++){var G=y[l];G.textContent=n._processStyleText(G.textContent,H);t.content.insertBefore(G,Z)}for(Z=y=0;Z<T.length;Z++)l=T[Z],G=Q[y],G!==l?(l=l.cloneNode(!0),G.parentNode.insertBefore(l,G)):y++,l.textContent=n._processStyleText(l.textContent,H)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,
J);if(OOo&&eio&&iOF&&(t=t.content.querySelectorAll("style"))){var F="";Array.from(t).forEach(function(k){F+=k.textContent;k.parentNode.removeChild(k)});
n._styleSheet=new CSSStyleSheet;n._styleSheet.replaceSync(F)}}
var f=tvr(pn(V));V=function(){return f.call(this)||this};
_.v(V,f);V._finalizeClass=function(){f._finalizeClass.call(this);var n;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(n=this.__ownObservers)&&this.createObservers(n,this._properties);this._prepareTemplate()};
V._prepareTemplate=function(){var n=this.template;n&&(typeof n==="string"?(console.error("template getter must return HTMLTemplateElement"),n=null):zt||(n=n.cloneNode(!0)));this.prototype._template=n};
V.createProperties=function(n){for(var t in n){var J=this.prototype,H=t,Q=n[t],T=n;Q.computed&&(Q.readOnly=!0);Q.computed&&(J._hasReadOnlyEffect(H)?console.warn("Cannot redefine computed property '"+H+"'."):J._createComputedProperty(H,Q.computed,T));Q.readOnly&&!J._hasReadOnlyEffect(H)?J._createReadOnlyProperty(H,!Q.computed):Q.readOnly===!1&&J._hasReadOnlyEffect(H)&&console.warn("Cannot make readOnly property '"+H+"' non-readOnly.");Q.reflectToAttribute&&!J._hasReflectEffect(H)?J._createReflectedProperty(H):
Q.reflectToAttribute===!1&&J._hasReflectEffect(H)&&console.warn("Cannot make reflected property '"+H+"' non-reflected.");Q.notify&&!J._hasNotifyEffect(H)?J._createNotifyingProperty(H):Q.notify===!1&&J._hasNotifyEffect(H)&&console.warn("Cannot make notify property '"+H+"' non-notify.");Q.observer&&J._createPropertyObserver(H,Q.observer,T[Q.observer]);J._addPropertyToAttributeMap(H)}};
V.createObservers=function(n,t){for(var J=this.prototype,H=0;H<n.length;H++)J._createMethodObserver(n[H],t)};
V.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);f.prototype._initializeProperties.call(this);this.rootPath=SEu;this.importPath=this.constructor.importPath;var n=this.constructor;if(!n.hasOwnProperty("__propertyDefaults")){n.__propertyDefaults=null;var t=n._properties,J;for(J in t){var H=t[J];"value"in H&&(n.__propertyDefaults=n.__propertyDefaults||{},n.__propertyDefaults[J]=H)}}if(n=n.__propertyDefaults)for(var Q in n)t=n[Q],
this._canApplyPropertyDefault(Q)&&(t=typeof t.value=="function"?t.value.call(this):t.value,this._hasAccessor(Q)?this._setPendingProperty(Q,t,!0):this[Q]=t)};
V.prototype._canApplyPropertyDefault=function(n){return!this.hasOwnProperty(n)};
V._processStyleText=function(n,t){return NkX(n,t)};
V._finalizeTemplate=function(n){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var J=this.importPath;J=J?_.nO(J):"";D(this,t,n,J);this.prototype._bindTemplate(t)}};
V.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);f.prototype.connectedCallback.call(this)};
V.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);f.prototype.ready.call(this)};
V.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));f.prototype._readyClients.call(this)};
V.prototype._attachDom=function(n){var t=(0,_.y$)(this);if(t.attachShadow)return n?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:n}),t.shadowRoot.appendChild(n),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),p1L&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw Error("Hd");};
V.prototype.updateStyles=function(n){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,n)};
V.prototype.resolveUrl=function(n,t){!t&&this.importPath&&(t=_.nO(this.importPath));return _.nO(n,t)};
V._parseTemplateContent=function(n,t,J){t.dynamicFns=t.dynamicFns||this._properties;return f._parseTemplateContent.call(this,n,t,J)};
V._addTemplatePropertyEffect=function(n,t,J){!Xz||t in this._properties||J.info.part.signature&&J.info.part.signature.static||J.info.part.hostProp||n.nestedTemplate||console.warn("Property '"+t+"' used in template but not declared in 'properties'; attribute will not be observed.");return f._addTemplatePropertyEffect.call(this,n,t,J)};
_.IG.Object.defineProperties(V,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var n=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof n==="function"&&(n=n());if(n===void 0){if(n=this.hasOwnProperty("is")){n=this.is;var t=null;if(n&&(!EE||WiH)&&(t=e6.import(n,"template"),EE&&!t))throw Error("Gd`"+n);n=t}n=n||Object.getPrototypeOf(this.prototype).constructor.template}this._template=n}return this._template},
set:function(n){this._template=n}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var n=this.importMeta;n?this._importPath=maR(n.url):this._importPath=(n=e6.import(this.is))&&n.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return V});var ceU=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(V){return V}}),kv9=function(V,D){FIF(V,D);
this.value=D.reduce(function(f,n,t){return f+s7Z(n)+V[t+1]},V[0]).toString()},FIF;
kv9.prototype.toString=function(){return this.value};
_.goF=function(V){var D=_.gQ.apply(1,arguments);FIF(V,D);var f=document.createElement("template");D=D.reduce(function(n,t,J){if(t instanceof HTMLTemplateElement)t=t.innerHTML;else if(t instanceof kv9)t=s7Z(t);else throw Error("Jd`"+t);return n+t+V[J+1]},V[0]);
ceU&&(D=ceU.createHTML(D));f.innerHTML=D;return f};
FIF=function(V,D){if(!Array.isArray(V)||!Array.isArray(V.raw)||D.length!==V.length-1)throw new TypeError("Kd");};var Ic=Ln(HTMLElement);var voV=Sh(function(V){var D=Ln(V);V=function(){var f=D.call(this)||this;f.__lastItems=null;f.__lastMulti=null;f.__selectedMap=null;return f};
_.v(V,D);V.prototype.__updateSelection=function(f,n){var t=n.path;t=="items"?(n=n.base||[],t=this.__lastItems,f!==this.__lastMulti&&this.clearSelection(),t&&(t=vCX(n,t),this.__applySplices(t)),this.__lastItems=n,this.__lastMulti=f):n.path=="items.splices"?this.__applySplices(n.value.indexSplices):(f=t.slice(6),n=parseInt(f,10),f.indexOf(".")<0&&f==n&&this.__deselectChangedIdx(n))};
V.prototype.__applySplices=function(f){for(var n=this,t=this.__selectedMap,J={},H=0;H<f.length;J={s$jscomp$108:void 0},H++){J.s$jscomp$108=f[H];t.forEach(function(Z){return function(l,G){l<Z.s$jscomp$108.index||(l>=Z.s$jscomp$108.index+Z.s$jscomp$108.removed.length?t.set(G,l+Z.s$jscomp$108.addedCount-Z.s$jscomp$108.removed.length):t.set(G,-1))}}(J));
for(var Q=0;Q<J.s$jscomp$108.addedCount;Q++){var T=J.s$jscomp$108.index+Q;t.has(this.items[T])&&t.set(this.items[T],T)}}this.__updateLinks();var y=0;t.forEach(function(Z,l){Z<0?(n.multi?n.splice("selected",y,1):n.selected=n.selectedItem=null,t.delete(l)):y++})};
V.prototype.__updateLinks=function(){var f=this;this.__dataLinkedPaths={};if(this.multi){var n=0;this.__selectedMap.forEach(function(t){t>=0&&f.linkPaths("items."+t,"selected."+n++)})}else this.__selectedMap.forEach(function(t){f.linkPaths("selected","items."+t);
f.linkPaths("selectedItem","items."+t)})};
V.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
V.prototype.isSelected=function(f){return this.__selectedMap.has(f)};
V.prototype.isIndexSelected=function(f){return this.isSelected(this.items[f])};
V.prototype.__deselectChangedIdx=function(f){var n=this,t=this.__selectedIndexForItemIndex(f);if(t>=0){var J=0;this.__selectedMap.forEach(function(H,Q){t==J++&&n.deselect(Q)})}};
V.prototype.__selectedIndexForItemIndex=function(f){if(f=this.__dataLinkedPaths["items."+f])return parseInt(f.slice(9),10)};
V.prototype.deselect=function(f){var n=this.__selectedMap.get(f);if(n>=0){this.__selectedMap.delete(f);var t;this.multi&&(t=this.__selectedIndexForItemIndex(n));this.__updateLinks();this.multi?this.splice("selected",t,1):this.selected=this.selectedItem=null}};
V.prototype.deselectIndex=function(f){this.deselect(this.items[f])};
V.prototype.select=function(f){this.selectIndex(this.items.indexOf(f))};
V.prototype.selectIndex=function(f){var n=this.items[f];this.isSelected(n)?this.toggle&&this.deselectIndex(f):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(n,f),this.__updateLinks(),this.multi?this.push("selected",n):this.selected=this.selectedItem=n)};
_.IG.Object.defineProperties(V,{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 V}),kRY=voV(Ic),Oj=function(){return kRY.apply(this,arguments)||this};
_.v(Oj,kRY);_.IG.Object.defineProperties(Oj,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Oj.is,Oj);var sbP=window.Polymer;window.Polymer=function(V){return window.Polymer._polymerFn(V)};
sbP&&Object.assign(Polymer,sbP);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:NkX,resolveUrl:_.nO,pathFromUrl:maR};Polymer.DomModule=e6;Polymer.Async={timeOut:_.ii,animationFrame:_.sm,idlePeriod:Vvo,microTask:N2};Polymer.dedupingMixin=Sh;Polymer.wrap=_.y$;Polymer.PropertiesChanged=fku;Polymer.telemetry={instanceCount:noP,incrementInstanceCount:function(){noP++},
registrations:qoF,register:Xj3,dumpRegistrations:function(){qoF.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=tvr;Polymer.CaseMap={dashToCamelCase:P1,camelToDashCase:oG};Polymer.PropertyAccessors=w8l;Polymer.TemplateStamp=yer;Polymer.Path={isPath:Jq,root:rv,isAncestor:iT3,isDescendant:H1,translate:wv,matches:SoX,normalize:Q$,split:WAL,get:Tt,set:pjn,isDeep:Jq};Polymer.Settings={useShadow:RG,useNativeCSSProperties:EiH,useNativeCustomElements:AqF,get rootPath(){return SEu},setRootPath:function(V){SEu=V},
get sanitizeDOMValue(){return Z5},setSanitizeDOMValue:function(V){Z5=V},
get passiveTouchGestures(){return YwU},setPassiveTouchGestures:function(V){YwU=V},
get strictTemplatePolicy(){return EE},setStrictTemplatePolicy:function(V){EE=V},
get allowTemplateFromDomModule(){return WiH},setAllowTemplateFromDomModule:function(V){WiH=V},
get legacyOptimizations(){return zt},setLegacyOptimizations:function(V){zt=V},
get syncInitialRender(){return p1L},setSyncInitialRender:function(V){p1L=V},
get legacyUndefined(){return lL},setLegacyUndefined:function(V){lL=V},
get legacyWarnings(){return Xz},setLegacyWarnings:function(V){Xz=V},
get orderedComputed(){return LiE},setOrderedComputed:function(V){LiE=V},
get fastDomIf(){return ac},setFastDomIf:function(V){ac=V},
get removeNestedTemplates(){return A_},setRemoveNestedTemplates:function(V){A_=V},
get suppressTemplateNotifications(){return YG},setSuppressTemplateNotifications:YG};Polymer.rootPath!==void 0&&(SEu=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Z5=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(YwU=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(EE=Polymer.strictTemplatePolicy);WiH=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(zt=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(p1L=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(lL=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Xz=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(LiE=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(ac=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(A_=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(YG=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Z5},
set:function(V){Z5=V}});Polymer.PropertyEffects=pn;Polymer.StyleGather={stylesFromModules:ZX9,stylesFromModule:yYZ,stylesFromTemplate:j7Y,stylesFromModuleImports:ltL,cssFromModules:e6U,cssFromModule:GvR,cssFromTemplate:cYU,cssFromModuleImports:function(V){return(V=e6.import(V))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V):""}};Polymer.ElementMixin=Ln;Polymer.updateStyles=function(V){window.ShadyCSS&&window.ShadyCSS.styleDocument(V)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:vCX};Polymer.html=_.goF;Polymer.htmlLiteral=function(V){return new kv9(V,_.gQ.apply(1,arguments))};Polymer.Element=Ic;Polymer.ArraySelectorMixin=voV;Polymer.ArraySelector=Oj;var B2V=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,diE=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,JxL=/@media\s(.*)/;var NaL=null,uOF=window.HTMLImports&&window.HTMLImports.whenReady||null,msn;var uwl=null,xG=null,MQ=function(){this.customStyles=[];this.enqueued=!1;R63(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},N2Y=function(V){!V.enqueued&&xG&&(V.enqueued=!0,R63(xG))};
MQ.prototype.addCustomStyle=function(V){V.__seenByShadyCSS||(V.__seenByShadyCSS=!0,this.customStyles.push(V),N2Y(this))};
MQ.prototype.getStyleForCustomStyle=function(V){if(V.__shadyCSSCachedStyle)return V.__shadyCSSCachedStyle;var D;V.getStyle?D=V.getStyle():D=V;return D};
MQ.prototype.processStyles=function(){for(var V=this.customStyles,D=0;D<V.length;D++){var f=V[D];if(!f.__shadyCSSCachedStyle){var n=this.getStyleForCustomStyle(f);n&&(n=n.__appliedElement||n,uwl&&uwl(n),f.__shadyCSSCachedStyle=n)}}return V};
MQ.prototype.addCustomStyle=MQ.prototype.addCustomStyle;MQ.prototype.getStyleForCustomStyle=MQ.prototype.getStyleForCustomStyle;MQ.prototype.processStyles=MQ.prototype.processStyles;Object.defineProperties(MQ.prototype,{transformCallback:{get:function(){return uwl},
set:function(V){uwl=V}},
validateCallback:{get:function(){return xG},
set:function(V){var D=!1;xG||(D=!0);xG=V;D&&N2Y(this)}}});var qwx=!(window.ShadyDOM&&window.ShadyDOM.inUse),CfZ,LO;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(LO=window.ShadyCSS.cssBuild);var miF=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?CfZ=window.ShadyCSS.nativeCss:window.ShadyCSS?(XWY(window.ShadyCSS),window.ShadyCSS=void 0):XWY(window.WebComponents&&window.WebComponents.flags);var t99=CfZ;var zil=new MQ;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(V,D){zil.processStyles();BaU(V,D)},
styleElement:function(){zil.processStyles()},
styleDocument:function(V){zil.processStyles();BaU(document.body,V)},
getComputedStyleValue:function(V,D){return dsY(V,D)},
flushCustomStyles:function(){},
nativeCss:t99,nativeShadow:qwx,cssBuild:LO,disableRuntime:miF});window.ShadyCSS.CustomStyleInterface=zil;var RiE=window.ShadyCSS.CustomStyleInterface,h_=function(){var V=HTMLElement.call(this)||this;V._style=null;RiE.addCustomStyle(V);return V};
_.v(h_,HTMLElement);h_.prototype.getStyle=function(){if(this._style)return this._style;var V=this.querySelector("style");if(!V)return null;this._style=V;var D=V.getAttribute("include");D&&(V.removeAttribute("include"),V.textContent=e6U(D)+V.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
h_.prototype.getStyle=h_.prototype.getStyle;window.customElements.define("custom-style",h_);Polymer.CustomStyle=h_;var Uj=function(){this._timer=this._callback=this._asyncModule=null},Vj,qXY;
Uj.prototype.setConfig=function(V,D){var f=this;this._asyncModule=V;this._callback=D;this._timer=this._asyncModule.run(function(){f._timer=null;Vj.delete(f);f._callback()})};
Uj.prototype.cancel=function(){this.isActive()&&(C8U(this),Vj.delete(this))};
var C8U=function(V){V.isActive()&&(V._asyncModule.cancel(V._timer),V._timer=null)};
Uj.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Uj.prototype.isActive=function(){return this._timer!=null};
_.DA=function(V,D,f){V instanceof Uj?C8U(V):V=new Uj;V.setConfig(D,f);return V};
Vj=new Set;_.fN=function(V){Vj.add(V)};
qXY=function(){var V=!!Vj.size;Vj.forEach(function(D){try{D.flush()}catch(f){setTimeout(function(){throw f;})}});
return V};var AY3=typeof document.head.style.touchAction==="string",EC3=["mousedown","mousemove","mouseup","click"],ItU=[0,1,4,2],X8p;try{X8p=(new MouseEvent("test",{buttons:1})).buttons===1}catch(V){X8p=!1}var Lf3=X8p,atx=!1;(function(){try{var V=Object.defineProperty({},"passive",{get:function(){atx=!0}});
window.addEventListener("test",null,V);window.removeEventListener("test",null,V)}catch(D){}})();
var iXX=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Sw9=[],EoL={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},oVF={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},WfX=function(V){var D=V.sourceCapabilities;if(!D||D.firesTouchEvents)if(V.__polymerGesturesHandled={skip:!0},V.type==="click"){D=!1;for(var f=h63(V),n=0;n<f.length;n++){if(f[n].nodeType===Node.ELEMENT_NODE)if(f[n].localName==="label")Sw9.push(f[n]);
else if(EoL[f[n].localName]){var t=f[n];var J=Array.prototype.slice.call(t.labels||[]);if(!J.length){J=[];try{var H=t.getRootNode();if(t.id){var Q=H.querySelectorAll("label[for = '"+t.id+"']");for(t=0;t<Q.length;t++)J.push(Q[t])}}catch(T){}}for(t=0;t<J.length;t++)D=D||Sw9.indexOf(J[t])>-1}if(f[n]===Aeo)return}D||(V.preventDefault(),V.stopPropagation())}},Aeo=null,nN=null,Vb9=0,DRn=0,UsX=-1,frY=!1;
document.addEventListener("touchend",function(V){nN||pW9(!0);Aeo=h63(V)[0];nN=_.DA(nN,_.ii.after(2500),function(){pW9();nN=Aeo=null})},atx?{passive:!0}:!1);
var h63=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(V){return V.composedPath&&V.composedPath()||[]},sE={},v1=[];
nVZ({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){gv(this.info)},
mousedown:function(V){if(Fz(V)){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),f=this;xs9(this.info,function(n){Fz(n)||(mi("up",D,n),gv(f.info))},function(n){Fz(n)&&mi("up",D,n);
gv(f.info)});
mi("down",D,V)}},
touchstart:function(V){mi("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),V.changedTouches[0],V)},
touchend:function(V){mi("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),V.changedTouches[0],V)}});
nVZ({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(V){this.moves.length>2&&this.moves.shift();this.moves.push(V)},
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;gv(this.info)},
mousedown:function(V){if(Fz(V)){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),f=this,n=function(t){var J=t.clientX,H=t.clientY;tbn(f.info,J,H)&&(f.info.state=f.info.started?t.type==="mouseup"?"end":"track":"start",f.info.state==="start"&&ki("tap"),f.info.addMove({x:J,y:H}),Fz(t)||(f.info.state="end",gv(f.info)),D&&PnZ(f.info,D,t),f.info.started=!0)};
xs9(this.info,n,function(t){f.info.started&&n(t);gv(f.info)});
this.info.x=V.clientX;this.info.y=V.clientY}},
touchstart:function(V){V=V.changedTouches[0];this.info.x=V.clientX;this.info.y=V.clientY},
touchmove:function(V){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V=V.changedTouches[0];var f=V.clientX,n=V.clientY;tbn(this.info,f,n)&&(this.info.state==="start"&&ki("tap"),this.info.addMove({x:f,y:n}),PnZ(this.info,D,V),this.info.state="track",this.info.started=!0)},
touchend:function(V){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V=V.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:V.clientX,y:V.clientY}),PnZ(this.info,D,V))}});
nVZ({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(V){Fz(V)&&(this.info.x=V.clientX,this.info.y=V.clientY)},
click:function(V){Fz(V)&&JEL(this.info,V)},
touchstart:function(V){V=V.changedTouches[0];this.info.x=V.clientX;this.info.y=V.clientY},
touchend:function(V){JEL(this.info,V.changedTouches[0],V)}});var akP=Sh(function(V){var D=function(){return V.apply(this,arguments)||this};
_.v(D,V);D.prototype._addEventListenerToNode=function(f,n,t){B1(f,n,t)||V.prototype._addEventListenerToNode.call(this,f,n,t)};
D.prototype._removeEventListenerFromNode=function(f,n,t){dv(f,n,t)||V.prototype._removeEventListenerFromNode.call(this,f,n,t)};
return D});var tb=Sh(function(V){var D=function(){return V.apply(this,arguments)||this};
_.v(D,V);D.prototype._shouldPropertyChange=function(f,n,t){return rEX(this,f,n,t,!0)};
return D}),YXl=Sh(function(V){var D=function(){return V.apply(this,arguments)||this};
_.v(D,V);D.prototype._shouldPropertyChange=function(f,n,t){return rEX(this,f,n,t,this.mutableData)};
_.IG.Object.defineProperties(D,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return D});
tb._mutablePropertyChange=rEX;var HLd=!1;var $i6=akP(YXl(pn(HTMLElement))),Py=function(){var V=$i6.call(this)||this;if(EE)throw Error("Md");V.root=null;V.$=null;V.__children=null;return V};
_.v(Py,$i6);_.P=Py.prototype;_.P.attributeChangedCallback=function(){this.mutableData=!0};
_.P.connectedCallback=function(){wCc()||(this.style.display="none");this.render()};
_.P.disconnectedCallback=function(){this.__removeChildren()};
_.P.__insertChildren=function(){(0,_.y$)((0,_.y$)(this).parentNode).insertBefore(this.root,this)};
_.P.__removeChildren=function(){if(this.__children)for(var V=0;V<this.__children.length;V++)this.root.appendChild(this.__children[V])};
_.P.render=function(){var V=this;if(!this.__children){var D=D||this.querySelector("template");if(!D){var f=new MutationObserver(function(){if(D=V.querySelector("template"))f.disconnect(),V.render();else throw Error("Nd");});
f.observe(this,{childList:!0});return}this.root=this._stampTemplate(D);this.$=this.root.$;this.__children=[];for(var n=this.root.firstChild;n;n=n.nextSibling)this.__children[this.__children.length]=n;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.IG.Object.defineProperties(Py,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Py);Polymer.Debouncer=Uj;Polymer.Gestures={gestures:sE,recognizers:v1,deepTargetFind:MKY,addListener:B1,removeListener:dv,register:nVZ,setTouchAction:_.uL,prevent:ki,resetMouseCanceller:function(){nN&&nN.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:B1,remove:dv};Polymer.GestureEventListeners=akP;Polymer.MutableData=tb;Polymer.OptionalMutableData=YXl;Polymer.DomBind=Py;_.oa=function(){do{var V=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var D=qXY()}while(V||D)};var Qm9=null;T39.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:T39,writable:!0}});var eSY=pn(T39),GSd=tb(eSY),ilr=pn(function(){}),CO=function(V){var D=ilr.call(this)||this;
D._configureProperties(V);D.root=D._stampTemplate(D.__dataHost);var f=[];D.children=f;for(var n=D.root.firstChild;n;n=n.nextSibling)f.push(n),n.__templatizeInstance=D;D.__templatizeOwner&&D.__templatizeOwner.__hideTemplateChildren__&&D._showHideChildren(!0);f=D.__templatizeOptions;(V&&f.instanceProps||!f.instanceProps)&&D._enableProperties();return D};
_.v(CO,ilr);_.P=CO.prototype;_.P._configureProperties=function(V){if(this.__templatizeOptions.forwardHostProp)for(var D in this.__hostProps)this._setPendingProperty(D,this.__dataHost["_host_"+D]);for(var f in V)this._setPendingProperty(f,V[f])};
_.P.forwardHostProp=function(V,D){this._setPendingPropertyOrPath(V,D,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.P._addEventListenerToNode=function(V,D,f){var n=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(V,D,function(J){J.model=n;f(J)});
else{var t=this.__dataHost.__dataHost;t&&t._addEventListenerToNode(V,D,f)}};
_.P._showHideChildren=function(V){KDZ(V,this.children)};
_.P._setUnmanagedPropertyToNode=function(V,D,f){V.__hideTemplateChildren__&&V.nodeType==Node.TEXT_NODE&&D=="textContent"?V.__polymerTextContent__=f:ilr.prototype._setUnmanagedPropertyToNode.call(this,V,D,f)};
_.P.dispatchEvent=function(){return!0};
_.IG.Object.defineProperties(CO.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var V=this.__parentModel;if(!V){var D;V=this;do V=V.__dataHost.__dataHost;while((D=V.__templatizeOptions)&&!D.parentModel);this.__parentModel=V}return V}}});
var ZLZ=tb(CO);var Jb=function(){var V=Ic.call(this)||this;V.__renderDebouncer=null;V._lastIf=!1;V.__hideTemplateChildren__=!1;return V};
_.v(Jb,Ic);_.P=Jb.prototype;_.P.__debounceRender=function(){var V=this;this.__renderDebouncer=_.DA(this.__renderDebouncer,N2,function(){return V.__render()});
_.fN(this.__renderDebouncer)};
_.P.disconnectedCallback=function(){Ic.prototype.disconnectedCallback.call(this);var V=(0,_.y$)(this).parentNode;V&&(V.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.y$)(V).host)||this.__teardownInstance()};
_.P.connectedCallback=function(){Ic.prototype.connectedCallback.call(this);wCc()||(this.style.display="none");this.if&&this.__debounceRender()};
_.P.__ensureTemplate=function(){var V=this;if(!this.__template){var D=this._templateInfo?this:(0,_.y$)(this).querySelector("template");if(!D){var f=new MutationObserver(function(){if((0,_.y$)(V).querySelector("template"))f.disconnect(),V.__render();else throw Error("Qd");});
f.observe(this,{childList:!0});return!1}this.__template=D}return!0};
_.P.__ensureInstance=function(){var V=(0,_.y$)(this).parentNode;if(this.__hasInstance()){var D=this.__getInstanceNodes();if(D&&D.length&&(0,_.y$)(this).previousSibling!==D[D.length-1])for(var f=0,n=void 0;f<D.length&&(n=D[f]);f++)(0,_.y$)(V).insertBefore(n,this)}else{if(!V||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(V)}return!0};
_.P.render=function(){_.oa()};
_.P.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();YG&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.P.__hasInstance=function(){};
_.P.__getInstanceNodes=function(){};
_.P.__createAndInsertInstance=function(){};
_.P.__teardownInstance=function(){};
_.P._showHideChildren=function(){};
_.IG.Object.defineProperties(Jb,{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:Jb.prototype.__debounceRender},restamp:{type:Boolean,observer:Jb.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var SXu=function(){var V=Jb.call(this)||this;V.__instance=null;V.__syncInfo=null;return V};
_.v(SXu,Jb);_.P=SXu.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.P.__createAndInsertInstance=function(V){var D=this,f=this.__dataHost||this;if(EE&&!this.__dataHost)throw Error("Od");var n=f._bindTemplate(this.__template,!0);n.runEffects=function(t,J,H){var Q=D.__syncInfo;if(D.if)Q&&(D.__syncInfo=null,D._showHideChildren(),J=Object.assign(Q.changedProps,J)),t(J,H);else if(D.__instance)if(Q||(Q=D.__syncInfo={runEffects:t,changedProps:{}}),H)for(var T in J)t=rv(T),Q.changedProps[t]=D.__dataHost[t];else Object.assign(Q.changedProps,J)};
this.__instance=f._stampTemplate(this.__template,n);(0,_.y$)(V).insertBefore(this.__instance,this)};
_.P.__syncHostProperties=function(){var V=this.__syncInfo;V&&(this.__syncInfo=null,V.runEffects(V.changedProps,!1))};
_.P.__teardownInstance=function(){var V=this.__dataHost||this;this.__instance&&(V._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.P._showHideChildren=function(){var V=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==V&&(this.__instance.__hidden=V,KDZ(V,this.__instance.templateInfo.childNodes));V||this.__syncHostProperties()};
var WIl=function(){var V=Jb.call(this)||this;V.__ctor=null;V.__instance=null;V.__invalidProps=null;return V};
_.v(WIl,Jb);_.P=WIl.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.children};
_.P.__createAndInsertInstance=function(V){this.__ctor||(this.__ctor=q2(this.__template,this,{mutableData:!0,forwardHostProp:function(D,f){this.__instance&&(this.if?this.__instance.forwardHostProp(D,f):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[rv(D)]=!0))}}));
this.__instance=new this.__ctor;(0,_.y$)(V).insertBefore(this.__instance.root,this)};
_.P.__teardownInstance=function(){if(this.__instance){var V=this.__instance.children;if(V&&V.length){var D=(0,_.y$)(V[0]).parentNode;if(D){D=(0,_.y$)(D);for(var f=0,n=void 0;f<V.length&&(n=V[f]);f++)D.removeChild(n)}}this.__instance=this.__invalidProps=null}};
_.P.__syncHostProperties=function(){var V=this.__invalidProps;if(V){this.__invalidProps=null;for(var D in V)this.__instance._setPendingProperty(D,this.__dataHost[D]);this.__instance._flushProperties()}};
_.P._showHideChildren=function(){var V=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==V&&(this.__instance.__hidden=V,this.__instance._showHideChildren(V));V||this.__syncHostProperties()};
_.uU=ac?SXu:WIl;customElements.define(_.uU.is,_.uU);Polymer.enqueueDebouncer=_.fN;Polymer.flush=_.oa;Polymer.Templatize={templatize:q2,modelForElement:sm3};Polymer.TemplateInstanceBase=CO;Polymer.DomIf=_.uU;var p8u=YXl(Ic),dI=function(){var V=p8u.call(this)||this;V.__instances=[];V.__renderDebouncer=null;V.__itemsIdxToInstIdx={};V.__chunkCount=null;V.__renderStartTime=null;V.__itemsArrayChanged=!1;V.__shouldMeasureChunk=!1;V.__shouldContinueChunking=!1;V.__chunkingId=0;V.__sortFn=null;V.__filterFn=null;V.__observePaths=null;V.__ctor=null;V.__isDetached=!0;V.template=null;return V};
_.v(dI,p8u);_.P=dI.prototype;_.P.disconnectedCallback=function(){p8u.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var V=0;V<this.__instances.length;V++)this.__detachInstance(V);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.P.connectedCallback=function(){p8u.prototype.connectedCallback.call(this);wCc()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var V=(0,_.y$)((0,_.y$)(this).parentNode),D=0;D<this.__instances.length;D++)this.__attachInstance(D,V);this.__chunkingId&&this.__render()}};
_.P.__ensureTemplatized=function(){var V=this;if(!this.__ctor){var D=this.template=this._templateInfo?this:this.querySelector("template");if(!D){var f=new MutationObserver(function(){if(V.querySelector("template"))f.disconnect(),V.__render();else throw Error("Rd");});
f.observe(this,{childList:!0});return!1}var n={};n[this.as]=!0;n[this.indexAs]=!0;n[this.itemsIndexAs]=!0;this.__ctor=q2(D,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(t,J){for(var H=this.__instances,Q=0,T=void 0;Q<H.length&&(T=H[Q]);Q++)T.forwardHostProp(t,J)},
notifyInstanceProp:function(t,J,H){SoX(this.as,J)&&(t=t[this.itemsIndexAs],J==this.as&&(this.items[t]=H),J=wv(this.as,"items."+t,J),this.notifyPath(J,H))}})}return!0};
_.P.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.P.__functionFromPropertyValue=function(V){if(typeof V==="string"){var D=this.__getMethodHost();return function(){return D[V].apply(D,arguments)}}return V};
_.P.__sortChanged=function(V){this.__sortFn=this.__functionFromPropertyValue(V);this.items&&this.__debounceRender(this.__render)};
_.P.__filterChanged=function(V){this.__filterFn=this.__functionFromPropertyValue(V);this.items&&this.__debounceRender(this.__render)};
_.P.__computeFrameTime=function(V){return Math.ceil(1E3/V)};
_.P.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.P.__handleObservedPaths=function(V){if(this.__sortFn||this.__filterFn)if(!V)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var D=this.__observePaths,f=0;f<D.length;f++)V.indexOf(D[f])===0&&this.__debounceRender(this.__render,this.delay)};
_.P.__itemsChanged=function(V){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(V.path,V.value)||(V.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.P.__debounceRender=function(V,D){D=D===void 0?0:D;this.__renderDebouncer=_.DA(this.__renderDebouncer,D>0?_.ii.after(D):N2,V.bind(this));_.fN(this.__renderDebouncer)};
_.P.render=function(){this.__debounceRender(this.__render);_.oa()};
_.P.__render=function(){var V=this;if(this.__ensureTemplatized()){var D=this.items||[],f=this.__sortAndFilterItems(D),n=this.__calculateLimit(f.length);this.__updateInstances(D,n,f);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){V.__chunkingId=null;V.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);YG&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.__sortAndFilterItems=function(V){for(var D=this,f=Array(V.length),n=0;n<V.length;n++)f[n]=n;this.__filterFn&&(f=f.filter(function(t,J,H){return D.__filterFn(V[t],J,H)}));
this.__sortFn&&f.sort(function(t,J){return D.__sortFn(V[t],V[J])});
return f};
_.P.__calculateLimit=function(V){var D=V,f=this.__instances.length;if(this.initialCount){var n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(D=Math.min(V,this.initialCount),this.__chunkCount=(n=Math.max(D-f,0))||1):(n=Math.min(Math.max(V-f,0),this.__chunkCount),D=Math.min(f+n,V));this.__shouldMeasureChunk=n===this.__chunkCount;this.__shouldContinueChunking=D<V;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return D};
_.P.__continueChunking=function(){if(this.__shouldMeasureChunk){var V=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/V*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.P.__updateInstances=function(V,D,f){var n=this.__itemsIdxToInstIdx={},t;for(t=0;t<D;t++){var J=this.__instances[t],H=f[t],Q=V[H];n[H]=t;J?(J._setPendingProperty(this.as,Q),J._setPendingProperty(this.indexAs,t),J._setPendingProperty(this.itemsIndexAs,H),J._flushProperties()):this.__insertInstance(Q,t,H)}for(V=this.__instances.length-1;V>=t;V--)this.__detachAndRemoveInstance(V)};
_.P.__detachInstance=function(V){V=this.__instances[V];for(var D=(0,_.y$)(V.root),f=0;f<V.children.length;f++)D.appendChild(V.children[f]);return V};
_.P.__attachInstance=function(V,D){D.insertBefore(this.__instances[V].root,this)};
_.P.__detachAndRemoveInstance=function(V){this.__detachInstance(V);this.__instances.splice(V,1)};
_.P.__stampInstance=function(V,D,f){var n={};n[this.as]=V;n[this.indexAs]=D;n[this.itemsIndexAs]=f;return new this.__ctor(n)};
_.P.__insertInstance=function(V,D,f){V=this.__stampInstance(V,D,f);f=(f=this.__instances[D+1])?f.children[0]:this;(0,_.y$)((0,_.y$)(this).parentNode).insertBefore(V.root,f);return this.__instances[D]=V};
_.P._showHideChildren=function(V){for(var D=0;D<this.__instances.length;D++)this.__instances[D]._showHideChildren(V)};
_.P.__handleItemPath=function(V,D){var f=V.slice(6),n=f.indexOf(".");V=n<0?f:f.substring(0,n);if(V==parseInt(V,10)){f=n<0?"":f.substring(n+1);this.__handleObservedPaths(f);if(V=this.__instances[this.__itemsIdxToInstIdx[V]])V._setPendingPropertyOrPath(this.as+(f?"."+f:""),D,!1,!0),V._flushProperties();return!0}};
_.P.itemForElement=function(V){return(V=this.modelForElement(V))&&V[this.as]};
_.P.indexForElement=function(V){return(V=this.modelForElement(V))&&V[this.indexAs]};
_.P.modelForElement=function(V){return sm3(this.template,V)};
_.IG.Object.defineProperties(dI,{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:dI.prototype.__sortChanged},filter:{type:Function,observer:dI.prototype.__filterChanged},observe:{type:String,observer:dI.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!YG,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.*)"]}}});
dI.prototype._setRenderedItemCount=function(){};
customElements.define(dI.is,dI);Polymer.DomRepeat=dI;var LIl=function(V,D){var f=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=V;this.callback=D;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){f._schedule()};
this.connect();this._schedule()},Ikp=function(V){var D=(0,_.y$)(V);
if(Aq(V))return D.assignedNodes({flatten:!0});V=[];for(var f=0;f<D.childNodes.length;f++){var n=D.childNodes[f];Aq(n)?V.push.apply(V,_.sz((0,_.y$)(n).assignedNodes({flatten:!0}))):V.push(n)}return V};
_.P=LIl.prototype;_.P.connect=function(){var V=this;Aq(this._target)?this._listenSlots([this._target]):(0,_.y$)(this._target).children&&(this._listenSlots((0,_.y$)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(D){V._processMutations(D)}):(this._nativeChildrenObserver=new MutationObserver(function(D){V._processMutations(D)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.P.disconnect=function(){Aq(this._target)?this._unlistenSlots([this._target]):(0,_.y$)(this._target).children&&(this._unlistenSlots((0,_.y$)(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};
_.P._schedule=function(){var V=this;this._scheduled||(this._scheduled=!0,N2.run(function(){return V.flush()}))};
_.P._processMutations=function(V){this._processSlotMutations(V);this.flush()};
_.P._processSlotMutations=function(V){if(V)for(var D=0;D<V.length;D++){var f=V[D];f.addedNodes&&this._listenSlots(f.addedNodes);f.removedNodes&&this._unlistenSlots(f.removedNodes)}};
_.P.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 V={target:this._target,addedNodes:[],removedNodes:[]},D=Ikp(this._target),f=vCX(D,this._effectiveNodes),n=0,t=void 0;n<f.length&&(t=f[n]);n++)for(var J=0,H=void 0;J<t.removed.length&&(H=t.removed[J]);J++)V.removedNodes.push(H);
n=0;for(t=void 0;n<f.length&&(t=f[n]);n++)for(J=t.index;J<t.index+t.addedCount;J++)V.addedNodes.push(D[J]);this._effectiveNodes=D;D=!1;if(V.addedNodes.length||V.removedNodes.length)D=!0,this.callback.call(this._target,V);return D};
_.P._listenSlots=function(V){for(var D=0;D<V.length;D++){var f=V[D];Aq(f)&&f.addEventListener("slotchange",this._boundSchedule)}};
_.P._unlistenSlots=function(V){for(var D=0;D<V.length;D++){var f=V[D];Aq(f)&&f.removeEventListener("slotchange",this._boundSchedule)}};var ro=Element.prototype,Oll=ro.matches||ro.matchesSelector||ro.mozMatchesSelector||ro.msMatchesSelector||ro.oMatchesSelector||ro.webkitMatchesSelector,xil=function(V,D){return Oll.call(V,D)},Yi=function(V){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(V);
this.node=V},VJL;
_.P=Yi.prototype;_.P.observeNodes=function(V){return new LIl(this.node,V)};
_.P.unobserveNodes=function(V){V.disconnect()};
_.P.notifyObserver=function(){};
_.P.deepContains=function(V){if((0,_.y$)(this.node).contains(V))return!0;var D=V;for(V=V.ownerDocument;D&&D!==V&&D!==this.node;)D=(0,_.y$)(D).parentNode||(0,_.y$)(D).host;return D===this.node};
_.P.getOwnerRoot=function(){return(0,_.y$)(this.node).getRootNode()};
_.P.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.y$)(this.node).assignedNodes({flatten:!0}):[]};
_.P.getDestinationInsertionPoints=function(){for(var V=[],D=(0,_.y$)(this.node).assignedSlot;D;)V.push(D),D=(0,_.y$)(D).assignedSlot;return V};
_.P.importNode=function(V,D){return(0,_.y$)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(V,D)};
_.P.getEffectiveChildNodes=function(){return Ikp(this.node)};
_.P.queryDistributedElements=function(V){for(var D=this.getEffectiveChildNodes(),f=[],n=0,t=D.length,J=void 0;n<t&&(J=D[n]);n++)J.nodeType===Node.ELEMENT_NODE&&xil(J,V)&&f.push(J);return f};
_.IG.Object.defineProperties(Yi.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var V=this.node;return V._activeElement!==void 0?V._activeElement:V.activeElement}}});
var Hy=function(V){this.event=V};
_.IG.Object.defineProperties(Hy.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 MvY=Yi;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var hiP=window.ShadyDOM.Wrapper,Uiu=function(){return hiP.apply(this,arguments)||this};
_.v(Uiu,hiP);Object.getOwnPropertyNames(Yi.prototype).forEach(function(V){V!="activeElement"&&V!="constructor"&&(Uiu.prototype[V]=Yi.prototype[V])});
dRY(Uiu.prototype,["classList"]);MvY=Uiu;Object.defineProperties(Hy.prototype,{localTarget:{get:function(){var V=this.event.currentTarget;V=V&&_.Fw(V).getOwnerRoot();for(var D=this.path,f=0;f<D.length;f++){var n=D[f];if(_.Fw(n).getOwnerRoot()===V)return n}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else B33(),dRY(Yi.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),uWZ();VJL=MvY;_.Fw=function(V){V=V||document;if(V instanceof MvY)return V;if(V instanceof Hy)return V;var D=V.__domApi;D||(V instanceof Event?D=new Hy(V):D=new MvY(V),V.__domApi=D);return D};var D1o=/:host\(:dir\((ltr|rtl)\)\)/g,flV=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,n8p=/:dir\((?:ltr|rtl)\)/,tJY=!(!window.ShadyDOM||!window.ShadyDOM.inUse),iL=[],wo=null,$i="",PCp=Sh(function(V){tJY||wo||($i=document.documentElement.getAttribute("dir"),wo=new MutationObserver(N3Y),wo.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var D=w8l(V);V=function(){var f=D.call(this)||this;f.__autoDirOptOut=!1;return f};
_.v(V,D);V._processStyleText=function(f,n){f=D._processStyleText.call(this,f,n);!tJY&&n8p.test(f)&&(f=this._replaceDirInCssText(f),this.__activateDir=!0);return f};
V._replaceDirInCssText=function(f){f=f.replace(D1o,':host([dir="$1"])');return f=f.replace(flV,':host([dir="$2"]) $1')};
V.prototype.ready=function(){D.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
V.prototype.connectedCallback=function(){D.prototype.connectedCallback&&D.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(wo&&wo.takeRecords().length&&N3Y(),iL.push(this),this.__autoDirOptOut||this.setAttribute("dir",$i))};
V.prototype.disconnectedCallback=function(){D.prototype.disconnectedCallback&&D.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var f=iL.indexOf(this);f>-1&&iL.splice(f,1)}};
V.__activateDir=!1;return V});var o86=function(V){for(;V;){var D=Object.getOwnPropertyDescriptor(V,"observedAttributes");if(D)return D.get;V=Object.getPrototypeOf(V.prototype).constructor}return function(){return[]}};
Sh(function(V){var D=Ln(V),f=o86(D);V=function(){return D.call(this)||this};
_.v(V,D);V.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:D.prototype._initializeProperties.call(this)};
V.prototype._enableProperties=function(){this.__isUpgradeDisabled||D.prototype._enableProperties.call(this)};
V.prototype._canApplyPropertyDefault=function(n){return D.prototype._canApplyPropertyDefault.call(this,n)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(n))};
V.prototype.attributeChangedCallback=function(n,t,J,H){n=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(D.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.y$)(this).isConnected&&D.prototype.connectedCallback.call(this)):D.prototype.attributeChangedCallback.call(this,n,t,J,H)};
V.prototype.connectedCallback=function(){this.__isUpgradeDisabled||D.prototype.connectedCallback.call(this)};
V.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||D.prototype.disconnectedCallback.call(this)};
_.IG.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return f.call(this).concat("disable-upgrade")}}});
return V});var S6=!1,zSF=[],W1=[];var XCX=window.ShadyDOM,EVL=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ar3):document.readyState==="interactive"||document.readyState==="complete"?ar3():window.addEventListener("DOMContentLoaded",ar3);var iL3=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=""},Y1R=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,$Rc=/@import[^;]*;/gim,OLx=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,xRX=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,MbR=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,hSZ=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,LDn=/^@[^\s]*keyframes/,
pCL=/\s+/g;var URn={};var f1X=Promise.resolve();var JRF=new Set;var rRr=/;\s*/m,H6o=/^\s*(initial)|(inherit)\s*$/,wAL=/\s*!important/,Q4P=function(){this._map={}};
Q4P.prototype.set=function(V,D){V=V.trim();this._map[V]={properties:D,dependants:{}}};
Q4P.prototype.get=function(V){V=V.trim();return this._map[V]||null};
var TNl=null,Qj=function(){this._measureElement=this._currentElement=null;this._map=new Q4P};
_.P=Qj.prototype;_.P.detectMixin=function(V){V=diE.test(V)||B2V.test(V);diE.lastIndex=0;B2V.lastIndex=0;return V};
_.P.transformTemplate=function(V,D){if(V._gatheredStyle===void 0){var f=[];for(var n=V.content.querySelectorAll("style"),t=0;t<n.length;t++){var J=n[t];if(J.hasAttribute("shady-unscoped")){if(!qwx){var H=J.textContent;if(!JRF.has(H)){JRF.add(H);var Q=document.createElement("style");Q.setAttribute("shady-unscoped","");Q.textContent=H;document.head.appendChild(Q)}J.parentNode.removeChild(J)}}else f.push(J.textContent),J.parentNode.removeChild(J)}(f=f.join("").trim())?(n=document.createElement("style"),
n.textContent=f,V.content.insertBefore(n,V.content.firstChild),f=n):f=null;V._gatheredStyle=f}return(V=V._gatheredStyle)?this.JSC$9302_transformStyle(V,D):null};
_.P.JSC$9302_transformStyle=function(V,D){D=D===void 0?"":D;var f=ovx(V);this.transformRules(f,D);V.textContent=PYR(f);return f};
_.P.transformCustomStyle=function(V){var D=this,f=ovx(V);rxF(f,function(n){n.selector===":root"&&(n.selector="html");D.transformRule(n)});
V.textContent=PYR(f);return f};
_.P.transformRules=function(V,D){var f=this;this._currentElement=D;rxF(V,function(n){f.transformRule(n)});
this._currentElement=null};
_.P.transformRule=function(V){V.cssText=b6H(this,V.parsedCssText,V);V.selector===":root"&&(V.selector=":host > *")};
var b6H=function(V,D,f){D=D.replace(B2V,function(n,t,J,H){return V._produceCssProperties(n,t,J,H,f)});
return V._consumeCssProperties(D,f)};
_.P=Qj.prototype;_.P._getInitialValueForProperty=function(V){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(V)};
_.P._fallbacksFromPreviousRules=function(V){for(var D=this,f=V;f.parent;)f=f.parent;var n={},t=!1;rxF(f,function(J){(t=t||J===V)||J.selector===V.selector&&Object.assign(n,D._cssTextToMap(J.parsedCssText))});
return n};
_.P._consumeCssProperties=function(V,D){for(var f;f=diE.exec(V);){var n=f[0],t=f[1];f=f.index;var J=f+n.indexOf("@apply"),H=f+n.length;n=V.slice(0,J);V=V.slice(H);J=D?this._fallbacksFromPreviousRules(D):{};Object.assign(J,this._cssTextToMap(n));t=this._atApplyToCssProperties(t,J);V=n+t+V;diE.lastIndex=f+t.length}return V};
_.P._atApplyToCssProperties=function(V,D){V=V.replace(rRr,"");var f=[],n=this._map.get(V);n||(this._map.set(V,{}),n=this._map.get(V));if(n){this._currentElement&&(n.dependants[this._currentElement]=!0);var t,J=n.properties;for(t in J){var H=D&&D[t];n=[t,": var(",V,"_-_",t];H&&n.push(",",H.replace(wAL,""));n.push(")");wAL.test(J[t])&&n.push(" !important");f.push(n.join(""))}}return f.join("; ")};
_.P._replaceInitialOrInherit=function(V,D){var f=H6o.exec(D);f&&(D=f[1]?this._getInitialValueForProperty(V):"apply-shim-inherit");return D};
_.P._cssTextToMap=function(V,D){D=D===void 0?!1:D;V=V.split(";");for(var f,n,t={},J=0;J<V.length;J++)if(f=V[J])n=f.split(":"),n.length>1&&(f=n[0].trim(),n=n.slice(1).join(":"),D&&(n=this._replaceInitialOrInherit(f,n)),t[f]=n);return t};
_.P._invalidateMixinEntry=function(V){if(TNl)for(var D in V.dependants)D!==this._currentElement&&TNl(D)};
_.P._produceCssProperties=function(V,D,f,n,t){var J=this;f&&HY3(f,function(k,d){d&&J._map.get(d)&&(n="@apply "+d+";")});
if(!n)return V;var H=this._consumeCssProperties(""+n,t);t=V.slice(0,V.indexOf("--"));var Q=H=this._cssTextToMap(H,!0),T=this._map.get(D),y=T&&T.properties;y?Q=Object.assign(Object.create(y),H):this._map.set(D,Q);var Z=[],l,G=!1;for(l in Q){var F=H[l];F===void 0&&(F="initial");!y||l in y||(G=!0);Z.push(D+"_-_"+l+": "+F)}G&&this._invalidateMixinEntry(T);T&&(T.properties=Q);f&&(t=V+";"+t);return t+Z.join("; ")+";"};
Qj.prototype.detectMixin=Qj.prototype.detectMixin;Qj.prototype.transformStyle=Qj.prototype.JSC$9302_transformStyle;Qj.prototype.transformCustomStyle=Qj.prototype.transformCustomStyle;Qj.prototype.transformRules=Qj.prototype.transformRules;Qj.prototype.transformRule=Qj.prototype.transformRule;Qj.prototype.transformTemplate=Qj.prototype.transformTemplate;Qj.prototype._separator="_-_";Object.defineProperty(Qj.prototype,"invalidCallback",{get:function(){return TNl},
set:function(V){TNl=V}});var Tz=new Qj,Kg6=function(){this.customStyleInterface=null;Tz.invalidCallback=V9c},by=function(V){!V.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(V.customStyleInterface=window.ShadyCSS.CustomStyleInterface,V.customStyleInterface.transformCallback=function(D){Tz.transformCustomStyle(D)},V.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){V.customStyleInterface.enqueued&&V.flushCustomStyles()})})};
_.P=Kg6.prototype;_.P.prepareTemplate=function(V,D){by(this);wVn(V)===""&&(URn[D]=V,D=Tz.transformTemplate(V,D),V._styleAst=D)};
_.P.flushCustomStyles=function(){by(this);if(this.customStyleInterface){var V=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var D=0;D<V.length;D++){var f=this.customStyleInterface.getStyleForCustomStyle(V[D]);f&&Tz.transformCustomStyle(f)}this.customStyleInterface.enqueued=!1}}};
_.P.styleSubtree=function(V,D){by(this);D&&BaU(V,D);if(V.shadowRoot)for(this.styleElement(V),V=V.shadowRoot.children||V.shadowRoot.childNodes,D=0;D<V.length;D++)this.styleSubtree(V[D]);else for(V=V.children||V.childNodes,D=0;D<V.length;D++)this.styleSubtree(V[D])};
_.P.styleElement=function(V){by(this);var D=V.localName,f;D?D.indexOf("-")>-1?f=D:f=V.getAttribute&&V.getAttribute("is")||"":f=V.is;D=URn[f];if(!(D&&wVn(D)!==""||!D||DwR(D))){if(DwR(D)||D._applyShimValidatingVersion!==D._applyShimNextVersion)this.prepareTemplate(D,f),nvF(D);if(V=V.shadowRoot)if(V=V.querySelector("style"))V.__cssRules=D._styleAst,V.textContent=PYR(D._styleAst)}};
_.P.styleDocument=function(V){by(this);this.styleSubtree(document.body,V)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var KN=new Kg6,yRF=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(V,D){KN.flushCustomStyles();KN.prepareTemplate(V,D)},
prepareTemplateStyles:function(V,D,f){window.ShadyCSS.prepareTemplate(V,D,f)},
prepareTemplateDom:function(){},
styleSubtree:function(V,D){KN.flushCustomStyles();KN.styleSubtree(V,D)},
styleElement:function(V){KN.flushCustomStyles();KN.styleElement(V)},
styleDocument:function(V){KN.flushCustomStyles();KN.styleDocument(V)},
getComputedStyleValue:function(V,D){return dsY(V,D)},
flushCustomStyles:function(){KN.flushCustomStyles()},
nativeCss:t99,nativeShadow:qwx,cssBuild:LO,disableRuntime:miF};yRF&&(window.ShadyCSS.CustomStyleInterface=yRF)}window.ShadyCSS.ApplyShim=Tz;var Z6V;Z6V=window.ShadyCSS;_.yj=Sh(function(V){V=akP(Ln(V));var D=eio?V:PCp(V),f=o86(D),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};V=function(){return D.call(this)||this};
_.v(V,D);V.prototype.created=function(){};
V.prototype.__attributeReaction=function(t,J,H){(this.__dataAttributes&&this.__dataAttributes[t]||t==="disable-upgrade")&&this.attributeChangedCallback(t,J,H,null)};
V.prototype.setAttribute=function(t,J){if(I5p&&!this._legacyForceObservedAttributes){var H=this.getAttribute(t);D.prototype.setAttribute.call(this,t,J);this.__attributeReaction(t,H,String(J))}else D.prototype.setAttribute.call(this,t,J)};
V.prototype.removeAttribute=function(t){if(I5p&&!this._legacyForceObservedAttributes){var J=this.getAttribute(t);D.prototype.removeAttribute.call(this,t);this.__attributeReaction(t,J,null)}else D.prototype.removeAttribute.call(this,t)};
V.prototype._enableProperties=function(){this.__isUpgradeDisabled||D.prototype._enableProperties.call(this)};
V.prototype._canApplyPropertyDefault=function(t){return D.prototype._canApplyPropertyDefault.call(this,t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))};
V.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(D.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
V.prototype.attached=function(){};
V.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(D.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
V.prototype.detached=function(){};
V.prototype.attributeChangedCallback=function(t,J,H,Q){J!==H&&(t=="disable-upgrade"?this.__isUpgradeDisabled&&H==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.y$)(this).isConnected&&this.connectedCallback()):(D.prototype.attributeChangedCallback.call(this,t,J,H,Q),this.attributeChanged(t,J,H)))};
V.prototype.attributeChanged=function(){};
V.prototype._initializeProperties=function(){if(zt&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var t=Object.getPrototypeOf(this);t.hasOwnProperty("__hasRegisterFinished")||(this._registered(),t.__hasRegisterFinished=!0);D.prototype._initializeProperties.call(this);this.root=this;this.created();I5p&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
V.prototype._takeAttributes=function(){for(var t=this.attributes,J=0,H=t.length;J<H;J++){var Q=t[J];this.__attributeReaction(Q.name,null,Q.value)}};
V.prototype._registered=function(){};
V.prototype.ready=function(){this._ensureAttributes();D.prototype.ready.call(this)};
V.prototype._ensureAttributes=function(){};
V.prototype._applyListeners=function(){};
V.prototype.serialize=function(t){return this._serializeValue(t)};
V.prototype.deserialize=function(t,J){return this._deserializeValue(t,J)};
V.prototype.reflectPropertyToAttribute=function(t,J,H){this._propertyToAttribute(t,J,H)};
V.prototype.serializeValueToAttribute=function(t,J,H){this._valueToNodeAttribute(H||this,t,J)};
V.prototype.extend=function(t,J){if(!t||!J)return t||J;for(var H=Object.getOwnPropertyNames(J),Q=0,T=void 0;Q<H.length&&(T=H[Q]);Q++){var y=Object.getOwnPropertyDescriptor(J,T);y&&Object.defineProperty(t,T,y)}return t};
V.prototype.mixin=function(t,J){for(var H in J)t[H]=J[H];return t};
V.prototype.chainObject=function(t,J){t&&J&&t!==J&&(t.__proto__=J);return t};
V.prototype.instanceTemplate=function(t){t=this.constructor._contentForTemplate(t);return document.importNode(t,!0)};
V.prototype.fire=function(t,J,H){H=H||{};J=J===null||J===void 0?{}:J;t=new Event(t,{bubbles:H.bubbles===void 0?!0:H.bubbles,cancelable:!!H.cancelable,composed:H.composed===void 0?!0:H.composed});t.detail=J;(0,_.y$)(H.node||this).dispatchEvent(t);return t};
V.prototype.listen=function(t,J,H){t=t||this;var Q=this.__boundListeners||(this.__boundListeners=new WeakMap),T=Q.get(t);T||(T={},Q.set(t,T));Q=J+H;T[Q]||(T[Q]=this._addMethodEventListenerToNode(t,J,H,this))};
V.prototype.unlisten=function(t,J,H){t=t||this;var Q=this.__boundListeners&&this.__boundListeners.get(t);H=J+H;var T=Q&&Q[H];T&&(this._removeEventListenerFromNode(t,J,T),Q[H]=null)};
V.prototype.setScrollDirection=function(t,J){_.uL(J||this,n[t]||"auto")};
V.prototype.$$=function(t){return this.root.querySelector(t)};
V.prototype.distributeContent=function(){var t=_.Fw(this);window.ShadyDOM&&t.shadowRoot&&ShadyDOM.flush()};
V.prototype.getEffectiveChildNodes=function(){return _.Fw(this).getEffectiveChildNodes()};
V.prototype.queryDistributedElements=function(t){return _.Fw(this).queryDistributedElements(t)};
V.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
V.prototype.getEffectiveTextContent=function(){for(var t=this.getEffectiveChildNodes(),J=[],H=0,Q;Q=t[H];H++)Q.nodeType!==Node.COMMENT_NODE&&J.push(Q.textContent);return J.join("")};
V.prototype.queryEffectiveChildren=function(t){return(t=this.queryDistributedElements(t))&&t[0]};
V.prototype.queryAllEffectiveChildren=function(t){return this.queryDistributedElements(t)};
V.prototype.getContentChildNodes=function(t){return(t=this.root.querySelector(t||"slot"))?_.Fw(t).getDistributedNodes():[]};
V.prototype.getContentChildren=function(t){return this.getContentChildNodes(t).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
V.prototype.isLightDescendant=function(t){return this!==t&&(0,_.y$)(this).contains(t)&&(0,_.y$)(this).getRootNode()===(0,_.y$)(t).getRootNode()};
V.prototype.isLocalDescendant=function(t){return this.root===(0,_.y$)(t).getRootNode()};
V.prototype.scopeSubtree=function(t,J){return AEU(t,J===void 0?!1:J)};
V.prototype.getComputedStyleValue=function(t){return Z6V.getComputedStyleValue(this,t)};
V.prototype.debounce=function(t,J,H){this._debouncers=this._debouncers||{};return this._debouncers[t]=_.DA(this._debouncers[t],H>0?_.ii.after(H):N2,J.bind(this))};
V.prototype.isDebouncerActive=function(t){this._debouncers=this._debouncers||{};t=this._debouncers[t];return!(!t||!t.isActive())};
V.prototype.flushDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.flush()};
V.prototype.cancelDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.cancel()};
V.prototype.async=function(t,J){return J>0?_.ii.run(t.bind(this),J):~N2.run(t.bind(this))};
V.prototype.cancelAsync=function(t){t<0?N2.cancel(~t):_.ii.cancel(t)};
V.prototype.create=function(t,J){t=document.createElement(t);if(J)if(t.setProperties)t.setProperties(J);else for(var H in J)t[H]=J[H];return t};
V.prototype.elementMatches=function(t,J){return xil(J||this,t)};
V.prototype.toggleAttribute=function(t,J){var H=this;arguments.length===3&&(H=arguments[2]);arguments.length==1&&(J=!H.hasAttribute(t));if(J)return(0,_.y$)(H).setAttribute(t,""),!0;(0,_.y$)(H).removeAttribute(t);return!1};
V.prototype.toggleClass=function(t,J,H){H=H||this;arguments.length==1&&(J=!H.classList.contains(t));J?H.classList.add(t):H.classList.remove(t)};
V.prototype.transform=function(t,J){J=J||this;J.style.webkitTransform=t;J.style.transform=t};
V.prototype.translate3d=function(t,J,H,Q){this.transform("translate3d("+t+","+J+","+H+")",Q||this)};
V.prototype.arrayDelete=function(t,J){if(Array.isArray(t)){if(J=t.indexOf(J),J>=0)return t.splice(J,1)}else if(J=Tt(this,t).indexOf(J),J>=0)return this.splice(t,J,1);return null};
V.prototype._logger=function(t,J){Array.isArray(J)&&J.length===1&&Array.isArray(J[0])&&(J=J[0]);switch(t){case "log":case "warn":case "error":console[t].apply(console,_.sz(J))}};
V.prototype._log=function(){this._logger("log",_.gQ.apply(0,arguments))};
V.prototype._warn=function(){this._logger("warn",_.gQ.apply(0,arguments))};
V.prototype._error=function(){this._logger("error",_.gQ.apply(0,arguments))};
V.prototype._logf=function(t){return["[%s::%s]",this.is,t].concat(_.sz(_.gQ.apply(1,arguments)))};
_.IG.Object.defineProperties(V.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var t=(0,_.y$)(this).getRootNode();return t instanceof DocumentFragment?t.host:t}}});
_.IG.Object.defineProperties(V,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I5p&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Xj3(this.prototype)),this.__observedAttributes):f.call(this).concat("disable-upgrade")}}});
V.prototype.is="";return V});Polymer.FlattenedNodesObserver=LIl;Polymer.DomApi=VJL;Polymer.EventApi=Hy;Polymer.dom=_.Fw;Polymer.dom.matchesSelector=xil;Polymer.dom.flush=_.oa;Polymer.dom.addDebouncer=_.fN;Polymer.DirMixin=PCp;Polymer.RenderStatus={beforeNextRender:_.q1R,afterNextRender:_.pO,flush:function(){for(;zSF.length||W1.length;)mRZ(zSF),mRZ(W1);S6=!1}};Polymer.LegacyElementMixin=_.yj;var j4H;j4H=tb._mutablePropertyChange;var llP={properties:{mutableData:Boolean},_shouldPropertyChange:function(V,D,f){return j4H(this,V,D,f,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(V,D,f){return j4H(this,V,D,f,!0)}};
Polymer.OptionalMutableDataBehavior=llP;var QNY={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},ZYY={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},yx9=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},ZYY),GmV=(0,_.yj)(HTMLElement),VG9=function(V,D){V||console.warn("Polymer.Class requires `info` argument");D=D?D(GmV):GmV;D=jNY(V,D,V.behaviors);D.is=D.prototype.is=
V.is;return D};Polymer.Class=VG9;Polymer.mixinBehaviors=function(V,D){return jNY({},(0,_.yj)(D),V)};
Polymer.GenerateClassFromInfo=jNY;_.Bt=function(V){var D=typeof V==="function"?V:_.Bt.Class(V);V._legacyForceObservedAttributes&&(D.prototype._legacyForceObservedAttributes=V._legacyForceObservedAttributes);customElements.define(D.is,D);return D};
_.Bt.Class=VG9;Polymer._polymerFn=_.Bt;var e0l=window.onLegacyPolymerFunctionDefinedCallback;e0l&&e0l();var fwY={templatize:function(V,D){this._templatizerTemplate=V;this.ctor=q2(V,this,{mutableData:!!D,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(V){return new this.ctor(V)},
modelForElement:function(V){return sm3(this._templatizerTemplate,V)}};Polymer.Templatizer=fwY;_.ZA=(0,_.yj)(HTMLElement).prototype;Polymer.Base=_.ZA;var G3Y=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.xi=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(_.xi,PolymerFakeBaseClass);var M2=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(M2,PolymerFakeBaseClass);var eRn=Symbol("Sd"),dwx=[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 cRU=cRU||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},FgU;(function(V){function D(W,I,x){var oY=O.get(W);if(!oY){if(!x)return;oY=new C;O.set(W,oY)}W=oY.get(I);if(!W){if(!x)return;W=new C;oY.set(I,W)}return W}
function f(W,I,x){if(n(W,I,x))return!0;I=G(I);return I!==null?f(W,I,x):!1}
function n(W,I,x){I=D(I,x,!1);return I===void 0?!1:!!I.has(W)}
function t(W,I,x){if(n(W,I,x))return J(W,I,x);I=G(I);if(I!==null)return t(W,I,x)}
function J(W,I,x){I=D(I,x,!1);if(I!==void 0)return I.get(W)}
function H(W,I){var x=Q(W,I);W=G(W);if(W===null)return x;var oY=H(W,I);if(oY.length<=0)return x;if(x.length<=0)return oY;I=new A;W=[];x=_.r(x);for(var wZ=x.next();!wZ.done;wZ=x.next())wZ=wZ.value,I.has(wZ)||(I.add(wZ),W.push(wZ));x=_.r(oY);for(oY=x.next();!oY.done;oY=x.next())oY=oY.value,I.has(oY)||(I.add(oY),W.push(oY));return W}
function Q(W,I){W=D(W,I,!1);var x=[];W&&W.forEach(function(oY,wZ){return x.push(wZ)});
return x}
function T(W){return W===void 0}
function y(W){return typeof W==="object"?W!==null:typeof W==="function"}
function Z(W){return typeof W==="function"}
function l(W){return typeof W==="symbol"?W:String(W)}
function G(W){var I=Object.getPrototypeOf(W);if(typeof W!=="function"||W===z||I!==z)return I;var x=Object.getPrototypeOf(W.prototype);if(x==null||x===Object.prototype)return I;x=x.constructor;return typeof x!=="function"||x===W?I:x}
function F(){function W(){this._keys=[];this._values=[];this._cache=I}
var I={};W.prototype={get size(){return this._keys.length},has:function(x){return x===this._cache?!0:this._find(x)>=0?(this._cache=x,!0):!1},
get:function(x){var oY=this._find(x);if(oY>=0)return this._cache=x,this._values[oY]},
set:function(x,oY){this.delete(x);this._keys.push(x);this._values.push(oY);this._cache=x;return this},
delete:function(x){x=this._find(x);return x>=0?(this._keys.splice(x,1),this._values.splice(x,1),this._cache=I,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=I},
forEach:function(x){for(var oY=this.size,wZ=0;wZ<oY;++wZ){var ZZ=this._keys[wZ],sd=this._values[wZ];this._cache=ZZ;x.call(this,sd,ZZ,this)}},
_find:function(x){for(var oY=this._keys,wZ=oY.length,ZZ=0;ZZ<wZ;++ZZ)if(oY[ZZ]===x)return ZZ;return-1}};
return W}
function k(){function W(){this._map=new C}
W.prototype={get size(){return this._map.length},has:function(I){return this._map.has(I)},
add:function(I){this._map.set(I,I);return this},
delete:function(I){return this._map.delete(I)},
clear:function(){this._map.clear()},
forEach:function(I,x){this._map.forEach(I,x)}};
return W}
function d(){function W(){this._key=x()}
function I(Bn,aY){for(var Ed=0;Ed<aY;++Ed)Bn[Ed]=Math.random()*255|0}
function x(){do{if(wZ)var Bn=wZ.randomBytes(16);else typeof Uint8Array==="function"?(Bn=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Bn):I(Bn,16)):(Bn=Array(16),I(Bn,16));Bn[6]=Bn[6]&79|64;Bn[8]=Bn[8]&191|128;for(var aY="",Ed=0;Ed<16;++Ed){var V0=Bn[Ed];if(Ed===4||Ed===6||Ed===8)aY+="-";V0<16&&(aY+="0");aY+=V0.toString(16).toLowerCase()}Bn="@@WeakMap@@"+aY}while(ZZ.call(sd,Bn));sd[Bn]=!0;return Bn}
function oY(Bn,aY){if(!ZZ.call(Bn,NU)){if(!aY)return;Object.defineProperty(Bn,NU,{value:Object.create(null)})}return Bn[NU]}
var wZ=typeof global!=="undefined"&&typeof cRU==="object"&&typeof require==="function"&&require("crypto"),ZZ=Object.prototype.hasOwnProperty,sd={},NU=x();W.prototype={has:function(Bn){return(Bn=oY(Bn,!1))?this._key in Bn:!1},
get:function(Bn){if(Bn=oY(Bn,!1))return Bn[this._key]},
set:function(Bn,aY){oY(Bn,!0)[this._key]=aY;return this},
delete:function(Bn){return(Bn=oY(Bn,!1))&&this._key in Bn?delete Bn[this._key]:!1},
clear:function(){this._key=x()}};
return W}
var z=Object.getPrototypeOf(Function),C=typeof Map==="function"?Map:F(),A=typeof Set==="function"?Set:k(),O=new (typeof WeakMap==="function"?WeakMap:d());V.decorate=function(W,I,x,oY){if(T(oY)){if(T(x)){if(!Array.isArray(W))throw new TypeError;if(!Z(I))throw new TypeError;for(x=W.length-1;x>=0;--x)if(oY=(0,W[x])(I),!T(oY)){if(!Z(oY))throw new TypeError;I=oY}return I}if(!Array.isArray(W))throw new TypeError;if(!y(I))throw new TypeError;x=l(x);for(oY=W.length-1;oY>=0;--oY)(0,W[oY])(I,x)}else{if(Array.isArray(W))if(y(I)){if(T(x))throw new TypeError;
if(!y(oY))throw new TypeError;}else throw new TypeError;else throw new TypeError;x=l(x);for(var wZ=W.length-1;wZ>=0;--wZ){var ZZ=(0,W[wZ])(I,x,oY);if(!T(ZZ)){if(!y(ZZ))throw new TypeError;oY=ZZ}}return oY}};
V.metadata=function(W,I){return function(x,oY){if(T(oY)){if(!Z(x))throw new TypeError;D(x,void 0,!0).set(W,I)}else{if(!y(x))throw new TypeError;oY=l(oY);D(x,oY,!0).set(W,I)}}};
V.defineMetadata=function(W,I){var x;if(y(I))T(x)||(x=l(x));else throw new TypeError;D(I,x,!0).set("parameters",W)};
V.hasMetadata=function(W,I,x){if(y(I))T(x)||(x=l(x));else throw new TypeError;return f(W,I,x)};
V.hasOwnMetadata=function(W,I,x){if(y(I))T(x)||(x=l(x));else throw new TypeError;return n(W,I,x)};
V.getMetadata=function(W,I,x){if(y(I))T(x)||(x=l(x));else throw new TypeError;return t(W,I,x)};
V.getOwnMetadata=function(W,I,x){if(y(I))T(x)||(x=l(x));else throw new TypeError;return J(W,I,x)};
V.getMetadataKeys=function(W,I){if(y(W))T(I)||(I=l(I));else throw new TypeError;return H(W,I)};
V.getOwnMetadataKeys=function(W,I){if(y(W))T(I)||(I=l(I));else throw new TypeError;return Q(W,I)};
V.deleteMetadata=function(W,I,x){if(y(I))T(x)||(x=l(x));else throw new TypeError;var oY=D(I,x,!1);if(!T(oY)){if(!oY.delete(W))return!1;if(oY.size>0)return!0;W=O.get(I);W.delete(x);if(W.size>0)return!0;O.delete(I);return!0}};
(function(W){if(typeof W.Reflect!=="undefined"){if(W.Reflect!==V)for(var I in V)W.Reflect[I]=V[I]}else W.Reflect=V})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(FgU||(FgU={}));var g8E=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
g8E.prototype.addEventListener=function(V,D,f){this.target.addEventListener(V,D,f)};
g8E.prototype.removeEventListener=function(V,D,f){this.target.removeEventListener(V,D,f)};
g8E.prototype.dispatchEvent=function(V){if(this.onabort&&V.type==="abort")this.onabort(V);return this.target.dispatchEvent(V)};var v8H=function(){this.signal=new g8E};
v8H.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var V=document.createEvent("Event");V.initEvent("abort",!1,!1);this.signal.dispatchEvent(V)}};var AvY=self;var kmV=[0,_.$s,_.SP,_.$s];var s4o=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(s4o,_.Xm);var BNU=_.Me(s4o,[0,_.wLR,_.Wb,kmV,_.SP,_.Lg]);_.fg(_.hq,_.cq);_.P=_.hq.prototype;_.P.start=function(){this.stop();this.usingListeners_=!1;var V=d1p(this),D=uQF(this);V&&!D&&this.JSC$9351_win_.mozRequestAnimationFrame?(this.JSC$9351_id_=_.kt(this.JSC$9351_win_,"MozBeforePaint",this.callback_),this.JSC$9351_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9351_id_=V&&D?V.call(this.JSC$9351_win_,this.callback_):this.JSC$9351_win_.setTimeout(ccH(this.callback_),20)};
_.P.stop=function(){if(this.isActive()){var V=d1p(this),D=uQF(this);V&&!D&&this.JSC$9351_win_.mozRequestAnimationFrame?Fo(this.JSC$9351_id_):V&&D?D.call(this.JSC$9351_win_,this.JSC$9351_id_):this.JSC$9351_win_.clearTimeout(this.JSC$9351_id_)}this.JSC$9351_id_=null};
_.P.fire=function(){this.stop();this.JSC$9353_doAction_()};
_.P.isActive=function(){return this.JSC$9351_id_!=null};
_.P.JSC$9353_doAction_=function(){this.usingListeners_&&this.JSC$9351_id_&&Fo(this.JSC$9351_id_);this.JSC$9351_id_=null;this.JSC$9351_listener_.call(this.handler_,_.Vd())};
_.P.disposeInternal=function(){this.stop();_.hq.superClass_.disposeInternal.call(this)};
var d1p=function(V){V=V.JSC$9351_win_;return V.requestAnimationFrame||V.webkitRequestAnimationFrame||V.mozRequestAnimationFrame||V.oRequestAnimationFrame||V.msRequestAnimationFrame||null},uQF=function(V){V=V.JSC$9351_win_;
return V.cancelAnimationFrame||V.cancelRequestAnimationFrame||V.webkitCancelRequestAnimationFrame||V.mozCancelRequestAnimationFrame||V.oCancelRequestAnimationFrame||V.msCancelRequestAnimationFrame||null};_.I7=function(V,D,f){_.cq.call(this);this.JSC$9354_listener_=f!=null?V.bind(f):V;this.JSC$9354_interval_=D;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9354_timer_=null};
_.v(_.I7,_.cq);_.P=_.I7.prototype;_.P.fire=function(V){this.args_=arguments;this.JSC$9354_timer_||this.pauseCount_?this.shouldFire_=!0:NNu(this)};
_.P.stop=function(){this.JSC$9354_timer_&&(_.fx.clearTimeout(this.JSC$9354_timer_),this.JSC$9354_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.P.pause=function(){this.pauseCount_++};
_.P.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9354_timer_||(this.shouldFire_=!1,NNu(this))};
_.P.disposeInternal=function(){_.cq.prototype.disposeInternal.call(this);this.stop()};
var NNu=function(V){V.JSC$9354_timer_=F6(function(){V.JSC$9354_timer_=null;V.shouldFire_&&!V.pauseCount_&&(V.shouldFire_=!1,NNu(V))},V.JSC$9354_interval_);
var D=V.args_;V.args_=null;V.JSC$9354_listener_.apply(null,D)};var m1E=function(V,D){this.childIterator_=V[_.fx.Symbol.iterator]();this.mapFn_=D};
m1E.prototype[Symbol.iterator]=function(){return this};
m1E.prototype.next=function(){var V=this.childIterator_.next();return{value:V.done?void 0:this.mapFn_.call(void 0,V.value),done:V.done}};
var z0L=function(V,D){return new m1E(V,D)};var R0L={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 G7R=function(V){var D=CCl(V);if(!D)throw Error("Wd`"+V);return D},CCl=function(V){var D={};
V=String(V);var f=V.charAt(0)=="#"?V:"#"+V;if(q2l.test(f))return D.hex=bFY(f),D.type="hex",D;f=g2Y(V);return f.length?(D.hex=fgn(f[0],f[1],f[2]),D.type="rgb",D):R0L&&(V=R0L[V.toLowerCase()])?(D.hex=V,D.type="named",D):null},XAl=/#(.)(.)(.)/,bFY=function(V){if(!q2l.test(V))throw Error("Yd`"+V);
V.length==4&&(V=V.replace(XAl,"#$1$1$2$2$3$3"));return V.toLowerCase()},enc=function(V){V=bFY(V);
V=parseInt(V.slice(1),16);return[V>>16,V>>8&255,V&255]},fgn=function(V,D,f){V=Number(V);
D=Number(D);f=Number(f);if(V!=(V&255)||D!=(D&255)||f!=(f&255))throw Error("Zd`"+V+"`"+D+"`"+f);D=V<<16|D<<8|f;return V<16?"#"+(16777216|D).toString(16).slice(1):"#"+D.toString(16)},q2l=/^#(?:[0-9a-f]{3}){1,2}$/i,E8U=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,g2Y=function(V){var D=V.match(E8U);
if(D){V=Number(D[1]);var f=Number(D[2]);D=Number(D[3]);if(V>=0&&V<=255&&f>=0&&f<=255&&D>=0&&D<=255)return[V,f,D]}return[]};var ARl={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},vC=ARl;vC=ARl;var Bzc,al6,Y2Y;Bzc=function(V,D){switch(D){case 1:return V%4!=0||V%100==0&&V%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
al6=function(V,D,f,n,t){V=new Date(V,D,f);t=t||0;return V.valueOf()+(((n!==void 0?n:3)-t+7)%7-((V.getDay()+6)%7-t+7)%7)*864E5};
_.jq=function(V,D,f){typeof V==="number"?(this.date=Y2Y(V,D||0,f||1),$1l(this,f||1)):_.VV(V)?(this.date=Y2Y(V.getFullYear(),V.getMonth(),V.getDate()),$1l(this,V.getDate())):(this.date=new Date(_.Vd()),V=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),$1l(this,V))};
Y2Y=function(V,D,f){D=new Date(V,D,f);V>=0&&V<100&&D.setFullYear(D.getFullYear()-1900);return D};
_.P=_.jq.prototype;_.P.firstDayOfWeek_=vC.FIRSTDAYOFWEEK;_.P.firstWeekCutOffDay_=vC.FIRSTWEEKCUTOFFDAY;_.P.clone=function(){var V=new _.jq(this.date);V.firstDayOfWeek_=this.firstDayOfWeek_;V.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return V};
_.P.getFullYear=function(){return this.date.getFullYear()};
_.P.getYear=function(){return this.getFullYear()};
_.P.getMonth=function(){return this.date.getMonth()};
_.P.getDate=function(){return this.date.getDate()};
_.P.getTime=function(){return this.date.getTime()};
_.P.getDay=function(){return this.date.getDay()};
_.P.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.P.getUTCMonth=function(){return this.date.getUTCMonth()};
_.P.getUTCDate=function(){return this.date.getUTCDate()};
_.P.getUTCDay=function(){return this.date.getDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.P.set=function(V){this.date=new Date(V.getFullYear(),V.getMonth(),V.getDate())};
_.P.setFullYear=function(V){this.date.setFullYear(V)};
_.P.setYear=function(V){this.setFullYear(V)};
_.P.setMonth=function(V){this.date.setMonth(V)};
_.P.setDate=function(V){this.date.setDate(V)};
_.P.setTime=function(V){this.date.setTime(V)};
_.P.setUTCFullYear=function(V){this.date.setUTCFullYear(V)};
_.P.setUTCMonth=function(V){this.date.setUTCMonth(V)};
_.P.setUTCDate=function(V){this.date.setUTCDate(V)};
_.P.add=function(V){if(V.years||V.months){var D=this.getMonth()+V.months+V.years*12,f=this.getYear()+Math.floor(D/12);D%=12;D<0&&(D+=12);var n=Math.min(Bzc(f,D),this.getDate());this.setDate(1);this.setFullYear(f);this.setMonth(D);this.setDate(n)}V.days&&(f=this.getYear(),D=f>=0&&f<=99?-1900:0,V=new Date((new Date(f,this.getMonth(),this.getDate(),12)).getTime()+V.days*864E5),this.setDate(1),this.setFullYear(V.getFullYear()+D),this.setMonth(V.getMonth()),this.setDate(V.getDate()),$1l(this,V.getDate()))};
_.P.JSC$9367_toIsoString=function(V){var D=this.getFullYear(),f=D<0?"-":D>=1E4?"+":"";return[f+_.Uk(Math.abs(D),f?6:4),_.Uk(this.getMonth()+1,2),_.Uk(this.getDate(),2)].join(V?"-":"")};
_.P.equals=function(V){return!(!V||this.getYear()!=V.getYear()||this.getMonth()!=V.getMonth()||this.getDate()!=V.getDate())};
_.P.toString=function(){return this.JSC$9367_toIsoString()};
var $1l=function(V,D){V.getDate()!=D&&V.date.setUTCHours(V.date.getUTCHours()+(V.getDate()<D?1:-1))};
_.jq.prototype.valueOf=function(){return this.date.valueOf()};var Gz=function(V,D,f,n,t){this.reversed=!!D;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!f;V&&ly(this,V,n);this.depth=t!=void 0?t:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.fg(Gz,VS);var ly=function(V,D,f,n){if(V.node=D)V.tagType=typeof f==="number"?f:V.node.nodeType!=1?0:V.reversed?-1:1;typeof n==="number"&&(V.depth=n)};
_.P=Gz.prototype;_.P.JSC$9382_copyFrom=function(V){this.node=V.node;this.tagType=V.tagType;this.depth=V.depth;this.reversed=V.reversed;this.constrained=V.constrained};
_.P.clone=function(){return new Gz(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.P.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return DB;var V=this.node;var D=this.reversed?-1:1;if(this.tagType==D){var f=this.reversed?V.lastChild:V.firstChild;f?ly(this,f):ly(this,V,D*-1)}else(f=this.reversed?V.previousSibling:V.nextSibling)?ly(this,f):ly(this,V.parentNode,D*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(V=this.node)?fn(V):DB};
_.P.equals=function(V){return V.node==this.node&&(!this.node||V.tagType==this.tagType)};
_.P.splice=function(V){var D=this.node,f=this.reversed?1:-1;this.tagType==f&&(this.tagType=f*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Gz.prototype.next.call(this);this.reversed=!this.reversed;f=_.MU(arguments[0])?arguments[0]:arguments;for(var n=f.length-1;n>=0;n--)_.BN(f[n],D);_.ZC(D)};var i6F=function(){},eq=function(V){for(var D=[],f=V.getTextRangeCount(),n=0;n<f;n++)D.push(V.getTextRange(n));
return D};
i6F.prototype.isReversed=function(){return!1};
i6F.prototype.getWindow=function(){return Nr(_.mk(this.JSC$9384_getStartNode()))};
var S2U=function(V,D){Gz.call(this,V,D,!0)};
_.fg(S2U,Gz);var cy=function(V,D,f,n,t){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!t;if(V){this.startNode_=V;this.startOffset_=D;this.endNode_=f;this.endOffset_=n;if(V.nodeType==1&&V.tagName!="BR")if(V=V.childNodes,D=V[D])this.startNode_=D,this.startOffset_=0;else{V.length&&(this.startNode_=_.X9(V));var J=!0}f.nodeType==1&&((this.endNode_=f.childNodes[n])?this.endOffset_=0:this.endNode_=f)}Gz.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);J&&this.next()};
_.fg(cy,S2U);_.P=cy.prototype;_.P.JSC$9390_getStartNode=function(){return this.startNode_};
_.P.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)};
_.P.next=function(){return this.isLast()?DB:cy.superClass_.next.call(this)};
_.P.JSC$9382_copyFrom=function(V){this.startNode_=V.startNode_;this.endNode_=V.endNode_;this.startOffset_=V.startOffset_;this.endOffset_=V.endOffset_;this.isReversed_=V.isReversed_;cy.superClass_.JSC$9382_copyFrom.call(this,V)};
_.P.clone=function(){var V=new cy(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);V.JSC$9382_copyFrom(this);return V};var Wgp=function(){};
Wgp.prototype.__iterator__=function(){return new cy(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var FL=function(V){this.range_=V};
_.fg(FL,Wgp);var pAo=function(V){var D=_.mk(V).createRange();if(V.nodeType==3)D.setStart(V,0),D.setEnd(V,V.length);else if(vN(V)||V.nodeType==3){for(var f,n=V;(f=n.firstChild)&&(vN(f)||f.nodeType==3);)n=f;D.setStart(n,0);for(n=V;(f=n.lastChild)&&(vN(f)||f.nodeType==3);)n=f;D.setEnd(n,n.nodeType==1?n.childNodes.length:n.length)}else f=V.parentNode,V=Array.prototype.indexOf.call(f.childNodes,V),D.setStart(f,V),D.setEnd(f,V+1);return D},Lgu=function(V,D,f,n){var t=_.mk(V).createRange();
t.setStart(V,D);t.setEnd(f,n);return t};
_.P=FL.prototype;_.P.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.P.getContainer=function(){return this.range_.commonAncestorContainer};
_.P.compareBrowserRangeEndpoints=function(V,D,f){return this.range_.compareBoundaryPoints(f==1?D==1?_.fx.Range.START_TO_START:_.fx.Range.START_TO_END:D==1?_.fx.Range.END_TO_START:_.fx.Range.END_TO_END,V)};
_.P.isCollapsed=function(){return this.range_.collapsed};
_.P.select=function(V){this.selectInternal(Nr(_.mk(this.range_.startContainer)).getSelection(),V)};
_.P.selectInternal=function(V){V.removeAllRanges();V.addRange(this.range_)};
_.P.insertNode=function(V,D){var f=this.range_.cloneRange();f.collapse(D);f.insertNode(V);f.detach();return V};
_.P.collapse=function(V){this.range_.collapse(V)};_.fg(UE,FL);UE.prototype.selectInternal=function(V,D){!D||this.isCollapsed()?UE.superClass_.selectInternal.call(this,V,D):(V.collapse(this.range_.endContainer,this.range_.endOffset),V.extend(this.range_.startContainer,this.range_.startOffset))};_.fg(VR,FL);VR.prototype.compareBrowserRangeEndpoints=function(V,D,f){return VR.superClass_.compareBrowserRangeEndpoints.call(this,V,D,f)};
VR.prototype.selectInternal=function(V,D){D?V.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):V.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var IlV=function(V){return _.Hb?new VR(V):_.rf?new UE(V):new FL(V)};var go=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},O66;
_.fg(go,i6F);O66=function(V,D){var f=new go;f.browserRangeWrapper_=V;f.isReversed_=!!D;return f};
_.x1E=function(V){V=_.Hb?new VR(pAo(V)):_.rf?new UE(pAo(V)):new FL(pAo(V));return O66(V)};
_.vy=function(V,D,f,n){var t=new go;t.isReversed_=MJL(V,D,f,n);if(_.IO(V)&&!vN(V)){var J=V.parentNode;D=Array.prototype.indexOf.call(J.childNodes,V);V=J}_.IO(f)&&!vN(f)&&(J=f.parentNode,n=Array.prototype.indexOf.call(J.childNodes,f),f=J);t.isReversed_?(t.startNode_=f,t.startOffset_=n,t.endNode_=V,t.endOffset_=D):(t.startNode_=V,t.startOffset_=D,t.endNode_=f,t.endOffset_=n);return t};
_.P=go.prototype;_.P.clone=function(){var V=new go;V.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();V.startNode_=this.startNode_;V.startOffset_=this.startOffset_;V.endNode_=this.endNode_;V.endOffset_=this.endOffset_;V.isReversed_=this.isReversed_;return V};
_.P.JSC$9384_getType=function(){return"text"};
_.P.getBrowserRangeObject=function(){return k9(this).range_};
_.P.getTextRangeCount=function(){return 1};
_.P.getTextRange=function(){return this};
var k9=function(V){var D;if(!(D=V.browserRangeWrapper_)){D=V.JSC$9384_getStartNode();var f=V.JSC$9384_getStartOffset(),n=V.JSC$9384_getEndNode(),t=V.JSC$9384_getEndOffset();D=_.Hb?new VR(Lgu(D,f,n,t)):_.rf?new UE(Lgu(D,f,n,t)):new FL(Lgu(D,f,n,t));D=V.browserRangeWrapper_=D}return D};
_.P=go.prototype;_.P.getContainer=function(){return k9(this).getContainer()};
_.P.JSC$9384_getStartNode=function(){return this.startNode_||(this.startNode_=k9(this).range_.startContainer)};
_.P.JSC$9384_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=k9(this).range_.startOffset};
_.P.JSC$9384_getEndNode=function(){return this.endNode_||(this.endNode_=k9(this).range_.endContainer)};
_.P.JSC$9384_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=k9(this).range_.endOffset};
_.P.isReversed=function(){return this.isReversed_};
_.P.JSC$9384_containsRange=function(V,D){if(V.JSC$9384_getType()=="text"){var f=k9(this);V=k9(V);D=D&&!V.isCollapsed();V=V.range_;f=D?f.compareBrowserRangeEndpoints(V,0,1)>=0&&f.compareBrowserRangeEndpoints(V,1,0)<=0:f.compareBrowserRangeEndpoints(V,0,0)>=0&&f.compareBrowserRangeEndpoints(V,1,1)<=0}else f=!1;return f};
_.P.isCollapsed=function(){return k9(this).isCollapsed()};
_.P.JSC$9384_getText=function(){return k9(this).range_.toString()};
_.P.__iterator__=function(){return new cy(this.JSC$9384_getStartNode(),this.JSC$9384_getStartOffset(),this.JSC$9384_getEndNode(),this.JSC$9384_getEndOffset())};
_.P.select=function(){k9(this).select(this.isReversed_)};
_.P.JSC$9384_removeContents=function(){var V=k9(this).range_;V.extractContents();if(V.startContainer.hasChildNodes()&&(V=V.startContainer.childNodes[V.startOffset])){var D=V.previousSibling;GUF(V)==""&&_.ZC(V);D&&GUF(D)==""&&_.ZC(D)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.P.insertNode=function(V,D){V=k9(this).insertNode(V,D);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return V};
_.P.collapse=function(V){V=this.isReversed()?!V:V;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(V);V?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var h0H=function(){};
_.fg(h0H,i6F);h0H.prototype.JSC$9384_containsRange=function(V,D){var f=eq(this);V=eq(V);return(D?Ww:_.n$9)(V,function(n){return Ww(f,function(t){return t.JSC$9384_containsRange(n,D)})})};
h0H.prototype.insertNode=function(V,D){D?_.sO(V,this.JSC$9384_getStartNode()):_.BN(V,this.JSC$9384_getEndNode());return V};var U1L,Vsl=jC().JSC$7414_document_.documentElement;U1L=Vsl.requestFullscreen?"fullscreenchange":Vsl.webkitRequestFullscreen?"webkitfullscreenchange":Vsl.mozRequestFullScreen?"mozfullscreenchange":Vsl.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var D_u=function(){var V=jC().JSC$7414_document_;return!!(V.webkitIsFullScreen||V.mozFullScreen||V.msFullscreenElement||V.fullscreenElement)};var sD=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.fg(sD,h0H);_.P=sD.prototype;_.P.clone=function(){var V=new sD;V.browserRanges_=_.Od(this.browserRanges_);return V};
_.P.JSC$9384_getType=function(){return"mutli"};
_.P.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.P.getTextRangeCount=function(){return this.browserRanges_.length};
_.P.getTextRange=function(V){this.ranges_[V]||(this.ranges_[V]=O66(IlV(this.browserRanges_[V])));return this.ranges_[V]};
_.P.getContainer=function(){if(!this.container_){for(var V=[],D=this.getTextRangeCount(),f=0;f<D;f++)V.push(this.getTextRange(f).getContainer());this.container_=TPE.apply(null,V)}return this.container_};
var By=function(V){V.sortedRanges_||(V.sortedRanges_=eq(V),V.sortedRanges_.sort(function(D,f){var n=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();var t=f.JSC$9384_getStartNode();f=f.JSC$9384_getStartOffset();return n==t&&D==f?0:MJL(n,D,t,f)?1:-1}));
return V.sortedRanges_};
_.P=sD.prototype;_.P.JSC$9384_getStartNode=function(){return By(this)[0].JSC$9384_getStartNode()};
_.P.JSC$9384_getStartOffset=function(){return By(this)[0].JSC$9384_getStartOffset()};
_.P.JSC$9384_getEndNode=function(){return _.X9(By(this)).JSC$9384_getEndNode()};
_.P.JSC$9384_getEndOffset=function(){return _.X9(By(this)).JSC$9384_getEndOffset()};
_.P.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.P.JSC$9384_getText=function(){return eq(this).map(function(V){return V.JSC$9384_getText()}).join("")};
_.P.__iterator__=function(){return new uy(this)};
_.P.select=function(){var V=this.getWindow().getSelection();V.removeAllRanges();for(var D=this.getTextRangeCount(),f=0;f<D;f++)V.addRange(this.getTextRange(f).getBrowserRangeObject())};
_.P.JSC$9384_removeContents=function(){eq(this).forEach(function(V){V.JSC$9384_removeContents()})};
_.P.collapse=function(V){if(!this.isCollapsed()){var D=V?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;D.collapse(V);this.ranges_=[D];this.sortedRanges_=[D];this.browserRanges_=[D.getBrowserRangeObject()]}};
var uy=function(V){this.iterators_=null;this.currentIdx_=0;V&&(this.iterators_=By(V).map(function(D){return _.jOr(D)}));
Gz.call(this,V?this.JSC$9390_getStartNode():null,!1,!0)};
_.fg(uy,S2U);_.P=uy.prototype;_.P.JSC$9390_getStartNode=function(){return this.iterators_[0].JSC$9390_getStartNode()};
_.P.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.P.next=function(){for(;this.currentIdx_<this.iterators_.length;){var V=this.iterators_[this.currentIdx_],D=V.next();if(D.done)this.currentIdx_++;else return ly(this,V.node,V.tagType,V.depth),D}return DB};
_.P.JSC$9382_copyFrom=function(V){this.iterators_=_.Od(V.iterators_);uy.superClass_.JSC$9382_copyFrom.call(this,V)};
_.P.clone=function(){var V=new uy(null);V.JSC$9382_copyFrom(this);return V};var fHU,MJL;_.GS=function(){var V=window.getSelection();return V&&fHU(V)};
fHU=function(V){var D=!1;if(V.createRange)try{var f=V.createRange()}catch(t){return null}else if(V.rangeCount){if(V.rangeCount>1){f=new sD;D=V.rangeCount;for(var n=0;n<D;n++)f.browserRanges_.push(V.getRangeAt(n));return f}f=V.getRangeAt(0);D=MJL(V.anchorNode,V.anchorOffset,V.focusNode,V.focusOffset)}else return null;return O66(IlV(f),D)};
_.NW=function(V,D){return _.vy(V,D,V,D)};
_.m4=function(V,D,f,n){return _.vy(V,D,f,n)};
MJL=function(V,D,f,n){if(V==f)return n<D;var t;if(V.nodeType==1&&D)if(t=V.childNodes[D])V=t,D=0;else if(_.ER(V,f))return!0;if(f.nodeType==1&&n)if(t=f.childNodes[n])f=t,n=0;else if(_.ER(f,V))return!1;return(Qlu(V,f)||D-n)>0};var zz=function(){_.jT.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.F1)(this.dispatchProgressEvent_,this)};
_.fg(zz,_.jT);zz.prototype.abort=function(){try{this.reader_.abort()}catch(V){throw new eAH(V,"aborting read");}};
zz.prototype.getError=function(){return this.reader_.error&&new eAH(this.reader_.error,"reading file")};
zz.prototype.dispatchProgressEvent_=function(V){this.dispatchEvent(new cUU(V,this))};
zz.prototype.disposeInternal=function(){zz.superClass_.disposeInternal.call(this);delete this.reader_};
var tsl=function(V){var D=new zz,f=nyu(D);D.reader_.readAsArrayBuffer(V);return f},PRU=function(V){var D=new zz,f=nyu(D);
D.reader_.readAsDataURL(V);return f},nyu=function(V){var D=new Yq;
V.listen("loadend",_.lC(function(f,n){var t=n.reader_.result,J=n.getError();t==null||J?f.errback(J):f.callback(t);n.dispose()},D,V));
return D};var Ra=function(){_.jT.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9424_eventHandler_=new _.fl(this);this.JSC$9424_isInitialized_=!1};
_.fg(Ra,_.jT);var oyF=new _.QN("d"),JOu=new _.QN("beforedragstart"),rOF=new _.QN("dragstart"),HAo=new _.QN("beforedragmove"),wRl=new _.QN("dragmove"),QWl=new _.QN("beforedragend"),Tgr=new _.QN("dragend"),bAl=new _.QN("e");Ra.prototype.isDragging=function(){return!!this.JSC$9424_dragger_};
var KqP=function(V,D){D.dlgGrowthDirection_=0;D.dlgDragHoverClass_=void 0;D.dlgDragPermission=0;V.dragLists_.push(D)},yOH=function(V,D){V.getHandleForDragItem_=D};
Ra.prototype.init=function(){if(!this.JSC$9424_isInitialized_){for(var V=this.dragLists_.length,D=0;D<V;D++)for(var f=_.dT(this.dragLists_[D]),n=f.length,t=0;t<n;++t){var J=f[t],H=this.getHandleForDragItem_(J),Q=_.fo(H);this.dragItemForHandle_[Q]=J;this.dragItemHoverClasses_&&(this.JSC$9424_eventHandler_.listen(J,"mouseover",this.handleDragItemMouseover_),this.JSC$9424_eventHandler_.listen(J,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9424_eventHandler_.listen(H,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9424_eventHandler_.listen(H,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(J);this.JSC$9424_eventHandler_.listen(H,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9424_isInitialized_=!0}};
Ra.prototype.disposeInternal=function(){this.JSC$9424_eventHandler_.dispose();for(var V=this.dragLists_.length,D=0;D<V;D++){var f=this.dragLists_[D];f.dlgGrowthDirection_=void 0;f.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;ZAF(this);Ra.superClass_.disposeInternal.call(this)};
var jWY=function(V,D){for(var f=V.dragLists_.length,n=0;n<f;n++){var t=V.dragLists_[n];t.dlgBounds_=CYc(t)}f=V.dragItems_.length;for(n=0;n<f;n++)t=V.dragItems_[n],t!=D&&(t.dlgBounds_=CYc(t))};
_.P=Ra.prototype;
_.P.handlePotentialDragStart_=function(V){var D=_.fo(V.currentTarget);D=this.dragItemForHandle_[D];if(D.parentElement.dlgDragPermission!=2){this.currDragItem_=D;a:{D=this.currDragItem_;for(var f=D.cloneNode(!0),n=jB("TEXTAREA",D),t=jB("TEXTAREA",f),J=0;J<n.length;J++)t[J].value=n[J].value;switch(D.tagName){case "TR":D=_.FP("TABLE",null,_.FP("TBODY",null,f));break a;case "TD":case "TH":D=_.FP("TABLE",null,_.FP("TBODY",null,_.FP("TR",null,f)));break a;case "TEXTAREA":f.value=D.value;default:D=f;break a}D=
void 0}this.draggerEl_=D;this.draggerElClasses_&&Ai(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.mk(this.currDragItem_).body.appendChild(this.draggerEl_);f=_.R8(this.currDragItem_);D=this.draggerEl_;n=_.R8(D);if(f instanceof _.uB){var H=f.y;f=f.x}Rz(D,D.offsetLeft+(f-n.x),D.offsetTop+(Number(H)-n.y));this.JSC$9424_dragger_=new _.m6(this.draggerEl_);_.G2F(this.JSC$9424_dragger_,this.hysteresisDistance_);
_.kt(this.JSC$9424_dragger_,"start",this.handleDragStart_,!1,this);_.kt(this.JSC$9424_dragger_,"end",this.handleDragEnd_,!1,this);_.kt(this.JSC$9424_dragger_,"earlycancel",this.JSC$9426_cleanup_,!1,this);this.dispatchEvent(new CN(oyF,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_));this.JSC$9424_dragger_.startDrag(V)}};
_.P.handleDragStart_=function(V){if(this.dispatchEvent(new CN(JOu,this,V.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.rrH(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Ai(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var D=kUr(this.draggerEl_);this.draggerEl_.halfWidth=D.width/2;this.draggerEl_.halfHeight=D.height/2;D=this.draggerEl_.getBoundingClientRect();
var f=V.clientY,n=eUE(this.JSC$9424_dragger_,V.clientX);if(n>D.right){var t=this.currDragItem_.getBoundingClientRect();this.JSC$9424_dragger_.deltaX=n-(n-t.left)/t.width*D.width}f=chr(this.JSC$9424_dragger_,f);f>D.bottom&&(this.JSC$9424_dragger_.deltaY+=f-D.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";jWY(this,this.currDragItem_);this.currDragItem_.style.display="";_.kt(this.JSC$9424_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new CN(rOF,
this,V.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_))}else V.preventDefault(),this.JSC$9426_cleanup_()};
_.P.handleDragMove_=function(V){var D=_.R8(this.draggerEl_);D=new _.uB(D.x+this.draggerEl_.halfWidth,D.y+this.draggerEl_.halfHeight);a:{var f=null;if(this.currDragItem_.style.display!="none"){f=this.currDragItem_.parentNode;var n=CYc(f);if(lHF(D,n))break a}n=this.dragLists_.length;for(var t=0;t<n;t++){var J=this.dragLists_[t];if(J!=f&&lHF(D,J.dlgBounds_)){f=J;break a}}f=null}if(f){if(f==null)throw Error("$d");n=0;t=!1;J=void 0;switch(f.dlgGrowthDirection_){case 0:n=D.y;var H=Gql;var Q=eIo;break;case 4:t=
!0;case 2:n=D.x;H=cOu;Q=eIo;break;case 5:t=!0;case 3:n=D.x,H=Fql,Q=gyF}for(var T=null,y,Z=_.dT(f),l=Z.length,G=0;G<l;G++){var F=Z[G];if(F!=this.currDragItem_){var k=H(F.dlgBounds_);if(t){var d=vyl(F,D);J===void 0&&(J=d);Q(n,k)&&(y==void 0||d<J||d==J&&(Q(k,y)||k==y))&&(T=F,y=k);d<J&&(J=d)}else Q(n,k)&&(y==void 0||Q(k,y))&&(T=F,y=k)}}H=T!==null&&vyl(T,D)>J?null:T}else H=null;if(!this.dispatchEvent(new CN(HAo,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_,D,f,H)))return!1;if(f&&f.dlgDragPermission!=
1)this.currDragItem_.parentNode==f&&_.rrH(this.currDragItem_)==H||f.insertBefore(this.currDragItem_,H),this.currDragItem_.style.display="",f.dlgDragHoverClass_&&_.M3(f,f.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",Q=this.dragLists_.length,y=0;y<Q;y++)n=this.dragLists_[y],n.dlgDragHoverClass_&&_.Om(n,n.dlgDragHoverClass_);f!=this.currHoverList_&&(this.currHoverList_=f,jWY(this,this.currDragItem_));this.dispatchEvent(new CN(wRl,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_,
D,f,H));return!1};
_.P.JSC$9426_cleanup_=function(){ZAF(this);this.JSC$9424_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var V=this.dragLists_.length,D=0;D<V;D++)this.dragLists_[D].dlgBounds_=null;V=this.dragItems_.length;for(D=0;D<V;D++)this.dragItems_[D].dlgBounds_=null};
_.P.handleDragEnd_=function(V){if(!this.dispatchEvent(new CN(QWl,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_)))return!1;ZAF(this);this.dispatchEvent(new CN(Tgr,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9424_dragger_));this.JSC$9426_cleanup_();return!0};
var ZAF=function(V){_.Mr(V.JSC$9424_dragger_);var D=V.draggerEl_&&V.draggerEl_.parentElement;V.draggerEl_&&_.ZC(V.draggerEl_);V.currDragItem_&&V.currDragItem_.style.display=="none"&&(V.origList_.insertBefore(V.currDragItem_,V.origNextItem_),V.currDragItem_.style.display="");V.currDragItemClasses_&&V.currDragItem_?Gep(V.currDragItem_,V.currDragItemClasses_||[]):V.currDragItem_&&(V.currDragItem_.style.visibility="");for(var f=V.dragLists_.length,n=0;n<f;n++){var t=V.dragLists_[n];t.dlgDragHoverClass_&&
_.Om(t,t.dlgDragHoverClass_)}D&&V.dispatchEvent(new CN(bAl,V,null,V.currDragItem_,V.draggerEl_,V.JSC$9424_dragger_))};
_.P=Ra.prototype;_.P.getHandleForDragItem_=function(V){return V};
_.P.handleDragItemMouseover_=function(V){Ai(V.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemMouseout_=function(V){Gep(V.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemHandleMouseover_=function(V){Ai(V.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.P.handleDragItemHandleMouseout_=function(V){Gep(V.currentTarget,this.dragItemHandleHoverClasses_||[])};
var lHF=function(V,D){return V.x>D.left&&V.x<D.left+D.width&&V.y>D.top&&V.y<D.top+D.height},vyl=function(V,D){V=V.dlgBounds_;
return Math.abs(D.y-(V.top+(V.height-1)/2))},Gql=function(V){return V.top+V.height-1},cOu=function(V){return V.left+V.width-1},Fql=function(V){return V.left||0},eIo=function(V,D){return V<D},gyF=function(V,D){return V>D},CN=function(V,D,f,n,t,J){_.TG.call(this,V);
this.event=f;this.currDragItem=n;this.draggerEl=t;this.JSC$9428_dragger=J};
_.fg(CN,_.TG);_.fg(nl,_.cq);var kql=new _.uB(0,0);nl.prototype.JSC$9432_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
nl.prototype.JSC$9432_onMouseMove=function(V){var D=this.containerIsActuallyContent_?kql:ZN(jC(this.containerNode_)),f=this.horizontalScrolling_?this.calculateScrollDelta(V.clientX+D.x,this.scrollBounds_.left,this.scrollBounds_.width):0,n=this.calculateScrollDelta(V.clientY+D.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=f;this.scrollDelta_.y=n;!(f=!f&&!n)&&(f=this.constrainScroll_)&&(f=V.clientX+D.x,V=V.clientY+D.y,D=this.containerBounds_,f=!(D.left<=f&&D.left+D.width>=
f&&D.top<=V&&D.top+D.height>=V));f?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
nl.prototype.calculateScrollDelta=function(V,D,f){var n=0;V<D?n=-8:V>D+f&&(n=8);return n};
nl.prototype.disposeInternal=function(){nl.superClass_.disposeInternal.call(this);this.JSC$9430_eventHandler_.dispose();this.scrollTimer_.dispose()};var sWU={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"}}},qW=sWU;qW=sWU;var XL={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 BgP=function(){},iR=function(V){if(typeof V=="number"){var D=new BgP;
D.standardOffset_=V;var f=V;if(f==0)f="Etc/GMT";else{var n=["Etc/GMT",f<0?"-":"+"];f=Math.abs(f);n.push(Math.floor(f/60)%100);f%=60;f!=0&&n.push(":",_.Uk(f,2));f=n.join("")}D.timeZoneId_=f;f=V;f==0?f="UTC":(n=["UTC",f<0?"+":"-"],f=Math.abs(f),n.push(Math.floor(f/60)%100),f%=60,f!=0&&n.push(":",f),f=n.join(""));V=d_l(V);D.tzNames_=[f,f];D.tzNamesExt_={STD_LONG_NAME_GMT:V,STD_GENERIC_LOCATION:V};D.transitions_=[];return D}D=new BgP;D.timeZoneId_=V.id;D.standardOffset_=-V.std_offset;D.tzNames_=V.names;
D.tzNamesExt_=V.names_ext;D.transitions_=V.transitions;return D},d_l=function(V){var D=["GMT"];
D.push(V<=0?"+":"-");V=Math.abs(V);D.push(_.Uk(Math.floor(V/60)%100,2),":",_.Uk(V%60,2));return D.join("")},uCY=function(V,D){D=Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),D.getUTCHours(),D.getUTCMinutes())/36E5;
for(var f=0;f<V.transitions_.length&&D>=V.transitions_[f];)f+=2;return f==0?0:V.transitions_[f-1]},Ngu=function(V,D){V=V.standardOffset_-uCY(V,D);
return V===-1440?0:V};var Ss=function(V,D){this.patternParts_=[];this.JSC$9443_dateTimeSymbols_=D||vC;typeof V=="number"?m_r(this,V):zIL(this,V)},RIl=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],ED=function(V){return V.getHours?V.getHours():0},zIL=function(V,D){for(ncY&&(D=D.replace(/\u200f/g,""));D;){for(var f=D,n=0;n<RIl.length;++n){var t=D.match(RIl[n]);
if(t){var J=t[0];D=D.substring(J.length);n==0&&(J=="''"?J="'":(J=J.substring(1,t[1]=="'"?J.length-1:J.length),J=J.replace(/''/g,"'")));V.patternParts_.push({text:J,type:n});break}}if(f===D)throw Error("ae`"+D);}};
Ss.prototype.format=function(V,D){if(!V)throw Error("be");var f=D?(V.getTimezoneOffset()-Ngu(D,V))*6E4:0,n=f?new Date(V.getTime()+f):V,t=n;D&&n.getTimezoneOffset()!=V.getTimezoneOffset()&&(n=new Date(n.getTime()+(n.getTimezoneOffset()-V.getTimezoneOffset())*6E4),t=new Date(V.getTime()+(f+(f>0?-864E5:864E5))));f=[];for(var J=0;J<this.patternParts_.length;++J){var H=this.patternParts_[J].text;1==this.patternParts_[J].type?f.push(CRr(this,H,V,n,t,D)):f.push(H)}return f.join("")};
var m_r=function(V,D){if(D<4)var f=V.JSC$9443_dateTimeSymbols_.DATEFORMATS[D];else if(D<8)f=V.JSC$9443_dateTimeSymbols_.TIMEFORMATS[D-4];else if(D<12)f=V.JSC$9443_dateTimeSymbols_.DATETIMEFORMATS[D-8],f=f.replace("{1}",V.JSC$9443_dateTimeSymbols_.DATEFORMATS[D-8]),f=f.replace("{0}",V.JSC$9443_dateTimeSymbols_.TIMEFORMATS[D-8]);else if(D===12)f=V.JSC$9443_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(D===13)f=V.JSC$9443_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{m_r(V,10);return}zIL(V,f)},Ab=function(V,D){D=String(D);
V=V.JSC$9443_dateTimeSymbols_||vC;if(V.ZERODIGIT!==void 0&&!fDd){for(var f=[],n=0;n<D.length;n++){var t=D.charCodeAt(n);f.push(48<=t&&t<=57?String.fromCharCode(V.ZERODIGIT+t-48):D.charAt(n))}D=f.join("")}return D},fDd=!1,ncY=!1,XRY=function(V,D,f,n){f=f.getFullYear();
f<=0&&n&&(f=1-f);return Ab(V,qlF(f,D))},qlF=function(V,D){D==2&&(V%=100);
V<0&&D++;return _.Uk(V,D)},aa=function(V){if(!(V.getHours&&V.getSeconds&&V.getMinutes))throw Error("ce");
},Eyp=function(V,D){aa(D);
D=ED(D);return V.JSC$9443_dateTimeSymbols_.AMPMS[D>=12&&D<24?1:0]},CRr=function(V,D,f,n,t,J){var H=D.length;
switch(D.charAt(0)){case "G":return f=n.getFullYear()>0?1:0,H>=4?V.JSC$9443_dateTimeSymbols_.ERANAMES[f]:V.JSC$9443_dateTimeSymbols_.ERAS[f];case "y":return XRY(V,H,n,!0);case "Y":return f=(new Date(al6(n.getFullYear(),n.getMonth(),n.getDate(),V.JSC$9443_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,V.JSC$9443_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),H==2&&(f%=100),Ab(V,qlF(f,H));case "u":return XRY(V,H,n,!1);case "M":a:switch(f=n.getMonth(),H){case 5:H=V.JSC$9443_dateTimeSymbols_.NARROWMONTHS[f];break a;
case 4:H=V.JSC$9443_dateTimeSymbols_.MONTHS[f];break a;case 3:H=V.JSC$9443_dateTimeSymbols_.SHORTMONTHS[f];break a;default:H=Ab(V,_.Uk(f+1,H))}return H;case "k":return aa(t),Ab(V,_.Uk(ED(t)||24,H));case "S":return Ab(V,(t.getMilliseconds()/1E3).toFixed(Math.min(3,H)).slice(2)+(H>3?_.Uk(0,H-3):""));case "E":return f=n.getDay(),H>=4?V.JSC$9443_dateTimeSymbols_.WEEKDAYS[f]:V.JSC$9443_dateTimeSymbols_.SHORTWEEKDAYS[f];case "a":return Eyp(V,t);case "b":return Eyp(V,t);case "B":return Eyp(V,t);case "h":return aa(t),
Ab(V,_.Uk(ED(t)%12||12,H));case "K":return aa(t),Ab(V,_.Uk(ED(t)%12,H));case "H":return aa(t),Ab(V,_.Uk(ED(t),H));case "c":a:switch(f=n.getDay(),H){case 5:H=V.JSC$9443_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[f];break a;case 4:H=V.JSC$9443_dateTimeSymbols_.STANDALONEWEEKDAYS[f];break a;case 3:H=V.JSC$9443_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[f];break a;default:H=Ab(V,_.Uk(f,1))}return H;case "L":a:switch(f=n.getMonth(),H){case 5:H=V.JSC$9443_dateTimeSymbols_.STANDALONENARROWMONTHS[f];break a;
case 4:H=V.JSC$9443_dateTimeSymbols_.STANDALONEMONTHS[f];break a;case 3:H=V.JSC$9443_dateTimeSymbols_.STANDALONESHORTMONTHS[f];break a;default:H=Ab(V,_.Uk(f+1,H))}return H;case "Q":return f=Math.floor(n.getMonth()/3),H<4?V.JSC$9443_dateTimeSymbols_.SHORTQUARTERS[f]:V.JSC$9443_dateTimeSymbols_.QUARTERS[f];case "d":return Ab(V,_.Uk(n.getDate(),H));case "m":return aa(t),Ab(V,_.Uk(t.getMinutes?t.getMinutes():0,H));case "s":return aa(t),Ab(V,_.Uk(t.getSeconds(),H));case "v":return(J||iR(f.getTimezoneOffset())).timeZoneId_;
case "V":return V=J||iR(f.getTimezoneOffset()),H<=2?V.timeZoneId_:uCY(V,f)>0?V.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?V.tzNamesExt_.DST_GENERIC_LOCATION:V.tzNamesExt_.DST_GENERIC_LOCATION:V.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?V.tzNamesExt_.STD_GENERIC_LOCATION:V.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return f=al6(t.getFullYear(),t.getMonth(),t.getDate(),V.JSC$9443_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,V.JSC$9443_dateTimeSymbols_.FIRSTDAYOFWEEK),Ab(V,_.Uk(Math.floor(Math.round((f-(new Date((new Date(f)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,H));case "z":return V=J||iR(f.getTimezoneOffset()),H<4?V.tzNames_[uCY(V,f)>0?2:0]:V.tzNames_[uCY(V,f)>0?3:1];case "Z":return D=J||iR(f.getTimezoneOffset()),H<4?(H=-Ngu(D,f),V=[H<0?"-":"+"],H=Math.abs(H),V.push(_.Uk(Math.floor(H/60)%100,2),_.Uk(H%60,2)),H=V.join("")):H=Ab(V,d_l(Ngu(D,f))),H;default:return""}};var AOl=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,aHE=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,UyL=function(V){this.patternParts_=[];this.JSC$9452_dateTimeSymbols_=vC;if(typeof V=="number"){V>11&&(V=10);if(V<4)var D=this.JSC$9452_dateTimeSymbols_.DATEFORMATS[V];else V<8?D=this.JSC$9452_dateTimeSymbols_.TIMEFORMATS[V-4]:(D=this.JSC$9452_dateTimeSymbols_.DATETIMEFORMATS[V-8],D=D.replace("{1}",this.JSC$9452_dateTimeSymbols_.DATEFORMATS[V-8]),D=D.replace("{0}",this.JSC$9452_dateTimeSymbols_.TIMEFORMATS[V-
8]));Ylu(this,D)}else Ylu(this,V)},Ylu=function(V,D){for(var f=!1,n="",t=0;t<D.length;t++){var J=D.charAt(t);
if(AOl.test(J))for(n.length>0&&(V.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n=""),V.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});t<D.length-1&&D.charAt(t+1)==" ";)t++;else if(f)J=="'"?t+1<D.length&&D.charAt(t+1)=="'"?(n+="'",t++):f=!1:n+=J;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(J)>=0){n.length>0&&(V.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n="");for(var H=D.charAt(t),Q=t+1;Q<D.length&&D.charAt(Q)==H;)Q++;H=Q-t;H<=0?Q=!1:(Q="MydhHmsSDkK".indexOf(J),
Q=Q>0||Q==0&&H<3);V.patternParts_.push({text:J,count:H,abutStart:!1,numeric:Q});t+=H-1}else J=="'"?t+1<D.length&&D.charAt(t+1)=="'"?(n+="'",t++):f=!0:n+=J}n.length>0&&V.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1});D=!1;for(f=0;f<V.patternParts_.length;f++)V.patternParts_[f].numeric?!D&&f+1<V.patternParts_.length&&V.patternParts_[f+1].numeric&&(D=!0,V.patternParts_[f].abutStart=!0):D=!1};
UyL.prototype.parse=function(V,D,f){var n=!1,t=!1;f&&(n=f.predictive||!1,t=f.validate||!1);if(n)for(f=0;f<this.patternParts_.length;f++){var J=this.patternParts_[f];if(J.count>0&&("abBhHkKm".indexOf(J.text.charAt(0))<0||J.count>2||J.abutStart))throw Error("de`"+J.text.charAt(0));}J=new $_l;f=[0];J.dayPeriodIndex=-1;for(var H=0;H<this.patternParts_.length&&!(n&&f[0]>=V.length);H++){if(this.patternParts_[H].count==0){a:{var Q=V;var T=f,y=this.patternParts_[H],Z=n;if(y.text.match(AOl)!=null){if(y=T[0],
iAu(Q,T),T[0]>y){Q=!0;break a}}else{if(Q.indexOf(y.text,T[0])==T[0]){T[0]+=y.text.length;Q=!0;break a}if(Z&&y.text.indexOf(Q.substring(T[0]))==0){T[0]+=Q.length-T[0];Q=!0;break a}}Q=!1}if(Q)continue;return 0}if(this.patternParts_[H].abutStart){a:{T=V;y=f;Z=H;var l=y[0],G=0;for(Q=Z;Q<this.patternParts_.length;Q++){var F=this.patternParts_[Q],k=F.count;if(k===0)break;if(Q==Z&&(k-=G,G++,k==0)){Q=0;break a}var d=Q>Z&&F.numeric,z=y[0];if(!Sll(this,T,y,F,k,J,!1)||d&&y[0]-z<k)Q=Z-1,y[0]=l}Q-=Z}if(Q<=0)return 0;
H+=Q-1}else if(!Sll(this,V,f,this.patternParts_[H],0,J,n))return 0}a:{V=t;if(D==null)throw Error("ee");J.era!=void 0&&J.year!=void 0&&J.era==0&&J.year>0&&(J.year=-(J.year-1));J.year!=void 0&&D.setFullYear(J.year);n=D.getDate();D.setDate(1);J.month!=void 0&&D.setMonth(J.month);J.day!=void 0?D.setDate(J.day):(t=Bzc(D.getFullYear(),D.getMonth()),D.setDate(n>t?t:n));typeof D.setHours==="function"&&(J.hours==void 0&&(J.hours=D.getHours()),J.hours<12&&(J.ampm!=void 0&&J.ampm>0?J.hours+=12:J.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(J.dayPeriodName)||["night1","night2"].includes(J.dayPeriodName)&&J.hours>=6)&&(J.hours+=12)),D.setHours(J.hours));typeof D.setMinutes==="function"&&J.minutes!=void 0&&D.setMinutes(J.minutes);typeof D.setSeconds==="function"&&J.seconds!=void 0&&D.setSeconds(J.seconds);typeof D.setMilliseconds==="function"&&J.milliseconds!=void 0&&D.setMilliseconds(J.milliseconds);if(V&&(J.year&&J.year!=D.getFullYear()||J.month&&J.month!=
D.getMonth()||J.day&&J.day!=D.getDate()||J.hours&&J.hours>=24||J.minutes&&J.minutes>=60||J.seconds&&J.seconds>=60||J.milliseconds&&J.milliseconds>=1E3))D=!1;else{J.tzOffset!=void 0&&D.setTime(D.getTime()+(J.tzOffset-D.getTimezoneOffset())*60*1E3);J.ambiguousYear&&(V=new Date,V.setFullYear(V.getFullYear()-80),D.getTime()<V.getTime()&&D.setFullYear(V.getFullYear()+100));if(J.dayOfWeek!=void 0)if(J.day==void 0)J=(7+J.dayOfWeek-D.getDay())%7,J>3&&(J-=7),V=D.getMonth(),D.setDate(D.getDate()+J),D.getMonth()!=
V&&D.setDate(D.getDate()+(J>0?-7:7));else if(J.dayOfWeek!=D.getDay()){D=!1;break a}D=!0}}return D?f[0]:0};
var Sll=function(V,D,f,n,t,J,H){iAu(D,f);if(n.numeric&&t>0&&f[0]+t>D.length)return!1;switch(n.text.charAt(0)){case "G":return Y9(D,f,[V.JSC$9452_dateTimeSymbols_.ERAS],function(Q){return J.era=Q}),!0;
case "M":case "L":return Wq6(V,D,f,t,n,J);case "E":return Y9(D,f,[V.JSC$9452_dateTimeSymbols_.WEEKDAYS,V.JSC$9452_dateTimeSymbols_.SHORTWEEKDAYS],function(Q){return J.dayOfWeek=Q});
case "B":case "b":return t=[],V=[[].concat(V.JSC$9452_dateTimeSymbols_.AMPMS)],t.push("isAm"),t.push("isPm"),D=Y9(D,f,V,function(Q){return J.dayPeriodIndex=Q},H),J.dayPeriodName=t[J.dayPeriodIndex],H?D:!0;
case "a":return D=Y9(D,f,[V.JSC$9452_dateTimeSymbols_.AMPMS],function(Q){return J.ampm=Q},H),H?D:!0;
case "y":return pRo(V,D,f,n,t,J);case "Q":return Y9(D,f,[V.JSC$9452_dateTimeSymbols_.QUARTERS,V.JSC$9452_dateTimeSymbols_.SHORTQUARTERS],function(Q){J.month=Q*3;J.day=1});
case "d":return $9(V,D,f,n,t,function(Q){J.day=Q}),!0;
case "S":return Lql(V,D,f,t,J);case "h":case "K":case "H":case "k":return D=$9(V,D,f,n,t,function(Q){J.hours=n.text.charAt(0)==="h"&&Q===12?0:Q},H),H?D:!0;
case "m":return D=$9(V,D,f,n,t,function(Q){J.minutes=Q},H),H?D:!0;
case "s":return $9(V,D,f,n,t,function(Q){J.seconds=Q}),!0;
case "z":case "Z":case "v":return IHr(V,D,f,J);default:return!1}},pRo=function(V,D,f,n,t,J){var H=f[0];
t=Sq(V,D,f,t);t===null&&(t=Sq(V,D,f,0,!0));if(t===null)return!1;t>=0&&f[0]-H==2&&n.count==2?(V=t,D=(new Date).getFullYear()-80,f=D%100,J.ambiguousYear=V==f,V+=Math.floor(D/100)*100+(V<f?100:0),J.year=V):J.year=t;return!0},Wq6=function(V,D,f,n,t,J){return t.numeric&&$9(V,D,f,t,n,function(H){J.month=H-1})?!0:Y9(D,f,[V.JSC$9452_dateTimeSymbols_.MONTHS,
V.JSC$9452_dateTimeSymbols_.STANDALONEMONTHS,V.JSC$9452_dateTimeSymbols_.SHORTMONTHS,V.JSC$9452_dateTimeSymbols_.STANDALONESHORTMONTHS],function(H){J.month=H})},Lql=function(V,D,f,n,t){var J=f[0];
V=Sq(V,D,f,n);if(V===null)return!1;f=f[0]-J;t.milliseconds=f<3?V*Math.pow(10,3-f):Math.round(V/Math.pow(10,f-3));return!0},IHr=function(V,D,f,n){D.indexOf("GMT",f[0])==f[0]&&(f[0]+=3);
if(f[0]>=D.length)return n.tzOffset=0,!0;var t=f[0],J=Sq(V,D,f,0,!0);if(J===null)return!1;if(f[0]<D.length&&D.charAt(f[0])==":"){var H=J*60;f[0]++;J=Sq(V,D,f,0);if(J===null)return!1;H+=J}else H=J,H=H<24&&f[0]-t<=3?H*60:H%100+H/100*60;n.tzOffset=-H;return!0},$9=function(V,D,f,n,t,J,H){H=H||!1;
var Q=f[0];V=Sq(V,D,f,t);if(V===null)return!1;if(H&&f[0]-Q<n.count){if(f[0]<D.length)return!1;V*=Math.pow(10,n.count-(f[0]-Q))}J(V);return!0},Y9=function(V,D,f,n,t){t=t||!1;
for(var J,H=0;H<f.length;H++){J=D;for(var Q=f[H],T=t,y=0,Z=null,l=V.substring(J[0]).toLowerCase(),G=0;G<Q.length;G++){var F=Q[G].toLowerCase();if(T&&F.indexOf(l)==0){y=l.length;Z=G;break}Q[G].length>y&&l.indexOf(F)==0&&(y=Q[G].length,Z=G)}Z!==null&&(J[0]+=y);J=Z;if(J!==null)return n(J),!0}return!1},iAu=function(V,D){(V=V.substring(D[0]).match(aHE))&&(D[0]+=V[0].length)},Sq=function(V,D,f,n,t){D=n>0?D.substring(0,f[0]+n):D;
t=t||!1;if(V.JSC$9452_dateTimeSymbols_.ZERODIGIT){n=[];for(var J=f[0];J<D.length;J++){var H=D.charCodeAt(J)-V.JSC$9452_dateTimeSymbols_.ZERODIGIT;n.push(0<=H&&H<=9?String.fromCharCode(H+48):D.charAt(J))}D=n.join("")}else D=D.substring(f[0]);V=D.match(new RegExp("^"+(t?"[+-]?":"")+"\\d+"));if(!V)return null;f[0]+=V[0].length;return parseInt(V[0],10)},$_l=function(){};
$_l.prototype.ambiguousYear=!1;_.OAV={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 x_l={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"},Msl=x_l,hI6=x_l;hI6=Msl=x_l;var VLl,Wy,LN,Fnn,pN,U_6;
_.aW=function(V,D,f,n){var t;if(t=D){a:if(D&&D.length===3){for(t=0;t<3;t++){var J=D[t];if(J<"A"||J>"Z"&&J<"a"||J>"z"){t=!1;break a}}t=!0}else t=!1;t=!t}if(t)throw new TypeError("fe");this.intlCurrencyCode_=D?D.toUpperCase():null;this.currencyStyle_=f||0;this.overrideNumberFormatSymbols_=n||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_=Wy(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof V==="number")switch(V){case 1:pN(this,Wy(this).DECIMAL_PATTERN);break;case 2:pN(this,Wy(this).SCIENTIFIC_PATTERN);break;case 3:pN(this,Wy(this).PERCENT_PATTERN);break;case 4:V=Wy(this).CURRENCY_PATTERN;D=["0"];if(f=
XL[LN(this)]){f=f[0]&7;if(f>0)for(D.push("."),n=0;n<f;n++)D.push("0");V=V.replace(/0.00/g,D.join(""))}pN(this,V);break;case 5:U_6(this,1);break;case 6:U_6(this,2);break;default:throw Error("ie");}else pN(this,V)};
VLl=!1;Wy=function(V){return V.overrideNumberFormatSymbols_||(VLl?hI6:Msl)};
LN=function(V){return V.intlCurrencyCode_||Wy(V).DEF_CURRENCY_CODE};
Fnn=function(V,D){if(D>308)throw Error("he`"+D);V.maximumFractionDigits_=D;return V};
pN=function(V,D){var f=[0];V.positivePrefix_=DZl(V,D,f);for(var n=f[0],t=-1,J=0,H=0,Q=0,T=-1,y=D.length,Z=!0;f[0]<y&&Z;f[0]++)switch(D.charAt(f[0])){case "#":H>0?Q++:J++;T>=0&&t<0&&T++;break;case "0":if(Q>0)throw Error("oe`"+D);H++;T>=0&&t<0&&T++;break;case ",":T>0&&V.groupingArray_.push(T);T=0;break;case ".":if(t>=0)throw Error("pe`"+D);t=J+H+Q;break;case "E":if(V.useExponentialNotation_)throw Error("qe`"+D);V.useExponentialNotation_=!0;V.minExponentDigits_=0;f[0]+1<y&&D.charAt(f[0]+1)=="+"&&(f[0]++,
V.useSignForPositiveExponent_=!0);for(;f[0]+1<y&&D.charAt(f[0]+1)=="0";)f[0]++,V.minExponentDigits_++;if(J+H<1||V.minExponentDigits_<1)throw Error("re`"+D);Z=!1;break;default:f[0]--,Z=!1}H==0&&J>0&&t>=0&&(H=t,H==0&&H++,Q=J-H,J=H-1,H=1);if(t<0&&Q>0||t>=0&&(t<J||t>J+H)||T==0)throw Error("se`"+D);Q=J+H+Q;V.maximumFractionDigits_=t>=0?Q-t:0;t>=0&&(V.minimumFractionDigits_=J+H-t,V.minimumFractionDigits_<0&&(V.minimumFractionDigits_=0));V.minimumIntegerDigits_=(t>=0?t:Q)-J;V.useExponentialNotation_&&(V.maximumIntegerDigits_=
J+V.minimumIntegerDigits_,V.maximumFractionDigits_==0&&V.minimumIntegerDigits_==0&&(V.minimumIntegerDigits_=1));V.groupingArray_.push(Math.max(0,T));V.decimalSeparatorAlwaysShown_=t==0||t==Q;n=f[0]-n;V.positiveSuffix_=DZl(V,D,f);f[0]<D.length&&D.charAt(f[0])==";"?(f[0]++,V.multiplier_!=1&&(V.negativePercentSignExpected_=!0),V.negativePrefix_=DZl(V,D,f),f[0]+=n,V.negativeSuffix_=DZl(V,D,f)):(V.negativePrefix_+=V.positivePrefix_,V.negativeSuffix_+=V.positiveSuffix_)};
U_6=function(V,D){V.compactStyle_=D;pN(V,Wy(V).DECIMAL_PATTERN);V.minimumFractionDigits_=0;Fnn(V,2);if(V.minimumFractionDigits_>0)throw Error("ge");V.significantDigits_=2};
_.aW.prototype.parse=function(V,D){D=D||[0];if(this.compactStyle_!==0)throw Error("je");V=V.replace(/ |\u202f/g,"\u00a0");var f=V.indexOf(this.positivePrefix_,D[0])==D[0],n=V.indexOf(this.negativePrefix_,D[0])==D[0];f&&n&&(this.positivePrefix_.length>this.negativePrefix_.length?n=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(f=!1));f?D[0]+=this.positivePrefix_.length:n&&(D[0]+=this.negativePrefix_.length);if(V.indexOf(Wy(this).INFINITY,D[0])==D[0]){D[0]+=Wy(this).INFINITY.length;var t=
Infinity}else{t=V;var J=!1,H=!1,Q=!1,T=-1,y=1,Z=Wy(this).DECIMAL_SEP,l=Wy(this).GROUP_SEP,G=Wy(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");l=l.replace(/\u202f/g,"\u00a0");for(var F="";D[0]<t.length;D[0]++){var k=t.charAt(D[0]),d=fxF(this,k);if(d>=0&&d<=9)F+=d,Q=!0;else if(k==Z.charAt(0)){if(J||H)break;F+=".";J=!0}else if(k==l.charAt(0)&&("\u00a0"!=l.charAt(0)||D[0]+1<t.length&&fxF(this,t.charAt(D[0]+1))>=0)){if(J||H)break}else if(k==G.charAt(0)){if(H)break;F+="E";H=!0;T=D[0]}else if(k==
"+"||k=="-"){if(Q&&T!=D[0]-1)break;F+=k}else if(this.multiplier_==1&&k==Wy(this).PERCENT.charAt(0)){if(y!=1)break;y=100;if(Q){D[0]++;break}}else if(this.multiplier_==1&&k==Wy(this).PERMILL.charAt(0)){if(y!=1)break;y=1E3;if(Q){D[0]++;break}}else break}this.multiplier_!=1&&(y=this.multiplier_);t=parseFloat(F)/y}if(f){if(V.indexOf(this.positiveSuffix_,D[0])!=D[0])return NaN;D[0]+=this.positiveSuffix_.length}else if(n){if(V.indexOf(this.negativeSuffix_,D[0])!=D[0])return NaN;D[0]+=this.negativeSuffix_.length}return n?
-t:t};
_.aW.prototype.format=function(V){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(V))return Wy(this).NAN;var D=[];var f=V;if(this.compactStyle_==0)f=Ia;else{f=Math.abs(f);var n=n7Y(this,f<=1?0:tL6(f)).divisorBase;f=n7Y(this,n+tL6(PdH(this,OD(f,-n)).intValue))}V=OD(V,-f.divisorBase);(n=V<0||V==0&&1/V<0)?f.negative_prefix?D.push(f.negative_prefix):(D.push(f.prefix),D.push(this.negativePrefix_)):(D.push(f.prefix),D.push(this.positivePrefix_));if(isFinite(V))if(V*=
n?-1:1,V*=this.multiplier_,this.useExponentialNotation_){var t=V;if(t==0)o7F(this,t,this.minimumIntegerDigits_,D),JPl(this,0,D);else{var J=Math.floor(Math.log(t)/Math.log(10)+2E-15);t=OD(t,-J);var H=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(H=J%this.maximumIntegerDigits_,H<0&&(H=this.maximumIntegerDigits_+H),t=OD(t,H),J-=H,H=1):this.minimumIntegerDigits_<1?(J++,t=OD(t,-1)):(J-=this.minimumIntegerDigits_-1,t=OD(t,this.minimumIntegerDigits_-
1));o7F(this,t,H,D);JPl(this,J,D)}}else o7F(this,V,this.minimumIntegerDigits_,D);else D.push(Wy(this).INFINITY);n?f.negative_suffix?D.push(f.negative_suffix):(isFinite(V)&&D.push(f.suffix),D.push(this.negativeSuffix_)):(isFinite(V)&&D.push(f.suffix),D.push(this.positiveSuffix_));return D.join("")};
var PdH=function(V,D){var f=OD(D,V.maximumFractionDigits_);V.significantDigits_>0&&(f=rPF(f,V.significantDigits_,V.maximumFractionDigits_));f=Math.round(f);if(isFinite(f)){var n=Math.floor(OD(f,-V.maximumFractionDigits_));f=Math.floor(f-OD(n,V.maximumFractionDigits_));if(f<0||f>=OD(1,V.maximumFractionDigits_))n=Math.round(D),f=0}else n=D,f=0;return{intValue:n,fracValue:f}},o7F=function(V,D,f,n){if(V.minimumFractionDigits_>V.maximumFractionDigits_)throw Error("le");
n||(n=[]);D=PdH(V,D);var t=D.intValue,J=D.fracValue,H=V.minimumFractionDigits_>0||J>0||!1;D=V.minimumFractionDigits_;H&&(D=V.minimumFractionDigits_);for(var Q="",T=t;T>1E20;)Q="0"+Q,T=Math.round(OD(T,-1));Q=T+Q;var y=Wy(V).DECIMAL_SEP;T=Wy(V).ZERO_DIGIT.codePointAt(0);var Z=Q.length,l=0;if(t>0||f>0){for(t=Z;t<f;t++)n.push(String.fromCodePoint(T));if(V.groupingArray_.length>=2)for(f=1;f<V.groupingArray_.length;f++)l+=V.groupingArray_[f];f=Z-l;if(f>0){t=V.groupingArray_;l=Z=0;for(var G,F=Wy(V).GROUP_SEP,
k=Q.length,d=0;d<k;d++)if(n.push(String.fromCodePoint(T+Number(Q.charAt(d)))),k-d>1)if(G=t[l],d<f){var z=f-d;(G===1||G>0&&z%G===1)&&n.push(F)}else l<t.length&&(d===f?l+=1:G===d-f-Z+1&&(n.push(F),Z+=G,l+=1))}else{f=Q;Q=V.groupingArray_;t=Wy(V).GROUP_SEP;G=f.length;F=[];for(Z=Q.length-1;Z>=0&&G>0;Z--){l=Q[Z];for(k=0;k<l&&G-k-1>=0;k++)F.push(String.fromCodePoint(T+Number(f.charAt(G-k-1))));G-=l;G>0&&F.push(t)}n.push.apply(n,F.reverse())}}else H||n.push(String.fromCodePoint(T));(V.decimalSeparatorAlwaysShown_||
H)&&n.push(y);J=String(J);H=J.split("e+");H.length==2&&(J=String(rPF(parseFloat(H[0]),V.significantDigits_,1)),J=J.replace(".",""),J+=(0,_.WEU)("0",parseInt(H[1],10)-J.length+1));V.maximumFractionDigits_+1>J.length&&(J="1"+(0,_.WEU)("0",V.maximumFractionDigits_-J.length)+J);for(V=J.length;J.charAt(V-1)=="0"&&V>D+1;)V--;for(D=1;D<V;D++)n.push(String.fromCodePoint(T+Number(J.charAt(D))))},JPl=function(V,D,f){f.push(Wy(V).EXP_SYMBOL);
D<0?(D=-D,f.push(Wy(V).MINUS_SIGN)):V.useSignForPositiveExponent_&&f.push(Wy(V).PLUS_SIGN);D=""+D;for(var n=Wy(V).ZERO_DIGIT,t=D.length;t<V.minExponentDigits_;t++)f.push(n);V=n.codePointAt(0)-HRP;for(n=0;n<D.length;n++)f.push(String.fromCodePoint(V+D.codePointAt(n)))},fxF=function(V,D){D=D.codePointAt(0);
if(48<=D&&D<58)return D-48;V=Wy(V).ZERO_DIGIT.codePointAt(0);return V<=D&&D<V+10?D-V:-1},HRP="0".codePointAt(0),DZl=function(V,D,f){for(var n="",t=!1,J=D.length;f[0]<J;f[0]++){var H=D.charAt(f[0]);
if(H=="'")f[0]+1<J&&D.charAt(f[0]+1)=="'"?(f[0]++,n+="'"):t=!t;else if(t)n+=H;else switch(H){case "#":case "0":case ",":case ".":case ";":return n;case "\u00a4":if(f[0]+1<J&&D.charAt(f[0]+1)=="\u00a4")f[0]++,n+=LN(V);else switch(V.currencyStyle_){case 0:H=LN(V);n+=H in XL?XL[H][1]:H;break;case 2:H=LN(V);var Q=XL[H];n+=Q?H==Q[1]?H:H+" "+Q[1]:H;break;case 1:H=LN(V),n+=H in XL?XL[H][2]:H}break;case "%":if(!V.negativePercentSignExpected_&&V.multiplier_!=1)throw Error("me");if(V.negativePercentSignExpected_&&
V.multiplier_!=100)throw Error("ne");V.multiplier_=100;V.negativePercentSignExpected_=!1;n+=Wy(V).PERCENT;break;case "\u2030":if(!V.negativePercentSignExpected_&&V.multiplier_!=1)throw Error("me");if(V.negativePercentSignExpected_&&V.multiplier_!=1E3)throw Error("ne");V.multiplier_=1E3;V.negativePercentSignExpected_=!1;n+=Wy(V).PERMILL;break;default:n+=H}}return n},Ia={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},n7Y=function(V,D){V=V.compactStyle_==1?qW.COMPACT_DECIMAL_SHORT_PATTERN:qW.COMPACT_DECIMAL_LONG_PATTERN;V==null&&(V=qW.COMPACT_DECIMAL_SHORT_PATTERN);if(D<3)return Ia;D=Math.min(14,D);var f=V[OD(1,D)];for(--D;!f&&D>=3;)f=V[OD(1,D)],D--;if(!f)return Ia;f=f.other;var n=V="",t=f.indexOf(";");t>=0&&(f=f.substring(0,t),t=f.substring(t+1))&&(n=/([^0]*)(0+)(.*)/.exec(t),V=n[1],n=n[3]);return f&&f!="0"?(f=/([^0]*)(0+)(.*)/.exec(f))?{divisorBase:D+
1-(f[2].length-1),negative_prefix:V,negative_suffix:n,prefix:f[1],suffix:f[3]}:Ia:Ia},tL6=function(V){if(!isFinite(V))return V>0?V:0;
for(var D=0;(V/=10)>=1;)D++;return D},OD=function(V,D){if(!V||!isFinite(V)||D==0)return V;
V=String(V).split("e");return parseFloat(V[0]+"e"+(parseInt(V[1]||0,10)+D))},woP=function(V,D){return V&&isFinite(V)?OD(Math.round(OD(V,D)),-D):V},rPF=function(V,D,f){if(!V)return V;
D=D-tL6(V)-1;return D<-f?woP(V,-f):woP(V,D)};var QBP=function(V){return V%10==1&&V%100!=11?"one":V%10==2&&V%100!=12?"two":V%10==3&&V%100!=13?"few":"other"},TUE=QBP;
TUE=QBP;var bRu;bRu=function(V,D){var f=V|0;if(void 0===D){D=Math;var n=D.min,t=V+"",J=t.indexOf(".");D=n.call(D,J===-1?0:t.length-J-1,3)}n=Math.pow(10,D);V={v:D,f:(V*n|0)%n};return f==1&&V.v==0?"one":"other"};
_.WR=bRu;_.WR=bRu;var KRl,yPV,ZR6,lxV,G_P;_.jBr=function(V){this.JSC$9495_pattern_=V;this.parsedPattern_=this.literals_=this.initialLiterals_=null;V=Msl;var D=qW;if(KRl!==V||yPV!==D)KRl=V,yPV=D,ZR6=new _.aW(1);this.numberFormatter_=ZR6};
KRl=null;yPV=null;ZR6=null;lxV=RegExp("'([{}#].*?)'","g");G_P=RegExp("''","g");
_.jBr.prototype.format=function(V){if(this.JSC$9495_pattern_){this.initialLiterals_=[];var D=eLF(this,this.JSC$9495_pattern_);this.parsedPattern_=cPU(this,D);this.JSC$9495_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Od(this.initialLiterals_),D=[],FRL(this,this.parsedPattern_,V,!1,D),V=D.join("");this.literals_.length>0;)V=V.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else V="";return V};
var FRL=function(V,D,f,n,t){for(var J=0;J<D.length;J++)switch(D[J].type){case 4:t.push(D[J].value);break;case 3:var H=D[J].value;var Q=V,T=t,y=f[H];y===void 0?T.push("Undefined parameter - "+H):(Q.literals_.push(y),T.push(Q.buildPlaceholder_(Q.literals_)));break;case 2:H=D[J].value;Q=V;T=f;y=n;var Z=t,l=H.argumentIndex;T[l]===void 0?Z.push("Undefined parameter - "+l):(l=H[T[l]],l===void 0&&(l=H.other),FRL(Q,l,T,y,Z));break;case 0:H=D[J].value;g76(V,H,f,_.WR,n,t);break;case 1:H=D[J].value,g76(V,H,
f,TUE,n,t)}},g76=function(V,D,f,n,t,J){var H=D.argumentIndex,Q=D.argumentOffset,T=+f[H];
isNaN(T)?J.push("Undefined or invalid parameter - "+H):(Q=T-Q,H=D[f[H]],H===void 0&&(n=n(Math.abs(Q)),H=D[n],H===void 0&&(H=D.other)),D=[],FRL(V,H,f,t,D),f=D.join(""),t?J.push(f):(V=V.numberFormatter_.format(Q),J.push(f.replace(/#/g,V))))},eLF=function(V,D){var f=V.initialLiterals_,n=V.buildPlaceholder_.bind(V);
D=D.replace(G_P,function(){f.push("'");return n(f)});
return D=D.replace(lxV,function(t,J){f.push(J);return n(f)})},v7E=function(V){var D=0,f=[],n=[],t=/[{}]/g;
t.lastIndex=0;for(var J;J=t.exec(V);){var H=J.index;J[0]=="}"?(f.pop(),f.length==0&&(J={type:1},J.value=V.substring(D,H),n.push(J),D=H+1)):(f.length==0&&(D=V.substring(D,H),D!=""&&n.push({type:0,value:D}),D=H+1),f.push("{"))}V=V.substring(D);V!=""&&n.push({type:0,value:V});return n},k_r=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,sB6=/^\s*(\w+)\s*,\s*selectordinal\s*,/,BUP=/^\s*(\w+)\s*,\s*select\s*,/,cPU=function(V,D){var f=[];
D=v7E(D);for(var n=0;n<D.length;n++){var t={};if(0==D[n].type)t.type=4,t.value=D[n].value;else if(1==D[n].type){var J=D[n].value;switch(k_r.test(J)?0:sB6.test(J)?1:BUP.test(J)?2:/^\s*\w+\s*/.test(J)?3:5){case 2:t.type=2;t.value=dZF(V,D[n].value);break;case 0:t.type=0;t.value=uSo(V,D[n].value);break;case 1:t.type=1;t.value=NUE(V,D[n].value);break;case 3:t.type=3,t.value=D[n].value}}f.push(t)}return f},dZF=function(V,D){var f="";
D=D.replace(BUP,function(Q,T){f=T;return""});
var n={};n.argumentIndex=f;D=v7E(D);for(var t=0;t<D.length;){var J=D[t].value;t++;var H=void 0;1==D[t].type&&(H=cPU(V,D[t].value));n[J.replace(/\s/g,"")]=H;t++}return n},uSo=function(V,D){var f="",n=0;
D=D.replace(k_r,function(T,y,Z){f=y;Z&&(n=parseInt(Z,10));return""});
var t={};t.argumentIndex=f;t.argumentOffset=n;D=v7E(D);for(var J=0;J<D.length;){var H=D[J].value;J++;var Q=void 0;1==D[J].type&&(Q=cPU(V,D[J].value));t[H.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Q;J++}return t},NUE=function(V,D){var f="";
D=D.replace(sB6,function(Q,T){f=T;return""});
var n={};n.argumentIndex=f;n.argumentOffset=0;D=v7E(D);for(var t=0;t<D.length;){var J=D[t].value;t++;var H=void 0;1==D[t].type&&(H=cPU(V,D[t].value));n[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=H;t++}return n};
_.jBr.prototype.buildPlaceholder_=function(V){return"\ufddf_"+(V.length-1).toString(10)+"_"};var mZU;
mZU={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 ocR=function(){this.rdtfSymbols_=zLH||mZU;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ocR.prototype.format=function(V,D){a:{D=RLo(this,D);switch(this.style_){case 2:if(D.NARROW!=void 0){D=D.NARROW;break a}case 1:if(D.SHORT!=void 0){D=D.SHORT;break a}default:D=D.LONG;break a}D=void 0}if(!this.alwaysNumeric_&&D&&D.R&&D.R[""+V])V=D.R[""+V];else if(D){var f=Math.abs(V);V=(new _.jBr("{N,plural,"+(V>0||V==0&&1/V==Infinity?D.F:D.P)+"}")).format({N:f})}else V="";return V};
var RLo=function(V,D){switch(D){default:case 0:return V.rdtfSymbols_.YEAR;case 1:return V.rdtfSymbols_.QUARTER;case 2:return V.rdtfSymbols_.MONTH;case 3:return V.rdtfSymbols_.WEEK;case 4:return V.rdtfSymbols_.DAY;case 5:return V.rdtfSymbols_.HOUR;case 6:return V.rdtfSymbols_.MINUTE;case 7:return V.rdtfSymbols_.SECOND}};var CdV=function(V,D,f,n,t,J,H,Q){this.x0=V;this.y0=D;this.x1=f;this.y1=n;this.x2=t;this.y2=J;this.x3=H;this.y3=Q};
CdV.prototype.clone=function(){return new CdV(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
CdV.prototype.equals=function(V){return this.x0==V.x0&&this.y0==V.y0&&this.x1==V.x1&&this.y1==V.y1&&this.x2==V.x2&&this.y2==V.y2&&this.x3==V.x3&&this.y3==V.y3};
var qsE=function(V,D){if(D==0)return V.x0;if(D==1)return V.x3;var f=lg(V.x0,V.x1,D),n=lg(V.x1,V.x2,D);V=lg(V.x2,V.x3,D);f=lg(f,n,D);n=lg(n,V,D);return lg(f,n,D)},XoU=function(V,D){var f=(D-V.x0)/(V.x3-V.x0);
if(f<=0)return 0;if(f>=1)return 1;for(var n=0,t=1,J=0,H=0;H<8;H++){J=qsE(V,f);var Q=(qsE(V,f+1E-6)-J)/1E-6;if(Math.abs(J-D)<1E-6)return f;if(Math.abs(Q)<1E-6)break;else J<D?n=f:t=f,f-=(J-D)/Q}for(H=0;Math.abs(J-D)>1E-6&&H<8;H++)J<D?(n=f,f=(f+t)/2):(t=f,f=(f+n)/2),J=qsE(V,f);return f};var x9=function(){_.jT.call(this);this.JSC$9516_name_="closure_frame"+E7l++;this.iframesForDisposal_=[];APp[this.JSC$9516_name_]=this},MW;
_.fg(x9,_.jT);var APp={},E7l=0,axV=function(V,D){var f=jC(V);Uru(D,function(n,t){Array.isArray(n)||(n=[n]);_.Sd(n,function(J){J=f.JSC$7416_createDom("INPUT",{type:"hidden",name:t,value:J});V.appendChild(J)})})};
_.P=x9.prototype;_.P.JSC$9518_form_=null;_.P.JSC$9518_iframe_=null;_.P.iframeName_=null;_.P.nextIframeId_=0;_.P.JSC$9518_active_=!1;_.P.complete_=!1;_.P.success_=!1;_.P.lastContent_=null;_.P.JSC$9518_lastErrorCode_=0;_.P.iframeDisposalTimer_=null;
_.P.send=function(V,D,f,n){if(this.JSC$9518_active_)throw Error("te");V=new _.Ll(V);D=D?D.toUpperCase():"GET";f&&_.n$(V);MW||(MW=_.FP("FORM"),MW.acceptCharset="utf-8",f=MW.style,f.position="absolute",f.visibility="hidden",f.top=f.left="-10px",f.width=f.height="10px",f.overflow="hidden",document.body.appendChild(MW));this.JSC$9518_form_=MW;D=="GET"&&axV(this.JSC$9518_form_,V.JSC$8122_queryData_);n&&axV(this.JSC$9518_form_,n);f=V.toString();f=IJR(f);n=this.JSC$9518_form_;f=_.kx(bv(f));f!==void 0&&(n.action=
f);this.JSC$9518_form_.method=D;Ysl(this);$Zl(this)};
_.P.abort=function(V){if(this.JSC$9518_active_){var D=hb(this);if(D)if(K8(D))D.removeAllListeners(void 0);else if(D=yN(D)){var f=0,n;for(n in D.listeners)for(var t=D.listeners[n].concat(),J=0;J<t.length;++J)Fo(t[J])&&++f}this.success_=this.JSC$9518_active_=this.complete_=!1;this.JSC$9518_lastErrorCode_=V||7;this.dispatchEvent("abort");iRH(this)}};
_.P.disposeInternal=function(){this.JSC$9518_active_&&this.abort();x9.superClass_.disposeInternal.call(this);this.JSC$9518_iframe_&&SsH(this);$Zl(this);this.JSC$9518_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9518_form_=null;this.JSC$9518_lastErrorCode_=0;delete APp[this.JSC$9516_name_]};
_.P.isComplete=function(){return this.complete_};
_.P.isSuccess=function(){return this.success_};
_.P.isActive=function(){return this.JSC$9518_active_};
_.P.getResponseText=function(){return this.lastContent_};
_.P.getLastError=function(){return _.NQr(this.JSC$9518_lastErrorCode_)};
var Ysl=function(V){V.JSC$9518_active_=!0;V.complete_=!1;V.JSC$9518_lastErrorCode_=0;V.iframeName_=V.JSC$9516_name_+"_"+(V.nextIframeId_++).toString(36);V.JSC$9518_iframe_=jC(V.JSC$9518_form_).JSC$7416_createDom("IFRAME",{name:V.iframeName_,id:V.iframeName_});var D=V.JSC$9518_iframe_.style;D.visibility="hidden";D.width=D.height="10px";D.display="none";_.Hb?D.marginTop=D.marginLeft="-10px":(D.position="absolute",D.top=D.left="-10px");jC(V.JSC$9518_form_).JSC$7414_document_.body.appendChild(V.JSC$9518_iframe_);
D=V.iframeName_+"_inner";var f=boF(V.JSC$9518_iframe_);if(document.baseURI){var n=o7(D);n='<head><base href="'+o7(document.baseURI)+'"></head><body><iframe id="'+n+'" name="'+n+'"></iframe>';n=dQ(n)}else n=o7(D),n=dQ('<body><iframe id="'+n+'" name="'+n+'"></iframe>');f.write(uv(n));_.kt(f.getElementById(D),"load",V.onIframeLoaded_,!1,V);n=jB("TEXTAREA",V.JSC$9518_form_);for(var t=0,J=n.length;t<J;t++){var H=n[t].value;GUF(n[t])!=H&&(_.ug(n[t],H),n[t].value=H)}n=f.importNode(V.JSC$9518_form_,!0);n.target=
D;n.action=V.JSC$9518_form_.action;f.body.appendChild(n);t=jB("SELECT",V.JSC$9518_form_);J=jB("SELECT",n);H=0;for(var Q=t.length;H<Q;H++)for(var T=jB("OPTION",t[H]),y=jB("OPTION",J[H]),Z=0,l=T.length;Z<l;Z++)y[Z].selected=T[Z].selected;t=jB("INPUT",V.JSC$9518_form_);J=jB("INPUT",n);H=0;for(Q=t.length;H<Q;H++)if(t[H].type=="file"&&t[H].value!=J[H].value){V.JSC$9518_form_.target=D;n=V.JSC$9518_form_;break}try{V.errorHandled_=!1,n.submit(),f.close(),_.rf&&setTimeout(V.testForFirefoxSilentError_.bind(V),
250)}catch(G){_.ZU(f.getElementById(D),"load",V.onIframeLoaded_,!1,V),f.close(),UD(V,2)}};
x9.prototype.onIframeLoaded_=function(){_.ZU(hb(this),"load",this.onIframeLoaded_,!1,this);try{var V=this.JSC$9518_iframe_?boF(hb(this)):null;this.complete_=!0;this.JSC$9518_active_=!1;try{var D=V.body;this.lastContent_=D.textContent||D.innerText}catch(t){var f=1}var n;f||typeof this.errorChecker_!="function"||(n=this.errorChecker_(V))&&(f=4);f?UD(this,f):(this.success_=!0,this.JSC$9518_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),iRH(this))}catch(t){UD(this,1)}};
var UD=function(V,D){V.errorHandled_||(V.success_=!1,V.JSC$9518_active_=!1,V.complete_=!0,V.JSC$9518_lastErrorCode_=D,V.dispatchEvent("complete"),V.dispatchEvent("error"),iRH(V),V.errorHandled_=!0)},iRH=function(V){SsH(V);
$Zl(V);V.JSC$9518_form_=null;V.dispatchEvent("ready")},SsH=function(V){var D=V.JSC$9518_iframe_;
D&&(D.onreadystatechange=null,D.onload=null,D.onerror=null,V.iframesForDisposal_.push(D));V.iframeDisposalTimer_&&(clearTimeout(V.iframeDisposalTimer_),V.iframeDisposalTimer_=null);_.rf?V.iframeDisposalTimer_=setTimeout(V.disposeIframes_.bind(V),2E3):V.disposeIframes_();V.JSC$9518_iframe_=null;V.iframeName_=null};
x9.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var V=this.iframesForDisposal_.pop();_.ZC(V)}};
var $Zl=function(V){V.JSC$9518_form_&&V.JSC$9518_form_==MW&&_.kN(V.JSC$9518_form_)},hb=function(V){return V.JSC$9518_iframe_?boF(V.JSC$9518_iframe_).getElementById(V.iframeName_+"_inner"):null};
x9.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9518_active_){var V=this.JSC$9518_iframe_?boF(hb(this)):null;V&&!ze(V,"documentUri")?(_.ZU(hb(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?UD(this,3):UD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.VU=function(V){return V=="\r"||V=="\n"||V==" "||V=="\t"};var WR6;_.D7=function(V){this.errorMessage_=null;this.result_=[];this.JSC$9520_buffer_="";this.stack_=[];this.JSC$9520_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!V||!V.deliverMessageAsRawString)};
WR6={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};_.D7.prototype.isInputValid=function(){return this.streamState_!=3};
_.D7.prototype.done=function(){return this.streamState_===2};
var ff=function(V,D,f){V.streamState_=3;V.errorMessage_="The stream is broken @"+V.JSC$9520_pos_+"/"+f+". With input:\n"+D;throw Error(V.errorMessage_);};
_.D7.prototype.acceptsBinaryInput=function(){return!1};
_.D7.prototype.parse=function(V){function D(){for(;G<V.length;)if(_.VU(V[G]))G++,J.JSC$9520_pos_++;else break;return G<y}
function f(){for(var k;;){k=V[G++];if(!k)break;J.JSC$9520_pos_++;switch(J.state_){case T.INIT:k==="{"?J.state_=T.OBJECT_OPEN:k==="["?J.state_=T.ARRAY_OPEN:_.VU(k)||ff(J,V,G);continue;case T.KEY_START:case T.OBJECT_OPEN:if(_.VU(k))continue;if(J.state_===T.KEY_START)H.push(T.KEY_END);else if(k==="}"){t("{}");J.state_=n();continue}else H.push(T.OBJECT_END);k==='"'?J.state_=T.STRING:ff(J,V,G);continue;case T.KEY_END:case T.OBJECT_END:if(_.VU(k))continue;k===":"?(J.state_===T.OBJECT_END&&(H.push(T.OBJECT_END),
J.depth_++),J.state_=T.VALUE):k==="}"?(J.depth_--,t(),J.state_=n()):k===","?(J.state_===T.OBJECT_END&&H.push(T.OBJECT_END),J.state_=T.KEY_START):ff(J,V,G);continue;case T.ARRAY_OPEN:case T.VALUE:if(_.VU(k))continue;if(J.state_===T.ARRAY_OPEN)if(J.depth_++,J.state_=T.VALUE,k==="]"){J.depth_--;if(J.depth_===0){J.state_=T.ARRAY_END;return}t("[]");J.state_=n();continue}else H.push(T.ARRAY_END);k==='"'?J.state_=T.STRING:k==="{"?J.state_=T.OBJECT_OPEN:k==="["?J.state_=T.ARRAY_OPEN:k==="t"?J.state_=T.TRUE1:
k==="f"?J.state_=T.FALSE1:k==="n"?J.state_=T.NULL1:k!=="-"&&("0123456789".indexOf(k)!==-1?J.state_=T.NUM_DIGIT:ff(J,V,G));continue;case T.ARRAY_END:if(k===",")H.push(T.ARRAY_END),J.state_=T.VALUE,J.depth_===1&&(l=G);else if(k==="]"){J.depth_--;if(J.depth_===0)return;t();J.state_=n()}else if(_.VU(k))continue;else ff(J,V,G);continue;case T.STRING:var d=G;a:for(;;){for(;J.unicodeCount_>0;)if(k=V[G++],J.unicodeCount_===4?J.unicodeCount_=0:J.unicodeCount_++,!k)break a;if(k==='"'&&!J.slashed_){J.state_=
n();break}if(k==="\\"&&!J.slashed_&&(J.slashed_=!0,k=V[G++],!k))break;if(J.slashed_)if(J.slashed_=!1,k==="u"&&(J.unicodeCount_=1),k=V[G++])continue;else break;Q.lastIndex=G;k=Q.exec(V);if(!k){G=V.length+1;break}G=k.index+1;k=V[k.index];if(!k)break}J.JSC$9520_pos_+=G-d;continue;case T.TRUE1:if(!k)continue;k==="r"?J.state_=T.TRUE2:ff(J,V,G);continue;case T.TRUE2:if(!k)continue;k==="u"?J.state_=T.TRUE3:ff(J,V,G);continue;case T.TRUE3:if(!k)continue;k==="e"?J.state_=n():ff(J,V,G);continue;case T.FALSE1:if(!k)continue;
k==="a"?J.state_=T.FALSE2:ff(J,V,G);continue;case T.FALSE2:if(!k)continue;k==="l"?J.state_=T.FALSE3:ff(J,V,G);continue;case T.FALSE3:if(!k)continue;k==="s"?J.state_=T.FALSE4:ff(J,V,G);continue;case T.FALSE4:if(!k)continue;k==="e"?J.state_=n():ff(J,V,G);continue;case T.NULL1:if(!k)continue;k==="u"?J.state_=T.NULL2:ff(J,V,G);continue;case T.NULL2:if(!k)continue;k==="l"?J.state_=T.NULL3:ff(J,V,G);continue;case T.NULL3:if(!k)continue;k==="l"?J.state_=n():ff(J,V,G);continue;case T.NUM_DECIMAL_POINT:k===
"."?J.state_=T.NUM_DIGIT:ff(J,V,G);continue;case T.NUM_DIGIT:if("0123456789.eE+-".indexOf(k)!==-1)continue;else G--,J.JSC$9520_pos_--,J.state_=n();continue;default:ff(J,V,G)}}}
function n(){var k=H.pop();return k!=null?k:T.VALUE}
function t(k){J.depth_>1||(k||(k=l===-1?J.JSC$9520_buffer_+V.substring(Z,G):V.substring(l,G)),J.deliverMessageAsRawString_?J.result_.push(k):J.result_.push(JSON.parse(k)),l=G)}
for(var J=this,H=J.stack_,Q=J.stringInputPattern_,T=WR6,y=V.length,Z=0,l=-1,G=0;G<y;)switch(J.streamState_){case 3:return ff(J,V,G),null;case 2:return D()&&ff(J,V,G),null;case 0:if(D()){var F=V[G++];J.JSC$9520_pos_++;if(F==="["){J.streamState_=1;Z=G;J.state_=T.ARRAY_OPEN;continue}else ff(J,V,G)}return null;case 1:return f(),J.depth_===0&&J.state_==T.ARRAY_END?(J.streamState_=2,J.JSC$9520_buffer_=V.substring(G)):J.JSC$9520_buffer_=l===-1?J.JSC$9520_buffer_+V.substring(Z):V.substring(l),J.result_.length>
0?(F=J.result_,J.result_=[],F):null}return null};_.fg(_.te,gO);P8.prototype.getValue=function(){return this.JSC$9528_value_};
P8.prototype.clone=function(){return new P8(this.JSC$9528_key_,this.JSC$9528_value_)};var nf=function(V){this.nodes_=[];if(V)a:{if(V instanceof nf){var D=V.getKeys();V=V.getValues();if(this.getCount()<=0){for(var f=this.nodes_,n=0;n<D.length;n++)f.push(new P8(D[n],V[n]));break a}}else D=_.sB.getKeys(V),V=_.sB.getValues(V);for(f=0;f<D.length;f++)this.insert(D[f],V[f])}};
_.P=nf.prototype;_.P.insert=function(V,D){var f=this.nodes_;f.push(new P8(V,D));V=f.length-1;D=this.nodes_;for(f=D[V];V>0;){var n=V-1>>1;if(D[n].JSC$9528_key_>f.JSC$9528_key_)D[V]=D[n],V=n;else break}D[V]=f};
_.P.remove=function(){var V=this.nodes_,D=V.length,f=V[0];if(!(D<=0)){if(D==1)V.length=0;else{V[0]=V.pop();V=0;D=this.nodes_;for(var n=D.length,t=D[V];V<n>>1;){var J=V*2+1,H=V*2+2;J=H<n&&D[H].JSC$9528_key_<D[J].JSC$9528_key_?H:J;if(D[J].JSC$9528_key_>t.JSC$9528_key_)break;D[V]=D[J];V=J}D[V]=t}return f.getValue()}};
_.P.peek=function(){var V=this.nodes_;if(V.length!=0)return V[0].getValue()};
_.P.getValues=function(){for(var V=this.nodes_,D=[],f=V.length,n=0;n<f;n++)D.push(V[n].getValue());return D};
_.P.getKeys=function(){for(var V=this.nodes_,D=[],f=V.length,n=0;n<f;n++)D.push(V[n].JSC$9528_key_);return D};
_.P.containsValue=function(V){return this.nodes_.some(function(D){return D.getValue()==V})};
_.P.containsKey=function(V){return this.nodes_.some(function(D){return D.JSC$9528_key_==V})};
_.P.clone=function(){return new nf(this)};
_.P.getCount=function(){return this.nodes_.length};
_.P.isEmpty=function(){return this.nodes_.length===0};
_.P.clear=function(){this.nodes_.length=0};_.tV=function(V,D){this.JSC$9534_map_={};this.JSC$9534_keys_=[];this.version_=this.size=0;var f=arguments.length;if(f>1){if(f%2)throw Error("pa");for(var n=0;n<f;n+=2)this.set(arguments[n],arguments[n+1])}else V&&this.addAll(V)};
_.P=_.tV.prototype;_.P.getCount=function(){return this.size};
_.P.getValues=function(){PY(this);for(var V=[],D=0;D<this.JSC$9534_keys_.length;D++)V.push(this.JSC$9534_map_[this.JSC$9534_keys_[D]]);return V};
_.P.getKeys=function(){PY(this);return this.JSC$9534_keys_.concat()};
_.P.containsKey=function(V){return this.has(V)};
_.P.has=function(V){return oF(this.JSC$9534_map_,V)};
_.P.containsValue=function(V){for(var D=0;D<this.JSC$9534_keys_.length;D++){var f=this.JSC$9534_keys_[D];if(oF(this.JSC$9534_map_,f)&&this.JSC$9534_map_[f]==V)return!0}return!1};
_.P.equals=function(V,D){if(this===V)return!0;if(this.size!=V.getCount())return!1;D=D||poL;PY(this);for(var f,n=0;f=this.JSC$9534_keys_[n];n++)if(!D(this.get(f),V.get(f)))return!1;return!0};
var poL=function(V,D){return V===D};
_.tV.prototype.isEmpty=function(){return this.size==0};
_.tV.prototype.clear=function(){this.JSC$9534_map_={};this.version_=this.size=this.JSC$9534_keys_.length=0};
_.tV.prototype.remove=function(V){return this.delete(V)};
_.tV.prototype.delete=function(V){return oF(this.JSC$9534_map_,V)?(delete this.JSC$9534_map_[V],--this.size,this.version_++,this.JSC$9534_keys_.length>2*this.size&&PY(this),!0):!1};
var PY=function(V){if(V.size!=V.JSC$9534_keys_.length){for(var D=0,f=0;D<V.JSC$9534_keys_.length;){var n=V.JSC$9534_keys_[D];oF(V.JSC$9534_map_,n)&&(V.JSC$9534_keys_[f++]=n);D++}V.JSC$9534_keys_.length=f}if(V.size!=V.JSC$9534_keys_.length){D={};for(n=f=0;f<V.JSC$9534_keys_.length;){var t=V.JSC$9534_keys_[f];oF(D,t)||(V.JSC$9534_keys_[n++]=t,D[t]=1);f++}V.JSC$9534_keys_.length=n}};
_.P=_.tV.prototype;_.P.get=function(V,D){return oF(this.JSC$9534_map_,V)?this.JSC$9534_map_[V]:D};
_.P.set=function(V,D){oF(this.JSC$9534_map_,V)||(this.size+=1,this.JSC$9534_keys_.push(V),this.version_++);this.JSC$9534_map_[V]=D};
_.P.addAll=function(V){if(V instanceof _.tV)for(var D=V.getKeys(),f=0;f<D.length;f++)this.set(D[f],V.get(D[f]));else for(D in V)this.set(D,V[D])};
_.P.forEach=function(V,D){for(var f=this.getKeys(),n=0;n<f.length;n++){var t=f[n],J=this.get(t);V.call(D,J,t,this)}};
_.P.clone=function(){return new _.tV(this)};
_.P.transpose=function(){for(var V=new _.tV,D=0;D<this.JSC$9534_keys_.length;D++){var f=this.JSC$9534_keys_[D];V.set(this.JSC$9534_map_[f],f)}return V};
_.P.keys=function(){return ldU(this.__iterator__(!0)).toEs6()};
_.P.values=function(){return ldU(this.__iterator__(!1)).toEs6()};
_.P.entries=function(){var V=this;return z0L(this.keys(),function(D){return[D,V.get(D)]})};
_.P.__iterator__=function(V){PY(this);var D=0,f=this.version_,n=this,t=new VS;t.next=function(){if(f!=n.version_)throw Error("ue");if(D>=n.JSC$9534_keys_.length)return DB;var J=n.JSC$9534_keys_[D++];return fn(V?J:n.JSC$9534_map_[J])};
return t};
var oF=function(V,D){return Object.prototype.hasOwnProperty.call(V,D)};var Ixp=function(){this.JSC$9537_map_=new _.tV;this.JSC$9537_head_=new LRp("");this.JSC$9537_head_.next=this.JSC$9537_head_.prev=this.JSC$9537_head_},ORE=function(V,D){if(D=V.JSC$9537_map_.get(D))D.remove(),V.insert_(D);
return D};
_.P=Ixp.prototype;_.P.get=function(V,D){return(V=ORE(this,V))?V.value:D};
_.P.set=function(V,D){var f=ORE(this,V);f?f.value=D:(f=new LRp(V,D),this.JSC$9537_map_.set(V,f),this.insert_(f))};
_.P.peek=function(){return this.JSC$9537_head_.next.value};
_.P.shift=function(){return xZV(this,this.JSC$9537_head_.next)};
_.P.pop=function(){return xZV(this,this.JSC$9537_head_.prev)};
_.P.remove=function(V){return(V=this.JSC$9537_map_.get(V))?(this.removeNode(V),!0):!1};
_.P.removeNode=function(V){V.remove();this.JSC$9537_map_.remove(V.key)};
_.P.getCount=function(){return this.JSC$9537_map_.getCount()};
_.P.isEmpty=function(){return this.JSC$9537_map_.isEmpty()};
_.P.getKeys=function(){return this.map(function(V,D){return D})};
_.P.getValues=function(){return this.map(function(V){return V})};
_.P.contains=function(V){return this.some(function(D){return D==V})};
_.P.containsKey=function(V){return this.JSC$9537_map_.containsKey(V)};
_.P.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9537_head_.prev)};
_.P.forEach=function(V,D){for(var f=this.JSC$9537_head_.next;f!=this.JSC$9537_head_;f=f.next)V.call(D,f.value,f.key,this)};
_.P.map=function(V,D){for(var f=[],n=this.JSC$9537_head_.next;n!=this.JSC$9537_head_;n=n.next)f.push(V.call(D,n.value,n.key,this));return f};
_.P.some=function(V,D){for(var f=this.JSC$9537_head_.next;f!=this.JSC$9537_head_;f=f.next)if(V.call(D,f.value,f.key,this))return!0;return!1};
_.P.every=function(V,D){for(var f=this.JSC$9537_head_.next;f!=this.JSC$9537_head_;f=f.next)if(!V.call(D,f.value,f.key,this))return!1;return!0};
_.P.insert_=function(V){V.next=this.JSC$9537_head_.next;V.prev=this.JSC$9537_head_;this.JSC$9537_head_.next=V;for(V.next.prev=V;this.getCount()>100;)this.removeNode(this.JSC$9537_head_.prev)};
var xZV=function(V,D){V.JSC$9537_head_!=D&&V.removeNode(D);return D.value},LRp=function(V,D){this.key=V;
this.value=D};
LRp.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var MLU=function(){nf.apply(this,arguments)};
_.v(MLU,nf);MLU.prototype.enqueue=function(V,D){this.insert(V,D)};var hLH=function(){var V=Error();V.name="SecurityError";throw V;},BFx=function(){return{get opener(){return null},
get closed(){return!0},get location(){hLH()},get document(){hLH()},postMessage:function(){},
close:function(){},
focus:function(){}}};var q5Z={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 AxR={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 UZl={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(AxR).join("|");var VY6=function(){function V(Q){Q.substr(-1)!==";"&&(Q+=";");return H(Q)}
for(var D=Object.keys(UZl).sort(EvY),f=Object.keys(AxR).sort(EvY),n=0,t=0;n<f.length;n++)D[t]===f[n]?(f[n]+=";?",t++):f[n]+=";";var J=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),H=a1R();return function(Q){return String(Q).replace(J,V)}}();/*

 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 DAF={};var fvr=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"),nuF=/[\\&]/,tYr=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),PUr=RegExp('[&<>"]',"g"),oup=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),JAu=function(V){return V.charCodeAt(0)===92?V.charAt(1):VY6(V)},rAU=function(V){return nuF.test(V)?V.replace(tYr,JAu):V},HIY=function(V){try{var D,f="";
if(typeof t!=="string"){var n=t;var t=";/?:@&=+$,-_.!~*'()#"}typeof n==="undefined"&&(n=!0);var J,H=DAF[t];if(H)var Q=H;else{H=DAF[t]=[];for(J=0;J<128;J++){var T=String.fromCharCode(J);/^[0-9a-z]$/i.test(T)?H.push(T):H.push("%"+("0"+J.toString(16).toUpperCase()).slice(-2))}for(J=0;J<t.length;J++)H[t.charCodeAt(J)]=t[J];Q=H}var y=0;for(D=V.length;y<D;y++){var Z=V.charCodeAt(y);if(n&&Z===37&&y+2<D&&/^[0-9a-f]{2}$/i.test(V.slice(y+1,y+3)))f+=V.slice(y,y+3),y+=2;else if(Z<128)f+=Q[Z];else if(Z>=55296&&
Z<=57343){if(Z>=55296&&Z<=56319&&y+1<D){var l=V.charCodeAt(y+1);if(l>=56320&&l<=57343){f+=encodeURIComponent(V[y]+V[y+1]);y++;continue}}f+="%EF%BF%BD"}else f+=encodeURIComponent(V[y])}return f}catch(G){return V}},wtU=function(V){switch(V){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return V}},JV=function(V,D){return PUr.test(V)?D?V.replace(oup,wtU):V.replace(PUr,wtU):V};/*

 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 rE;if(String.fromCodePoint)rE=function(V){try{return String.fromCodePoint(V)}catch(D){if(D instanceof RangeError)return String.fromCharCode(65533);throw D;}};
else{var QUH=String.fromCharCode,TIF=Math.floor;rE=function(){var V=[],D=-1,f=arguments.length;if(!f)return"";for(var n="";++D<f;){var t=Number(arguments[D]);if(!isFinite(t)||t<0||t>1114111||TIF(t)!==t)return String.fromCharCode(65533);if(t<=65535)V.push(t);else{t-=65536;var J=(t>>10)+55296;t=t%1024+56320;V.push(J,t)}if(D+1===f||V.length>16384)n+=QUH.apply(null,V),V.length=0}return n}};var bIE=function(V){this.root=this.current=V;this.entering=!0};
bIE.prototype.next=function(){var V=this.current,D=this.entering;if(V===null)return null;a:switch(V._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 f=!0;break a;default:f=!1}D&&f?V._firstChild?(this.current=V._firstChild,this.entering=!0):this.entering=!1:V===this.root?this.current=null:V._next===null?(this.current=
V._parent,this.entering=!1):(this.current=V._next,this.entering=!0);return{entering:D,node:V}};
var H8=function(V,D){this._type=V;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=D;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};
H8.prototype.appendChild=function(V){HY(V);V._parent=this;this._lastChild?(this._lastChild._next=V,V._prev=this._lastChild):this._firstChild=V;this._lastChild=V};
var HY=function(V){V._prev?V._prev._next=V._next:V._parent&&(V._parent._firstChild=V._next);V._next?V._next._prev=V._prev:V._parent&&(V._parent._lastChild=V._prev);V._parent=null;V._next=null;V._prev=null},K8u=function(V,D){HY(D);
D._next=V._next;D._next&&(D._next._prev=D);D._prev=V;V._next=D;D._parent=V._parent;D._next||(D._parent._lastChild=D)};
H8.prototype.insertBefore=function(V){HY(V);V._prev=this._prev;V._prev&&(V._prev._next=V);V._next=this;this._prev=V;V._parent=this._parent;V._prev||(V._parent._firstChild=V)};
_.IG.Object.defineProperties(H8.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(V){this._literal=V}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(V){this._destination=V}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(V){this._title=V}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(V){this._info=V}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(V){this._level=V}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(V){this._listData.type=V}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(V){this._listData.tight=V}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(V){this._listData.start=V}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(V){this._onEnter=V}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(V){this._onExit=V}}});var Y5n=/[ \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,
$wY={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 yAF=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]/),
ZIH=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),jUE=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),lvu=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Gyo=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),eJF=/`+/,cAE=/^`+/,F8E=/\.\.\./g,gul=/--+/g,vul=/^<([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])?)*)>/,
kyE=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,sUY=/^ *(?:\n *)?/,BIV=/^[ \t\n\x0b\x0c\x0d]/,dAF=/[ \t\n\x0b\x0c\x0d]+/g,u2H=/^\s/,NIV=/ *$/,mAY=/^ */,zJU=/^ *(?:\n|$)/,RJl=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),CUp=/^[^\n`\[\]\\!<&*_'"]+/m,wE=function(V){var D=new H8("text");D._literal=V;return D},QU=function(V){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=V||{}};
QU.prototype.match=function(V){V=V.exec(this.subject.slice(this.pos));if(V===null)return null;this.pos+=V.index+V[0].length;return V[0]};
QU.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var TT=function(V){V.match(sUY);return!0},qru=function(V,D,f){var n=0;
var t=V.pos;if(D===39||D===34)n++,V.pos++;else for(;V.peek()===D;)n++,V.pos++;if(n===0)n=null;else{var J=t===0?"\n":V.subject.charAt(t-1);var H=V.peek();H=H===-1?"\n":rE(H);var Q=u2H.test(H);H=yAF.test(H);var T=u2H.test(J);var y=yAF.test(J);J=!Q&&!(H&&!T&&!y);Q=!T&&!(y&&!Q&&!H);D===95?(T=J&&(!Q||y),H=Q&&(!J||H)):(T=D===39||D===34?J&&!Q:J,H=Q);V.pos=t;n={numdelims:n,can_open:T,can_close:H}}if(!n)return!1;t=n.numdelims;H=V.pos;V.pos+=t;H=D===39?"\u2019":D===34?"\u201c":V.subject.slice(H,V.pos);H=wE(H);
f.appendChild(H);V.delimiters={cc:D,numdelims:t,origdelims:t,node:H,previous:V.delimiters,next:null,can_open:n.can_open,can_close:n.can_close};V.delimiters.previous!==null&&(V.delimiters.previous.next=V.delimiters);return!0},XtE=function(V,D){D.previous!==null&&(D.previous.next=D.next);
D.next===null?V.delimiters=D.previous:D.next.previous=D.previous},Euo=function(V,D){var f,n,t=[],J=!1;
t[95]=D;t[42]=D;t[39]=D;t[34]=D;for(f=V.delimiters;f!==null&&f.previous!==D;)f=f.previous;for(;f!==null;){var H=f.cc;if(f.can_close){var Q=f.previous;for(n=!1;Q!==null&&Q!==D&&Q!==t[H];){J=(f.can_open||Q.can_close)&&(Q.origdelims+f.origdelims)%3===0;if(Q.cc===f.cc&&Q.can_open&&!J){n=!0;break}Q=Q.previous}var T=f;if(H===42||H===95)if(n){var y=f.numdelims>=2&&Q.numdelims>=2?2:1;var Z=Q.node;var l=f.node;Q.numdelims-=y;f.numdelims-=y;Z._literal=Z._literal.slice(0,Z._literal.length-y);l._literal=l._literal.slice(0,
l._literal.length-y);var G=new H8(y===1?"emph":"strong");for(y=Z._next;y&&y!==l;){var F=y._next;HY(y);G.appendChild(y);y=F}K8u(Z,G);y=Q;F=f;y.next!==F&&(y.next=F,F.previous=y);Q.numdelims===0&&(HY(Z),XtE(V,Q));f.numdelims===0&&(HY(l),Q=f.next,XtE(V,f),f=Q)}else f=f.next;else H===39?(f.node._literal="\u2019",n&&(Q.node._literal="\u2018"),f=f.next):H===34&&(f.node._literal="\u201d",n&&(Q.node.literal="\u201c"),f=f.next);n||J||(t[H]=T.previous,T.can_open||XtE(V,T))}else f=f.next}for(;V.delimiters!==
null&&V.delimiters!==D;)XtE(V,V.delimiters)},AAY=function(V){V=V.match(ZIH);
return V===null?null:rAU(V.substr(1,V.length-2))},avH=function(V){var D=V.match(jUE);
if(D===null){D=V.pos;for(var f=0,n;(n=V.peek())!==-1;)if(n===92)V.pos+=1,V.peek()!==-1&&(V.pos+=1);else if(n===40)V.pos+=1,f+=1;else if(n===41)if(f<1)break;else V.pos+=1,--f;else if(BIV.exec(rE(n))!==null)break;else V.pos+=1;D=V.subject.substr(D,V.pos-D);return HIY(rAU(D))}return HIY(rAU(D.substr(1,D.length-2)))},YrP=function(V){V=V.match(RJl);
return V===null||V.length>1001?0:V.length},$Ao=function(V,D,f,n){V.brackets!==null&&(V.brackets.bracketAfter=!0);
V.brackets={node:D,previous:V.brackets,previousDelimiter:V.delimiters,index:f,image:n,active:!0}},iIo=function(V,D){var f;
return(f=V.match(CUp))?(V.options.smart?D.appendChild(wE(f.replace(F8E,"\u2026").replace(gul,function(n){var t=0,J=0;n.length%3===0?J=n.length/3:n.length%2===0?t=n.length/2:n.length%3===2?(t=1,J=(n.length-2)/3):(t=2,J=(n.length-4)/3);n="";var H;for(H=0;H<J;H++)n+="\u2014";for(H=0;H<t;H++)n+="\u2013";return n}))):D.appendChild(wE(f)),!0):!1},SrY=function(V,D,f){V.subject=D;
V.pos=0;D=V.pos;var n=YrP(V);if(n===0)return 0;var t=V.subject.substr(0,n);if(V.peek()===58)V.pos++;else return V.pos=D,0;TT(V);n=avH(V);if(n===null||n.length===0)return V.pos=D,0;var J=V.pos;TT(V);var H=AAY(V);H===null&&(H="",V.pos=J);var Q=!0;V.match(zJU)===null&&(H===""?Q=!1:(H="",V.pos=J,Q=V.match(zJU)!==null));if(!Q)return V.pos=D,0;t=iYn(t);if(t==="")return V.pos=D,0;f[t]||(f[t]={destination:n,title:H});return V.pos-D},W8P=function(V,D){var f,n=V.peek();
if(n===-1)return!1;switch(n){case 10:V.pos+=1;if((f=D._lastChild)&&f.type==="text"&&f._literal[f._literal.length-1]===" "){var t=f._literal[f._literal.length-2]===" ";f._literal=f._literal.replace(NIV,"");D.appendChild(new H8(t?"linebreak":"softbreak"))}else D.appendChild(new H8("softbreak"));V.match(mAY);f=!0;break;case 92:f=V.subject;V.pos+=1;V.peek()===10?(V.pos+=1,f=new H8("linebreak"),D.appendChild(f)):lvu.test(f.charAt(V.pos))?(D.appendChild(wE(f.charAt(V.pos))),V.pos+=1):D.appendChild(wE("\\"));
f=!0;break;case 96:a:if(f=V.match(cAE),f===null)f=!1;else{t=V.pos;for(var J;(J=V.match(eJF))!==null;)if(J===f){J=new H8("code");J._literal=V.subject.slice(t,V.pos-f.length).trim().replace(dAF," ");D.appendChild(J);f=!0;break a}V.pos=t;D.appendChild(wE(f));f=!0}break;case 42:case 95:f=qru(V,n,D);break;case 39:case 34:f=V.options.smart&&qru(V,n,D);break;case 91:f=V.pos;V.pos+=1;t=wE("[");D.appendChild(t);$Ao(V,t,f,!1);f=!0;break;case 33:f=V.pos;V.pos+=1;V.peek()===91?(V.pos+=1,t=wE("!["),D.appendChild(t),
$Ao(V,t,f+1,!0)):D.appendChild(wE("!"));f=!0;break;case 93:var H,Q=!1,T;V.pos+=1;var y=V.pos;t=V.brackets;if(t===null)D.appendChild(wE("]"));else if(t.active){f=t.image;var Z=V.pos;V.peek()===40&&(V.pos++,TT(V)&&(J=avH(V))!==null&&TT(V)&&(BIV.test(V.subject.charAt(V.pos-1))&&(H=AAY(V)),1)&&TT(V)&&V.peek()===41?(V.pos+=1,Q=!0):V.pos=Z);if(!Q){var l=V.pos,G=YrP(V);G>2?T=V.subject.slice(l,l+G):t.bracketAfter||(T=V.subject.slice(t.index,y));G===0&&(V.pos=Z);T&&(T=V.refmap[iYn(T)])&&(J=T.destination,H=
T.title,Q=!0)}if(Q){y=new H8(f?"image":"link");y._destination=J;y._title=H||"";for(J=t.node._next;J;)H=J._next,HY(J),y.appendChild(J),J=H;D.appendChild(y);Euo(V,t.previousDelimiter);V.brackets=V.brackets.previous;HY(t.node);if(!f)for(t=V.brackets;t!==null;)t.image||(t.active=!1),t=t.previous}else V.brackets=V.brackets.previous,V.pos=y,D.appendChild(wE("]"))}else D.appendChild(wE("]")),V.brackets=V.brackets.previous;f=!0;break;case 60:(f=V.match(vul))?(f=f.slice(1,f.length-1),t=new H8("link"),t._destination=
HIY("mailto:"+f),t._title="",t.appendChild(wE(f)),D.appendChild(t),f=!0):(f=V.match(kyE))?(f=f.slice(1,f.length-1),t=new H8("link"),t._destination=HIY(f),t._title="",t.appendChild(wE(f)),D.appendChild(t),f=!0):f=!1;f||(f=V.match(fvr),f===null?f=!1:(t=new H8("html_inline"),t._literal=f,D.appendChild(t),f=!0));break;case 38:(f=V.match(Gyo))?(D.appendChild(wE(VY6(f))),f=!0):f=!1;break;default:f=iIo(V,D)}f||(V.pos+=1,D.appendChild(wE(rE(n))));return!0};
QU.prototype.parseInlines=function(V){this.subject=V._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;W8P(this,V););V._string_content=null;Euo(this,null)};
QU.prototype.parse=QU.prototype.parseInlines;var ptp=[/./,/^<(?: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")],L8p=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],IvF=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,OIV=/^[#`~*+_=<>0-9-\|]|\|/,xAr=/[^ \t\f\v\r\n]/,MYl=/^[*+-]/,hJo=/^(\d{1,9})([.)])/,UAF=/^#{1,6}(?:[ \t]+|$)/,VDl=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,D3F=/^(?:`{3,}|~{3,})(?= *$)/,fbu=/^(?:=+|-+)[ \t]*$/,ntp=/\r\n|\n|\r/,W$Y=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,pV9=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,tDl={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(V){return V!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(V,D){for(V=D._firstChild;V;){if(S5F(V)&&V._next){D._listData.tight=!1;break}for(var f=V._firstChild;f;){if(S5F(f)&&(V._next||f._next)){D._listData.tight=!1;break}f=f._next}V=V._next}},
canContain:function(V){return V==="item"},
acceptsLines:!1},block_quote:{continue:function(V){var D=V.currentLine;if(V.indented||Je(D,V.nextNonspace)!==62)return 1;bH(V);Kf(V,1,!1);ob(Je(D,V.offset))&&Kf(V,1,!0);return 0},
finalize:function(){},
canContain:function(V){return V!=="item"},
acceptsLines:!1},item:{continue:function(V,D){if(V.blank){if(D._firstChild==null)return 1;bH(V)}else if(V.indent>=D._listData.markerOffset+D._listData.padding)Kf(V,D._listData.markerOffset+D._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(V){return V!=="item"&&!L$F(V)},
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(V,D){var f=V.currentLine,n=V.indent;if(D._isFenced){if((n=n<=3&&f.charAt(V.nextNonspace)===D._fenceChar&&f.slice(V.nextNonspace).match(D3F))&&n[0].length>=D._fenceLength)return V.finalize(D,V.lineNumber),2;for(D=D._fenceOffset;D>0&&ob(Je(f,V.offset));)Kf(V,1,!0),D--}else if(n>=4)Kf(V,4,!0);else if(V.blank)bH(V);else return 1;return 0},
finalize:function(V,D){if(D._isFenced){var f=D._string_content,n=f.indexOf("\n");V=f.slice(0,n);f=f.slice(n+1);D.info=rAU(V.trim());D._literal=f}else D._literal=D._string_content.replace(/(\n *)+$/,"\n");D._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(V,D){return!V.blank||D._htmlBlockType!==6&&D._htmlBlockType!==7?0:1},
finalize:function(V,D){D._literal=D._string_content.replace(/(\n *)+$/,"");D._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(V){return V.blank?1:0},
finalize:function(V,D){for(var f,n=!1;Je(D._string_content,0)===91&&(f=SrY(V.inlineParser,D._string_content,V.refmap));)D._string_content=D._string_content.slice(f),n=!0;n&&!xAr.test(D._string_content)&&HY(D)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(V){return r2(V.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(V){return V=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(V,D){if(!D._rowIsDelimiter){V=D._isHeader?"th":"td";for(var f=D._parent._tableColumns,n=D._string_content,t=0,J="",H,Q=D._sourcepos[0][0];t<n.length;){switch(n[t]){case "|":H&&(H._string_content=J.trim(),J="",H=null,f--,f<=0&&(t=n.length));break;default:if(!H){H=new H8(V,[[Q,t],[Q,t]]);var T=D._parent._columnAlignment,y=D._parent._tableColumns-f;T&&y<=T.length&&y>=0&&(H._alignment=T[y]);D.appendChild(H)}J+=n[t];H._sourcepos[1][1]=t}t++}H&&(H._string_content=J.trim());D._string_content=
""}},
canContain:function(V){return V!=="row"},
acceptsLines:!1}},PSp=[function(V){if(V.indented||Je(V.currentLine,V.nextNonspace)!==62)return 0;bH(V);Kf(V,1,!1);ob(Je(V.currentLine,V.offset))&&Kf(V,1,!0);yU(V);V.addChild("block_quote",V.nextNonspace);return 1},
function(V){var D;if(!V.indented&&(D=V.currentLine.slice(V.nextNonspace).match(UAF))){bH(V);Kf(V,D[0].length,!1);yU(V);var f=V.addChild("heading",V.nextNonspace);f.level=D[0].trim().length;f._string_content=V.currentLine.slice(V.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Kf(V,V.currentLine.length-V.offset);return 2}return 0},
function(V){var D;if(!V.indented&&(D=V.currentLine.slice(V.nextNonspace).match(VDl))){var f=D[0].length;yU(V);var n=V.addChild("code_block",V.nextNonspace);n._isFenced=!0;n._fenceLength=f;n._fenceChar=D[0][0];n._fenceOffset=V.indent;bH(V);Kf(V,f,!1);return 2}return 0},
function(V,D){if(!V.indented&&Je(V.currentLine,V.nextNonspace)===60){var f=V.currentLine.slice(V.nextNonspace),n;for(n=1;n<=7;n++)if(ptp[n].test(f)&&(n<7||D.type!=="paragraph"))return yU(V),V.addChild("html_block",V.offset)._htmlBlockType=n,2}return 0},
function(V,D){var f;if(!V.indented&&D.type==="paragraph"&&(f=V.currentLine.slice(V.nextNonspace).match(fbu))){yU(V);var n=new H8("heading",D.sourcepos);n.level=f[0][0]==="="?1:2;n._string_content=D._string_content;K8u(D,n);HY(D);V.tip=n;Kf(V,V.currentLine.length-V.offset,!1);return 2}return 0},
function(V){return!V.indented&&IvF.test(V.currentLine.slice(V.nextNonspace))?(yU(V),V.addChild("thematic_break",V.nextNonspace),Kf(V,V.currentLine.length-V.offset,!1),2):0},
function(V,D){var f,n;if(!(n=V.indented&&D.type!=="list")){a:{var t=D,J=V.currentLine.slice(V.nextNonspace);n={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:V.indent};if(f=J.match(MYl))n.type="bullet",n.bulletChar=f[0][0];else{if(!(f=J.match(hJo))||t.type==="paragraph"&&f[1]!=="1"){f=null;break a}n.type="ordered";n.start=parseInt(f[1],10);n.delimiter=f[2]}var H=Je(V.currentLine,V.nextNonspace+f[0].length);if(H!==-1&&H!==9&&H!==32||t.type==="paragraph"&&!V.currentLine.slice(V.nextNonspace+
f[0].length).match(xAr))f=null;else{bH(V);Kf(V,f[0].length,!0);t=V.column;J=V.offset;do Kf(V,1,!0),H=Je(V.currentLine,V.offset);while(V.column-t<5&&ob(H));H=Je(V.currentLine,V.offset)===-1;var Q=V.column-t;Q>=5||Q<1||H?(n.padding=f[0].length+1,V.column=t,V.offset=J,ob(Je(V.currentLine,V.offset))&&Kf(V,1,!0)):n.padding=f[0].length+Q;f=n}}n=!f}if(n)return 0;yU(V);(n=V.tip.type!=="list")||(D=D._listData,n=!(D.type===f.type&&D.delimiter===f.delimiter&&D.bulletChar===f.bulletChar));n&&(D=V.addChild("list",
V.nextNonspace),D._listData=f);D=V.addChild("item",V.nextNonspace);D._listData=f;return 1},
function(V){var D;return((D=V.options.shouldParseIndentAsCodeBlock)!=null?D:1)&&V.indented&&V.tip.type!=="paragraph"&&!V.blank?(Kf(V,4,!0),yU(V),V.addChild("code_block",V.offset),2):0},
function(V,D){var f=r2(V.currentLine),n=r2(V.lookahead);if(f!==0&&n<0&&Math.abs(f)==Math.abs(n)&&!L$F(D.type)){yU(V);D=V.addChild("table",V.nextNonspace);D._tableRows=1;D._tableColumns=Math.abs(f);f=V.lookahead;if(pV9.test(f)){n=[];for(var t=0,J=!1,H=0,Q=void 0;t<f.length;){var T=H>=3;switch(f[t]){case "-":H++;break;case "|":J&&(n.push(Q),Q=void 0,H=0);J=!0;break;case ":":Q||T||(Q="left"),!Q&&T&&(Q="right"),Q==="left"&&T&&(Q="center")}t++}f=n}else f=void 0;D._columnAlignment=f;D=V.addChild("row",
V.nextNonspace);D._isHeader=!0;Kf(V,V.currentLine.length-V.offset,!1);D._string_content=V.currentLine;return 1}return 0},
function(V,D){if(D.type=="table"&&r2(V.currentLine)!==0){yU(V);var f=D;D=V.addChild("row",V.nextNonspace);r2(V.currentLine)<0?D._rowIsDelimiter=!0:f._tableRows+=1;Kf(V,V.currentLine.length-V.offset,!1);D._string_content=V.currentLine;return 2}return 0}],AG9=function(){var V={shouldParseIndentAsCodeBlock:!1};
V=V===void 0?{}:V;this.lastMatchedContainer=this.doc=I1c();this.refmap={};this.lastLineLength=0;this.inlineParser=new QU(V);this.options=V;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=tDl;this.blockStarts=PSp},oto=function(V){V.partiallyConsumedTab&&(V.offset+=1,V.tip._string_content+=" ".repeat(4-V.column%
4));
V.tip._string_content+=V.currentLine.slice(V.offset)+"\n"};
AG9.prototype.addChild=function(V,D){for(;!this.blocks[this.tip.type].canContain(V);)this.finalize(this.tip,this.lineNumber-1);V=new H8(V,[[this.lineNumber,D+1],[0,0]]);V._string_content="";this.tip.appendChild(V);return this.tip=V};
var yU=function(V){if(!V.allClosed){for(;V.oldtip!==V.lastMatchedContainer;){var D=V.oldtip._parent;V.finalize(V.oldtip,V.lineNumber-1);V.oldtip=D}V.allClosed=!0}},Kf=function(V,D,f){for(var n=V.currentLine,t,J;D>0&&(J=n[V.offset]);)J==="\t"?(t=4-V.column%4,f?(V.partiallyConsumedTab=t>D,t=t>D?D:t,V.column+=t,V.offset+=V.partiallyConsumedTab?0:1,D-=t):(V.partiallyConsumedTab=!1,V.column+=t,V.offset+=1,--D)):(V.partiallyConsumedTab=!1,V.offset+=1,V.column+=1,--D)},bH=function(V){V.offset=V.nextNonspace;
V.column=V.nextNonspaceColumn;V.partiallyConsumedTab=!1},J2u=function(V){for(var D=V.currentLine,f=V.offset,n=V.column,t;(t=D.charAt(f))!=="";)if(t===" ")f++,n++;
else if(t==="\t")f++,n+=4-n%4;else break;V.blank=t==="\n"||t==="\r"||t==="";V.nextNonspace=f;V.nextNonspaceColumn=n;V.indent=V.nextNonspaceColumn-V.column;V.indented=V.indent>=4};
AG9.prototype.finalize=function(V,D){var f=V._parent;V._open=!1;V.sourcepos[1]=[D,this.lastLineLength];this.blocks[V.type].finalize(this,V);this.tip=f};
AG9.prototype.parse=function(V){this.tip=this.doc=I1c();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!V)return this.doc;this.options.time&&console.time("preparing input");var D=V.split(ntp),f=D.length;V.charCodeAt(V.length-1)===10&&--f;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(V=0;V<f;V++)a:{var n=void 0,t=D[V],J=D[V+1],H=!0,Q=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;t.indexOf("\x00")!==-1&&(t=t.replace(/\0/g,"\ufffd"));this.currentLine=t;for(this.lookahead=J;(n=Q._lastChild)&&n._open;){Q=n;J2u(this);switch(this.blocks[Q.type].continue(this,Q)){case 0:break;case 1:H=!1;break;case 2:this.lastLineLength=t.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!H){Q=Q._parent;break}}this.allClosed=Q===this.oldtip;this.lastMatchedContainer=
Q;n=Q.type!=="paragraph"&&tDl[Q.type].acceptsLines;J=this.blockStarts;for(H=J.length;!n;){J2u(this);if(!this.indented&&!OIV.test(t.slice(this.nextNonspace))){bH(this);break}for(var T=0;T<H;){var y=J[T](this,Q);if(y===1){Q=this.tip;break}else if(y===2){Q=this.tip;n=!0;break}else T++}if(T===H){bH(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){yU(this);this.blank&&Q.lastChild&&(Q.lastChild._lastLineBlank=!0);n=Q.type;J=this.blank&&!(n==="block_quote"||n==="code_block"&&Q._isFenced||
n==="item"&&!Q._firstChild&&Q.sourcepos[0][0]===this.lineNumber);for(H=Q;H;)H._lastLineBlank=J,H=H._parent;this.blocks[n].acceptsLines?(oto(this),n==="html_block"&&Q._htmlBlockType>=1&&Q._htmlBlockType<=5&&L8p[Q._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(Q,this.lineNumber)):this.offset<t.length&&!this.blank&&(this.addChild("paragraph",this.offset),bH(this),oto(this))}else oto(this);this.lastLineLength=t.length}for(;this.tip;)this.finalize(this.tip,f);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");t=new bIE(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;f=t.next();)D=f.node,V=D.type,f.entering||V!=="paragraph"&&V!=="heading"&&V!=="th"&&V!="td"||this.inlineParser.parse(D);this.options.time&&console.timeEnd("inline parsing");return this.doc};OYY.prototype.render=function(V){V=new bIE(V);var D;this.buffer="";for(this.lastOut="\n";D=V.next();){var f=D.node.type;if(this[f])this[f](D.node,D.entering)}return this.buffer};
OYY.prototype.out=function(V){Z7(this,V)};
var Z7=function(V,D){V.buffer+=D;V.lastOut=D};
OYY.prototype.cr=function(){this.lastOut!=="\n"&&Z7(this,"\n")};var r26=/^javascript:|vbscript:|file:|data:/i,HmY=/^data:image\/(?:png|gif|jpeg|webp)/i,wrY=function(V){return r26.test(V)&&!HmY.test(V)};
w2.prototype=Object.create(OYY.prototype);_.P=w2.prototype;_.P.text=function(V){this.out(V.literal)};
_.P.html_inline=function(V){this.options.safe?Z7(this,"\x3c!-- raw HTML omitted --\x3e"):Z7(this,V.literal)};
_.P.html_block=function(V){this.cr();this.options.safe?Z7(this,"\x3c!-- raw HTML omitted --\x3e"):Z7(this,V.literal);this.cr()};
_.P.softbreak=function(){Z7(this,this.options.softbreak)};
_.P.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.P.link=function(V,D){var f=this.attrs(V);D?(this.options.safe&&wrY(V.destination)||f.push(["href",JV(V.destination,!0)]),V.title&&f.push(["title",JV(V.title,!0)]),this.tag("a",f)):this.tag("/a")};
_.P.image=function(V,D){D?(this.disableTags===0&&(this.options.safe&&wrY(V.destination)?Z7(this,'<img src="" alt="'):Z7(this,'<img src="'+JV(V.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(V.title&&Z7(this,'" title="'+JV(V.title,!0)),Z7(this,'" />')))};
_.P.emph=function(V,D){this.tag(D?"em":"/em")};
_.P.strong=function(V,D){this.tag(D?"strong":"/strong")};
_.P.paragraph=function(V,D){var f=V.parent.parent;V=this.attrs(V);f!==null&&f.type==="list"&&f.listTight||(D?(this.cr(),this.tag("p",V)):(this.tag("/p"),this.cr()))};
_.P.heading=function(V,D){var f="h"+V.level;V=this.attrs(V);D?(this.cr(),this.tag(f,V)):(this.tag("/"+f),this.cr())};
_.P.code=function(V){this.tag("code");this.out(V.literal);this.tag("/code")};
_.P.code_block=function(V){var D=V.info?V.info.split(/\s+/):[],f=this.attrs(V);D.length>0&&D[0].length>0&&f.push(["class","language-"+JV(D[0],!0)]);this.cr();this.tag("pre");this.tag("code",f);this.out(V.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.P.thematic_break=function(V){V=this.attrs(V);this.cr();this.tag("hr",V,!0);this.cr()};
_.P.block_quote=function(V,D){V=this.attrs(V);D?(this.cr(),this.tag("blockquote",V)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.P.list=function(V,D){var f=V.listType==="bullet"?"ul":"ol",n=this.attrs(V);D?(V=V.listStart,V!==null&&V!==1&&n.push(["start",V.toString()]),this.cr(),this.tag(f,n)):(this.cr(),this.tag("/"+f));this.cr()};
_.P.item=function(V,D){V=this.attrs(V);D?this.tag("li",V):(this.tag("/li"),this.cr())};
_.P.custom_inline=function(V,D){D&&V.onEnter?Z7(this,V.onEnter):!D&&V.onExit&&Z7(this,V.onExit)};
_.P.custom_block=function(V,D){this.cr();D&&V.onEnter?Z7(this,V.onEnter):!D&&V.onExit&&Z7(this,V.onExit);this.cr()};
_.P.table=function(V,D){V=this.attrs(V);D?(this.cr(),this.tag("table",V)):(this.tag("/table"),this.cr())};
_.P.row=function(V,D){V._rowIsDelimiter||(V=this.attrs(V),D?this.tag("tr",V):this.tag("/tr"))};
_.P.td=function(V,D){var f=this.attrs(V);V._alignment&&f.push(["align",V._alignment]);D?this.tag("td",f):this.tag("/td")};
_.P.th=function(V,D){var f=this.attrs(V);V._alignment&&f.push(["align",V._alignment]);D?this.tag("th",f):this.tag("/th")};
_.P.out=function(V){Z7(this,JV(V,!1))};
_.P.tag=function(V,D,f){if(!(this.disableTags>0)){this.buffer+="<"+V;if(D&&D.length>0){V=0;for(var n;(n=D[V])!==void 0;)this.buffer+=" "+n[0]+'="'+n[1]+'"',V++}f&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.P.attrs=function(V){var D=[];this.options.sourcepos&&(V=V.sourcepos)&&D.push(["data-sourcepos",String(V[0][0])+":"+String(V[0][1])+"-"+String(V[1][0])+":"+String(V[1][1])]);return D};
w2.prototype.text=w2.prototype.text;w2.prototype.html_inline=w2.prototype.html_inline;w2.prototype.html_block=w2.prototype.html_block;w2.prototype.softbreak=w2.prototype.softbreak;w2.prototype.linebreak=w2.prototype.linebreak;w2.prototype.link=w2.prototype.link;w2.prototype.image=w2.prototype.image;w2.prototype.emph=w2.prototype.emph;w2.prototype.strong=w2.prototype.strong;w2.prototype.paragraph=w2.prototype.paragraph;w2.prototype.heading=w2.prototype.heading;w2.prototype.code=w2.prototype.code;
w2.prototype.code_block=w2.prototype.code_block;w2.prototype.thematic_break=w2.prototype.thematic_break;w2.prototype.block_quote=w2.prototype.block_quote;w2.prototype.list=w2.prototype.list;w2.prototype.item=w2.prototype.item;w2.prototype.custom_inline=w2.prototype.custom_inline;w2.prototype.custom_block=w2.prototype.custom_block;w2.prototype.table=w2.prototype.table;w2.prototype.row=w2.prototype.row;w2.prototype.td=w2.prototype.td;w2.prototype.th=w2.prototype.th;w2.prototype.out=w2.prototype.out;
w2.prototype.tag=w2.prototype.tag;w2.prototype.attrs=w2.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 Q5P,Tso,FN3;(function(){function V(m,N){return m<N?-1:m>N?1:m>=N?0:NaN}
function D(m){return function(N,X){return V(m(N),X)}}
function f(){for(var m=0,N=arguments.length,X={},M;m<N;++m){if(!(M=arguments[m]+"")||M in X)throw Error("we`"+M);X[M]=[]}return new n(X)}
function n(m){this._=m}
function t(m,N){return m.trim().split(/^|\s+/).map(function(X){var M="",Pn=X.indexOf(".");Pn>=0&&(M=X.slice(Pn+1),X=X.slice(0,Pn));if(X&&!N.hasOwnProperty(X))throw Error("xe`"+X);return{type:X,name:M}})}
function J(m,N,X){for(var M=0,Pn=m.length;M<Pn;++M)if(m[M].name===N){m[M]=t$J;m=m.slice(0,M).concat(m.slice(M+1));break}X!=null&&m.push({name:N,value:X});return m}
function H(m){var N=m,X=N.indexOf(":");X>=0&&(N=m.slice(0,X))!=="xmlns"&&(m=m.slice(X+1));return Qw.hasOwnProperty(N)?{space:Qw[N],local:m}:m}
function Q(m){return function(){var N=this.ownerDocument,X=this.namespaceURI;return X==="http://www.w3.org/1999/xhtml"&&N.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?N.createElement(m):N.createElementNS(X,m)}}
function T(m){return function(){return this.ownerDocument.createElementNS(m.space,m.local)}}
function y(m){m=H(m);return(m.local?T:Q)(m)}
function Z(){}
function l(m){return m==null?Z:function(){return this.querySelector(m)}}
function G(m){return Array(m.length)}
function F(m,N){this.ownerDocument=m.ownerDocument;this.namespaceURI=m.namespaceURI;this._next=null;this._parent=m;this.__data__=N}
function k(m){return function(){return m}}
function d(m,N,X,M,Pn,Kx){for(var eR=0,u3,Ud=N.length,xF=Kx.length;eR<xF;++eR)(u3=N[eR])?(u3.__data__=Kx[eR],M[eR]=u3):X[eR]=new F(m,Kx[eR]);for(;eR<Ud;++eR)if(u3=N[eR])Pn[eR]=u3}
function z(m,N,X,M,Pn,Kx,eR){var u3,Ud,xF={},DF=N.length,HH=Kx.length,SE=Array(DF),Kw;for(u3=0;u3<DF;++u3)if(Ud=N[u3])SE[u3]=Kw="$"+eR.call(Ud,Ud.__data__,u3,N),Kw in xF?Pn[u3]=Ud:xF[Kw]=Ud;for(u3=0;u3<HH;++u3)Kw="$"+eR.call(m,Kx[u3],u3,Kx),(Ud=xF[Kw])?(M[u3]=Ud,Ud.__data__=Kx[u3],xF[Kw]=null):X[u3]=new F(m,Kx[u3]);for(u3=0;u3<DF;++u3)(Ud=N[u3])&&xF[SE[u3]]===Ud&&(Pn[u3]=Ud)}
function C(m,N){return m<N?-1:m>N?1:m>=N?0:NaN}
function A(m){return function(){this.removeAttribute(m)}}
function O(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function W(m,N){return function(){this.setAttribute(m,N)}}
function I(m,N){return function(){this.setAttributeNS(m.space,m.local,N)}}
function x(m,N){return function(){var X=N.apply(this,arguments);X==null?this.removeAttribute(m):this.setAttribute(m,X)}}
function oY(m,N){return function(){var X=N.apply(this,arguments);X==null?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,X)}}
function wZ(m){return function(){this.style.removeProperty(m)}}
function ZZ(m,N,X){return function(){this.style.setProperty(m,N,X)}}
function sd(m,N,X){return function(){var M=N.apply(this,arguments);M==null?this.style.removeProperty(m):this.style.setProperty(m,M,X)}}
function NU(m,N){return m.style.getPropertyValue(N)||(m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView).getComputedStyle(m,null).getPropertyValue(N)}
function Bn(m){return function(){delete this[m]}}
function aY(m,N){return function(){this[m]=N}}
function Ed(m,N){return function(){var X=N.apply(this,arguments);X==null?delete this[m]:this[m]=X}}
function V0(){this.textContent=""}
function kf(m){return function(){this.textContent=m}}
function mY(m){return function(){var N=m.apply(this,arguments);this.textContent=N==null?"":N}}
function Ko(){this.innerHTML=""}
function Eu(m){return function(){this.innerHTML=m}}
function y0(m){return function(){var N=m.apply(this,arguments);this.innerHTML=N==null?"":N}}
function BH(){return null}
function wu(){var m=this.parentNode;m&&m.removeChild(this)}
function lF(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function rZ(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function wP(m,N,X){m=gP(m,N,X);return function(M){var Pn=M.relatedTarget;Pn&&(Pn===this||Pn.compareDocumentPosition(this)&8)||m.call(this,M)}}
function gP(m,N,X){return function(){m.call(this,this.__data__,N,X)}}
function uX(m){return m.trim().split(/^|\s+/).map(function(N){var X="",M=N.indexOf(".");M>=0&&(X=N.slice(M+1),N=N.slice(0,M));return{type:N,name:X}})}
function cH(m){return function(){var N=this.__on;if(N){for(var X=0,M=-1,Pn=N.length,Kx;X<Pn;++X)(Kx=N[X],m.type&&Kx.type!==m.type||Kx.name!==m.name)?N[++M]=Kx:this.removeEventListener(Kx.type,Kx.listener,Kx.capture);++M?N.length=M:delete this.__on}}}
function WH(m,N,X){var M=L4H.hasOwnProperty(m.type)?wP:gP;return function(Pn,Kx,eR){Pn=this.__on;var u3;Kx=M(N,Kx,eR);if(Pn){eR=0;for(var Ud=Pn.length;eR<Ud;++eR)if((u3=Pn[eR]).type===m.type&&u3.name===m.name){this.removeEventListener(u3.type,u3.listener,u3.capture);this.addEventListener(u3.type,u3.listener=Kx,u3.capture=X);u3.value=N;return}}this.addEventListener(m.type,Kx,X);u3={type:m.type,name:m.name,value:N,listener:Kx,capture:X};Pn?Pn.push(u3):this.__on=[u3]}}
function S5(m,N,X){var M=m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView,Pn=M.CustomEvent;typeof Pn==="function"?Pn=new Pn(N,X):(Pn=M.document.createEvent("Event"),X?(Pn.initEvent(N,X.bubbles,X.cancelable),Pn.detail=X.detail):Pn.initEvent(N,!1,!1));m.dispatchEvent(Pn)}
function Il(m,N){return function(){return S5(this,m,N)}}
function ol(m,N){return function(){return S5(this,m,N.apply(this,arguments))}}
function al(m,N){this._groups=m;this._parents=N}
function cB(){return new al([[document.documentElement]],PgX)}
function jE(){this._="@"+(++oNo).toString(36)}
function dP(m,N,X){m.prototype=N.prototype=X;X.constructor=m}
function Q0(m,N){m=Object.create(m.prototype);for(var X in N)m[X]=N[X];return m}
function o3(){}
function oq(m){var N;m=(m+"").trim().toLowerCase();return(N=JDW.exec(m))?(N=parseInt(N[1],16),new hZ(N>>8&15|N>>4&240,N>>4&15|N&240,(N&15)<<4|N&15,1)):(N=rDB.exec(m))?c6(parseInt(N[1],16)):(N=HpZ.exec(m))?new hZ(N[1],N[2],N[3],1):(N=wNf.exec(m))?new hZ(N[1]*255/100,N[2]*255/100,N[3]*255/100,1):(N=QzR.exec(m))?Sv(N[1],N[2],N[3],N[4]):(N=TTR.exec(m))?Sv(N[1]*255/100,N[2]*255/100,N[3]*255/100,N[4]):(N=bpv.exec(m))?PJ(N[1],N[2]/100,N[3]/100,1):(N=KvX.exec(m))?PJ(N[1],N[2]/100,N[3]/100,N[4]):IAF.hasOwnProperty(m)?
c6(IAF[m]):m==="transparent"?new hZ(NaN,NaN,NaN,0):null}
function c6(m){return new hZ(m>>16&255,m>>8&255,m&255,1)}
function Sv(m,N,X,M){M<=0&&(m=N=X=NaN);return new hZ(m,N,X,M)}
function $p(m){m instanceof o3||(m=oq(m));if(!m)return new hZ;m=m.rgb();return new hZ(m.r,m.g,m.b,m.opacity)}
function ZR(m,N,X,M){return arguments.length===1?$p(m):new hZ(m,N,X,M==null?1:M)}
function hZ(m,N,X,M){this.r=+m;this.g=+N;this.b=+X;this.opacity=+M}
function Uc(m){m=Math.max(0,Math.min(255,Math.round(m)||0));return(m<16?"0":"")+m.toString(16)}
function PJ(m,N,X,M){M<=0?m=N=X=NaN:X<=0||X>=1?m=N=NaN:N<=0&&(m=NaN);return new ua(m,N,X,M)}
function P6(m){if(m instanceof ua)return new ua(m.h,m.s,m.l,m.opacity);m instanceof o3||(m=oq(m));if(!m)return new ua;if(m instanceof ua)return m;m=m.rgb();var N=m.r/255,X=m.g/255,M=m.b/255,Pn=Math.min(N,X,M),Kx=Math.max(N,X,M),eR=NaN,u3=Kx-Pn,Ud=(Kx+Pn)/2;u3?(eR=N===Kx?(X-M)/u3+(X<M)*6:X===Kx?(M-N)/u3+2:(N-X)/u3+4,u3/=Ud<.5?Kx+Pn:2-Kx-Pn,eR*=60):u3=Ud>0&&Ud<1?0:eR;return new ua(eR,u3,Ud,m.opacity)}
function o2(m,N,X,M){return arguments.length===1?P6(m):new ua(m,N,X,M==null?1:M)}
function ua(m,N,X,M){this.h=+m;this.s=+N;this.l=+X;this.opacity=+M}
function oX(m,N,X){return(m<60?N+(X-N)*m/60:m<180?X:m<240?N+(X-N)*(240-m)/60:N)*255}
function aG(m){if(m instanceof F9)return new F9(m.l,m.a,m.b,m.opacity);if(m instanceof yV){if(isNaN(m.h))return new F9(m.l,0,0,m.opacity);var N=m.h*ONE;return new F9(m.l,Math.cos(N)*m.c,Math.sin(N)*m.c,m.opacity)}m instanceof hZ||(m=$p(m));var X=PB(m.r),M=PB(m.g),Pn=PB(m.b);N=qU(.2225045*X+.7168786*M+.0606169*Pn);if(X===M&&M===Pn)var Kx=X=N;else Kx=qU((.4360747*X+.3850649*M+.1430804*Pn)/.96422),X=qU((.0139322*X+.0971045*M+.7141733*Pn)/.82521);return new F9(116*N-16,500*(Kx-N),200*(N-X),m.opacity)}
function F9(m,N,X,M){this.l=+m;this.a=+N;this.b=+X;this.opacity=+M}
function qU(m){return m>yDw?Math.pow(m,1/3):m/xWL+Mql}
function SR(m){return m>sh?m*m*m:xWL*(m-Mql)}
function b6(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}
function PB(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}
function uF(m){if(m instanceof yV)return new yV(m.h,m.c,m.l,m.opacity);m instanceof F9||(m=aG(m));if(m.a===0&&m.b===0)return new yV(NaN,0,m.l,m.opacity);var N=Math.atan2(m.b,m.a)*hNo;return new yV(N<0?N+360:N,Math.sqrt(m.a*m.a+m.b*m.b),m.l,m.opacity)}
function TJ(m,N,X,M){return arguments.length===1?uF(m):new yV(m,N,X,M==null?1:M)}
function yV(m,N,X,M){this.h=+m;this.c=+N;this.l=+X;this.opacity=+M}
function QV(m,N,X,M){if(arguments.length===1){var Pn=m;if(Pn instanceof FV)Pn=new FV(Pn.h,Pn.s,Pn.l,Pn.opacity);else{Pn instanceof hZ||(Pn=$p(Pn));var Kx=Pn.g/255,eR=Pn.b/255,u3=(UWF*eR+Pn.r/255*-1.7884503806-3.5172982438*Kx)/(UWF+-1.7884503806-3.5172982438);eR-=u3;var Ud=(1.97294*(Kx-u3)- -.29227*eR)/-.90649;eR=(Kx=Math.sqrt(Ud*Ud+eR*eR)/(1.97294*u3*(1-u3)))?Math.atan2(Ud,eR)*hNo-120:NaN;Pn=new FV(eR<0?eR+360:eR,Kx,u3,Pn.opacity)}}else Pn=new FV(m,N,X,M==null?1:M);return Pn}
function FV(m,N,X,M){this.h=+m;this.s=+N;this.l=+X;this.opacity=+M}
function K4(m,N,X,M,Pn){var Kx=m*m,eR=Kx*m;return((1-3*m+3*Kx-eR)*N+(4-6*Kx+3*eR)*X+(1+3*m+3*Kx-3*eR)*M+eR*Pn)/6}
function Jr(m){return function(){return m}}
function jo(m,N){return function(X){return m+X*N}}
function Vm(m,N,X){return m=Math.pow(m,X),N=Math.pow(N,X)-m,X=1/X,function(M){return Math.pow(m+M*N,X)}}
function C4(m,N){var X=N-m;return X?jo(m,X>180||X<-180?X-360*Math.round(X/360):X):Jr(isNaN(m)?N:m)}
function FE(m){return(m=+m)===1?pH:function(N,X){return X-N?Vm(N,X,m):Jr(isNaN(N)?X:N)}}
function pH(m,N){var X=N-m;return X?jo(m,X):Jr(isNaN(m)?N:m)}
function Ms(m){return function(N){var X=N.length,M=Array(X),Pn=Array(X),Kx=Array(X),eR;for(eR=0;eR<X;++eR){var u3=ZR(N[eR]);M[eR]=u3.r||0;Pn[eR]=u3.g||0;Kx[eR]=u3.b||0}M=m(M);Pn=m(Pn);Kx=m(Kx);u3.opacity=1;return function(Ud){u3.r=M(Ud);u3.g=Pn(Ud);u3.b=Kx(Ud);return u3+""}}}
function Wn(m,N){return m=+m,N-=m,function(X){return m+N*X}}
function nw(m){return function(){return m}}
function AZ(m){return function(N){return m(N)+""}}
function Mo(m,N){var X=n03.lastIndex=taY.lastIndex=0,M,Pn,Kx,eR=-1,u3=[],Ud=[];m+="";for(N+="";(M=n03.exec(m))&&(Pn=taY.exec(N));)(Kx=Pn.index)>X&&(Kx=N.slice(X,Kx),u3[eR]?u3[eR]+=Kx:u3[++eR]=Kx),(M=M[0])===(Pn=Pn[0])?u3[eR]?u3[eR]+=Pn:u3[++eR]=Pn:(u3[++eR]=null,Ud.push({i:eR,x:Wn(M,Pn)})),X=taY.lastIndex;X<N.length&&(Kx=N.slice(X),u3[eR]?u3[eR]+=Kx:u3[++eR]=Kx);return u3.length<2?Ud[0]?AZ(Ud[0].x):nw(N):(N=Ud.length,function(xF){for(var DF=0,HH;DF<N;++DF)u3[(HH=Ud[DF]).i]=HH.x(xF);return u3.join("")})}
function Ja(m,N,X,M,Pn,Kx){var eR,u3,Ud;if(eR=Math.sqrt(m*m+N*N))m/=eR,N/=eR;if(Ud=m*X+N*M)X-=m*Ud,M-=N*Ud;if(u3=Math.sqrt(X*X+M*M))X/=u3,M/=u3,Ud/=u3;m*M<N*X&&(m=-m,N=-N,Ud=-Ud,eR=-eR);return{translateX:Pn,translateY:Kx,rotate:Math.atan2(N,m)*Va6,skewX:Math.atan(Ud)*Va6,scaleX:eR,scaleY:u3}}
function rx(m,N,X,M){function Pn(xF){return xF.length?xF.pop()+" ":""}
function Kx(xF,DF,HH,SE,Kw,j_){xF!==HH||DF!==SE?(Kw=Kw.push("translate(",null,N,null,X),j_.push({i:Kw-4,x:Wn(xF,HH)},{i:Kw-2,x:Wn(DF,SE)})):(HH||SE)&&Kw.push("translate("+HH+N+SE+X)}
function eR(xF,DF,HH,SE){xF!==DF?(xF-DF>180?DF+=360:DF-xF>180&&(xF+=360),SE.push({i:HH.push(Pn(HH)+"rotate(",null,M)-2,x:Wn(xF,DF)})):DF&&HH.push(Pn(HH)+"rotate("+DF+M)}
function u3(xF,DF,HH,SE){xF!==DF?SE.push({i:HH.push(Pn(HH)+"skewX(",null,M)-2,x:Wn(xF,DF)}):DF&&HH.push(Pn(HH)+"skewX("+DF+M)}
function Ud(xF,DF,HH,SE,Kw,j_){xF!==HH||DF!==SE?(Kw=Kw.push(Pn(Kw)+"scale(",null,",",null,")"),j_.push({i:Kw-4,x:Wn(xF,HH)},{i:Kw-2,x:Wn(DF,SE)})):HH===1&&SE===1||Kw.push(Pn(Kw)+"scale("+HH+","+SE+")")}
return function(xF,DF){var HH=[],SE=[];xF=m(xF);DF=m(DF);Kx(xF.translateX,xF.translateY,DF.translateX,DF.translateY,HH,SE);eR(xF.rotate,DF.rotate,HH,SE);u3(xF.skewX,DF.skewX,HH,SE);Ud(xF.scaleX,xF.scaleY,DF.scaleX,DF.scaleY,HH,SE);xF=DF=null;return function(Kw){for(var j_=-1,Cc=SE.length,lv;++j_<Cc;)HH[(lv=SE[j_]).i]=lv.x(Kw);return HH.join("")}}}
function y3(m){return function(N,X){var M=m((N=o2(N)).h,(X=o2(X)).h),Pn=pH(N.s,X.s),Kx=pH(N.l,X.l),eR=pH(N.opacity,X.opacity);return function(u3){N.h=M(u3);N.s=Pn(u3);N.l=Kx(u3);N.opacity=eR(u3);return N+""}}}
function tP(m){return function(N,X){var M=m((N=TJ(N)).h,(X=TJ(X)).h),Pn=pH(N.c,X.c),Kx=pH(N.l,X.l),eR=pH(N.opacity,X.opacity);return function(u3){N.h=M(u3);N.c=Pn(u3);N.l=Kx(u3);N.opacity=eR(u3);return N+""}}}
function CY(m){return function M(X){function Pn(Kx,eR){var u3=m((Kx=QV(Kx)).h,(eR=QV(eR)).h),Ud=pH(Kx.s,eR.s),xF=pH(Kx.l,eR.l),DF=pH(Kx.opacity,eR.opacity);return function(HH){Kx.h=u3(HH);Kx.s=Ud(HH);Kx.l=xF(Math.pow(HH,X));Kx.opacity=DF(HH);return Kx+""}}
X=+X;Pn.gamma=M;return Pn}(1)}
function XH(){return oD||(DHo(hvZ),oD=bx.now()+eXn)}
function hvZ(){oD=0}
function E8(){this._call=this._time=this._next=null}
function jw(m,N,X){var M=new E8;M.restart(m,N,X);return M}
function l5(){oD=(cNL=bx.now())+eXn;B3=KP=0;try{XH();++B3;for(var m=FKY,N;m;)(N=oD-m._time)>=0&&m._call.call(null,N),m=m._next;--B3}finally{B3=0;m=FKY;for(var X=Infinity;m;)if(m._call){X>m._time&&(X=m._time);var M=m;m=m._next}else N=m._next,m._next=null,m=M?M._next=N:FKY=N;yO=M;Gf(X);oD=0}}
function z6d(){var m=bx.now(),N=m-cNL;N>1E3&&(eXn-=N,cNL=m)}
function Gf(m){B3||(KP&&(KP=clearTimeout(KP)),m-oD>24?(m<Infinity&&(KP=setTimeout(l5,m-bx.now()-eXn)),ZK&&(ZK=clearInterval(ZK))):(ZK||(cNL=bx.now(),ZK=setInterval(z6d,1E3)),B3=1,DHo(l5)))}
function f76(m,N,X){var M=new E8;N=N==null?0:+N;M.restart(function(Pn){M.stop();m(Pn+N)},N,X);
return M}
function PHY(m,N,X,M,Pn,Kx){var eR=m.__transition;if(!eR)m.__transition={};else if(X in eR)return;Zpw(m,X,{name:N,index:M,group:Pn,on:jzB,tween:lT0,time:Kx.time,delay:Kx.delay,duration:Kx.duration,ease:Kx.ease,timer:null,state:0})}
function o0c(m,N){m=Ji(m,N);if(m.state>0)throw Error("ye");return m}
function Jt(m,N){m=Ji(m,N);if(m.state>2)throw Error("ze");return m}
function Ji(m,N){m=m.__transition;if(!m||!(m=m[N]))throw Error("Ae");return m}
function Zpw(m,N,X){function M(Ud){var xF,DF;if(X.state!==1)return Kx();for(SE in eR){var HH=eR[SE];if(HH.name===X.name){if(HH.state===3)return f76(M);HH.state===4?(HH.state=6,HH.timer.stop(),HH.on.call("interrupt",m,m.__data__,HH.index,HH.group),delete eR[SE]):+SE<N&&(HH.state=6,HH.timer.stop(),delete eR[SE])}}f76(function(){X.state===3&&(X.state=4,X.timer.restart(Pn,X.delay,X.time),Pn(Ud))});
X.state=2;X.on.call("start",m,m.__data__,X.index,X.group);if(X.state===2){X.state=3;u3=Array(DF=X.tween.length);var SE=0;for(xF=-1;SE<DF;++SE)if(HH=X.tween[SE].value.call(m,m.__data__,X.index,X.group))u3[++xF]=HH;u3.length=xF+1}}
function Pn(Ud){Ud=Ud<X.duration?X.ease.call(null,Ud/X.duration):(X.timer.restart(Kx),X.state=5,1);for(var xF=-1,DF=u3.length;++xF<DF;)u3[xF].call(null,Ud);X.state===5&&(X.on.call("end",m,m.__data__,X.index,X.group),Kx())}
function Kx(){X.state=6;X.timer.stop();delete eR[N];for(var Ud in eR)return;delete m.__transition}
var eR=m.__transition,u3;eR[N]=X;X.timer=jw(function(Ud){X.state=1;X.timer.restart(M,X.delay,X.time);X.delay<=Ud&&M(Ud-X.delay)},0,X.time)}
function G$0(m,N){var X,M;return function(){var Pn=Jt(this,m),Kx=Pn.tween;if(Kx!==X){M=X=Kx;Kx=0;for(var eR=M.length;Kx<eR;++Kx)if(M[Kx].name===N){M=M.slice();M.splice(Kx,1);break}}Pn.tween=M}}
function ec0(m,N,X){var M,Pn;if(typeof X!=="function")throw Error();return function(){var Kx=Jt(this,m),eR=Kx.tween;if(eR!==M){Pn=(M=eR).slice();eR={name:N,value:X};for(var u3=0,Ud=Pn.length;u3<Ud;++u3)if(Pn[u3].name===N){Pn[u3]=eR;break}u3===Ud&&Pn.push(eR)}Kx.tween=Pn}}
function JVd(m,N,X){var M=m._id;m.each(function(){var Pn=Jt(this,M);(Pn.value||(Pn.value={}))[N]=X.apply(this,arguments)});
return function(Pn){return Ji(Pn,M).value[N]}}
function n06(m,N){var X;return(typeof N==="number"?Wn:N instanceof oq?tal:(X=oq(N))?(N=X,tal):Mo)(m,N)}
function cDc(m){return function(){this.removeAttribute(m)}}
function FvX(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function gNR(m,N,X){var M,Pn;return function(){var Kx=this.getAttribute(m);return Kx===X?null:Kx===M?Pn:Pn=N(M=Kx,X)}}
function vNw(m,N,X){var M,Pn;return function(){var Kx=this.getAttributeNS(m.space,m.local);return Kx===X?null:Kx===M?Pn:Pn=N(M=Kx,X)}}
function k$J(m,N,X){var M,Pn,Kx;return function(){var eR=X(this);if(eR==null)return void this.removeAttribute(m);var u3=this.getAttribute(m);return u3===eR?null:u3===M&&eR===Pn?Kx:Kx=N(M=u3,Pn=eR)}}
function sz3(m,N,X){var M,Pn,Kx;return function(){var eR=X(this);if(eR==null)return void this.removeAttributeNS(m.space,m.local);var u3=this.getAttributeNS(m.space,m.local);return u3===eR?null:u3===M&&eR===Pn?Kx:Kx=N(M=u3,Pn=eR)}}
function BTw(m,N){function X(){var M=this,Pn=N.apply(M,arguments);return Pn&&function(Kx){M.setAttributeNS(m.space,m.local,Pn(Kx))}}
X._value=N;return X}
function dMw(m,N){function X(){var M=this,Pn=N.apply(M,arguments);return Pn&&function(Kx){M.setAttribute(m,Pn(Kx))}}
X._value=N;return X}
function uPR(m,N){return function(){o0c(this,m).delay=+N.apply(this,arguments)}}
function NTw(m,N){return N=+N,function(){o0c(this,m).delay=N}}
function mMZ(m,N){return function(){Jt(this,m).duration=+N.apply(this,arguments)}}
function zcv(m,N){return N=+N,function(){Jt(this,m).duration=N}}
function RcZ(m,N){if(typeof N!=="function")throw Error();return function(){Jt(this,m).ease=N}}
function Cgw(m){return(m+"").trim().split(/^|\s+/).every(function(N){var X=N.indexOf(".");X>=0&&(N=N.slice(0,X));return!N||N==="start"})}
function qOo(m,N,X){var M,Pn,Kx=Cgw(N)?o0c:Jt;return function(){var eR=Kx(this,m),u3=eR.on;if(u3!==M)(Pn=(M=u3).copy()).on(N,X);eR.on=Pn}}
function XNZ(m){return function(){var N=this.parentNode,X;for(X in this.__transition)if(+X!==m)return;N&&N.removeChild(this)}}
function ENX(m,N){var X,M,Pn;return function(){var Kx=NU(this,m),eR=(this.style.removeProperty(m),NU(this,m));return Kx===eR?null:Kx===X&&eR===M?Pn:Pn=N(X=Kx,M=eR)}}
function ADq(m){return function(){this.style.removeProperty(m)}}
function aTf(m,N,X){var M,Pn;return function(){var Kx=NU(this,m);return Kx===X?null:Kx===M?Pn:Pn=N(M=Kx,X)}}
function YOX(m,N,X){var M,Pn,Kx;return function(){var eR=NU(this,m),u3=X(this);u3==null&&(u3=(this.style.removeProperty(m),NU(this,m)));return eR===u3?null:eR===M&&u3===Pn?Kx:Kx=N(M=eR,Pn=u3)}}
function $MJ(m,N,X){function M(){var Pn=this,Kx=N.apply(Pn,arguments);return Kx&&function(eR){Pn.style.setProperty(m,Kx(eR),X)}}
M._value=N;return M}
function ipR(m){return function(){this.textContent=m}}
function SOf(m){return function(){var N=m(this);this.textContent=N==null?"":N}}
function K1(m,N,X,M){this._groups=m;this._parents=N;this._name=X;this._id=M}
function rVd(m){return{type:m}}
function Hf3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function gKx(){}
function PHV(m,N){var X=new gKx;if(m instanceof gKx)m.each(function(eR,u3){X.set(u3,eR)});
else if(Array.isArray(m)){var M=-1,Pn=m.length,Kx;if(N==null)for(;++M<Pn;)X.set(M,m[M]);else for(;++M<Pn;)X.set(N(Kx=m[M],M,m),Kx)}else if(m)for(M in m)X.set(M,m[M]);return X}
function vKL(){}
function o0r(m){return function(N){for(var X={},M=0;M<m.length;M++)X[m[M]]=N[M]||"";return X}}
function WvR(m,N){var X=o0r(m);return function(M,Pn){return N(X(M),Pn,m)}}
function pNw(m){var N=Object.create(null),X=[];m.forEach(function(M){for(var Pn in M)Pn in N||X.push(N[Pn]=Pn)});
return X}
function JVu(m){function N(eR,u3){function Ud(){if(j_)return wYn;if(Cc)return Cc=!1,rVu;var uk,CJ=HH,n6;if(eR.charCodeAt(CJ)===34){for(;HH++<DF&&eR.charCodeAt(HH)!==34||eR.charCodeAt(++HH)===34;);(uk=HH)>=DF?j_=!0:(n6=eR.charCodeAt(HH++))===10?Cc=!0:n6===13&&(Cc=!0,eR.charCodeAt(HH)===10&&++HH);return eR.slice(CJ+1,uk-1).replace(/""/g,'"')}for(;HH<DF;){if((n6=eR.charCodeAt(uk=HH++))===10)Cc=!0;else if(n6===13)Cc=!0,eR.charCodeAt(HH)===10&&++HH;else if(n6!==Kx)continue;return eR.slice(CJ,uk)}return j_=
!0,eR.slice(CJ,DF)}
var xF=[],DF=eR.length,HH=0,SE=0,Kw,j_=DF<=0,Cc=!1;eR.charCodeAt(DF-1)===10&&--DF;for(eR.charCodeAt(DF-1)===13&&--DF;(Kw=Ud())!==wYn;){for(var lv=[];Kw!==rVu&&Kw!==wYn;)lv.push(Kw),Kw=Ud();u3&&(lv=u3(lv,SE++))==null||xF.push(lv)}return xF}
function X(eR){return eR.map(M).join(m)}
function M(eR){return eR==null?"":Pn.test(eR)?'"'+eR.replace(/"/g,'""')+'"':eR}
var Pn=new RegExp('["'+m+"\n\r]"),Kx=m.charCodeAt(0);return{parse:function(eR,u3){var Ud,xF;eR=N(eR,function(DF,HH){if(Ud)return Ud(DF,HH-1);xF=DF;Ud=u3?WvR(DF,u3):o0r(DF)});
eR.columns=xF||[];return eR},
parseRows:N,format:function(eR,u3){u3==null&&(u3=pNw(eR));return[u3.map(M).join(m)].concat(eR.map(function(Ud){return u3.map(function(xF){return M(Ud[xF])}).join(m)})).join("\n")},
formatRows:function(eR){return eR.map(X).join("\n")}}}
function Lvv(m){if(!m.ok)throw Error("Be`"+m.status+"`"+m.statusText);return m.text()}
function Hf6(m){return function(N,X,M){arguments.length===2&&typeof X==="function"&&(M=X,X=void 0);return fetch(N,X).then(Lvv).then(function(Pn){return m(Pn,M)})}}
function wYH(m,N,X,M){if(isNaN(N)||isNaN(X))return m;var Pn,Kx=m._root;M={data:M};var eR=m._x0,u3=m._y0,Ud=m._x1,xF=m._y1,DF,HH,SE,Kw,j_;if(!Kx)return m._root=M,m;for(;Kx.length;)if((SE=N>=(DF=(eR+Ud)/2))?eR=DF:Ud=DF,(Kw=X>=(HH=(u3+xF)/2))?u3=HH:xF=HH,Pn=Kx,!(Kx=Kx[j_=Kw<<1|SE]))return Pn[j_]=M,m;var Cc=+m._x.call(null,Kx.data);var lv=+m._y.call(null,Kx.data);if(N===Cc&&X===lv)return M.next=Kx,Pn?Pn[j_]=M:m._root=M,m;do Pn=Pn?Pn[j_]=Array(4):m._root=Array(4),(SE=N>=(DF=(eR+Ud)/2))?eR=DF:Ud=DF,(Kw=
X>=(HH=(u3+xF)/2))?u3=HH:xF=HH;while((j_=Kw<<1|SE)===(SE=(lv>=HH)<<1|Cc>=DF));return Pn[SE]=Kx,Pn[j_]=M,m}
function G_(m,N,X,M,Pn){this.node=m;this.x0=N;this.y0=X;this.x1=M;this.y1=Pn}
function ITw(m){return m[0]}
function Opo(m){return m[1]}
function QFd(m,N,X,M,Pn,Kx){this._x=m;this._y=N;this._x0=X;this._y0=M;this._x1=Pn;this._y1=Kx;this._root=void 0}
function QFu(m){for(var N={data:m.data},X=N;m=m.next;)X=X.next={data:m.data};return N}
function k4F(m,N){if((N=(m=N?m.toExponential(N-1):m.toExponential()).indexOf("e"))<0)return null;var X=m.slice(0,N);return[X.length>1?X[0]+X.slice(2):X,+m.slice(N+1)]}
function xMW(m){return m=k4F(Math.abs(m)),m?m[1]:NaN}
function M$B(m,N){return function(X,M){for(var Pn=X.length,Kx=[],eR=0,u3=m[0],Ud=0;Pn>0&&u3>0;){Ud+u3+1>M&&(u3=Math.max(1,M-Ud));Kx.push(X.substring(Pn-=u3,Pn+u3));if((Ud+=u3+1)>M)break;u3=m[eR=(eR+1)%m.length]}return Kx.reverse().join(N)}}
function hcJ(m){return function(N){return N.replace(/[0-9]/g,function(X){return m[+X]})}}
function TEF(m){return new bf3(m)}
function bf3(m){if(!(N=UMc.exec(m)))throw Error("Ce`"+m);var N;this.fill=N[1]||" ";this.align=N[2]||">";this.sign=N[3]||"-";this.symbol=N[4]||"";this.zero=!!N[5];this.width=N[6]&&+N[6];this.comma=!!N[7];this.precision=N[8]&&+N[8].slice(1);this.trim=!!N[9];this.type=N[10]||""}
function TEp(m,N){N=k4F(m,N);if(!N)return m+"";m=N[0];N=N[1];return N<0?"0."+Array(-N).join("0")+m:m.length>N+1?m.slice(0,N+1)+"."+m.slice(N+1):m+Array(N-m.length+2).join("0")}
function bf6(m){return m}
function VTq(m){function N(u3){function Ud(p4){var IT=n6,No=vj,Q3,f4;if(CJ==="c")No=qN(p4)+No,p4="";else{p4=+p4;var GJ=p4<0;p4=qN(Math.abs(p4),lv);if(uk){var qq=p4.length,Zs=1,NY=-1;a:for(;Zs<qq;++Zs)switch(p4[Zs]){case ".":NY=Q3=Zs;break;case "0":NY===0&&(NY=Zs);Q3=Zs;break;default:if(!+p4[Zs])break a;NY>0&&(NY=0)}p4=NY>0?p4.slice(0,NY)+p4.slice(Q3+1):p4}GJ&&+p4===0&&(GJ=!1);IT=(GJ?HH==="("?HH:"-":HH==="-"||HH==="("?"":HH)+IT;No=(CJ==="s"?KCF[8+yVo/3]:"")+No+(GJ&&HH==="("?")":"");if(yJ)for(GJ=-1,
Q3=p4.length;++GJ<Q3;)if(f4=p4.charCodeAt(GJ),48>f4||f4>57){No=(f4===46?Pn+p4.slice(GJ+1):p4.slice(GJ))+No;p4=p4.slice(0,GJ);break}}Cc&&!Kw&&(p4=X(p4,Infinity));f4=IT.length+p4.length+No.length;GJ=f4<j_?Array(j_-f4+1).join(xF):"";Cc&&Kw&&(p4=X(GJ+p4,GJ.length?j_-No.length:Infinity),GJ="");switch(DF){case "<":p4=IT+p4+No+GJ;break;case "=":p4=IT+GJ+p4+No;break;case "^":p4=GJ.slice(0,f4=GJ.length>>1)+IT+p4+No+GJ.slice(f4);break;default:p4=GJ+IT+p4+No}return Kx(p4)}
u3=TEF(u3);var xF=u3.fill,DF=u3.align,HH=u3.sign,SE=u3.symbol,Kw=u3.zero,j_=u3.width,Cc=u3.comma,lv=u3.precision,uk=u3.trim,CJ=u3.type;CJ==="n"?(Cc=!0,CJ="g"):Zfu[CJ]||(lv==null&&(lv=12),uk=!0,CJ="g");if(Kw||xF==="0"&&DF==="=")Kw=!0,xF="0",DF="=";var n6=SE==="$"?M[0]:SE==="#"&&/[boxX]/.test(CJ)?"0"+CJ.toLowerCase():"",vj=SE==="$"?M[1]:/[%p]/.test(CJ)?eR:"",qN=Zfu[CJ],yJ=/[defgprs%]/.test(CJ);lv=lv==null?6:/[gprs]/.test(CJ)?Math.max(1,Math.min(21,lv)):Math.max(0,Math.min(20,lv));Ud.toString=function(){return u3+
""};
return Ud}
var X=m.grouping&&m.thousands?M$B(m.grouping,m.thousands):bf6,M=m.currency,Pn=m.decimal,Kx=m.numerals?hcJ(m.numerals):bf6,eR=m.percent||"%";return{format:N,formatPrefix:function(u3,Ud){var xF=N((u3=TEF(u3),u3.type="f",u3));u3=Math.max(-8,Math.min(8,Math.floor(xMW(Ud)/3)))*3;var DF=Math.pow(10,-u3),HH=KCF[8+u3/3];return function(SE){return xF(DF*SE)+HH}}}}
function DX(){this.reset()}
function jFl(m,N,X){var M=m.s=N+X,Pn=M-N;m.t=N-(M-Pn)+(X-Pn)}
function sPF(m){return m>1?TS:m<-1?-TS:Math.asin(m)}
function Dmq(){}
function l7P(m){var N=m[0];m=m[1];var X=bn(m);return[X*bn(N),X*rg(N),rg(m)]}
function GTY(m,N){return[m[1]*N[2]-m[2]*N[1],m[2]*N[0]-m[0]*N[2],m[0]*N[1]-m[1]*N[0]]}
function e26(m){var N=BcZ(m[0]*m[0]+m[1]*m[1]+m[2]*m[2]);m[0]/=N;m[1]/=N;m[2]/=N}
function fUJ(){var m=[],N;return{point:function(X,M){N.push([X,M])},
lineStart:function(){m.push(N=[])},
lineEnd:Dmq,rejoin:function(){m.length>1&&m.push(m.pop().concat(m.shift()))},
result:function(){var X=m;m=[];N=null;return X}}}
function dqx(m,N,X,M){this.x=m;this.z=N;this.o=X;this.e=M;this.v=!1;this.n=this.p=null}
function nqv(m,N,X,M,Pn){var Kx=[],eR=[];m.forEach(function(HH){if(!((SE=HH.length-1)<=0)){var SE,Kw=HH[0],j_=HH[SE],Cc=Kw;if(yP(Cc[0]-j_[0])<1E-6&&yP(Cc[1]-j_[1])<1E-6){Pn.lineStart();for(u3=0;u3<SE;++u3)Pn.point((Kw=HH[u3])[0],Kw[1]);Pn.lineEnd()}else Kx.push(SE=new dqx(Kw,HH,null,!0)),eR.push(SE.o=new dqx(Kw,null,SE,!1)),Kx.push(SE=new dqx(j_,HH,null,!1)),eR.push(SE.o=new dqx(j_,null,SE,!0))}});
if(Kx.length){eR.sort(N);cVP(Kx);cVP(eR);var u3=0;for(m=eR.length;u3<m;++u3)eR[u3].e=X=!X;X=Kx[0];for(var Ud;;){for(var xF=X,DF=!0;xF.v;)if((xF=xF.n)===X)return;N=xF.z;Pn.lineStart();do{xF.v=xF.o.v=!0;if(xF.e){if(DF)for(u3=0,m=N.length;u3<m;++u3)Pn.point((Ud=N[u3])[0],Ud[1]);else M(xF.x,xF.n.x,1,Pn);xF=xF.n}else{if(DF)for(N=xF.p.z,u3=N.length-1;u3>=0;--u3)Pn.point((Ud=N[u3])[0],Ud[1]);else M(xF.x,xF.p.x,-1,Pn);xF=xF.p}xF=xF.o;N=xF.z;DF=!DF}while(!xF.v);Pn.lineEnd()}}}
function cVP(m){if(N=m.length){for(var N,X=0,M=m[0],Pn;++X<N;)M.n=Pn=m[X],Pn.p=M,M=Pn;M.n=Pn=m[0];Pn.p=M}}
function tTc(m){return m.length>1}
function PGX(m,N){return((m=m.x)[0]<0?m[1]-TS-1E-6:TS-m[1])-((N=N.x)[0]<0?N[1]-TS-1E-6:TS-N[1])}
function KCZ(){}
function FCL(m){return function(N,X){var M=bn(N),Pn=bn(X);M=m(M*Pn);return[M*Pn*rg(N),M*rg(X)]}}
function jV(m){return function(N,X){var M=BcZ(N*N+X*X),Pn=m(M),Kx=rg(Pn);Pn=bn(Pn);return[g0F(N*Kx,M*Pn),sPF(M&&X*Kx/M)]}}
function oqR(m){var N=0,X=m.children,M=X&&X.length;if(M)for(;--M>=0;)N+=X[M].value;else N=1;m.value=N}
function v0F(m,N){var X=new lx(m);m=+m.value&&(X.value=m.value);var M,Pn=[X],Kx,eR,u3,Ud;for(N==null&&(N=JiB);M=Pn.pop();)if(m&&(M.value=+M.data.value),(eR=N(M.data))&&(Ud=eR.length))for(M.children=Array(Ud),u3=Ud-1;u3>=0;--u3)Pn.push(Kx=M.children[u3]=new lx(eR[u3])),Kx.parent=M,Kx.depth=M.depth+1;return X.eachBefore(riJ)}
function JiB(m){return m.children}
function H8R(m){m.data=m.data.data}
function riJ(m){var N=0;do m.height=N;while((m=m.parent)&&m.height<++N)}
function lx(m){this.data=m;this.depth=this.height=0;this.parent=null}
function OE(m,N,X,M){function Pn(Kx){return m(Kx=new Date(+Kx)),Kx}
Pn.floor=Pn;Pn.ceil=function(Kx){return m(Kx=new Date(Kx-1)),N(Kx,1),m(Kx),Kx};
Pn.round=function(Kx){var eR=Pn(Kx),u3=Pn.ceil(Kx);return Kx-eR<u3-Kx?eR:u3};
Pn.offset=function(Kx,eR){return N(Kx=new Date(+Kx),eR==null?1:Math.floor(eR)),Kx};
Pn.range=function(Kx,eR,u3){var Ud=[],xF;Kx=Pn.ceil(Kx);u3=u3==null?1:Math.floor(u3);if(!(Kx<eR&&u3>0))return Ud;do Ud.push(xF=new Date(+Kx)),N(Kx,u3),m(Kx);while(xF<Kx&&Kx<eR);return Ud};
Pn.filter=function(Kx){return OE(function(eR){if(eR>=eR)for(;m(eR),!Kx(eR);)eR.setTime(eR-1)},function(eR,u3){if(eR>=eR)if(u3<0)for(;++u3<=0;)for(;N(eR,-1),!Kx(eR););
else for(;--u3>=0;)for(;N(eR,1),!Kx(eR););})};
X&&(Pn.count=function(Kx,eR){yVx.setTime(+Kx);Zfd.setTime(+eR);m(yVx);m(Zfd);return Math.floor(X(yVx,Zfd))},Pn.every=function(Kx){Kx=Math.floor(Kx);
return isFinite(Kx)&&Kx>0?Kx>1?Pn.filter(M?function(eR){return M(eR)%Kx===0}:function(eR){return Pn.count(0,eR)%Kx===0}):Pn:null});
return Pn}
function rb(m){return OE(function(N){N.setDate(N.getDate()-(N.getDay()+7-m)%7);N.setHours(0,0,0,0)},function(N,X){N.setDate(N.getDate()+X*7)},function(N,X){return(X-N-(X.getTimezoneOffset()-N.getTimezoneOffset())*6E4)/6048E5})}
function HG(m){return OE(function(N){N.setUTCDate(N.getUTCDate()-(N.getUTCDay()+7-m)%7);N.setUTCHours(0,0,0,0)},function(N,X){N.setUTCDate(N.getUTCDate()+X*7)},function(N,X){return(X-N)/6048E5})}
function wTX(m){if(0<=m.y&&m.y<100){var N=new Date(-1,m.m,m.d,m.H,m.M,m.S,m.L);N.setFullYear(m.y);return N}return new Date(m.y,m.m,m.d,m.H,m.M,m.S,m.L)}
function uY3(m){if(0<=m.y&&m.y<100){var N=new Date(Date.UTC(-1,m.m,m.d,m.H,m.M,m.S,m.L));N.setUTCFullYear(m.y);return N}return new Date(Date.UTC(m.y,m.m,m.d,m.H,m.M,m.S,m.L))}
function GB(m){return{y:m,m:0,d:1,H:0,M:0,S:0,L:0}}
function Qif(m){function N(No,Q3){return function(f4){var GJ=[],qq=-1,Zs=0,NY=No.length,fZ,iy;for(f4 instanceof Date||(f4=new Date(+f4));++qq<NY;)if(No.charCodeAt(qq)===37){GJ.push(No.slice(Zs,qq));(Zs=kTU[fZ=No.charAt(++qq)])!=null?fZ=No.charAt(++qq):Zs=fZ==="e"?" ":"0";if(iy=Q3[fZ])fZ=iy(f4,Zs);GJ.push(fZ);Zs=qq+1}GJ.push(No.slice(Zs,qq));return GJ.join("")}}
function X(No,Q3){return function(f4){var GJ=GB(1900);if(M(GJ,No,f4,0)!=f4.length)return null;if("Q"in GJ)return new Date(GJ.Q);"p"in GJ&&(GJ.H=GJ.H%12+GJ.p*12);if("V"in GJ){if(GJ.V<1||GJ.V>53)return null;"w"in GJ||(GJ.w=1);if("Z"in GJ){f4=uY3(GB(GJ.y));var qq=f4.getUTCDay();f4=qq>4||qq===0?jF9.ceil(f4):jF9(f4);f4=sFl.offset(f4,(GJ.V-1)*7);GJ.y=f4.getUTCFullYear();GJ.m=f4.getUTCMonth();GJ.d=f4.getUTCDate()+(GJ.w+6)%7}else f4=Q3(GB(GJ.y)),qq=f4.getDay(),f4=qq>4||qq===0?l7Z.ceil(f4):l7Z(f4),f4=BEU.offset(f4,
(GJ.V-1)*7),GJ.y=f4.getFullYear(),GJ.m=f4.getMonth(),GJ.d=f4.getDate()+(GJ.w+6)%7}else if("W"in GJ||"U"in GJ)"w"in GJ||(GJ.w="u"in GJ?GJ.u%7:"W"in GJ?1:0),qq="Z"in GJ?uY3(GB(GJ.y)).getUTCDay():Q3(GB(GJ.y)).getDay(),GJ.m=0,GJ.d="W"in GJ?(GJ.w+6)%7+GJ.W*7-(qq+5)%7:GJ.w+GJ.U*7-(qq+6)%7;return"Z"in GJ?(GJ.H+=GJ.Z/100|0,GJ.M+=GJ.Z%100,uY3(GJ)):Q3(GJ)}}
function M(No,Q3,f4,GJ){for(var qq=0,Zs=Q3.length,NY=f4.length,fZ;qq<Zs;){if(GJ>=NY)return-1;fZ=Q3.charCodeAt(qq++);if(fZ===37){if(fZ=Q3.charAt(qq++),fZ=IT[fZ in kTU?Q3.charAt(qq++):fZ],!fZ||(GJ=fZ(No,f4,GJ))<0)return-1}else if(fZ!=f4.charCodeAt(GJ++))return-1}return GJ}
var Pn=m.dateTime,Kx=m.date,eR=m.time,u3=m.periods,Ud=m.days,xF=m.shortDays,DF=m.months,HH=m.shortMonths,SE=eV(u3),Kw=cP(u3),j_=eV(Ud),Cc=cP(Ud),lv=eV(xF),uk=cP(xF),CJ=eV(DF),n6=cP(DF),vj=eV(HH),qN=cP(HH),yJ={a:function(No){return xF[No.getDay()]},
A:function(No){return Ud[No.getDay()]},
b:function(No){return HH[No.getMonth()]},
B:function(No){return DF[No.getMonth()]},
c:null,d:dHV,e:dHV,f:THR,H:b8J,I:Kjo,j:yiw,L:uKr,m:Z8R,M:jiW,p:function(No){return u3[+(No.getHours()>=12)]},
Q:NEP,s:mHF,S:lUR,u:GGX,U:ey0,V:ciW,w:Fj0,W:gqB,x:null,X:null,y:vqw,Y:kGV,Z:siR,"%":z2l},p4={a:function(No){return xF[No.getUTCDay()]},
A:function(No){return Ud[No.getUTCDay()]},
b:function(No){return HH[No.getUTCMonth()]},
B:function(No){return DF[No.getUTCMonth()]},
c:null,d:R2u,e:R2u,f:BHV,H:dmV,I:u63,j:NHq,L:CHF,m:mmW,M:zyR,p:function(No){return u3[+(No.getUTCHours()>=12)]},
Q:NEP,s:mHF,S:RyZ,u:CGJ,U:q7J,V:XTf,w:EqV,W:AiR,x:null,X:null,y:aUv,Y:Y7o,Z:$mR,"%":z2l},IT={a:function(No,Q3,f4){return(Q3=lv.exec(Q3.slice(f4)))?(No.w=uk[Q3[0].toLowerCase()],f4+Q3[0].length):-1},
A:function(No,Q3,f4){return(Q3=j_.exec(Q3.slice(f4)))?(No.w=Cc[Q3[0].toLowerCase()],f4+Q3[0].length):-1},
b:function(No,Q3,f4){return(Q3=vj.exec(Q3.slice(f4)))?(No.m=qN[Q3[0].toLowerCase()],f4+Q3[0].length):-1},
B:function(No,Q3,f4){return(Q3=CJ.exec(Q3.slice(f4)))?(No.m=n6[Q3[0].toLowerCase()],f4+Q3[0].length):-1},
c:function(No,Q3,f4){return M(No,Pn,Q3,f4)},
d:qpl,e:qpl,f:i8W,H:XYF,I:XYF,j:S70,L:WjB,m:pTV,M:LjW,p:function(No,Q3,f4){return(Q3=SE.exec(Q3.slice(f4)))?(No.p=Kw[Q3[0].toLowerCase()],f4+Q3[0].length):-1},
Q:IUc,s:O8v,S:xmf,u:MTX,U:hyZ,V:UmX,w:VNB,W:D7o,x:function(No,Q3,f4){return M(No,Kx,Q3,f4)},
X:function(No,Q3,f4){return M(No,eR,Q3,f4)},
y:fpZ,Y:n1B,Z:tN0,"%":PTX};yJ.x=N(Kx,yJ);yJ.X=N(eR,yJ);yJ.c=N(Pn,yJ);p4.x=N(Kx,p4);p4.X=N(eR,p4);p4.c=N(Pn,p4);return{format:function(No){var Q3=N(No,yJ);Q3.toString=function(){return No};
return Q3},
parse:function(No){var Q3=X(No,wTX);Q3.toString=function(){return No};
return Q3},
utcFormat:function(No){var Q3=N(No,p4);Q3.toString=function(){return No};
return Q3},
utcParse:function(No){var Q3=X(No,uY3);Q3.toString=function(){return No};
return Q3}}}
function wc(m,N,X){var M=m<0?"-":"";m=(M?-m:m)+"";var Pn=m.length;return M+(Pn<X?Array(X-Pn+1).join(N)+m:m)}
function o10(m){return m.replace(JuX,"\\$&")}
function eV(m){return new RegExp("^(?:"+m.map(o10).join("|")+")","i")}
function cP(m){for(var N={},X=-1,M=m.length;++X<M;)N[m[X].toLowerCase()]=X;return N}
function VNB(m,N,X){return(N=tR.exec(N.slice(X,X+1)))?(m.w=+N[0],X+N[0].length):-1}
function MTX(m,N,X){return(N=tR.exec(N.slice(X,X+1)))?(m.u=+N[0],X+N[0].length):-1}
function hyZ(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.U=+N[0],X+N[0].length):-1}
function UmX(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.V=+N[0],X+N[0].length):-1}
function D7o(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.W=+N[0],X+N[0].length):-1}
function n1B(m,N,X){return(N=tR.exec(N.slice(X,X+4)))?(m.y=+N[0],X+N[0].length):-1}
function fpZ(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.y=+N[0]+(+N[0]>68?1900:2E3),X+N[0].length):-1}
function tN0(m,N,X){return(N=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(N.slice(X,X+6)))?(m.Z=N[1]?0:-(N[2]+(N[3]||"00")),X+N[0].length):-1}
function pTV(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.m=N[0]-1,X+N[0].length):-1}
function qpl(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.d=+N[0],X+N[0].length):-1}
function S70(m,N,X){return(N=tR.exec(N.slice(X,X+3)))?(m.m=0,m.d=+N[0],X+N[0].length):-1}
function XYF(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.H=+N[0],X+N[0].length):-1}
function LjW(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.M=+N[0],X+N[0].length):-1}
function xmf(m,N,X){return(N=tR.exec(N.slice(X,X+2)))?(m.S=+N[0],X+N[0].length):-1}
function WjB(m,N,X){return(N=tR.exec(N.slice(X,X+3)))?(m.L=+N[0],X+N[0].length):-1}
function i8W(m,N,X){return(N=tR.exec(N.slice(X,X+6)))?(m.L=Math.floor(N[0]/1E3),X+N[0].length):-1}
function PTX(m,N,X){return(m=ruo.exec(N.slice(X,X+1)))?X+m[0].length:-1}
function IUc(m,N,X){return(N=tR.exec(N.slice(X)))?(m.Q=+N[0],X+N[0].length):-1}
function O8v(m,N,X){return(N=tR.exec(N.slice(X)))?(m.Q=+N[0]*1E3,X+N[0].length):-1}
function dHV(m,N){return wc(m.getDate(),N,2)}
function b8J(m,N){return wc(m.getHours(),N,2)}
function Kjo(m,N){return wc(m.getHours()%12||12,N,2)}
function yiw(m,N){return wc(1+BEU.count(dL(m),m),N,3)}
function uKr(m,N){return wc(m.getMilliseconds(),N,3)}
function THR(m,N){return uKr(m,N)+"000"}
function Z8R(m,N){return wc(m.getMonth()+1,N,2)}
function jiW(m,N){return wc(m.getMinutes(),N,2)}
function lUR(m,N){return wc(m.getSeconds(),N,2)}
function GGX(m){m=m.getDay();return m===0?7:m}
function ey0(m,N){return wc(H$V.count(dL(m),m),N,2)}
function ciW(m,N){var X=m.getDay();m=X>=4||X===0?GTX(m):GTX.ceil(m);return wc(GTX.count(dL(m),m)+(dL(m).getDay()===4),N,2)}
function Fj0(m){return m.getDay()}
function gqB(m,N){return wc(l7Z.count(dL(m),m),N,2)}
function vqw(m,N){return wc(m.getFullYear()%100,N,2)}
function kGV(m,N){return wc(m.getFullYear()%1E4,N,4)}
function siR(m){m=m.getTimezoneOffset();return(m>0?"-":(m*=-1,"+"))+wc(m/60|0,"0",2)+wc(m%60,"0",2)}
function R2u(m,N){return wc(m.getUTCDate(),N,2)}
function dmV(m,N){return wc(m.getUTCHours(),N,2)}
function u63(m,N){return wc(m.getUTCHours()%12||12,N,2)}
function NHq(m,N){return wc(1+sFl.count(ut(m),m),N,3)}
function CHF(m,N){return wc(m.getUTCMilliseconds(),N,3)}
function BHV(m,N){return CHF(m,N)+"000"}
function mmW(m,N){return wc(m.getUTCMonth()+1,N,2)}
function zyR(m,N){return wc(m.getUTCMinutes(),N,2)}
function RyZ(m,N){return wc(m.getUTCSeconds(),N,2)}
function CGJ(m){m=m.getUTCDay();return m===0?7:m}
function q7J(m,N){return wc(wkw.count(ut(m),m),N,2)}
function XTf(m,N){var X=m.getUTCDay();m=X>=4||X===0?e23(m):e23.ceil(m);return wc(e23.count(ut(m),m)+(ut(m).getUTCDay()===4),N,2)}
function EqV(m){return m.getUTCDay()}
function AiR(m,N){return wc(jF9.count(ut(m),m),N,2)}
function aUv(m,N){return wc(m.getUTCFullYear()%100,N,2)}
function Y7o(m,N){return wc(m.getUTCFullYear()%1E4,N,4)}
function $mR(){return"+0000"}
function z2l(){return"%"}
function NEP(m){return+m}
function mHF(m){return Math.floor(+m/1E3)}
function H6(m){for(var N=m.length/6|0,X=Array(N),M=0;M<N;)X[M]="#"+m.slice(M*6,++M*6);return X}
function XY(m){return QHV(m[m.length-1])}
function Nc9(m){var N=m.length;return function(X){return m[Math.max(0,Math.min(N-1,Math.floor(X*N)))]}}
function E0F(m){this._context=m}
function AVU(m){this._curve=m}
function a7o(m,N,X){var M=m._x1-m._x0;N-=m._x1;var Pn=(m._y1-m._y0)/(M||N<0&&-0);m=(X-m._y1)/(N||M<0&&-0);return((Pn<0?-1:1)+(m<0?-1:1))*Math.min(Math.abs(Pn),Math.abs(m),.5*Math.abs((Pn*N+m*M)/(M+N)))||0}
function Ypu(m,N){var X=m._x1-m._x0;return X?(3*(m._y1-m._y0)/X-N)/2:N}
function cVZ(m,N,X){var M=m._x0,Pn=m._x1,Kx=m._y1,eR=(Pn-M)/3;m._context.bezierCurveTo(M+eR,m._y0+eR*N,Pn-eR,Kx-eR*X,Pn,Kx)}
function FCU(m){this._context=m}
function $Ho(m){this._context=m}
function FM(m,N,X){this.k=m;this.x=N;this.y=X}
(function(m){m.length===1&&(m=D(m));return{left:function(N,X,M,Pn){M==null&&(M=0);Pn==null&&(Pn=N.length);for(;M<Pn;){var Kx=M+Pn>>>1;m(N[Kx],X)<0?M=Kx+1:Pn=Kx}return M},
right:function(N,X,M,Pn){M==null&&(M=0);Pn==null&&(Pn=N.length);for(;M<Pn;){var Kx=M+Pn>>>1;m(N[Kx],X)>0?Pn=Kx:M=Kx+1}return M}}})(V);
var t$J={value:function(){}};
n.prototype=f.prototype={constructor:n,on:function(m,N){var X=this._,M=t(m+"",X),Pn,Kx=-1,eR=M.length;if(arguments.length<2)for(;++Kx<eR;){var u3;if(u3=Pn=(m=M[Kx]).type){a:{u3=X[Pn];for(var Ud=0,xF=u3.length;Ud<xF;++Ud)if((Pn=u3[Ud]).name===m.name){Pn=Pn.value;break a}Pn=void 0}u3=Pn}if(u3)return Pn}else{if(N!=null&&typeof N!=="function")throw Error("De`"+N);for(;++Kx<eR;)if(Pn=(m=M[Kx]).type)X[Pn]=J(X[Pn],m.name,N);else if(N==null)for(Pn in X)X[Pn]=J(X[Pn],m.name,null);return this}},
copy:function(){var m={},N=this._,X;for(X in N)m[X]=N[X].slice();return new n(m)},
call:function(m,N){if((Pn=arguments.length-2)>0)for(var X=Array(Pn),M=0,Pn,Kx;M<Pn;++M)X[M]=arguments[M+2];if(!this._.hasOwnProperty(m))throw Error("xe`"+m);Kx=this._[m];M=0;for(Pn=Kx.length;M<Pn;++M)Kx[M].value.apply(N,X)},
apply:function(m,N,X){if(!this._.hasOwnProperty(m))throw Error("xe`"+m);m=this._[m];for(var M=0,Pn=m.length;M<Pn;++M)m[M].value.apply(N,X)}};
var Qw={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/"},ifl=function(m){return function(){return this.matches(m)}};
if(typeof document!=="undefined"){var g9=document.documentElement;if(!g9.matches){var TAR=g9.webkitMatchesSelector||g9.msMatchesSelector||g9.mozMatchesSelector||g9.oMatchesSelector;ifl=function(m){return function(){return TAR.call(this,m)}}}}var SpV=ifl;
F.prototype={constructor:F,appendChild:function(m){return this._parent.insertBefore(m,this._next)},
insertBefore:function(m,N){return this._parent.insertBefore(m,N)},
querySelector:function(m){return this._parent.querySelector(m)},
querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};
var L4H={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(L4H={mouseenter:"mouseover",mouseleave:"mouseout"}));var PgX=[null];al.prototype=cB.prototype={constructor:al,select:function(m){typeof m!=="function"&&(m=l(m));for(var N=this._groups,X=N.length,M=Array(X),Pn=0;Pn<X;++Pn)for(var Kx=N[Pn],eR=Kx.length,u3=M[Pn]=Array(eR),Ud,xF,DF=0;DF<eR;++DF)(Ud=Kx[DF])&&(xF=m.call(Ud,Ud.__data__,DF,Kx))&&("__data__"in Ud&&(xF.__data__=Ud.__data__),u3[DF]=xF);return new al(M,this._parents)},
filter:function(m){typeof m!=="function"&&(m=SpV(m));for(var N=this._groups,X=N.length,M=Array(X),Pn=0;Pn<X;++Pn)for(var Kx=N[Pn],eR=Kx.length,u3=M[Pn]=[],Ud,xF=0;xF<eR;++xF)(Ud=Kx[xF])&&m.call(Ud,Ud.__data__,xF,Kx)&&u3.push(Ud);return new al(M,this._parents)},
data:function(m,N){if(!m)return Kw=Array(this.size()),xF=-1,this.each(function(CJ){Kw[++xF]=CJ}),Kw;
var X=N?z:d,M=this._parents,Pn=this._groups;typeof m!=="function"&&(m=k(m));for(var Kx=Pn.length,eR=Array(Kx),u3=Array(Kx),Ud=Array(Kx),xF=0;xF<Kx;++xF){var DF=M[xF],HH=Pn[xF],SE=HH.length,Kw=m.call(DF,DF&&DF.__data__,xF,M),j_=Kw.length,Cc=u3[xF]=Array(j_),lv=eR[xF]=Array(j_);SE=Ud[xF]=Array(SE);X(DF,HH,Cc,lv,SE,Kw,N);HH=DF=0;for(var uk;DF<j_;++DF)if(SE=Cc[DF]){for(DF>=HH&&(HH=DF+1);!(uk=lv[HH])&&++HH<j_;);SE._next=uk||null}}eR=new al(eR,M);eR._enter=u3;eR._exit=Ud;return eR},
exit:function(){return new al(this._exit||this._groups.map(G),this._parents)},
merge:function(m){var N=this._groups;m=m._groups;for(var X=N.length,M=Math.min(X,m.length),Pn=Array(X),Kx=0;Kx<M;++Kx)for(var eR=N[Kx],u3=m[Kx],Ud=eR.length,xF=Pn[Kx]=Array(Ud),DF,HH=0;HH<Ud;++HH)if(DF=eR[HH]||u3[HH])xF[HH]=DF;for(;Kx<X;++Kx)Pn[Kx]=N[Kx];return new al(Pn,this._parents)},
order:function(){for(var m=this._groups,N=-1,X=m.length;++N<X;)for(var M=m[N],Pn=M.length-1,Kx=M[Pn],eR;--Pn>=0;)if(eR=M[Pn])Kx&&Kx!==eR.nextSibling&&Kx.parentNode.insertBefore(eR,Kx),Kx=eR;return this},
sort:function(m){function N(HH,SE){return HH&&SE?m(HH.__data__,SE.__data__):!HH-!SE}
m||(m=C);for(var X=this._groups,M=X.length,Pn=Array(M),Kx=0;Kx<M;++Kx){for(var eR=X[Kx],u3=eR.length,Ud=Pn[Kx]=Array(u3),xF,DF=0;DF<u3;++DF)if(xF=eR[DF])Ud[DF]=xF;Ud.sort(N)}return(new al(Pn,this._parents)).order()},
call:function(){var m=arguments[0];arguments[0]=this;m.apply(null,arguments);return this},
nodes:function(){var m=Array(this.size()),N=-1;this.each(function(){m[++N]=this});
return m},
node:function(){for(var m=this._groups,N=0,X=m.length;N<X;++N)for(var M=m[N],Pn=0,Kx=M.length;Pn<Kx;++Pn){var eR=M[Pn];if(eR)return eR}return null},
size:function(){var m=0;this.each(function(){++m});
return m},
empty:function(){return!this.node()},
each:function(m){for(var N=this._groups,X=0,M=N.length;X<M;++X)for(var Pn=N[X],Kx=0,eR=Pn.length,u3;Kx<eR;++Kx)(u3=Pn[Kx])&&m.call(u3,u3.__data__,Kx,Pn);return this},
attr:function(m,N){var X=H(m);if(arguments.length<2){var M=this.node();return X.local?M.getAttributeNS(X.space,X.local):M.getAttribute(X)}return this.each((N==null?X.local?O:A:typeof N==="function"?X.local?oY:x:X.local?I:W)(X,N))},
style:function(m,N,X){return arguments.length>1?this.each((N==null?wZ:typeof N==="function"?sd:ZZ)(m,N,X==null?"":X)):NU(this.node(),m)},
property:function(m,N){return arguments.length>1?this.each((N==null?Bn:typeof N==="function"?Ed:aY)(m,N)):this.node()[m]},
text:function(m){return arguments.length?this.each(m==null?V0:(typeof m==="function"?mY:kf)(m)):this.node().textContent},
html:function(m){return arguments.length?this.each(m==null?Ko:(typeof m==="function"?y0:Eu)(m)):this.node().innerHTML},
append:function(m){var N=typeof m==="function"?m:y(m);return this.select(function(){return this.appendChild(N.apply(this,arguments))})},
insert:function(m,N){var X=typeof m==="function"?m:y(m),M=N==null?BH:typeof N==="function"?N:l(N);return this.select(function(){return this.insertBefore(X.apply(this,arguments),M.apply(this,arguments)||null)})},
remove:function(){return this.each(wu)},
clone:function(m){return this.select(m?rZ:lF)},
datum:function(m){return arguments.length?this.property("__data__",m):this.node().__data__},
on:function(m,N,X){var M=uX(m+""),Pn=M.length,Kx;if(arguments.length<2){var eR=this.node().__on;if(eR)for(var u3=0,Ud=eR.length,xF;u3<Ud;++u3){var DF=0;for(xF=eR[u3];DF<Pn;++DF)if((Kx=M[DF]).type===xF.type&&Kx.name===xF.name)return xF.value}}else{eR=N?WH:cH;X==null&&(X=!1);for(DF=0;DF<Pn;++DF)this.each(eR(M[DF],N,X));return this}},
dispatch:function(m,N){return this.each((typeof N==="function"?ol:Il)(m,N))}};
var oNo=0;jE.prototype=function(){return new jE}.prototype={constructor:jE,
get:function(m){for(var N=this._;!(N in m);)if(!(m=m.parentNode))return;return m[N]},
set:function(m,N){return m[this._]=N},
remove:function(m){return this._ in m&&delete m[this._]},
toString:function(){return this._}};
var Nv=1/.7,JDW=/^#([0-9a-f]{3})$/,rDB=/^#([0-9a-f]{6})$/,HpZ=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),wNf=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),QzR=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),TTR=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*\\)$"),
bpv=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),KvX=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*\\)$"),IAF={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};
dP(o3,oq,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
dP(hZ,ZR,Q0(o3,{brighter:function(m){m=m==null?Nv:Math.pow(Nv,m);return new hZ(this.r*m,this.g*m,this.b*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new hZ(this.r*m,this.g*m,this.b*m,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"#"+Uc(this.r)+Uc(this.g)+Uc(this.b)},
toString:function(){var m=this.opacity;m=isNaN(m)?1:Math.max(0,Math.min(1,m));return(m===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))+(m===1?")":", "+m+")")}}));
dP(ua,o2,Q0(o3,{brighter:function(m){m=m==null?Nv:Math.pow(Nv,m);return new ua(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new ua(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=this.h%360+(this.h<0)*360,N=this.l,X=N+(N<.5?N:1-N)*(isNaN(m)||isNaN(this.s)?0:this.s);N=2*N-X;return new hZ(oX(m>=240?m-240:m+120,N,X),oX(m,N,X),oX(m<120?m+240:m-120,N,X),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 ONE=Math.PI/180,hNo=180/Math.PI,Mql=4/29,sh=6/29,xWL=3*sh*sh,yDw=sh*sh*sh;dP(F9,function(m,N,X,M){return arguments.length===1?aG(m):new F9(m,N,X,M==null?1:M)},Q0(o3,{brighter:function(m){return new F9(this.l+18*(m==null?1:m),this.a,this.b,this.opacity)},
darker:function(m){return new F9(this.l-18*(m==null?1:m),this.a,this.b,this.opacity)},
rgb:function(){var m=(this.l+16)/116,N=isNaN(this.a)?m:m+this.a/500,X=isNaN(this.b)?m:m-this.b/200;N=.96422*SR(N);m=1*SR(m);X=.82521*SR(X);return new hZ(b6(3.1338561*N-1.6168667*m-.4906146*X),b6(-.9787684*N+1.9161415*m+.033454*X),b6(.0719453*N-.2289914*m+1.4052427*X),this.opacity)}}));
dP(yV,TJ,Q0(o3,{brighter:function(m){return new yV(this.h,this.c,this.l+18*(m==null?1:m),this.opacity)},
darker:function(m){return new yV(this.h,this.c,this.l-18*(m==null?1:m),this.opacity)},
rgb:function(){return aG(this).rgb()}}));
var UWF=1.78277*-.29227-.1347134789;dP(FV,QV,Q0(o3,{brighter:function(m){m=m==null?Nv:Math.pow(Nv,m);return new FV(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new FV(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=isNaN(this.h)?0:(this.h+120)*ONE,N=+this.l,X=isNaN(this.s)?0:this.s*N*(1-N),M=Math.cos(m);m=Math.sin(m);return new hZ(255*(N+X*(-.14861*M+1.78277*m)),255*(N+X*(-.29227*M+-.90649*m)),255*(N+1.97294*M*X),this.opacity)}}));
var tal=function X(N){function M(Kx,eR){var u3=Pn((Kx=ZR(Kx)).r,(eR=ZR(eR)).r),Ud=Pn(Kx.g,eR.g),xF=Pn(Kx.b,eR.b),DF=pH(Kx.opacity,eR.opacity);return function(HH){Kx.r=u3(HH);Kx.g=Ud(HH);Kx.b=xF(HH);Kx.opacity=DF(HH);return Kx+""}}
var Pn=FE(N);M.gamma=X;return M}(1),QHV=Ms(function(N){var X=N.length-1;
return function(M){var Pn=M<=0?M=0:M>=1?(M=1,X-1):Math.floor(M*X),Kx=N[Pn],eR=N[Pn+1];return K4((M-Pn/X)*X,Pn>0?N[Pn-1]:2*Kx-eR,Kx,eR,Pn<X-1?N[Pn+2]:2*eR-Kx)}});
Ms(function(N){var X=N.length;return function(M){var Pn=Math.floor(((M%=1)<0?++M:M)*X);return K4((M-Pn/X)*X,N[(Pn+X-1)%X],N[Pn%X],N[(Pn+1)%X],N[(Pn+2)%X])}});
var n03=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,taY=new RegExp(n03.source,"g"),Va6=180/Math.PI,g09={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},vP,v0Z,WCF,mqF,b$q=rx(function(N){if(N==="none")return g09;vP||(vP=document.createElement("DIV"),v0Z=document.documentElement,WCF=document.defaultView);vP.style.transform=N;N=WCF.getComputedStyle(v0Z.appendChild(vP),null).getPropertyValue("transform");v0Z.removeChild(vP);N=N.slice(7,-1).split(",");return Ja(+N[0],+N[1],+N[2],+N[3],
+N[4],+N[5])},"px, ","px)","deg)"),K6V=rx(function(N){if(N==null)return g09;
mqF||(mqF=document.createElementNS("http://www.w3.org/2000/svg","g"));mqF.setAttribute("transform",N);if(!(N=mqF.transform.baseVal.consolidate()))return g09;N=N.matrix;return Ja(N.a,N.b,N.c,N.d,N.e,N.f)},", ",")",")");
y3(C4);y3(pH);tP(C4);tP(pH);CY(C4);var kTL=CY(pH),B3=0,KP=0,ZK=0,FKY,yO,cNL=0,oD=0,eXn=0,bx=typeof performance==="object"&&performance.now?performance:Date,DHo=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(N){setTimeout(N,17)};
E8.prototype=jw.prototype={constructor:E8,restart:function(N,X,M){if(typeof N!=="function")throw new TypeError("Ee");M=(M==null?XH():+M)+(X==null?0:+X);this._next||yO===this||(yO?yO._next=this:FKY=this,yO=this);this._call=N;this._time=M;Gf()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Gf())}};
var jzB=f("start","end","interrupt"),lT0=[],yuZ=cB.prototype.constructor,pYH=0,mr=cB.prototype;K1.prototype=function(N){return cB().transition(N)}.prototype={constructor:K1,
select:function(N){var X=this._name,M=this._id;typeof N!=="function"&&(N=l(N));for(var Pn=this._groups,Kx=Pn.length,eR=Array(Kx),u3=0;u3<Kx;++u3)for(var Ud=Pn[u3],xF=Ud.length,DF=eR[u3]=Array(xF),HH,SE,Kw=0;Kw<xF;++Kw)(HH=Ud[Kw])&&(SE=N.call(HH,HH.__data__,Kw,Ud))&&("__data__"in HH&&(SE.__data__=HH.__data__),DF[Kw]=SE,PHY(DF[Kw],X,M,Kw,DF,Ji(HH,M)));return new K1(eR,this._parents,X,M)},
filter:function(N){typeof N!=="function"&&(N=SpV(N));for(var X=this._groups,M=X.length,Pn=Array(M),Kx=0;Kx<M;++Kx)for(var eR=X[Kx],u3=eR.length,Ud=Pn[Kx]=[],xF,DF=0;DF<u3;++DF)(xF=eR[DF])&&N.call(xF,xF.__data__,DF,eR)&&Ud.push(xF);return new K1(Pn,this._parents,this._name,this._id)},
merge:function(N){if(N._id!==this._id)throw Error();var X=this._groups;N=N._groups;for(var M=X.length,Pn=Math.min(M,N.length),Kx=Array(M),eR=0;eR<Pn;++eR)for(var u3=X[eR],Ud=N[eR],xF=u3.length,DF=Kx[eR]=Array(xF),HH,SE=0;SE<xF;++SE)if(HH=u3[SE]||Ud[SE])DF[SE]=HH;for(;eR<M;++eR)Kx[eR]=X[eR];return new K1(Kx,this._parents,this._name,this._id)},
selection:function(){return new yuZ(this._groups,this._parents)},
transition:function(){for(var N=this._name,X=this._id,M=++pYH,Pn=this._groups,Kx=Pn.length,eR=0;eR<Kx;++eR)for(var u3=Pn[eR],Ud=u3.length,xF,DF=0;DF<Ud;++DF)if(xF=u3[DF]){var HH=Ji(xF,X);PHY(xF,N,M,DF,u3,{time:HH.time+HH.delay+HH.duration,delay:0,duration:HH.duration,ease:HH.ease})}return new K1(Pn,this._parents,N,M)},
call:mr.call,nodes:mr.nodes,node:mr.node,size:mr.size,empty:mr.empty,each:mr.each,on:function(N,X){var M=this._id;return arguments.length<2?Ji(this.node(),M).on.on(N):this.each(qOo(M,N,X))},
attr:function(N,X){var M=H(N),Pn=M==="transform"?K6V:n06;return this.attrTween(N,typeof X==="function"?(M.local?sz3:k$J)(M,Pn,JVd(this,"attr."+N,X)):X==null?(M.local?FvX:cDc)(M):(M.local?vNw:gNR)(M,Pn,X+""))},
attrTween:function(N,X){var M="attr."+N;if(arguments.length<2)return(M=this.tween(M))&&M._value;if(X==null)return this.tween(M,null);if(typeof X!=="function")throw Error();var Pn=H(N);return this.tween(M,(Pn.local?BTw:dMw)(Pn,X))},
style:function(N,X,M){var Pn=N==="transform"?b$q:n06;return X==null?this.styleTween(N,ENX(N,Pn)).on("end.style."+N,ADq(N)):this.styleTween(N,typeof X==="function"?YOX(N,Pn,JVd(this,"style."+N,X)):aTf(N,Pn,X+""),M)},
styleTween:function(N,X,M){var Pn="style."+N;if(arguments.length<2)return(Pn=this.tween(Pn))&&Pn._value;if(X==null)return this.tween(Pn,null);if(typeof X!=="function")throw Error();return this.tween(Pn,$MJ(N,X,M==null?"":M))},
text:function(N){return this.tween("text",typeof N==="function"?SOf(JVd(this,"text",N)):ipR(N==null?"":N+""))},
remove:function(){return this.on("end.remove",XNZ(this._id))},
tween:function(N,X){var M=this._id;if(arguments.length<2){M=Ji(this.node(),M).tween;for(var Pn=0,Kx=M.length,eR;Pn<Kx;++Pn)if((eR=M[Pn]).name===N)return eR.value;return null}return this.each((X==null?G$0:ec0)(M,N,X))},
delay:function(N){var X=this._id;return arguments.length?this.each((typeof N==="function"?uPR:NTw)(X,N)):Ji(this.node(),X).delay},
duration:function(N){var X=this._id;return arguments.length?this.each((typeof N==="function"?mMZ:zcv)(X,N)):Ji(this.node(),X).duration},
ease:function(N){var X=this._id;return arguments.length?this.each(RcZ(X,N)):Ji(this.node(),X).ease}};
var sF9={time:null,delay:0,duration:250,ease:function(N){return((N*=2)<=1?N*N*N:(N-=2)*N*N+2)/2}};
cB.prototype.transition=function(N){var X;if(N instanceof K1){var M=N._id;N=N._name}else M=++pYH,(X=sF9).time=XH(),N=N==null?null:N+"";for(var Pn=this._groups,Kx=Pn.length,eR=0;eR<Kx;++eR)for(var u3=Pn[eR],Ud=u3.length,xF,DF=0;DF<Ud;++DF)if(xF=u3[DF]){var HH=xF,SE=N,Kw=M,j_=DF,Cc=u3,lv;if(!(lv=X))a:{lv=void 0;for(var uk=M;!(lv=xF.__transition)||!(lv=lv[uk]);)if(!(xF=xF.parentNode)){lv=(sF9.time=XH(),sF9);break a}}PHY(HH,SE,Kw,j_,Cc,lv)}return new K1(Pn,this._parents,N,M)};
["e","w"].map(rVd);["n","s"].map(rVd);"n e s w nw ne se sw".split(" ").map(rVd);Hf3.prototype=function(){return new Hf3}.prototype={constructor:Hf3,
moveTo:function(N,X){this._+="M"+(this._x0=this._x1=+N)+","+(this._y0=this._y1=+X)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(N,X){this._+="L"+(this._x1=+N)+","+(this._y1=+X)},
bezierCurveTo:function(N,X,M,Pn,Kx,eR){this._+="C"+ +N+","+ +X+","+ +M+","+ +Pn+","+(this._x1=+Kx)+","+(this._y1=+eR)},
rect:function(N,X,M,Pn){this._+="M"+(this._x0=this._x1=+N)+","+(this._y0=this._y1=+X)+"h"+ +M+"v"+ +Pn+"h"+-M+"Z"},
toString:function(){return this._}};
gKx.prototype=PHV.prototype={constructor:gKx,has:function(N){return" "+N in this},
get:function(N){return this[" "+N]},
set:function(N,X){this[" "+N]=X;return this},
remove:function(N){N=" "+N;return N in this&&delete this[N]},
clear:function(){for(var N in this)N[0]===" "&&delete this[N]},
keys:function(){var N=[],X;for(X in this)X[0]===" "&&N.push(X.slice(1));return N},
values:function(){var N=[],X;for(X in this)X[0]===" "&&N.push(this[X]);return N},
entries:function(){var N=[],X;for(X in this)X[0]===" "&&N.push({key:X.slice(1),value:this[X]});return N},
size:function(){var N=0,X;for(X in this)X[0]===" "&&++N;return N},
empty:function(){for(var N in this)if(N[0]===" ")return!1;return!0},
each:function(N){for(var X in this)X[0]===" "&&N(this[X],X.slice(1),this)}};
var wb=PHV.prototype;vKL.prototype=function(N,X){var M=new vKL;if(N instanceof vKL)N.each(function(eR){M.add(eR)});
else if(N){var Pn=-1,Kx=N.length;if(X==null)for(;++Pn<Kx;)M.add(N[Pn]);else for(;++Pn<Kx;)M.add(X(N[Pn],Pn,N))}return M}.prototype={constructor:vKL,
has:wb.has,add:function(N){this[" "+N]=N;return this},
remove:wb.remove,clear:wb.clear,values:wb.keys,size:wb.size,empty:wb.empty,each:wb.each};var rVu={},wYn={},Z$Z=JVu(",").parse,jHZ=JVu("\t").parse;Hf6(Z$Z);Hf6(jHZ);var eL=function(N,X,M){X=new QFd(X==null?ITw:X,M==null?Opo:M,NaN,NaN,NaN,NaN);return N==null?X:X.addAll(N)}.prototype=QFd.prototype;
eL.copy=function(){var N=new QFd(this._x,this._y,this._x0,this._y0,this._x1,this._y1),X=this._root,M,Pn;if(!X)return N;if(!X.length)return N._root=QFu(X),N;for(M=[{source:X,target:N._root=Array(4)}];X=M.pop();)for(var Kx=0;Kx<4;++Kx)if(Pn=X.source[Kx])Pn.length?M.push({source:Pn,target:X.target[Kx]=Array(4)}):X.target[Kx]=QFu(Pn);return N};
eL.add=function(N){var X=+this._x.call(null,N),M=+this._y.call(null,N);return wYH(this.cover(X,M),X,M,N)};
eL.addAll=function(N){var X,M,Pn=N.length,Kx,eR,u3=Array(Pn),Ud=Array(Pn),xF=Infinity,DF=Infinity,HH=-Infinity,SE=-Infinity;for(M=0;M<Pn;++M)isNaN(Kx=+this._x.call(null,X=N[M]))||isNaN(eR=+this._y.call(null,X))||(u3[M]=Kx,Ud[M]=eR,Kx<xF&&(xF=Kx),Kx>HH&&(HH=Kx),eR<DF&&(DF=eR),eR>SE&&(SE=eR));HH<xF&&(xF=this._x0,HH=this._x1);SE<DF&&(DF=this._y0,SE=this._y1);this.cover(xF,DF).cover(HH,SE);for(M=0;M<Pn;++M)wYH(this,u3[M],Ud[M],N[M]);return this};
eL.cover=function(N,X){if(isNaN(N=+N)||isNaN(X=+X))return this;var M=this._x0,Pn=this._y0,Kx=this._x1,eR=this._y1;if(isNaN(M))Kx=(M=Math.floor(N))+1,eR=(Pn=Math.floor(X))+1;else if(M>N||N>Kx||Pn>X||X>eR){var u3=Kx-M,Ud=this._root,xF;switch(xF=(X<(Pn+eR)/2)<<1|N<(M+Kx)/2){case 0:do{var DF=Array(4);DF[xF]=Ud;Ud=DF}while(u3*=2,Kx=M+u3,eR=Pn+u3,N>Kx||X>eR);break;case 1:do DF=Array(4),DF[xF]=Ud,Ud=DF;while(u3*=2,M=Kx-u3,eR=Pn+u3,M>N||X>eR);break;case 2:do DF=Array(4),DF[xF]=Ud,Ud=DF;while(u3*=2,Kx=M+u3,
Pn=eR-u3,N>Kx||Pn>X);break;case 3:do DF=Array(4),DF[xF]=Ud,Ud=DF;while(u3*=2,M=Kx-u3,Pn=eR-u3,M>N||Pn>X)}this._root&&this._root.length&&(this._root=Ud)}else return this;this._x0=M;this._y0=Pn;this._x1=Kx;this._y1=eR;return this};
eL.data=function(){var N=[];this.visit(function(X){if(!X.length){do N.push(X.data);while(X=X.next)}});
return N};
eL.extent=function(N){return arguments.length?this.cover(+N[0][0],+N[0][1]).cover(+N[1][0],+N[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
eL.find=function(N,X,M){var Pn=this._x0,Kx=this._y0,eR,u3,Ud,xF,DF=this._x1,HH=this._y1,SE=[],Kw=this._root,j_;Kw&&SE.push(new G_(Kw,Pn,Kx,DF,HH));M==null?M=Infinity:(Pn=N-M,Kx=X-M,DF=N+M,HH=X+M,M*=M);for(;j_=SE.pop();)if(!(!(Kw=j_.node)||(eR=j_.x0)>DF||(u3=j_.y0)>HH||(Ud=j_.x1)<Pn||(xF=j_.y1)<Kx))if(Kw.length){j_=(eR+Ud)/2;var Cc=(u3+xF)/2;SE.push(new G_(Kw[3],j_,Cc,Ud,xF),new G_(Kw[2],eR,Cc,j_,xF),new G_(Kw[1],j_,u3,Ud,Cc),new G_(Kw[0],eR,u3,j_,Cc));if(Kw=(X>=Cc)<<1|N>=j_)j_=SE[SE.length-1],SE[SE.length-
1]=SE[SE.length-1-Kw],SE[SE.length-1-Kw]=j_}else if(j_=N-+this._x.call(null,Kw.data),Cc=X-+this._y.call(null,Kw.data),j_=j_*j_+Cc*Cc,j_<M){var lv=Math.sqrt(M=j_);Pn=N-lv;Kx=X-lv;DF=N+lv;HH=X+lv;lv=Kw.data}return lv};
eL.remove=function(N){if(isNaN(xF=+this._x.call(null,N))||isNaN(DF=+this._y.call(null,N)))return this;var X,M=this._root,Pn,Kx=this._x0,eR=this._y0,u3=this._x1,Ud=this._y1,xF,DF,HH,SE,Kw,j_,Cc;if(!M)return this;if(M.length)for(;;){(Kw=xF>=(HH=(Kx+u3)/2))?Kx=HH:u3=HH;(j_=DF>=(SE=(eR+Ud)/2))?eR=SE:Ud=SE;if(!(X=M,M=M[Cc=j_<<1|Kw]))return this;if(!M.length)break;if(X[Cc+1&3]||X[Cc+2&3]||X[Cc+3&3]){var lv=X;var uk=Cc}}for(;M.data!==N;)if(!(Pn=M,M=M.next))return this;(N=M.next)&&delete M.next;if(Pn)return N?
Pn.next=N:delete Pn.next,this;if(!X)return this._root=N,this;N?X[Cc]=N:delete X[Cc];(M=X[0]||X[1]||X[2]||X[3])&&M===(X[3]||X[2]||X[1]||X[0])&&!M.length&&(lv?lv[uk]=M:this._root=M);return this};
eL.removeAll=function(N){for(var X=0,M=N.length;X<M;++X)this.remove(N[X]);return this};
eL.root=function(){return this._root};
eL.size=function(){var N=0;this.visit(function(X){if(!X.length){do++N;while(X=X.next)}});
return N};
eL.visit=function(N){var X=[],M,Pn=this._root,Kx,eR,u3,Ud,xF;for(Pn&&X.push(new G_(Pn,this._x0,this._y0,this._x1,this._y1));M=X.pop();)if(!N(Pn=M.node,eR=M.x0,u3=M.y0,Ud=M.x1,xF=M.y1)&&Pn.length){M=(eR+Ud)/2;var DF=(u3+xF)/2;(Kx=Pn[3])&&X.push(new G_(Kx,M,DF,Ud,xF));(Kx=Pn[2])&&X.push(new G_(Kx,eR,DF,M,xF));(Kx=Pn[1])&&X.push(new G_(Kx,M,u3,Ud,DF));(Kx=Pn[0])&&X.push(new G_(Kx,eR,u3,M,DF))}};
eL.visitAfter=function(N){var X=[],M=[],Pn;for(this._root&&X.push(new G_(this._root,this._x0,this._y0,this._x1,this._y1));Pn=X.pop();){var Kx=Pn.node;if(Kx.length){var eR,u3=Pn.x0,Ud=Pn.y0,xF=Pn.x1,DF=Pn.y1,HH=(u3+xF)/2,SE=(Ud+DF)/2;(eR=Kx[0])&&X.push(new G_(eR,u3,Ud,HH,SE));(eR=Kx[1])&&X.push(new G_(eR,HH,Ud,xF,SE));(eR=Kx[2])&&X.push(new G_(eR,u3,SE,HH,DF));(eR=Kx[3])&&X.push(new G_(eR,HH,SE,xF,DF))}M.push(Pn)}for(;Pn=M.pop();)N(Pn.node,Pn.x0,Pn.y0,Pn.x1,Pn.y1);return this};
eL.x=function(N){return arguments.length?(this._x=N,this):this._x};
eL.y=function(N){return arguments.length?(this._y=N,this):this._y};
var UMc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;TEF.prototype=bf3.prototype;bf3.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 yVo,Zfu={"%":function(N,X){return(N*100).toFixed(X)},
b:function(N){return Math.round(N).toString(2)},
c:function(N){return N+""},
d:function(N){return Math.round(N).toString(10)},
e:function(N,X){return N.toExponential(X)},
f:function(N,X){return N.toFixed(X)},
g:function(N,X){return N.toPrecision(X)},
o:function(N){return Math.round(N).toString(8)},
p:function(N,X){return TEp(N*100,X)},
r:TEp,s:function(N,X){var M=k4F(N,X);if(!M)return N+"";var Pn=M[0];M=M[1];M=M-(yVo=Math.max(-8,Math.min(8,Math.floor(M/3)))*3)+1;var Kx=Pn.length;return M===Kx?Pn:M>Kx?Pn+Array(M-Kx+1).join("0"):M>0?Pn.slice(0,M)+"."+Pn.slice(M):"0."+Array(1-M).join("0")+k4F(N,Math.max(0,X+M-1))[0]},
X:function(N){return Math.round(N).toString(16).toUpperCase()},
x:function(N){return Math.round(N).toString(16)}},KCF="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),lpf;
(function(N){return lpf=VTq(N)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});DX.prototype={constructor:DX,reset:function(){this.s=this.t=0},
add:function(N){jFl(zX9,N,this.t);jFl(this,zX9.s,this.s);this.s?this.t+=zX9.t:this.s=zX9.t},
valueOf:function(){return this.s}};
var zX9=new DX,je=Math.PI,TS=je/2,LCu=je/4,Ggv=je*2,BEL=je/180,yP=Math.abs,dHY=Math.atan,g0F=Math.atan2,bn=Math.cos,rg=Math.sin,BcZ=Math.sqrt;new DX;new DX;new DX;var uKc=new DX;(function(N,X,M,Pn){return function(Kx){function eR(qN,yJ){N(qN,yJ)&&Kx.point(qN,yJ)}
function u3(qN,yJ){Kw.point(qN,yJ)}
function Ud(){vj.point=u3;Kw.lineStart()}
function xF(){vj.point=eR;Kw.lineEnd()}
function DF(qN,yJ){n6.push([qN,yJ]);Cc.point(qN,yJ)}
function HH(){Cc.lineStart();n6=[]}
function SE(){DF(n6[0][0],n6[0][1]);Cc.lineEnd();var qN=Cc.clean(),yJ=j_.result(),p4=yJ.length,IT;n6.pop();uk.push(n6);n6=null;if(p4)if(qN&1){if(p4=yJ[0],(yJ=p4.length-1)>0){lv||(Kx.polygonStart(),lv=!0);Kx.lineStart();for(qN=0;qN<yJ;++qN)Kx.point((IT=p4[qN])[0],IT[1]);Kx.lineEnd()}}else p4>1&&qN&2&&yJ.push(yJ.pop().concat(yJ.shift())),CJ.push(yJ.filter(tTc))}
var Kw=X(Kx),j_=fUJ(),Cc=X(j_),lv=!1,uk,CJ,n6,vj={point:eR,lineStart:Ud,lineEnd:xF,polygonStart:function(){vj.point=DF;vj.lineStart=HH;vj.lineEnd=SE;CJ=[];uk=[]},
polygonEnd:function(){vj.point=eR;vj.lineStart=Ud;vj.lineEnd=xF;var qN=CJ,yJ=qN.length;var p4=-1;for(var IT=0,No,Q3;++p4<yJ;)IT+=qN[p4].length;for(No=Array(IT);--yJ>=0;)for(Q3=qN[yJ],p4=Q3.length;--p4>=0;)No[--IT]=Q3[p4];CJ=No;qN=uk;yJ=Pn[0];IT=Pn[1];var f4=rg(IT);p4=[rg(yJ),-bn(yJ),0];Q3=No=0;uKc.reset();f4===1?IT=TS+1E-6:f4===-1&&(IT=-TS-1E-6);f4=0;for(var GJ=qN.length;f4<GJ;++f4)if(Zs=(qq=qN[f4]).length){var qq,Zs,NY=qq[Zs-1],fZ=NY[0],iy=NY[1]/2+LCu,RXZ=rg(iy),I7p=bn(iy);for(iy=0;iy<Zs;++iy,fZ=
NEZ,RXZ=Ofo,I7p=kZ,NY=Cbx){var Cbx=qq[iy],NEZ=Cbx[0];kZ=Cbx[1]/2+LCu;var Ofo=rg(kZ),kZ=bn(kZ),zc=NEZ-fZ,mHZ=zc>=0?1:-1,z29=mHZ*zc,q0L=z29>je;RXZ*=Ofo;uKc.add(g0F(RXZ*mHZ*rg(z29),I7p*kZ+RXZ*bn(z29)));No+=q0L?zc+mHZ*Ggv:zc;q0L^fZ>=yJ^NEZ>=yJ&&(NY=GTY(l7P(NY),l7P(Cbx)),e26(NY),fZ=GTY(p4,NY),e26(fZ),fZ=(q0L^zc>=0?-1:1)*sPF(fZ[2]),IT>fZ||IT===fZ&&(NY[0]||NY[1]))&&(Q3+=q0L^zc>=0?1:-1)}}qN=(No<-1E-6||No<1E-6&&uKc<-1E-6)^Q3&1;CJ.length?(lv||(Kx.polygonStart(),lv=!0),nqv(CJ,PGX,qN,M,Kx)):qN&&(lv||(Kx.polygonStart(),
lv=!0),Kx.lineStart(),M(null,null,1,Kx),Kx.lineEnd());lv&&(Kx.polygonEnd(),lv=!1);CJ=uk=null},
sphere:function(){Kx.polygonStart();Kx.lineStart();M(null,null,1,Kx);Kx.lineEnd();Kx.polygonEnd()}};
return vj}})(function(){return!0},function(N){var X=NaN,M=NaN,Pn=NaN,Kx;
return{lineStart:function(){N.lineStart();Kx=1},
point:function(eR,u3){var Ud=eR>0?je:-je,xF=yP(eR-X);if(yP(xF-je)<1E-6)N.point(X,M=(M+u3)/2>0?TS:-TS),N.point(Pn,M),N.lineEnd(),N.lineStart(),N.point(Ud,M),N.point(eR,M),Kx=0;else if(Pn!==Ud&&xF>=je){yP(X-Pn)<1E-6&&(X-=Pn*1E-6);yP(eR-Ud)<1E-6&&(eR-=Ud*1E-6);xF=X;var DF=M,HH=eR,SE,Kw,j_=rg(xF-HH);M=yP(j_)>1E-6?dHY((rg(DF)*(Kw=bn(u3))*rg(HH)-rg(u3)*(SE=bn(DF))*rg(xF))/(SE*Kw*j_)):(DF+u3)/2;N.point(Pn,M);N.lineEnd();N.lineStart();N.point(Ud,M);Kx=0}N.point(X=eR,M=u3);Pn=Ud},
lineEnd:function(){N.lineEnd();X=M=NaN},
clean:function(){return 2-Kx}}},function(N,X,M,Pn){N==null?(M*=TS,Pn.point(-je,M),Pn.point(0,M),Pn.point(je,M),Pn.point(je,0),Pn.point(je,-M),Pn.point(0,-M),Pn.point(-je,-M),Pn.point(-je,0),Pn.point(-je,M)):yP(N[0]-X[0])>1E-6?(N=N[0]<X[0]?je:-je,M=M*N/2,Pn.point(-N,M),Pn.point(0,M),Pn.point(N,M)):Pn.point(X[0],X[1])},[-je,
-TS]);new DX;new DX;new DX;new DX;KCZ.prototype={constructor:KCZ,point:function(N,X){this.stream.point(N,X)},
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()}};
bn(30*BEL);(function(N){return function(X){var M=new KCZ,Pn;for(Pn in N)M[Pn]=N[Pn];M.stream=X;return M}})({point:function(N,X){this.stream.point(N*BEL,X*BEL)}});
FCL(function(N){return BcZ(2/(1+N))}).invert=jV(function(N){return 2*sPF(N/2)});
FCL(function(N){return(N=N>1?0:N<-1?je:Math.acos(N))&&N/rg(N)}).invert=jV(function(N){return N});
BcZ(3);jV(dHY);jV(sPF);jV(function(N){return 2*dHY(N)});
lx.prototype=v0F.prototype={constructor:lx,count:function(){return this.eachAfter(oqR)},
each:function(N){var X,M=[this],Pn;do{var Kx=M.reverse();for(M=[];X=Kx.pop();)if(N(X),X=X.children){var eR=0;for(Pn=X.length;eR<Pn;++eR)M.push(X[eR])}}while(M.length);return this},
eachAfter:function(N){for(var X,M=[this],Pn=[],Kx,eR;X=M.pop();)if(Pn.push(X),X=X.children)for(Kx=0,eR=X.length;Kx<eR;++Kx)M.push(X[Kx]);for(;X=Pn.pop();)N(X);return this},
eachBefore:function(N){for(var X,M=[this],Pn;X=M.pop();)if(N(X),X=X.children)for(Pn=X.length-1;Pn>=0;--Pn)M.push(X[Pn]);return this},
sum:function(N){return this.eachAfter(function(X){for(var M=+N(X.data)||0,Pn=X.children,Kx=Pn&&Pn.length;--Kx>=0;)M+=Pn[Kx].value;X.value=M})},
sort:function(N){return this.eachBefore(function(X){X.children&&X.children.sort(N)})},
path:function(N){var X=this;var M=X;var Pn=N;if(M!==Pn){var Kx=M.ancestors(),eR=Pn.ancestors(),u3=null;M=Kx.pop();for(Pn=eR.pop();M===Pn;)u3=M,M=Kx.pop(),Pn=eR.pop();M=u3}for(Pn=[X];X!==M;)X=X.parent,Pn.push(X);for(X=Pn.length;N!==M;)Pn.splice(X,0,N),N=N.parent;return Pn},
ancestors:function(){for(var N=this,X=[N];N=N.parent;)X.push(N);return X},
links:function(){var N=this,X=[];N.each(function(M){M!==N&&X.push({source:M.parent,target:M})});
return X},
copy:function(){return v0F(this).eachBefore(H8R)}};
(function(N,X){this._=N;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=X}).prototype=Object.create(lx.prototype);
var yVx=new Date,Zfd=new Date,xHl=OE(function(){},function(N,X){N.setTime(+N+X)},function(N,X){return X-N});
xHl.every=function(N){N=Math.floor(N);return isFinite(N)&&N>0?N>1?OE(function(X){X.setTime(Math.floor(X/N)*N)},function(X,M){X.setTime(+X+M*N)},function(X,M){return(M-X)/N}):xHl:null};
OE(function(N){N.setTime(Math.floor(N/1E3)*1E3)},function(N,X){N.setTime(+N+X*1E3)},function(N,X){return(X-N)/1E3},function(N){return N.getUTCSeconds()});
OE(function(N){N.setTime(Math.floor(N/6E4)*6E4)},function(N,X){N.setTime(+N+X*6E4)},function(N,X){return(X-N)/6E4},function(N){return N.getMinutes()});
OE(function(N){var X=N.getTimezoneOffset()*6E4%36E5;X<0&&(X+=36E5);N.setTime(Math.floor((+N-X)/36E5)*36E5+X)},function(N,X){N.setTime(+N+X*36E5)},function(N,X){return(X-N)/36E5},function(N){return N.getHours()});
var BEU=OE(function(N){N.setHours(0,0,0,0)},function(N,X){N.setDate(N.getDate()+X)},function(N,X){return(X-N-(X.getTimezoneOffset()-N.getTimezoneOffset())*6E4)/864E5},function(N){return N.getDate()-1}),H$V=rb(0),l7Z=rb(1);
rb(2);rb(3);var GTX=rb(4);rb(5);rb(6);OE(function(N){N.setDate(1);N.setHours(0,0,0,0)},function(N,X){N.setMonth(N.getMonth()+X)},function(N,X){return X.getMonth()-N.getMonth()+(X.getFullYear()-N.getFullYear())*12},function(N){return N.getMonth()});
var dL=OE(function(N){N.setMonth(0,1);N.setHours(0,0,0,0)},function(N,X){N.setFullYear(N.getFullYear()+X)},function(N,X){return X.getFullYear()-N.getFullYear()},function(N){return N.getFullYear()});
dL.every=function(N){return isFinite(N=Math.floor(N))&&N>0?OE(function(X){X.setFullYear(Math.floor(X.getFullYear()/N)*N);X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,M){X.setFullYear(X.getFullYear()+M*N)}):null};
OE(function(N){N.setUTCSeconds(0,0)},function(N,X){N.setTime(+N+X*6E4)},function(N,X){return(X-N)/6E4},function(N){return N.getUTCMinutes()});
OE(function(N){N.setUTCMinutes(0,0,0)},function(N,X){N.setTime(+N+X*36E5)},function(N,X){return(X-N)/36E5},function(N){return N.getUTCHours()});
var sFl=OE(function(N){N.setUTCHours(0,0,0,0)},function(N,X){N.setUTCDate(N.getUTCDate()+X)},function(N,X){return(X-N)/864E5},function(N){return N.getUTCDate()-1}),wkw=HG(0),jF9=HG(1);
HG(2);HG(3);var e23=HG(4);HG(5);HG(6);OE(function(N){N.setUTCDate(1);N.setUTCHours(0,0,0,0)},function(N,X){N.setUTCMonth(N.getUTCMonth()+X)},function(N,X){return X.getUTCMonth()-N.getUTCMonth()+(X.getUTCFullYear()-N.getUTCFullYear())*12},function(N){return N.getUTCMonth()});
var ut=OE(function(N){N.setUTCMonth(0,1);N.setUTCHours(0,0,0,0)},function(N,X){N.setUTCFullYear(N.getUTCFullYear()+X)},function(N,X){return X.getUTCFullYear()-N.getUTCFullYear()},function(N){return N.getUTCFullYear()});
ut.every=function(N){return isFinite(N=Math.floor(N))&&N>0?OE(function(X){X.setUTCFullYear(Math.floor(X.getUTCFullYear()/N)*N);X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,M){X.setUTCFullYear(X.getUTCFullYear()+M*N)}):null};
var kTU={"-":"",_:" ",0:"0"},tR=/^\s*\d+/,ruo=/^%/,JuX=/[\\^$*+?|[\]().{}]/g,XJc;(function(N){XJc=Qif(N);Q5P=XJc.utcFormat;Tso=XJc.utcParse;return XJc})({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||Q5P("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Tso("%Y-%m-%dT%H:%M:%S.%LZ");H6("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
H6("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");H6("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");H6("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");H6("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");H6("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");H6("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
H6("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");H6("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");H6("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");H6("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");H6("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var e4c=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(H6);XY(e4c);var cuX=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(H6);XY(cuX);var F6V=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(H6);XY(F6V);var g1R=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(H6);
XY(g1R);var v13=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(H6);XY(v13);var kgJ=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(H6);XY(kgJ);var sHV=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(H6);XY(sHV);var BAW=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(H6);XY(BAW);var d7X=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(H6);XY(d7X);var uuJ=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(H6);XY(uuJ);var NAf=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(H6);XY(NAf);var m7q=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(H6);XY(m7q);var z4c=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(H6);XY(z4c);var R4o=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(H6);XY(R4o);var CTc=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(H6);XY(CTc);var qy0=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(H6);XY(qy0);var XkJ=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(H6);XY(XkJ);var E10=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(H6);XY(E10);var Au3=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(H6);XY(Au3);var apX=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(H6);XY(apX);var Yyo=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(H6);XY(Yyo);var $7o=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(H6);XY($7o);var i$3=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(H6);XY(i$3);var SyR=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(H6);XY(SyR);var W6w=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(H6);XY(W6w);var pkV=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(H6);XY(pkV);var L6v=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(H6);XY(L6v);kTL(QV(300,.5,0),QV(-240,.5,1));kTL(QV(-100,.75,.35),QV(80,1.5,.8));kTL(QV(260,.75,.35),QV(80,1.5,.8));QV();ZR();Nc9(H6("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Nc9(H6("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Nc9(H6("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Nc9(H6("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
E0F.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(N,X){N=+N;X=+X;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(N,X):this._context.moveTo(N,X);break;case 1:this._point=2;default:this._context.lineTo(N,X)}}};
(function(N){function X(M){return new AVU(N(M))}
X._curve=N;return X})(function(N){return new E0F(N)});
AVU.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(N,X){this._curve.point(X*Math.sin(N),X*-Math.cos(N))}};
FCU.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:cVZ(this,this._t0,Ypu(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(N,X){var M=NaN;N=+N;X=+X;if(N!==this._x1||X!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(N,X):this._context.moveTo(N,X);break;case 1:this._point=2;break;case 2:this._point=3;cVZ(this,Ypu(this,M=a7o(this,N,X)),M);break;default:cVZ(this,this._t0,M=a7o(this,N,X))}this._x0=this._x1;this._x1=N;this._y0=this._y1;this._y1=X;this._t0=M}}};
(function(N){this._context=new $Ho(N)}.prototype=Object.create(FCU.prototype)).point=function(N,X){FCU.prototype.point.call(this,X,N)};
$Ho.prototype={moveTo:function(N,X){this._context.moveTo(X,N)},
closePath:function(){this._context.closePath()},
lineTo:function(N,X){this._context.lineTo(X,N)},
bezierCurveTo:function(N,X,M,Pn,Kx,eR){this._context.bezierCurveTo(X,N,Pn,M,eR,Kx)}};
FM.prototype={constructor:FM,scale:function(N){return N===1?this:new FM(this.k*N,this.x,this.y)},
translate:function(N,X){return N===0&X===0?this:new FM(this.k,this.x+this.k*N,this.y+this.k*X)},
apply:function(N){return[N[0]*this.k+this.x,N[1]*this.k+this.y]},
invert:function(N){return[(N[0]-this.x)/this.k,(N[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new FM(1,0,0);FN3=oq;Qw.svg=Qw.svg;Qw.xhtml=Qw.xhtml;Qw.xlink=Qw.xlink;Qw.xml=Qw.xml;Qw.xmlns=Qw.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 bmF="hammer_"+(Math.random()*1E6|0),K7L=function(){var V=document||document;if(!V[bmF]){var D=function(){(function(f,n,t,J){function H(F9,qU,SR){return setTimeout(G(F9,SR),qU)}
function Q(F9,qU,SR){return Array.isArray(F9)?(T(F9,SR[qU],SR),!0):!1}
function T(F9,qU,SR){var b6;if(F9)if(F9.forEach)F9.forEach(qU,SR);else if(F9.length!==J){var PB=0;for(b6=F9.length;PB<b6;PB++)qU.call(SR,F9[PB],PB,F9)}else for(PB in F9)F9.hasOwnProperty(PB)&&qU.call(SR,F9[PB],PB,F9)}
function y(F9,qU,SR){for(var b6=Object.keys(qU),PB=0,uF=b6.length;PB<uF;PB++)if(!SR||SR&&F9[b6[PB]]===J)F9[b6[PB]]=qU[b6[PB]];return F9}
function Z(F9,qU){return y(F9,qU,!0)}
function l(F9,qU,SR){qU=qU.prototype;var b6=F9.prototype=Object.create(qU);b6.constructor=F9;b6._super=qU;SR&&y(b6,SR)}
function G(F9,qU){return function(){return F9.apply(qU,arguments)}}
function F(F9,qU){return typeof F9=="function"?F9.apply(qU?qU[0]||J:J,qU):F9}
function k(F9,qU,SR){T(z(qU),function(b6){F9.addEventListener(b6,SR,!1)})}
function d(F9,qU,SR){T(z(qU),function(b6){F9.removeEventListener(b6,SR,!1)})}
function z(F9){return F9.trim().split(/\s+/g)}
function C(F9,qU,SR){if(F9.indexOf&&!SR)return F9.indexOf(qU);for(var b6=0,PB=F9.length;b6<PB;b6++)if(SR&&F9[b6][SR]==qU||!SR&&F9[b6]===qU)return b6;return-1}
function A(F9,qU,SR){for(var b6=[],PB=[],uF=0,TJ=F9.length;uF<TJ;uF++){var yV=qU?F9[uF][qU]:F9[uF];C(PB,yV)<0&&b6.push(F9[uF]);PB[uF]=yV}SR&&(b6=qU?b6.sort(function(QV,FV){return QV[qU]>FV[qU]}):b6.sort());
return b6}
function O(F9,qU){for(var SR,b6=qU[0].toUpperCase()+qU.slice(1),PB=0,uF=ol.length;PB<uF;PB++)if(SR=(SR=ol[PB])?SR+b6:qU,SR in F9)return SR;return J}
function W(F9,qU){var SR=this;this.manager=F9;this.callback=qU;this.element=F9.element;this.target=F9.options.inputTarget;this.domHandler=function(b6){F(F9.options.enable,[F9])&&SR.handler(b6)};
this.evEl&&k(this.element,this.evEl,this.domHandler);this.evTarget&&k(this.target,this.evTarget,this.domHandler);this.evWin&&k(f,this.evWin,this.domHandler)}
function I(F9){var qU;c6?qU=aY:Sv?qU=Ed:oq?qU=V0:qU=Bn;return new qU(F9,x)}
function x(F9,qU,SR){var b6=SR.pointers.length,PB=SR.changedPointers.length,uF=qU&1&&b6-PB===0;SR.isFirst=!!uF;SR.isFinal=!!(qU&12&&b6-PB===0);uF&&(F9.session={});SR.eventType=qU;qU=F9.session;b6=SR.pointers;PB=b6.length;qU.firstInput||(qU.firstInput=oY(SR));PB>1&&!qU.firstMultiple?qU.firstMultiple=oY(SR):PB===1&&(qU.firstMultiple=!1);uF=qU.firstInput;var TJ=(PB=qU.firstMultiple)?PB.center:uF.center,yV=SR.center=wZ(b6);SR.timeStamp=dP();SR.deltaTime=SR.timeStamp-uF.timeStamp;SR.angle=NU(TJ,yV);SR.distance=
sd(TJ,yV);uF=SR.center;TJ=qU.offsetDelta||{};yV=qU.prevDelta||{};var QV=qU.prevInput||{};if(SR.eventType===1||QV.eventType===4)yV=qU.prevDelta={x:QV.deltaX||0,y:QV.deltaY||0},TJ=qU.offsetDelta={x:uF.x,y:uF.y};SR.deltaX=yV.x+(uF.x-TJ.x);SR.deltaY=yV.y+(uF.y-TJ.y);SR.offsetDirection=ZZ(SR.deltaX,SR.deltaY);PB?(uF=PB.pointers,uF=sd(b6[0],b6[1],ZR)/sd(uF[0],uF[1],ZR)):uF=1;SR.scale=uF;PB?(PB=PB.pointers,b6=NU(b6[1],b6[0],ZR)-NU(PB[1],PB[0],ZR)):b6=0;SR.rotation=b6;TJ=qU.lastInterval||SR;b6=SR.timeStamp-
TJ.timeStamp;SR.eventType!=8&&(b6>25||TJ.velocity===J)?(uF=TJ.deltaX-SR.deltaX,TJ=TJ.deltaY-SR.deltaY,yV=uF/b6||0,QV=TJ/b6||0,b6=yV,PB=QV,yV=jE(yV)>jE(QV)?yV:QV,uF=ZZ(uF,TJ),qU.lastInterval=SR):(yV=TJ.velocity,b6=TJ.velocityX,PB=TJ.velocityY,uF=TJ.direction);SR.velocity=yV;SR.velocityX=b6;SR.velocityY=PB;SR.direction=uF;qU=F9.element;a:{for(b6=SR.srcEvent.target;b6;){if(b6==qU){b6=!0;break a}b6=b6.parentNode}b6=!1}b6&&(qU=SR.srcEvent.target);SR.target=qU;F9.emit("hammer.input",SR);F9.recognize(SR);
F9.session.prevInput=SR}
function oY(F9){for(var qU=[],SR=0;SR<F9.pointers.length;SR++)qU[SR]={clientX:cB(F9.pointers[SR].clientX),clientY:cB(F9.pointers[SR].clientY)};return{timeStamp:dP(),pointers:qU,center:wZ(qU),deltaX:F9.deltaX,deltaY:F9.deltaY}}
function wZ(F9){var qU=F9.length;if(qU===1)return{x:cB(F9[0].clientX),y:cB(F9[0].clientY)};for(var SR=0,b6=0,PB=0;PB<qU;PB++)SR+=F9[PB].clientX,b6+=F9[PB].clientY;return{x:cB(SR/qU),y:cB(b6/qU)}}
function ZZ(F9,qU){return F9===qU?1:jE(F9)>=jE(qU)?F9>0?2:4:qU>0?8:16}
function sd(F9,qU,SR){SR||(SR=$p);var b6=qU[SR[0]]-F9[SR[0]];F9=qU[SR[1]]-F9[SR[1]];return Math.sqrt(b6*b6+F9*F9)}
function NU(F9,qU,SR){SR||(SR=$p);return Math.atan2(qU[SR[1]]-F9[SR[1]],qU[SR[0]]-F9[SR[0]])*180/Math.PI}
function Bn(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;W.apply(this,arguments)}
function aY(){this.evEl=P6;this.evWin=o2;W.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ed(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};W.apply(this,arguments)}
function V0(){W.apply(this,arguments);var F9=G(this.handler,this);this.touch=new Ed(this.manager,F9);this.mouse=new Bn(this.manager,F9)}
function kf(F9,qU){this.manager=F9;this.set(qU)}
function mY(F9){if(F9.indexOf("none")>-1)return"none";var qU=F9.indexOf("pan-x")>-1,SR=F9.indexOf("pan-y")>-1;return qU&&SR?"pan-x pan-y":qU||SR?qU?"pan-x":"pan-y":F9.indexOf("manipulation")>-1?"manipulation":"auto"}
function Ko(F9){this.id=Q0++;this.manager=null;this.options=Z(F9||{},this.defaults);F9=this.options.enable;this.options.enable=F9===J?!0:F9;this.state=1;this.simultaneous={};this.requireFail=[]}
function Eu(F9){return F9==16?"down":F9==8?"up":F9==2?"left":F9==4?"right":""}
function y0(F9,qU){return(qU=qU.manager)?qU.get(F9):F9}
function BH(){Ko.apply(this,arguments)}
function wu(){BH.apply(this,arguments);this.pY=this.pX=null}
function lF(){BH.apply(this,arguments)}
function rZ(){Ko.apply(this,arguments);this._input=this._timer=null}
function wP(){BH.apply(this,arguments)}
function gP(){BH.apply(this,arguments)}
function uX(){Ko.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function cH(F9,qU){qU=qU||{};var SR=qU.recognizers;qU.recognizers=SR===J?cH.defaults.preset:SR;return new WH(F9,qU)}
function WH(F9,qU){qU=qU||{};this.options=Z(qU,cH.defaults);this.options.inputTarget=this.options.inputTarget||F9;this.handlers={};this.session={};this.recognizers=[];this.element=F9;this.input=I(this);this.touchAction=new kf(this,this.options.touchAction);S5(this,!0);T(qU.recognizers,function(SR){var b6=this.add(new SR[0](SR[1]));SR[2]&&b6.recognizeWith(SR[2]);SR[3]&&b6.requireFailure(SR[2])},this)}
function S5(F9,qU){var SR=F9.element;T(F9.options.cssProps,function(b6,PB){SR.style[O(SR.style,PB)]=qU?b6:""})}
function Il(F9,qU){var SR=n.createEvent("Event");SR.initEvent(F9,!0,!0);SR.gesture=qU;qU.target.dispatchEvent(SR)}
var ol=" webkit moz MS ms o".split(" "),al=n.createElement("div"),cB=Math.round,jE=Math.abs,dP=Date.now,Q0=1,o3=/mobile|tablet|ip(ad|hone|od)|android/i,oq="ontouchstart"in f,c6=O(f,"PointerEvent")!==J,Sv=oq&&o3.test(navigator.userAgent),$p=["x","y"],ZR=["clientX","clientY"];W.prototype={handler:function(){},
destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(f,this.evWin,this.domHandler)}};
var hZ={mousedown:1,mousemove:2,mouseup:4};l(Bn,W,{handler:function(F9){var qU=hZ[F9.type];qU&1&&F9.button===0&&(this.pressed=!0);qU&2&&F9.which!==1&&(qU=4);this.pressed&&this.allow&&(qU&4&&(this.pressed=!1),this.callback(this.manager,qU,{pointers:[F9],changedPointers:[F9],pointerType:"mouse",srcEvent:F9}))}});
var Uc={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},PJ={2:"touch",3:"pen",4:"mouse",5:"kinect"},P6="pointerdown",o2="pointermove pointerup pointercancel";f.MSPointerEvent&&(P6="MSPointerDown",o2="MSPointerMove MSPointerUp MSPointerCancel");l(aY,W,{handler:function(F9){var qU=this.store,SR=!1,b6=F9.type.toLowerCase().replace("ms","");b6=Uc[b6];var PB=PJ[F9.pointerType]||F9.pointerType;b6&1&&(F9.button===0||PB=="touch")?qU.push(F9):b6&12&&(SR=!0);var uF=C(qU,F9.pointerId,"pointerId");
uF<0||(qU[uF]=F9,this.callback(this.manager,b6,{pointers:qU,changedPointers:[F9],pointerType:PB,srcEvent:F9}),SR&&qU.splice(uF,1))}});
var ua={touchstart:1,touchmove:2,touchend:4,touchcancel:8};l(Ed,W,{handler:function(F9){var qU=ua[F9.type];var SR=Array.prototype.slice.call(F9.touches,0);var b6=this.targetIds;if(qU&3&&SR.length===1)b6[SR[0].identifier]=!0,b6=[SR,SR];else{var PB,uF=Array.prototype.slice.call(F9.targetTouches,0),TJ=Array.prototype.slice.call(F9.changedTouches,0),yV=[];if(qU===1)for(SR=0,PB=uF.length;SR<PB;SR++)b6[uF[SR].identifier]=!0;SR=0;for(PB=TJ.length;SR<PB;SR++)b6[TJ[SR].identifier]&&yV.push(TJ[SR]),qU&12&&
delete b6[TJ[SR].identifier];b6=yV.length?[A(uF.concat(yV),"identifier",!0),yV]:void 0}b6&&this.callback(this.manager,qU,{pointers:b6[0],changedPointers:b6[1],pointerType:"touch",srcEvent:F9})}});
l(V0,W,{handler:function(F9,qU,SR){var b6=SR.pointerType=="mouse";if(SR.pointerType=="touch")this.mouse.allow=!1;else if(b6&&!this.mouse.allow)return;qU&12&&(this.mouse.allow=!0);this.callback(F9,qU,SR)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var oX=O(al.style,"touchAction"),aG=oX!==J;kf.prototype={set:function(F9){F9=="compute"&&(F9=this.compute());aG&&(this.manager.element.style[oX]=F9);this.actions=F9.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var F9=[];T(this.manager.recognizers,function(qU){F(qU.options.enable,[qU])&&(F9=F9.concat(qU.getTouchAction()))});
return mY(F9.join(" "))},
preventDefaults:function(F9){if(!aG){var qU=F9.srcEvent;F9=F9.offsetDirection;if(this.manager.session.prevented)qU.preventDefault();else{var SR=this.actions,b6=SR.indexOf("none")>-1,PB=SR.indexOf("pan-y")>-1;SR=SR.indexOf("pan-x")>-1;if(b6||PB&&SR||PB&&F9&6||SR&&F9&24)return this.preventSrc(qU)}}},
preventSrc:function(F9){this.manager.session.prevented=!0;F9.preventDefault()}};
Ko.prototype={defaults:{},set:function(F9){y(this.options,F9);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(F9){if(Q(F9,"recognizeWith",this))return this;var qU=this.simultaneous;F9=y0(F9,this);qU[F9.id]||(qU[F9.id]=F9,F9.recognizeWith(this));return this},
dropRecognizeWith:function(F9){if(Q(F9,"dropRecognizeWith",this))return this;F9=y0(F9,this);delete this.simultaneous[F9.id];return this},
requireFailure:function(F9){if(Q(F9,"requireFailure",this))return this;var qU=this.requireFail;F9=y0(F9,this);C(qU,F9)===-1&&(qU.push(F9),F9.requireFailure(this));return this},
dropRequireFailure:function(F9){if(Q(F9,"dropRequireFailure",this))return this;F9=y0(F9,this);F9=C(this.requireFail,F9);F9>-1&&this.requireFail.splice(F9,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(F9){return!!this.simultaneous[F9.id]},
emit:function(F9){function qU(PB){SR.manager.emit(SR.options.event+(PB?b6&16?"cancel":b6&8?"end":b6&4?"move":b6&2?"start":"":""),F9)}
var SR=this,b6=this.state;b6<8&&qU(!0);qU();b6>=8&&qU(!0)},
tryEmit:function(F9){if(this.canEmit())return this.emit(F9);this.state=32},
canEmit:function(){for(var F9=0;F9<this.requireFail.length;F9++)if(!(this.requireFail[F9].state&33))return!1;return!0},
recognize:function(F9){F9=y({},F9);F(this.options.enable,[this,F9])?(this.state&56&&(this.state=1),this.state=this.process(F9),this.state&30&&this.tryEmit(F9)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
l(BH,Ko,{defaults:{pointers:1},attrTest:function(F9){var qU=this.options.pointers;return qU===0||F9.pointers.length===qU},
process:function(F9){var qU=this.state,SR=F9.eventType,b6=qU&6;F9=this.attrTest(F9);return b6&&(SR&8||!F9)?qU|16:b6||F9?SR&4?qU|8:qU&2?qU|4:2:32}});
l(wu,BH,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var F9=this.options.direction;if(F9===30)return["none"];var qU=[];F9&6&&qU.push("pan-y");F9&24&&qU.push("pan-x");return qU},
directionTest:function(F9){var qU=this.options,SR=!0,b6=F9.distance,PB=F9.direction,uF=F9.deltaX,TJ=F9.deltaY;PB&qU.direction||(qU.direction&6?(PB=uF===0?1:uF<0?2:4,SR=uF!=this.pX,b6=Math.abs(F9.deltaX)):(PB=TJ===0?1:TJ<0?8:16,SR=TJ!=this.pY,b6=Math.abs(F9.deltaY)));F9.direction=PB;return SR&&b6>qU.threshold&&PB&qU.direction},
attrTest:function(F9){return BH.prototype.attrTest.call(this,F9)&&(this.state&2||!(this.state&2)&&this.directionTest(F9))},
emit:function(F9){this.pX=F9.deltaX;this.pY=F9.deltaY;var qU=Eu(F9.direction);qU&&this.manager.emit(this.options.event+qU,F9);this._super.emit.call(this,F9)}});
l(lF,BH,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(F9){return this._super.attrTest.call(this,F9)&&(Math.abs(F9.scale-1)>this.options.threshold||this.state&2)},
emit:function(F9){this._super.emit.call(this,F9);F9.scale!==1&&this.manager.emit(this.options.event+(F9.scale<1?"in":"out"),F9)}});
l(rZ,Ko,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(F9){var qU=this.options,SR=F9.pointers.length===qU.pointers,b6=F9.distance<qU.threshold,PB=F9.deltaTime>qU.time;this._input=F9;if(!b6||!SR||F9.eventType&12&&!PB)this.reset();else if(F9.eventType&1)this.reset(),this._timer=H(function(){this.state=8;this.tryEmit()},qU.time,this);
else if(F9.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(F9){this.state===8&&(F9&&F9.eventType&4?this.manager.emit(this.options.event+"up",F9):(this._input.timeStamp=dP(),this.manager.emit(this.options.event,this._input)))}});
l(wP,BH,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(F9){return this._super.attrTest.call(this,F9)&&(Math.abs(F9.rotation)>this.options.threshold||this.state&2)}});
l(gP,BH,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return wu.prototype.getTouchAction.call(this)},
attrTest:function(F9){var qU=this.options.direction;if(qU&30)var SR=F9.velocity;else qU&6?SR=F9.velocityX:qU&24&&(SR=F9.velocityY);return this._super.attrTest.call(this,F9)&&qU&F9.direction&&jE(SR)>this.options.velocity&&F9.eventType&4},
emit:function(F9){var qU=Eu(F9.direction);qU&&this.manager.emit(this.options.event+qU,F9);this.manager.emit(this.options.event,F9)}});
l(uX,Ko,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(F9){var qU=this.options,SR=F9.pointers.length===qU.pointers,b6=F9.distance<qU.threshold,PB=F9.deltaTime<qU.time;this.reset();if(F9.eventType&1&&this.count===0)return this.failTimeout();if(b6&&PB&&SR){if(F9.eventType!=4)return this.failTimeout();SR=this.pTime?F9.timeStamp-this.pTime<qU.interval:!0;b6=!this.pCenter||sd(this.pCenter,F9.center)<qU.posThreshold;this.pTime=F9.timeStamp;this.pCenter=F9.center;b6&&SR?this.count+=1:this.count=1;this._input=F9;if(this.count%qU.taps===0)return this.hasRequireFailures()?
(this._timer=H(function(){this.state=8;this.tryEmit()},qU.interval,this),2):8}return 32},
failTimeout:function(){this._timer=H(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))}});
cH.VERSION="2.0.2";cH.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[wP,{enable:!1}],[lF,{enable:!1},["rotate"]],[gP,{direction:6}],[wu,{direction:6},["swipe"]],[uX],[uX,{event:"doubletap",taps:2},["tap"]],[rZ]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};WH.prototype={set:function(F9){y(this.options,F9);return this},
stop:function(F9){this.session.stopped=F9?2:1},
recognize:function(F9){var qU=this.session;if(!qU.stopped){this.touchAction.preventDefaults(F9);var SR=this.recognizers,b6=qU.curRecognizer;if(!b6||b6&&b6.state&8)b6=qU.curRecognizer=null;for(var PB=0,uF=SR.length;PB<uF;PB++){var TJ=SR[PB];qU.stopped===2||b6&&TJ!=b6&&!TJ.canRecognizeWith(b6)?TJ.reset():TJ.recognize(F9);!b6&&TJ.state&14&&(b6=qU.curRecognizer=TJ)}}},
get:function(F9){if(F9 instanceof Ko)return F9;for(var qU=this.recognizers,SR=0;SR<qU.length;SR++)if(qU[SR].options.event==F9)return qU[SR];return null},
add:function(F9){if(Q(F9,"add",this))return this;var qU=this.get(F9.options.event);qU&&this.remove(qU);this.recognizers.push(F9);F9.manager=this;this.touchAction.update();return F9},
remove:function(F9){if(Q(F9,"remove",this))return this;var qU=this.recognizers;F9=this.get(F9);qU.splice(C(qU,F9),1);this.touchAction.update();return this},
on:function(F9,qU){var SR=this.handlers;T(z(F9),function(b6){SR[b6]=SR[b6]||[];SR[b6].push(qU)});
return this},
off:function(F9,qU){var SR=this.handlers;T(z(F9),function(b6){qU?SR[b6].splice(C(SR[b6],qU),1):delete SR[b6]});
return this},
emit:function(F9,qU){this.options.domEvents&&Il(F9,qU);var SR=this.handlers[F9]&&this.handlers[F9].slice();if(SR&&SR.length){qU.type=F9;qU.preventDefault=function(){qU.srcEvent.preventDefault()};
F9=0;for(var b6=SR.length;F9<b6;F9++)SR[F9](qU)}},
destroy:function(){this.element&&S5(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
y(cH,{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:WH,Input:W,TouchAction:kf,Recognizer:Ko,AttrRecognizer:BH,Tap:uX,Pan:wu,Swipe:gP,Pinch:lF,Rotate:wP,Press:rZ,on:k,off:d,each:T,merge:Z,extend:y,inherit:l,bindFn:G,prefixed:O});
f[t]=cH})(window,document,"Hammer");
return window.Hammer}.call({});
D.DOCUMENT=V;V[bmF]=D}return V[bmF]};/*

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

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 A2P;_.EtV="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");A2P=function(){var V=[],D;var f=f||_.EtV.length;for(D=0;D<8;D++)V[D]=_.EtV[0|Math.random()*f];return V.join("")};var TfY=function(){return Math.random().toString(36).substring(7).split("").join(".")},Q$F="@@redux/INIT"+TfY(),yFn="@@redux/REPLACE"+TfY();var Zg9=typeof Symbol==="function"&&Symbol.observable||"@@observable";var abY=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Yml="top right bottom left width height size weight".split(" "),$36=typeof MutationObserver!=="undefined",imP=abY&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,Sml=function(){this.mutationEventsAdded_=this.JSC$9793_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=j$3(this.refresh.bind(this))},W7E=function(V,
D){var f=V.observers_;
D=f.indexOf(D);~D&&f.splice(D,1);!f.length&&V.JSC$9793_connected_&&abY&&V.JSC$9793_connected_&&(document.removeEventListener("transitionend",V.onTransitionEnd_),window.removeEventListener("resize",V.refresh),V.mutationsObserver_&&(V.mutationsObserver_.disconnect(),imP&&(HTMLElement.prototype.attachShadow=imP)),V.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",V.refresh),V.mutationsObserver_=null,V.mutationEventsAdded_=!1,V.JSC$9793_connected_=!1)};
Sml.prototype.refresh=function(){prE(this)&&this.refresh()};
var prE=function(V){V=V.observers_.filter(function(D){return L7r(D),D.activeObservations_.length>0});
V.forEach(function(D){return Ibo(D)});
return V.length>0},Omp=function(V){if(abY&&!V.JSC$9793_connected_){document.addEventListener("transitionend",V.onTransitionEnd_);
window.addEventListener("resize",V.refresh);if($36){V.mutationsObserver_=new MutationObserver(V.refresh);var D={attributes:!0,childList:!0,characterData:!0,subtree:!0};V.mutationsObserver_.observe(document,D);imP&&(function t(n){var J=n.shadowRoot;J&&(V.mutationsObserver_.observe(J,D),t(J));for(n=n.firstElementChild;n;)t(n),n=n.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var n=imP.apply(this,_.gQ.apply(0,arguments));
V.mutationsObserver_.observe(n,D);return n})}else document.addEventListener("DOMSubtreeModified",V.refresh),V.mutationEventsAdded_=!0;
V.JSC$9793_connected_=!0}};
Sml.prototype.onTransitionEnd_=function(V){var D=V.propertyName===void 0?"":V.propertyName;Yml.some(function(f){return!!~D.indexOf(f)})&&this.refresh()};
var x3U=null;var MDV=function(V,D){for(var f=_.r(Object.keys(D)),n=f.next();!n.done;n=f.next())n=n.value,Object.defineProperty(V,n,{value:D[n],enumerable:!1,writable:!1,configurable:!0})};var uH=function(V){var D;return(V==null?void 0:(D=V.ownerDocument)==null?void 0:D.defaultView)||globalThis};var hqF={x:0,y:0,width:0,height:0},U3o=typeof SVGGraphicsElement!=="undefined"?function(V){return V instanceof uH(V).SVGGraphicsElement}:function(V){return V instanceof uH(V).SVGElement&&typeof V.getBBox==="function"};var VlE=function(V){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=V};
VlE.prototype.isActive=function(){var V=this.target;if(abY)if(U3o(V)){var D=V.getBBox();D={x:0,y:0,width:D.width,height:D.height}}else{var f=V.clientWidth,n=V.clientHeight;if(f||n){var t=uH(V).getComputedStyle(V);D=b8(t["padding-top"]);var J=b8(t["padding-left"]),H=J+b8(t["padding-right"]),Q=D+b8(t["padding-bottom"]),T=b8(t.width),y=b8(t.height);t.boxSizing==="border-box"&&(Math.round(T+H)!==f&&(T-=lXZ(t,"left","right")+H),Math.round(y+Q)!==n&&(y-=lXZ(t,"top","bottom")+Q));V!==uH(V).document.documentElement&&
(V=Math.round(T+H)-f,n=Math.round(y+Q)-n,Math.abs(V)!==1&&(T-=V),Math.abs(n)!==1&&(y-=n));D={x:J,y:D,width:T,height:y}}else D=hqF}else D=hqF;this.contentRect_=D;return D.width!==this.broadcastWidth||D.height!==this.broadcastHeight};var DaP=function(V,D){var f=D.x;var n=D.y;var t=D.width;D=D.height;var J=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);MDV(J,{x:f,y:n,width:t,height:D,top:n,right:f+t,bottom:D+n,left:f});MDV(this,{target:V,contentRect:J})};var fnV=function(V,D){var f=x3U;this.activeObservations_=[];this.observations_=new Map;if(typeof V!=="function")throw new TypeError("Ve");this.callback_=V;this.controller_=f;this.callbackCtx_=D};
fnV.prototype.observe=function(V){if(V===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(V instanceof uH(V).Element))throw new TypeError("Xe");var D=this.observations_;D.has(V)||(D.set(V,new VlE(V)),V=this.controller_,~V.observers_.indexOf(this)||V.observers_.push(this),V.JSC$9793_connected_||Omp(V),this.controller_.refresh())}};
fnV.prototype.unobserve=function(V){if(V===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(V instanceof uH(V).Element))throw new TypeError("Xe");var D=this.observations_;D.has(V)&&(D.delete(V),D.size||W7E(this.controller_,this))}};
fnV.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();W7E(this.controller_,this)};
var L7r=function(V){V.activeObservations_.splice(0);V.observations_.forEach(function(D){D.isActive()&&V.activeObservations_.push(D)})},Ibo=function(V){if(V.activeObservations_.length>0){var D=V.callbackCtx_,f=V.activeObservations_.map(function(n){var t=n.target,J=n.contentRect_;
n.broadcastWidth=J.width;n.broadcastHeight=J.height;return new DaP(t,J)});
V.callback_.call(D,f,D);V.activeObservations_.splice(0)}};var NH=function(V){if(!(this instanceof NH))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");x3U||(x3U=new Sml);this.observer_=new fnV(V,this)};
NH.prototype.observe=function(V){this.observer_.observe(V)};
NH.prototype.unobserve=function(V){this.observer_.unobserve(V)};
NH.prototype.disconnect=function(){this.observer_.disconnect()};var UbX=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:NH;var s$F="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(" "),klL={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},vsY=null,Glx=null;var BfF={},dkx=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 qkZ={text:1},mk9={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var nlF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,tlF={CONSTANT:{isUnwrappable:function(V){return V instanceof Cy},
unwrap:OxU},JAVASCRIPT:{isUnwrappable:function(V){return V instanceof _.Xt},
unwrap:AL},HTML:{isUnwrappable:function(V){return V instanceof BS},
unwrap:function(V){return uv(V)}},
RESOURCE_URL:{isUnwrappable:function(V){return V instanceof JL},
unwrap:_.HS},STRING:{isUnwrappable:function(V){return V instanceof Object},
unwrap:function(V){return String(V)}},
STYLE:{isUnwrappable:function(V){return typeof V==="string"},
unwrap:function(V){return V}},
URL:{isUnwrappable:function(V){return Kc(V)},
unwrap:_.y2}},Pel={CONSTANT:Xb9,JAVASCRIPT:Xb9,HTML:function(V){V=V instanceof BS?V:dQ(String(V).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return uv(V)},
RESOURCE_URL:Xb9,STRING:String,STYLE:Xb9,URL:function(V,D){V=nlF.test(V)?V:void 0;return V===void 0?D:V}};var IXZ=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Esn=/[\t\n\f\r ]+/,aXY=/[\t\n\f\r ,]+/g,$kL=function(V,D,f){return f},jv={},olu=function(){var V=function(){var n={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",n):n}(),D=V.createHTML(""),f=V.createScript("");
V=V.createScriptURL("");return{INNOCUOUS_STRING:D,INNOCUOUS_SCRIPT:f,INNOCUOUS_URL:V}}(),Zk=olu.INNOCUOUS_STRING,LzU=olu.INNOCUOUS_SCRIPT,pb9=olu.INNOCUOUS_URL;var JIU=function(V){var D=OgF(V);return function(f,n,t,J){return J?D(J,n,t,f):Zk}}({reportHandler:function(V,D){if(V)try{throw Error(D);
}catch(f){_.NG(f)}},
safeTypesBridge:function(V,D,f){var n=tlF[D];return n.isUnwrappable(V)&&(n=n.unwrap(V,f),n!==f)?n:(0,Pel[D])(String(V),f)},
allowedIdentifierPrefixes:[""]});if(Z5!==void 0)throw Error("Ze");Z5=JIU;if(Z5!==JIU)throw Error("$e");l8("Injectable",[]);var cDd=l8("Inject",[["token",void 0]]),gNZ=l8("Optional",[]);l8("Injectable",[]);var vNx=l8("Self",[]),k$L=l8("SkipSelf",[]);l8("Host",[]);var rIF={},HTH=function(){};
HTH.prototype.resolve=function(){throw Error("bf");};
HTH.prototype.addProvider=function(){throw Error("bf");};var G$Y=Function;var wjl=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,QtU=function(){this._reflect=window.Reflect};
_.P=QtU.prototype;_.P.factory=function(V){return function(){return new (Function.prototype.bind.apply(V,[null].concat(_.sz(_.gQ.apply(0,arguments)))))}};
_.P._zipTypesAndAnnotations=function(V,D){var f=typeof V==="undefined"?Array(D.length):Array(V.length);for(var n=0;n<f.length;n++)f[n]=typeof V==="undefined"?[]:V[n]!=Object?[V[n]]:[],D&&MPd(D[n])&&(f[n]=f[n].concat(D[n]));return f};
_.P._ownParameters=function(V,D){if(wjl.exec(V.toString()))return null;if(V.parameters&&V.parameters!==D.parameters)return V.parameters;var f=V.ctorParameters;return f&&f!==D.ctorParameters?(D=typeof f==="function"?f():f,V=D.map(function(n){return n&&n.type}),D=D.map(function(n){return n&&UkZ(n.decorators)}),this._zipTypesAndAnnotations(V,D)):MPd(this._reflect)&&MPd(this._reflect.getOwnMetadata)&&(D=this._reflect.getOwnMetadata("parameters",V),(f=this._reflect.getOwnMetadata("design:paramtypes",V))||
D)?this._zipTypesAndAnnotations(f,D):Array(V.length).fill(void 0)};
_.P.parameters=function(V){if(!V.prototype)return[];var D=Object.getPrototypeOf(V.prototype).constructor;(V=this._ownParameters(V,D))||D===Object||(V=this.parameters(D));return V||[]};
_.P._ownAnnotations=function(V,D){if(V.annotations&&V.annotations!==D.annotations)return V=V.annotations,typeof V==="function"&&V.annotations&&(V=V.annotations),V;if(V.decorators&&V.decorators!==D.decorators)return UkZ(V.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",V)};
_.P.annotations=function(V){var D=Object.getPrototypeOf(V.prototype).constructor;V=this._ownAnnotations(V,D)||[];return(D!==Object?this.annotations(D):[]).concat(V)};
_.P._ownPropMetadata=function(V,D){if(V.propMetadata&&V.propMetadata!==D.propMetadata)return V=V.propMetadata,typeof V==="function"&&V.propMetadata&&(V=V.propMetadata),V;if(V.propDecorators&&V.propDecorators!==D.propDecorators){var f=V.propDecorators,n={};Object.keys(f).forEach(function(t){n[t]=UkZ(f[t])});
return n}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",V)};
_.P.propMetadata=function(V){var D=Object.getPrototypeOf(V.prototype).constructor,f={};if(D!==Object){var n=this.propMetadata(D);Object.keys(n).forEach(function(J){f[J]=n[J]})}var t=this._ownPropMetadata(V,D);
t&&Object.keys(t).forEach(function(J){var H=[];f.hasOwnProperty(J)&&H.push.apply(H,_.sz(f[J]));H.push.apply(H,_.sz(t[J]));f[J]=H});
return f};
_.P.getter=function(V){return function(D){return D[V]}};
_.P.method=function(V){return function(D,f){if(!D[V])throw Error("cf`"+V);return D[V].apply(D,f)}};var Tku=function(){};var bTu=function(V){this.reflectionCapabilities=V};
_.v(bTu,Tku);_.P=bTu.prototype;_.P.factory=function(V){return this.reflectionCapabilities.factory(V)};
_.P.parameters=function(V){return this.reflectionCapabilities.parameters(V)};
_.P.annotations=function(V){return this.reflectionCapabilities.annotations(V)};
_.P.propMetadata=function(V){return this.reflectionCapabilities.propMetadata(V)};
_.P.getter=function(V){return this.reflectionCapabilities.getter(V)};
_.P.method=function(V){return this.reflectionCapabilities.method(V)};var rDn=new bTu(new QtU);var mC=function(V,D){this.token=V;this.id=D;if(V===void 0||V===null)throw Error("hf");};
_.IG.Object.defineProperties(mC.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return GR(this.token)}}});
_.IG.Object.defineProperties(mC,{JSC$9835_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return c8.JSC$9839_numberOfKeys}}});
var KAL=function(){this._allKeys=new Map};
KAL.prototype.get=function(V){if(V instanceof mC)return V;if(this._allKeys.has(V))return this._allKeys.get(V);var D=new mC(V,mC.JSC$9835_numberOfKeys);this._allKeys.set(V,D);return D};
_.IG.Object.defineProperties(KAL.prototype,{JSC$9839_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var c8=new KAL;var szX=function(V,D,f){this.key=V;this.optional=D;this.visibility=f},wNF=function(V){return new szX(V,!1,null)},TTZ=[],yDx=function(V,D,f){this.key=V;
this.resolvedFactories=D;this.multiProvider=f},bp9=function(V,D,f,n){this.factory=V;
this.dependencies=D;this.providerClass=f;this.providerValue=n};var zT={},RF=function(V,D){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=D===void 0?null:D;V=_.r(V);for(D=V.next();!D.done;D=V.next())this.addProvider(D.value)};
_.P=RF.prototype;_.P.addProvider=function(V){this.keyIdToIndex.set(V.key.id,this.keyIds.length);this.providers.push(V);this.keyIds.push(V.key.id);this.objs.push(zT)};
_.P.resolve=function(V,D){D=D===void 0?rIF:D;return this._getByKey(c8.get(ev(V)),null,D)};
_.P._new=function(V){if(this.constructedKeyIds[V.key.id])throw Pg3(this,V.key);this.constructedKeyIds[V.key.id]=!0;return this._instantiateProvider(V)};
_.P._instantiateProvider=function(V){if(V.multiProvider){for(var D=Array(V.resolvedFactories.length),f=0;f<V.resolvedFactories.length;++f)D[f]=this._instantiate(V,V.resolvedFactories[f]);return D}return this._instantiate(V,V.resolvedFactories[0])};
_.P._instantiate=function(V,D){var f=this,n=D.factory;try{var t=D.dependencies.map(function(H){return f._getByReflectiveDependency(H)})}catch(H){throw H.addKey&&H.addKey(this,V.key),H;
}try{var J=n.apply(null,_.sz(t))}catch(H){throw oNU(this,H,V.key);}return J};
_.P._getByReflectiveDependency=function(V){return this._getByKey(V.key,V.visibility,V.optional?null:rIF)};
_.P._getByKey=function(V,D,f){return V===yIP?this:D instanceof vNx?this._getByKeySelf(V,f):this._getByKeyDefault(V,f,D)};
_.P._getObjByKeyId=function(V){for(var D=0;D<this.keyIds.length;D++)if(this.keyIds[D]===V)return this.objs[D]===zT&&(this.objs[D]=this._new(this.providers[D])),this.objs[D];return zT};
_.P._throwOrNull=function(V,D){if(D!==rIF)return D;throw t$L(this,V);};
_.P._getByKeySelf=function(V,D){var f=this._getObjByKeyId(V.id);return f!==zT?f:this._throwOrNull(V,D)};
_.P._getByKeyDefault=function(V,D,f){for(var n=f=f instanceof k$L?this.parent:this;f instanceof RF;){var t=f._getObjByKeyId(V.id);if(t!==zT)return t;f=f.parent}t=void 0;if(f!==null)try{var J=f.resolve(V.token,D);if(J!==zT)return J}catch(H){t=H}if(!(n instanceof RF&&dMx(V.token))){if(t)throw t;return this._throwOrNull(V,D)}for(J=n;J.parent instanceof RF;)J=J.parent;J.addProvider(Zpx({provide:V.token,useClass:V.token}));return J.resolve(V.token,D)};
_.P.toString=function(){return this.displayName};
_.IG.Object.defineProperties(RF.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+BTx(this,function(V){return' "'+V.key.displayName+'" '}).join(", ")+"])"}}});
var yIP=c8.get(ev(HTH));(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 ZTE=window.XRegExp;var jtL=-1,lno=function(V){addEventListener("pageshow",function(D){D.persisted&&(jtL=D.timeStamp,V(D))},!0)};var eCE=function(V,D,f){var n=GkL,t,J;return function(H){if(D.value>=0&&(H||f)){var Q;if((J=D.value-((Q=t)!=null?Q:0))||t===void 0)t=D.value,D.delta=J,H=D.value,D.rating=H>n[1]?"poor":H>n[0]?"needs-improvement":"good",V(D)}}};var cIV=function(V){requestAnimationFrame(function(){return requestAnimationFrame(function(){return V()})})};var FAu=function(){var V=performance.getEntriesByType("navigation")[0];if(V&&V.responseStart>0&&V.responseStart<performance.now())return V};var glF=function(){var V,D;return(D=(V=FAu())==null?void 0:V.activationStart)!=null?D:0};var vlP=function(){var V=V===void 0?-1:V;var D=FAu(),f="navigate";jtL>=0?f="back-forward-cache":D&&(document.prerendering||glF()>0?f="prerender":document.wasDiscarded?f="restore":D.type&&(f=D.type.replace(/_/g,"-")));return{name:"LCP",value:V,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:f}};var NTx=new WeakMap;var kku=function(V){var D=D===void 0?{}:D;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var f=new PerformanceObserver(function(n){Promise.resolve().then(function(){V(n.getEntries())})});
f.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},D));return f}}catch(n){}};var st6=function(V){var D=!1;return function(){D||(V(),D=!0)}};var Cf=-1,Bku=function(V){document.visibilityState==="hidden"&&Cf>-1&&(Cf=V.type==="visibilitychange"?V.timeStamp:0,removeEventListener("visibilitychange",Bku,!0),removeEventListener("prerenderingchange",Bku,!0))},dao=function(){addEventListener("visibilitychange",Bku,!0);
addEventListener("prerenderingchange",Bku,!0)},uhF=function(){if(Cf<0){var V=glF(),D,f;
Cf=(f=document.prerendering?void 0:(D=globalThis.performance.getEntriesByType("visibility-state").filter(function(n){return n.name==="hidden"&&n.startTime>V})[0])==null?void 0:D.startTime)!=null?f:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
dao();lno(function(){setTimeout(function(){Cf=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;dao()})})}return{get firstHiddenTime(){return Cf}}};var NkY=function(V){document.prerendering?addEventListener("prerenderingchange",function(){return V()},!0):V()};var maE=function(V){var D=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?V():(V=st6(V),document.addEventListener("visibilitychange",V,{once:!0}),D(function(){V();document.removeEventListener("visibilitychange",V)}))};var uPZ=function(){};
uPZ.prototype._processEntry=function(V){var D;(D=this._onBeforeProcessingEntry)==null||D.call(this,V)};var GkL=[2500,4E3],JJZ=function(V){var D=D===void 0?{}:D;NkY(function(){var f=uhF(),n=vlP(),t=mMc(D),J=function(l){D.reportAllChanges||(l=l.slice(-1));l=_.r(l);for(var G=l.next();!G.done;G=l.next())G=G.value,t._processEntry(G),G.startTime<f.firstHiddenTime&&(n.value=Math.max(G.startTime-glF(),0),n.entries=[G],Q())},H=kku(J);
if(H){var Q=eCE(V,n,D.reportAllChanges);for(var T=st6(function(){J(H.takeRecords());H.disconnect();Q(!0)}),y=_.r(["keydown",
"click","visibilitychange"]),Z=y.next();!Z.done;Z=y.next())addEventListener(Z.value,function(){return maE(T)},{capture:!0,
once:!0});lno(function(l){n=vlP();Q=eCE(V,n,D.reportAllChanges);cIV(function(){n.value=performance.now()-l.timeStamp;Q(!0)})})}})};var zCu;var RCE;_.h=function(){return RCE!==void 0?RCE:RCE=document.createElement("template")};
document.head.appendChild(_.h().content);var CeE;_.Bt({_template:function(){if(CeE!==void 0)return CeE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;zCu===void 0&&(zCu=document.createElement("template"));var n=zCu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return CeE=V},
is:"tp-yt-app-toolbar"});var qop;var Xj6;_.qH=function(){};
_.qH=_.Bt({_template:function(){if(Xj6!==void 0)return Xj6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;qop===void 0&&(qop=document.createElement("template"));var n=qop;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return Xj6=V},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.qH.instance||(_.qH.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(V){this._text===V&&(V+="\u00a0");this._text="";this.async(function(){this._text=V},this.timeout)},
_onIronAnnounce:function(V){V.detail&&V.detail.text&&this.announce(V.detail.text)}});
_.qH.instance=null;_.qH.requestAvailability=function(){_.qH.instance||(_.qH.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.qH.instance):document.addEventListener("load",function(){document.body.appendChild(_.qH.instance)})};var Elr;var AIl;/*

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

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 XK,pjH,LAH;XK=Element.prototype;pjH=XK.matches||XK.matchesSelector||XK.mozMatchesSelector||XK.msMatchesSelector||XK.oMatchesSelector||XK.webkitMatchesSelector;LAH=function(){};
_.OTU=function(V){var D=Inl,f=[];return D._collectTabbableNodes(V,f)?D._sortByTabIndex(f):f};
_.P=LAH.prototype;_.P._normalizedTabIndex=function(V){return(pjH.call(V,"input, select, textarea, button, object")?pjH.call(V,":not([disabled])"):pjH.call(V,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(V=V.getAttribute("tabindex")||0,Number(V)):-1};
_.P._collectTabbableNodes=function(V,D){if(V.nodeType!==Node.ELEMENT_NODE||!this._isVisible(V))return!1;var f=this._normalizedTabIndex(V),n=f>0;f>=0&&D.push(V);if(V.localName==="content"||V.localName==="slot")f=_.Fw(V).getDistributedNodes();else{var t;f=((t=_.Fw(V).shadowRoot)!=null?t:_.Fw(V.root||V)).children}for(V=0;V<f.length;V++)n=this._collectTabbableNodes(f[V],D)||n;return n};
_.P._isVisible=function(V){var D=V.style;return D.visibility!=="hidden"&&D.display!=="none"?(D=window.getComputedStyle(V),D.visibility!=="hidden"&&D.display!=="none"):!1};
_.P._sortByTabIndex=function(V){var D=V.length;if(D<2)return V;var f=Math.ceil(D/2);D=this._sortByTabIndex(V.slice(0,f));V=this._sortByTabIndex(V.slice(f));return this._mergeSortByTabIndex(D,V)};
_.P._mergeSortByTabIndex=function(V,D){for(var f=[];V.length>0&&D.length>0;)this._hasLowerTabOrder(V[0],D[0])?f.push(D.shift()):f.push(V.shift());return f.concat(V,D)};
_.P._hasLowerTabOrder=function(V,D){V=Math.max(V.tabIndex,0);D=Math.max(D.tabIndex,0);return V===0||D===0?D>V:V>D};
var Inl=new LAH;var xar;var MlF;_.Bt({_template:function(){if(MlF!==void 0)return MlF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;xar===void 0&&(xar=document.createElement("template"));var n=xar;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return MlF=V},
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&&_.Fw(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Fw(this.parentNode).removeChild(this)},
_onTransitionend:function(V){V&&V.target===this&&this.complete()},
_openedChanged:function(V){V?this.prepare():(V=window.getComputedStyle(this),V.transitionDuration!=="0s"&&V.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 Ep=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;B1(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)};
Ep.prototype._bringOverlayAtIndexToFront=function(V){var D=this._overlays[V];if(D){var f=this._overlays.length-1,n=this._overlays[f];n&&this._shouldBeBehindOverlay(D,n)&&f--;if(!(V>=f)){n=Math.max(this._getZ(_.hC6(this)),this._minimumZ);for(this._getZ(D)<=n&&this._applyOverlayZ(D,n);V<f;)this._overlays[V]=this._overlays[V+1],V++;this._overlays[f]=D}}};
Ep.prototype.addOverlay=function(V){var D=this._overlays.indexOf(V);if(D>=0)this._bringOverlayAtIndexToFront(D);else{D=this._overlays.length;var f=this._overlays[D-1],n=Math.max(this._getZ(f),this._minimumZ),t=this._getZ(V);f&&this._shouldBeBehindOverlay(V,f)&&(this._applyOverlayZ(f,n),D--,n=Math.max(this._getZ(this._overlays[D-1]),this._minimumZ));t<=n&&this._applyOverlayZ(V,n);this._overlays.splice(D,0,V)}this.trackBackdrop()};
Ep.prototype.removeOverlay=function(V){V=this._overlays.indexOf(V);V!==-1&&(this._overlays.splice(V,1),this.trackBackdrop())};
_.hC6=function(V){return V._overlays[V._overlays.length-1]};
_.P=Ep.prototype;_.P.trackBackdrop=function(){var V=this._overlayWithBackdrop();if(V||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(V)-1,this.backdropElement.opened=!!V,this.backdropElement.prepare()};
_.P._overlayWithBackdrop=function(){for(var V=this._overlays.length-1;V>=0;V--)if(this._overlays[V].withBackdrop)return this._overlays[V]};
_.P._getZ=function(V){var D=this._minimumZ;if(V){var f,n,t=Number(((f=V.hostElement)!=null?f:V).style.zIndex||window.getComputedStyle((n=V.hostElement)!=null?n:V).zIndex);t===t&&(D=t)}return D};
_.P._setZ=function(V,D){var f;((f=V.hostElement)!=null?f:V).style.zIndex=D};
_.P._applyOverlayZ=function(V,D){this._setZ(V,D+2)};
_.P._overlayInPath=function(V){V=V||[];for(var D=0;D<V.length;D++){var f=void 0;if(((f=V[D].polymerController)!=null?f:V[D])._manager===this)return V[D]}};
_.P._onCaptureClick=function(V){var D=this._overlays.length-1;if(D!==-1)for(var f=_.Fw(V).path,n,t;(n=this._overlays[D])&&this._overlayInPath(f)!==((t=n.hostElement)!=null?t:n);)if(n._onCaptureClick(V),n.allowClickThrough)D--;else break};
_.P._onCaptureFocus=function(V){var D=_.hC6(this);D&&D._onCaptureFocus(V)};
_.P._onCaptureKeyDown=function(V){var D=_.hC6(this);D&&(_.ja.keyboardEventMatchesKeys(V,"esc")?D._onCaptureEsc(V):_.ja.keyboardEventMatchesKeys(V,"tab")&&D._onCaptureTab(V))};
_.P._shouldBeBehindOverlay=function(V,D){return!V.alwaysOnTop&&D.alwaysOnTop&&!D.contains(V)};
_.IG.Object.defineProperties(Ep.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 V=document.activeElement;V&&V instanceof Element!==!1||(V=document.body);for(;V.root&&_.Fw(V.root).activeElement;)V=_.Fw(V.root).activeElement;return V}}});
_.AV=new Ep;var zc9=0,Rcc=0,Cgx=null,qOU=[],g2=["wheel","mousewheel","DOMMouseScroll"],XNc;_.c("web_no_lock_on_touchstart_killswitch")&&(g2.push("touchstart"),g2.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;_.aF={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:_.AV},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var V;return this._focusedChild||_.Fw((V=this.hostElement)!=null?V:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var V;return _.OTU((V=this.hostElement)!=null?V: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 V;this._observer=_.Fw((V=this.hostElement)!=null?V:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var V;_.Fw((V=this.hostElement)!=null?V:this).unobserveNodes(this._observer)}this._observer=null;for(var D in this.__rafs)this.__rafs[D]!==null&&cancelAnimationFrame(this.__rafs[D]);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(V){this.fire("iron-overlay-canceled",V,{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 V;((V=this.hostElement)!=null?V:this).style.outline="none";var D;((D=this.hostElement)!=null?D:this).style.display="none"}},
_openedChanged:function(V){if(V){var D;((D=this.hostElement)!=null?D:this).removeAttribute("aria-hidden")}else{var f;((f=this.hostElement)!=null?f: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 V;if(this.withBackdrop&&!((V=this.hostElement)!=null?V:this).hasAttribute("tabindex")){var D;((D=this.hostElement)!=null?D:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var f;((f=this.hostElement)!=null?f: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 V;((V=this.hostElement)!=null?V:this).style.display="none";var D;((D=this.hostElement)!=null?D:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var V,D;((V=this.hostElement)!=null?V:this).style.transition=((D=this.hostElement)!=null?D:this).style.webkitTransition="none";var f,n;((f=this.hostElement)!=null?f:this).style.transform=((n=this.hostElement)!=null?n:this).style.webkitTransform="none";var t;((t=this.hostElement)!=null?t:this).style.display=""},
_finishPositioning:function(){var V;((V=this.hostElement)!=null?V:this).style.display="none";this.scrollTop=this.scrollTop;var D,f;((D=this.hostElement)!=null?D:this).style.transition=((f=this.hostElement)!=null?f:this).style.webkitTransition="";var n,t;((n=this.hostElement)!=null?n:this).style.transform=((t=this.hostElement)!=null?t:this).style.webkitTransform="";var J;((J=this.hostElement)!=null?J:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var V=this._manager.deepActiveElement,D;if(!(D=V===document.body))a:{for(;V;V=V.assignedSlot||V.parentNode||V.host)if(V===this){D=!0;break a}D=!1}D&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(V){this.noCancelOnOutsideClick||this.cancel(V)},
_onCaptureFocus:function(V){if(this.withBackdrop){var D=_.Fw(V).path;D.indexOf(this)===-1?(V.stopPropagation(),this._applyFocus()):this._focusedChild=D[0]}},
_onCaptureEsc:function(V){this.noCancelOnEscKey||this.cancel(V)},
_onCaptureTab:function(V){if(this.withBackdrop){this.__ensureFirstLastFocusables();var D=V.shiftKey,f=D?this.__firstFocusableNode:this.__lastFocusableNode;D=D?this.__lastFocusableNode:this.__firstFocusableNode;if(f===D)f=!0;else{var n=this._manager.deepActiveElement;f=n===f||n===this}f&&(V.preventDefault(),this._focusedChild=D,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 V=this._focusableNodes;this.__firstFocusableNode=V[0];this.__lastFocusableNode=V[V.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(V,D){var f=this.__rafs;f[V]!==null&&cancelAnimationFrame(f[V]);f[V]=requestAnimationFrame(function(){f[V]=null;D.call(this)}.bind(this))},
__updateScrollObservers:function(V,D,f){V&&D&&this.__isValidScrollAction(f)?(f==="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),XNc=_._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()):(V=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),V!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(V,1),XNc=_._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(RG)for(var V=this;V;)V.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&V.host&&this.__rootNodes.push(V),V=V.host||V.assignedSlot||V.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(D){D.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(V){V.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(V){return V==="lock"||V==="refit"||V==="cancel"},
__onCaptureScroll:function(V){if(!(this.__isAnimating||_.Fw(V).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(V)}},
__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)}};
_.Y0=[WAU,_.sp,_.aF];_.Bt({_template:function(){if(iT6!==void 0)return iT6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;$aP===void 0&&($aP=document.createElement("template"));var n=$aP;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return iT6=V},
is:"tp-yt-iron-dropdown",behaviors:[_.lH,_.ja,_.Y0,zqu],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 V=_.Fw(this.$.content).getDistributedNodes(),D=0,f=V.length;D<f;D++)if(V[D].nodeType===Node.ELEMENT_NODE)return V[D]},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(),_.aF._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.aF._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.aF._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var V=this.containedElement,D=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),f=0;f<D.length;f++)D[f].node=V;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(V){this._readied&&(V?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var V=this.focusTarget||this.containedElement;V&&this.opened&&!this.noAutoFocus?V.focus():_.aF._applyFocus.apply(this,arguments)}});var UaF;var VKP;/*

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 DsV=new _.FK({type:"iconset"});
_.Bt({_template:function(){if(VKP!==void 0)return VKP;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;UaF===void 0&&(UaF=document.createElement("template"));
var n=UaF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return VKP=V},
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(V){V=(V||"").split(":");this._iconName=V.pop();this._iconsetName=V.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&&_.Fw(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=DsV.byKey(this._iconsetName)){var V=this._iconset.applyIcon(this,this._iconName,this.theme);V&&V.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,_.Fw(this.root).appendChild(this._img)}});var ftH;var nCu;_.Bt({_template:function(){if(nCu!==void 0)return nCu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;ftH===void 0&&(ftH=document.createElement("template"));var n=ftH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return nCu=V},
is:"tp-yt-iron-input",behaviors:[_.vY],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(){_.qH.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Fw(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Fw(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 V=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":V=/[0-9.,e-]/}return V},_bindValueChanged:function(V,D){D&&(V===void 0?D.value=null:V!==D.value&&(this.inputElement.value=V),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:V}))},
_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(V){var D=V.keyCode==19||V.keyCode==20||V.keyCode==45||V.keyCode==46||V.keyCode==144||V.keyCode==145||V.keyCode>32&&V.keyCode<41||V.keyCode>111&&V.keyCode<124;return!(V.keyCode==8||V.keyCode==9||V.keyCode==13||V.keyCode==27)&&!(V.charCode==0&&D)},
_onKeypress:function(V){if(this.allowedPattern||this.inputElement.type==="number"){var D=this._patternRegExp;if(D&&!(V.metaKey||V.ctrlKey||V.altKey)){this._patternAlreadyChecked=!0;var f=String.fromCharCode(V.charCode);this._isPrintable(V)&&!D.test(f)&&(V.preventDefault(),this._announceInvalidCharacter("Invalid character "+f+" not entered."))}}},
_checkPatternValidity:function(){var V=this._patternRegExp;if(!V)return!0;for(var D=0;D<this.inputElement.value.length;D++)if(!V.test(this.inputElement.value[D]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var V=this.inputElement.checkValidity();V&&(this.required&&this.bindValue===""?V=!1:this.hasValidator()&&(V=_.vY.validate.call(this,this.bindValue)));this.invalid=!V;this.fire("iron-input-validate");return V},
_announceInvalidCharacter:function(V){this.fire("iron-announce",{text:V})},
_computeValue:function(V){return V}});var tKl;var Pfp;var oCp=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),JYU=oCp&&oCp[1]>=8;
_.Bt({_template:function(){if(Pfp!==void 0)return Pfp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;tKl===void 0&&(tKl=document.createElement("template"));var n=tKl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return Pfp=V},
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:[fwY,_.sp,_.m3u,llP],_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 _.Fw(_.Fw(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var V=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,V-this._physicalCount)},set _virtualStart(V){V=this._clamp(V,0,this._maxVirtualStart);this.grid&&(V-=V%this._itemsPerRow);this._virtualStartVal=V},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(V){V%=this._physicalCount;V<0&&(V=this._physicalCount+V);this.grid&&(V-=V%this._itemsPerRow);this._physicalStartVal=V},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(V){this._physicalCountVal=V},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 V=this._firstVisibleIndexVal;if(V==null){var D=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
V=this._iterateItems(function(f,n){D+=this._getPhysicalSizeIncrement(f);if(D>this._scrollPosition)return this.grid?n-n%this._itemsPerRow:n;if(this.grid&&this._virtualCount-1===n)return n-n%this._itemsPerRow})||0}return V},
get lastVisibleIndex(){var V=this._lastVisibleIndexVal;if(V==null){if(this.grid)V=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var D=this._physicalTop+this._scrollOffset;this._iterateItems(function(f,n){D<this._scrollBottom&&(V=n);D+=this._getPhysicalSizeIncrement(f)})}this._lastVisibleIndexVal=V}return V},
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,_.sm);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(V){this.style.webkitOverflowScrolling=V===this?"touch":"";this.style.overflowY=V===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.sm)},
updateViewportBoundaries:function(){var V=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(V["padding-top"],10);this._isRTL=V.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var V=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),D=V-this._scrollPosition,f=D>=0;this._scrollPosition=V;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(D)>this._physicalSize&&this._physicalSize>0?(D-=this._scrollOffset,f=Math.round(D/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=f,this._physicalStart+=f,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(V=this._getReusables(f),f?(this._physicalTop=V.physicalTop,this._virtualStart+=V.indexes.length,this._physicalStart+=V.indexes.length):(this._virtualStart=this._virtualStart-V.indexes.length,this._physicalStart=this._physicalStart-V.indexes.length),this._update(V.indexes,f?null:V.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),N2))},
_getReusables:function(V){var D=[],f=this._hiddenContentSize*this._ratio,n=this._virtualStart,t=this._virtualEnd,J=this._physicalCount,H=this._physicalTop+this._scrollOffset;var Q=this._physicalBottom+this._scrollOffset;var T=this._scrollPosition,y=this._scrollBottom;if(V){var Z=this._physicalStart;Q=T-H}else Z=this._physicalEnd,Q-=y;for(;;){var l=this._getPhysicalSizeIncrement(Z);Q-=l;if(D.length>=J||Q<=f)break;if(V){if(t+D.length+1>=this._virtualCount)break;if(H+l>=T-this._scrollOffset)break;D.push(Z);
H+=l;Z=(Z+1)%J}else{if(n-D.length<=0)break;if(H+this._physicalSize-l<=y)break;D.push(Z);H-=l;Z=Z===0?J-1:Z-1}}return{indexes:D,physicalTop:H-this._scrollOffset}},
_update:function(V,D){if(!(V&&V.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(V);this._updateMetrics(V);if(D)for(;D.length;)V=D.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(V);this._positionItems();this._updateScrollerSize()}},
_createPool:function(V){this._ensureTemplatized();var D,f=Array(V);for(D=0;D<V;D++){var n=this.stamp(null);f[D]=n.root.querySelector("*");this._itemsParent.appendChild(n.root)}return f},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(V){V=this._clamp(this._physicalCount+V,3,this._virtualCount-this._virtualStart);V=this._convertIndexToCompleteRow(V);if(this.grid){var D=V%this._itemsPerRow;D&&V-D<=this._physicalCount&&(V+=this._itemsPerRow);V-=D}V-=this._physicalCount;D=Math.round(this._physicalCount*.5);if(!(V<0)){if(V>0){D=window.performance.now();[].push.apply(this._physicalItems,this._createPool(V));for(var f=0;f<V;f++)this._physicalSizes.push(0);this._physicalCount+=V;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=V);this._update();this._templateCost=(window.performance.now()-D)/V;D=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||D===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,D)),Vvo):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,D),N2))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var V=this._getReusables(!0);this._physicalTop=V.physicalTop;this._virtualStart+=V.indexes.length;this._physicalStart+=V.indexes.length;this._update(V.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 V={__key__:!0};V[this.as]=!0;V[this.indexAs]=!0;V[this.selectedAs]=!0;V.tabIndex=!0;this._instanceProps=V;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(V,D){typeof D!=="undefined"&&(this.notifyResize(),_.oa(),V&&this._updateGridMetrics())},
_itemsChanged:function(V){if(V.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,
_.sm);else if(V.path==="items.splices"){this._adjustVirtualIndex(V.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(V.value.indexSplices.some(function(f){return f.addedCount>0||f.removed.length>0})){var D=this._getActiveElement();
this.contains(D)&&D.blur()}V=V.value.indexSplices.some(function(f){return f.index+f.addedCount>=this._virtualStart&&f.index<=this._virtualEnd},this);
this._isClientFull()&&!V||this._debounce("_render",this._render,_.sm)}else V.path!=="items.length"&&this._forwardItemPath(V.path,V.value)},
_forwardItemPath:function(V,D){V=V.slice(6);var f=V.indexOf(".");f===-1&&(f=V.length);var n,t=this.modelForElement(this._offscreenFocusedItem),J=parseInt(V.substring(0,f),10);if(n=this._isIndexRendered(J)){var H=this._getPhysicalIndex(J);var Q=this.modelForElement(this._physicalItems[H])}else t&&(Q=t);Q&&Q[this.indexAs]===J&&(V=V.substring(f+1),V=this.as+(V?"."+V:""),Q._setPendingPropertyOrPath(V,D,!1,!0),Q._flushProperties&&Q._flushProperties(),n&&(this._updateMetrics([H]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(V){V.forEach(function(D){D.removed.forEach(this._removeItem,this);D.index<this._virtualStart&&(D=Math.max(D.addedCount-D.removed.length,D.index-this._virtualStart),this._virtualStart+=D,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=D))},this)},
_removeItem:function(V){this.$.selector.deselect(V);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===V&&this._removeFocusedItem()},
_iterateItems:function(V,D){var f,n;if(arguments.length===2&&D)for(n=0;n<D.length;n++){var t=D[n];var J=this._computeVidx(t);if((f=V.call(this,t,J))!=null)return f}else{t=this._physicalStart;for(J=this._virtualStart;t<this._physicalCount;t++,J++)if((f=V.call(this,t,J))!=null)return f;for(t=0;t<this._physicalStart;t++,J++)if((f=V.call(this,t,J))!=null)return f}},
_computeVidx:function(V){return V>=this._physicalStart?this._virtualStart+(V-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+V},
_assignModels:function(V){this._iterateItems(function(D,f){var n=this._physicalItems[D],t=this.items&&this.items[f];if(t!=null){var J=this.modelForElement(n);J.__key__=null;this._forwardProperty(J,this.as,t);this._forwardProperty(J,this.selectedAs,this.$.selector.isSelected(t));this._forwardProperty(J,this.indexAs,f);this._forwardProperty(J,"tabIndex",this._focusedVirtualIndex===f?0:-1);this._physicalIndexForKey[J.__key__]=D;J._flushProperties&&J._flushProperties(!0);n.removeAttribute("hidden")}else n.setAttribute("hidden",
"")},V)},
_updateMetrics:function(V){_.oa();var D=0,f=0,n=this._physicalAverageCount,t=this._physicalAverage;this._iterateItems(function(J){f+=this._physicalSizes[J];this._physicalSizes[J]=this._physicalItems[J].offsetHeight;D+=this._physicalSizes[J];this._physicalAverageCount+=this._physicalSizes[J]?1:0},V);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(f=this._itemsPerRow===1?f:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+D-f,this._itemsPerRow=1);this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((t*n+D)/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 V=this._physicalTop;if(this.grid){var D=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(f,n){var t=Math.floor(n%this._itemsPerRow*this._itemWidth+D);this._isRTL&&(t*=-1);this.translate3d(t+"px",V+"px",0,this._physicalItems[f]);this._shouldRenderNextRow(n)&&(V+=this._rowHeight)})}else this._iterateItems(function(f){this.translate3d(0,V+"px",0,this._physicalItems[f]);
V+=this._physicalSizes[f]})},
_getPhysicalSizeIncrement:function(V){return this.grid?this._computeVidx(V)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[V]},
_shouldRenderNextRow:function(V){return V%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var V=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(V!==0){this._physicalTop=this._physicalTop-V;var D=this._scrollPosition;!JYU&&D>0&&this._resetScrollPosition(D-V)}},
_resetScrollPosition:function(V){this.scrollTarget&&V>=0&&(this._scrollPosition=this._scrollTop=V)},
_updateScrollerSize:function(V){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((V=(V=(V=V||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(V){return this.scrollToIndex(this.items.indexOf(V))},
scrollToIndex:function(V){if(!(typeof V!=="number"||V<0||V>this.items.length-1)&&(_.oa(),this._physicalCount!==0)){V=this._clamp(V,0,this._virtualCount-1);if(!this._isIndexRendered(V)||V>=this._maxVirtualStart)this._virtualStart=this.grid?V-this._itemsPerRow*2:V-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var D=this._physicalStart,f=this._virtualStart,n=0,t=this._hiddenContentSize;f<V&&
n<=t;)n+=this._getPhysicalSizeIncrement(D),D=(D+1)%this._physicalCount,f++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+n);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)},_.sm)},
selectItem:function(V){return this.selectIndex(this.items.indexOf(V))},
selectIndex:function(V){if(!(V<0||V>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(V)){var D=this.modelForElement(this._physicalItems[this._getPhysicalIndex(V)]);D&&(D[this.selectedAs]=!0);this.updateSizeForIndex(V)}this.$.selector.selectIndex(V)}},
deselectItem:function(V){return this.deselectIndex(this.items.indexOf(V))},
deselectIndex:function(V){V<0||V>=this._virtualCount||(this._isIndexRendered(V)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(V)])[this.selectedAs]=!1,this.updateSizeForIndex(V)),this.$.selector.deselectIndex(V))},
toggleSelectionForItem:function(V){return this.toggleSelectionForIndex(this.items.indexOf(V))},
toggleSelectionForIndex:function(V){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(V):this.$.selector.isSelected(this.items[V]))?this.deselectIndex(V):this.selectIndex(V)},
clearSelection:function(){this._iterateItems(function(V){this.modelForElement(this._physicalItems[V])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(V){(V?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(V){var D=this.modelForElement(V.target);if(D){var f=_.Fw(V).path[0];V=this._getActiveElement();var n=this._physicalItems[this._getPhysicalIndex(D[this.indexAs])];if(f.localName!=="input"&&f.localName!=="button"&&f.localName!=="select"){f=D.tabIndex;D.tabIndex=-100;var t=V?V.tabIndex:-1;D.tabIndex=f;V&&n!==V&&n.contains(V)&&t!==-100||this.toggleSelectionForItem(D[this.as])}}},
_multiSelectionChanged:function(V){this.clearSelection();this.$.selector.multi=V},
updateSizeForItem:function(V){return this.updateSizeForIndex(this.items.indexOf(V))},
updateSizeForIndex:function(V){if(!this._isIndexRendered(V))return null;this._updateMetrics([this._getPhysicalIndex(V)]);this._positionItems();return null},
_manageFocus:function(){var V=this._focusedVirtualIndex;V>=0&&V<this._virtualCount?this._isIndexRendered(V)?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(V){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(V/this._itemsPerRow)*this._itemsPerRow:V},
_isIndexRendered:function(V){return V>=this._virtualStart&&V<=this._virtualEnd},
_isIndexVisible:function(V){return V>=this.firstVisibleIndex&&V<=this.lastVisibleIndex},
_getPhysicalIndex:function(V){return(this._physicalStart+(V-this._virtualStart))%this._physicalCount},
focusItem:function(V){this._focusPhysicalItem(V)},
_focusPhysicalItem:function(V){if(!(V<0||V>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(V)||this.scrollToIndex(V);var D=this._physicalItems[this._getPhysicalIndex(V)],f=this.modelForElement(D),n;f.tabIndex=-100;D.tabIndex===-100&&(n=D);n||(n=_.Fw(D).querySelector('[tabindex="-100"]'));f.tabIndex=0;this._focusedVirtualIndex=V;n&&n.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 V=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var D=this.stamp(null);this._focusBackfillItem=D.root.querySelector("*");this._itemsParent.appendChild(D.root)}this._offscreenFocusedItem=this._physicalItems[V];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[V]=this._focusBackfillItem;this._focusedPhysicalIndex=V;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var V=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),D=this._physicalItems[V];if(D){var f=this.modelForElement(D),n=this.modelForElement(this._offscreenFocusedItem);f[this.as]===n[this.as]?(this._focusBackfillItem=D,f.tabIndex=-1,this._physicalItems[V]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(V){V=this.modelForElement(V.target);var D=this.modelForElement(this._focusedItem),f=this._offscreenFocusedItem!==null,n=this._focusedVirtualIndex;V&&(D===V?this._isIndexVisible(n)||this.scrollToIndex(n):(this._restoreFocusedItem(),D&&(D.tabIndex=-1),V.tabIndex=0,this._focusedVirtualIndex=n=V[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(n),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],f&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(V){switch(V.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&V.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&&V.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(V)}},
_clamp:function(V,D,f){return Math.min(f,Math.max(D,V))},
_debounce:function(V,D,f){this._debouncers=this._debouncers||{};this._debouncers[V]=_.DA(this._debouncers[V],f,D.bind(this));_.fN(this._debouncers[V])},
_forwardProperty:function(V,D,f){V._setPendingProperty(D,f)},
_forwardHostPropV2:function(V,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).forwardHostProp(V,D)},this)},
_notifyInstancePropV2:function(V,D,f){SoX(this.as,D)&&(V=V[this.indexAs],D==this.as&&(this.items[V]=f),this.notifyPath(wv(this.as,"items."+V,D),f))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(V,D,f){D.indexOf(this.as+".")===0&&this.notifyPath("items."+V.__key__+"."+D.slice(this.as.length+1),f)},
_forwardParentPath:function(V,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).notifyPath(V,D)},this)},
_forwardParentProp:function(V,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&(this.modelForElement(f)[V]=D)},this)},
_getActiveElement:function(){var V=this._itemsParent.node.domHost;return _.Fw(V?V.root:document).activeElement},
_scrollTargetChanged:function(V,D){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(D)if(V==="document")this.scrollTarget=this._doc;else if(typeof V==="string"){var f,n;this.scrollTarget=(D=(n=(f=this.domHost)==null?void 0:f.polymerController)!=null?n:this.domHost)&&D.$?D.$[V]:_.Fw(this.ownerDocument).querySelector("#"+V)}else this._isValidScrollTarget()&&(this._oldScrollTarget=V,this._toggleScrollListener(this._shouldHaveListener,V))}});var rYP;var HXp;var wWV=function(V,D,f,n){V-=f;D-=n;return Math.sqrt(V*V+D*D)},Q7p=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
EN3.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var ADY=function(V){V.maxRadius=0;V.mouseDownStart=0;V.mouseUpStart=0;V.xStart=0;V.yStart=0;V.xEnd=0;V.yEnd=0;V.containerMetrics=new EN3(V.element)};
aTF.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var V=Q7p()-this.mouseDownStart;this.mouseUpStart&&(V-=this.mouseUpElapsed);return V},get mouseUpElapsed(){return this.mouseUpStart?Q7p()-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 V=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(V*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-V/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 V=this.radius/(this.containerMetrics.size/2);var D=this.xNow-this.containerMetrics.width/2;var f=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+D+"px, "+f+"px)";this.waveContainer.style.transform="translate3d("+D+"px, "+f+"px, 0)";this.wave.style.webkitTransform="scale("+V+","+V+")";this.wave.style.transform="scale3d("+V+","+V+",1)"},
downAction:function(V){var D=this.containerMetrics.width/2,f=this.containerMetrics.height/2;ADY(this);this.mouseDownStart=Q7p();this.center?(this.xStart=D,this.yStart=f):(this.xStart=V?V.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=V?V.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=D,this.yEnd=f);V=this.containerMetrics;D=this.xStart;f=this.yStart;this.maxRadius=Math.max(wWV(D,f,0,0),wWV(D,f,
V.width,0),wWV(D,f,0,V.height),wWV(D,f,V.width,V.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=Q7p())},
remove:function(){_.Fw(_.Fw(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Bt({_template:function(){if(HXp!==void 0)return HXp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;rYP===void 0&&(rYP=document.createElement("template"));var n=rYP;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return HXp=V},
is:"tp-yt-paper-ripple",behaviors:[_.ja],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(){_.Fw(this).parentNode.nodeType==11?this.keyEventTarget=_.Fw(this).getOwnerRoot().host:this.keyEventTarget=_.Fw(this).parentNode;var V=this.keyEventTarget;this.listen(V,"up","uiUpAction");this.listen(V,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(V){V.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var V=0;V<this.ripples.length;++V)if(!this.ripples[V].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(V){this.noink||this.downAction(V)},
downAction:function(V){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(V),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(V){this.noink||this.upAction(V)},
upAction:function(V){this.holdDown||(this.ripples.forEach(function(D){D.upAction(V)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var V=0;V<this.ripples.length;++V){var D=this.ripples[V];D.isOpacityFullyDecayed&&!D.isRestingAtMaxRadius&&this.removeRipple(D)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var V=new aTF(this);_.Fw(this.$.waves).appendChild(V.waveContainer);this.$.background.style.backgroundColor=V.color;this.ripples.push(V);this._setAnimating(!0);return V},
removeRipple:function(V){var D=this.ripples.indexOf(V);D<0||(this.ripples.splice(D,1),V.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var V;for(V=0;V<this.ripples.length;++V){var D=this.ripples[V];D.draw();this.$.background.style.opacity=D.outerOpacity;D.isOpacityFullyDecayed&&!D.isRestingAtMaxRadius&&this.removeRipple(D)}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(V,D){D!==void 0&&(V?this.downAction():this.upAction())}});var $0={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(V){GT._downHandler.call(this,V);this.pressed&&this.ensureRipple(V)},
ensureRipple:function(V){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var D=this._rippleContainer||this.root;D&&_.Fw(D).appendChild(this._ripple);if(V){D=_.Fw(this._rippleContainer||this);var f=_.Fw(V).rootTarget;D.deepContains(f)&&this._ripple.uiDownAction(V)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(V){this.hasRipple()&&(this._ripple.noink=V)}};var Ta6={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 V=1;this.disabled?V=0:this.active||this.pressed?V=4:this.receivedFocusFromKeyboard&&(V=3);this._setElevation(V)},
_computeKeyboardClass:function(V){this.toggleClass("keyboard-focus",V)},
_spaceKeyDownHandler:function(V){GT._spaceKeyDownHandler.call(this,V);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(V){GT._spaceKeyUpHandler.call(this,V);this.hasRipple()&&this._ripple.uiUpAction()}},bXo=[eqF,
_.lH,$0,Ta6];_.Kfl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(V){V&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=V)},
_createRipple:function(){var V=$0._createRipple();V.id="ink";V.setAttribute("center","");V.classList.add("circle");return V}};
_.yYF=[eqF,_.lH,$0,_.Kfl];_.ZXF=[_.yYF,gtV,{_checkedChanged:function(){F7L._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){$0._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var j7V;var ltU;var GvE=function(){};
_.P=GvE.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._createRipple=function(){};
_.P._noinkChanged=function(){};
_.P._computeKeyboardClass=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setElevation=function(){};
GvE=_.Bt({_template:function(){if(ltU!==void 0)return ltU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;j7V===void 0&&(j7V=document.createElement("template"));var n=j7V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return ltU=V},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[bXo],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Ta6._calculateElevation.apply(this):this._setElevation(0)}});var e6L;var cYL;var Ffl={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(V){_.c("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(V)},
_onDialogClickWrapped:function(V){_.c("dialog_behavior_no_tap_killswitch")||this._onDialogClick(V)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(V,D){D&&(V?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(V){V?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(V){this.closingReason=this.closingReason||{};this.closingReason.confirmed=V},
_onDialogClick:function(V){for(var D=_.Fw(V).path,f=0,n,t=D.indexOf((n=this.hostElement)!=null?n:this);f<t;f++)if(n=D[f],n.hasAttribute&&(n.hasAttribute("dialog-dismiss")||n.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(n.hasAttribute("dialog-confirm"));this.close();V.stopPropagation();break}}},gCr=[_.Y0,
Ffl];var vCY=document.createElement("template");_.B(vCY,'<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(vCY.content);var kvl=document.createElement("template");_.B(kvl,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(kvl.content);_.Bt({_template:function(){if(cYL!==void 0)return cYL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;e6L===void 0&&(e6L=document.createElement("template"));var n=e6L;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return cYL=V},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[gCr,zqu],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 s7P;var BaL;_.Bt({_template:function(){if(BaL!==void 0)return BaL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;s7P===void 0&&(s7P=document.createElement("template"));var n=s7P;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return BaL=V},
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 V,D,f;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)!==!0&&((D=window.ShadyDOM)==null?void 0:D.noPatch)!=="on-demand"||((f=this.__shady_parentNode)==null?void 0:f.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Ffl)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var dsV=_.WV(['<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>']),uOp=_.goF(dsV);uOp.setAttribute("style","display: none;");document.head.appendChild(uOp.content);var NaU;var msH;var z6u;var R66;_.Bt({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[BY],configure:function(V){var D=V.node,f=D.getBoundingClientRect().height;return this._effect=new KeyframeEffect(D,[{height:f/2+"px"},{height:f+"px"}],this.timingFromConfig(V))}});
_.Bt({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[BY],configure:function(V){var D=V.node,f=D.getBoundingClientRect().width;return this._effect=new KeyframeEffect(D,[{width:f/2+"px"},{width:f+"px"}],this.timingFromConfig(V))}});
_.Bt({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[BY],configure:function(V){var D=V.node,f=D.getBoundingClientRect().width;return this._effect=new KeyframeEffect(D,[{width:f+"px"},{width:f-f/20+"px"}],this.timingFromConfig(V))}});
_.Bt({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[BY],configure:function(V){var D=V.node,f=D.getBoundingClientRect().height;this.setPrefixedProperty(D,"transformOrigin","0 0");return this._effect=new KeyframeEffect(D,[{height:f+"px",transform:"translateY(0)"},{height:f/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(V))}});var iH={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},CfF=function(){};
_.P=CfF.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._focusBlurHandler=function(){};
_.P._changedControlState=function(){};
_.P._setFocused=function(){};
CfF=_.Bt({_template:function(){if(R66!==void 0)return R66;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;z6u===void 0&&(z6u=document.createElement("template"));var n=z6u;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return R66=V},
is:"tp-yt-paper-menu-button",behaviors:[_.ja,_.lH],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:iH.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:iH.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:iH.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 V=_.Fw(this.$.content).getDistributedNodes(),D=0,f=V.length;D<f;D++)if(V[D].nodeType===Node.ELEMENT_NODE)return V[D]},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(V,D){V?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):D!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(V){_.lH._disabledChanged.apply(this,arguments);V&&this.opened&&this.close()},
__onIronOverlayCanceled:function(V){var D=this.$.trigger;_.Fw(V.detail).path.indexOf(D)>-1&&V.preventDefault()}});
Object.keys(iH).forEach(function(V){CfF[V]=iH[V]});var qwo=_.ea.IronButtonState,XWV=(0,_.yj)(HTMLElement);
_.Bt({_template:function(){if(msH!==void 0)return msH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;NaU===void 0&&(NaU=document.createElement("template"));var n=NaU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return msH=V},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[qwo,_.lH,$0,_.cY,_.vY],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(V){var D=(0,_.y$)(this);D.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:V});D.shadowRoot.appendChild(V);return XWV.prototype._attachDom.call(this,V)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var V=this.contentElement;V&&V.selectedItem&&this._setSelectedItem(V.selectedItem)},
get contentElement(){for(var V=_.Fw(this.$.content).getDistributedNodes(),D=0,f=V.length;D<f;D++)if(V[D].nodeType===Node.ELEMENT_NODE)return V[D]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(V){this._setSelectedItem(V.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(V){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)===this&&this.open()},
_selectedItemChanged:function(V){var D="";V?D=V.label||V.getAttribute("label")||V.textContent.trim():D="";this.value=D;this._setSelectedItemLabel(D)},
_computeMenuVerticalOffset:function(V,D){return D?D:V?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var V=this.opened?"true":"false",D=this.contentElement;D&&D.setAttribute("aria-expanded",V)},
_computeLabelClass:function(V,D,f){var n="label";if(V)f&&(n+=" label-is-hidden");else if(f||D)n+=" label-is-floating";return n},
_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 EC6;var AY6;_.Bt({is:"tp-yt-paper-icon-button",_template:function(){if(AY6!==void 0)return AY6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;EC6===void 0&&(EC6=document.createElement("template"));var n=EC6;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return AY6=V},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.yYF],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(V,D){var f=this.getAttribute("aria-label");f&&D!=f||this.setAttribute("aria-label",V)}});var ato;var YwL;_.Sa=[eqF,_.lH,{hostAttributes:{role:"option",tabindex:"0"}}];_.Bt({_template:function(){if(YwL!==void 0)return YwL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;ato===void 0&&(ato=document.createElement("template"));var n=ato;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return YwL=V},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Sa]});var $sl;var iXY;var SwF={attached:function(){this.fire("addon-attached")},
update:function(){}};var WfY=1,pWl=1,Lf6=1,ItL=[_.lH,_.ja,{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();!Ic&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(V,D){V?V=V+" "+D:V=D;return V},
_onAddonAttached:function(V){V=_.Fw(V).rootTarget;if(V.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,V.id);else{var D="paper-input-add-on-"+pWl++;V.id=D;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,D)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(V){_.lH._focusBlurHandler.call(this,V);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var V=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",V);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(V){try{var D=this.inputElement.selectionStart;this.value=V;this.inputElement.selectionStart=D;this.inputElement.selectionEnd=D}catch(f){this.value=V}},
_computeAlwaysFloatLabel:function(V,D){return D||V},
_updateAriaLabelledBy:function(){var V=_.Fw(this.root).querySelector("label");if(V){if(V.id)var D=V.id;else D="paper-input-label-"+WfY++,V.id=D;this._ariaLabelledBy=D}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Lf6++)},
_onChange:function(V){this.shadowRoot&&this.fire(V.type,{sourceEvent:V},{node:this,bubbles:V.bubbles,cancelable:V.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var V=document.activeElement;V instanceof HTMLElement&&V!==document.body&&V!==document.documentElement||this._focusableElement.focus()}}}];var OXp;var xsF;_.Bt({_template:function(){if(xsF!==void 0)return xsF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;OXp===void 0&&(OXp=document.createElement("template"));var n=OXp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return xsF=V},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[SwF],properties:{_charCounterStr:{type:String,value:"0"}},update:function(V){if(V.inputElement){V.value=V.value||"";var D=V.value.toString().length.toString();V.inputElement.hasAttribute("maxlength")&&(D+="/"+V.inputElement.getAttribute("maxlength"));this._charCounterStr=D}}});var MKV;var h66;_.Bt({_template:function(){if(h66!==void 0)return h66;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;MKV===void 0&&(MKV=document.createElement("template"));var n=MKV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return h66=V},
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 P1(this.attrForValue)},get _inputElement(){return _.Fw(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(V){this._addons||(this._addons=[]);V=V.target;this._addons.indexOf(V)===-1&&(this._addons.push(V),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(V){this._handleValueAndAutoValidate(V.target)},
_onValueChanged:function(V){var D=V.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,D.value===void 0||D.value===""))return;this._handleValueAndAutoValidate(V.target)},
_handleValue:function(V){var D=this._inputElementValue;D||D===0||V.type==="number"&&!V.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:V,value:D,invalid:this.invalid})},
_handleValueAndAutoValidate:function(V){this.autoValidate&&V&&(this.invalid=!(V.validate?V.validate(this._inputElementValue):V.checkValidity()));this._handleValue(V)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(V){if(this._addons)for(var D,f=0;D=this._addons[f];f++)D.update(V)},
_computeInputContentClass:function(V,D,f,n,t){var J="input-content";V?(t&&(J+=" label-is-hidden"),n&&!this.noUnfloatedLabelError&&(J+=" is-invalid")):(V=this.querySelector("label"),D||t?(J+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?J+=" is-invalid":f&&(J+=" label-is-highlighted")):(V&&(this.$.labelAndInputContainer.style.position="relative"),n&&!this.noUnfloatedLabelError&&(J+=" is-invalid")));f&&(J+=" focused");return J},
_computeUnderlineClass:function(V,D){var f="underline";D?f+=" is-invalid":V&&(f+=" is-highlighted");return f},
_computeAddOnContentClass:function(V,D){var f="add-on-content";D?f+=" is-invalid":V&&(f+=" is-highlighted");return f}});var UsY;var VbF;_.Bt({_template:function(){if(VbF!==void 0)return VbF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;UsY===void 0&&(UsY=document.createElement("template"));var n=UsY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return VbF=V},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[SwF],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(V){this._setInvalid(V.invalid)}});_.Bt({is:"tp-yt-paper-input",_template:function(){if(iXY!==void 0)return iXY;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;$sl===void 0&&($sl=document.createElement("template"));var n=$sl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return iXY=V},
behaviors:[ItL,_.cY],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 DRH;var frl;_.Bt({_template:function(){if(frl!==void 0)return frl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=
V.content,f=D.insertBefore;DRH===void 0&&(DRH=document.createElement("template"));var n=DRH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return frl=V},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Sa]});var nVP;var tbH;_.Bt({_template:function(){if(tbH!==void 0)return tbH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;nVP===void 0&&(nVP=document.createElement("template"));var n=nVP;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return tbH=V},
is:"tp-yt-paper-item-body"});var PnF;var oVp;var JEU=function(){};
_.P=JEU.prototype;_.P.indexOf=function(){};
_.P.selectPrevious=function(){};
_.P.selectNext=function(){};
_.P.selectIndex=function(){};
_.P.forceSynchronousItemUpdate=function(){};
_.P._checkFallback=function(){};
_.P._addListener=function(){};
_.P._removeListener=function(){};
_.P._activateEventChanged=function(){};
_.P._updateItems=function(){};
_.P._selectSelected=function(){};
_.P._filterItem=function(){};
_.P._valueToItem=function(){};
_.P._valueToIndex=function(){};
_.P._indexToValue=function(){};
_.P._valueForItem=function(){};
_.P._observeItems=function(){};
_.P._itemActivate=function(){};
_.P.multiChanged=function(){};
_.P._updateAttrForSelected=function(){};
_.P._updateSelected=function(){};
_.P._selectMulti=function(){};
_.P._selectionChange=function(){};
_.P._toggleSelected=function(){};
_.P._valuesToItems=function(){};
_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P.select=function(){};
_.P._resetTabindices=function(){};
_.P._updateMultiselectable=function(){};
_.P._focusWithKeyboardEvent=function(){};
_.P._clearSearchText=function(){};
_.P._focusPrevious=function(){};
_.P._focusNext=function(){};
_.P._applySelection=function(){};
_.P._focusedItemChanged=function(){};
_.P._onIronItemsChanged=function(){};
_.P._onShiftTabDown=function(){};
_.P._onFocus=function(){};
_.P._onUpKey=function(){};
_.P._onDownKey=function(){};
_.P._onEscKey=function(){};
_.P._onKeydown=function(){};
_.P._activateHandler=function(){};
_.P._disabledChanged=function(){};
_.P._setSelectedItem=function(){};
_.P._setItems=function(){};
_.P._setSelectedItems=function(){};
_.P._setFocusedItem=function(){};
JEU=_.Bt({_template:function(){if(oVp!==void 0)return oVp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;PnF===void 0&&(PnF=document.createElement("template"));var n=PnF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return oVp=V},
is:"tp-yt-paper-listbox",behaviors:[Bso],hostAttributes:{role:"listbox"}});var rEY;var HLu;var wCr={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(V,D){return[V||D?"active":"",D?"cooldown":""].join(" ")},
__activeChanged:function(V,D){this.__setAriaHidden(!V);this.__coolingDown=!V&&D},
__altChanged:function(V){this.setAttribute("aria-label",V||"loading")},
__setAriaHidden:function(V){V?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Bt({_template:function(){if(HLu!==void 0)return HLu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;rEY===void 0&&(rEY=document.createElement("template"));var n=rEY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return HLu=V},
is:"tp-yt-paper-spinner",behaviors:[wCr]});var Qml;var T3F;_.Bt({_template:function(){if(T3F!==void 0)return T3F;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Qml===void 0&&(Qml=document.createElement("template"));var n=Qml;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return T3F=V},
is:"tp-yt-paper-spinner-lite",behaviors:[wCr]});var bLY;var KDF;_.Bt({_template:function(){if(KDF!==void 0)return KDF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;bLY===void 0&&(bLY=document.createElement("template"));var n=bLY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return KDF=V},
is:"tp-yt-paper-tab",behaviors:[_.lH,_.ea.IronButtonState,$0],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 V=_.Fw(this).parentNode;return!!V&&!!V.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(V){if(this.link){var D=this.queryEffectiveChildren("a");D&&V.target!==D&&D.click()}}});var yEp;var ZLP;var jmF=_.WV(['<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>']),lrp=_.goF(jmF);document.head.appendChild(lrp.content);_.Bt({_template:function(){if(ZLP!==void 0)return ZLP;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;yEp===void 0&&(yEp=document.createElement("template"));var n=yEp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return ZLP=V},
is:"tp-yt-paper-tabs",behaviors:[_.sp,_.uoH],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(V){_.Fw(this).querySelectorAll("tp-yt-paper-tab").forEach(V?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(V){V.setAttribute("noink","")},
_removeNoinkAttribute:function(V){V.removeAttribute("noink")},
_computeScrollButtonClass:function(V,D,f,n){return!D||f?"hidden":V?n?"hidden":"not-visible":""},
_computeTabsContentClass:function(V,D){var f="tabs-content";V&&(f+=" scrollable");if(!V||D)f+=" fit-container";return f},
_computeSelectionBarClass:function(V,D){var f="selection-bar";V?f+=" hidden":D&&(f+=" align-bottom");return f},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(V){return""+V},
_onIronSelect:function(V){this._tabChanged(V.detail.item,this._previousTab);this._previousTab=V.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();_.k0._activateHandler.apply(this,arguments)},
_scheduleActivation:function(V,D){this._pendingActivationItem=V;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,D)},
_delayedActivationHandler:function(){var V=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;V.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(V){V.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(V,D){this.scrollable&&this._affectScroll(D&&-D.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(V){this.$.tabsContainer.scrollLeft+=V;V=this.$.tabsContainer.scrollLeft;this._leftHidden=V===0||this.hideScrollButtons;this._rightHidden=V===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(V,D){if(V){var f=this.$.tabsContent.getBoundingClientRect(),n=f.width,t=V.getBoundingClientRect();f=t.left-f.left;this._pos={width:this._calcPercent(t.width,n),left:this._calcPercent(f,n)};if(this.noSlide||D==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var J=D.getBoundingClientRect();D=this.items.indexOf(D);V=this.items.indexOf(V);this.$.selectionBar.classList.add("expand");
V=D<V;this._isRTL&&(V=!V);V?this._positionBar(this._calcPercent(t.left+t.width-J.left,n)-5,this._left):this._positionBar(this._calcPercent(J.left+J.width-t.left,n)-5,this._calcPercent(f,n)+5);this.scrollable&&this._scrollToSelectedIfNeeded(t.width,f)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(V,D){D-=this.$.tabsContainer.scrollLeft;D<0?this.$.tabsContainer.scrollLeft+=D:(D+=V-this.$.tabsContainer.offsetWidth,D>0&&(this.$.tabsContainer.scrollLeft+=D))},
_calcPercent:function(V,D){return 100*V/D},
_positionBar:function(V,D){V=V||0;D=D||0;this._width=V;this._left=D;this.transform("translateX("+D+"%) scaleX("+V/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var V=this.$.selectionBar.classList;V.contains("expand")?(V.remove("expand"),V.add("contract"),this._positionBar(this._pos.width,this._pos.left)):V.contains("contract")&&V.remove("contract")}});var GSu;var eSV;_.Bt({_template:function(){if(eSV!==void 0)return eSV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;GSu===void 0&&(GSu=document.createElement("template"));var n=GSu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return eSV=V},
is:"tp-yt-paper-textarea",behaviors:[ItL,_.cY],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(V){this.$.input.textarea.selectionStart=V},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(V){this.$.input.textarea.selectionEnd=V},_ariaLabelledByChanged:function(V){this._focusableElement.setAttribute("aria-labelledby",V)},
_ariaDescribedByChanged:function(V){this._focusableElement.setAttribute("aria-describedby",V)},
get _focusableElement(){return this.inputElement.textarea}});var cEP;var FDU;/*

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 gVF=function(){};
_.P=gVF.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
gVF=_.Bt({is:"tp-yt-paper-toggle-button",_template:function(){if(FDU!==void 0)return FDU;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;cEP===void 0&&(cEP=document.createElement("template"));var n=cEP;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return FDU=V},
behaviors:[_.ZXF],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");_.pO(this,function(){_.uL(this,"pan-y")})},
_ontrack:function(V){V=V.detail;V.state==="start"?this._trackStart(V):V.state==="track"?this._trackMove(V):V.state==="end"&&this._trackEnd(V)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(V){V=V.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+V:V)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+V:V));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 V=$0._createRipple();V.id="ink";V.setAttribute("recenters","");V.classList.add("circle","toggle-ink");return V}});var vVp;var kSV;_.Bt({_template:function(){if(kSV!==void 0)return kSV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;vVp===void 0&&(vVp=document.createElement("template"));var n=vVp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return kSV=V},
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 V=_.Fw(this).parentNode,D=_.Fw(this).getOwnerRoot(),f;this.for?f=_.Fw(D).querySelector("#"+this.for):f=V.nodeType==Node.DOCUMENT_FRAGMENT_NODE?D.host:V;return f},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(V){V==="entry"?this.show():V==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Fw(this).textContent.trim()===""){for(var V=!0,D=_.Fw(this).getEffectiveChildNodes(),f=0;f<D.length;f++)if(D[f].textContent.trim()!==""){V=!1;break}if(V)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 V=this.offset;this.marginTop!=14&&this.offset==14&&(V=this.marginTop);var D=this.offsetParent.getBoundingClientRect(),f=this._target.getBoundingClientRect(),n=this.getBoundingClientRect(),t=(f.width-n.width)/2,J=(f.height-n.height)/2,H=f.left-D.left,Q=f.top-D.top;switch(this.position){case "top":var T=H+t;var y=Q-n.height-V;break;case "bottom":T=H+t;y=Q+f.height+V;break;case "left":T=H-n.width-V;y=Q+J;break;case "right":T=H+f.width+
V,y=Q+J}this.fitToVisibleBounds?(D.left+T+n.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,T)+"px",this.style.right="auto"),D.top+y+n.height>window.innerHeight?(this.style.bottom=D.height+"px",this.style.top="auto"):(this.style.top=Math.max(-D.top,y)+"px",this.style.bottom="auto")):(this.style.left=T+"px",this.style.top=y+"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(V){V!==500&&this.updateStyles({"--paper-tooltip-delay-in":V+"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(V){if(V==="entry"&&this.animationEntry!=="")return this.animationEntry;if(V==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[V]&&typeof this.animationConfig[V][0].name==="string"){if(this.animationConfig[V][0].timing&&this.animationConfig[V][0].timing.delay&&this.animationConfig[V][0].timing.delay!==0){var D=this.animationConfig[V][0].timing.delay;V==="entry"?this.updateStyles({"--paper-tooltip-delay-in":D+"ms"}):V==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":D+
"ms"})}return this.animationConfig[V][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 sm6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(sm6,_.Xm);var B36=_.Me(sm6,[0,_.Lg]);var WY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(WY,_.Xm);var dRV=[3,4],uWP=[5,6];var N3l=[0,dRV,uWP,_.lRl,-1,_.pg,_.GJL,-1,Qo9,T4F];var mRP=_.Me(WY,N3l),zSp=_.hn(N3l);var RSl=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(RSl,_.Xm);var CnL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(CnL,_.Xm);var q1E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(q1E,_.Xm);var XCY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(XCY,_.Xm);var EVU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(EVU,_.Xm);var pf=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(pf,_.Xm);pf.prototype.getSource=function(){return _.u4(this,1)};
pf.prototype.getMessage=function(){return _.df(this,4)};
pf.prototype.getData=function(){return _.bW(this,EVU,8)};var AEL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(AEL,_.Xm);var Lf=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Lf,_.Xm);var IF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(IF,_.Xm);var Op=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Op,_.Xm);Op.prototype.getUrl=function(){return _.df(this,1)};
Op.prototype.setUrl=function(V){return _.lB(this,1,V)};
Op.prototype.hasUrl=function(){return _.Yf(_.ZX(this,1))!=null};var ar6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ar6,_.Xm);var Y1E=[3];var $Rr=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v($Rr,_.Xm);var x0=function(V){var D=new $Rr;return _.nh(D,2,V)};
$Rr.prototype.getLanguage=function(){return mz(this,4,MH)};
var iL6=function(V){var D=x0(1);return _.nc(D,6,MH,V)},MH=[3,
4,5,6];var S1l=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(S1l,_.Xm);var hV=function(V){var D=new S1l;return _.nh(D,1,V)},Up=function(V,D){return _.nc(V,2,WDl,D)},WDl=[2,
3,4,5];var pCU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(pCU,_.Xm);var Vn=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Vn,_.Xm);var LDH=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(LDH,_.Xm);var IrU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(IrU,_.Xm);var OLo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(OLo,_.Xm);var xRY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(xRY,_.Xm);var MbE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(MbE,_.Xm);var D8=function(V){return _.bW(V,IF,5)};var hSF=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(hSF,_.Xm);hSF.prototype.getValue=function(){return sk(this,1)};var URH=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(URH,_.Xm);var f9=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(f9,_.Xm);f9.prototype.getMetadata=function(){return _.zl(this,OLo,7,n9)};
f9.prototype.hasMetadata=function(){return _.l4(this,OLo,7,n9)};
var V9r=_.UW(f9),n9=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var tT=function(V){this.JSC$10060_name_=V;this.files_=[];this.directories_=[];this.directoryMap_={}};
tT.prototype.getName=function(){return this.JSC$10060_name_};var oI=function(V,D){this.callback_=D;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new tT("");DwE(this,V,this.rootDirectory_);Pc(this)},DwE=function(V,D,f){for(var n=0;n<D.length;n++){var t=D[n];
t.isFile?(V.fileOps_++,t.file((0,_.F1)(V.handleFileSuccess_,V,f),(0,_.F1)(V.handleFileError_,V))):V.unscannedDirectories_.push(new f1Y(t,f))}},Pc=function(V){if(V.unscannedDirectories_.length>0&&V.directoryOps_<5&&!V.hasError_){V.directoryOps_++;
var D=V.unscannedDirectories_.shift(),f=D.entry,n=new tT(f.name);D=D.parent;D.directoryMap_[n.getName()]=n;D.directories_.push(n);f=f.createReader();f.readEntries((0,_.F1)(V.handleDirectorySuccess_,V,f,n),(0,_.F1)(V.handleDirectoryError_,V))}V.directoryOps_!=0||V.fileOps_!=0||V.unscannedDirectories_.length!=0&&!V.hasError_||V.callback_(V.rootDirectory_.files_,V.rootDirectory_.directories_,V.hasError_)};
oI.prototype.handleDirectorySuccess_=function(V,D,f){DwE(this,f,D);f.length==0?(this.directoryOps_--,Pc(this)):V.readEntries((0,_.F1)(this.handleDirectorySuccess_,this,V,D),(0,_.F1)(this.handleDirectoryError_,this))};
oI.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Pc(this)};
oI.prototype.handleFileSuccess_=function(V,D){V.files_.push(D);this.fileOps_--;Pc(this)};
oI.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Pc(this)};
var f1Y=function(V,D){this.entry=V;this.parent=D};var JT=function(V){_.jT.call(this);_.kt(V,"drop",this.onObjectsDropped_,!1,this);_.kt(V,"dragenter",this.onFilesDragged_,!1,this);_.kt(V,"dragover",this.onFilesDragged_,!1,this);_.kt(V,"dragleave",this.onDragLeave_,!1,this);_.kt(V,"dragend",this.onDragLeave_,!1,this)};
_.fg(JT,_.jT);var nvp=function(V,D){_.TG.call(this,"f");this.files=V;this.directories=D};
_.fg(nvp,_.TG);var t9F=function(){_.TG.call(this,"h")};
_.fg(t9F,_.TG);var PYE=function(){_.TG.call(this,"i")};
_.fg(PYE,_.TG);var ovo=function(){_.TG.call(this,"g")};
_.fg(ovo,_.TG);JT.prototype.onObjectsDropped_=function(V){var D=this;V.preventDefault();var f=V.event_.dataTransfer;if((V=f&&f.items)&&V.length>0&&V[0].webkitGetAsEntry){f=[];for(var n=[],t=0;t<V.length;t++){var J=V[t].webkitGetAsEntry();J?f.push(J):n.push(V[t])}new oI(f,function(H,Q,T){T?D.dispatchEvent(new ovo("Error occurred while reading from the file system.")):D.dispatchEvent(new nvp(H,Q,n))})}else(V=f&&f.files)&&this.dispatchEvent(new nvp(Array.from(V),[]))};
JT.prototype.onFilesDragged_=function(V){V.type==="dragenter"&&this.dispatchEvent(new t9F);V.preventDefault()};
JT.prototype.onDragLeave_=function(){this.dispatchEvent(new PYE)};var JxU=function(V,D){this.JSC$10083_name_=V;this.inputElement_=D};
JxU.prototype.getName=function(){return this.JSC$10083_name_};
JxU.prototype.getInputElement=function(){return this.inputElement_};var r0=function(V,D,f){D=D===void 0?"single_file":D;f=f===void 0?[]:f;_.jT.call(this);this.overlayTarget_=V;this.parentOverlay_=V!=null?V.parentNode:_.yh("scotty-overlay-parent");this.selectorType_=D;this.acceptTypes_=f;this.overlay_=rxp(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.v(r0,_.jT);
var rxp=function(V,D,f,n){var t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("name","Filedata");_.kt(t,"change",V.onFilesSelected_,!1,V);f==="multiple_file"&&(t.multiple="true");f==="single_directory"&&(t.webkitdirectory="true");n.length>0&&t.setAttribute("accept",n.join(","));t.style.position="absolute";t.style.overflow="hidden";t.style.height="0px";t.style.width="0px";t.style.opacity="0";t.setAttribute("aria-hidden","true");t.setAttribute("tabIndex",-1);if(V.overlayTarget_!=
null)return t.style.height=D.offsetHeight+"px",t.style.width=D.offsetWidth+"px",V.parentOverlay_&&(V.parentOverlay_.style.position="relative"),_.BN(t,D),Rz(t,new _.uB(D.offsetLeft,D.offsetTop)),t;V.parentOverlay_.appendChild(t);return t};
r0.prototype.click=function(){this.overlay_.click()};
r0.prototype.onFilesSelected_=function(V){a:{try{var D=(new XMLHttpRequest).upload!==void 0;break a}catch(y){}D=!1}if(D){var f;V=Array.from((f=V.target.files)!=null?f:[]);f=[];if(this.selectorType_==="single_directory"&&(_.Hb||Ob||_.rf)){f=new tT("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(D=0;D<V.length;D++)for(var n=V[D],t=n.webkitRelativePath.split("/"),J=f,H=0;H<t.length;H++){var Q=t[H];if(H==t.length-1){Q!="."&&J.files_.push(n);break}var T=J.directoryMap_[Q];T==void 0&&(Q=
T=new tT(Q),J.directoryMap_[Q.getName()]=Q,J.directories_.push(Q));J=T}f=f.directories_}this.dispatchEvent(new HY6(V,f,null))}else V=V.target.value,V.match(/^c:\\fakepath\\/i)&&(V=V.substring(12)),this.dispatchEvent(new HY6([],[],new JxU(V,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=rxp(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var HY6=function(V,D){_.TG.call(this,"j");this.files=V;this.directories=D};
_.v(HY6,_.TG);var wVH=function(V){this.uploadUrl_=V};var QNl=function(){_.jT.call(this)};
_.fg(QNl,_.jT);var Hc=function(V){_.TG.call(this,V)};
_.fg(Hc,_.TG);var w0=function(V){_.TG.call(this,V)};
_.fg(w0,_.TG);var TKu=function(V,D,f,n,t){_.jT.call(this);f=document.createElement("form");f.setAttribute("method",D);f.setAttribute("enctype","multipart/form-data");f.setAttribute("encoding","multipart/form-data");D=document.createElement("input");D.setAttribute("type","hidden");D.setAttribute("name","metadata");D.setAttribute("value",t);f.appendChild(D);f.appendChild(n);this.JSC$10100_form_=f;V=new _.Ll(V);_.iW(V,"upload_protocol","multipart");this.JSC$10100_url_=V.toString();this.JSC$10100_request_=new x9;this.state_=
"Ready";this.JSC$10100_errorDescription_=null;this.JSC$10100_eventHandler_=new _.fl(this);_.wX(this,this.JSC$10100_eventHandler_);this.JSC$10100_eventHandler_.listen(this.JSC$10100_request_,"success",this.onTransferSuccess_);this.JSC$10100_eventHandler_.listen(this.JSC$10100_request_,"error",this.onTransferError_)};
_.v(TKu,QNl);_.P=TKu.prototype;_.P.run=function(){this.state_="Transferring";var V=this.JSC$10100_request_,D=this.JSC$10100_form_;if(V.JSC$9518_active_)throw Error("te");var f=new _.Ll(this.JSC$10100_url_||D.action);V.JSC$9518_form_=D;D=V.JSC$9518_form_;f=_.kx(f.toString());f!==void 0&&(D.action=f);Ysl(V)};
_.P.getResponseCode=function(){return null};
_.P.getResponseText=function(){return this.JSC$10100_request_&&this.JSC$10100_request_.getResponseText()||null};
_.P.JSC$26131_getErrorDescription=function(){return this.JSC$10100_errorDescription_};
_.P.cancel=function(){this.JSC$10100_request_&&this.JSC$10100_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Hc("o"))};
_.P.pause=function(){};
_.P.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Hc("l"))};
_.P.onTransferError_=function(){this.JSC$10100_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Hc("n"))};var Qn=function(){_.kq.call(this)};
_.v(Qn,_.kq);Qn.prototype.createXhr=function(){var V=_.kq.prototype.createXhr.call(this);V.upload&&(V.upload.onprogress=(0,_.F1)(this.onProgress_,this));return V};
Qn.prototype.onProgress_=function(V){this.dispatchEvent(V)};var bYP=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},yxF=function(V,D){var f=V.attempt_+1;
if(V.maxAttempts_>0&&f>V.maxAttempts_)return!1;f==0?D():V.delayCallId_=F6(function(){V.delayCallId_=null;D()},K$V(V),V);
V.attempt_=f;return!0};
bYP.prototype.reset=function(){this.delayCallId_&&_.fx.clearTimeout(this.delayCallId_);this.attempt_=-1};
var K$V=function(V){var D=250*Math.pow(2,V.attempt_);V.maxDelayMs_>=0&&(D=Math.min(D,V.maxDelayMs_));return D};var $ML=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var TN=function(){_.jT.call(this);this.JSC$10110_request_=this.state_=null;this.JSC$10110_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10110_bytesTransferred_=0;this.retryIterator_=new bYP;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10110_errorDescription_=null;this.JSC$10110_eventHandler_=new _.fl(this);_.wX(this,this.JSC$10110_eventHandler_);this.JSC$10110_url_=this.blob_=null;this.JSC$10110_method_=void 0;this.chunkSize_=this.JSC$10110_metadata_=
this.JSC$10110_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10110_responseText_=this.JSC$10110_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.fg(TN,QNl);_.P=TN.prototype;_.P.run=function(){b7(this)};
_.P.getResponseCode=function(){return this.JSC$10110_responseCode_};
_.P.getResponseText=function(){return this.JSC$10110_responseText_};
_.P.JSC$26131_getErrorDescription=function(){return this.JSC$10110_errorDescription_};
_.P.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10110_eventHandler_.removeAll();this.JSC$10110_request_&&this.JSC$10110_request_.abort();this.retryIterator_.reset();var V=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(V==="Upload"||V==="Query")V=new Qn,V.JSC$7885_withCredentials_=this.JSC$10110_withCredentials_,V.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10110_bytesTransferred_=
0;this.dispatchEvent(new Hc("o"))}};
_.P.pause=function(){this.pauseRequested_=!0};
var b7=function(V){var D=V.state_;V.pauseRequested_?(V.pauseRequested_=!1,V.stateAfterUnpausing_=D,V.state_="Paused"):yxF(V.retryIterator_,function(){switch(V.state_){case "Start":V.JSC$10110_request_=new Qn;var f=_.sB.clone(V.JSC$10110_headers_);V.blob_.size!=null&&(f["Content-Length"]=V.blob_.size);f=ipZ(f);f["X-Goog-Upload-Protocol"]="resumable";f["X-Goog-Upload-Command"]="start";V.JSC$10110_eventHandler_.removeAll();V.JSC$10110_eventHandler_.listen(V.JSC$10110_request_,"complete",V.onStartComplete_);
V.JSC$10110_request_.JSC$7885_withCredentials_=V.JSC$10110_withCredentials_;V.JSC$10110_request_.send(V.JSC$10110_url_,V.JSC$10110_method_,V.JSC$10110_metadata_,f);V.lastCommandResponseCode_=null;V.dispatchEvent(new w0("q"));break;case "Upload":f=V.transferHandle_.uploadUrl_;var n=V.blob_.size;if(gJF()){var t=V.chunkSize_;var J=V.offset_+t>=n;n=FLE(V.blob_,V.offset_,J?n:V.offset_+t)}else V.offset_=0,n=V.blob_,J=!0;V.JSC$10110_request_=new Qn;V.JSC$10110_request_.JSC$7885_withCredentials_=V.JSC$10110_withCredentials_;
V.JSC$10110_eventHandler_.removeAll();V.JSC$10110_eventHandler_.listen(V.JSC$10110_request_,"progress",V.onUploadProgress_);t=(0,_.F1)(V.JSC$10112_onUploadComplete_,V,V.offset_+n.size,J);V.JSC$10110_eventHandler_.listen(V.JSC$10110_request_,"complete",t);V.lastCommandResponseCode_=null;V.dispatchEvent(new w0("q"));J=Object.assign({},V.JSC$10110_headers_||{},{"X-Goog-Upload-Command":"upload"+(J?", finalize":""),"X-Goog-Upload-Offset":V.offset_});V.JSC$10110_request_.send(f,"POST",n,J);break;case "Query":V.JSC$10110_request_=
new Qn;V.JSC$10110_eventHandler_.removeAll();V.JSC$10110_eventHandler_.listen(V.JSC$10110_request_,"complete",V.onQueryComplete_);f=Object.assign({},V.JSC$10110_headers_||{},{"X-Goog-Upload-Command":"query"});V.JSC$10110_request_.send(V.transferHandle_.uploadUrl_,"POST","",f);V.lastCommandResponseCode_=null;V.dispatchEvent(new w0("q"));break;default:throw Error("jf");}})||K9(V,"Transfer encountered too many consecutive failures.")},K9=function(V,D){V.state_="Error";
V.JSC$10110_errorDescription_=D;V.dispatchEvent(new Hc("n"))};
TN.prototype.onStartComplete_=function(V){var D=V.target;this.lastCommandResponseCode_=D.getStatus();this.dispatchEvent(new w0("r"));if(ZYl(D))jNV(this,D);else if(l1p(D)){V=LJ(V.target.getAllResponseHeaders());for(var f in V)_.tc(f.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Hc("m"));f=v8(V,"X-Goog-Upload-URL");V=(V=v8(V,"X-Goog-Upload-Chunk-Granularity"))?parseInt(V,10):1;f===void 0||isNaN(V)||V<=0?K9(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
V)*V,this.transferHandle_=new wVH(f),this.dispatchEvent(new Hc("p")),this.state_="Upload",this.retryIterator_.reset(),b7(this))}else b7(this)};
TN.prototype.onUploadProgress_=function(V){this.JSC$10110_bytesTransferred_=this.offset_+V.loaded;this.dispatchEvent(new Hc("k"))};
TN.prototype.JSC$10112_onUploadComplete_=function(V,D,f){var n=this,t,J;return _.w(function(H){switch(H.nextAddress){case 1:t=f.target;n.lastCommandResponseCode_=t.getStatus();n.dispatchEvent(new w0("r"));if(G3l(t)||t.getStatus()==404)return n.JSC$10110_bytesTransferred_=V,jNV(n,t),H.return();if(l1p(t)){H.jumpTo(2);break}if(!(J=n.detectCorruptedBlobEnabled_)){H.jumpTo(3);break}return _.b(H,eRH(n),4);case 4:J=H.yieldResult;case 3:if(J)return K9(n,"Blob has been modified or corrupted."),H.return();
n.requireUploadRequestModification_=t.getStatus()==400;n.state_="Query";b7(n);return H.return();case 2:if(D)return K9(n,"Got a non-final success response after issuing a finalize command."),H.return();n.JSC$10110_bytesTransferred_=V;n.offset_=V;n.retryIterator_.reset();b7(n);return H.return()}})};
TN.prototype.onQueryComplete_=function(V){var D=V.target;this.lastCommandResponseCode_=D.getStatus();this.dispatchEvent(new w0("r"));ZYl(D)?(D.getStatus()===200&&(this.JSC$10110_bytesTransferred_=this.blob_.size),jNV(this,D)):l1p(D)?(V=LJ(V.target.getAllResponseHeaders()),V=parseInt(v8(V,"X-Goog-Upload-Size-Received"),10),isNaN(V)?K9(this,"Server did not respond with current offset."):V<this.offset_?K9(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
V+"."):this.requireUploadRequestModification_&&this.offset_===V?K9(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<V&&this.retryIterator_.reset(),this.offset_=this.JSC$10110_bytesTransferred_=V,this.state_="Upload",b7(this))):b7(this)};
var jNV=function(V,D){V.JSC$10110_responseCode_=D.getStatus();var f=LJ(D.getAllResponseHeaders());SOF(f);V.JSC$10110_responseText_=D.getResponseText();V.state_="Response received";V.dispatchEvent(new Hc("l"))},l1p=function(V){var D=V.getStatus();
V=LJ(V.getAllResponseHeaders());V=v8(V,"X-Goog-Upload-Status");return D===200&&V==="active"},G3l=function(V){V=LJ(V.getAllResponseHeaders());
return v8(V,"X-Goog-Upload-Status")==="final"},ZYl=function(V){if(G3l(V))return!0;
V=V.getStatus();return V>=400&&V<500},eRH=function(V){var D;
return _.w(function(f){if(f.nextAddress==1){if(!V.blob_||V.originalBlobSize_<=0)return f.return(!1);if(V.blob_.size!==V.originalBlobSize_)return f.return(!0);_.wx(f,2);if(D=FLE(V.blob_,0,1)){var n=new zz,t=nyu(n);n.reader_.readAsBinaryString(D);f=_.b(f,t,4)}else f=f.return(!0);return f}if(f.nextAddress!=2)return f.return(V.blob_.size!==V.originalBlobSize_);_.KW(f);return f.return(!0)})};var cxl=function(V,D,f,n,t,J){_.jT.call(this);this.payload_=n;this.JSC$10113_url_=V;this.JSC$10113_method_=D;this.JSC$10113_headers_=f;this.JSC$10113_metadata_=t;this.encoding_=J||"binary";V=new _.jq;this.boundary_="uploader-"+aV()+"-"+V.JSC$9367_toIsoString();this.JSC$10113_responseText_=this.JSC$10113_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10113_errorDescription_=null;this.JSC$10113_eventHandler_=new _.fl(this);_.wX(this,this.JSC$10113_eventHandler_)};
_.v(cxl,QNl);_.P=cxl.prototype;
_.P.run=function(){var V=_.sB.clone(this.JSC$10113_headers_);this.payload_.length!=null&&(V["Content-Length"]=this.payload_.length);V=ipZ(V);V["X-Goog-Upload-Protocol"]="multipart";V["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Qn;this.JSC$10113_eventHandler_.removeAll();this.JSC$10113_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10113_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10113_url_,this.JSC$10113_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10113_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",V)};
_.P.getResponseCode=function(){return this.JSC$10113_responseCode_};
_.P.getResponseText=function(){return this.JSC$10113_responseText_};
_.P.JSC$26131_getErrorDescription=function(){return this.JSC$10113_errorDescription_};
_.P.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10113_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Hc("o")))};
_.P.pause=function(){};
_.P.onTransferProgress_=function(){this.dispatchEvent(new Hc("k"))};
_.P.onTransferComplete_=function(V){var D=V.target.getStatus();D===void 0||D===-1?(this.JSC$10113_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Hc("n"))):(this.JSC$10113_responseCode_=D,V=V.target,D=LJ(V.getAllResponseHeaders()),SOF(D),this.JSC$10113_responseText_=V.getResponseText(),this.state_="Complete",this.dispatchEvent(new Hc("l")))};_.F$6=function(V,D,f,n){n=n===void 0?!1:n;if(f instanceof JxU)return new TKu(V,"POST",D,f.getInputElement(),"");if(typeof f==="string"||f instanceof String)return new cxl(V,"POST",D,f,"");var t=new TN(void 0);t.JSC$10110_url_=V;t.JSC$10110_method_="POST";t.JSC$10110_headers_=D;t.blob_=f;t.originalBlobSize_=f.size;t.JSC$10110_metadata_="";n&&(t.JSC$10110_withCredentials_=n);t.state_="Start";return t};var yn=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(yn,_.Xm);_.P=yn.prototype;_.P.getEnableSsEngine=function(){return _.ks(this,2)};
_.P.getEnableAwr=function(){return _.ks(this,3)};
_.P.getAlohaAutoGaRollout=function(){return _.ks(this,5)};
_.P.getEnableConfigurator=function(){return _.ks(this,6)};
_.P.getEnableMweb=function(){return _.ks(this,7)};
var vvr=function(){var V=gvu();return _.sX(V,7,!0)};
yn.prototype.getEnableCtlConsentCheckbox=function(){return _.ks(this,8)};
yn.prototype.getEnableIframe=function(){return _.ks(this,9)};
var gvu=function(){var V=new yn;V=_.sX(V,5,!0);V=_.sX(V,2,!0);V=_.sX(V,4,!1);V=_.sX(V,8,!0);return _.sX(V,9,!0)};
yn.prototype.getEnableScreenshotNudge=function(){return _.ks(this,10)};
var k3P=function(){var V=vvr();return _.sX(V,10,!0)};
yn.prototype.getEnableWebStartupConfigEndpoint=function(){return _.ks(this,11)};
yn.prototype.getEnableJunkNudge=function(){return _.ks(this,12)};
var H8Z=function(){var V=k3P();return _.sX(V,12,!0)};
_.P=yn.prototype;_.P.getEnableConfiguratorLocale=function(){return _.ks(this,13)};
_.P.getEnableTinyNoPointer=function(){return _.ks(this,14)};
_.P.getEnableSupportSessionLogging=function(){return _.ks(this,15)};
_.P.getEnableFileUploadForScreenshot=function(){return _.ks(this,16)};
_.P.getEnableDirectDeflectionForSingleCategory=function(){return _.ks(this,17)};
_.P.getEnableImageSanitization=function(){return _.ks(this,18)};
_.P.getEnableAlohaBinarySplit=function(){return _.ks(this,19)};
_.P.getEnableDbFeedbackIntents=function(){return _.ks(this,20)};
_.P.getEnableMarkMandatoryFieldsWithRequired=function(){return _.ks(this,21)};
_.P.getEnableFeedbackCategoryCustomUi=function(){return _.ks(this,22)};
_.P.getEnableRealtimeCtl=function(){return _.ks(this,23)};var riL=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(riL,_.Xm);var WvZ=[/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 Lv9="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 ITx=_.WV(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),OpU=_.WV(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var M$n,VTY,hcL,DmY;var sNH,BKl;
sNH=function(V,D,f){V.timeOfStartCall=(new Date).getTime();var n=f||_.fx,t=n.document,J=V.nonce||_.q8(n.document);J&&!V.nonce&&(V.nonce=J);if(V.flow=="help"){var H=_.Yw("document.location.href",n);!V.helpCenterContext&&H&&(V.helpCenterContext=H.substring(0,1200));H=!0;if(D&&JSON&&JSON.stringify){var Q=JSON.stringify(D);(H=Q.length<=1200)&&(V.psdJson=Q)}H||(D={invalidPsd:!0})}D=[V,D,f];n.GOOGLE_FEEDBACK_START_ARGUMENTS=D;f=V.feedbackServerUri||"//www.google.com/tools/feedback";if(H=n.GOOGLE_FEEDBACK_START)H.apply(n,D);
else{n=f+"/load.js?";for(var T in V)D=V[T],D==null||_.VV(D)||(n+=encodeURIComponent(T)+"="+encodeURIComponent(D)+"&");V=jC(t).createElement("SCRIPT");J&&V.setAttribute("nonce",J);_.Yx(V,_.rQ(n));t.body.appendChild(V)}};
BKl=function(V,D,f,n){var t,J;_.w(function(H){t=f||_.fx;var Q=V.serverEnvironment==="DEV",T=f||_.fx;T=V.nonce||_.q8(T.document);Q={integrationKeys:{productId:V.productId,feedbackBucket:V.bucket,triggerId:V.triggerId},callbacks:{onClose:V.callback,onLoad:V.onLoadCallback},formContent:{locale:V.locale,disableScreenshot:V.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:V.abuseLink,additionalDataConsent:V.additionalDataConsent},initializationData:{isLocalServer:Q,nonce:T,useNightlyRelease:Q,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:V.feedbackServerUri,colorScheme:V.colorScheme},extraData:{productVersion:V.productVersion,authUser:V.authuser,configuratorId:V.configuratorId,customZIndex:V.customZIndex,tinyNoPointer:V.tinyNoPointer,
allowNonLoggedInFeedback:V.allowNonLoggedInFeedback,enableAnonymousFeedback:V.enableAnonymousFeedback}};D&&(T=new Map(Object.entries(D)),Q.extraData.productSpecificData=T);J=Q;return _.b(H,PG3(J,n,t),0)})};
_.dwo=function(V,D,f){try{if(V.flow==="help"){var n=V.helpCenterPath.replace(/^\//,"");_.R3(f||window,"https://support.google.com/"+n)}else V.flow==="submit"?sNH(V,D,f):wT3(V.productId,V.feedbackServerUri).then(function(t){t=_.bW(t,yn,1);var J=!mXL||(t==null?void 0:t.getEnableMweb()),H=!V.tinyNoPointer||(t==null?void 0:t.getEnableTinyNoPointer());!t||t.getAlohaAutoGaRollout()&&J&&H?BKl(V,D,f,t):sNH(V,D,f)},function(t){t&&t.name!=="DuplicateFormError"&&sNH(V,D,f)})}catch(t){BKl(V,D,f,null)}};
_.M4("userfeedback.api.startFeedback",_.dwo);var QiF=/https?:\/\/\S+\.\S+/,THZ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],b8L=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var hpX=function(V){var D=V.split(""),f=[-263237435,15,D,function(n,t,J){var H=t.length;J.forEach(function(Q,T,y){this.push(y[T]=t[(t.indexOf(Q)-t.indexOf(this[T])+T+H--)%t.length])},n.split(""))},
function(n,t){n=(n%t.length+t.length)%t.length;t.splice(-n).reverse().forEach(function(J){t.unshift(J)})},
"response",function(){for(var n=64,t=[];++n-t.length-32;){switch(n){case 58:n-=14;case 91:case 92:case 93:continue;case 123:n=47;case 94:case 95:case 96:continue;case 46:n=95}t.push(String.fromCharCode(n))}return t},
null,12,1540023973,65941107,null,D,function(n,t){for(n=(n%t.length+t.length)%t.length;n--;)t.unshift(t.pop())},
695603893,function(n){for(var t=n.length;t;)n.push(n.splice(--t,1)[0])},
"'[;'[(",function(n,t){n.push(t)},
null,function(n,t,J,H,Q){return t(J,H,Q)},
"continuation",D,function(n,t){if(n.length!=0){t=(t%n.length+n.length)%n.length;var J=n[0];n[0]=n[t];n[t]=J}},
function(){for(var n=64,t=[];++n-t.length-32;){switch(n){case 91:n=44;continue;case 123:n=65;break;case 65:n-=18;continue;case 58:n=96;continue;case 46:n=95}t.push(String.fromCharCode(n))}return t},
'"),/]];'];f[7]=f;f[11]=f;f[18]=f;try{(((0,f[15])(f[21]),f[22])(f[11],f[9]),f[22])(f[new Date("1970-01-01T04:30:12.000+04:30")/1E3],f[1]),((0,f[22])(f[11],f[23]),f[4])(f[10],f[18]),(0,f[20])(f[21],f[14])<<(0,f[17])(f[18],f[1]),(0,f[4])(f[8],f[21]),(0,f[19])((0,f[19])((0,f[17])(f[7],f[9]),f[3],f[20],(0,f[6])(),f[2]),f[3],f[5],(0,f[15])(),f[2])}catch(n){return"aTlOUOubTO4AP____8P_"+V}return D.join("")};_.ucl=new _.L("runAttestationCommand");var NK6=new _.L("verifyCommand");_.Z8=new _.L("accessibilityContext");var mwP=new _.L("accessibilityData");var zRp=new _.L("profileCardCommand");var muY=new _.L("signInEndpoint");var NFR=new _.L("signOutEndpoint");var CYr;_.RRP=new _.L("accountItemSectionRenderer");CYr=new _.L("accountItemRenderer");_.q5F=new _.L("saveCommandToSessionStorageAction");var XVF=new _.L("crossAccountChannelTransferEndpoint");var sAZ=new _.L("getAccountMenuEndpoint");_.BLn=new _.L("getAccountSwitcherEndpoint");var kc9=new _.L("getAccountsListEndpoint");var Evl=new _.L("getAccountsListInnertubeEndpoint");_.jt=new _.L("addToToastAction");var AxE=new _.L("hideEnclosingAction");_.l7=new _.L("replaceEnclosingAction");var a1E=new _.L("buttonRefreshAction");var Y5H=new _.L("adsControlFlowOpportunityReceivedCommand");var $wV=new _.L("openAdAllowlistInstructionCommand");var iYH=new _.L("videoMastheadAdPrimaryVideoRenderer");var S5p=new _.L("displayAdRenderer");var M2X=new _.L("instreamVideoAdRenderer");_.W$V=new _.L("inFeedAdLayoutRenderer");var pVl=new _.L("sequenceItemInPlayerAdLayoutRenderer");_.L$p=new _.L("adSlotRenderer");var I1r=new _.L("adAvatarViewModel");var OYV=new _.L("adBadgeViewModel");var xwp=new _.L("adImageViewModel");var GDL=new _.L("reelsAdCardButtonedViewModel");var M9U=new _.L("reelsPlayerOverlayLayoutViewModel");var hRV=new _.L("showSchedulingPanelCommand");var UwU=new _.L("backstageCommentsRenderer");var VPE=new _.L("backstageImageRenderer");var DkH=new _.L("backstagePostRenderer");var fXp=new _.L("backstageZeroStateRenderer");var nsU=new _.L("postRenderer");var tPE=new _.L("sharedPostRenderer");var P4l=new _.L("createBackstagePostEndpoint");var osr=new _.L("getPostVideoPreviewEndpoint");var JFH=new _.L("updateBackstagePostEndpoint");var rFo=new _.L("filterChipTransformCommand");var HgH=new _.L("insertRichSectionCommand");var Qn9=new _.L("talkToRecsDeselectCommand");var wbY=new _.L("talkToRecsNextCommand");var weR=new _.L("talkToRecsSelectCommand");var Q$p=new _.L("talkToRecsUpdateTextCommand");_.jL=new _.L("browseEndpoint");_.Tfl=new _.L("confirmDialogEndpoint");var bgL=new _.L("expandOnHoverCardRenderer");var Kzl=new _.L("lumiereShelfDetailsRenderer");var yFH=new _.L("revealBusinessEmailCommand");var Zgl=new _.L("validateChannelHandleCommand");var j$6=new _.L("channelCreationFormEndpoint");var lXP=new _.L("aboutChannelViewModel");var Glo=new _.L("channelThumbnailWithLinkRenderer");var eKl=new _.L("channelCreationServiceEndpoint");var cFH=new _.L("updateChannelPageSettingsEndpoint");var GN=function(V){this.delegate=V},et=function(){GN.apply(this,arguments)};
_.v(et,GN);_.IG.Object.defineProperties(et.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(V){this.delegate.entityMetadata=V}}});var FzP=function(){et.apply(this,arguments)};
_.v(FzP,et);FzP.prototype.getAssociations=function(){return[]};var Eh9=new _.L("webThumbnailDetailsExtensionData");var Dn9=new _.L("commandContext");var gsY=new _.L("addVideoLinkAction");var vsV=new _.L("banAuthorAction");var klU=new _.L("createCommentAction");var s$p=new _.L("createCommentReplyAction");var Bfp=new _.L("createPollAction");var dko=new _.L("hideIdentityChipAction");var uXU=new _.L("openUpdateCommentDialogAction");var Nfr=new _.L("pinCommentAction");var mkF=new _.L("removeCommentAction");var zKU=new _.L("unpinCommentAction");var cc=new _.L("updateBackstagePollAction");var RKu=new _.L("updateCommentVoteAction");var C4u=new _.L("commentThreadRenderer");var qkP=function(){et.apply(this,arguments)};
_.v(qkP,et);qkP.prototype.getAssociations=function(){return[]};var XbF=function(){et.apply(this,arguments)};
_.v(XbF,et);XbF.prototype.getAssociations=function(){return[]};_.EsH=new _.L("commentDialogRenderer");var AFH=new _.L("reloadCommentsCommand");var aXl=new _.L("updateCommentsSettingsEndpoint");var YkY=new _.L("commentViewModel");var $kU=new _.L("triStateButtonViewModel");var igo=new _.L("voiceReplyContainerViewModel");_.Tm=new _.L("commandExecutorCommand");var R5=new _.L("emoji");var Sko=new _.L("updateCreatorChannelInnertubeCommand");_.WzU=new _.L("appendContinuationItemsAction");_.pbl=new _.L("changeEngagementPanelVisibilityAction");_.Xh=new _.L("continuationCommand");var LzL=new _.L("hideReportedCommentAction");var IXF=new _.L("listMutationCommand");_.Fb=new _.L("openPopupAction");var Ogp=new _.L("persistSubscriptionsDisplayPreferencesCommand");var nNp;_.xko=new _.L("playlistRemoveVideosAction");_.MPu=new _.L("updatePlaylistAction");_.hKP=new _.L("addToPlaylistCommand");_.UkP=new _.L("endPlaylistCommand");_.V$V=new _.L("recoverPlaylistCommand");_.DMP=new _.L("refreshPlaylistCommand");_.fTo=new _.L("refreshFormCommand");nNp=new _.L("openOnePickAddVideoModalCommand");_.RwU=new _.L("reloadContinuationItemsCommand");_.t$U=new _.L("scrollToEngagementPanelCommand");var Pg6=new _.L("selectCountryCommand");var oNL=new _.L("showReloadUiCommand");var JDE=new _.L("undoFeedbackAction");var rDH=new _.L("updateButtonAction");var Hpr=new _.L("updateSubscribeButtonAction");var wNp=new _.L("updateToggleAction");var QzF=new _.L("webNativeShareCommand");_.he=new _.L("webCommandMetadata");_.g0=new _.L("webHandleServiceEndpointExtension");var NJc=new _.L("webNavigationEndpointData");var TTP=new _.L("copyLinkCommand");var bpl=new _.L("playlistVotingRefreshPopupCommand");var Kv6=new _.L("selectChipCommand");var yDo=new _.L("setCookieCommand");var Zpo=new _.L("setLocalStorageCommand");var jzH=new _.L("setPrefStorageEntryCommand");var cDu;_.lTV=new _.L("settingsUpdateCheckboxCommand");_.G$V=new _.L("settingsUpdateTextCommand");_.ecV=new _.L("settingsUpdateOptionsCommand");cDu=new _.L("settingsUpdateSwitchCommand");_.Fv6=new _.L("settingsUpdateConnectedAppRendererCommand");var gNP=new _.L("updateTextInputFormFieldRendererCommand");var vNo=new _.L("updateToggleButtonStateCommand");var k$U=new _.L("updateUrlParamCommand");var szY=new _.L("webSubmitFormCommand");var BTo=new _.L("channelSwitcherPageRenderer"),dMo=new _.L("updateChannelSwitcherPageAction");_.fY=new _.L("continuationItemRenderer");_.vc=new _.L("richItemRenderer");var uPP=new _.L("richSectionRenderer");_.NTo=new _.L("richShelfRenderer");_.mMr=new _.L("metadataBadgeRenderer");_.zcl=new _.L("multiPageMenuNotificationSectionRenderer");_.Rcr=new _.L("playlistLoopButtonStateRenderer");var Cgo=new _.L("claimLegacyYoutubeChannelEndpoint");var qOL=new _.L("getNotificationMenuEndpoint");var XNr=new _.L("getSearchInVideoCommand");_.EN6=new _.L("getTranscriptEndpoint");_.K6=new _.L("signalServiceEndpoint");var ADl=new _.L("verifyAgeEndpoint");var D$Z=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(D$Z,_.Xm);D$Z.prototype.getPath=function(){return _.df(this,1)};
D$Z.prototype.getValue=function(){return _.df(this,2)};var aTp=[0,_.SP,-1];var YO6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(YO6,_.Xm);var VxL=_.Me(YO6,[0,_.Wb,aTp]);var $MU=new _.L("dismissalEndpoint");var ipP=new _.L("elementsCommand");_.q3=new _.L("innertubeCommand");var SOp=new _.L("multipleInlinePlaybackCommand");var KZd=new _.L("loggingDirectives");var WvP=new _.L("acknowledgeChannelTouStrikeCommand");var pNo=function(){et.apply(this,arguments)};
_.v(pNo,et);pNo.prototype.getAssociations=function(){return[]};var Lvl=function(){et.apply(this,arguments)};
_.v(Lvl,et);Lvl.prototype.getAssociations=function(){return[]};var pT=new _.L("entityBatchUpdate");_.ITo=new _.L("entityUpdateCommand");var OpL=function(){et.apply(this,arguments)};
_.v(OpL,et);OpL.prototype.getAssociations=function(){var V=[];this.delegate.alternateChannel&&V.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&V.push.apply(V,_.sz(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&V.push(this.delegate.oneofChannelEntity);return[].concat(_.sz(new Set(V)))};var xME=function(){et.apply(this,arguments)};
_.v(xME,et);xME.prototype.getAssociations=function(){var V=[];this.delegate.entryCollection&&V.push(this.delegate.entryCollection);return[].concat(_.sz(new Set(V)))};
var M$H=function(){et.apply(this,arguments)};
_.v(M$H,et);M$H.prototype.getAssociations=function(){var V=[];this.delegate.parentPlaylist&&V.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var D=_.r(this.delegate.entries),f=D.next();!f.done;f=D.next())V.push.apply(V,_.sz((new hcU(f.value)).getAssociations()));return[].concat(_.sz(new Set(V)))};
var hcU=function(){GN.apply(this,arguments)};
_.v(hcU,GN);hcU.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);return[].concat(_.sz(new Set(V)))};var UMu=function(){et.apply(this,arguments)};
_.v(UMu,et);UMu.prototype.getAssociations=function(){var V=[];this.delegate.descriptionEntity&&V.push(this.delegate.descriptionEntity);this.delegate.creators&&V.push.apply(V,_.sz(this.delegate.creators));this.delegate.theBiggestFan&&V.push(this.delegate.theBiggestFan);return[].concat(_.sz(new Set(V)))};
var VTl=function(){et.apply(this,arguments)};
_.v(VTl,et);VTl.prototype.getAssociations=function(){return[]};var Dml=new _.L("fantasyRosterViewModel");var fUU=new _.L("addFollowUpSurveyCommand");var nql=new _.L("getSurveyCommand");var tTu=new _.L("ratingSurveyOptionRenderer");_.uY=new _.L("feedbackEndpoint");var PG6=new _.L("reportHistoryTableCellRenderer"),oqF=new _.L("reportHistoryTableTextCellRenderer"),JiH=new _.L("reportHistoryTableReasonCellRenderer");_.riU=new _.L("flagEndpoint");var H8P=new _.L("getFlowCommand");var wT6=new _.L("submitFormWithValidationFlowCommand");var Qip=function(){et.apply(this,arguments)};
_.v(Qip,et);Qip.prototype.getAssociations=function(){return[]};var THF=new _.L("flowFormState");var b8U=new _.L("gameCardRenderer");var KjL=new _.L("accountLinkingStateChangedCommand");var yio=function(){et.apply(this,arguments)};
_.v(yio,et);yio.prototype.getAssociations=function(){return[]};var Z8F=new _.L("changeMiniAppPlayStateCommand");var jiE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(jiE,_.Xm);var kB=[1,2,3];var lUP=[0,kB,oHn,_.JHZ,Ucc];var GG6=_.Me(jiE,lUP),eyV=_.hn(lUP);var ciE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(ciE,_.Xm);var FjV=[0,_.Ys,_.SP];var gqH=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(gqH,_.Xm);var vqo=[0,_.SP,_.Ys,-1];var sC=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(sC,_.Xm);var kGF=_.hn([0,1,FjV,_.Lg,vqo]);var siP=new _.L("miniAppScoreChallengeViewModel");var BHF=new _.L("miniGameCardViewModel");var dmF=new _.L("teaserCardViewModel");var u6Y=function(){et.apply(this,arguments)};
_.v(u6Y,et);u6Y.prototype.getAssociations=function(){return[]};_.NHl=new _.L("feedbackItemRenderer");var mmE=function(){et.apply(this,arguments)};
_.v(mmE,et);mmE.prototype.getAssociations=function(){return[]};_.zyF=new _.L("playerInterstitialRenderer");var Ryr=new _.L("getKidsBlocklistPickerCommand");_.CGU=new _.L("updateKidsBlacklistEndpoint");_.$V=new _.L("likeEndpoint");var q7U,XTp,EqF;q7U=new _.L("addChatItemAction");XTp=new _.L("removeChatItemAction");EqF=new _.L("markChatItemAsDeletedAction");_.AiP=new _.L("setLiveChatCollapsedStateAction");var aUl=function(){et.apply(this,arguments)};
_.v(aUl,et);aUl.prototype.getAssociations=function(){return[]};var Y7L=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Y7L,_.Xm);var $mF=_.Me(Y7L,[0,1,_.Ys]);var i8E=new _.L("liveChatEndpoint");var S7V=new _.L("liveChatItemContextMenuEndpoint");var WjH=new _.L("liveChatReplayEndpoint");_.pTF=new _.L("emojiPickerRenderer");var LjE=new _.L("liveChatAuthorBadgeViewModel");var IUu=new _.L("deleteLiveChatMessageCommand");var O8l=new _.L("liveChatActionEndpoint");var xmp=new _.L("createLiveChatPollEndpoint");var MT6=new _.L("manageLiveChatUserEndpoint");var hyr=new _.L("moderateLiveChatEndpoint");_.Um6=new _.L("sendLiveChatMessageEndpoint");var VNH=new _.L("sendLiveChatVoteEndpoint");var D7L=new _.L("clearLocationCommand");var fpr=new _.L("resolveLocationCommand");var n1H=new _.L("interactionLoggingCommandMetadata");var tNV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(tNV,_.Xm);var PT6=function(V,D){return _.oV(V,1,D)};var o1V=[0,_.i4];var Ju6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Ju6,_.Xm);var ruL=function(V,D){return yf(V,1,tNV,D)};Ju6.prototype.JSC$10207_serializeBinary=f3d([0,_.Wb,o1V]);var Ryc={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 H$F={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"},
wko={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 EFL={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"};_.DOU=new _.L("logFlowLoggingEventCommand");_.GK=new _.L("loggingContext");var QHF=new _.L("captionLanguageSelectActionCommand");var TAF=new _.L("showCaptionLanguageSelectActionCommand");var b$l=new _.L("dismissDialogEndpoint");var K6F=new _.L("hideItemSectionVideosByIdCommand");var yur=new _.L("showMiniplayerCommand");var Z$r=function(){et.apply(this,arguments)};
_.v(Z$r,et);Z$r.prototype.getAssociations=function(){return[]};var jHr=function(){et.apply(this,arguments)};
_.v(jHr,et);jHr.prototype.getAssociations=function(){return[]};var lpp=function(){et.apply(this,arguments)};
_.v(lpp,et);lpp.prototype.getAssociations=function(){return[]};var Ggl=function(){et.apply(this,arguments)};
_.v(Ggl,et);Ggl.prototype.getAssociations=function(){var V=[];this.delegate.downloadsList&&V.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&V.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&V.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&V.push(this.delegate.refresh);return[].concat(_.sz(new Set(V)))};var e4u=function(){et.apply(this,arguments)};
_.v(e4u,et);e4u.prototype.getAssociations=function(){var V=[];this.delegate.refresh&&V.push(this.delegate.refresh);if(this.delegate.downloads)for(var D=_.r(this.delegate.downloads),f=D.next();!f.done;f=D.next())V.push.apply(V,_.sz((new cu6(f.value)).getAssociations()));return[].concat(_.sz(new Set(V)))};
var cu6=function(){GN.apply(this,arguments)};
_.v(cu6,GN);cu6.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.playlist&&V.push(this.delegate.playlist);this.delegate.videoItem&&V.push(this.delegate.videoItem);this.delegate.playlistItem&&V.push(this.delegate.playlistItem);return[].concat(_.sz(new Set(V)))};var F6F=function(){et.apply(this,arguments)};
_.v(F6F,et);F6F.prototype.getAssociations=function(){var V=[];this.delegate.localImageEntities&&V.push.apply(V,_.sz(this.delegate.localImageEntities));return[].concat(_.sz(new Set(V)))};var g1F=function(){et.apply(this,arguments)};
_.v(g1F,et);g1F.prototype.getAssociations=function(){var V=[];this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.localImageEntities&&V.push.apply(V,_.sz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.sz(new Set(V)))};var v1Y=function(){et.apply(this,arguments)};
_.v(v1Y,et);v1Y.prototype.getAssociations=function(){return[]};var kgU=function(){et.apply(this,arguments)};
_.v(kgU,et);kgU.prototype.getAssociations=function(){var V=[];this.delegate.fakeChildren&&V.push.apply(V,_.sz(this.delegate.fakeChildren));return[].concat(_.sz(new Set(V)))};var sHF=function(){et.apply(this,arguments)};
_.v(sHF,et);sHF.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&V.push(this.delegate.offlineVideoPolicy);return[].concat(_.sz(new Set(V)))};var BAE=function(){et.apply(this,arguments)};
_.v(BAE,et);BAE.prototype.getAssociations=function(){return[]};var d76=function(){et.apply(this,arguments)};
_.v(d76,et);d76.prototype.getAssociations=function(){var V=[];this.delegate.channelOwner&&V.push(this.delegate.channelOwner);this.delegate.videos&&V.push.apply(V,_.sz(this.delegate.videos));this.delegate.collaboratorChannels&&V.push.apply(V,_.sz(this.delegate.collaboratorChannels));this.delegate.downloadState&&V.push(this.delegate.downloadState);this.delegate.refresh&&V.push(this.delegate.refresh);return[].concat(_.sz(new Set(V)))};var uuU=function(){et.apply(this,arguments)};
_.v(uuU,et);uuU.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.channelContributor&&V.push(this.delegate.channelContributor);return[].concat(_.sz(new Set(V)))};var NAp=function(){GN.apply(this,arguments)};
_.v(NAp,GN);NAp.prototype.getAssociations=function(){var V=[];this.delegate.recommendedVideoMetadata&&V.push.apply(V,_.sz((new m7l(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.sz(new Set(V)))};
var m7l=function(){GN.apply(this,arguments)};
_.v(m7l,GN);m7l.prototype.getAssociations=function(){var V=[];this.delegate.localImageEntities&&V.push.apply(V,_.sz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.sz(new Set(V)))};var z4u=function(){GN.apply(this,arguments)};
_.v(z4u,GN);z4u.prototype.getAssociations=function(){var V=[];this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);return[].concat(_.sz(new Set(V)))};var R4L=function(){et.apply(this,arguments)};
_.v(R4L,et);R4L.prototype.getAssociations=function(){var V=[];this.delegate.owner&&V.push(this.delegate.owner);this.delegate.downloadState&&V.push(this.delegate.downloadState);this.delegate.userState&&V.push.apply(V,_.sz((new z4u(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&V.push.apply(V,_.sz((new NAp(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.sz(new Set(V)))};var CTu=function(){et.apply(this,arguments)};
_.v(CTu,et);CTu.prototype.getAssociations=function(){var V=[];this.delegate.userChannelDetails&&V.push(this.delegate.userChannelDetails);return[].concat(_.sz(new Set(V)))};var qyV=function(){et.apply(this,arguments)};
_.v(qyV,et);qyV.prototype.getAssociations=function(){var V=[];this.delegate.channelOwner&&V.push(this.delegate.channelOwner);this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&V.push.apply(V,_.sz(this.delegate.localImageEntities));this.delegate.downloadStatus&&V.push(this.delegate.downloadStatus);return[].concat(_.sz(new Set(V)))};var P7d=new _.L("downloadsPageSmartDownloadsOptInBannerParams");var H9Y=new _.L("downloadsPageUpsellBannerParams");var XkU=function(){et.apply(this,arguments)};
_.v(XkU,et);XkU.prototype.getAssociations=function(){return[]};var E1V=function(){et.apply(this,arguments)};
_.v(E1V,et);E1V.prototype.getAssociations=function(){return[]};var AuY=function(){et.apply(this,arguments)};
_.v(AuY,et);AuY.prototype.getAssociations=function(){return[]};var ap6=function(){et.apply(this,arguments)};
_.v(ap6,et);ap6.prototype.getAssociations=function(){return[]};var YyL=function(){et.apply(this,arguments)};
_.v(YyL,et);YyL.prototype.getAssociations=function(){return[]};var $7L=function(){et.apply(this,arguments)};
_.v($7L,et);$7L.prototype.getAssociations=function(){return[]};var i$Y=function(){et.apply(this,arguments)};
_.v(i$Y,et);i$Y.prototype.getAssociations=function(){return[]};var SyP=function(){et.apply(this,arguments)};
_.v(SyP,et);SyP.prototype.getAssociations=function(){return[]};var W6o=function(){et.apply(this,arguments)};
_.v(W6o,et);W6o.prototype.getAssociations=function(){return[]};_.Bc=new _.L("dislikeButtonViewModel");_.d0=new _.L("likeButtonViewModel");var pkF=new _.L("videoSummaryContentViewModel");var L6l=new _.L("videoSummaryParagraphViewModel");var Ipl=new _.L("changeTimelyActionVisibilityCommand");var O$L=new _.L("hideEngagementPanelEndpoint");var x7o=new _.L("refreshPanelEndpoint");var MNL=new _.L("scrollToSectionEndpoint");var h4V=new _.L("seekToVideoTimestampCommand");_.dK=new _.L("showEngagementPanelEndpoint");var U7Y=new _.L("showTransientPlayerScrimOverlayCommand");var VhE=new _.L("toggleEngagementPanelCommand");_.DQl=new _.L("createBroadcastCommand");var fBE=new _.L("metadataUpdateCommand");var nGY=function(){et.apply(this,arguments)};
_.v(nGY,et);nGY.prototype.getAssociations=function(){return[]};var thl=function(){et.apply(this,arguments)};
_.v(thl,et);thl.prototype.getAssociations=function(){return[]};var PiF=function(){et.apply(this,arguments)};
_.v(PiF,et);PiF.prototype.getAssociations=function(){return[]};_.oGu=new _.L("merchandiseShelfRenderer");var J_p=new _.L("gridMovieRenderer");_.r_V=new _.L("movieRenderer");var HnP=function(){et.apply(this,arguments)};
_.v(HnP,et);HnP.prototype.getAssociations=function(){var V=[];this.delegate.trackDownloadMetadatas&&V.push.apply(V,_.sz(this.delegate.trackDownloadMetadatas));return[].concat(_.sz(new Set(V)))};var wEl=function(){et.apply(this,arguments)};
_.v(wEl,et);
wEl.prototype.getAssociations=function(){var V=[];this.delegate.downloadedTracks&&V.push.apply(V,_.sz(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&V.push.apply(V,_.sz(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&V.push.apply(V,_.sz(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&V.push.apply(V,_.sz(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&V.push.apply(V,_.sz(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
V.push.apply(V,_.sz(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&V.push.apply(V,_.sz(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&V.push.apply(V,_.sz(this.delegate.metadataOnlyTracks));return[].concat(_.sz(new Set(V)))};var QcU=function(){et.apply(this,arguments)};
_.v(QcU,et);QcU.prototype.getAssociations=function(){var V=[];this.delegate.trackDownloadMetadatas&&V.push.apply(V,_.sz(this.delegate.trackDownloadMetadatas));return[].concat(_.sz(new Set(V)))};var Tlr=function(){et.apply(this,arguments)};
_.v(Tlr,et);Tlr.prototype.getAssociations=function(){var V=[];this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.localImageEntities&&V.push.apply(V,_.sz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.sz(new Set(V)))};var bnp=function(){et.apply(this,arguments)};
_.v(bnp,et);
bnp.prototype.getAssociations=function(){var V=[];this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&V.push.apply(V,_.sz(this.delegate.primaryArtists));this.delegate.details&&V.push(this.delegate.details);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.tracks&&V.push.apply(V,_.sz(this.delegate.tracks));this.delegate.share&&V.push(this.delegate.share);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.refresh&&
V.push(this.delegate.refresh);return[].concat(_.sz(new Set(V)))};
var KSF=function(){et.apply(this,arguments)};
_.v(KSF,et);KSF.prototype.getAssociations=function(){var V=[];this.delegate.albumRelease&&V.push(this.delegate.albumRelease);this.delegate.tracks&&V.push.apply(V,_.sz(this.delegate.tracks));return[].concat(_.sz(new Set(V)))};
var y_P=function(){et.apply(this,arguments)};
_.v(y_P,et);y_P.prototype.getAssociations=function(){var V=[];this.delegate.albumRelease&&V.push(this.delegate.albumRelease);return[].concat(_.sz(new Set(V)))};var ZnL=function(){et.apply(this,arguments)};
_.v(ZnL,et);ZnL.prototype.getAssociations=function(){var V=[];this.delegate.details&&V.push(this.delegate.details);this.delegate.userDetails&&V.push(this.delegate.userDetails);return[].concat(_.sz(new Set(V)))};
var jcr=function(){et.apply(this,arguments)};
_.v(jcr,et);jcr.prototype.getAssociations=function(){var V=[];this.delegate.parentArtist&&V.push(this.delegate.parentArtist);return[].concat(_.sz(new Set(V)))};
var lBP=function(){et.apply(this,arguments)};
_.v(lBP,et);lBP.prototype.getAssociations=function(){var V=[];this.delegate.parentArtist&&V.push(this.delegate.parentArtist);return[].concat(_.sz(new Set(V)))};var GwE=function(){et.apply(this,arguments)};
_.v(GwE,et);GwE.prototype.getAssociations=function(){return[]};var eYL=function(){et.apply(this,arguments)};
_.v(eYL,et);eYL.prototype.getAssociations=function(){return[]};var c_H=function(){et.apply(this,arguments)};
_.v(c_H,et);
c_H.prototype.getAssociations=function(){var V=[];this.delegate.tracks&&V.push.apply(V,_.sz(this.delegate.tracks));this.delegate.refresh&&V.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&V.push(this.delegate.details);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&V.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.entryCollection&&
V.push(this.delegate.entryCollection);this.delegate.share&&V.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&V.push.apply(V,_.sz((new FSp(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.sz(new Set(V)))};
var FSp=function(){GN.apply(this,arguments)};
_.v(FSp,GN);FSp.prototype.getAssociations=function(){var V=[];this.delegate.creatorEntity&&V.push(this.delegate.creatorEntity);return[].concat(_.sz(new Set(V)))};var gGP=function(){et.apply(this,arguments)};
_.v(gGP,et);gGP.prototype.getAssociations=function(){return[]};var vGE=function(){et.apply(this,arguments)};
_.v(vGE,et);
vGE.prototype.getAssociations=function(){var V=[];this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&V.push.apply(V,_.sz(this.delegate.artists));this.delegate.audioModeVersion&&V.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&V.push(this.delegate.videoModeVersion);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.details&&V.push(this.delegate.details);this.delegate.albumRelease&&V.push(this.delegate.albumRelease);this.delegate.share&&
V.push(this.delegate.share);this.delegate.libraryEdit&&V.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);this.delegate.lyrics&&V.push(this.delegate.lyrics);return[].concat(_.sz(new Set(V)))};
var kwu=function(){et.apply(this,arguments)};
_.v(kwu,et);kwu.prototype.getAssociations=function(){var V=[];this.delegate.parentTrack&&V.push(this.delegate.parentTrack);return[].concat(_.sz(new Set(V)))};
var scV=function(){et.apply(this,arguments)};
_.v(scV,et);scV.prototype.getAssociations=function(){var V=[];this.delegate.parentTrack&&V.push(this.delegate.parentTrack);return[].concat(_.sz(new Set(V)))};var U1=new _.L("musicResponsiveListItemRenderer");var EPY=new _.L("addToPlaylistEndpoint");var BlF=new _.L("captionPickerEndpoint");var dQH=new _.L("suggestStats");var ukF=new _.L("backstageImageUploadEndpoint");var NlF=new _.L("createBackstagePostDialogEndpoint");_.mQY=new _.L("createCommentReplyDialogEndpoint");_.zYr=new _.L("updateCommentDialogEndpoint");_.RYu=new _.L("updateCommentReplyDialogEndpoint");var CiU=new _.L("menuEndpoint");var BJx=new _.L("modalEndpoint");var qjF=new _.L("playlistEditorEndpoint");var XEU=new _.L("copyTextEndpoint");var EGl,A_P;EGl=new _.L("shareEndpoint");A_P=new _.L("shareEntityEndpoint");_.aBY=new _.L("shareEntityServiceEndpoint");_.xEd=new _.L("userFeedbackEndpoint");_.pl=new _.L("watchEndpoint");var rv9=new _.L("watchPlaylistEndpoint");var YjH=new _.L("addUpcomingEventReminderEndpoint");_.u7=new _.L("getCommentsFromInboxCommand");var $Q6=new _.L("notificationOptOutEndpoint");var inu=new _.L("recordNotificationInteractionsEndpoint");var SjE=new _.L("removeUpcomingEventReminderEndpoint");var qhX=new _.L("getDownloadActionCommand");_.WSl=new _.L("offlineOrchestrationActionCommand");var pEl=function(){et.apply(this,arguments)};
_.v(pEl,et);pEl.prototype.getAssociations=function(){return[]};var LSF=function(){et.apply(this,arguments)};
_.v(LSF,et);LSF.prototype.getAssociations=function(){return[]};var IBL=function(){et.apply(this,arguments)};
_.v(IBL,et);IBL.prototype.getAssociations=function(){return[]};var Ono=function(){et.apply(this,arguments)};
_.v(Ono,et);Ono.prototype.getAssociations=function(){return[]};var xQu=function(){et.apply(this,arguments)};
_.v(xQu,et);xQu.prototype.getAssociations=function(){var V=[];this.delegate.transfer&&V.push(this.delegate.transfer);this.delegate.adsPlaybackData&&V.push.apply(V,_.sz(this.delegate.adsPlaybackData));this.delegate.drmLicense&&V.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&V.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.sz(new Set(V)))};var Mhl=function(){et.apply(this,arguments)};
_.v(Mhl,et);Mhl.prototype.getAssociations=function(){return[]};var hYH=function(){et.apply(this,arguments)};
_.v(hYH,et);hYH.prototype.getAssociations=function(){var V=[];this.delegate.offlineVideoStreams&&V.push.apply(V,_.sz(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&V.push.apply(V,_.sz(this.delegate.captionTrack));return[].concat(_.sz(new Set(V)))};var UQL=function(){et.apply(this,arguments)};
_.v(UQL,et);UQL.prototype.getAssociations=function(){return[]};var Vql=new _.L("showMoreDrawerCommand");var DWU=new _.L("updateEngagementPanelContentCommand");var fAo=new _.L("getPdgBuyFlowCommand");var n9u=new _.L("liveChatPurchaseMessageEndpoint");var tqo=new _.L("openSuperStickerBuyFlowCommand");var Pyl=new _.L("updatePdgFeatureEnablementCommand");var o9V=function(){et.apply(this,arguments)};
_.v(o9V,et);o9V.prototype.getAssociations=function(){return[]};var Jb6=function(){et.apply(this,arguments)};
_.v(Jb6,et);Jb6.prototype.getAssociations=function(){return[]};_.rbL=new _.L("pdgCommentChipRenderer");_.HNH=new _.L("permissionRoleBottomBarRenderer");_.wyF=new _.L("updatePermissionRoleCommand");var Qa6=new _.L("prefetchWatchCommand");var Tor=new _.L("updatePlayerErrorMessageCommand");var dvU=new _.L("toggleCaptionsVisibilityCommand");_.bNE=new _.L("quickActionsViewModel");var K4r=new _.L("playerResponse");var ybu=new _.L("playlistRenderer");_.ZNE=new _.L("playlistVideoListRenderer");_.NT=new _.L("playlistEditEndpoint");var jaF=new _.L("createImagePollCommand");var lAo=new _.L("createQuizCommand");var GzF=new _.L("quizRenderer");var eNo=new _.L("uploadedVideoRenderer");var cbH=new _.L("decorateMessageEndpoint");var F4U=new _.L("lpOfferCardOptionViewModel");var g9r=new _.L("sfvAudioItemPlaybackCommand");var v9p=function(){et.apply(this,arguments)};
_.v(v9p,et);v9p.prototype.getAssociations=function(){return[]};_.mJ=new _.L("reelNonVideoContentEndpoint");_.gU=new _.L("reelWatchEndpoint");_.zN=new _.L("reelItemRenderer");_.kzr=new _.L("reelMetapanelViewModel");_.sar=new _.L("reelNonVideoContentRenderer");_.Boo=new _.L("reelPlayerOverlayRenderer");var dWl=new _.L("shortsLockupViewModel");var uLp=new _.L("sponsorButtonViewModel");var Nol=new _.L("reelItemWatchResponse");var mWV=new _.L("textBadgeRenderer");_.RI=new _.L("buttonRenderer");_.C9=new _.L("toggleButtonRenderer");var T6Z=new _.L("switchButtonViewModel");_.zNU=new _.L("confirmDialogRenderer");var RNU;RNU=new _.L("menuRenderer");_.CyH=new _.L("menuFlexibleItemRenderer");var qDY=new _.L("pollRenderer");_.XyE=new _.L("backgroundPromoRenderer");var AbY;_.E9U=new _.L("chipCloudRenderer");AbY=new _.L("chipCloudChipRenderer");var aAu=new _.L("dropdownRenderer");var YDH=new _.L("gridVideoRenderer");_.$WF=new _.L("itemSectionRenderer");_.iN6=new _.L("messageRenderer");var SDY=new _.L("sortFilterHeaderRenderer");_.qT=new _.L("videoRenderer");var W4E=new _.L("resolveUrlCommandMetadata");var pyo=function(){et.apply(this,arguments)};
_.v(pyo,et);pyo.prototype.getAssociations=function(){return[]};_.Mau=new _.L("getAnswerCommand");_.ld=new _.L("searchEndpoint");var h2Y=new _.L("genAiRichTextViewModel");var CtY=new _.L("overviewAnswerViewModel");var UHl=new _.L("addToPlaylistServiceEndpoint");var VtL=new _.L("clearSearchHistoryEndpoint");var DTp=new _.L("clearWatchHistoryEndpoint");var f8l=new _.L("webSerializedServiceEndpointExtension");_.nBl=new _.L("createCommentEndpoint");var ttu=new _.L("createCommentReplyEndpoint");var P7u=new _.L("performCommentActionEndpoint");var oBP=new _.L("updateCommentEndpoint");var JT6=new _.L("updateCommentReplyEndpoint");_.Xb=new _.L("createPlaylistServiceEndpoint");var rTV=new _.L("deletePlaylistEndpoint");var H9l=new _.L("deleteVideoEndpoint");var X3X=new _.L("getReportFormEndpoint");var wcl=new _.L("modifyChannelNotificationPreferenceEndpoint");var Uu9;_.Tv=new _.L("offlinePlaylistEndpoint");Uu9={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 VuL;_.Q1=new _.L("offlineVideoEndpoint");VuL={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 QIY=new _.L("pingingEndpoint");_.T0E=new _.L("selectActiveIdentityEndpoint");var b9p=new _.L("setSettingEndpoint");var TV9=new _.L("undoFeedbackEndpoint");var KJ6=new _.L("unsubscribeEndpoint");_.yTp=new _.L("updatedMetadataEndpoint");var Z9Y=function(){et.apply(this,arguments)};
_.v(Z9Y,et);Z9Y.prototype.getAssociations=function(){return[]};_.jIV=new _.L("updateLocalAppSettingCommand");var l8o=new _.L("saveImageToDeviceEndpoint");var GNF=new _.L("shareImageCommand");var ePL=new _.L("sharingProviderDataCommand");var cTp=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(cTp,_.Xm);var FJu=[0,_.SP,-1];cTp.prototype.JSC$10408_serializeBinary=f3d(FJu);var gBP=_.hn(FJu);var vBp=new _.L("userMentionSuggestionRenderer");var kNV=new _.L("liveChatTunnelCommand");var sIl=new _.L("showSponsorshipsGiftOfferDialogCommand");var B0V=new _.L("sponsorshipsScrollableShelfViewModel");var dT6=new _.L("updateUpcomingEventReminderButtonStateCommand");var ubr=new _.L("upcomingEventReminderButtonStateRenderer");var N0Y=new _.L("subscribeEndpoint");var mTl=new _.L("registerTasksCommand");var zPE=new _.L("hideSnackbarCommand");var RPr=new _.L("showDialogCommand");_.Zt=new _.L("showSheetCommand");var C7l=new _.L("showSnackbarCommand");var qCP=function(){et.apply(this,arguments)};
_.v(qCP,et);qCP.prototype.getAssociations=function(){return[]};var Xcl=function(){et.apply(this,arguments)};
_.v(Xcl,et);Xcl.prototype.getAssociations=function(){return[]};_.AY=new _.L("avatarViewModel");var EBl=new _.L("badgeViewModel");_.cW=new _.L("buttonViewModel");_.EC=new _.L("chipViewModel");var Fu9=new _.L("collectionThumbnailViewModel");var ATH=new _.L("contentPreviewImageViewModel");var a8p=new _.L("decoratedAvatarViewModel");var nYY=new _.L("downloadButtonViewModel");_.ZsZ=new _.L("engagementBarViewModel");_.YCu=new _.L("imageBannerViewModel");var $TU=new _.L("lockupContentMetadataRowExtension");var i96=new _.L("lockupMetadataViewModel");_.SCE=new _.L("lockupViewModel");var WJY=new _.L("avatarStackViewModel");_.pcP=new _.L("contentMetadataViewModel");var LJl=function(){et.apply(this,arguments)};
_.v(LJl,et);LJl.prototype.getAssociations=function(){return[]};_.I8V=new _.L("pageHeaderViewModel");var O9V=new _.L("snackbarViewModel");var xTP=new _.L("thumbnailHoverOverlayToggleActionsViewModel");_.FO=new _.L("toggleButtonViewModel");var MtF=function(){et.apply(this,arguments)};
_.v(MtF,et);MtF.prototype.getAssociations=function(){return[]};_.je3=new _.L("votingViewModel");var hPV=new _.L("sectionHeaderViewModel");var UTu=new _.L("notifyDropdownOptionSelectedCommand");var iuL=new _.L("listViewModel");_.jK=new _.L("listItemViewModel");var VzY=new _.L("dialogHeaderViewModel");var DPF=function(){et.apply(this,arguments)};
_.v(DPF,et);DPF.prototype.getAssociations=function(){return[]};var fDu=function(){et.apply(this,arguments)};
_.v(fDu,et);fDu.prototype.getAssociations=function(){return[]};var ncV=function(){et.apply(this,arguments)};
_.v(ncV,et);ncV.prototype.getAssociations=function(){return[]};_.tzo=new _.L("transcriptSubmitCaptionCorrectionCommand");var P$l=function(){et.apply(this,arguments)};
_.v(P$l,et);P$l.prototype.getAssociations=function(){return[]};var ydL=new _.L("unpluggedStringRunImage");var ocE=new _.L("tabViewModel");var J6P=new _.L("tabbedViewModel");var r6u=function(){et.apply(this,arguments)};
_.v(r6u,et);r6u.prototype.getAssociations=function(){return[]};_.H_E=new _.L("updateDescriptionAction");var w5Y=new _.L("updateToggleButtonTextAction");_.QjH=new _.L("autoplaySwitchButtonRenderer");var m$;_.TWp=new _.L("multiMarkersPlayerBarRenderer");m$=new _.L("chapterRenderer");var b_l=new _.L("heatMarkerRenderer");var vMX=new _.L("heatmapRenderer");var K5E=new _.L("smartSkipPlayerScrimOverlayRenderer");var y6H=new _.L("timedMarkerDecorationRenderer");var fGX=new _.L("postWebToNativeMessageCommand");var Z_l=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Z_l,_.Xm);var jj6=_.Me(Z_l,[0,_.SP,-2]);var lD6=new _.L("whitelistEditEndpoint");var GIl=new _.L("clearUrlParamCommand");var e_u=new _.L("commerceActionCommand");_.c6H=new _.L("getPaymentInstrumentsParamsCommand");var F5r=new _.L("getPaymentsClientTokenCommand");var gco=new _.L("googlePaymentBillingCommand");var vcY=new _.L("googlePaymentPurchaseManagerCommand");_.kIo=new _.L("logGtmCommand");var sjY=new _.L("updateCardItemOnClickCommand");_.BWV=new _.L("ypcPauseSubscriptionCommand");_.dP6=new _.L("ypcResumeSubscriptionCommand");var u7o=function(){et.apply(this,arguments)};
_.v(u7o,et);u7o.prototype.getAssociations=function(){return[]};var NWF=function(){et.apply(this,arguments)};
_.v(NWF,et);NWF.prototype.getAssociations=function(){return[]};var mPp=function(){et.apply(this,arguments)};
_.v(mPp,et);mPp.prototype.getAssociations=function(){return[]};var z_o=function(){et.apply(this,arguments)};
_.v(z_o,et);z_o.prototype.getAssociations=function(){return[]};var R_l=function(){et.apply(this,arguments)};
_.v(R_l,et);R_l.prototype.getAssociations=function(){return[]};var xSR=new _.L("ypcOffersEndpoint");var C$u=new _.L("cardItemRenderer"),qgu=new _.L("cardItemTextRenderer");var X5F=new _.L("commerceCartItemQuantityPickerRenderer");var Ecl=new _.L("linkCardRenderer");var xDn=new _.L("quantityIncrementerButtonViewModel");var A6V=new _.L("quantityIncrementerViewModel");var aDE=new _.L("themedImageViewModel");_.YgV=new _.L("ypcCancelRecurrenceEndpoint");var $PP=new _.L("ypcCompleteTransactionEndpoint");_.i_U=new _.L("ypcGetCartEndpoint");_.fL=new _.L("ypcGetOffersEndpoint");_.AT=new _.L("ypcHandleTransactionEndpoint");var Sgp=new _.L("ypcLogWalletAnalyticDataEndpoint");_.W5F=new _.L("ypcRedeemCodeEndpoint");var p5u=new _.L("ypcUpdateFopEndpoint");Up(hV(1),x0(4));YZZ((new MessageChannel).port2);var L5Y=function(){this.register=new Map},q7L=function(V,D,f){V=V+"_"+D;
aI.register.has(V)?f=aI.register.get(V):(f=f(),aI.register.set(V,f));return f},IDF=function(V){V=_.r(V.register.values());
for(var D=V.next();!D.done;D=V.next())_.Q7(D.value,"ABORTED")};
L5Y.prototype.clear=function(){IDF(this);this.register.clear()};
var aI=new L5Y;var Z8Z=Date.now().toString();var lUZ,O_P=_.fx.ytLoggingDocDocumentNonce_;O_P||(O_P=B8(16),_.M4("ytLoggingDocDocumentNonce_",O_P));lUZ=O_P;var siZ={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 xPp;xPp=1;_.d2=function(V){this.veData=V};
_.gs=function(V){return new _.d2({trackingParams:V})};
_.Bj=function(V,D,f,n,t,J){var H=xPp++;return new _.d2({veType:V,veCounter:H,elementIndex:f,dataElement:D,youtubeData:n,jspbYoutubeData:t,loggingDirectives:J})};
_.P=_.d2.prototype;
_.P.getAsJson=function(){var V={};this.veData.trackingParams!==void 0?V.trackingParams=this.veData.trackingParams:(V.veType=this.veData.veType,this.veData.veCounter!==void 0&&(V.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(V.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(V.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(V.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(V.isCounterfactual=!0);
return V};
_.P.getAsJspb=function(){var V=new rBP;this.veData.trackingParams!==void 0?V.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.R$(V,2,this.veData.veType),this.veData.veCounter!==void 0&&_.R$(V,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.R$(V,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.oV(V,5,!0));if(this.veData.dataElement!==void 0){var D=this.veData.dataElement.getAsJspb();_.fc(V,7,D)}this.veData.youtubeData!==void 0&&_.fc(V,8,this.veData.jspbYoutubeData);
return V};
_.P.toString=function(){return JSON.stringify(this.getAsJson())};
_.P.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.P.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.M4("yt_logging_screen.getRootVeType",gqn);_.M4("yt_logging_screen.getCurrentCsn",_.Ni);_.M4("yt_logging_screen.getCttAuthInfo",mI);_.M4("yt_logging_screen.setCurrentScreen",_.zR);var Mzr=function(){this.events=new Map},h_6=function(V){var D=[];
V=_.r(V.events.values());for(var f=V.next();!f.done;f=V.next())D.push(f.value);return D};
Mzr.prototype.clear=function(){this.events.clear()};var V26=function(){this.logTransport=new UPH;this.loggedEventRegister=new Mzr;this.unloggedEventRegister=new Mzr;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10465_flushTimer=new _.Dk(this.flushInterval);this.JSC$10465_flushTimer.listen("tick",this.flush,!1,this)};
V26.prototype.flush=function(){if(this.eventsCount){var V={loggedEvents:h_6(this.loggedEventRegister),unloggedEvents:h_6(this.unloggedEventRegister)};if(_.c("export_player_version_to_ytconfig")){var D;(D=_.XB("PLAYER_CLIENT_VERSION"))?(D=D.split("-")[0].replace(/\./g,""),D=isNaN(Number(D))?"0":D):D="";var f=_.XB("PLAYER_CLIENT_VERSION");if(f){f=f.split("-");var n="";f.length>1&&(n=f[f.length-1]);f=yix(n.startsWith("canary_experiment")?"canary":n.startsWith("canary_control")?"control":"none")}else f=
"CLIENT_CANARY_STATE_UNKNOWN";V.dimensions={playerClientVersion:D,playerCanaryState:f}}this.logTransport.flush(V);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10465_flushTimer.enabled&&this.JSC$10465_flushTimer.stop()}};
var DdY=function(V){YB==null&&(YB=new V26);var D=YB;var f=D.loggedEventRegister;V.dimensions=V.dimensions||{};V.dimensions.csn=_.Ni()||"";var n=u6X(V.dimensions).join(";");if(V.records!=null)if(f.events.has(n)){var t;(t=f.events.get(n).records)==null||t.push.apply(t,_.sz(V.records))}else f.events.set(n,V);D.JSC$10465_flushTimer.enabled||D.JSC$10465_flushTimer.start();D.eventsCount++;D.eventsCount>=100&&D.flush()};var UPH=function(){};
UPH.prototype.flush=function(V,D){_.c("enable_client_sli_logging")&&_.dq("sliEventBatch",V,{sendIsolatedPayload:!!D})};var YB;var nmF;nmF=function(V){var D=f$P;V=V===void 0?{}:V;D=D.name;var f=CGL("SUCCESS");DdY({dimensions:V,records:[{name:D,state:"SLI_STATE_END",status:f}]})};
_.XTF=function(V,D,f,n){this.name=V;this.sliId=D;this.timeoutMs=f;this.statusOnTimeout=n;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.XTF.prototype.getId=function(){return this.sliId};
_.wK=function(V,D){D=D===void 0?{}:D;V.ongoing||(V.ongoing=!0,V.dimensions=D,V.logSliId=A2P(),DdY({dimensions:V.dimensions,records:[{name:V.name,state:"SLI_STATE_START",sliId:V.logSliId}]}),V.timeoutMs>0&&(V.timeoutHandle=setTimeout(function(){_.Q7(V,V.statusOnTimeout)},V.timeoutMs)))};
_.Q7=function(V,D){V.ongoing&&(V.timeoutMs>0&&clearTimeout(V.timeoutHandle),V.ongoing=!1,D={dimensions:V.dimensions,records:[{name:V.name,status:CGL(D),state:"SLI_STATE_END",sliId:V.logSliId}]},aI.register.delete(V.name+"_"+V.sliId),DdY(D))};var f$P=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var t2F=function(){et.apply(this,arguments)};
_.v(t2F,et);t2F.prototype.getAssociations=function(){return[]};var DIZ=new _.L("highlightTextDecoratorColorMapExtension");var UOc=new _.L("styleRunColorMapExtension");var S7Y=_.WV(["data-"]),LjR={};var O89={};var $B=function(V){this.wrappedPromise_=V===void 0?null:V;this.state_=0;this.JSC$10497_value_=null};
$B.prototype.then=function(V,D,f){return this.wrappedPromise_?this.wrappedPromise_.then(V,D,f):this.state_===1&&V?(V=V.call(f,this.JSC$10497_value_))&&typeof V.then==="function"?V:_.i7(V):this.state_===2&&D?(V=D.call(f,this.JSC$10497_value_))&&typeof V.then==="function"?V:_.PVu(V):this};
$B.prototype.getValue=function(){return this.JSC$10497_value_};
$B.prototype.isRejected=function(){return this.state_==2};
Pvl($B);_.PVu=function(V){var D=new $B;V=V===void 0?null:V;D.state_=2;D.JSC$10497_value_=V===void 0?null:V;return D};
_.i7=function(V){var D=new $B;V=V===void 0?null:V;D.state_=1;D.JSC$10497_value_=V===void 0?null:V;return D};var wkx="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var oml=["load","abort","error"],St=function(V,D,f){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10517_maxAspectRatio_=V;this.disableAnimation_=D===void 0?!1:D;this.disableExifRotation_=f===void 0?!1:f;this.JSC$10517_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10517_reject_=this.resolve_=null};
St.prototype.transform=function(V){var D=this;this.mime_=V.type;iG(PRU(V),this.dataUrlRead_,this.readError_,this);iG(tsl(V.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(f,n){D.resolve_=f;D.JSC$10517_reject_=n})};
St.prototype.dataUrlRead_=function(V){this.dataUrl_=V;this.angle_!=null&&J5U(this)};
St.prototype.exifRead_=function(V){if(this.disableExifRotation_)this.angle_=0;else{a:if(V=new DataView(V),V.byteLength<2||V.getUint16(0)!==65496)V=-2;else{for(var D=2,f=V.byteLength;D<f;){var n=V.getUint16(D),t=V.getUint16(D+2);if(n===65505){D+=4;n=V.getUint32(D);t=V.getUint16(D+4);if(n!==1165519206||t!==0)break;D+=6;n=V.getUint16(D)===18761;D+=V.getUint32(D+4,n);t=V.getUint16(D,n);D+=2;for(var J=0;J<t;J++){if(V.getUint16(D,n)===274){D+=8;V=V.getUint16(D,n);break a}D+=12}}else if(n>>8!==255)break;
else D+=t+2}V=-1}switch(V){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&&J5U(this)};
St.prototype.readError_=function(){this.JSC$10517_reject_()};
var J5U=function(V){cr(V.JSC$10517_image_,oml,V.completeTransform_,!1,V);V.JSC$10517_image_.src=_.cS(V.dataUrl_).toString();V.JSC$10517_image_.src!=eo.toString()&&V.JSC$10517_image_.src.substr(0,11)==="data:image/"||V.JSC$10517_reject_()};
St.prototype.completeTransform_=function(){if(this.JSC$10517_image_.src!=eo.toString()){var V=_.cS(this.dataUrl_),D=this.JSC$10517_image_.naturalHeight?this.JSC$10517_image_.naturalWidth/this.JSC$10517_image_.naturalHeight:null;this.invalidAspectRatio=D>this.JSC$10517_maxAspectRatio_||D<1/this.JSC$10517_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var f=this.JSC$10517_image_.naturalWidth,n=this.JSC$10517_image_.naturalHeight,t=D=0,J=this.JSC$10517_image_.naturalHeight?this.JSC$10517_image_.naturalWidth/
this.JSC$10517_image_.naturalHeight:null;J>this.JSC$10517_maxAspectRatio_?(f=this.JSC$10517_maxAspectRatio_*n,D=(f-this.JSC$10517_image_.naturalWidth)/2,this.cropped=!0):J<1/this.JSC$10517_maxAspectRatio_?(n=this.JSC$10517_maxAspectRatio_*f,t=(n-this.JSC$10517_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)J=f,f=n,n=J,J=D,D=t,t=J;switch(this.angle_){case 90:t-=f;break;case 180:D-=f;t-=n;break;case 270:D-=
n}this.cropped||this.angle_%360!==0?(V=document.createElement("canvas"),V.width=f||1,V.height=n||1,this.JSC$10517_image_.naturalWidth&&this.JSC$10517_image_.naturalHeight&&(f=V.getContext("2d"),f.rotate(Math.PI/180*this.angle_),f.drawImage(this.JSC$10517_image_,D,t,this.JSC$10517_image_.naturalWidth,this.JSC$10517_image_.naturalHeight)),this.transformedData=_.cS(V.toDataURL(this.mime_))):this.transformedData=V}else this.transformedData=V;this.resolve_(this)}};var Wc=function(V,D){_.TG.call(this,V);this.value=D};
_.v(Wc,_.TG);
var p9=function(V,D,f,n,t,J,H){H=H===void 0?!1:H;_.jT.call(this);var Q=this;this.JSC$10522_url_=V;this.channelId_=D;this.maxFileSizeMb_=f;this.JSC$10522_maxAspectRatio_=n;this.dropZoneEl_=t;this.rejectInvalidAspectRatio_=H;this.selectButtonEl_=J;this.JSC$10522_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new JT(this.dropZoneEl_);this.selectOverlay_=new r0(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10522_image_=this.transfer_=null;this.handler_=new _.fl(this);_.wX(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(J,"click",function(){Q.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.v(p9,_.jT);p9.prototype.disposeInternal=function(){for(var V=this.selectButtonEl_.nextSibling;V&&V.parentNode&&V.tagName=="INPUT";)V.parentNode.removeChild(V),V=this.selectButtonEl_.nextSibling;this.cancel();_.jT.prototype.disposeInternal.call(this)};
p9.prototype.uploadPromise=function(){if(this.JSC$10522_image_==null)return null;this.uploadPromise_||r56(this);return this.uploadPromise_};
p9.prototype.cancel=function(){H1l(this);this.JSC$10522_image_=null};
var H1l=function(V){V.transfer_&&V.transfer_.cancel();V.transfer_=null;V.uploadPromise_=null;V.resolve_=null;V.JSC$10522_reject_=null},r56=function(V){H1l(V);
V.transfer_=_.F$6(V.JSC$10522_url_,{"X-YouTube-ChannelId":V.channelId_},V.JSC$10522_image_);V.handler_.listenOnce(V.transfer_,"l",V.JSC$10524_onUploadComplete_);V.handler_.listenOnce(V.transfer_,"n",V.onUploadError_);V.transfer_.run();V.uploadPromise_=new Promise(function(D,f){V.resolve_=D;V.JSC$10522_reject_=f})};
_.P=p9.prototype;_.P.onChange_=function(V){V.files.length&&(this.JSC$10522_image_=V.files[0],this.JSC$10522_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10522_image_=null,this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(r56(this),(new St(this.JSC$10522_maxAspectRatio_)).transform(this.JSC$10522_image_).then((0,_.F1)(this.onPreview_,this),(0,_.F1)(this.onPreviewError_,this))))};
_.P.onPreview_=function(V){if(V.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10522_image_=null),this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;V.cropped&&this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.CHANGE_EVENT",V.transformedData))};
_.P.onPreviewError_=function(){this.JSC$10522_image_=null;this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.P.onHover_=function(V){V.stopPropagation();V.preventDefault();if(V.type==="dragover")V=!0;else if(V.type==="dragleave")V=!1;else return;this.dispatchEvent(new Wc("yt.comments.ImageUploadOverlay.HOVER_EVENT",V))};
_.P.JSC$10524_onUploadComplete_=function(){var V=(0,_.utp)(this.transfer_.getResponseText());this.resolve_(V.encryptedBlobId)};
_.P.onUploadError_=function(){this.JSC$10522_reject_();H1l(this)};var wXl=function(V){V=V||{};var D={},f={};this.url=V.url||"";this.args=V.args||_.sB.clone(D);this.assets=V.assets||{};this.attrs=V.attrs||_.sB.clone(f);this.fallback=V.fallback||null;this.fallbackMessage=V.fallbackMessage||null;this.html5=!!V.html5;this.disable=V.disable||{};this.loaded=!!V.loaded;this.messages=V.messages||{}};
wXl.prototype.clone=function(){var V=new wXl,D;for(D in this)if(this.hasOwnProperty(D)){var f=this[D];V[D]=_.wR(f)=="object"?_.sB.clone(f):f}return V};var QCL,TCP,b1U,hE,y5o,Z1V,jCF,l$E,Gbr,erF,c5H,FpF,gmp,vmr,kbo,sCF,BCF,ddY,u_o,NCo,mdu,zrF,Rrr,CVH,qYY,XXF,Em6,A56,a$L,T89,YYP,$dp,i1r,SYu,Wp6,pXP,LpV,I$u,O1r,xdF,QeU,M2Y,hrp,Udl,VH6,DCF,f6F,nLr,tHF,PzY,oLl,JvH,rvF,HtE,wOH,QK6,L9,TMl,btY,K9P,yvY,ZtH,jKF,l6l,G0V,egF,cvF,F9E,gLH,vLY,k0V,sKr,BMH,dCl,uAo,Hs9,NME,mCL,zgp,RgE,CzH,q66,XOU,ELF,AvV,a6u,Y6p,$Cr,it6,S6E,W9H,pOL,L96,I6H,OtL,xC6,MHH,hgY,UCo,VnL,D0P;QCL=["account/accounts_list"];TCP=["acknowledge_channel_tou_strike"];b1U=["notification/add_upcoming_event_reminder"];
_.Kpr=["att/get"];hE=["browse","music/browse","unplugged/browse"];y5o=["channel/claim_legacy_youtube_channel"];Z1V=["history/clear_search_history"];jCF=["history/clear_watch_history"];l$E=["comment/perform_comment_action"];Gbr=["comment/get_comment_replies"];erF=["ypc/commerce_action"];c5H=["backstage/create_post"];FpF=["live/create_broadcast"];gmp=["channel/create_channel"];vmr=["comment/create_comment_reply"];kbo=["comment/create_comment"];sCF=["live_chat/create_poll"];BCF=["playlist/create"];
ddY=["decorate_message"];u_o=["live_chat/delete_message"];NCo=["playlist/delete"];mdu=["video/delete"];zrF=["like/dislike"];Rrr=["dismissal/dismiss"];CVH=["flag/flag"];qYY=["flow"];XXF=["account/account_menu"];Em6=["playlist/get_add_to_playlist"];A56=["get_answer"];a$L=["channel/get_channel_creation_form"];T89=["offline/get_download_action"];YYP=["kids/get_kids_blocklist_picker"];$dp=["live_chat/get_item_context_menu"];i1r=["live_chat/get_live_chat_message_buy_flow"];SYu=["live_chat/get_live_chat_replay"];
Wp6=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];pXP=["live_chat/get_live_chat_super_sticker_buy_flow"];LpV=["notification/get_notification_menu"];I$u=["playlist/get_settings_editor"];O1r=["backstage/get_post_video_preview"];xdF=["account/get_profile_card"];QeU=["share/get_share_panel"];M2Y=["share/get_sharing_provider_data"];hrp=["get_survey"];Udl=["notification/get_unseen_count"];VH6=["get_user_mention_suggestions"];DCF=["get_watch"];f6F=["guide"];
nLr=["feedback"];tHF=["kids/update_blacklist"];PzY=["like/like"];oLl=["live_chat/live_chat_action"];JvH=["live_chat/manage_user"];rvF=["video_manager/metadata_update"];HtE=["live_chat/moderate"];wOH=["notification/modify_channel_preference"];QK6=["notification/opt_out"];L9=["get_panel","get_posts_by_host_panel"];TMl=["player"];btY=["browse/edit_playlist"];K9P=["notification/record_interactions"];yvY=["reel/reel_item_watch"];ZtH=["reel/reel_watch_sequence"];jKF=["like/removelike"];l6l=["notification/remove_upcoming_event_reminder"];
G0V=["flag/get_form"];egF=["miniapp/report_value"];cvF=["navigation/resolve_url"];F9E=["channel/reveal_business_email"];gLH=["in_video/search"];vLY=["search","sfv/search","unplugged/search"];k0V=["live_chat/send_message"];sKr=["live_chat/send_live_chat_vote"];BMH=["account/set_setting"];dCl=["submit_caption_correction"];uAo=["subscription/subscribe"];Hs9=["get_transcript"];NME=["resolve_location","unplugged/resolve_location"];mCL=["subscription/unsubscribe"];zgp=["backstage/update_post"];RgE=["channel_edit/update_channel_page_settings"];
CzH=["comment/update_comment_reply"];q66=["comment/update_comment"];XOU=["comment/update_comments_settings"];ELF=["creator/update_creator_channel"];AvV=["pdg/update_enablement"];a6u=["updated_metadata"];Y6p=["channel_edit/validate_channel_handle"];$Cr=["verify_age"];it6=["next","unplugged/watch_next"];S6E=["whitelist/edit"];W9H=["ypc/cancel_recurrence"];pOL=["ypc/complete_transaction"];L96=["ypc/get_cart"];I6H=["ypc/get_fix_instrument_params"];OtL=["ypc/get_offers"];xC6=["ypc/get_payment_instruments_params"];
MHH=["ypc/handle_transaction"];hgY=["ypc/log_payment_server_analytics"];UCo=["ypc/pause_subscription"];VnL=["ypc/redeem_code"];D0P=["ypc/resume_subscription"];var fgH=[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,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,
244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,
253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,
31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,
39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var yv=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.M4("yt.msgs_",yv);var II=new _.IH("ACTION_ROUTER_TOKEN");_.OC=function(){this.autonavState_=_.c("kevlar_is_pupi_enabled")?2:g1Z()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.OC.prototype.getState=function(){return this.autonavState_};
_.OC.prototype.pause=function(V){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=V):this.autonavState_==1&&(this.disabledAutonavPauseReason_=V)};
_.OC.prototype.setState=function(V,D,f){D&&(this.autoplayChangedByUser=!0);D=this.autonavState_===3||V===3;this.autonavState_!=V&&(this.autonavState_=V,V!=3&&_.v1X(V==2),V=_.c("kevlar_is_pupi_enabled")?f||D:!0,_.Yb.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,V,f))};
_.OC.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.U5(_.OC);var xB=function(){this.hasRun=!1};var MT={},qyY=(MT.auto_search="LATENCY_ACTION_AUTO_SEARCH",MT.ad_to_ad="LATENCY_ACTION_AD_TO_AD",MT.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",MT.app_startup="LATENCY_ACTION_APP_STARTUP",MT.browse="LATENCY_ACTION_BROWSE",MT.cast_splash="LATENCY_ACTION_CAST_SPLASH",MT.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",MT.channels="LATENCY_ACTION_CHANNELS",MT.chips="LATENCY_ACTION_CHIPS",MT.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",MT.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
MT.editor="LATENCY_ACTION_EDITOR",MT.embed="LATENCY_ACTION_EMBED",MT.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",MT.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",MT.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",MT.explore="LATENCY_ACTION_EXPLORE",MT.favorites="LATENCY_ACTION_FAVORITES",MT.home="LATENCY_ACTION_HOME",MT.inboarding="LATENCY_ACTION_INBOARDING",MT.landing="LATENCY_ACTION_LANDING",MT.learning="LATENCY_ACTION_LEARNING",
MT.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",MT.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",MT.library="LATENCY_ACTION_LIBRARY",MT.live="LATENCY_ACTION_LIVE",MT.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",MT.management="LATENCY_ACTION_MANAGEMENT",MT.mini_app="LATENCY_ACTION_MINI_APP_PLAY",MT.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",MT.onboarding="LATENCY_ACTION_ONBOARDING",MT.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
MT.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",MT.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",MT.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",MT.prebuffer="LATENCY_ACTION_PREBUFFER",MT.prefetch="LATENCY_ACTION_PREFETCH",MT.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",MT.profile_switcher="LATENCY_ACTION_LOGIN",MT.projects="LATENCY_ACTION_PROJECTS",MT.reel_watch="LATENCY_ACTION_REEL_WATCH",MT.results="LATENCY_ACTION_RESULTS",MT.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
MT.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",MT.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",MT.review="LATENCY_ACTION_REVIEW",MT.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",MT.search_ui="LATENCY_ACTION_SEARCH_UI",MT.search_suggest="LATENCY_ACTION_SUGGEST",MT.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",MT.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",MT.seek="LATENCY_ACTION_PLAYER_SEEK",MT.settings="LATENCY_ACTION_SETTINGS",MT.store="LATENCY_ACTION_STORE",
MT.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",MT.tenx="LATENCY_ACTION_TENX",MT.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",MT.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",MT.watch="LATENCY_ACTION_WATCH",MT.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",MT["watch,watch7"]="LATENCY_ACTION_WATCH",MT["watch,watch7_html5"]="LATENCY_ACTION_WATCH",MT["watch,watch7ad"]="LATENCY_ACTION_WATCH",MT["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",MT.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
MT.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",MT.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",MT.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",MT.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",MT.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",MT.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",MT.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",MT),MNU=0;var nGX=function(V,D){li.call(this,1,arguments);this.timer=D};
_.v(nGX,li);var fBR=new KqZ("aft-recorded",nGX);var ap3=_.fx.ytLoggingGelSequenceIdObj_||{};_.M4("ytLoggingGelSequenceIdObj_",ap3);var hT=_.fx.ytLoggingLatencyUsageStats_||{};_.M4("ytLoggingLatencyUsageStats_",hT);var UC=function(){this.cleanupJob=0},i$X=function(){UC.instance||(UC.instance=new UC);
return UC.instance};
_.P=UC.prototype;_.P.baseline=function(V,D,f){VX(this,"baseline_"+V)||_.dq("latencyActionBaselined",{clientActionNonce:V},{timestamp:D,cttAuthInfo:f})};
_.P.tick=function(V,D,f,n){VX(this,"tick_"+V+"_"+D)||_.dq("latencyActionTicked",{tickName:V,clientActionNonce:D},{timestamp:f,cttAuthInfo:n})};
_.P.info=function(V,D,f){var n=Object.keys(V).join("");VX(this,"info_"+n+"_"+D)||(V=Object.assign({},V),V.clientActionNonce=D,_.dq("latencyActionInfo",V,{cttAuthInfo:f}))};
_.P.jspbInfo=function(V,D,f){for(var n="",t=0;t<n4(V).length;t++)n4(V)[t]!==void 0&&(n=t===0?n.concat(""+t):n.concat("_"+t));VX(this,"info_"+n+"_"+D)||(_.lB(V,2,D),D={cttAuthInfo:f},f=_.c("jspb_sparse_encoded_pivot")?new F4([{}]):new F4,_.nc(f,7,gbE,V),YyU("latencyActionInfo",f,D))};
_.P.span=function(V,D,f){var n=Object.keys(V).join("");VX(this,"span_"+n+"_"+D)||(V.clientActionNonce=D,_.dq("latencyActionSpan",V,{cttAuthInfo:f}))};
var VX=function(V,D){hT[D]=hT[D]||{count:0};var f=hT[D];f.count++;f.time=(0,_.VW)();V.cleanupJob||(V.cleanupJob=_.gq(_.dm,function(){var n=(0,_.VW)(),t;for(t in hT)hT[t]&&n-hT[t].time>6E4&&delete hT[t];V&&(V.cleanupJob=0)},5E3));
return f.count>5?(f.count===6&&Math.random()*1E5<1&&(f=new _.cI("CSI data exceeded logging limit with key",D.split("_")),D.indexOf("plev")>=0||_.zP(f)),!0):!1};var n$l,tnP;n$l=window;tnP=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.vA=n$l.performance||n$l.mozPerformance||n$l.msPerformance||n$l.webkitPerformance||new tnP;var DQ9=!1,W6x=!1,th9=(0,_.F1)(_.vA.clearResourceTimings||_.vA.webkitClearResourceTimings||_.vA.mozClearResourceTimings||_.vA.msClearResourceTimings||_.vA.oClearResourceTimings||_.Kp,_.vA);var P2o=window;P2o.ytcsi&&(P2o.ytcsi.infoGel=_.N1,P2o.ytcsi.tick=_.zm);var ZnU=function(V){li.call(this,1,arguments);this.csn=V};
_.v(ZnU,li);var Gq9=new KqZ("screen-created",ZnU),zYc=[],y_Z=mQX,RYd=0,E2=new Map,jcc=new Map,lBZ=new Map;var $fc=Symbol("Af"),O2=new WeakMap;var DD=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},eD=function(){DD.instance||(DD.instance=new DD);
return DD.instance};
_.P=DD.prototype;_.P.setClient=function(V){this.client=V};
_.P.JSC$10603_newScreen=function(){this.clear();this.csn=_.Ni()};
_.P.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.P.reportShown=function(V,D,f){var n=this.JSC$10603_getTrackingParams(V),t=V.visualElement?V.visualElement:n;D=this.shownElements.has(t);var J=this.visibleState.get(t);this.shownElements.add(t);this.visibleState.set(t,!0);V.impressionLog&&!D&&V.impressionLog();if(n||V.visualElement)if(f=o$E(this,V,f))if(t=JfU(this,V),f_(this,V)||t){n=V.visualElement?V.visualElement:_.gs(n);var H=V.interactionLoggingClientData;t||D?f_(this,V)&4?J||scY(this.client,f,n,H):f_(this,V)&1&&!D&&gGZ(this.client,f,n,H):gGZ(this.client,
f,n,H)}};
_.P.reportHidden=function(V,D,f){var n=this.JSC$10603_getTrackingParams(V),t=V.visualElement?V.visualElement:n;D=this.hiddenElements.has(t);var J=this.visibleState.get(t);this.hiddenElements.add(t);this.visibleState.set(t,!1);if(J===!1)return!0;if(!n&&!V.visualElement)return!1;f=o$E(this,V,f);if(!f||!f_(this,V)&&JfU(this,V))return!1;n=V.visualElement?V.visualElement:_.gs(n);f_(this,V)&8?BlZ(this.client,f,n):f_(this,V)&2&&!D&&(V=this.client,D=XQ({cttAuthInfo:mI(f)||void 0},f),n={csn:f,ve:n.getAsJson(),
eventType:2},f==="UNDEFINED_CSN"?a4("visualElementHidden",D,n):V?sq("visualElementHidden",n,V,D):_.dq("visualElementHidden",n,D));return!0};
_.P.JSC$10603_getTrackingParams=function(V){var D=this.getData(V),f,n;if(_.c("il_use_view_model_logging_context")&&(D==null?0:(f=D.context)==null?0:(n=f.loggingContext)==null?0:n.loggingDirectives))return D.context.loggingContext.loggingDirectives.trackingParams||"";var t,J;if(D==null?0:(t=D.rendererContext)==null?0:(J=t.loggingContext)==null?0:J.loggingDirectives)return D.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(D==null?0:D.loggingDirectives)return D.loggingDirectives.trackingParams||
"";var H;return((H=V.veContainer)==null?0:H.trackingParams)?V.veContainer.trackingParams:(D==null?void 0:D.trackingParams)||""};
_.P.JSC$10603_elementShouldLogGesture=function(V,D){V=this.getData(V);return!!((Math.floor(Number(V&&V.loggingDirectives&&V.loggingDirectives.gestures&&V.loggingDirectives.gestures.types||""))||0)&D)};
_.P.JSC$10603_getNearestParentVe=function(V){var D=this.JSC$10603_getTrackingParams(V);return V.visualElement?V.visualElement:D?_.gs(D):V.parentElement?this.JSC$10603_getNearestParentVe(V.parentElement):null};
var o$E=function(V,D,f){var n=_.Ni(f);return V.csn===null||n===V.csn||f?n:(V=new _.cI("VisibilityLogger called before newScreen",{caller:D.tagName,previous_csn:V.csn,current_csn:n}),_.zP(V),null)};
DD.prototype.getData=function(V){var D,f=V.data||((D=V.props)==null?void 0:D.data);if(!f||V.isWebComponentWrapper){var n;f=(n=O2.get(V))==null?void 0:n[$fc]}return f};
var JfU=function(V,D){var f;return!((f=V.getData(D))==null||!f.loggingDirectives)},f_=function(V,D){V=V.getData(D);
return Math.floor(Number(V&&V.loggingDirectives&&V.loggingDirectives.visibility&&V.loggingDirectives.visibility.types||""))||1};var n_;n_=function(){};
_.Zb=function(){n_.instance||(n_.instance=new n_);return n_.instance};
n_.prototype.setClient=function(V){_.a9(eD().setClient).bind(eD())(V)};
_.rf6=function(){_.Zb();_.a9(eD().JSC$10603_newScreen).bind(eD())()};
n_.prototype.clear=function(){_.a9(eD().clear).bind(eD())()};
n_.prototype.reportShown=function(V,D,f){_.a9(eD().reportShown).bind(eD())(V,D,f)};
n_.prototype.reportHidden=function(V,D,f){return _.a9(eD().reportHidden).bind(eD())(V,D,f)};
var M4X=function(V,D){return _.a9(eD().JSC$10603_getTrackingParams).bind(eD())(D)},irR=function(V,D){return _.a9(eD().JSC$10603_getNearestParentVe).bind(eD())(D)};var t6,HEV;t6=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};
_.lS=function(){t6.instance||(t6.instance=new t6);return t6.instance};
t6.prototype.setClient=function(V){this.client=V};
HEV=function(V,D,f){f=f===void 0?{}:f;_.a9(function(){var n,t,J,H=((n=_.g(D==null?void 0:D.commandMetadata,_.he))==null?void 0:n.rootVe)||((t=_.g(D==null?void 0:D.commandMetadata,n1H))==null?void 0:(J=t.screenVisualElement)==null?void 0:J.uiType);if(H){n=_.g(D==null?void 0:D.commandMetadata,W4E);if(n==null?0:n.parentTrackingParams){var Q=_.gs(n.parentTrackingParams);if(n.parentCsn)var T=n.parentCsn}else f.clickedVisualElement?Q=f.clickedVisualElement:D.clickTrackingParams&&(Q=_.gs(D.clickTrackingParams));
a:{n=_.g(D,_.pl);t=_.g(D,rv9);if(n){if(t=kgL(n,"VIDEO")){n={token:t,videoId:n.videoId};break a}}else if(t&&(n=kgL(t,"PLAYLIST"))){n={token:n,playlistId:t.playlistId};break a}n=void 0}f=Object.assign({},{cttAuthInfo:n,parentCsn:T},f);if(_.c("expectation_logging")){var y;f.loggingExpectations=((y=_.g(D==null?void 0:D.commandMetadata,n1H))==null?void 0:y.loggingExpectations)||void 0}_.P5(V,H,Q,f)}else _.zP(new _.cI("Error: Trying to create a new screen without a rootVeType",D))})()};
_.P5=function(V,D,f,n){n=n===void 0?{}:n;_.a9(function(){fgH.includes(D)||(_.zP(new _.cI("createClientScreen() called with a non-page VE",D)),D=83769);n.isHistoryNavigation||(V.forwardHistoryStack=[],V.backHistoryStack.push({rootVe:D,key:n.key||""}));V.graftQueue=[];V.stateChangedQueue=[];n.dataPromises?w$U(V,D,f,n):Qxl(V,D,f,n)})()};
_.Thr=function(V,D,f){f=f===void 0?0:f;_.a9(function(){D.then(function(n){V.pendingScreenCreation.has(f)&&V.pendingScreenFn&&V.pendingScreenFn();var t=_.Ni(f),J=_.u8(f);if(t&&J){var H={automatedLogEventSource:3},Q;(n==null?0:(Q=n.response)==null?0:Q.trackingParams)&&AR(V.client,t,J,_.gs(n.response.trackingParams),!1,H);var T;(n==null?0:(T=n.playerResponse)==null?0:T.trackingParams)&&AR(V.client,t,J,_.gs(n.playerResponse.trackingParams),!1,H)}})})()};
t6.prototype.graftServerVe=function(V,D,f){var n=this;return _.a9(function(){var t=_.gs(V);_.oj(n,t,D,f);return t})()};
_.SfY=function(V,D,f,n){return _.c("enable_client_ve_spec")&&D.clientVeSpec?(D=_.Bj(D.clientVeSpec.uiType,void 0,D.clientVeSpec.elementIndex,D.clientVeSpec.clientYoutubeData,void 0,D),_.oj(V,D,f,n)?D:null):D.trackingParams?V.graftServerVe(D.trackingParams,f,n):null};
_.jD=function(V,D,f,n){return _.a9(function(){if(!D.veType)return _.mw(new _.cI("Error: Trying to graft a client VE without a veType.")),null;if(D.visibilityTypes){var t=D.visibilityTypes.reduce(function(J,H){return J|H});
t={visibility:{types:String(t)}}}t=_.Bj(D.veType,D.visualElement,D.elementIndex,D.clientYouTubeData,void 0,t);return _.oj(V,t,f,n)?t:null})()};
_.oj=function(V,D,f,n){n=n===void 0?0:n;return _.a9(function(){if(V.pendingScreenCreation.has(n))return V.graftQueue.push([D,f]),!0;var t=_.Ni(n),J=f||_.u8(n);if(t&&J){if(_.c("combine_ve_grafts")){var H=V.cachedVisualElements.get(J.toString());H?H.push(D):(V.cachedRootVisualElements.set(J.toString(),J),V.cachedVisualElements.set(J.toString(),[D]));V.attachTimeout||(V.attachTimeout=_.gq(_.dm,function(){bEF(V,t)},1200))}else AR(V.client,t,J,D);
return!0}return!1})()};
_.J6=function(V,D,f){f=f===void 0?0:f;var n=V.recurringGrafts.get(f)||new Map;if(_.c("smarter_ve_dedupping"))for(var t=Array.from(n.keys()),J=0;J<t.length;J++){var H=void 0,Q=void 0;var T=D;var y=t[J];y.isClientVe()&&T.isClientVe()?(H=T.getAsJson(),Q=y.getAsJson(),T=H.veType!==Q.veType||H.elementIndex!==Q.elementIndex||H.dataElement!==Q.dataElement||T.getLoggingDirectives()!==y.getLoggingDirectives()?!1:!0):T=y.veData.trackingParams!==void 0&&T.veData.trackingParams!==void 0?((Q=T.veData)==null?void 0:
Q.trackingParams)===((H=y.veData)==null?void 0:H.trackingParams):!1;if(T)return}else if(n.has(D))return;n.set(D,void 0);V.recurringGrafts.set(f,n);_.Ni(f)==="UNDEFINED_CSN"||V.pendingScreenCreation.has(f)||_.oj(V,D,void 0,f)};
_.rW=function(V,D,f,n){n=_.Ni(n===void 0?0:n);if(!n)return!1;uk9(V.client,n,D,f);return!0};
_.H5=function(V,D,f,n){if(!D)return!1;n=_.Ni(n===void 0?0:n);if(!n)return!1;uk9(V.client,n,_.gs(D),f);return!0};
_.at=function(V,D){var f=D.getScreenLayer&&D.getScreenLayer();if(D.visualElement)return _.rW(V,D.visualElement,void 0,f);D=M4X(_.Zb(),D);return _.H5(V,D,void 0,f)};
t6.prototype.clickCommand=function(V,D,f){return _.H5(this,V.clickTrackingParams,D,f===void 0?0:f)};
t6.prototype.stateChanged=function(V,D,f){this.visualElementStateChanged(_.gs(V),D,f===void 0?0:f)};
t6.prototype.visualElementStateChanged=function(V,D,f){f=f===void 0?0:f;f===0&&this.pendingScreenCreation.has(f)?this.stateChangedQueue.push([V,D]):this.logStateChanged(V,D,f)};
t6.prototype.logStateChanged=function(V,D,f){f=f===void 0?0:f;var n=_.Ni(f);V=V||_.u8(f);return n&&V?(Nl9(this.client,n,V,D),!0):!1};
var w$U=function(V,D,f,n){n=n===void 0?{}:n;V.pendingScreenCreation.add(n.layer||0);V.pendingScreenFn=function(){Qxl(V,D,f,n);var H=_.u8(n.layer);if(H){for(var Q=_.r(V.graftQueue),T=Q.next();!T.done;T=Q.next())T=T.value,_.oj(V,T[0],T[1]||H,n.layer);H=_.r(V.stateChangedQueue);for(Q=H.next();!Q.done;Q=H.next())Q=Q.value,V.logStateChanged(Q[0],Q[1])}};
f||_.Ni(n.layer)||V.pendingScreenFn();if(n.dataPromises)for(var t=_.r(n.dataPromises),J=t.next();!J.done;J=t.next())_.Thr(V,J.value,n.layer);else _.NG(Error("Bf"))},Qxl=function(V,D,f,n){n=n===void 0?{}:n;
var t=void 0;n.layer||(n.layer=0);t=n.parentLayer!==void 0?n.parentLayer:n.layer;var J=_.Ni(t);t=_.u8(t);var H=f||t,Q;H&&(n.parentCsn!==void 0?Q={clientScreenNonce:n.parentCsn,visualElement:H}:J&&J!=="UNDEFINED_CSN"&&(Q={clientScreenNonce:J,visualElement:H}));var T,y=_.XB("EVENT_ID");J==="UNDEFINED_CSN"&&y&&(T={servletData:{serializedServletEventId:y}});_.c("combine_ve_grafts")&&J&&bEF(V,J);_.c("no_client_ve_attach_unless_shown")&&H&&J&&FSF(H,J);try{var Z=_.GwR(V.client,D,Q,n.csnToClone,n.cttAuthInfo,
T,n.implicitGestureType,void 0,n.loggingExpectations)}catch(F){_.R2(F,{rootVeType:D,rootVe:t,parentVisualElement:f,currentCsn:J,parentEl:Q,csnToClone:n.csnToClone});_.NG(F);return}_.zR(Z,D,n.layer,n.cttAuthInfo);J&&J!=="UNDEFINED_CSN"&&t&&!BH9(J)&&BlZ(V.client,J,t,!0);V.backHistoryStack[V.backHistoryStack.length-1]&&!V.backHistoryStack[V.backHistoryStack.length-1].csn&&(V.backHistoryStack[V.backHistoryStack.length-1].csn=Z||"");_.N1({clientScreenNonce:Z});_.rf6();var l=_.u8(n.layer);J&&J!=="UNDEFINED_CSN"&&
l&&(_.c("web_mark_root_visible")||_.c("music_web_mark_root_visible"))&&_.iC(Z,l);V.pendingScreenCreation.delete(n.layer||0);V.pendingScreenFn=void 0;var G;(G=V.recurringGrafts.get(n.layer))==null||G.forEach(function(F,k){F?_.oj(V,k,F,n.layer):l&&_.oj(V,k,l,n.layer)});
KmF(V)},KmF=function(V){for(var D=0;D<V.afterNewScreenOneOffJobs.length;D++){var f=V.afterNewScreenOneOffJobs[D];
try{f()}catch(n){_.NG(n)}}for(D=V.afterNewScreenOneOffJobs.length=0;D<V.afterNewScreenRecurringJobs.length;D++){f=V.afterNewScreenRecurringJobs[D];try{f()}catch(n){_.NG(n)}}},bEF=function(V,D){if(D===void 0)for(var f=kG9(),n=0;n<f.length;n++)f[n]!==void 0&&bEF(V,f[n]);
else V.cachedVisualElements.forEach(function(t,J){(J=V.cachedRootVisualElements.get(J))&&eYU(V.client,D,J,t)}),V.cachedVisualElements.clear(),V.cachedRootVisualElements.clear(),V.attachTimeout=void 0};var wW=function(V){V=V===void 0?{layer:0}:V;this.hasRun=!1;this.createScreenConfig=V;V={};this.yiB=(V.response=!1,V.playerResponse=!1,V)};
_.v(wW,xB);wW.prototype.validate=function(V){return!(!V.data||!V.data.response&&!V.data.playerResponse)};
wW.prototype.handle=function(V){var D=_.lS(),f=this.createScreenConfig.layer;V.data.response&&V.data.response.trackingParams&&!this.yiB.response&&(D.graftServerVe(V.data.response.trackingParams,void 0,f),this.yiB.response=!0);V.data.playerResponse&&V.data.playerResponse.trackingParams&&!this.yiB.playerResponse&&(D.graftServerVe(V.data.playerResponse.trackingParams,void 0,f),this.yiB.playerResponse=!0)};var QX=function(){this.kd=_.Sl();this.u4=[];this.pxd=0};
QX.prototype.processChunk=function(V){if(V){for(var D=_.r(this.u4),f=D.next();!f.done;f=D.next())f=f.value,f.validate(V)&&(f.handle(V),f.hasRun=!0);_.zm("np"+this.pxd);this.pxd++}};var x8;var bDY,yfo,lgU;_.bS=function(V,D,f,n,t,J,H){H=H===void 0?[]:H;this.buildCommandPayload=V;this.navigate=D;this.handleServiceRequest=f;this.sendAction=n;this.JSC$10645_screenManager=t;this.commandResolverMap=J;this.autoLogResolverAllowlist=H;this.pendingCommands=new Set;this.isTracingEnabled=!1;yfo(this)};
bDY=function(V,D,f){var n=Ufn,t=VIY,J=_.lS(),H=ZEF;f=f===void 0?[]:f;_.bS.instance=new _.bS(V,D,n,t,J,H,f)};
yfo=function(V){if(!V.isTracingEnabled&&qj9("command")){var D=V.resolveCommand;V.resolveCommand=function(f,n){a:{for(t in f)if(Object.prototype.hasOwnProperty.call(f,t)){var t={commandType:t};break a}t={}}return A_Z("command",t,D.bind(this,f,n))};
V.isTracingEnabled=!0}};
lgU=function(V,D,f){if(!V.commandResolverMap)return!1;var n=ind(D,V.commandResolverMap);return n?((V.autoLogResolverAllowlist.some(function(t){return!!_.g(D,t)})||(f==null?0:f.forceClickLogging))&&jxY(V,D,f),n instanceof Promise?n.then(function(t){t.resolve(D,f)}):n.resolve(D,f),!0):!1};
_.bS.prototype.resolveCommand=function(V,D){var f=this,n=Gnu(V);if(lgU(this,V,D))return!0;if(n)return eFE(this,V,D);if(!this.buildCommandPayload)return aBX(V,"Unhandled command by buildCommandPayload"),!1;var t=this.buildCommandPayload(V,D);if(D==null?0:D.commandController)t.commandController=D.commandController;if(t.type===0){if(!this.navigate)return Yjn(V,"navigate"),!1;if(!cfl(t.command))return aBX(V,"Page requests need to specify a url"),!1;_.c("logging_avoid_blocking_during_navigation")&&_.fbd().transition("application_navigating");
V=this.navigate(t)||[];TQl(V).then(function(){f.pendingCommands.delete(t.command)});
return!0}if(t.type===1){if(!this.handleServiceRequest)return Yjn(V,"handleServiceRequest"),!1;(D==null?0:D.forceClickLogging)&&jxY(this,t.command,D);V=this.handleServiceRequest(t);TQl(V).then(function(){f.pendingCommands.delete(t.command)});
return!0}if(t.type===2){if(!this.sendAction)return Yjn(V,"sendAction"),!1;jxY(this,t.command,D);this.sendAction(t);return!0}return!1};
var jxY=function(V,D,f){if((f==null||!f.disableClickTracking)&&V.JSC$10645_screenManager)if(D.clickTrackingParams&&_.c("log_click_with_layer_from_element_in_command_handler")){var n;f=f==null?void 0:(n=f.form)==null?void 0:n.element;V.JSC$10645_screenManager.clickCommand(D,null,f&&f.getScreenLayer&&f.getScreenLayer())}else D.clickTrackingParams?V.JSC$10645_screenManager.clickCommand(D):!_.c("disable_clicked_visual_element_in_command_handler")&&(f==null?0:f.clickedVisualElement)&&_.rW(V.JSC$10645_screenManager,
f.clickedVisualElement)},Gnu=function(V){var D=!!_.g(V,_.Tm),f;
V=((f=_.g(V,_.K6))==null?void 0:f.signal)==="CLIENT_SIGNAL";return D||V},eFE=function(V,D,f){var n=_.g(D,_.Tm);
if(n)var t=(n==null?void 0:n.commands)||[];else{var J;if(((J=_.g(D,_.K6))==null?void 0:J.signal)==="CLIENT_SIGNAL"){var H;t=((H=_.g(D,_.K6))==null?void 0:H.actions)||[]}}if(t){D=_.r(t);for(t=D.next();!t.done;t=D.next()){t=t.value;try{V.resolveCommand(t,f)}catch(Q){Q instanceof Error&&_.NG(Q)}}return!0}aBX(D,"Could not handle the meta command");return!1},cfl=function(V){var D;
return!((D=_.g(V==null?void 0:V.commandMetadata,_.he))==null||!D.url)};var TI=function(){xB.apply(this,arguments)};
_.v(TI,xB);TI.prototype.validate=function(V){var D,f;return!this.hasRun&&!!((D=V.data.response)==null?0:(f=D.onResponseReceivedEndpoints)==null?0:f.length)};
TI.prototype.handle=function(V){var D=_.bS.instance;V=_.r(V.data.response.onResponseReceivedEndpoints);for(var f=V.next();!f.done;f=V.next())D.resolveCommand(f.value)};var FmY,g$Y,v$F;
FmY=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=_.Qv();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.b$=function(){g$Y||(g$Y=new FmY);return g$Y};
v$F=function(){var V=_.b$();V.miniplayerButtonActivation=!1;V.userActivation=!1;V.playlistWatchPageActivation=!1;V.productDetailsPageActivation=!1;V.miniAppPageActivation=!1;V.playablesDestPageActivation=!1;V.lockupActivation=!1;V.showMiniplayerCommandActivation=!1;V.playlistSuggestionsShelfActivation=!1;V.mediaSessionPipActivation=!1;V.watchPipActivation=!1;V.watchWhileActivation=!1;V.shortsPipActivation=!1};
_.knP=function(){var V=_.b$(),D=V.mediaSessionPipActivation,f=V.watchPipActivation,n=V.watchWhileActivation,t=V.playlistWatchPageActivation,J=V.lockupActivation,H=V.showMiniplayerCommandActivation,Q=V.navigatingAwayFromWatchDeletedVideo,T=V.shortsPipActivation,y=V.playlistSuggestionsShelfActivation,Z=V.productDetailsPageActivation,l=V.miniAppPageActivation,G=V.playablesDestPageActivation;return!V.miniplayerButtonActivation&&!t&&!y&&!Z&&!l&&!G&&!J&&!H&&!D&&!f&&!n&&!T||Q};var KxR;_.K_=hR("FEwhat_to_watch","/",3854);_.y19=hR("FEdownloads","/feed/downloads",42352);KxR=hR("FEmusic_offline","browse/FEmusic_offline",42352);var IW=function(V,D){D=D===void 0?[]:D;var f=f===void 0?[]:f;D=Hgn.apply(null,[wbX.apply(null,_.sz(D))].concat(_.sz(f)));this.store=KzY(V,void 0,D)};
IW.prototype.getState=function(){return this.store.getState()};
IW.prototype.dispatch=function(V){return this.store.dispatch(V)};
IW.prototype.subscribe=function(V){return this.store.subscribe(V)};
IW.prototype.replaceReducer=function(V){return this.store.replaceReducer(V)};
IW.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.yX=function(V,D,f){var n=D(V.getState());return V.subscribe(function(){var t=D(V.getState());if(t!==n){var J=n;n=t;f(t,J)}})};var RNL;_.y1=function(V,D,f){return _.nA({type:"REPLACE_ENTITY",payload:{entityPayload:f,entityType:V,key:D}})};
RNL=function(V){return _.nA({type:"REPLACE_ENTITIES",payload:V})};
_.XW=function(V,D,f,n){return _.nA({type:"UPDATE_ENTITY",payload:{entityPayload:f,entityType:V,key:D,mergeOption:n}})};var fAx=function(V){var D=this;V=V===void 0?[]:V;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;V.forEach(function(f){D.append(f)})};
_.P=fAx.prototype;_.P.getLength=function(){return this.totalLength};
_.P.append=function(V){var D=this.arrays.length===0?!1:(D=this.arrays[this.arrays.length-1])&&D.buffer===V.buffer&&D.byteOffset+D.length===V.byteOffset;D?(D=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(D.buffer,D.byteOffset,D.length+V.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(V);this.totalLength+=V.length};
_.P.split=function(V){for(var D=new fAx,f=new fAx,n=_.r(this.arrays),t=n.next();!t.done;t=n.next())t=t.value,V>=t.length?(D.append(t),V-=t.length):V?(D.append(new Uint8Array(t.buffer,t.byteOffset,V)),f.append(new Uint8Array(t.buffer,t.byteOffset+V,t.length-V)),V=0):f.append(t);return{headView:D,tailView:f}};
_.P.extract=function(V,D){return this.split(V).tailView.split(D).headView};
_.P.isFocused=function(V){return V>=this.arrayPos&&V<this.arrayPos+this.arrays[this.arrayIdx].length};
_.P.focus=function(V){if(!this.isFocused(V))for(V<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=V&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var sxP=function(V,D){V.focus(D);return V.arrays[V.arrayIdx][D-V.arrayPos]};(function(){var V=function(n){return new Uint8Array(n)},D=function(n){for(var t=new Uint8Array(n.length),J=0;J<n.length;J++)t[J]=n[J];
return t},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?V:D})();
var xQd=Array(1024),Onx=window.TextDecoder?new TextDecoder:void 0,hYn=window.TextEncoder?new TextEncoder:void 0;var DWL=function(V){this.arrayView=V;this.pos=0;this.pendingTagAndType=-1},tO=function(V){var D=sxP(V.arrayView,V.pos);
++V.pos;if(D<128)return D;for(var f=D&127,n=1;D>=128;)D=sxP(V.arrayView,V.pos),++V.pos,n*=128,f+=(D&127)*n;return f},n9d=function(V,D){var f=V.pendingTagAndType;
for(V.pendingTagAndType=-1;V.pos+1<=V.arrayView.totalLength;){f<0&&(f=tO(V));var n=f>>3,t=f&7;if(n===D)return!0;if(n>D){V.pendingTagAndType=f;break}f=-1;switch(t){case 0:tO(V);break;case 1:V.pos+=8;break;case 2:n=tO(V);V.pos+=n;break;case 5:V.pos+=4}}return!1};var PyY=function(){this.pos=0;this.submessagePosStack=[];this.buf=Vq9(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},JO=function(V,D){D=V.pos+D;
if(!(V.buf.length>=D)){for(var f=V.buf.length*2;f<D;)f*=2;V.buf=Vq9(f,V.buf.subarray(0,V.pos));V.view=new DataView(V.buf.buffer,V.buf.byteOffset,V.buf.byteLength)}},oW=function(V,D){if(D>268435455){JO(V,4);
for(var f=D&1073741823,n=0;n<4;n++)V.view.setUint8(V.pos,f&127|128),f>>=7,V.pos+=1;D=Math.floor(D/268435456)}for(JO(V,4);D>127;)V.view.setUint8(V.pos,D&127|128),D>>=7,V.pos+=1;V.view.setUint8(V.pos,D);V.pos+=1};for(var o9Y={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},tqx={},BhF=_.r(Object.entries(o9Y)),d0U=BhF.next();!d0U.done;d0U=BhF.next()){var udH=_.r(d0U.value),NhF=udH.next().value,m0l=udH.next().value,zFr=NhF,RFl=m0l;RFl&&(tqx[RFl]=zFr)};var rbU=function(V,D){V=V===void 0?{}:V;switch(D.type){case "ENTITY_LOADED":return D.payload.reduce(function(n,t){var J,H=(J=t.options)==null?void 0:J.persistenceOption;if(H&&H!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&H!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return n;if(!t.entityKey)return _.NG(Error("Ff")),n;if(t.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!t.payload)return t=new _.cI("REPLACE entity mutation is missing a payload",{entityKey:t.entityKey}),_.NG(t),n;var Q=(0,_.sB.getAnyKey)(t.payload);
return wy9(n,Q,t.entityKey,t.payload[Q])}if(t.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{t=t.entityKey;try{var T=_.PR(t).entityType;Q=wy9(n,T,t);break a}catch(l){if(l instanceof Error){t=new _.cI("Failed to deserialize entity key",{entityKey:t,originalMessage:l.message});_.NG(t);Q=n;break a}throw l;}Q=void 0}return Q}if(t.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!t.payload)return t=new _.cI("UPDATE entity mutation is missing a payload",{entityKey:t.entityKey}),_.NG(t),n;Q=(0,_.sB.getAnyKey)(t.payload);
var y,Z;return Qa3(n,Q,t.entityKey,t.payload[Q],(y=t.fieldMask)==null?void 0:(Z=y.mergeOptions)==null?void 0:Z.repeatedFieldsMergeOption)}return n},V);
case "REPLACE_ENTITY":var f=D.payload;return wy9(V,f.entityType,f.key,f.entityPayload);case "REPLACE_ENTITIES":return Object.keys(D.payload).reduce(function(n,t){var J=D.payload[t];return Object.keys(J).reduce(function(H,Q){return wy9(H,t,Q,J[Q])},n)},V);
case "UPDATE_ENTITY":return f=D.payload,Qa3(V,f.entityType,f.key,f.entityPayload,f.mergeOption);default:return V}};var Toc;var C2F=!1,ZD,jz,l$,GI,ez,q_p=function(V){_.cq.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!C2F){var D,f=new Uint8Array(256),n=new Uint8Array(256);var t=1;for(D=0;D<256;D++)f[t]=D,n[D]=t,t^=t<<1^(t>>7&&283);ZD=new Uint8Array(256);jz=Qc(256);l$=Qc(256);GI=Qc(256);ez=Qc(256);for(var J=0;J<256;J++){t=J?n[255^f[J]]:0;t^=t<<1^t<<2^t<<3^t<<4;t=t&255^t>>>8^99;ZD[J]=t;D=t<<1^(t>>7&&283);var H=D^t;jz[J]=D<<24|t<<16|t<<8|H;l$[J]=H<<24|jz[J]>>>8;GI[J]=t<<24|l$[J]>>>
8;ez[J]=t<<24|GI[J]>>>8}C2F=!0}t=Qc(44);for(f=0;f<4;f++)t[f]=V[4*f]<<24|V[4*f+1]<<16|V[4*f+2]<<8|V[4*f+3];for(n=1;f<44;f++)V=t[f-1],f%4||(V=(ZD[V>>16&255]^n)<<24|ZD[V>>8&255]<<16|ZD[V&255]<<8|ZD[V>>>24],n=n<<1^(n>>7&&283)),t[f]=t[f-4]^V;this.key=t};
_.v(q_p,_.cq);
q_p.prototype.encrypt=function(V){var D=V.length;V=new Uint8Array(V.buffer.slice(V.byteOffset,V.byteOffset+D));for(var f=this.cipherBlock,n=0;n<D&&this.blockOffset<16;)V[n++]^=f[this.blockOffset++];for(var t=D-(D-n)%16;n<t;)X$p(this),V[n++]^=f[0],V[n++]^=f[1],V[n++]^=f[2],V[n++]^=f[3],V[n++]^=f[4],V[n++]^=f[5],V[n++]^=f[6],V[n++]^=f[7],V[n++]^=f[8],V[n++]^=f[9],V[n++]^=f[10],V[n++]^=f[11],V[n++]^=f[12],V[n++]^=f[13],V[n++]^=f[14],V[n++]^=f[15];if(n<D)for(X$p(this),this.blockOffset=0;n<D;)V[n++]^=
f[this.blockOffset++];return V};
var X$p=function(V){for(var D=V.key,f=V.counter[0]^D[0],n=V.counter[1]^D[1],t=V.counter[2]^D[2],J=V.counter[3]^D[3],H=3;H>=0&&!(V.counter[H]=-~V.counter[H]);H--);for(var Q,T,y=4;y<40;)H=jz[f>>>24]^l$[n>>16&255]^GI[t>>8&255]^ez[J&255]^D[y++],Q=jz[n>>>24]^l$[t>>16&255]^GI[J>>8&255]^ez[f&255]^D[y++],T=jz[t>>>24]^l$[J>>16&255]^GI[f>>8&255]^ez[n&255]^D[y++],J=jz[J>>>24]^l$[f>>16&255]^GI[n>>8&255]^ez[t&255]^D[y++],f=H,n=Q,t=T;V=V.cipherBlock;H=D[40];V[0]=ZD[f>>>24]^H>>>24;V[1]=ZD[n>>16&255]^H>>16&255;V[2]=
ZD[t>>8&255]^H>>8&255;V[3]=ZD[J&255]^H&255;H=D[41];V[4]=ZD[n>>>24]^H>>>24;V[5]=ZD[t>>16&255]^H>>16&255;V[6]=ZD[J>>8&255]^H>>8&255;V[7]=ZD[f&255]^H&255;H=D[42];V[8]=ZD[t>>>24]^H>>>24;V[9]=ZD[J>>16&255]^H>>16&255;V[10]=ZD[f>>8&255]^H>>8&255;V[11]=ZD[n&255]^H&255;H=D[43];V[12]=ZD[J>>>24]^H>>>24;V[13]=ZD[f>>16&255]^H>>16&255;V[14]=ZD[n>>8&255]^H>>8&255;V[15]=ZD[t&255]^H&255};var E$l=!1;(function(){var V=function(n){return new Uint8Array(n)},D=function(n){for(var t=new Uint8Array(n.length),J=0;J<n.length;J++)t[J]=n[J];
return t},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?V:D})();
var c5;var Y_P=function(V){a:{if(!E$l&&!Ob){if(c5){var D=c5;break a}c5=(D=window.crypto)==null?void 0:D.subtle;var f,n,t;if(((f=c5)==null?0:f.importKey)&&((n=c5)==null?0:n.sign)&&((t=c5)==null?0:t.encrypt)){D=c5;break a}c5=void 0}D=void 0}D&&(this.nativeEncryptor=new AfY(V,D));this.encryptorPolyfill=new agp(V)};
Y_P.prototype.encrypt=function(V,D){var f=this,n;return _.w(function(t){switch(t.nextAddress){case 1:if(!f.nativeEncryptor){t.jumpTo(2);break}_.wx(t,3);return _.b(t,f.nativeEncryptor.encrypt(V,D),5);case 5:return t.return(t.yieldResult);case 3:n=_.KW(t),_.zP(n),E$l=!0,f.nativeEncryptor=void 0;case 2:return t.return(f.encryptorPolyfill.encrypt(V,D))}})};
var AfY=function(V,D){this.JSC$10718_aesKey=V;this.subtleCrypto=D};
AfY.prototype.encrypt=function(V,D){var f=this,n;return _.w(function(t){if(t.nextAddress==1)return _.wx(t,2),_.b(t,$0U(f,V,D),4);if(t.nextAddress!=2)return t.return(t.yieldResult);n=_.KW(t);_.zP(n);E$l=!0;throw n;})};
var $0U=function(V,D,f){var n,t;return _.w(function(J){switch(J.nextAddress){case 1:if(V.cryptoKey){J.jumpTo(2);break}return _.b(J,V.subtleCrypto.importKey("raw",V.JSC$10718_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:V.cryptoKey=J.yieldResult;case 2:return n={name:"AES-CTR",counter:f,length:128},_.b(J,V.subtleCrypto.encrypt(n,V.cryptoKey,D),4);case 4:return t=J.yieldResult,J.return(new Uint8Array(t))}})},agp=function(V){this.JSC$10721_aesKey=V};
agp.prototype.encrypt=function(V,D){this.encryptor||(this.encryptor=new q_p(this.JSC$10721_aesKey));for(var f=this.encryptor,n=0;n<4;n++)f.counter[n]=D[n*4]<<24|D[n*4+1]<<16|D[n*4+2]<<8|D[n*4+3];f.blockOffset=16;return this.encryptor.encrypt(V)};var iEl={},ybd=Ub("yt-idb-pref-storage",{objectStores:(iEl.prefs={addedAtVersion:1},iEl),shared:!1,upgrade:function(V,D){D(1)&&AB(Ei(V,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.F7=function(V){this.token=V};
_.F7.getInstance=function(){return _.w(function(V){return V.return(new Promise(function(D){_.hU().then(function(f){f?(_.F7.instance||(_.F7.instance=new _.F7(f)),D(_.F7.instance)):D(void 0)})}))})};
_.F7.prototype.get=function(V){var D=this,f,n,t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,ZNR(D.token),2);if(J.nextAddress!=3)return f=J.yieldResult,_.b(J,f.get("prefs",V),3);n=J.yieldResult;if(!n)return J.return();t=(0,_.VW)();return n.expirationTimestampMs<=t?J.return():J.return(n.value)})};
_.F7.prototype.set=function(V,D,f){f=f===void 0?31536E3:f;var n=this,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return t=(0,_.VW)(),J={key:V,value:D,expirationTimestampMs:t+f*1E3},_.b(Q,ZNR(n.token),2);H=Q.yieldResult;return _.b(Q,H.put("prefs",J),0)})};
_.F7.prototype.remove=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,ZNR(D.token),2);f=n.yieldResult;return _.b(n,f.delete("prefs",V),0)})};var gW={},S_H=(gW.INVALID_ENCODER_VERSION="Invalid encoder version",gW.KEY_CREATION_FAILED="Failed to create encoder key",gW.UNKNOWN_DECODE_ERROR="Failed to decode PES data",gW.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",gW.WRONG_DATA_TYPE="Encoder cannot process the data type",gW),Tq=function(V,D){D=D===void 0?{}:D;_.cI.call(this,S_H[V],Object.assign({},{name:"PESEncoderError",type:V},D));this.type=V;this.level="WARNING";Object.setPrototypeOf(this,Tq.prototype)};
_.v(Tq,_.cI);var WmY=function(){},p$E=function(V,D,f){try{return V.encodeImpl(D,f)}catch(n){eNx(n,lAx)}},Lml=function(V,D,f){var n;
return _.w(function(t){if(t.nextAddress==1)return _.wx(t,2),_.b(t,V.decodeAsyncImpl(D,f),4);if(t.nextAddress!=2)return t.return(t.yieldResult);n=_.KW(t);eNx(n,Gz9);_.yz(t)})};
WmY.prototype.decodeAsyncImpl=function(V,D){return Promise.resolve(this.decodeImpl(V,D))};var v5=function(V,D){this.aesEncryptor=V;this.aesEncryptorAsync=D};
_.v(v5,WmY);v5.prototype.encodeImpl=function(V,D){D=cbn(D);V=(new TextEncoder).encode(JSON.stringify(V));return this.aesEncryptor.encrypt(V,D)};
v5.prototype.decodeImpl=function(V,D){if(!(V instanceof Uint8Array))throw jaZ(1);var f=new TextDecoder;D=cbn(D);V=this.aesEncryptor.encrypt(V,D);return JSON.parse(f.decode(V))};
v5.prototype.decodeAsyncImpl=function(V,D){var f=this,n,t,J;return _.w(function(H){if(H.nextAddress==1){if(!(V instanceof Uint8Array))throw jaZ(1);n=new TextDecoder;t=cbn(D);return _.b(H,f.aesEncryptorAsync.encrypt(V,t),2)}J=H.yieldResult;return H.return(JSON.parse(n.decode(J)))})};var F4L={accountLinkStatusEntity:yio,booleanEntity:pNo,buttonEntity:P$l,captionTrack:pEl,channelHandle:FzP,chipEntity:qCP,commerceAcquisitionClientPayloadEntity:u7o,commerceCartListEntity:NWF,contextNoteFeedEntityPayload:qkP,contextNoteUserRatingEntityPayload:XbF,continuationTokenEntity:BAE,downloadQualityPickerEntity:Z$r,downloadsPageRefreshTokenEntity:lpp,downloadsPageViewConfigurationEntity:XkU,downloadStatusEntity:jHr,dismissState:Xcl,sfvAudioItemCurrentlyPlayingEntity:v9p,emojiFountainDataEntity:fDu,
emojiCustomizationSetEntity:DPF,fakeChannel:OpL,fakePlaylist:xME,fakePlaylistEntryCollection:M$H,fakeVideo:UMu,fakeVideoDescription:VTl,featuredProductsEntity:nGY,flowStateEntity:Qip,iconBadgeEntity:mPp,interstitialInteractionStateEntity:mmE,likeButtonAnimationEntity:E1V,liveChatPollStateEntity:aUl,liveViewerLeaderboardChatEntryPointStateEntity:o9V,liveViewerLeaderboardPointsEntity:Jb6,liveReactionsDataEntity:ncV,logoEntity:u6Y,macroMarkerEntity:AuY,mainDownloadsLibraryEntity:Ggl,mainDownloadsListEntity:e4u,
mainPlaylistDownloadStateEntity:F6F,mainPlaylistEntity:d76,mainPlaylistVideoEntity:uuU,mainVideoDownloadStateEntity:g1F,mainVideoEntity:R4L,markersEngagementPanelSyncEntity:ap6,markersVisibilityOverrideEntity:YyL,musicAlbumReleaseDetail:KSF,musicAlbumReleaseDownloadMetadataEntity:HnP,musicAlbumRelease:bnp,musicAlbumReleaseUserDetail:y_P,musicArtistDetail:jcr,musicArtist:ZnL,musicArtistUserDetail:lBP,musicDownloadsLibraryEntity:wEl,musicLibraryEdit:GwE,musicLibraryStatusEntity:eYL,musicPlaylist:c_H,
musicPlaylistDownloadMetadataEntity:QcU,musicShare:gGP,musicTrackDetail:kwu,musicTrackDownloadMetadataEntity:Tlr,musicTrack:vGE,musicTrackUserDetail:scV,offlineOrchestrationActionWrapperEntity:LSF,offlineVideoPolicy:IBL,offlineVideoStreams:Ono,offlineabilityEntity:v1Y,orchestrationWebSamplingEntity:kgU,pageHeaderEntity:LJl,pdpStateEntity:z_o,pinnedProductEntity:thl,playbackData:xQu,playerStateEntity:$7L,quantityIncrementerEntity:R_l,refresh:Mhl,saveToPlaylistListEntity:pyo,selectedChipIndexEntityPayload:i$Y,
settingEntity:Z9Y,stringEntity:Lvl,suggestedFeedbackChipStateEntity:SyP,transfer:hYH,trendingOfferEntity:PiF,videoDownloadContextEntity:UQL,videoOverviewAsyncDataEntity:t2F,videoPlaybackPositionEntity:r6u,votingEntity:MtF,ytMainChannelEntity:CTu,youchatPendingResponseEntity:W6o,ytMainDownloadedVideoEntity:sHF,ytMainVideoEntity:qyV};var IgF,x0l,js,NoY,mWY,U0H,DF6,VOP,hFV;IgF=function(V,D){this.JSC$10740_wrapped=V;this.JSC$10740_encoderRegistry=D;this.changedKeys={}};
x0l=function(V,D){a:{V=OEP(V.JSC$10740_encoderRegistry,D.version);try{var f=V.decodeImpl(D.data,D.key);break a}catch(n){eNx(n,Gz9)}f=void 0}return f};
_.MnF=function(V,D,f){return V.JSC$10740_wrapped.objectStore("EntityStore").get(D).then(function(n){if(n){if(f&&n.entityType!==f)throw Error("Gf");return x0l(V,n)}})};
js=function(V,D,f){return f?(f=f.map(function(n){return _.MnF(V,n,D)}),XT.all(f)):V.JSC$10740_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(D)).then(function(n){return n.map(function(t){return x0l(V,t)})})};
_.uLF=function(V,D,f){var n=Jb3(D),t=OEP(V.JSC$10740_encoderRegistry,1),J=Object.assign({},D);return V.JSC$10740_wrapped.objectStore("EntityStore").get(n).then(function(H){if(H){if(H.entityType!==f)throw Error("Gf");J.entityMetadata||(H=x0l(V,H),J.entityMetadata=H.entityMetadata)}}).then(function(){var H={key:n,
entityType:f,data:p$E(t,J,n),version:1};return XT.all([V.JSC$10740_wrapped.objectStore("EntityStore").put(H),hFV(V,J,f)])}).then(function(){U0H(V,n,f);
return n})};
NoY=function(V,D){var f=_.PR(D).entityType;return XT.all([V.JSC$10740_wrapped.objectStore("EntityStore").delete(D),VOP(V,D)]).then(function(){U0H(V,D,f)})};
mWY=function(V,D,f,n){var t=OEP(V.JSC$10740_encoderRegistry,1);return _.MnF(V,D,n).then(function(J){if(J){J=IBU(J,f);var H={key:D,entityType:n,data:p$E(t,J,D),version:1};return XT.all([V.JSC$10740_wrapped.objectStore("EntityStore").put(H),hFV(V,J,n)])}}).then(function(){U0H(V,D,n);
return D})};
U0H=function(V,D,f){var n=V.changedKeys[f];n||(n=new Set,V.changedKeys[f]=n);n.add(D)};
DF6=function(V,D,f){var n=Jb3(D);f=g9c(f);if(!f)return XT.resolve([]);f=new f(D);V=V.JSC$10740_wrapped.objectStore("EntityAssociationStore");D=[];f=_.r(f.getAssociations());for(var t=f.next();!t.done;t=f.next())D.push(V.put({parentEntityKey:n,childEntityKey:t.value}));return XT.all(D).then(function(J){return J.map(function(H){return H[1]})})};
VOP=function(V,D){return V.JSC$10740_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(D))};
hFV=function(V,D,f){var n=Jb3(D);return VOP(V,n).then(function(){return DF6(V,D,f)})};var fQF=function(){};
_.v(fQF,WmY);fQF.prototype.encodeImpl=function(V){return V};
fQF.prototype.decodeImpl=function(V){if(V instanceof Uint8Array)throw jaZ(0);return V};var sac=function(){this.cacheMap={};this.cacheMap[0]=new fQF;if(!_.c("aes_pes_encoder_killswitch")){var V=this.cacheMap;try{var D=_.G5();var f=cbn(D);var n=new v5(new agp(f),new Y_P(f))}catch(t){throw V=t instanceof Error?new Tq("KEY_CREATION_FAILED",{originalMessage:t.message}):new Tq("KEY_CREATION_FAILED"),_.NG(V),V;}V[1]=n}},OEP=function(V,D){D=D===void 0?0:D;
V=V.cacheMap[D];if(!V)throw D=new Tq("INVALID_ENCODER_VERSION",{encoderVersion:D}),_.NG(D),D;return V};var KA=function(V,D){_.cq.call(this);this.token=V;this.JSC$10754_encoderRegistry=D;this.observers=[];V=new _.fx.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.G5());V.onmessage=this.handleMessage.bind(this);this.channel=V};
_.v(KA,_.cq);_.ZH=function(V,D,f){var n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,K4c(V.token),2);if(Q.nextAddress!=3)return n=Q.yieldResult,_.b(Q,_.S1(n,["EntityStore","EntityAssociationStore"],D,function(T){t=new IgF(T,V.JSC$10754_encoderRegistry);return f(t)}),3);
J=Q.yieldResult;t&&(H=t.changedKeys,Object.keys(H).length>0&&(V.channel.postMessage(H),nEu(V,H)));return Q.return(J)})};
KA.prototype.observe=function(V){var D=this;this.observers.push(V);return function(){var f=D.observers.indexOf(V);f>=0&&D.observers.splice(f,1)}};
var vZ9=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,_.ZH(V,{mode:"readonly",enableRetries:!0},function(n){return n.JSC$10740_wrapped.objectStore("EntityStore").getAll()}),2);
D=f.yieldResult;return f.return(Promise.all(D.filter(function(n){return!!n}).map(function(n){var t,J;
return _.w(function(H){if(H.nextAddress==1){t=n.key;J=n.entityType;var Q=Lml(OEP(V.JSC$10754_encoderRegistry,n.version),n.data,n.key);return _.b(H,Q,2)}return H.return({key:t,entityType:J,data:H.yieldResult})})})))})};
KA.prototype.handleMessage=function(V){nEu(this,V.data)};
var nEu=function(V,D){V=_.r(V.observers);for(var f=V.next();!f.done;f=V.next())f=f.value,f(D)};
KA.prototype.disposeInternal=function(){this.channel.close()};
var v9F;var kc,PMV,Mq9;kc={};_.tOH=(kc.mainVideoEntity="mainVideoEntityActionMetadata",kc.mainPlaylistEntity="mainPlaylistEntityActionMetadata",kc.musicTrack="musicTrackEntityActionMetadata",kc.musicPlaylist="musicPlaylistEntityActionMetadata",kc);PMV=new _.IH("DOWNLOADS_ENTITY_TYPE_MAP");_.ky=_.HR("","downloadsPageViewConfigurationEntity");Mq9=_.HR("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.JT3=_.HR("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.HR("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.HR("SMART_DOWNLOADS_ENABLED","settingEntity");_.HR("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var XyR=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var SDX=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Ofx={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var sg,I8Y,zLH,g_9;sg=window;_.AO=sg.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.P$Y=sg.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.WR;I8Y=sg.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||vC;zLH=sg.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||mZU;_.oEr=sg.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.OAV;g_9=sg.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||hI6;iR({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 r6d=O9Y(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(V){return V}}}),RZ9=O9Y(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(V){return V}}}),UTd=new Map;var w5X=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],tzx;var J$E=function(V){return _.nA({type:"SET_EPHEMERAL_ACTION",payload:V})};var r$6={ephemeralAction:null};var HCp={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var z_x={sharedUi:function(V,D){V=V===void 0?HCp:V;switch(D.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},V,{animatedThumbnailEnabled:D.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},V,{inlinePreviewEnabled:D.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},V,{currentPageType:D.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},V,{currentPageSubType:D.payload});default:return V}},
a11y:TR({ephemeralAction:function(V,D){V=V===void 0?r$6.ephemeralAction:V;switch(D.type){case "SET_EPHEMERAL_ACTION":return D.payload;default:return V}}})};var Z_Y={playlistId:"",inviteLinkURL:""};var wgl={};var vcX=TR({continuationCommand:function(V,D){V=V===void 0?wgl:V;switch(D.type){case "SET_CONTINUATION_COMMAND":return D.payload.continuationCommand;default:return V}}});var lD3={currentFormId:"",commandsMap:{}};var kIx=TR({isLeaderTab:function(V,D){V=V===void 0?!0:V;switch(D.type){case "SET_IS_LEADER_TAB":var f,n;return(n=D==null?void 0:(f=D.payload)==null?void 0:f.isLeaderTab)!=null?n:V;default:return V}}});var TDF;_.Q0Y=function(V){return _.nA({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:V}})};
TDF=function(V){return _.nA({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:V}})};var mPF=TR({isDesktopSmallWidth:function(V,D){switch(D.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return D.payload.isDesktopSmallWidth;default:return V===void 0?!1:V}},
isShortsActive:function(V,D){switch(D.type){case "SET_IS_SHORTS_ACTIVE":return D.payload.isShortsActive;default:return V===void 0?!1:V}},
isWatchWhileMode:function(V,D){switch(D.type){case "SET_IS_WATCH_WHILE_MODE":return D.payload.isWatchWhileMode;default:return V===void 0?!1:V}},
playerState:function(V,D){switch(D.type){case "SET_PLAYER_STATE":return D.payload.playerState;default:return V===void 0?-1:V}},
isFullscreen:function(V,D){switch(D.type){case "SET_IS_FULLSCREEN":return D.payload.isFullscreen;default:return V===void 0?!1:V}},
isSmallScreenSqueezeback:function(V,D){switch(D.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return D.payload.isSmallScreenSqueezeback;default:return V===void 0?!1:V}},
isShortsPipActive:function(V,D){switch(D.type){case "SET_IS_SHORTS_PIP_ACTIVE":return D.payload.isShortsPipActive;default:return V===void 0?!1:V}},
isPlaybackStarted:function(V,D){switch(D.type){case "SET_IS_PLAYBACK_STARTED":return D.payload.isPlaybackStarted;default:return V===void 0?!1:V}}});var C$d=function(){return function(V){return function(D){var f=V(D);_.o4(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[D],!0);return f}}};var bCL,Whn;bCL=new _.wU;_.nX=new _.IH("WATCH_PLAYER_PROMISE_TOKEN");_.KcF=new _.wU;_.y$V=new _.IH("SHORTS_PLAYER_PROMISE_TOKEN");Whn=new _.IH("");var qgd=function(){return function(V){return function(D){D.type==="ENTITY_LOADED"&&_.DY().resolve(_.nX).then(function(f){var n;(n=f.dispatchReduxAction)==null||n.call(f,D)});
return V(D)}}};var ZCu={};var sjX=TR({additionalContext:function(V,D){switch(D.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var f;return(f=D.payload)!=null?f:"";default:return V===void 0?"":V}},
impersonatedChannelUrl:function(V,D){switch(D.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var f;return(f=D.payload)!=null?f:"";default:return V===void 0?"":V}},
selectedVideoIds:function(V,D){V=V===void 0?ZCu:V;switch(D.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var f={};return Object.assign({},V,(f[D.payload]=!0,f));case "VIDEO_UNSELECTED":return D=D.payload,V=Object.assign({},V),delete V[D],V;default:return V}}});var BWY=TR({parentClickTrackingParams:function(V,D){switch(D.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return D.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return V===void 0?"":V}}});var j06=function(V){return _.nA({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:V})};var lQF={};var dP3=TR({stepStates:function(V,D){V=V===void 0?lQF:V;switch(D.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var f=V,n=D.payload,t,J,H;V={};D={selectionStates:Object.assign({},(H=(t=f[n.stepId])==null?void 0:t.selectionStates)!=null?H:{},(V[n.token]={isSelected:n.isSelected},V)),userQuery:(J=f[n.stepId])==null?void 0:J.userQuery};t={};return Object.assign({},f,(t[n.stepId]=D,t));case "TALK_TO_RECS_UPDATE_USER_QUERY":return t=V,J=D.payload,H={selectionStates:Object.assign({},
(n=(f=t[J.stepId])==null?void 0:f.selectionStates)!=null?n:{}),userQuery:{userQuery:J.userQuery,token:J.userQueryToken}},f={},Object.assign({},t,(f[J.stepId]=H,f));default:return V}}});var GaE,eju,FcU;GaE=function(V){return _.nA({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:V})};
eju=function(V){return _.nA({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:V})};
_.s5=function(V){return _.nA({type:"SET_CURRENT_PAGE_TYPE",payload:V})};
_.c$o=function(V){return _.nA({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:V})};
FcU=function(V){return _.nA({type:"SET_CHIP_BAR_IS_STICKY",payload:V})};var e_d={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"};_.gEu=function(V){return _.nA({type:"SET_PLAYER_STATE",payload:{playerState:V}})};var vEF=[],kar={width:0,height:0};var u7x=TR({isTheaterMode:function(V,D){V=V===void 0?_.c("kevlar_disable_theater_mode_persistence")?!1:_.EG("START_IN_THEATER_MODE"):V;switch(D.type){case "SET_IS_THEATER_MODE":return D.payload.isTheaterMode;default:return V}},
isWatchActive:function(V,D){switch(D.type){case "SET_IS_WATCH_ACTIVE":return D.payload.isWatchActive;default:return V===void 0?!1:V}},
isLearningJourneyActive:function(V,D){switch(D.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return D.payload.isLearningJourneyActive;default:return V===void 0?!1:V}},
isWatchFullscreen:function(V,D){switch(D.type){case "SET_IS_WATCH_FULLSCREEN":return D.payload.isWatchFullscreen;default:return V===void 0?!1:V}},
isWatchNarrowWidth:function(V,D){switch(D.type){case "SET_IS_WATCH_NARROW_WIDTH":return D.payload.isWatchNarrowWidth;default:return V===void 0?!1:V}},
isWatchRetroMode:function(V,D){switch(D.type){case "SET_IS_WATCH_RETRO_MODE":return D.payload.isWatchRetroMode;default:return V===void 0?!1:V}},
isLiveChatCollapsed:function(V,D){switch(D.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return D.payload.isLiveChatCollapsed;default:return V===void 0?!1:V}},
openEngagementPanels:function(V,D){V=V===void 0?vEF:V;var f=[].concat(_.sz(V));switch(D.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return f.push(D.payload.panelToAdd),f;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return f.splice(f.indexOf(D.payload.panelToRemove),1),f;default:return V}},
playerState:function(V,D){switch(D.type){case "SET_PLAYER_STATE":return D.payload.playerState;default:return V===void 0?-1:V}},
watchScrollTop:function(V,D){switch(D.type){case "SET_WATCH_SCROLL_TOP":return D.payload.watchScrollTop;default:return V===void 0?0:V}},
watchWindowSize:function(V,D){V=V===void 0?kar:V;switch(D.type){case "SET_WATCH_WINDOW_SIZE":return D.payload.watchWindowSize;default:return V}}});var s0P={feedbackTokens:[]};var NW9=TR({surveyFeedbackData:function(V,D){V=V===void 0?s0P:V;switch(D.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return D.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},V,D.payload);default:return V}}});var F5c={};var Ec9=void 0;_.c("web_enable_redux_store_on_demand")||(Ec9=X59());var BDV=function(V,D,f){var n=this;this.listId=V;this.JSC$10888_updateCallback=D;this.isOfflineVideoCallback=f;_.Ol().subscribe(function(){n.handleUpdate()})};
BDV.prototype.getPlaylistData=function(){var V=_.Ol().getState().entities;if(this.listId&&this.listId!=="PPSV"){var D=E09(V,this.listId,!0),f=_.HR(this.listId,"mainPlaylistEntity"),n,t;V=V==null?void 0:(n=V.mainPlaylistEntity)==null?void 0:(t=n[f])==null?void 0:t.title;return A6Y(D,V,this.listId)}D=_.W4R(b9F(V));V=_.W4R(_.sl(V));return A6Y(D.concat(V))};
BDV.prototype.getPlaylistId=function(){return this.listId};
BDV.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10888_updateCallback(this.listId,this.getPlaylistData(),{})};var B5=function(V,D,f,n){n=n===void 0?[]:n;this.JSC$10891_playlistNetworkManager=V;this.listId=D;this.JSC$10891_updateCallback=f;this.videoIds=n;this.pendingUpdates=[];this.currentIndex=0};
B5.prototype.JSC$10891_setCurrentIndex=function(V){this.currentIndex=V};
B5.prototype.setListId=function(V){this.listId=V};
var dFV=function(V,D){V.currentCreateRequest&&V.currentCreateRequest.cancel(D);V.currentUpdateRequest&&V.currentUpdateRequest.cancel(D);V.currentRefreshRequest&&V.currentRefreshRequest.cancel(D)};
B5.prototype.delete=function(){dFV(this,"PROXY DELETED")};
B5.prototype.addVideos=function(V,D,f){var n=this;f!==void 0?this.videoIds.splice.apply(this.videoIds,[f,0].concat(_.sz(V))):this.videoIds.push.apply(this.videoIds,_.sz(V));this.listId||this.currentCreateRequest?(V.forEach(function(t,J){t={addedVideoId:t,action:"ACTION_ADD_VIDEO"};f&&(t.addedVideoPosition=f+J);n.pendingUpdates.push(t)}),dW(this)):uHl(this,D.onCreateListCommand)};
var NDY=function(V,D,f,n,t){gFZ(V.videoIds,D,f);D>V.currentIndex&&f<=V.currentIndex?V.JSC$10891_setCurrentIndex(V.currentIndex+1):D===V.currentIndex?V.JSC$10891_setCurrentIndex(f):D<V.currentIndex&&f>=V.currentIndex&&V.JSC$10891_setCurrentIndex(V.currentIndex-1);V.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:n,movedSetVideoIdPredecessor:t});dW(V)},uHl=function(V,D){dFV(V,"OBSOLETE");
V.currentCreateRequest=mFP(V.JSC$10891_playlistNetworkManager,D,V.videoIds);_.cT(V.currentCreateRequest,function(){V.currentCreateRequest=void 0}).then(function(f){V.setListId(f.playlistId);
V.pendingUpdates.length>0?dW(V):zjF(V)})},dW=function(V){if(V.pendingUpdates.length!==0&&(V.currentRefreshRequest&&V.currentRefreshRequest.cancel("OBSOLETE"),!V.currentUpdateRequest&&!V.currentCreateRequest)){var D=V.pendingUpdates.splice(0,V.pendingUpdates.length);
V.currentUpdateRequest=V.JSC$10891_playlistNetworkManager.updatePlaylist(V.listId,D);_.cT(V.currentUpdateRequest,function(){V.currentUpdateRequest=void 0}).then(function(){V.pendingUpdates.length>0?dW(V):zjF(V)}).thenCatch(function(){V.pendingUpdates.unshift.apply(V.pendingUpdates,_.sz(D))})}},zjF=function(V){V.currentRefreshRequest=_.RjE(V.JSC$10891_playlistNetworkManager,V.listId,V.currentIndex,V.videoIds[V.currentIndex]);
_.cT(V.currentRefreshRequest,function(){V.currentRefreshRequest=void 0}).then(function(D){V.JSC$10891_updateCallback(D.playlistId,D.playlistPanelRenderer,D.autoplayRenderer)})};
B5.prototype.size=function(){return this.videoIds.length};var CM6=function(V,D,f,n){n=n===void 0?[]:n;B5.call(this,V,D,f,n);this.JSC$10891_playlistNetworkManager=V;this.listId=D;this.JSC$10891_updateCallback=f;this.videoIds=n};
_.v(CM6,B5);_.u$=function(V,D,f,n,t,J,H){t=t===void 0?[]:t;H=H===void 0?VN:H;B5.call(this,V,D,f,t);this.JSC$10891_playlistNetworkManager=V;this.listId=D;this.JSC$10891_updateCallback=f;this.onAuthChange=n;this.videoIds=t;this.storage=J;this.cookieReader=H;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.JI(_.dm,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v(_.u$,B5);_.P=_.u$.prototype;_.P.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.JI(_.dm,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P.JSC$10891_setCurrentIndex=function(V){B5.prototype.JSC$10891_setCurrentIndex.call(this,V);this.store()};
_.P.delete=function(){_.dm.cancelJob(this.queueSapisIdJob);B5.prototype.delete.call(this)};
_.P.setListId=function(V){B5.prototype.setListId.call(this,V);this.store()};
_.P.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var q8l=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],XgF=["playerResponse","videoDetails"],EEH=["response","currentVideoEndpoint","watchEndpoint","videoId"],A$L=["response","currentVideoEndpoint","watchEndpoint","playlistId"],aQY=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Y8p=["response","contents","twoColumnWatchNextResults","playlist","playlist"],$Fp=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
iCP=["response","contents","twoColumnWatchNextResults"];var NP={},SgF=(NP.WEB_UNPLUGGED="^unplugged/",NP.WEB_UNPLUGGED_ONBOARDING="^unplugged/",NP.WEB_UNPLUGGED_OPS="^unplugged/",NP.WEB_UNPLUGGED_PUBLIC="^unplugged/",NP.WEB_CREATOR="^creator/",NP.WEB_KIDS="^kids/",NP.WEB_EXPERIMENTS="^experiments/",NP.WEB_MUSIC="^music/",NP.WEB_REMIX="^music/",NP.WEB_MUSIC_EMBEDDED_PLAYER="^music/",NP.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",NP);var sKc,mFP;sKc=function(V,D){this.networkManager=V;this.innertubeTransportService=D};
mFP=function(V,D,f){if(!_.g(D,_.Xb))return _.Br(Error("Kf"));_.g(D,_.Xb).videoIds=f;f={create_playlist_title:_.Zl("QUEUE",void 0,"Queue")};return $PZ(_.ie(V.innertubeTransportService,D,f),aDR)};
_.RjE=function(V,D,f,n){D={videoId:n,playlistId:D,playlistIndex:f};f=_.xy(it6);return $PZ(_.m5(V.innertubeTransportService,D,f),i_L)};
sKc.prototype.updatePlaylist=function(V,D){return $PZ(_.ie(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:V,actions:D}}),YgY)};var S8L=function(V){this.storage=V},WcP;
S8L.prototype.store=function(V,D){D=D===void 0?0:D;if(this.storage&&V.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",V),this.storage.set("TLPQindex",String(D)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(f){}};
S8L.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
S8L.prototype.getPlaylistId=function(){if(!this.storage)return null;var V=null;try{V=this.storage.get("TLPQplaylist")}catch(D){}return V};var ID9=["navigationEndpoint","watchEndpoint","videoId"],L5X=["nextButtonVideo","watchEndpoint","videoId"];_.RB=new _.IH("NETWORK_TOKEN");_.xl=new _.IH("PAGE_TOKEN");_.zI=new _.IH("PLAYLIST_TOKEN");var pgl;pgl=new _.IH("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.CR=new _.IH("INNERTUBE_TRANSPORT_TOKEN");var Lco,Rj,OCl,xF6,hjo,UFF;Lco=new Set(["ci","cr","carml"]);Rj=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10938_parkedJobs=new Map;this.parkedProcessors=new Map};
_.C_=function(){Rj.instance||(Rj.instance=new Rj);return Rj.instance};
Rj.prototype.onAny=function(V){return _.IQF(this,V,2)};
Rj.prototype.parkOrScheduleJob=function(V,D,f,n,t){_.qP(this,f)?_.kv().addJob(V,D,n):(t&&(V=OCl(V),xF6(this,V,D,f,t)),t=this.JSC$10938_parkedJobs.get(f),t||(this.JSC$10938_parkedJobs.set(f,[]),t=this.JSC$10938_parkedJobs.get(f)),t.push({job:V,priority:D,delay:n}))};
Rj.prototype.addListener=function(V,D,f){f&&(D=OCl(D),xF6(this,D,0,V,f));f=this.parkedProcessors.get(V);f||(this.parkedProcessors.set(V,[]),f=this.parkedProcessors.get(V));f.push(D)};
Rj.prototype.processSignal=function(V){if(!_.qP(this,V)){this.inProgressSignals.add(V);var D=this.JSC$10938_parkedJobs.get(V);if(D){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,_.kv().addJob(f.job,f.priority,f.delay);this.JSC$10938_parkedJobs.delete(V)}if(D=this.parkedProcessors.get(V)){D=_.r(D);for(f=D.next();!f.done;f=D.next())f=f.value,f();this.parkedProcessors.delete(V)}this.signals.push(V);this.inProgressSignals.delete(V)}};
_.qP=function(V,D){return Lco.has(D)||_.EG("IS_HOMEPAGE_COLD")||_.EG("IS_RESULTS_PAGE_COLD")||_.EG("IS_WATCH_PAGE_COLD")?V.signals.indexOf(D)>=0:!0};
OCl=function(V){var D=!1;return function(){D||(D=!0,V())}};
xF6=function(V,D,f,n,t){if(MOL.has(n))_.kv().addJob(D,f,t);else{var J=V.compoundSignals.get(n);J&&_.kv().addJob(function(){_.qP(V,n)||(J.isTimeoutConditionSatisfied?_.kv().addJob(D,f):J.timeoutConditionObservers.push(function(){_.kv().addJob(D,f)}))},f,t)}};
_.IQF=function(V,D,f){if(D.length>1){var n=[],t=Object.create(null);D=_.r(D);for(var J=D.next();!J.done;J=D.next())J=J.value,t[J]||(n.push(J),t[J]=!0);D=n}if(D.length===1)return D[0];J=D;n="";t=f===2?"|":"&";J.sort();J=_.r(J);for(var H=J.next();!H.done;H=J.next())n+=H.value+t;if(!V.compoundSignals.get(n)){t=0;J=[];H=_.r(D);for(var Q=H.next();!Q.done;Q=H.next())Q=Q.value,t++,_.qP(V,Q)||J.push(Q);(f=f===2)&&t>J.length||!f&&!J.length?V.signals.push(n):hjo(V,n,f,D,J)}return n};
hjo=function(V,D,f,n,t){var J=t.length,H=function(){f||--J===0?V.processSignal(D):UFF(V,D)};
t=_.r(t);for(var Q=t.next();!Q.done;Q=t.next())V.addListener(Q.value,H);V.compoundSignals.set(D,{signals:n,isOnAny:f,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});UFF(V,D)};
UFF=function(V,D){if(!_.qP(V,D)){var f=V.compoundSignals.get(D);if(f&&!f.isTimeoutConditionSatisfied){for(var n=!1,t=0,J=0,H=_.r(f.signals),Q=H.next();!Q.done;Q=H.next()){var T=Q.value;Q=!_.qP(V,T);MOL.has(T)?n=!0:(T=V.compoundSignals.get(T))?Q&&!T.isTimeoutConditionSatisfied&&(J++,f.isInitialized||T.timeoutConditionObservers.push(function(){UFF(V,D)})):Q&&t++}f.isInitialized=!0;
f.isOnAny?n&&(f.isTimeoutConditionSatisfied=!0):t===0&&J===0&&(f.isTimeoutConditionSatisfied=!0);if(f.isTimeoutConditionSatisfied)for(f=_.r(f.timeoutConditionObservers),n=f.next();!n.done;n=f.next())n=n.value,n()}}};
Rj.prototype.processSignal=Rj.prototype.processSignal;Rj.prototype.parkOrScheduleJob=Rj.prototype.parkOrScheduleJob;Rj.prototype.onAny=Rj.prototype.onAny;_.M4("ytsignals.getInstance",_.C_);Rj.prototype.onAny=Rj.prototype.onAny;Rj.prototype.parkOrScheduleJob=Rj.prototype.parkOrScheduleJob;Rj.prototype.processSignal=Rj.prototype.processSignal;var MOL=new Set(["eop","eocs","dl","pcl"]);_.qw=new _.IH("MINIPLAYER_SERVICE");var X7,VGF,Dh6;X7=function(V,D,f){var n=_.Yb.getInstance();if(!WcP){var t=new lkF;var J=void 0,H=_.XB("ID_TOKEN");H&&t.isAvailable()&&(J=new kJ(t,"yt-queue"+H));WcP=new S8L(J)}t=WcP;J=_.C_();this.JSC$10945_actionRouter=n;this.pageManager=V;this.playlistManager=D;this.JSC$10945_playlistNetworkManager=f;this.storage=t;this.signals=J;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Eg=function(){if(!VGF){var V=_.DY(),D=V.resolve(_.Vx(_.xl)),f=V.resolve(_.Vx(_.RB)),n=V.resolve(_.Vx(_.zI));V=V.resolve(_.CR);VGF=new X7(D,n,new sKc(f,V))}return VGF};
Dh6=function(V,D,f){if(f){var n;if(((n=V.responsePlaylistData)==null?void 0:n.playlistId)!==f)return}V.responsePlaylistData&&(f=V23(D,V.responsePlaylistData),V.responsePlaylistData=(0,_.sB.unsafeClone)(V.responsePlaylistData),f$Z(V.responsePlaylistData,f));f=V.temporaryItems.findIndex(function(t){return t.videoId===D});
f>-1&&V.temporaryItems.splice(f,1);_.A6(V,_.aj(V,V.response?V.response.autoplayRenderer:void 0))};
_.fwV=function(V,D){if(V.responsePlaylistData){var f=DdX(D,V.responsePlaylistData);f$Z(V.responsePlaylistData,f);if(V.queueProxy){var n=V.queueProxy;f<0||(n.videoIds.splice(f,1),f<n.currentIndex&&n.JSC$10891_setCurrentIndex(n.currentIndex-1),n.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:D}),dW(n))}}_.A6(V,_.aj(V,V.response?V.response.autoplayRenderer:void 0))};
X7.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.A6(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
X7.prototype.setPlaylistData=function(V,D,f){this.temporaryItems=[];this.listId=V;this.responsePlaylistData=D;_.A6(this,_.aj(this,f))};
var ndl=function(V){return(V==null?0:V.playlistId)?V.playlistId:"PPSV"},tGo=function(V){return V&&V.playlistId?V.playlistId==="PPSV"?!0:qpY(_.Ol().getState().entities,V.playlistId):!1};
X7.prototype.isPlayingOfflineVideo=function(){return this.response?tGo(this.response):!1};
X7.prototype.closeMiniplayer=function(V){var D=this.queueProxy&&this.queueProxy.size()<=1,f=_.DY().resolve(_.qw);if(!this.queueProxy||D)this.queueProxy&&this.clearQueue(),f.close(!0);else{f.pipController.getWindow()&&window.focus();D=this.responsePlaylistData;var n=this.temporaryItems.length+(D&&D.contents?D.contents.length:0);D=_.Zl("QUEUE_CLEARED_UNPLURALIZED")||_.jJ("QUEUE_CLEARED",n);D=_.hO(D);f=_.Zl("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");n=_.Zl("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.jJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",n);var t=_.Zl("MINIPLAYER_CLOSE",void 0,"Close"),J=_.Zl("CANCEL",void 0,"Cancel");_.dl(this.JSC$10945_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.pA(f),dialogMessages:[_.pA(n)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pA(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
D]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pA(J)}}}}}}],V)}};
_.aj=function(V,D){var f={},n=V.response;f.autoplayRenderer=D;if(!V.responsePlaylistData&&!V.temporaryItems.length)return!n||!n.hasRelatedVideoData&&_.c("kevlar_prefetch_data_augments_network_data")||(f.playerData={rvs:n.relatedVideoArgs,endScreenRenderer:n.endScreenRenderer}),f;f.playerData={};if(V.index===void 0)return _.NG(Error("Mf")),f;f.panel=V.responsePlaylistData?(0,_.sB.unsafeClone)(V.responsePlaylistData):{titleText:_.pA(_.Zl("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
D=f.panel;if(D.contents)for(var t=_.r(V.temporaryItems),J=t.next();!J.done;J=t.next())D.contents.push({playlistPanelVideoRenderer:J.value});V.queueProxy&&n&&n.playingVideo&&n.playingVideoId&&!UPn(n.playingVideoId,f.panel)&&(D=n.playingVideo,t=f.panel,J=V.index,t.contents&&t.contents.splice(J===void 0?0:J,0,{playlistPanelVideoRenderer:D}));n&&n.playingVideoId&&(D=V.index,t=f.panel,D=!t.contents||D>=t.contents.length?void 0:t.contents[D].playlistPanelVideoRenderer,D&&D.videoId===n.playingVideoId||(D=
V23(n.playingVideoId,f.panel),V.index=D!==-1?D:V.index?V.index-1:0));D=h_3(V.index+1,f.panel);t=void 0;V.index>0&&(t=h_3(V.index-1,f.panel));if(t||D)f.autoplayRenderer=O_Z(D,t,f.autoplayRenderer);!D&&(n==null?0:n.relatedVideoArgs)&&(f.playerData.rvs=n.relatedVideoArgs);n=n?n.playlistIndexOffset:0;V.queueProxy?PVd(f.panel,V.index,n,Mzc,!0,!0,!0):PVd(f.panel,V.index,n);f.playerData.playlistPanelRenderer=f.panel;return f};
X7.prototype.openToast=function(V){_.DY().resolve(_.qw).openToast(V,_.Zl("ADDED_TO_QUEUE",void 0,"Added to queue"))};
X7.prototype.isMiniplayerActive=function(){return _.DY().resolve(_.qw).isMiniplayerActive()};
_.A6=function(V,D){V.playlistManager.setAutoplayRenderer(D.autoplayRenderer||null);V.playlistManager.setPlaylistData(D.panel||null);D.playerData&&V.playlistManager.setPlayerPlaybackControlData(D.playerData)};var J5L="#";var P16={},odH={},J8V={},r8o={},Ha6={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:(P16.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",P16),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:(odH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",odH),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:(J8V.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",J8V),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:(r8o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",r8o),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 i1c=[{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:Ha6},{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:Ha6}}];var zr9;_.Ho=[[["aXFjNzl5ODh6a2luZCM3djI=","N2t0ZjJ6djlzdmFsdWUjdnQx"],"YXZqbDhsc2RtQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjb3Jk"]];
zr9=[[["YmphbWZ2YWc1cHJpbWFyeSN5OGE=",null,null],[null,["c2k2YzVxdWYzeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjbzJ0","bDhnZm54d3Vsc3R5bGUtc2NvcGUjanNh"],null],["bnVjcmdoYWxybWFzdGhlYWQtYWQjaGp0",["b3czM3p1amNoeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNqamw="],null],[null,["dnQwNGNidXl2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNtOXg=","cnN6bTY3cHYwc3R5bGUtc2NvcGUjMTY0"],null],[null,["enA1aTloMzFleXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNsZXY=","bmJ2YnQ5c2pvc3R5bGUtc2NvcGUjN2t4"],null],[null,["YmxpcGU2ZGs3eXRkLWFkLXNsb3QtcmVuZGVyZXIjdjg1"],
null]],[["MjEwdzMyaW05cGxheWVyLWFkcyM1YXU=",null,null]]];_.rU=["Y3l0Z3Q0a2s3Z2xvYmFsQ2FsbGJhY2tzIzFwYg==","OXltY2htdzY5b25BYm5vcm1hbGl0eURldGVjdGVkI3g2ZQ==","ZHNzcWxwZHh4b25BZFNraXAjbHRh","NzQ3ZGg4cDJhcmF3X3BsYXllcl9yZXNwb25zZSNrN2o=","bTJtYWc0ZHRvYWRTbG90cyN0ZHE="];_.Yc="Y3l0Z3Q0a2s3Z2xvYmFsQ2FsbGJhY2tzIzFwYg== OXltY2htdzY5b25BYm5vcm1hbGl0eURldGVjdGVkI3g2ZQ== ZHNzcWxwZHh4b25BZFNraXAjbHRh NzQ3ZGg4cDJhcmF3X3BsYXllcl9yZXNwb25zZSNrN2o= aXJlOW55NDZ2d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIzhwdg== aWxicnlvcmNoYWJfc2FfZWYjYjQ1 bTJtYWc0ZHRvYWRTbG90cyN0ZHE=".split(" ");var $c;$c=function(V,D,f){this.bxj=V;this.isAsync=D;this.oBC=f};
_.DC9=[new $c("b.f_",!1,0),new $c("j.s_",!1,2),new $c("r.s_",!1,4),new $c("e.h_",!1,6),new $c("i.s_",!0,8),new $c("s.t_",!1,10),new $c("p.h_",!1,12),new $c("s.i_",!1,14),new $c("f.i_",!1,16),new $c("a.b_",!1,18),new $c("a.o_",!1),new $c("g.o_",!1,22),new $c("p.i_",!1,24),new $c("p.m_",!1),new $c("n.k_",!0,20),new $c("i.f_",!1),new $c("a.s_",!0),new $c("m.c_",!1),new $c("n.h_",!1,26),new $c("o.p_",!1),new $c("m.p_",!0,28),new $c("o.a_",!1),new $c("d.p_",!1),new $c("e.i_",!1)].reduce(function(V,D){V[D.bxj]=
D;return V},{});var wdF=function(){};
wdF.prototype.flush=function(V,D){V=V===void 0?[]:V;D=D===void 0?!1:D;if(_.c("enable_client_streamz_web")){V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f3u(f.value),this.rootSpec&&_.fc(f,2,this.rootSpec),f={serializedIncrementBatch:_.V3(f.JSC$7696_serializeBinary())},_.dq("streamzIncremented",f,{sendIsolatedPayload:D})}};
var QCU=function(){};
_.v(QCU,wdF);var Q1u=function(V){var D=new OwP;var f=new pB6;f=_.lB(f,1,"botguard");V=_.lB(f,2,V);this.rootSpec=_.nc(D,1,xoY,V)};
_.v(Q1u,wdF);var Po,T5V=new Map;var XX9,b1L,Fp9,Z1Y,Gbc,NCx,A53,ddX;XX9=2;b1L=2;Fp9=2;Z1Y=2;Gbc=2;NCx=2;A53=2;ddX=new M5L;var K1E,y8u,ZaP;K1E=function(){this.ongoingFlowNonces=new Map};
_.bd=function(){y8u||(y8u=new K1E);return y8u};
_.Qu=function(V,D,f){return{eventType:{flowEventNamespace:V,flowEventType:D},metadata:f,statusCode:void 0,csn:void 0,can:void 0}};
_.nLc=function(V,D){var f=_.bd(),n=ZaP(f,D,!0);_.T_(f,V,D,n)};
_.T_=function(V,D,f,n){V={flowNonce:n||ZaP(V,f),flowType:f,flowEventType:D.eventType};D.metadata&&(V.flowMetadata=D.metadata);D.statusCode!==void 0&&(V.flowEventStatus=D.statusCode);D.csn&&(V.csn=D.csn);D.can&&(V.can=D.can);_.dq("flowEvent",V,void 0)};
ZaP=function(V,D,f){f=f===void 0?!1:f;var n=V.ongoingFlowNonces.get(D);if(!n||f)n=B8(16),V.ongoingFlowNonces.set(D,n);return n};_.j1r=new x9V;var Jvn={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var i$=function(V,D,f,n,t,J,H){f=f===void 0?!1:f;n=n===void 0?!1:n;J=J===void 0?_.Eg():J;this.hasRun=!1;this.ow3=V;this.wGS=D;this.iFN=f;this.fromHistory=n;this.previousVideoId=t;this.p9A=J;this.tempData=H;this.bFi=new _.hBY};
_.v(i$,xB);i$.prototype.validate=function(V){return!(!V.data.playerResponse||V.data.page!=="watch"&&V.data.page!=="learning_journey_watch"&&V.data.page!=="shorts"||this.hasRun)};
i$.prototype.handle=function(V){var D=this,f=_.g(V.endpoint,_.pl),n=_.g(V.endpoint,_.gU);if(_.c("kevlar_continue_playback_without_player_response")&&(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback)&&!this.fromHistory)this.ow3.resolve();else{var t={};f?t.watch_endpoint=f:n&&(t.watch_endpoint=n,n.endTimeSeconds&&(t.end=n.endTimeSeconds));V.data.page==="watch"?(V.data.filler||this.iFN||(_.R4("cfg"),_.Yb.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(t,lwH(this,V.endpoint)),_.c("enable_masthead_quartile_ping_fix")&&Object.assign(t,GCp(this)),Object.assign(t,void 0),V.data.forceExternalPlaylist&&(t.external_list=!0)):V.data.page==="shorts"?_.Yb.getInstance().triggerAction("yt-start-loading-shorts"):V.data.page==="learning_journey_watch"&&_.Yb.getInstance().triggerAction("yt-start-loading-learning-journey");if(f=this.wGS()){try{f.loadVideoWithPlayerResponse(V.data.playerResponse,t),f.getPlayerPromise().then(this.ow3.resolve)}catch(J){_.NG(J),
this.ow3.resolve()}this.hasRun=!0;f.getPlayerPromise().then(function(J){J.addEventListener("onAbnormalityDetected",function(){var H=V.data.playerResponse,Q=J.getVideoData().cpn;A53=0;_.baY=Q;if(Q=VH3(H))D.bFi.increment("IN_PLAYER"),_.KR(5),_.c("ab_st_vid_ks")?J.pauseVideo(!0):J.stopVideo(),H.playabilityStatus=Object.assign({},H.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:Q}}),H.videoDetails=void 0,_.Yb.getInstance().triggerOptionalAction("yt-updated-playability-status",
H.playabilityStatus)})})}else _.zP(Error("Pf"))}};
var lwH=function(V,D){var f=_.g(D,_.pl);if(D&&f&&f.playlistId&&f.videoId&&(V=V.p9A,V.queueProxy?(V=V.queueProxy,f=V.listId===f.playlistId?V.attributionData.get(f.videoId):void 0):f=void 0,f))return{queue_info:f}},GCp=function(V){var D;
if((D=V.tempData)==null?0:D.adpings)return{adpings:V.tempData.adpings}};var Sz=function(V,D,f){this.hasRun=!1;this.hpJ=V;this.bo5=D;this.apA=f};
_.v(Sz,xB);Sz.prototype.validate=function(V){return!!_.sB.getValueByKeys.apply(null,[V.data].concat(_.sz(iCP)))};
Sz.prototype.handle=function(V){var D=this;this.hpJ.promise.then(function(){var f=V.data;var n=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(q8l))),t=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(Y8p))),J=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(EEH)));var H=(H=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(XgF))))?{videoId:H.videoId,thumbnail:H.thumbnail,title:H.title?_.pA(H.title):void 0,shortBylineText:H.author?_.pA(H.author):void 0}:void 0;var Q=void 0;_.c("web_get_playlist_id_from_current_endpoint_ks")||
(Q=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(A$L))));var T=_.sB.getValueByKeys.apply(null,[f].concat(_.sz($Fp))),y=_.sB.getValueByKeys.apply(null,[f].concat(_.sz(aQY))),Z=!!T||!!y&&!!y.results&&y.results.length>0,l=0;t&&t.currentIndex&&t.localCurrentIndex&&(l=t.currentIndex-t.localCurrentIndex);t&&t.playlistId&&(Q=t.playlistId);f={rawResponse:f,autoplayRenderer:n,hasRelatedVideoData:Z,playingVideo:H,playingVideoId:J,playlistPanelRenderer:t,playlistId:Q,playlistIndex:t&&t.currentIndex,relatedVideoArgs:T,
endScreenRenderer:y,playlistIndexOffset:l};a:{n=D.apA;t=D.bo5;n.response=f;if(tGo(f))n.downloadPlaylistProxy&&n.downloadPlaylistProxy.getPlaylistId()===ndl(f)||(n.downloadPlaylistProxy=new BDV(ndl(f),n.setPlaylistData.bind(n),n.isPlayingOfflineVideo.bind(n))),n.responsePlaylistData=n.downloadPlaylistProxy.getPlaylistData(),n.listId=ndl(f),n.index=0;else if(f.playlistPanelRenderer&&f.playlistId&&f.autoplayRenderer)f.playlistId.startsWith("TLPQ")?n.queueProxy?n.listId===f.playlistId?(n.index=f.playlistIndex,
n.responsePlaylistData=f.playlistPanelRenderer,n.queueProxy.JSC$10891_setCurrentIndex(n.index)):f.playingVideoId&&n.index!==void 0&&t.clientParams.autoSaveToQueue&&(n.index+=1,n.queueProxy.JSC$10891_setCurrentIndex(n.index),n.queueProxy.addVideos([f.playingVideoId],{},n.index)):(n.queueProxy=new _.u$(n.JSC$10945_playlistNetworkManager,f.playlistId,n.setPlaylistData.bind(n),n.clearQueue.bind(n),_.nm9(f.playlistPanelRenderer),n.storage),n.responsePlaylistData=f.playlistPanelRenderer,n.listId=f.playlistId,
n.index=f.playlistIndex):(n.index=f.playlistIndex,n.listId!==f.playlistId&&n.clearQueue(),n.responsePlaylistData=f.playlistPanelRenderer,n.listId=f.playlistId,n.playlistProxy=new CM6(n.JSC$10945_playlistNetworkManager,f.playlistId,n.setPlaylistData.bind(n),_.nm9(f.playlistPanelRenderer)));else if(!n.queueProxy)n.responsePlaylistData=void 0;else if(f.playingVideoId&&t.clientParams.autoSaveToQueue){if(n.index===void 0){_.NG(Error("Lf"));n.clearQueue();break a}n.queueProxy.videoIds.includes(f.playingVideoId)||
(n.index+=1,n.queueProxy.JSC$10891_setCurrentIndex(n.index),n.queueProxy.addVideos([f.playingVideoId],{},n.index))}_.A6(n,_.aj(n,n.response.autoplayRenderer))}})};var e7U=function(V,D){D=D===void 0?_.Eg():D;QX.call(this);this.u4.push(new Sz(this.kd,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},D));this.u4.push(new i$(this.kd,V,!1,!1));_.c("web_response_commands_chunk_processor")&&this.u4.push(new TI)};
_.v(e7U,QX);e7U.prototype.processChunk=function(V){V&&V.data.player===void 0&&this.kd.resolve();QX.prototype.processChunk.call(this,V)};var W5=function(V,D){V=V===void 0?{layer:0}:V;this.hasRun=!1;this.createScreenConfig=V;this.xYw=D};
_.v(W5,xB);W5.prototype.validate=function(V){return!(this.hasRun||!V.endpoint)};
W5.prototype.handle=function(V){var D=_.lS(),f,n,t=(n=_.g((f=V.endpoint)==null?void 0:f.commandMetadata,_.he))==null?void 0:n.rootVe;this.xYw&&t?_.P5(D,t,this.xYw,this.createScreenConfig):HEV(D,V.endpoint,this.createScreenConfig);this.hasRun=!0};var p_=function(V,D){this.hasRun=!1;this.dyL=V;this.previousVideoId=D};
_.v(p_,xB);p_.prototype.validate=function(V){return _.c("kevlar_continue_playback_without_player_response")&&(V=_.g(V.endpoint,_.pl),(V==null?0:V.videoId)&&this.previousVideoId&&(V==null?void 0:V.videoId)===this.previousVideoId&&(V==null?0:V.continuePlayback))?!1:this.dyL.pxd===0};
p_.prototype.handle=function(V){_.Yb.getInstance().triggerAction("yt-stop-old-player",V.data,!0)};var c8Y=function(V){V=V===void 0?{layer:0}:V;QX.call(this);this.u4.push(new p_(this));this.u4.push(new W5(V));this.u4.push(new wW(V))};
_.v(c8Y,QX);var F1u=function(){this.hasRun=this.hasRun=!1};
_.v(F1u,xB);F1u.prototype.validate=function(V){return!this.hasRun&&!(!V.data.csn||!V.data.rootVe)};
F1u.prototype.handle=function(V){this.hasRun=!0;_.zR(V.data.csn,V.data.rootVe,3)};var gdo=function(){xB.apply(this,arguments)};
_.v(gdo,xB);gdo.prototype.validate=function(V){return!!V.data.preconnect};
gdo.prototype.handle=function(V){_.zm("bc");V=_.r(V.data.preconnect);for(var D=V.next();!D.done;D=V.next())D=D.value,(new Image).src=D};var vdU=function(V,D,f){f=f===void 0?{layer:0}:f;QX.call(this);this.u4.push(new i$(this.kd,V));this.u4.push(new W5(f));this.u4.push(new wW(f))};
_.v(vdU,QX);var kC6=function(V,D,f,n,t){f=f===void 0?{layer:0}:f;n=n===void 0?_.Eg():n;QX.call(this);var J=!!D&&!!D.clientParams&&!!D.clientParams.miniplayer;J&&this.u4.push(new F1u);this.u4.push(new Sz(this.kd,D,n));this.u4.push(new gdo);var H,Q;this.u4.push(new i$(this.kd,V,J,!((H=D.clientParams)==null||!H.fromHistory),(Q=D.clientParams)==null?void 0:Q.previousVideoId,n,D.tempData));var T;this.u4.push(new p_(this,(T=D.clientParams)==null?void 0:T.previousVideoId));var y;(y=D.clientParams)!=null&&y.fromHistory||
(f.layer||(f=Object.assign({},f,{layer:J?3:0})),this.u4.push(new W5(f,t)),this.u4.push(new wW(f)));_.c("web_response_commands_chunk_processor")&&this.u4.push(new TI)};
_.v(kC6,QX);var L_,dhH;L_={};
_.s1P=(L_["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},L_["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},L_["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},L_["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L_["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L_["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L_["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},L_);_.Ij=new _.qY("yt-edu");_.B5Y=function(){this.JSC$11046_eduDisplayedThisLoad_={}};
dhH=function(V){var D=_.B5Y.getInstance();var f=_.tU("kevlar_tooltip_impression_cap");D=f&&parseInt(_.Ij.get(V+"-impression")||0,10)>=f||_.Ij.get(V+"-dismissed")?!1:(f=_.s1P[V])&&!D.JSC$11046_eduDisplayedThisLoad_[f.setKey||V]&&(f.titleText&&_.Zl(f.titleText)||f.bodyText&&_.Zl(f.bodyText))?!0:!1;if(!D)return null;D=_.s1P[V];if(!D)return null;f=D.bodyText?_.Zl(D.bodyText):void 0;var n=D.titleText?_.Zl(D.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:D.position,popup:{bubbleHintRenderer:{text:n?
_.pA(n):void 0,detailsText:f?_.pA(f):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pA(_.Zl("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:V}}]}}}}}}}},{eduImpressionAction:{key:V}}]};
_.U5(_.B5Y);var tH9=!1;for(var uRP="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),N5l=[],Og=6;Og>=1;Og--)N5l.push({columnCount:Og,query:Og==1?0:Og*2*107-4+32,className:"grid-"+Og+"-columns",width:Og*2*107+"px"});_.z7E=function(V){this.actionRouter_=V=V===void 0?_.Yb.getInstance():V;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.mhu(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.mhu=function(V){var D=V.miniGuideVisible_?72:0,f=V.documentWidth_-(V.guidePersistentAndVisible_?240:D);return N5l.find(function(n){return f>n.query})};
_.U5(_.z7E);var R7E=function(){var V=this;this.JSC$11058_keyboardInUse=!1;document.addEventListener("keydown",function(){V.onKeydown()});
document.addEventListener("mousedown",function(){V.JSC$11058_keyboardInUse=!1})},C1H;
R7E.prototype.isKeyBoardInUse=function(){return this.JSC$11058_keyboardInUse};
R7E.prototype.onKeydown=function(){this.JSC$11058_keyboardInUse=!0};var q9F,h6;_.xc=new _.qY("yt-mentions");_.MP=function(){};
q9F=function(V,D){return h6(D,"drag-to-reorder-edu-displayed")};
h6=function(V,D,f,n,t,J){f=f===void 0?"OPEN_POPUP_POSITION_TOP":f;if(D){if(_.xc.get(D))return;_.xc.set(D,!0,n)}if(t&&J!==void 0){D=Number(_.xc.get(t)||0);if(D>=J)return;_.xc.set(t,D+1)}return[{openPopupAction:{popupType:"HINT",position:f,popup:{bubbleHintRenderer:{detailsText:V,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.U5(_.MP);var Xdp,Edr,A8E;Xdp=function(V,D,f,n){this.JSC$11068_taskManager_=V;this.onFulfilled_=typeof D==="function"?D:null;this.onRejected_=typeof f==="function"?f:null;this.JSC$11068_context_=n};
Edr=function(V,D){V.onFulfilled_&&_.lf(V.JSC$11068_taskManager_,function(){V.onFulfilled_.call(V.JSC$11068_context_,D)})};
A8E=function(V,D){V.onRejected_&&_.lf(V.JSC$11068_taskManager_,function(){V.onRejected_.call(V.JSC$11068_context_,D)})};
_.Ug=function(V){this.JSC$11071_taskManager_=V;this.callbacks_=[]};
_.Ug.prototype.then=function(V,D,f){this.callbacks_.push(new Xdp(this.JSC$11071_taskManager_,V,D,f));return this};
_.Ug.prototype.onSuccess=function(V){this.callbacks_.forEach(function(D){Edr(D,V)})};
_.Ug.prototype.onFailure=function(V){this.callbacks_.forEach(function(D){A8E(D,V)})};
_.Ug.prototype.cancel=function(){this.callbacks_.length=0};
Pvl(_.Ug);_.HtR=null;_.ue=new _.IH("ACTIVITY_TOKEN");var VP=function(V,D){this.serviceId=new nKL(V,D)};
VP.prototype.toString=function(){return this.serviceId.toString()};var awY=function(){this.internalMap={}};
_.P=awY.prototype;_.P.contains=function(V){return Object.prototype.hasOwnProperty.call(this.internalMap,V)};
_.P.get=function(V){if(this.contains(V))return this.internalMap[V]};
_.P.set=function(V,D){this.internalMap[V]=D};
_.P.getKeys=function(){return Object.keys(this.internalMap)};
_.P.remove=function(V){delete this.internalMap[V]};var D$=function(){this.mappings=new awY;this.errorCallbacks=new Set};
D$.prototype.getModuleId=function(V){return V.serviceId.getModuleId()};
D$.prototype.get=function(V){var D=this.mappings.get(V.toString());return Y9Y(this,D,V)};
D$.prototype.getMultipleAsync=function(){var V=_.gQ.apply(0,arguments),D=this,f=V.map(function(T){return D.getModuleId(T)}),n=V.map(function(T){return D.mappings.get(T.toString())}).filter(function(T){return T});
if(n.length===V.length)return _.Qv(n.map(function(T,y){return Y9Y(D,T,V[y])}));
var t=Bq().loadMultiple(f);n=_.eT(f.map(function(T){return t[T]}));
var J=document.hidden,H=-1,Q=_.tU("get_async_timeout_ms",-1);Q>-1&&(H=setTimeout(function(){_.zP(new _.cI("Module timeout.",f,J,document.hidden))},Q));
return _.cT(n.then(function(){return V.map(function(T){return Y9Y(D,D.mappings.get(T.toString()),T)})}).thenCatch(function(T){for(var y=_.r(D.errorCallbacks),Z=y.next();!Z.done;Z=y.next())Z=Z.value,Z(T);
throw T;}),function(){clearTimeout(H)})};
D$.prototype.registerService=function(V,D){this.mappings.set(V.toString(),{type:"mapping",value:D});return V};
var Y9Y=function(V,D,f){switch(D.type){case "mapping":return D.value;case "factory":return D=D.value(),V.mappings.set(f.toString(),{type:"mapping",value:D}),D;default:return _.JZ(D)}};
D$.prototype.onLoadError=function(V){var D=this;this.errorCallbacks.add(V);return function(){D.errorCallbacks.delete(V)}};
_.f1=new D$;var K9Z=/^[a-zA-Z0-9_\-]{11}$/;var yvX=_.yE(function(){var V,D;return(D=(V=window).matchMedia)==null?void 0:D.call(V,"(prefers-reduced-motion: reduce)").matches});var $hF=_.yE(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 V=_.Yw("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");V||(V=_.yh("VIDEO"),_.M4("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
V));return!!(V&&V.canPlayType&&V.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var cv9=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var n1;n1=function(){this.tokenJars={};if(this.cookiesEnabled=_.lE()){var V=_.ZY.get("CONSISTENCY",void 0);V&&iaP(this,{encryptedTokenJarContents:V})}};
_.gLn=function(){n1.instance||(n1.instance=new n1);return n1.instance};
n1.prototype.handleResponse=function(V,D){if(!D)throw Error("Vf");var f,n;D=((f=D.innerTubeRequest.context)==null?void 0:(n=f.request)==null?void 0:n.consistencyTokenJars)||[];var t;(V=(t=V.responseContext)==null?void 0:t.consistencyTokenJar)&&this.replace(D,V)};
n1.prototype.replace=function(V,D){V=_.r(V);for(var f=V.next();!f.done;f=V.next())delete this.tokenJars[f.value.encryptedTokenJarContents];iaP(this,D)};
var iaP=function(V,D){if(D.encryptedTokenJarContents&&(V.tokenJars[D.encryptedTokenJarContents]=D,typeof D.expirationSeconds==="string")){var f=Number(D.expirationSeconds);setTimeout(function(){delete V.tokenJars[D.encryptedTokenJarContents]},f*1E3);
V.cookiesEnabled&&_.j1("CONSISTENCY",D.encryptedTokenJarContents,f,void 0,!0)}};var S9U,t5;S9U=window.location.hostname.split(".").slice(-2).join(".");_.mR=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var V=_.XB("LOCATION_PLAYABILITY_TOKEN");_.XB("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=W1r(this))&&(V=this.localStorage.get("yt-location-playability-token"));V&&(this.locationPlayabilityToken=V,this.mostRecentPosition=void 0)};
_.mR.getInstance=function(){t5=_.Yw("yt.clientLocationService.instance");t5||(t5=new _.mR,_.M4("yt.clientLocationService.instance",t5));return t5};
_.mR.prototype.setLocationOnInnerTubeContext=function(V){V.client||(V.client={});if(this.mostRecentPosition)V.client.locationInfo||(V.client.locationInfo={}),V.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),V.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),V.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),V.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)V.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.mR.prototype.handleResponse=function(V){var D;V=(D=V.responseContext)==null?void 0:D.locationPlayabilityToken;V!==void 0&&(this.locationPlayabilityToken=V,this.mostRecentPosition=void 0,_.XB("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=W1r(this))&&this.localStorage.set("yt-location-playability-token",V,15552E3):_.j1("YT_CL",JSON.stringify({loctok:V}),15552E3,S9U,!0))};
var W1r=function(V){return V.localStorage===void 0?new _.qY("yt-client-location"):V.localStorage};
_.mR.prototype.clearLocationPlayabilityToken=function(V){V==="TVHTML5"?(this.localStorage=W1r(this))&&this.localStorage.remove("yt-location-playability-token"):_.w8Y("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.mR.prototype.getCurrentPositionFromGeolocation=function(){var V=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var D=!1,f=1E4;_.XB("INNERTUBE_CLIENT_NAME")==="MWEB"&&(D=!0,f=15E3);return new Promise(function(n,t){navigator.geolocation.getCurrentPosition(function(J){V.mostRecentPosition=J;n(J)},function(J){t(J)},{enableHighAccuracy:D,
maximumAge:0,timeout:f})})};
_.mR.prototype.createUnpluggedLocationInfo=function(V){var D={};V=V.coords;if(V==null?0:V.latitude)D.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)D.longitudeE7=Math.floor(V.longitude*1E7);if(V==null?0:V.accuracy)D.locationRadiusMeters=Math.round(V.accuracy);return D};
_.mR.prototype.createLocationInfo=function(V){var D={};V=V.coords;if(V==null?0:V.latitude)D.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)D.longitudeE7=Math.floor(V.longitude*1E7);return D};var pdu=function(){};
_.P=pdu.prototype;
_.P.JSC$11138_getRequest=function(V,D,f){D=D===void 0?{}:D;f=f===void 0?Hhu:f;var n=D;if(this.isNavigationCommand()){var t,J=(t=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:t.url;n=_.vLX(V.clickTrackingParams,!0,!1,J,this.JSC$11138_getClientScreen(n))}else n=_.vLX(V.clickTrackingParams,!1,this.includeCsn);n={context:n};if(t=this.getExtension(V))return this.JSC$11138_buildRequest(n,t,D),t=this.getApiUrl(V),J=Object.assign({},{command:V},this.getRequestConfig(V,D)),n={input:t,requestShell:i8(t),
innerTubeRequest:n,config:J},n.config.authStrategy?n.config.authStrategy.identity=f:n.config.authStrategy={identity:f},(V=this.JSC$11138_getRequestKey(V,D))&&!n.config.requestKey&&(n.config.requestKey=V),n;V=new _.cI("Error: Failed to create Request from Command.",V);_.NG(V)};
_.P.getApiUrl=function(V){var D=_.xy(this.getApiPaths(V)),f;(V=(f=_.g(V.commandMetadata,_.he))==null?void 0:f.apiUrl)&&(D=V);return VNn(Um3(D))};
_.P.isNavigationCommand=function(){return!1};
_.P.JSC$11138_getClientScreen=function(){};
_.P.JSC$11138_getRequestKey=function(){};
_.P.getRequestConfig=function(){};
_.IG.Object.defineProperties(pdu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var PX=function(){};
_.v(PX,pdu);PX.prototype.JSC$11145_getStoreKey=function(){};
PX.prototype.JSC$11138_getRequestKey=function(V,D){D=D===void 0?{}:D;return this.JSC$11145_getStoreKey(V,D)};var Iw6;_.oC=function(V,D,f){var n=f&&f>0?f:0;f=n?Date.now()+n*1E3:0;if((n=n?(0,_.L1U)():Iw6())&&window.JSON){typeof D!=="string"&&(D=JSON.stringify(D,void 0));try{n.set(V,D,f)}catch(t){n.remove(V)}}};
_.J5=function(V){var D=Iw6(),f=(0,_.L1U)();if(!D&&!f||!window.JSON)return null;try{var n=D.get(V)}catch(t){}if(typeof n!=="string")try{n=f.get(V)}catch(t){}if(typeof n!=="string")return null;try{n=JSON.parse(n,void 0)}catch(t){}return n};
_.rC=function(V){try{var D=Iw6(),f=(0,_.L1U)();D&&D.remove(V);f&&f.remove(V)}catch(n){}};
_.L1U=_.yE(function(){try{var V=new jbF;var D=V.isAvailable()?V:null}catch(f){return null}return D?new _.te(D):null});
Iw6=_.yE(function(){var V=new lkF;return V.isAvailable()?new _.te(V):null});var Jx=new _.IH("ENTITY_STATE_TOKEN"),HX=new _.IH("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Oao=XMLHttpRequest.prototype.fetch,xhU=Oao&&Oao.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Ob?!0:!1;var wC=function(V){this.JSC$11150_storeWithEntities=V};
_.v(wC,PX);_.P=wC.prototype;_.P.getApiPaths=function(){return TMl};
_.P.getExtension=function(V){return _.g(V,_.pl)||_.g(V,_.gU)||_.g(V,Qa6)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$11145_getStoreKey=function(V){if((_.c("kevlar_cache_on_ttl_player")||_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("mweb_use_new_history_manager")||_.c("web_shorts_prefetch_service_enabled"))&&(V=this.getExtension(V))&&V.videoId){var D={videoId:V.videoId};V.playlistId&&(D.playlistId=V.playlistId);V.playerParams&&(D.params=V.playerParams);return _.W8("player",D)}};
_.P.JSC$11138_getClientScreen=function(V){var D;return((D=V.contentPlaybackContext)==null?void 0:D.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$11138_buildRequest=function(V,D,f){if(_.c("enable_interstitial_entity_check")){var n=this.JSC$11150_storeWithEntities;if(D.videoId)for(var t=_.r(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),J=t.next();!J.done;J=t.next()){J=J.value;var H;var Q=void 0,T=void 0,y=D.videoId,Z=J;(H=n)?(y=_.HR(y+Z,"interstitialInteractionStateEntity"),H=(Q=(T=_.wg(H.getState().entities,"interstitialInteractionStateEntity",y))==null?void 0:T.primaryButtonClicked)!=null?Q:!1):H=!1;if(H)switch(J){case "CONTENT_CHECK_REQUIRED":D.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":D.racyCheckOk=!0}}}D.videoId&&(V.videoId=D.videoId);D.playlistId&&(V.playlistId=D.playlistId);D.index!==void 0&&(V.playlistIndex=D.index+1);D.playerParams&&(V.params=D.playerParams);"startTimeSeconds"in D&&D.startTimeSeconds&&(_.c("enable_player_request_builder_start_time_floor")?V.startTimeSecs=Math.floor(D.startTimeSeconds):V.startTimeSecs=D.startTimeSeconds);f.contentPlaybackContext&&(V.playbackContext={contentPlaybackContext:f.contentPlaybackContext});f.prefetchPlaybackContext&&
(V.playbackContext=Object.assign({},V.playbackContext,{prefetchPlaybackContext:f.prefetchPlaybackContext}),V.context.request||(V.context.request={}),V.context.request.isPrefetch=!0);V.playbackContext||(V.playbackContext={});n=$hF();V.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!n,supportXhr:xhU};f.overrideMutedAtStart&&(V.overrideMutedAtStart=f.overrideMutedAtStart);V.racyCheckOk=!!D.racyCheckOk;V.contentCheckOk=!!D.contentCheckOk;!_.c("captions_prefs_killswitch")&&(f=(f=_.J5("yt-player-caption-language-preferences"))?
f:[],f==null?0:f.length)&&(V.captionParams={viewerSelectedCaptionLangs:f})};
_.P.getRequestConfig=function(V){V=this.JSC$11145_getStoreKey(V);var D;V&&(D={storeStrategy:{storeKey:V}});_.c("web_log_player_watch_next_ticks")&&(D=D||{},D.requestTick="ps_s",D.responseTick="ps_r");return D};
wC[L$]=[Jx];var QP=function(){};
_.v(QP,PX);_.P=QP.prototype;_.P.getApiPaths=function(){return it6};
_.P.getExtension=function(V){return _.g(V,_.pl)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$11145_getStoreKey=function(V){if((V=this.getExtension(V))&&V.videoId){var D={videoId:V.videoId};V.playlistId&&(D.playlistId=V.playlistId);V.index&&(D.index=V.index);V.params&&(D.params=V.params);return _.W8("next",D)}};
_.P.JSC$11138_getClientScreen=function(V){var D;return((D=V.contentPlaybackContext)==null?void 0:D.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$11138_buildRequest=function(V,D,f){D.videoId&&(V.videoId=D.videoId);D.playlistId&&(V.playlistId=D.playlistId);D.params&&(V.params=D.params);D.index!==void 0&&(V.playlistIndex=D.index);V.racyCheckOk=!(!f.racyCheckOk&&!D.racyCheckOk);V.contentCheckOk=!!D.contentCheckOk;f.contentPlaybackContext&&(V.autonavState=f.contentPlaybackContext.autonavState,V.playbackContext={vis:f.contentPlaybackContext.vis,lactMilliseconds:f.contentPlaybackContext.lactMilliseconds});f.prefetchPlaybackContext&&(V.context.request||
(V.context.request={}),V.context.request.isPrefetch=!0);_.c("captions_hats_killswitch")||(D=_.Gm().getFlag(65),D=D!=null?!D:!1,f=!!_.J5("yt-player-sticky-caption"),V.captionsRequested=D&&f)};
_.P.getRequestConfig=function(V){V=this.JSC$11145_getStoreKey(V);var D;V&&(D={storeStrategy:{storeKey:V}});_.c("web_log_player_watch_next_ticks")&&(D=D||{},D.requestTick="wn_s",D.responseTick="wn_r");return D};
var Tb=function(){};
_.v(Tb,PX);Tb.prototype.getApiPaths=function(){return it6};
Tb.prototype.getExtension=function(V){return _.g(V,_.Xh)};
Tb.prototype.JSC$11138_buildRequest=function(V,D){D.token&&(V.continuation=D.token)};var bV=function(V,D){this.playerRequestBuilder=V;this.watchNextRequestBuilder=D};
_.v(bV,PX);bV.prototype.getApiPaths=function(){return DCF};
bV.prototype.getExtension=function(V){return _.g(V,_.pl)};
bV.prototype.isNavigationCommand=function(){return!0};
bV.prototype.JSC$11138_buildRequest=function(V,D,f){V.playerRequest={};this.playerRequestBuilder.JSC$11138_buildRequest(V.playerRequest,D,f);_.c("web_streaming_watch")&&(V.watchNextRequest={},this.watchNextRequestBuilder.JSC$11138_buildRequest(V.watchNextRequest,D,f))};
bV[L$]=[wC,QP];var MGY;_.Z$=new _.IH("SHORTS_CONTROLLER_TOKEN");MGY=new _.IH("SHORTS_STATE_STORE_TOKEN");var j2=function(V,D){var f=_.gQ.apply(2,arguments);V=V===void 0?0:V;_.cI.call(this,D,f);this.errorType=V;Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(j2,_.cI);var h7p,UhV,D66,nMd,Ax,F_R,PqF,tZl,QDY,rtE,JtV;h7p=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(V){return V+"="}).join("|"));
UhV=RegExp(".*\\?.*playnext=1.*");_.lV=function(V,D,f,n){this.watchEndpointMap=V;this.reelWatchEndpointMap=D;this.innerTubeTransportService=f;this.fetchPbj=n};
D66=function(V,D,f){var n=_.DY().resolve(_.Vx(VZr));_.lV.instance=new _.lV(V,D,f,n)};
_.fSF=function(V,D){var f=_.tU("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;var n;if((n=_.g(D.commandMetadata,_.he))==null||!n.rootVe)return f&&_.zP(Error("Yf")),!1;var t;n=(t=_.g(D.commandMetadata,_.he))==null?void 0:t.url;if(!n)return f&&_.zP(Error("Zf")),!1;if(UhV.test(n))return!0;if(h7p.test(n))return f&&_.zP(Error("$f`"+n)),!1;if(_.g(D,_.pl)){if(!(V.watchEndpointMap.watchNext&&V.watchEndpointMap.player||_.c("kevlar_fetch_initial_data_op_watch_client")))return f&&_.zP(Error("Rf")),!1;
V=_.tU("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;_.g(D,_.pl)?TMY(D)?D=!0:(V&&_.zP(Error("Sf")),D=!1):(V&&_.zP(Error("Rf")),D=!1);return D}if(_.g(D,_.gU))return btX(D);if(_.g(D,_.mJ))return!0;V=_.$l(V.innerTubeTransportService,D);!V&&f&&_.NG(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(D)});return V};
nMd=function(V,D,f,n,t,J){D={url:D};if(f==null?0:f.itct)D.parentTrackingParams=f.itct;var H=_.xy(cvF);return _.m5(V.innerTubeTransportService,D,H).then(function(Q){(Q=Q.endpoint)||(Q=_.K_);(f==null?0:f.itct)&&Q&&!Q.trackingParams&&(Q.trackingParams=f.itct);var T=co(Q);return Ax(V,Q,f,n,T,t,J)})};
Ax=function(V,D,f,n,t,J,H,Q){Q=Q===void 0?{}:Q;if(V.fetchPbj&&!_.fSF(V,D)&&!_.c("force_one_platform")){Q=V.fetchPbj(D);var T=_.Qv(Q.then(function(W){if(!W)throw Error("bg");H(T)||J(D,W);return W}));
return T}var y,Z,l={rootVe:(y=_.g(D.commandMetadata,_.he))==null?void 0:y.rootVe,url:(Z=_.g(D.commandMetadata,_.he))==null?void 0:Z.url,endpoint:D,page:t};if(_.g(D,_.pl)){var G,F={contentPlaybackContext:_.ss(f,(G=_.g(D.commandMetadata,_.he))==null?void 0:G.url,n)},k=_.Sl();_.c("web_streaming_watch")&&window.TextDecoderStream?(Q=nDV(V.innerTubeTransportService,D,F,function(W){!l.response&&W.content&&(l.response=W.content);!l.playerResponse&&W.player&&(l.playerResponse=W.player);J(D,l)}),y=D7U(D),y.length&&
(l.preconnect=y,J(D,l)),tZl(Q,k,l).catch(function(W){W instanceof j2&&W.errorType===2&&PqF(V,D,F,l,J,H,k)})):PqF(V,D,F,l,J,H,k);
return k.promise}if(_.g(D,_.gU)){var d;if(((d=_.g(D,_.gU))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var z=_.Sl();_.oDU(_.DY().resolve(_.Z$),D).then(function(W){JtV(V,f,n,t,J,z,W)});
return z.promise}Q=_.Qv();var C;y={contentPlaybackContext:_.ss(f,(C=_.g(D.commandMetadata,_.he))==null?void 0:C.url,n)};(C=V.reelWatchEndpointMap.player)&&(C=C().JSC$11138_getRequest(D,y))&&(Q=_.m5(V.innerTubeTransportService,C.innerTubeRequest,C.input,D.clickTrackingParams,C.config));C=_.Qv();(Z=V.reelWatchEndpointMap.reelItemWatch)&&(Z=Z().JSC$11138_getRequest(D))&&(C=_.m5(V.innerTubeTransportService,Z.innerTubeRequest,Z.input,D.clickTrackingParams,Z.config));Z=_.Qv();(G=V.reelWatchEndpointMap.reelWatchSequence)&&
_.g(D,_.gU).sequenceParams&&(y=G().JSC$11138_getRequest(D,y))&&(Z=_.m5(V.innerTubeTransportService,y.innerTubeRequest,y.input,D.clickTrackingParams,y.config));y=_.Qv(l);G=_.Sl();rtE(D,y,Q,C,Z,J,H,G);return G.promise}var A;if(_.g(D,rv9)&&((A=_.g(D.commandMetadata,_.he))==null?0:A.url))return Q=F9R(_.Y4(Nr().location.href),_.Y4(_.g(D.commandMetadata,_.he).url)).toString(),nMd(V,Q,f,n,J,function(){return!1});
if(_.g(D,_.mJ))return J(D,l),_.Qv(l);if(_.$l(V.innerTubeTransportService,D)){Q=Object.assign({},{tempData:f,disableCache:f.disableCache},Q);var O=_.ie(V.innerTubeTransportService,D,Q).then(function(W){l.response=W;H(O)||J(D,l);return l});
return O}return _.Qv(l)};
_.wGF=function(V,D,f,n){if(_.g(D,_.pl)||_.g(D,_.gU)&&(_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("kevlar_enable_shorts_prefetch_in_sequence"))||_.g(D,Qa6)&&_.c("web_enable_prefetching_videos_on_home")){var t,J={contentPlaybackContext:_.ss(f,(t=_.g(D.commandMetadata,_.he))==null?void 0:t.url,n),prefetchPlaybackContext:jKZ(f)},H,Q,T;if(((H=_.g(D,_.pl))==null?void 0:(Q=H.watchEndpointSupportedPrefetchConfig)==null?void 0:(T=Q.prefetchHintConfig)==null?void 0:T.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(f=
V.watchEndpointMap.watchNext)if(J=f().JSC$11138_getRequest(D,J))return Promise.resolve(_.m5(V.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(l){return l}))}else if(f=V.watchEndpointMap.player)if(J=f().JSC$11138_getRequest(D,J))return Promise.resolve(_.m5(V.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(l){return l}))}else if(_.$l(V.innerTubeTransportService,D)){var y={tempData:f},Z=HvF(V.innerTubeTransportService,D);
return Z?new Promise(function(l,G){var F,k;return _.w(function(d){if(d.nextAddress==1)return _.b(d,Z,2);if(d.nextAddress!=4)return F=d.yieldResult,F.JSC$11145_getStoreKey(D,y)?_.b(d,_.ie(V.innerTubeTransportService,D,y),4):(G(new _.cI("Prefetching request builder with no store key.",D)),d.jumpTo(0));k=d.yieldResult;l(k);_.yz(d)})}):Promise.reject(new _.cI("Prefetching unregistered request builder.",D))}return Promise.reject(new _.cI("No request builder available to prefetch endpoint.",D))};
F_R=function(V,D){var f,n,t;if(_.g(D,_.pl)){var J=V.watchEndpointMap.watchNext;J&&(f=J());(V=V.watchEndpointMap.player)&&(n=V())}else if(_.g(D,_.gU))(J=V.reelWatchEndpointMap.reelItemWatch)&&(f=J()),(J=V.reelWatchEndpointMap.player)&&(n=J()),(V=V.reelWatchEndpointMap.reelWatchSequence)&&(t=V());else{a:{V=KrL(D,V.innerTubeTransportService.endpointMap);if(V!==void 0)if(typeof V.then==="function")_.NG(new _.cI("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",D));else break a;
V=void 0}V&&(f=V)}var H,Q,T;return{content:(H=f)==null?void 0:H.JSC$11145_getStoreKey(D),player:(Q=n)==null?void 0:Q.JSC$11145_getStoreKey(D),reelSequence:(T=t)==null?void 0:T.JSC$11145_getStoreKey(D)}};
PqF=function(V,D,f,n,t,J,H){var Q=_.Qv(),T=V.watchEndpointMap.player;_.c("web_streaming_player")&&(T=k7(bV));T&&(T=T().JSC$11138_getRequest(D,f))&&(Q=_.m5(V.innerTubeTransportService,T.innerTubeRequest,T.input,D.clickTrackingParams,T.config));T=_.Qv();var y=V.watchEndpointMap.watchNext;y&&(f=y().JSC$11138_getRequest(D,f))&&(T=_.m5(V.innerTubeTransportService,f.innerTubeRequest,f.input,D.clickTrackingParams,f.config));V=_.Qv(n);QDY(D,V,Q,T,t,J,H)};
tZl=function(V,D,f){return _.w(function(n){if(n.nextAddress==1)return _.b(n,V,2);D.resolve(f);_.yz(n)})};
QDY=function(V,D,f,n,t,J,H){var Q,T,y,Z,l;_.w(function(G){switch(G.nextAddress){case 1:return _.b(G,D,2);case 2:Q=G.yieldResult;if(J(H.promise))return H.resolve(Q),G.return();t(V,Q);T=D7U(V);if(!T.length){G.jumpTo(3);break}return _.b(G,D,4);case 4:Q.preconnect=T,t(V,Q);case 3:return _.wx(G,5),_.b(G,f,7);case 7:y=G.yieldResult;_.YJ(G,6);break;case 5:return Z=_.KW(G),H.reject(Z),G.return();case 6:if(y===void 0)return Q.reload=!0,t(V,Q),H.resolve(Q),G.return();if(J(H.promise))return H.resolve(Q),G.return();
Q.playerResponse=y;t(V,Q);_.wx(G,8);return _.b(G,n,10);case 10:l=G.yieldResult;_.YJ(G,9);break;case 8:_.KW(G);case 9:if(l===void 0)return Q.response={responseContext:{}},H.resolve(Q),G.return();if(J(H.promise))return H.resolve(Q),G.return();Q.response=l;t(V,Q);H.resolve(Q);_.yz(G)}})};
rtE=function(V,D,f,n,t,J,H,Q){var T,y,Z,l,G,F;_.w(function(k){switch(k.nextAddress){case 1:return _.b(k,D,2);case 2:T=k.yieldResult;if(H(Q.promise))return Q.resolve(T),k.return();J(V,T);y=D7U(V);if(!y.length){k.jumpTo(3);break}return _.b(k,D,4);case 4:T.preconnect=y,J(V,T);case 3:return _.wx(k,5),_.b(k,f,7);case 7:Z=k.yieldResult;_.YJ(k,6);break;case 5:return l=_.KW(k),Q.reject(l),k.return();case 6:if(Z===void 0)return T.reload=!0,J(V,T),Q.resolve(T),k.return();if(H(Q.promise))return Q.resolve(T),
k.return();T.playerResponse=Z;J(V,T);_.wx(k,8);return _.b(k,n,10);case 10:G=k.yieldResult;_.YJ(k,9);break;case 8:_.KW(k);case 9:if(G===void 0)return T.response={responseContext:{}},Q.resolve(T),k.return();if(H(Q.promise))return Q.resolve(T),k.return();T.response=G;J(V,T);_.wx(k,11);return _.b(k,t,13);case 13:F=k.yieldResult;_.YJ(k,12);break;case 11:_.KW(k);case 12:if(H(Q.promise))return Q.resolve(T),k.return();T.reelWatchSequenceResponse=F;J(V,T);Q.resolve(T);_.yz(k)}})};
JtV=function(V,D,f,n,t,J,H){var Q,T,y,Z,l,G;_.w(function(F){if((Q=H)==null||!Q.replacementEndpoint)return J.reject(),F.return();T=H.replacementEndpoint;(y=_.g(T,_.gU))?(H.sequenceContinuation&&(y.sequenceParams=H.sequenceContinuation),Z=_.DY().resolve(_.Z$),l=y.sequenceParams,TbL(Z,T)&&delete y.sequenceParams,G=Ax(V,T,D,f,n,t,function(){return!1}),G.then(function(k){return _.w(function(d){if(d.nextAddress==1)return bvV(Z,{reelWatchEndpoint:{sequenceParams:l}},k),_.b(d,0,2);
J.resolve(k);_.yz(d)})})):J.reject();
_.yz(F)})};_.KyP=function(V){if(V.validatedFragments_.length==0)return null;if(!V.mergedPrefetchedData_){for(var D=[],f=_.r(V.validatedFragments_),n=f.next();!n.done;n=f.next()){n=_.r(V.fragmentConfiguration_[n.value].graftedKeys);for(var t=n.next();!t.done;t=n.next())(t=V.prefetchedData_[t.value].trackingParams)&&D.push(t)}V.mergedPrefetchedData_={};Object.assign(V.mergedPrefetchedData_,V.prefetchedData_,{clientSideGrafts:D})}return V.mergedPrefetchedData_};var ytF;_.Gb=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ytF=function(V,D,f){if(_.wOn(D))return V.prefetchCache_.get(_.QK3(D,f))};_.e2=new _.IH("NAVIGATION_TOKEN");var ZvF=function(V){var D=this;var f=f===void 0?BMn():f;var n=n===void 0?_.DY().resolve(_.e2):n;this.onePickCommand=V;this.JSC$11248_playlistNetworkManager=f;this.navigationManager=n;this.videoPickerBuilder=_.k0Y("yt-addtoplaylist");_.gKo(ZHU(jTY(yUU(this.videoPickerBuilder.setTitle(V.modalTitle).setSize(1E3).addView(G4Y()).addView(lJp())).addView("youtube"),V.selectButtonLabel)),function(t){D.handleAction(t)})};
ZvF.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
ZvF.prototype.handleAction=function(V){var D=this;if(V&&this.onePickCommand.listId&&V.action==="picked"&&V.docs){var f=[];V.docs.forEach(function(n){f.push({addedVideoId:n.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11248_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,f).then(function(){_.c("playlist_add_video_hard_reload_killswitch")?D.navigationManager.reload():jDp(D.navigationManager)})}};var lSr=function(){if(this.constructor===lSr)throw new TypeError("cg");};
_.P=lSr.prototype;_.P.dispose=function(){};
_.P.disconnect=function(){};
_.P.reconnect=function(){};
_.P.observe=function(V,D,f){return{element:V,option:f}};
_.P.unobserveByKey=function(){};var dCY=function(V,D){D=D===void 0?0:D;lSr.call(this);this.viewroot=V;this.defaultPrescanHeight=D;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),V?{root:V,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.v(dCY,lSr);_.P=dCY.prototype;_.P.dispose=function(){this.disconnect();this.handlers.clear()};
_.P.disconnect=function(V){this.isConnected=!1;this.pauseObservingUntilReconnect=V===void 0?!1:V;this.observer.disconnect();V=_.r(this.prescanObservers.values());for(var D=V.next();!D.done;D=V.next())D.value.disconnect()};
_.P.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var V=_.r(this.handlers),D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;var n=f.next().value;f=!1;n=_.r(n.keys());for(var t=n.next();!t.done;t=n.next())if((t=t.value)&&t.state==="prescan"){f=!0;break}f&&G1Y(this,D).observe(D);this.observer.observe(D)}}};
_.P.handleObserveEvent=function(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=this.handlers.get(D.target);if(f){var n=D.isIntersecting;f=_.r(f);for(var t=f.next();!t.done;t=f.next()){var J=_.r(t.value);t=J.next().value;J=J.next().value;t&&(t.state==="visible"&&n||t.state==="hidden"&&!n)&&(J(D.target,t.state),t.calledOnce&&this.unobserveByKey({element:D.target,option:t}))}}}};
_.P.handlePrescanEvent=function(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=this.handlers.get(D.target);if(f&&D.isIntersecting){f=_.r(f);for(var n=f.next();!n.done;n=f.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;n&&n.state==="prescan"&&(t(D.target,n.state),n.calledOnce&&this.unobserveByKey({element:D.target,option:n}))}}}};
_.P.observe=function(V,D,f){var n=(n=this.handlers.get(V))&&n.has(f)?{element:V,option:f}:void 0;if(n)return n;n={element:V,option:f};this.handlers.has(V)||this.handlers.set(V,new Map);var t=this.handlers.get(V);t&&!t.has(f)&&t.set(f,D);this.pauseObservingUntilReconnect||(f.state==="prescan"&&G1Y(this,V).observe(V),this.observer.observe(V));return n};
_.P.unobserveByKey=function(V){var D=this.handlers.get(V.element);if(D&&D.has(V.option)){D.delete(V.option);if(V&&V.option.state==="prescan")for(var f=_.r(this.prescanObservers.values()),n=f.next();!n.done;n=f.next())n.value.unobserve(V.element);D.size===0&&(this.handlers.delete(V.element),this.observer.unobserve(V.element))}};
var G1Y=function(V,D){var f=V.defaultPrescanHeight;D.hasAttribute("prescan-height")&&(D=Number(D.getAttribute("prescan-height")),isNaN(D)||(f=D));if(V.prescanObservers.has(f))return V.prescanObservers.get(f);D="-0.1px -0.1px "+f+"px -0.1px";D=new IntersectionObserver(V.handlePrescanEvent.bind(V),V.viewroot?{root:V.viewroot,rootMargin:D}:{rootMargin:D});V.prescanObservers.set(f,D);return D};var eko=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],ctH=function(){var V,D=this;this.JSC$11265_actionRouter=V=V===void 0?_.Yb.getInstance():V;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return D.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return D.visibilityObservedElementHandlerKeys}}},FyF,vDF,BbF;
ctH.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.c("kevlar_use_vimio_behavior")&&_.XB("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=uAx())};
ctH.prototype.dispose=function(){this.visibilityMonitor&&_.ZU(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
ctH.prototype.handleVisibilityRefreshed=function(){for(var V=_.r(this.targetMap.entries()),D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;_.gD6(this,D,f)}};
_.sDr=function(V,D,f){vDF(V,f);var n=_.k1r(V,D);n.element=f;V.targetedElements.set(f,D);_.gD6(V,D,n)};
vDF=function(V,D){var f=V.targetedElements.get(D);if(f){var n=V.targetMap.get(f);n&&(delete n.element,V.targetMap.set(f,n));V.targetedElements.delete(D);V.visibilityObserver&&V.visibilityObservedElementHandlerKeys&&(f=V.visibilityObservedElementHandlerKeys.get(D))&&(V.visibilityObserver.unobserveByKey(f),V.visibilityObservedElementHandlerKeys.delete(D))}};
_.gD6=function(V,D,f){var n=f.action,t=f.element;t&&n&&(eko.includes(D)||_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||V.visibilityMonitor&&V.visibilityMonitor.isNodeVisible(t)?BbF(V,D,f):V.visibilityObserver&&(V.visibilityObservedElementHandlerKeys||(V.visibilityObservedElementHandlerKeys=new WeakMap),n=V.visibilityObserver.observe(t,function(){BbF(V,D,f);V.visibilityObservedElementHandlerKeys.delete(t)},{calledOnce:!0,
state:"visible"}),V.visibilityObservedElementHandlerKeys.set(t,n)))};
BbF=function(V,D,f){var n=f.action;(f=f.element)&&n&&(_.dl(V.JSC$11265_actionRouter,[n],f),V.targetMap.delete(D),V.targetedElements.delete(f),V.triggeredTargets.add(D))};
_.k1r=function(V,D){var f=V.targetMap.get(D);f||(f={},V.targetMap.set(D,f));return f};
_.cX=function(){FyF||(FyF=new ctH);return FyF};var d6P=document.createElement("div");d6P.style.touchAction="pan-down";var NMR=d6P.style.touchAction==="pan-down";var uNU,NbU;uNU=function(){this.hammerFn=K7L();this.JSC$11273_screenManager=_.lS();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Bj(83615);_.J6(this.JSC$11273_screenManager,this.ve);mCU()};
_.F_=function(){NbU||(NbU=new uNU);return NbU};
uNU.prototype.registerTouchEvents=function(V,D,f){var n=_.gQ.apply(3,arguments),t=this.hammerFn(V,{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}]]});f&&t.set({touchAction:f});this.nodeManagerMapping.set(V,t);var J=
zgF(D);n=_.r(n);for(var H=n.next();!H.done;H=n.next()){H=H.value;if(H.includes("swipe")||H.includes("pinch")||H.includes("pan"))H.includes("swipe")?t.get("swipe").set({enable:!0,direction:J,velocity:.2}):H.includes("pinch")?t.get("pinch").set({enable:!0}):H.includes("pan")&&(t.get("pan").set({enable:!0,direction:J}),t.get("swipe").set({enable:!0,direction:J,velocity:.2}),t.get("swipe").recognizeWith("pan"));m6u(this,V,t,H)}};
var m6u=function(V,D,f,n){f.on(n,function(t){if(n.includes("pinch"))V.lastPinchTime=Date.now();else if(n.includes("swipe")&&Date.now()-V.lastPinchTime<400)return;t.pointerType!=="mouse"&&(t=n==="doubletap"?{coordinates:t.center}:n.includes("pan")?t:n.includes("swipe")?{target:t.target}:{},D.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:t})))})};
uNU.prototype.unregisterTouchEvents=function(V){var D=_.gQ.apply(1,arguments),f=this.nodeManagerMapping.get(V);if(f){D=_.r(D);for(var n=D.next();!n.done;n=D.next())f.off(n.value);this.nodeManagerMapping.delete(V);V.style.touchAction="unset"}};var zkE=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var RgR=null;var RkH=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},hgX=function(){RkH.instance||(RkH.instance=new RkH);
return RkH.instance},UCx=function(V){var D=V.networkEvents;
V.networkEvents=[];return _.c("enable_network_monitoring")?D:[]};var CqF;CqF={};_.qQV=Ub("yt-serviceworker-metadata",{objectStores:(CqF.auth={addedAtVersion:1},CqF["resource-manifest-assets"]={addedAtVersion:2},CqF),shared:!0,upgrade:function(V,D){D(1)&&Ei(V,"resource-manifest-assets");D(2)&&Ei(V,"auth")},
version:2});var a6d=self.location.origin+"/";Y6F([/\.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\//]);Y6F([/purge_shell=1/]);var XGE=void 0;XGE=XGE===void 0?[]:XGE;for(var EDV=[],Atl=_.r(fdU),aSl=Atl.next();!aSl.done;aSl=Atl.next())EDV.push({key:aSl.value});for(var YQV=_.r(XGE),$6F=YQV.next();!$6F.done;$6F=YQV.next())EDV.push($6F.value);var ivF,qZ=_.fx==null?void 0:(ivF=_.fx.performance)==null?void 0:ivF.memory,S6R=!1,VnU={},L93={},XS={},Es=navigator;var gC=function(V){this.JSC$11317_expiringStorage=new gO(V)};
gC.prototype.set=function(V,D,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$11317_expiringStorage.set(V,D,f)};
gC.prototype.get=function(V){return this.JSC$11317_expiringStorage.get(V)};
gC.prototype.remove=function(V){this.JSC$11317_expiringStorage.remove(V)};var rf3=_.WV(["https://www.youtube.com/",""]),HEY=_.WV(["https://studio.youtube.com/",""]),KmZ="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Qx9=null,Gnd;var SQl=_.WV(["https://www.youtube.com/iframe_api"]),vX=function(){this.playerResolver_=_.Sl();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Kp;this.playbackDurationSeconds_=0},WyV=function(V){var D=function(){return window.YT&&typeof window.YT.ready==="function"};
if(D())return _.Qv(window.YT);var f=_.Sl(),n=_.yh("SCRIPT");n.onload=n.onreadystatechange=function(){n.readyState&&n.readyState!="loaded"&&n.readyState!="complete"||(n.onload=_.Kp,n.onreadystatechange=_.Kp,n.onerror=_.Kp,D()?f.resolve(window.YT):f.reject(new _.cI("Failed to load the iframe player library","script.onload",n.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
n.onerror=function(t){n.onload=_.Kp;n.onreadystatechange=_.Kp;n.onerror=_.Kp;f.reject(new _.cI("Failed to load the iframe player library","script.onerror",t&&t.target&&t.target.src))};
_.Yx(n,_.t4(SQl));V.insertBefore(n,V.firstChild);return f.promise},pGF=function(V,D,f){var n,t;
_.w(function(J){switch(J.nextAddress){case 1:return V.playbackEndedCallback_=f,_.wx(J,2),_.b(J,WyV(D.parentElement||null),4);case 4:n=J.yieldResult;_.YJ(J,3);break;case 2:return t=_.KW(J),t instanceof _.cI&&t.args&&t.args[0]=="script.onerror"?_.zP(t):_.NG(t),J.return();case 3:n.ready(function(){return new n.Player(D,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:V.onPlayerReady_.bind(V),onStateChange:V.onPlayerStateChange_.bind(V),
onCueRangeExit:V.onCueRangeExit_.bind(V)}})}),_.yz(J)}})};
_.P=vX.prototype;_.P.getPlayerPromise=function(){return this.playerPromise_};
_.P.onPlayerReady_=function(V){this.playerResolver_.resolve(V.target)};
_.P.onPlayerStateChange_=function(V){if(V.data==YT.PlayerState.PLAYING){V=V.target;var D=V.getCurrentTime();V.addCueRange("playback",D,D+this.playbackDurationSeconds_)}};
_.P.onCueRangeExit_=function(V){V.data=="playback"&&(V.target.stopVideo(),this.playbackEndedCallback_())};
_.P.stopVideo=function(){this.playerPromise_.then(function(V){V.stopVideo()})};
var Lyr=function(V){V.playerVars_&&V.playerPromise_.then(function(D){typeof D.cueVideoByPlayerVars!="function"?_.zP(new _.cI("vmh: player API not ready","cueVideoByPlayerVars",typeof D.cueVideoByPlayerVars)):D.cueVideoByPlayerVars(V.playerVars_)})};
vX.prototype.playVideo=function(){var V=this;this.playerVars_&&this.playerPromise_.then(function(D){typeof D.loadVideoByPlayerVars!="function"?(D=new _.cI("vmh: player API not ready","loadVideoByPlayerVars",typeof D.loadVideoByPlayerVars),_.NG(D)):D.loadVideoByPlayerVars(V.playerVars_)})};
var ISp=function(V,D,f,n,t){D&&(f===void 0&&(f=0),n===void 0&&(n=0),V.playbackDurationSeconds_=n/1E3,V.playerVars_={adformat:"17_8",videoId:D,suggestedQuality:"hd720",startSeconds:f/1E3,player_params:t})};
vX.prototype.mute=function(){this.playerPromise_.then(function(V){V.mute()})};
vX.prototype.unMute=function(){this.playerPromise_.then(function(V){V.unMute()})};var OvV=function(V,D){var f=Xw();V||(V="unknown");D||(D="unknown");V="MAIN_APP_WEB_PAGE_TYPE_"+V.toUpperCase();V in H$F||(V="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");D="MAIN_APP_WEB_REQUEST_TYPE_"+D.toUpperCase();D in wko||(D="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.wK(f,{mainAppWeb:{pageType:V,requestType:D,isShellLoad:_.EG("IS_SHELL_LOAD",!1)}})},x6u={start:function(){_.wK(AiZ(),{mainAppWeb:_.Wo()})},
success:function(){_.Q7(AiZ(),"SUCCESS")},
failure:function(){_.Q7(AiZ(),"FAILURE")},
cancelled:function(){_.Q7(AiZ(),"CANCELLED")}};var MZF,hkp,Bh9;MZF=_.WV(["/sw.js"]);hkp=_.WV(["/sw.js?0"]);_.U6l=_.t4(MZF);Bh9=_.t4(hkp);var VcF=function(){var V=Error.apply(this,arguments);this.message=V.message;"stack"in V&&(this.stack=V.stack)};
_.v(VcF,Error);_.IB.prototype.load=function(V){this.megabloxUrl_=_.XB("YPC_MB_URL");_.EX(this.megabloxUrl_,(0,_.F1)(function(){V&&V()},this))};
_.hbY=function(V,D,f,n,t,J,H,Q,T,y,Z){_.udn(T);V.load((0,_.F1)(function(){try{var l=J?J:_.XB("HL"),G=_.XB("SESSION_INDEX");_.lpF("client",function(){wll("59",{helpCenterPath:"/youtube",locale:l,window:window}).JSC$8066_loadChatSupport({authuser:String(G)})})}catch(F){throw pR(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),t&&t(F),_.NG(F),F;
}DJu(this,D,f,n,t,J,H,Q,T,y,Z)},V))};
_.IB.prototype.openFixFlowDialog=function(V,D,f,n){this.load((0,_.F1)(function(){try{fOp(this,_.Yw("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(V).withIntegratorCallback(D).load(f,n)}catch(t){throw _.NG(t),t;}},this))};
var fOp=function(V,D,f,n){var t=D.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.c("enable_window_constrained_buy_flow_dialog")&&(t=t.usingPopupStyle(_.Yw("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));n&&(t=t.usingCloseCallback(n));D.bootstrap.fromPaymentsUrl(V.megabloxUrl_);V=D.bootstrap.asMashupMode(t);f=f?f:_.XB("HL");V.usingGaiaIndex(_.XB("SESSION_INDEX")).usingLocale(f).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.c("enable_google_payments_buyflow_material2_style_web")?
V.usingStyle(":m2;pc=#444;ac=#065fd4"):V.usingStyle(":md;pc=#444;ac=#065fd4");return V},DJu=function(V,D,f,n,t,J,H,Q,T,y,Z){try{var l=_.Yw("payments.business.integration");
if(!l)throw new VcF("payments.business.integration is undefined");var G=l.standaloneContextAuthId.forUserId(),F=fOp(V,l,J,function(){m09(!1);Q&&Q()});
H&&F.usingServerAnalyticsEventHandler(H);var k=F.inStandaloneContext(G).buyFlow(function(d){if(d&&(!d.integratorData||d.integratorData===""||d.error))if(d.error!=null)if(String(d.error)==="-1")_.NhZ(T);else{var z=String(d.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";pR(10,Z,z,d.debugCode);_.LR(z,T,d.debugCode);z=new _.cI("PAYMENT_ERROR_MESSAGE::"+d.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+d.internalErrorDetails);
_.NG(z)}else pR(10,Z,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.LR("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",T,"EMPTY_INTEGRATOR_DATA"),_.NG(Error("hg"));f&&(m09(!1),f(d))}).withEncryptedParameters(D);
y&&k.withClientParameters(QQc(_.UK3(y)));k.load(function(){pR(24,Z);_.C6("ttc",void 0,"commerce_transaction");J_F("commerce_transaction");n&&(n(),m09(!0))},function(d){if(d==null?0:d.debugCode)var z=d==null?void 0:d.debugCode;
else if(!d||(d==null?0:d.debugCode))z="EMPTY_LOAD_FAILURE_ERROR",_.NG(Error(z));else{z="EMPTY_LOAD_FAILURE_DEBUG_CODE";var C=new _.cI("LOAD_FAILURE:"+d.message," DEBUG_CODE:"+z);_.NG(C)}pR(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",z);_.LR("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",T,z);_.NG(d);t&&t(d)})}catch(d){throw d instanceof VcF&&(pR(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),t&&t(d)),_.NG(d),d;
}};var n5V;n5V=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Osc=function(V,D){D=D===void 0?!1:D;V=n5V.test(V)?_.rQ(V):null;!D&&window.payments||!V?(V=_.Sl(),D=V.promise,V.resolve()):D=_.IJE(V,{attributes:{"data-payments-main":"",id:"payment-lib"}});return D};var tcr;tcr=_.WV(["//www.googletagmanager.com/gtm.js?id=",""]);_.km=function(V,D){_.V1(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:D}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.XB("GL")}),D=_.yh("SCRIPT"),D.async=!0,_.Yx(D,_.t4(tcr,V)),D.id="gtm",V=document.getElementsByTagName("script"),V.length==0?document.head.appendChild(D):(V=V[0],V.parentNode.insertBefore(D,V)))};
_.sY=function(V){if(V=JSON.parse(V))window.dataLayer=window.dataLayer||[],window.dataLayer.push(V)};var P9E,o5u;P9E=_.WV(["https://clients2.google.com/gr/gr_sync.js"]);_.Ld3=function(){};
_.Ld3.prototype.init=function(){if(o5u()){var V=_.Sl();V.resolve();return V.promise}return _.IJE(_.t4(P9E)).then(function(){if(!o5u())throw Error("ig");},function(){throw Error("jg");
})};
_.IzL=function(){if(!o5u())return"";var V=window.google.gr;V.init({async:{schedule:"sync"},merchantId:"youtube"});V.start();V=V.finish();return V==null?"":V};
o5u=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.E=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.E,PolymerFakeBaseClassWithoutHtml);_.lU=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.lU,PolymerFakeBaseClassWithoutHtml);var zFc=window.ShadyDOM;var bCU,Q0X,y$Y,ZCd,lQ9,GaR,BX,tA;bCU=_.c("enable_shadydom_free_scoped_query_methods");Q0X=_.c("enable_shadydom_free_scoped_node_methods");y$Y=_.c("enable_shadydom_free_scoped_readonly_properties_batch_one");ZCd=_.c("enable_shadydom_free_parent_node");lQ9=_.c("enable_shadydom_free_children");GaR=_.c("enable_shadydom_free_last_child");BX=window.ShadyDOM;_.Ht=BX&&BX.noPatch&&BX.wrap?BX.wrap:BX?function(V){return BX.patch(V)}:function(V){return V};
tA=function(V){if(V instanceof ShadowRoot)this.host=(0,_.Ht)(V.host),this.root=V;else if(V.$$){this.host=(0,_.Ht)(V);var D;this.root=(D=V.root)!=null?D:this.host}else if(V.polymerController){this.host=(0,_.Ht)(V);var f;this.root=(f=this.host.shadowRoot)!=null?f:this.host}else this.root=this.host=(0,_.Ht)(V)};
TDZ();Kc9();ejd();c$x();j03();var J7L={querySelector:function(V,D){D=C2Z(D,hP(V));V=_.Us(V);return Vg(V).prototype.querySelector.call(V,D)},
querySelectorAll:function(V,D){D=C2Z(D,hP(V));V=_.Us(V);return Vg(V).prototype.querySelectorAll.call(V,D)}},r7F={appendChild:function(V,D){var f=hP(V),n=_.MZ(D);
return _.HCF(_.Us(V),f?_.fI(D,f,n):D)},
cloneNode:function(V,D){var f=_.MZ(V);V=_.Us(V);D=Vg(V).prototype.cloneNode.call(V,D);return f?nI(D,f):D},
contains:function(V,D){var f=hP(V),n=_.MZ(D);return f!==n?!1:wg9(V,D)},
insertBefore:function(V,D,f){var n=hP(V),t=_.MZ(D);V=_.Us(V);D=n?_.fI(D,n,t):D;return Vg(V).prototype.insertBefore.call(V,D,f)},
removeChild:function(V,D){var f=hP(V);V=_.Us(V);D=f?nI(D,f):D;return Vg(V).prototype.removeChild.call(V,D)},
replaceChild:function(V,D,f){var n=hP(V),t=_.MZ(D);D=n?_.fI(D,n,t):t?nI(D,t):D;f=n?nI(f,n):f;V=_.Us(V);return Vg(V).prototype.replaceChild.call(V,D,f)},
getRootNode:function(V,D){D=D===void 0?{composed:!0}:D;var f;if(((f=D)!=null?f:{}).composed)V=p$R(V);else{D=V;for(V=X$F(V);V;)D=V,V=AfX(V);V=D}return V}},gEd=y$Y?{firstChild:nEd,
nextSibling:VOZ,previousSibling:fQ9,firstElementChild:tOn,lastElementChild:oEc,nextElementSibling:U0n,previousElementSibling:DF3,childNodes:J$R}:{};ZCd&&(gEd.parentNode=hFY);lQ9&&(gEd.children=r$3);GaR&&(gEd.lastChild=PMY);bCU&&FcL(J7L);Q0X&&FcL(r7F);vE9();var kac=function(V){this.node=V instanceof ShadowRoot?V.host:V};
s0Z();BDY();var NDX=new WeakMap;var zjZ=Symbol("Bd");var EEn=new Set(["tap","track","down","up"]),A$U=_.c("pbcm_fi_query_decorators");var dC=function(){return _.lU.apply(this,arguments)||this};
_.v(dC,_.lU);_.P=dC.prototype;_.P.getState=function(){return this.store.getState()};
_.P.dispatch=function(V){this.store.dispatch(V)};
_.P.beforeRegister=function(){if(this&&typeof this==="object"){var V;var D=!!this.useSignals||!((V=this.polymerController)==null||!V.useSignals)}else D=!1;if(!D&&this.properties)for(D=_.r(Object.keys(this.properties)),V=D.next();!V.done;V=D.next()){var f=V.value;V=this.properties[f];if(V.selector){if(V.computed)throw Error("pg");f=["reduxPropertiesRecomputeTrigger",'"'+f+'"'].concat(_.sz(V.selectorArgs||[])).join(",");V.computed="recomputeReduxSelector("+f+")"}}};
_.P.attached=function(){var V=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){V.reduxPropertiesRecomputeTrigger++}));
_.c("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.P.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.P.recomputeReduxSelector=function(V,D){var f=_.gQ.apply(2,arguments),n=this.properties[D].selector;if(!n)throw Error("ng`"+D);return n.apply(null,[this.store.getState()].concat(_.sz(f)))};
_.P.select=function(V){var D=_.gQ.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return V.apply(null,[this.store.getState()].concat(_.sz(D)))};
_.IG.Object.defineProperties(dC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
dC.prototype.recomputeReduxSelector=dC.prototype.recomputeReduxSelector;_.S([_.q(),_.p("design:type",Number)],dC.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.S([_.Gy()],dC);var uV=[],iCZ={},m8=function(){return M2.apply(this,arguments)||this};
_.v(m8,M2);m8.prototype._addPropertyEffect=function(V,D,f){if(D==="__observeEffects"&&f){var n,t=(n=f.info.method)!=null?n:f.info.methodName;if(t){var J=this[t];this[t]=function(){uV.push(t);try{J==null||J.apply(this,arguments)}finally{uV.pop()}}}}_.ZA._addPropertyEffect.apply(this,[V,
D,f])};
m8.prototype._setPendingProperty=function(V,D,f){if(uV.length){var n=uV[uV.length-1],t;(t=iCZ[this.is])!=null&&t.has(n)||(S8U(this.is,n),_.dq("polymerPropertyChangedInObserver",{componentName:this.is,observerName:n}))}return _.ZA._setPendingProperty.apply(this,[V,D,f])};
_.S([F$3()],m8);var WcZ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Lcx,F2={};_.c("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=F2);var ku=function(){return _.lU.apply(this,arguments)||this};
_.v(ku,_.lU);ku.prototype._setUnmanagedPropertyToNode=function(V,D,f){V.loggingStatus&&(V.loggingStatus.isDeclarativeExternal=!0);if(f!==V[D]||typeof f==="object")V[D]=f;V.is&&V.polymerController&&V.polymerController!==V&&gI(V.is,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");V.loggingStatus&&(V.loggingStatus.isDeclarativeExternal=!1)};
_.S([_.Gy()],ku);pgY()&&(CO.prototype._setUnmanagedPropertyToNode=(new ku)._setUnmanagedPropertyToNode);_.J8Y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(V){},set polymerController(V){}}]};var NA=function(){var V=M2.apply(this,arguments)||this;V.json=function(){};
return V};
_.v(NA,M2);NA.prototype.equals=function(V,D){return V===D};
NA.prototype.isEmpty=function(V){return!V||_.MU(V)&&V.length===0};
_.S([F$3()],NA);var Hzr=function(V){V=lTY(V);RF.call(this,V)};
_.v(Hzr,RF);Hzr.prototype.addProvider=function(V){V=V.key?V:lTY([V])[0];var D=this.keyIdToIndex.get(V.key.id);if(D){if(hjx(V,this.providers[D]))throw Error("qg`"+V.key.displayName);}else RF.prototype.addProvider.call(this,V)};
var w_l=new Hzr([]);var QpE=!1;var tGx={};QpE||(nd9(),QpE=!0);
tGx.InjectBehavior={initializeInjection:function(){var V=this.provide;try{if((V=V!=null?V:[])&&V.length>0)for(var D=lTY(V),f=_.r(D),n=f.next();!n.done;n=f.next())w_l.addProvider(n.value);var t=new Set;UF9(this.behaviors||[],t);D={};for(var J=_.r(t),H=J.next();!H.done;H=J.next()){var Q=H.value;Q.inject&&Object.assign(D,Q.inject)}this.inject&&Object.assign(D,this.inject);for(var T=_.r(Object.keys(D)),y=T.next();!y.done;y=T.next()){var Z=y.value,l=D[Z];try{this[Z]=w_l.resolve(l)}catch(G){throw G;}}}catch(G){throw Error(G.message);
}}};var odn;var r8x=/\bclass\b/.test(function(){}.toString()),Q1d=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Ttr=function(V){this.wasDefined=!0;Array.isArray(V)||V instanceof Array?(this.JSC$11446_getImpl=V[0],this.JSC$11446_setImpl=V[1]):this.JSC$11446_getImpl=V};
_.P=Ttr.prototype;_.P.getWithPath=function(V){return K1R(this.JSC$11446_getImpl(),V)};
_.P.setWithPath=function(V,D){var f=this;if(V.length)throw Error("rg");if(!this.JSC$11446_setImpl)throw Error("sg");ZJ(function(){f.JSC$11446_setImpl(D)})};
_.P.notifyPath=function(){throw Error("tg");};
_.P.notifySplices=function(){throw Error("ug");};
_.P.getChangeRecordSignal=function(V,D){var f=this;if(V.length)throw Error("vg");return function(){var n=f.getWithPath(V);return{path:D!=null?D:"",base:n,value:n}}};
_.P.getSplicesSignal=function(){throw Error("wg");};
_.P.getPathMutationSignal=function(){throw Error("xg");};
_.P.pop=function(){throw Error("yg");};
_.P.push=function(){throw Error("zg");};
_.P.splice=function(){throw Error("Ag");};
_.P.unshift=function(){throw Error("Bg");};var Nd=function(V){var D=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(V)||V instanceof Array?(this.JSC$11451_getImpl=V[0],this.JSC$11451_setImpl=V[1]):this.JSC$11451_getImpl=V;this.wasDefined=!1;rc(function(){D.wasDefined=D.JSC$11451_getImpl()!==void 0})};
Nd.prototype.getWithPath=function(V){return K1R(this.JSC$11451_getImpl(),V)};
Nd.prototype.setWithPath=function(V,D){var f=this;if(V[V.length-1]!=="*"&&V[V.length-1]!=="splices"){if(V.length===0){if(!this.JSC$11451_setImpl)throw Error("Cg");this.wasDefined||(this.wasDefined=D!==void 0);ZJ(function(){f.JSC$11451_setImpl(D)})}else{for(var n=rc(function(){return f.getWithPath([])}),t=0;t<V.length-1;t++){if(!n)return;
n=n[V[t]]}t=V[V.length-1];n&&(n[t]=D);this.wasDefined||(this.wasDefined=V.length>1||D!==void 0)}bzo(this,V,{pathComponents:V,value:D})}};
Nd.prototype.notifyPath=function(V,D){V.length===0?D&&this.setWithPath(V,D.value):bzo(this,V,{pathComponents:V,value:D==null?void 0:D.value,fallbackWhenUndefined:D==null?void 0:D.value})};
var bzo=function(V,D,f,n){if(V.setMutationSignal){var t=++V.mutationIndex,J=[V.observedPath],H=V.observedPath,Q;D.length===0&&(Q=H);for(var T=0;T<D.length;T++){var y=H.subPaths[D[T]];if(!y)break;J.push(y);H=y;T===D.length-1&&(Q=y)}for(D=!1;J.length;)H=J.shift(),H.data={index:t,mutation:f,spliceMutationIndex:n},D||(D=H===Q),D&&J.push.apply(J,_.sz(Object.values(H.subPaths)));ZJ(function(){V.setMutationSignal(t)})}};
Nd.prototype.notifySplices=function(V,D){var f=this,n=rc(function(){return f.getWithPath(V)}),t=[].concat(_.sz(V),["splices"]);
bzo(this,t,{pathComponents:t,value:{indexSplices:D}});if(n==null?0:n.length)D=this.mutationIndex,t=[].concat(_.sz(V),["length"]),bzo(this,t,{pathComponents:t,value:n.length},D)};
var KsU=function(V,D,f,n,t,J){V.notifySplices(f,[{index:n,addedCount:t,removed:J,object:D,type:"splice"}])},y7r=function(V,D){V=V.observedPath;
for(var f=0;f<D.length;f++){var n=D[f],t=V.subPaths[n];t||(t={pathComponents:D.slice(0,f+1),subPaths:{}},V.subPaths[n]=t);V=t}},jpr=function(V,D,f){y7r(V,D);
if(!V.getMutationSignal){var n=_.r(_.HJ(V.mutationIndex,void 0,"HavCgf"));V.getMutationSignal=n.next().value;V.setMutationSignal=n.next().value}var t=V.getMutationSignal;return _.yT(function(){t();return f(ZzL(V,D))},void 0,"BYaPo")};
Nd.prototype.getChangeRecordSignal=function(V,D){var f=this,n=this.mutationIndex,t;return jpr(this,V,function(J){if(J&&J.index>n){var H=J.mutation;n=J.index;t=void 0}J=rc(function(){return f.getWithPath(V)});
if(H){var Q=H.pathComponents[H.pathComponents.length-1],T=[].concat(_.sz(H.pathComponents));if(Q==="splices"||Q==="length")return{base:J,path:(D?[D].concat(_.sz(T)):T).join("."),value:H.value};var y=V.length>T.length?V:T,Z;return{base:J!=null?J:H.fallbackWhenUndefined,path:(D?[D].concat(_.sz(y)):y).join("."),value:(Z=rc(function(){return f.getWithPath(y)}))!=null?Z:H.fallbackWhenUndefined}}t||(t={base:J,
path:(D?[D].concat(_.sz(V)):V).join("."),value:J});return t})};
Nd.prototype.getSplicesSignal=function(V){var D=this.mutationIndex,f;return jpr(this,V,function(n){if(n&&n.index>D&&n.spliceMutationIndex!==D){var t=n.mutation;D=n.index;f=void 0}return t&&t.pathComponents[t.pathComponents.length-1]==="splices"?f=n=t.value:f})};
Nd.prototype.getPathMutationSignal=function(V){var D=this;y7r(this,V);if(!this.getMutationSignal){var f=_.r(_.HJ(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=f.next().value;this.setMutationSignal=f.next().value}var n=this.getMutationSignal,t=this.mutationIndex,J;return _.yT(function(){n();var H=ZzL(D,V);if(H&&H.index>t&&H.mutation&&y8d(H.mutation.pathComponents,V)){var Q=H.mutation;t=H.index}if(!J||t!==J.index){var T,y;H=(y=rc(function(){return D.getWithPath(V)}))!=null?y:(T=Q)==null?
void 0:T.fallbackWhenUndefined;
J={index:t,value:H}}return J},void 0,"Aumsyf")};
var ZzL=function(V,D){V=V.observedPath;D=_.r(D);for(var f=D.next();!f.done;f=D.next())V=V.subPaths[f.value];return V.data};
Nd.prototype.pop=function(V){var D=this,f=rc(function(){return D.getWithPath(V)});
if(!(f instanceof Array))throw Error("Dg");var n=f.length>0,t=f.pop();n&&KsU(this,f,V,f.length,0,[t]);return t};
Nd.prototype.push=function(V){var D=_.gQ.apply(1,arguments),f=this,n=rc(function(){return f.getWithPath(V)});
if(!(n instanceof Array))throw Error("Eg");var t=n.length,J=n.push.apply(n,_.sz(D));D.length&&KsU(this,n,V,t,D.length,[]);return J};
Nd.prototype.splice=function(V,D,f){var n=_.gQ.apply(3,arguments),t=this,J=rc(function(){return t.getWithPath(V)});
if(!(J instanceof Array))throw Error("Fg");D<0?D=J.length-Math.floor(-D):D&&(D=Math.floor(D));var H=J.splice.apply(J,[D,f].concat(_.sz(n)));(n.length||H.length)&&KsU(this,J,V,D,n.length,H);return H};
Nd.prototype.unshift=function(V){var D=_.gQ.apply(1,arguments),f=this,n=rc(function(){return f.getWithPath(V)});
if(!(n instanceof Array))throw Error("Gg");var t=n.unshift.apply(n,_.sz(D));D.length&&KsU(this,n,V,0,D.length,[]);return t};var lOl=!0,GuH=!1,U6Y=!1,eVE=!1,vdL=!1,c7P=0;eVE=!1;c7P=0;lOl=!0;vdL=GuH=U6Y=!1;var mp=function(V,D,f){this.model=V;this.unknownSignalResolver=D;this.options=f;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];D=_.r(s1Z());V=D.next().value;D=D.next().value;this.owner=V;this.disposeImpl=D};
mp.prototype.dispose=function(){if(!this.isDisposed){for(var V=_.r(this.childSignalProxies),D=V.next();!D.done;D=V.next())D.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var FsF=function(V,D){V=_.x4(V.owner);try{D()}finally{_.x4(V)}};
mp.prototype.effect=function(V){FsF(this,function(){_.mK(V)})};
var g5F=function(V,D){V.options!=null||(V.options={});var f;(f=V.options).immutableProps!=null||(f.immutableProps=new Set);V.options.immutableProps.add(D)},h7F=function(V,D){D=""+D;
v5L(V,D);var f,n;if((f=V.options)==null?0:(n=f.immutableProps)==null?0:n.has(D))return!0;var t;if((t=V.model.__signalCache)==null?0:t.has(D))f=V.model.__signalCache.get(D),Array.isArray(f)&&g5F(V,D);var J,H,Q;return(Q=(J=V.options)==null?void 0:(H=J.immutableProps)==null?void 0:H.has(D))!=null?Q:!1},ku6=function(V,D){var f;
V.unknownSignalResolver&&(f=V.unknownSignalResolver(D));var n,t;((n=V.options)==null?0:(t=n.immutableProps)==null?0:t.has(D))?f!=null||(f=new Ttr(_.HJ(V.model[D],void 0,"bgwlkd"))):f!=null||(f=new Nd(_.HJ(V.model[D],void 0,"V1hou")));var J=V.model.hostElement;Object.defineProperty(V.model,D,{get:function(){OC9(J,D);return f.getWithPath([])},
set:function(H){vt(J,D);V.setWithPath([D],H)},
configurable:!0});return f},v5L=function(V,D){var f,n,t;
((f=V.model.__signalCache)==null||!f.has(D))&&((n=V.options)==null?0:(t=n.externalSignalProps)==null?0:t.has(D))&&V.model[D]},qA=function(V,D){D=""+D;
var f=V.signalCache[D];if(f!==void 0)return f;f=!1;v5L(V,D);var n;if((n=V.model.__signalCache)==null?0:n.has(D))if(f=V.model.__signalCache.get(D),Array.isArray(f))f=!0,g5F(V,D);else return V.signalCache[D]=V.model.__signalCache.get(D).signal,V.signalCache[D];var t,J;n=(J=(t=V.options)==null?void 0:t.reactivityMode)!=null?J:0;var H,Q;if(!((H=V.options)==null?0:(Q=H.reactiveProps)==null?0:Q.has(D))&&!f&&n===1)throw Error("Hg`"+D);t=f?spE(V,D):ku6(V,D);return V.signalCache[D]=t},spE=function(V,D){var f=
Object.getOwnPropertyDescriptor(V.model.constructor.prototype,D),n=function(){return V.model[D]};
return new Ttr(f&&f.get&&!f.set?n:[n,function(t){V.model[D]=t}])};
mp.prototype.getWithPath=function(V){var D=_.r(V);V=D.next().value;D=pJ(D);OC9(this.model.hostElement,""+V);return qA(this,V).getWithPath(D)};
mp.prototype.setWithPath=function(V,D){if(V.length){vt(this.model.hostElement,V.join("."));var f=_.r(V);V=f.next().value;f=pJ(f);qA(this,V).setWithPath(f,D)}};
mp.prototype.getPathMutationSignal=function(V){var D=_.r(V);V=D.next().value;D=pJ(D);return qA(this,V).getPathMutationSignal(D)};
mp.prototype.notifyPath=function(V,D){var f=_.r(V);V=f.next().value;f=pJ(f);qA(this,V).notifyPath(f,D)};
var BtL=function(V,D){if(D.type==="literal")return function(){return{rootWasDefined:!0,value:D.value}};
var f=RU(D.path),n=_.r(f),t=n.next().value;n=pJ(n);var J,H;if(D.type==="path"&&(f.length===1||((J=V.options)==null?0:(H=J.immutableProps)==null?0:H.has(t))))return function(){var l=V.getWithPath(f.slice(0,1)),G=K1R(l,f.slice(1));l=l!==void 0;kC3()&&(l=qA(V,f[0]).wasDefined);return{rootWasDefined:l,value:G}};
var Q=qA(V,t);if(D.type==="path"){var T=Q.getPathMutationSignal(n);return function(){var l=kC3()?Q.wasDefined:z4(V.owner,function(){return Q.getWithPath([])})!==void 0;
var G,F=(G=T())==null?void 0:G.value;return{rootWasDefined:l,value:F}}}if(D.type==="splices"){var y=Q.getSplicesSignal(n);
return function(){var l=y();return{rootWasDefined:kC3()?Q.wasDefined:l!==void 0,value:l}}}var Z=Q.getChangeRecordSignal(n,""+t);
return function(){var l=Z();return{rootWasDefined:kC3()?Q.wasDefined:l!==void 0,value:l}}},c8X=function(V,D,f){var n=f.map(function(Q){return BtL(V,Q)}),t=f.length===0,J=[],H=f.length!==1||f[0].type!=="path"?!1:!0;
V.effect(function(){for(var Q=n.length,T=[],y=!!J.length,Z=0;Z<Q;Z++){var l=n[Z](),G=l.rootWasDefined;l=l.value;t||(t=G);T[Z]=l;H&&(T[Z+Q]=y?J[Z]:T[Z],J[Z]=l)}t&&z4(V.owner,function(){return void D.apply(null,_.sz(T))})})},ZaZ=function(V,D,f,n,t){var J=qA(V,D);
t!==void 0&&J.setWithPath([],t);c8X(V,function(){var H=_.gQ.apply(0,arguments);vt(V.model.hostElement,D,!0);J.setWithPath([],f.apply(null,_.sz(H)))},n)};
mp.prototype.arrayPush=function(V){var D=_.gQ.apply(1,arguments),f=_.r(V),n=f.next().value;f=pJ(f);n=qA(this,n);return n.push.apply(n,[f].concat(_.sz(D)))};
mp.prototype.arraySplice=function(V,D,f){var n=_.gQ.apply(3,arguments),t=_.r(V),J=t.next().value;t=pJ(t);J=qA(this,J);return J.splice.apply(J,[t,D,f].concat(_.sz(n)))};
mp.prototype.arrayUnshift=function(V){var D=_.gQ.apply(1,arguments),f=_.r(V),n=f.next().value;f=pJ(f);n=qA(this,n);return n.unshift.apply(n,[f].concat(_.sz(D)))};
mp.prototype.notifySplices=function(V,D){var f=_.r(V);V=f.next().value;f=pJ(f);qA(this,V).notifySplices(f,D)};var z7R=/([^\s]+?)\(([\s\S]*)\)/,uRZ=/\.([^.]+)$/,C1n=/\\,/g,B5X=/&comma;/g,dhn=/\\(.)/g,R7R=[],N5Y={"*":"wildcard",splices:"splices"};var W1c=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"),Y9X=/[A-Z]/,dJE=["class","hidden","id","on-dom-change"],L1L=new Set([].concat(_.sz(dJE),
["if","notify-dom-change","restamp"])),Iw3=new Set([].concat(_.sz(dJE),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Oax=new Set(["restamp"]);var IOd=new Set(["className","id"]);var VZc=Symbol(),JtY=window;var yt9=window;var Fy9=0,lSc=0,X2=[],ctn=0,jDF=!1,ekx=document.createTextNode("");(new window.MutationObserver(G1X)).observe(ekx,{characterData:!0});var AA=new Map,Er=0,uel=function(V){this.mappedHandleId=V},vDZ=function(V,D,f,n){this.mappedHandleId=V;
var t=this;this.mappedHandleId=V;this.callback=D;this.waitTime=f;this.schedulerPriority=n;this.handleId=_.dm.addJob(function(){t.callback();AA.delete(t.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.v(vDZ,uel);vDZ.prototype.cancel=function(){_.dm.cancelJob(this.handleId);AA.delete(this.mappedHandleId)};
var k1c=function(V,D){this.mappedHandleId=V;var f=this;this.mappedHandleId=V;this.callback=D;this.handleId=gD3(function(){f.callback();AA.delete(f.mappedHandleId)})};
_.v(k1c,uel);k1c.prototype.cancel=function(){var V=this.handleId-lSc;V<0||X2.length<=V||(X2[V]=null);AA.delete(this.mappedHandleId)};var uNL=function(){};
uNL.prototype.cancel=function(){this.jobHandle!==void 0&&(sDc(this.jobHandle),this.jobHandle=void 0)};
uNL.prototype.run=function(V,D,f){var n=this;this.cancel();this.callback=V;this.jobHandle=_.aU(function(){V();n.callback=void 0},D,f)};
uNL.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Bb9=new WeakMap;var Ntl=Sh(function(V){for(var D=V,f=0;f<3;f++)D=Object.getPrototypeOf(D);delete D.prototype.connectedCallback;var n=function(){return V.apply(this,arguments)||this};
_.v(n,V);n.prototype._attachDom=function(t){if(!t)return null;var J=(0,_.Ht)(this.hostElement);J.attachShadow({mode:"open",shadyUpgradeFragment:t});J.shadowRoot.appendChild(t);return J.shadowRoot};
n.prototype._takeAttributes=function(){for(var t=this.hostElement.attributes,J=0;J<t.length;J++){var H=t[J],Q=void 0,T=void 0;(T=(Q=this).__attributeReaction)==null||T.call(Q,H.name,null,H.value)}};
n.prototype._readyClients=function(){V.prototype._readyClients.call(this);this.root=this};
n.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);V.prototype.connectedCallback.call(this)};
_.IG.Object.defineProperties(n,{template:{configurable:!0,enumerable:!0,get:function(){return n.prototype._template}}});
return n}),mJU=Sh(function(V){var D=function(){return V.apply(this,arguments)||this};
_.v(D,V);D.prototype.created=function(){if(this.__notifyEffects)for(var f=_.r(Object.values(this.__notifyEffects)),n=f.next();!n.done;n=f.next()){n=_.r(n.value);for(var t=n.next();!t.done;t=n.next())t.value.fn=Rkn}if(this.__reflectEffects)for(f=_.r(Object.values(this.__reflectEffects)),n=f.next();!n.done;n=f.next())for(n=_.r(n.value),t=n.next();!t.done;t=n.next())t.value.fn=Cq9};
D.prototype._addEventListenerToNode=function(f,n,t){f=$u(f);B1(f,n,t)||V.prototype._addEventListenerToNode.call(this,f,n,t)};
D.prototype._removeEventListenerFromNode=function(f,n,t){f=$u(f);dv(f,n,t)||V.prototype._removeEventListenerFromNode.call(this,f,n,t)};
D.prototype._propertiesChanged=function(f,n,t){if(this.__dataToNotify&&this.__notifyEffects)for(var J=_.r(Object.keys(this.__dataToNotify)),H=J.next();!H.done;H=J.next()){H=H.value;var Q=zkR(H);this.__notifyEffects[Q]||delete this.__dataToNotify[H]}else this.__dataToNotify=null;V.prototype._propertiesChanged.call(this,f,n,t)};
D.prototype.fire=function(f,n,t){n=n===void 0?{}:n;var J;return _.PA($u((J=t==null?void 0:t.node)!=null?J:this),f,n,t)};
D.prototype._ensureAttribute=function(f,n){var t=$u(this);t.hasAttribute(f)||CI(t,n,f)};
D.prototype.isLightDescendant=function(f){var n=$u(this);return $u(n)!==f&&_.Pt(n).contains(f)&&_.Pt(n).getRootNode()===_.Pt(f).getRootNode()};
return D});
_.lH.ready=function(){var V;((V=this.hostElement)!=null?V:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var D;((D=this.hostElement)!=null?D:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.sp._subscribeIronResize=function(V){var D;((D=V.hostElement)!=null?D:V).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.sp._unsubscribeIronResize=function(V){var D;((D=V.hostElement)!=null?D:V).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var EDY=[Array,Boolean,Date,Number,Object,String],SY=function(V,D,f,n){this.polySiInfo=V;this.polySiParams=D;this.polySiContext=f;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;n||this instanceof HTMLElement&&(n=this);if(!n)throw Error("Og");this.allowedProps=D.allowedProps;this.hostElement=n;this.is=V.is;this.upgradeDisabled=!!D.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");V=new Set(D.reactiveSchemas.filter(function(t){return t.type!==
"observe"}).map(function(t){return t.propertyKey}));
this.signalProxy=new mp(this,void 0,{reactiveProps:V,reactivityMode:D.reactivityMode});this.__dataHasAccessor={};D=_.r(D.reactiveSchemas);for(V=D.next();!V.done;V=D.next())V=V.value,V.type==="signal"&&(this.__dataHasAccessor[V.propertyKey]=!0);this.upgradeDisabled||zVL(this)};
SY.prototype.getExtraMethodsToForward=function(){return[]};
var zVL=function(V){V.polySiContext.didRegister||(V.registered(),V.polySiContext.didRegister=!0);V.polySiContext.finalizedTemplate||(V.polySiContext.finalizedTemplate={},V.polySiParams.templateGetter&&(V.polySiContext.finalizedTemplate.processedTemplate=Zv9(V.polySiParams.templateGetter,V.polySiParams.is)));RVY(V);var D=V.hostElement;D.loggingStatus!=null||(D.loggingStatus={});D.loggingStatus.isInitializing=!0;rc(function(){return void V.created()});
D.loggingStatus.isInitializing=!1;V.isPolySiElementConnected&&C96(V)},C96=function(V){V.didCallReady||(rc(function(){return void V.ready()}),V.didCallReady=!0);
V.isAttached=!0;V.attached()};
_.P=SY.prototype;_.P.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||C96(this)};
_.P.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.P.attributeChangedCallback=function(V,D,f){if(this.upgradeDisabled)V==="disable-upgrade"&&f===null&&(this.upgradeDisabled=!1,zVL(this));else if(D!==f){var n=_.yR(V),t=this.polySiContext.typesForSignals[n];if(t&&(!this.reflecting||_.c("polysi_attribute_changed_serializing_killswitch"))){switch(t){case Object:try{var J=JSON.parse(f)}catch(Q){J=f}break;case Array:try{J=JSON.parse(f)}catch(Q){J=null}break;case Date:J=isNaN(f)?String(f):Number(f);J=new Date(J);break;case Boolean:J=f!==null;break;case Number:J=
Number(f);break;default:J=f}this[n]=J}n=_.r(this.polySiParams.behaviors);for(t=n.next();!t.done;t=n.next())J=void 0,(J=t.value.attributeChanged)==null||J.call(this,V,D,f);var H;(H=this.attributeChanged)==null||H.call(this,V,D,f)}};
_.P.attributeChangedCallbackWrapper=function(V,D,f){this.attributeChangedCallback(V,D,f)};
_.P.setPropertiesFromInitialAttributeValues=function(){for(var V=0;V<this.hostElement.attributes.length;V++){var D=this.hostElement.attributes[V];(D.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(D.name))&&this.attributeChangedCallback(D.name,null,D.value)}};
_.P.created=function(){this.provide=this.polySiParams.provide;var V;(V=this.initializeInjection)==null||V.call(this);V=_.r(this.polySiParams.reactiveSchemas);for(var D=V.next();!D.done;D=V.next())D=D.value,D.type==="signal"&&(this.mutablePropNames.add(D.propertyKey),qA(this.signalProxy,D.propertyKey));XGR(this,this.polySiInfo,this.polySiParams.behaviors);V=_.r(this.polySiParams.reactiveSchemas);for(D=V.next();!D.done;D=V.next())D=D.value,D.type==="signal"&&D.value!==void 0&&(this.signalProxy.model[D.propertyKey]=
typeof D.value==="function"?D.value.call(this):D.value);if(this.polySiParams.signalProperties)for(V=_.r(this.polySiParams.signalProperties),D=V.next();!D.done;D=V.next()){D=D.value;var f=void 0;((f=this.__signalCache)==null?0:f.has(D))||(this.signalProxy.model[D]=void 0)}eVE||qtU(this);qQY(this);V=_.r(this.polySiParams.behaviors);for(D=V.next();!D.done;D=V.next())f=void 0,(f=D.value.created)==null||f.call(this);var n;(n=this.polySiInfo.created)==null||n.call(this)};
_.P.registered=function(){var V=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var D=Object.getPrototypeOf(this);D.addReactiveSchema=function(Q){V.polySiParams.reactiveSchemas.push(Q)};
for(var f=_.r(this.polySiParams.behaviors),n=f.next();!n.done;n=f.next()){var t=void 0;(t=n.value.beforeRegister)==null||t.call(D)}var J;(J=this.polySiInfo.beforeRegister)==null||J.call(D);D.addReactiveSchema=aS9;f=_.r(this.polySiParams.behaviors);for(n=f.next();!n.done;n=f.next())t=void 0,(t=n.value.registered)==null||t.call(D);var H;(H=this.polySiInfo.registered)==null||H.call(D)};
_.P.ready=function(){var V;(V=this.beforeReady)==null||V.call(this);eVE&&qtU(this);var D;if(V=(D=this.polySiContext.finalizedTemplate)==null?void 0:D.processedTemplate){V=KyZ(V.template,V.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:V.hasInsertionPoint,thisCtx:this});D=V.nodesById;V=V.root;var f=this.hostElement;var n=n===void 0?!1:n;f=(0,_.Ht)(f);if(!f.attachShadow)throw Error("Hd");if(!f.shadowRoot||n)f.attachShadow({mode:"open",shadyUpgradeFragment:V}),f.shadowRoot.appendChild(V);
this.root=f.shadowRoot;this.$=D}X_Y(this);n=_.r(this.polySiParams.behaviors);for(D=n.next();!D.done;D=n.next())V=void 0,(V=D.value.ready)==null||V.call(this);var t;(t=this.polySiInfo.ready)==null||t.call(this)};
_.P.attached=function(){for(var V=_.r(this.polySiParams.behaviors),D=V.next();!D.done;D=V.next()){var f=void 0;(f=D.value.attached)==null||f.call(this)}var n;(n=this.polySiInfo.attached)==null||n.call(this)};
_.P.detached=function(){for(var V=_.r(this.polySiParams.behaviors),D=V.next();!D.done;D=V.next()){var f=void 0;(f=D.value.detached)==null||f.call(this)}var n;(n=this.polySiInfo.detached)==null||n.call(this)};
var RVY=function(V){for(var D=_.r(V.polySiParams.behaviors),f=D.next();!f.done;f=D.next())if(f=f.value,f.listeners)for(var n in f.listeners)bvY(V,V.hostElement,n,f.listeners[n]);if(V.polySiInfo.listeners)for(var t in V.polySiInfo.listeners)bvY(V,V.hostElement,t,V.polySiInfo.listeners[t])},bvY=function(V,D,f,n,t){V=baX(V,n,t);
B1(D,f,V)||D.addEventListener(f,V);return V},qtU=function(V){for(var D=_.r(V.polySiParams.reactiveSchemas),f=D.next();!f.done;f=D.next())f=f.value,f.type==="compute"||f.type==="computeWithMethod"?j1c(V.signalProxy,f,V):f.type==="redux"?e7L(V.signalProxy,f,V.store):f.type==="signal"&&f.readOnly&&GCF(V.signalProxy,f)},X_Y=function(V){for(var D=_.r(V.polySiParams.reactiveSchemas),f=D.next(),n={};!f.done;n={schema$jscomp$12:void 0},f=D.next())n.schema$jscomp$12=f.value,n.schema$jscomp$12.type==="notify"?
F1d(V.signalProxy,n.schema$jscomp$12,V.hostElement):n.schema$jscomp$12.type==="observe"?gdx(V.signalProxy,n.schema$jscomp$12,V):n.schema$jscomp$12.type==="reflect"&&V.signalProxy.effect(function(J){return function(){var H=V.signalProxy.getWithPath([J.schema$jscomp$12.propertyKey]);
V.reflecting=!0;XdF(V.hostElement,J.schema$jscomp$12.propertyKey,H,!0);V.reflecting=!1}}(n));
if(V.reflectedAttributes)for(D=_.r(Object.entries(V.reflectedAttributes)),n=D.next(),f={};!n.done;f={key$jscomp$886:void 0,value$jscomp$8929:void 0},n=D.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;f.key$jscomp$886=n;f.value$jscomp$8929=t;V.signalProxy.effect(function(J){return function(){V.reflecting=!0;XdF(V.hostElement,J.key$jscomp$886,(0,J.value$jscomp$8929)(),!0);V.reflecting=!1}}(f))}};
_.P=SY.prototype;_.P._setPendingProperty=function(V,D){this.set(V,D);return!1};
_.P._enableProperties=function(){};
_.P._setPendingPropertyOrPath=function(V,D){this.notifyPath(V,D);return!1};
_.P._addPropertyEffect=function(){};
_.P._stampTemplate=function(){throw Error("Pg");};
_.P.fire=function(V,D,f){D=D===void 0?{}:D;f=f===void 0?{}:f;var n,t,J={bubbles:(n=f.bubbles)!=null?n:!0,cancelable:!!f.cancelable,composed:(t=f.composed)!=null?t:!0},H;return _.PA(YQY((H=f.node)!=null?H:this.hostElement),V,D,J)};
_.P.get=function(V,D){var f=RU(V);return D?K1R(D,f):V==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(f)};
_.P.linkPaths=function(){};
_.P.listen=function(V,D,f){V=YQY(V);this.boundListeners!=null||(this.boundListeners=new WeakMap);var n=this.boundListeners.get(V);n||(n={},this.boundListeners.set(V,n));var t=D+f;n[t]||(n[t]=bvY(this,V,D,f))};
_.P.notifyPath=function(V,D){this.signalProxy.notifyPath(RU(V),arguments.length===2?{value:D}:void 0)};
_.P.canNotifyPath=function(V){return this.mutablePropNames.has(V)&&!h7F(this.signalProxy,V)};
_.P.notifySplices=function(V,D){this.signalProxy.notifySplices(RU(V),D)};
_.P.pop=function(V){var D=this.signalProxy;V=RU(V);var f=_.r(V);V=f.next().value;f=pJ(f);return qA(D,V).pop(f)};
_.P.push=function(V){var D=_.gQ.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[RU(V)].concat(_.sz(D)))};
_.P.set=function(V,D,f){if(f)throw Error("Qg");V==="hidden"?this.hostElement.hidden=!!D:this.signalProxy.setWithPath(RU(V),D)};
_.P.setProperties=function(V){V=_.r(Object.entries(V));for(var D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;this[D]=f}};
_.P.splice=function(V,D,f){var n=_.gQ.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[RU(V),D,f].concat(_.sz(n)))};
_.P.unlinkPaths=function(){};
_.P.unlisten=function(V,D,f){V=YQY(V);if(this.boundListeners){var n=this.boundListeners.get(V);if(n){f=D+f;var t=n[f];t&&(dv(V,D,t)||V.removeEventListener(D,t),delete n[f])}}};
_.P.unshift=function(V){var D=_.gQ.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[RU(V)].concat(_.sz(D)))};
_.IG.Object.defineProperties(SY.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 hkF=[Array,Boolean,Date,Number,Object,String];var DJd=!1;var zb=function(){var V=HTMLElement.apply(this,arguments)||this;V.restamp=!1;V.notifyDomChange=!1;V.JSC$11559_didCallConnected=!1;V.JSC$11559_renderDebouncer=null;V.disableTemplateUpdateSignalImpl=Wt()?void 0:_.HJ(!1,void 0,"Ofhkwb");var D;V.getDisableTemplateUpdate=(D=V.disableTemplateUpdateSignalImpl)==null?void 0:D[0];var f;V.setDisableTemplateUpdate=(f=V.disableTemplateUpdateSignalImpl)==null?void 0:f[1];return V};
_.v(zb,HTMLElement);var E5E=function(V){V.conditionSignalImpl!=null||(V.conditionSignalImpl=new Nd(_.HJ(!1,void 0,"gE52Fb")));return V.conditionSignalImpl};
_.P=zb.prototype;_.P.showHideChildren=function(V){A76(this,V,this.if)};
_.P.attributeChangedCallback=function(V,D,f){if(this.JSC$11559_didCallConnected)throw Error("Ug`"+V);V==="notify-dom-change"?this.notifyDomChange=f!==null:V==="restamp"&&(this.restamp=f!==null)};
_.P.debounceRender=function(){this.JSC$11559_renderDebouncer=_.DA(this.JSC$11559_renderDebouncer,N2,this.JSC$11559_renderImpl.bind(this));_.fN(this.JSC$11559_renderDebouncer)};
_.P.disconnectedCallback=function(){var V=(0,_.Ht)(this).parentNode;(!V||V.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in V&&!V.host)&&aOF(this)};
_.P.connectedCallback=function(){var V=this;this.JSC$11559_didCallConnected=!0;lOl?fOF():this.style.display="none";this.parentSignalProxy.effect(function(){E5E(V).getWithPath([]);V.debounceRender()})};
_.P.render=function(){_.oa()};
_.P.JSC$11559_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var V=this.if;if(V){a:{var D=(0,_.Ht)(this).parentNode;if(this.hasInstance()){var f=this.instance.children;if((f==null?0:f.length)&&(0,_.Ht)(this).previousSibling!==f[f.length-1])for(var n=0;n<f.length;n++)(0,_.Ht)(D).insertBefore(f[n],this)}else{if(!D){D=!1;break a}YtP(this,D)}D=!0}if(!D)return}else this.restamp&&aOF(this);A76(this,!1,V);V&&$Jr(this);GuH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.P.hasInstance=function(){return!!this.instance};
var YtP=function(V,D){var f=V.parentSignalProxy;if(Wt()){var n=_.r(_.HJ(!0,void 0,"jPhFae"));var t=n.next().value;n=n.next().value;f=V.parentSignalProxy}else{var J;var H=new mp((J=izY(V))!=null?J:{},function(T){var y=qA(V.parentSignalProxy,T).getChangeRecordSignal([]);T=_.HJ(void 0,void 0,"nE9rQb");var Z=new Nd(T);H.effect(function(){if(V.getDisableTemplateUpdate&&!V.getDisableTemplateUpdate()){var l=y();Z.notifyPath(RU(l.path),{value:l.value})}});
return Z});
V.parentSignalProxy.childSignalProxies.push(H);var Q=f=H}f=KyZ(V.templateInfo,V.templateInfo.nodeInfoList,f,{eventListenerHost:V.eventListenerHost,hasInsertionPoint:V.templateInfo.hasInsertionPoint,thisCtx:V.eventListenerHost,enabledSignal:Wt()?t:void 0,getModel:function(){return izY(V)}}).root;
V.instance={root:f,children:[],hidden:!1,signalProxy:Q,getTemplateUpdatesEnabled:t,setTemplateUpdatesEnabled:n};Q=_.r(f.childNodes);for(t=Q.next();!t.done;t=Q.next())V.instance.children.push(t.value);(0,_.Ht)(D).insertBefore(V.instance.root,V)},izY=function(V){if((V=V.parentSignalProxy.model)&&!V.hostElement){var D={},f;
for(f in V)V.hasOwnProperty(f)&&(D[f]=V[f]);return D}},aOF=function(V){if(V.instance){var D=V.instance.children;
if(D.length){var f=(0,_.Ht)(D[0]).parentNode;if(f){f=(0,_.Ht)(f);for(var n=0;n<D.length;n++)f.removeChild(D[n])}}Wt()?V.instance.setTemplateUpdatesEnabled(!1):V.instance.signalProxy.dispose();V.instance=void 0}},A76=function(V,D,f){D=D||!f;
V.instance&&V.instance.hidden!==D&&(V.instance.hidden=D,VcZ(D,V.instance.children))},$Jr=function(V){if(Wt()){var D=V.instance;
D&&z4(V.parentSignalProxy.owner,function(){return!D.getTemplateUpdatesEnabled()})&&D.setTemplateUpdatesEnabled(!0)}else V.setDisableTemplateUpdate(!1)};
_.IG.Object.defineProperties(zb.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var V=this;return z4(this.parentSignalProxy.owner,function(){return E5E(V).getWithPath([])})},
set:function(V){V||(Wt()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));E5E(this).setWithPath([],!!V)}}});
_.IG.Object.defineProperties(zb,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",zb);var Stl=[],RC=function(){var V=HTMLElement.apply(this,arguments)||this;V.as="item";V.indexAs="index";V.itemsIndexAs="itemsIndex";V.targetFramerate=20;V.notifyDomChange=!1;V.isDetached=!1;V.JSC$11566_renderDebouncer=null;V.instances=[];V.chunkingId=null;V.chunkCount=null;V.shouldMeasureChunk=!1;V.shouldContinueChunking=!1;V.renderStartTime=null;V.JSC$11566_didCallConnected=!1;return V};
_.v(RC,HTMLElement);var WsY=function(V){V.itemSignalImpl!=null||(V.itemSignalImpl=new Nd(_.HJ(Stl,void 0,"YBrqgf")));return V.itemSignalImpl},p_P=function(V,D){Array.isArray(D)||(D=Stl);
WsY(V).setWithPath([],D)};
_.P=RC.prototype;_.P.showHideChildren=function(V){for(var D=_.r(this.instances),f=D.next();!f.done;f=D.next())VcZ(V,f.value.children)};
_.P.notifyPath=function(V,D){V=RU(V);V[0]==="items"&&(V.length===1?p_P(this,D):WsY(this).setWithPath(V.slice(1),D))};
_.P.canNotifyPath=function(V){return V==="items"};
_.P.attributeChangedCallback=function(V,D,f){if(this.JSC$11566_didCallConnected)throw Error("Vg`"+V);V==="as"?this.as=f:V==="index-as"?this.indexAs=f:V==="items-index-as"?this.itemsIndexAs=f:V==="initial-count"?this.initialCount=Number(f):V==="notify-dom-change"?this.notifyDomChange=f!==null:V==="target-framerate"&&(this.targetFramerate=Number(f))};
_.P.disconnectedCallback=function(){this.isDetached=!0;for(var V=0;V<this.instances.length;V++)LsF(this,V);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.P.connectedCallback=function(){var V=this,D=WsY(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var t=D(),J=RU(t.path);if(J[0]===void 0||J[0]==="splices"||J[0]==="length")V.debounceRender();else{var H=J[0];if(H=V.instances[typeof H==="string"?Math.floor(Number(H)):H])J=[V.as].concat(_.sz(J.slice(1))),H.signalProxy.notifyPath(J,t)}});
this.JSC$11566_didCallConnected=!0;lOl?fOF():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var f=(0,_.Ht)((0,_.Ht)(this).parentNode),n=0;n<this.instances.length;n++)f.insertBefore(this.instances[n].root,this);this.chunkingId&&this.render()}};
_.P.debounceRender=function(){this.JSC$11566_renderDebouncer=_.DA(this.JSC$11566_renderDebouncer,N2,this.JSC$11566_renderImpl.bind(this));_.fN(this.JSC$11566_renderDebouncer)};
_.P.render=function(){this.debounceRender();_.oa()};
_.P.JSC$11566_renderImpl=function(){var V=this;if(!this.parentSignalProxy.isDisposed){var D=this.items,f=IOu(this,D.length);Ozr(this,D,f);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){V.chunkingId=null;if(V.shouldMeasureChunk){var n=performance.now()-V.renderStartTime;V.chunkCount=Math.round(Math.ceil(1E3/V.targetFramerate)/n*V.chunkCount)||1}V.shouldContinueChunking&&V.debounceRender()}));
GuH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var IOu=function(V,D){var f=D,n=V.instances.length;if(V.initialCount){if(V.chunkCount){var t=Math.min(Math.max(D-n,0),V.chunkCount);f=Math.min(n+t,D)}else f=Math.min(D,V.initialCount),t=Math.max(f-n,0),V.chunkCount=t||1;V.shouldMeasureChunk=t===V.chunkCount;V.shouldContinueChunking=f<D;V.renderStartTime=performance.now()}return f},Ozr=function(V,D,f){for(var n=0;n<f;n++){var t=V.instances[n],J=D[n];
t?(t.signalProxy.setWithPath([V.as],J),t.signalProxy.setWithPath([V.indexAs],n)):xJU(V,J,n)}for(D=V.instances.length-1;D>=n;D--)f=V,t=D,LsF(f,t),_.r(f.instances.splice(t,1)).next().value.signalProxy.dispose()},LsF=function(V,D){V=V.instances[D];
D=(0,_.Ht)(V.root);for(var f=0;f<V.children.length;f++)D.appendChild(V.children[f])},xJU=function(V,D,f){var n={};
D=Object.assign({},Mcl(V),(n[V.as]=D,n[V.indexAs]=f,n[V.itemsIndexAs]=f,n));var t=new mp(D,function(H){if(H!==V.as&&H!==V.indexAs){if(H===V.itemsIndexAs)return qA(t,V.indexAs);var Q=qA(V.parentSignalProxy,H).getChangeRecordSignal([]);H=_.HJ(void 0,void 0,"T21Pqc");var T=new Nd(H);t.effect(function(){var y=Q();T.notifyPath(RU(y.path),{value:y.value})});
return T}});
V.parentSignalProxy.childSignalProxies.push(t);n=KyZ(V.templateInfo,V.templateInfo.nodeInfoList,t,{eventListenerHost:V.eventListenerHost,getModel:function(){var H={};return Object.assign({},Mcl(V),(H[V.as]=t.model[V.as],H[V.indexAs]=t.model[V.indexAs],H[V.itemsIndexAs]=t.model[V.indexAs],H))},
hasInsertionPoint:V.templateInfo.hasInsertionPoint,thisCtx:V.eventListenerHost,methodInvocationRequirement:c7P,enabledSignal:V.stampingEnabled}).root;D={root:n,children:[],signalProxy:t};n=_.r(n.childNodes);for(var J=n.next();!J.done;J=n.next())D.children.push(J.value);n=(n=V.instances[f+1])?n.children[0]:V;(0,_.Ht)((0,_.Ht)(V).parentNode).insertBefore(D.root,n);V.instances[f]=D},Mcl=function(V){if((V=V.parentSignalProxy.model)&&!V.hostElement){var D={},f;
for(f in V)V.hasOwnProperty(f)&&(D[f]=V[f]);return D}};
RC.prototype.itemForElement=function(V){var D=this,f=this.instances.find(function(n){return n.children.includes(V)});
if(f)return z4(this.parentSignalProxy.owner,function(){return f.signalProxy.getWithPath([D.as])})};
RC.prototype.indexForElement=function(V){var D=this.instances.findIndex(function(f){return f.children.includes(V)});
return D>=0?D:void 0};
_.IG.Object.defineProperties(RC.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var V=this;return z4(this.parentSignalProxy.owner,function(){return WsY(V).getWithPath([])})},
set:function(V){p_P(this,V)}},
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}}});
_.IG.Object.defineProperties(RC,{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",RC);var hVl,UJL;_.C1=new _.IH("STATE_STORE_TOKEN");hVl=new _.IH("SELECT_TOKEN");UJL=new _.IH("DISPATCH_TOKEN");var r79={getSelectFn:function(){var V;return(V=_.DY().resolve(_.Vx(hVl)))!=null?V:n5Y},
getDispatchFn:function(){var V;return(V=_.DY().resolve(_.Vx(UJL)))!=null?V:_.pI().dispatch.bind(_.pI())},
getAppStore:function(){return _.DY().resolve(_.C1)}},tcc,J7U=!1;var xu={traceAllComponents:_.c("web_tracing_all_components"),exportToCsi:_.c("web_tracing_export_to_csi"),exportBreadcrumbs:_.c("web_enable_tracing"),bufferSize:_.tU("web_max_tracing_events"),enabledSpansArray:_.oT("web_tracing_enabled_spans")};var ZzU=function(){};var bzx=void 0;var V4L=function(){};
V4L.prototype.hasAttribute=function(V){if(V==="dir")return!1;if(V==="disable-upgrade"){var D,f;return(f=(D=this.hostElement)==null?void 0:D.hasAttribute("disable-upgrade"))!=null?f:!1}throw Error("Wg`"+V);};
V4L.prototype.attributeChangedCallbackWrapper=function(V,D,f){if(V==="disable-upgrade"&&this.__isUpgradeDisabled&&f===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var n;((n=this.hostElement)!=null?n:this).isConnected&&this.connectedCallback()}else D===f||this.__isReflecting||this.attributeChangedCallback(V,D,f)};
V4L.prototype.getExtraMethodsToForward=function(){for(var V=this,D=[],f=_.r(DzF),n=f.next(),t={};!n.done;t={tagName$jscomp$54:void 0,name$jscomp$534:void 0},n=f.next())t.name$jscomp$534=n.value,n=void 0,t.name$jscomp$534==="_setPendingProperty"?(t.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),n=function(J){return function(H,Q,T){gI(J.tagName$jscomp$54,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return V._setPendingProperty(H,Q,T)}}(t)):n=function(J){return function(){return V[J.name$jscomp$534].apply(V,
_.sz(_.gQ.apply(0,arguments)))}}(t),D.push([t.name$jscomp$534,
n]);return D};
for(var Gun=mJU(Ntl((0,_.yj)(V4L))),g59=["disabled","disable-upgrade"],fhH=(0,_.yj)(function(){}),n2u=new Set(Object.getOwnPropertyNames(fhH.prototype)),dJR=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.sz(n2u))),ku3=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DzF=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),t4l=new Set([].concat(_.sz(ku3),_.sz(DzF),_.sz(n2u))),PIl=_.r(t4l),o2V=PIl.next();!o2V.done;o2V=PIl.next())WcZ.add(o2V.value);var BtU={created:function(){qQY(this);this.initializeInjection()}};var E5R=!1,Db=window.ShadyDOM,p_Z=["appendChild","insertBefore","removeChild","replaceChild"],WsX=[Node];Db&&WsX.push(Db.Wrapper);var hVY,UJU,fhn={};var t2=new Set,fm="",n2d="";var nm,Pr=new Set;var TSd=new Set("context didCallReady is info params signalProxy".split(" ")),KNx="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),y09="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var J0l=TR({entities:HNn}),r0p=new IW(J0l);var H56=function(){return _.lU.apply(this,arguments)||this};
_.v(H56,_.lU);_.IG.Object.defineProperties(H56.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return r0p}}});
_.S([_.Gy()],H56);_.qd=[dC.prototype,H56.prototype];_.X_={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var V=this,D={};setTimeout(function(){var f;return _.PA((f=V.hostElement)!=null?f:V,"yt-live-chat-add-tooltip-target",D)},0);
this.handler_=D.handler},
detached:function(){if(this.handler_){var V;this.handler_.removeElementFromSupportingTooltips((V=this.hostElement)!=null?V:this)}this.handler_=null}}};_.TK=new _.IH("ICON_MANAGER_TOKEN");var wvF=[48,20,18,16,15,13,12],E2R=new Map,mzL=new Set,dzc=new Set,NS9=new Set,BSZ=new Set,u0x=new Set,Rnc=new Promise(function(V){var D=!1,f=!1,n=!1,t=[],J=function(H){if("detail"in H)if(H=H.detail,H.name==="yt-icons")znx(H),D=!0;else if(H.name==="yt-sys-icons")znx(H),f=!0;else{var Q;((Q=H.name)==null?0:Q.includes("yt-sys-icons"))&&H.size!==24&&(znx(H,!0),t.push(H.size),t.length===wvF.length&&(n=!0))}D&&f&&n&&(window.removeEventListener("iron-iconset-added",J),V())};
window.addEventListener("iron-iconset-added",J)}),qSd=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"]]);_.EY={};_.EY.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.LA,computeHref_:function(V,D){D=D===void 0?!1:D;if(!V||V.commandExecutorCommand)return null;var f=Sm9(V,D);return D||f!==null?f?_.c("enable_polymer_resin")?_.cS(f).toString():f:null:(_.zP(new _.cI("computeHref was null",this.is,V)),null)},
computeOptionalHref_:function(V){return this.computeHref_(V,!0)},
computeNofollow_:function(V){return V?CSY(V)?"nofollow":null:null},
computeIcon_:function(V){return V&&V.iconType?_.Qa(V.iconType):""},
resolveCommand:function(V,D,f){D=D===void 0?{}:D;return _.Km(V,this.hostElement,D,f===void 0?!1:f)}};var TSu,A5;_.QuV={};TSu=null;
A5={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_=uAx(this.viewroot));_.aU(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var V=this;this.unobserve_();if(_.c("kevlar_vimio_use_shared_monitor"))i59(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 D=[];this.visibilityOptionVisible_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=D}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){A0Y(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 V=_.qr(this.parentNode,function(f){var n,t=(n=f.polymerController)!=null?n:f;return!!t.getVisibilityObserverForChild&&t.getVisibilityObserverForChild()},!0);
if(V){var D;this.localVisibilityObserver_=((D=V.polymerController)!=null?D:V).getVisibilityObserverForChild()}else TSu||(TSu=uAx()),this.localVisibilityObserver_=TSu;return this.localVisibilityObserver_},visibilityCallback:function(V){V?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.c("kevlar_use_vimio_behavior")||(A5={});A5&&!_.c("kevlar_use_vimio_behavior")&&(delete A5.attached,delete A5.detached);_.QuV.YtVisibilityObserverBehavior=[A5];var b5o={};b5o.YtVisualElementBehavior=[_.QuV.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.c("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var V=this.getScreenLayer&&this.getScreenLayer(),D=this.getVisibilityLogger();D&&D.reportShown(this,void 0,V)}},
onHidden:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.c("kevlar_vimio_use_shared_monitor")){var V=this.getScreenLayer&&this.getScreenLayer(),D=this.getVisibilityLogger();D&&D.reportHidden(this,void 0,V)}},
getVisibilityLogger:function(){return _.c("kevlar_use_vimio_behavior")?_.Zb():null},
shouldSkipLogging:function(){if(_.XB("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var V=this.getParentRenderer&&this.getParentRenderer();if(!V)return!1;var D,f=(D=V.polymerController)!=null?D:V;if(!f.data)return!1;V=this.data.trackingParams;V=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:V;var n;D=(n=f.data)==null?void 0:n.trackingParams;var t,J;D=((t=f.data)==null?0:t.loggingDirectives)?(J=f.data)==null?void 0:J.loggingDirectives.trackingParams:D;return V&&D&&V===
D}}];var pvU=new Map,vr;var Yfc=function(V){this.layer=V},T3=function(V){return V.layer!==void 0?V.layer:V.parent?T3(V.parent):V.layer=0};var hnR;_.U={};hnR=0;_.U.YtRendererBehavior=[_.EY.YtComponentBehavior,b5o.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_:_.c("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var V,D;(D=(V=this.monitorScrollElement)!=null?V:this.hostElement)==null||D.removeEventListener("scroll",_.Ty(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();SS9(this.hostElement);vDF(_.cX(),this.hostElement);O2.delete(this.hostElement)},
registerRenderer:function(V){var D;((D=V.polymerController)!=null?D:V).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(V),this.markDirty())},
unregisterRenderer_:function(V){this.useVimio_||(this.childCache_.delete(V),this.markDirty())},
attached:function(){var V=this,D=this.getParentRenderer();if(D){var f,n,t;(n=(f=(t=D.polymerController)!=null?t:D).registerRenderer)==null||n.call(f,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var J,H;(H=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||H.addEventListener("scroll",_.Ty(this,this.onScroll))}_.dm.addJob(function(){LNY(V.hostElement)},8);
f=new Yfc(this.screenLayer||void 0);(D=O2.get(D))&&D.layerNode&&(f.parent=D.layerNode);D={};CiL(this.hostElement,(D.isRenderer=!0,D.layerNode=f,D[$fc]=this.data,D))},
getParentRenderer:function(){for(var V=this.hostElement.parentNode,D,f;V&&((D=O2.get(V))==null||!D.isRenderer)&&!((f=V.polymerController)!=null?f:V).isRenderer_;)V=V.parentNode||V.host;return V},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.c("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.EG("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.c("debug_web_ve_data")&&this.data.trackingParams){var V="";try{V=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(f){_.NG(f)}if(V){var D=oo3(V,1);D!==void 0&&(this.hostElement.dataset.veIndex=String(D));V=oo3(V,2);
V!==void 0&&(this.hostElement.dataset.ve=String(V))}}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,_.c("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.gs(this.data.loggingDirectives.trackingParams)),this.visualElement=_.jD(_.lS(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var V=this.data.targetId;_.sDr(_.cX(),V,this.hostElement)}else vDF(_.cX(),this.hostElement)},
onScroll:function(){var V=Date.now();V-this.lastHandledScroll_<50||(this.lastHandledScroll_=V,this.markDirty())},
markDirty:function(){_.c("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Uz3(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var V=this.getParentRenderer();if(V&&(V=O2.get(V))&&V.layerNode)return T3(V.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.sz(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var V=0;V<this.data.impressionEndpoints.length;V++)this.sendImpression(this.data.impressionEndpoints[V]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(V){V.clickTrackingParams&&delete V.clickTrackingParams;var D,f;(V==null?0:(D=V.commandMetadata)==null?0:(f=D.webCommandMetadata)==null?0:f.sendPost)?_.HA(this.hostElement,[V,{impression:!0}]):_.wN(this.hostElement,[V],this.hostElement)},
logExplicitClick:function(V){var D=_.Ni(this.getScreenLayer());if(D){var f,n=(f=V.polymerController)!=null?f:V;V=n.visualElement;n=n.trackingParams||n.clickTrackingParams;!V&&n&&(V=_.gs(n));V&&_.p6(D,V)}}}];var KNo={},aC=function(){return _.lU.apply(this,arguments)||this};
_.v(aC,_.lU);aC.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
aC.prototype.onPdgItemBehaviorClick=aC.prototype.onPdgItemBehaviorClick;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],aC.prototype,"data",void 0);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],aC.prototype,"onPdgItemBehaviorClick",null);_.S([_.Gy()],aC);KNo.YtPdgLiveChatItemBehavior=[aC.prototype,_.U.YtRendererBehavior];var y0F;var Z5l;_.Ym={};_.Ym.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var $m=function(){var V=M2.apply(this,arguments)||this;V.switchTemplateAtRegistration=!1;return V};
_.v($m,M2);$m.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||nXY(this),_.NbL(this,"doRender"),this.doRender())};
$m.prototype.debounceRender=function(){this.templatingFn&&_.Yu(this,"doRender",this.doRender)};
$m.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.NG(Error("fh"))};
$m.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.S([F$3()],$m);var juY=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,iV={},JdL=(iV[1]={filterString:null,isUnwrappable:null,unwrap:null},iV[2]={filterString:function(V,D,f){return o7(f)},
isUnwrappable:function(V){return V instanceof BS},
unwrap:function(V){return uv(V)}},iV[3]={filterString:function(V,D,f){return juY.test(f)?f:eo.toString()},
isUnwrappable:function(V){return Kc(V)},
unwrap:function(V){return _.y2(V)}},iV[4]={filterString:function(){return eo.toString()},
isUnwrappable:function(V){return V instanceof JL},
unwrap:function(V){return _.HS(V).toString()}},iV[5]={filterString:function(V,D,f){return f},
isUnwrappable:function(V){return typeof V==="string"},
unwrap:function(V){return V.toString()}},iV[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(V){return V instanceof _.Xt},
unwrap:function(V){return AL(V)}},iV[8]={filterString:function(V,D,f){f=String(f).toLowerCase();
return QO3(V,D,f)?f:"zClosurez"},
isUnwrappable:null,unwrap:null},iV[10]={filterString:null,isUnwrappable:null,unwrap:null},iV);Oq[E0["default"]]=HFn;var wpZ=[];var krn=TJL("A"),sdc=TJL("BUTTON"),gk=TJL("DIV"),B1F=TJL("LABEL");(function(){var V=O0;O0=function(D){V==null||V(D);ds(function(){for(var f=0;f<D.length;f++)Q_Z(D[f])})}})();var lhP=function(){var V=_.lU.apply(this,arguments)||this;V.hasUnmounted=!1;return V};
_.v(lhP,_.lU);_.P=lhP.prototype;_.P.beforeRegister=function(){var V=this.doIdomRender;this.templatingFn?_.NG(Error("eh")):(this.templatingFn=V,this.switchTemplateAtRegistration=!0,oX9(this))};
_.P.attached=function(){};
_.P.detached=function(){Q_Z(this.hostElement)};
_.P.renderIdom=function(){throw Error("hh");};
_.P.doIdomRender=function(){var V=this;fnY(this.hostElement,function(){V.renderIdom()})};
_.S([_.Gy()],lhP);var G7E=[$m.prototype,lhP.prototype];var enr,c0U=function(){return enr!==void 0?enr:enr=document.createElement("template")};
document.head.appendChild(c0U().content);var FN6;var g2V,v2l=function(){return g2V!==void 0?g2V:g2V=document.createElement("template")};
document.head.appendChild(v2l().content);var k7P;var sul=document.head,BSF=sul.appendChild,dzr;if(k7P===void 0){var u0o=document.createElement("template");_.B(u0o,"\x3c!--css-build:shady--\x3e");u0o.content.insertBefore(v2l().content.cloneNode(!0),u0o.content.firstChild);k7P=u0o}dzr=k7P;BSF.call(sul,dzr.content);var NSl,mzU=function(){return NSl!==void 0?NSl:NSl=document.createElement("template")};
document.head.appendChild(mzU().content);var zno;var Rnr=document.head,CIH=Rnr.appendChild,qSu;if(zno===void 0){var Xvl=document.createElement("template");_.B(Xvl,"\x3c!--css-build:shady--\x3e");Xvl.content.insertBefore(mzU().content.cloneNode(!0),Xvl.content.firstChild);zno=Xvl}qSu=zno;CIH.call(Rnr,qSu.content);var E2E=document.head,A0V=E2E.appendChild,ahp;if(FN6===void 0){var YSU=document.createElement("template");_.B(YSU,"\x3c!--css-build:shady--\x3e");YSU.content.insertBefore(c0U().content.cloneNode(!0),YSU.content.firstChild);FN6=YSU}ahp=FN6;A0V.call(E2E,ahp.content);var $zp,i5F=function(){return $zp!==void 0?$zp:$zp=document.createElement("template")};
document.head.appendChild(i5F().content);var SSF;_.pm=new _.IH("DARK_THEME_TOKEN");var nhR=new _.L("accessibilityProperties");var fP9=new _.L("layoutProperties");var tU9=new _.L("imageType");var WNE={};if("ytAttributedStringLinkHoverColor"in WNE)throw Error("kh`ytAttributedStringLinkHoverColor");(function(V,D){WNE[V]="value"in D&&"unit"in D?j_R(V,D):function(f){try{return D(f)}catch(n){throw Error("ih`"+V+"`"+n.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var pvL=function(V){var D=this;this.holdTime=V===void 0?500:V;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(f){var n=new CustomEvent("LONG_PRESS"),t;(t=f.changedTouches[0].target)==null||t.dispatchEvent(n)};
this.ontouchstart=function(f){D.longPressTimeout=_.sw(_.dm,function(){D.onlongpress(f);D.longPressOccurred=!0},D.holdTime)};
this.ontouchmove=function(){_.dm.cancelJob(D.longPressTimeout);D.longPressTimeout=NaN;D.longPressOccurred=!1;D.moveOccurred=!0};
this.ontouchend=function(f){if(D.longPressTimeout&&!D.longPressOccurred&&!D.moveOccurred){var n;(n=f.changedTouches[0].target)==null||n.dispatchEvent(new Event("click"))}_.dm.cancelJob(D.longPressTimeout);D.longPressTimeout=NaN;D.longPressOccurred=!1;D.moveOccurred=!1}};var AdR=function(V,D){pvL.call(this,D);var f=this;this.callback=V;this.onlongpress=function(n){var t;(t=f.callback)==null||t.call(f,n)}};
_.v(AdR,pvL);var aEd=function(V,D){var f=Object.assign({},D);V=_.r(new Map([["ontouchstart",V.ontouchstart],["ontouchend",V.ontouchend],["ontouchmove",V.ontouchmove]]));for(var n=V.next(),t={};!n.done;t={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},n=V.next()){var J=_.r(n.value);n=J.next().value;J=J.next().value;t.eventName$jscomp$85=n;t.eventHandler$jscomp$1=J;D[t.eventName$jscomp$85]=function(H){return function(Q){var T;(T=f[H.eventName$jscomp$85])==null||T.call(f,Q);(0,H.eventHandler$jscomp$1)(Q)}}(t)}};_.fH=new _.IH("COMMAND_HANDLER_TOKEN");var Gi9=new _.L("parallelCommand");var FZZ=new _.L("performOnceCommand");var cd3=new _.L("serialCommand");var gXR=void 0;var LNl=function(){this.data=[];this.consumer=null};
LNl.prototype.push=function(V){this.consumer?this.consumer(V):this.data.push(V)};var Dr={};_.HJ(Dr,void 0,"sgPmTd");_.HJ(null,void 0,"jypsq");_.HJ(null,void 0,"mWiOof");var UDF=new LNl;var mOx=[uqx,NdX,mVX,R$Y,z$X,dVX,CPd,qPU];var VUX=new _.L("bracketTextDecorator");var SD=new _.L("highlightTextDecorator");_.I5=new _.IH("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var OFY=function(){},IhY;
(IhY=window.requestIdleCallback)==null||IhY.bind(window);var MfU={calledOnce:!1,state:"visible"},xOc={calledOnce:!1,state:"hidden"};var O5o=new _.IH("ICON_WIZ_COMPONENT_TOKEN");_.cj=_.MA(function(V){var D=V.icon;var f=V.active;var n=V.className;var t=V.style;var J=V.dataSelected;var H=V.dataDisabled;var Q=V.role;var T=V.animateIcon;var y=V.themeOverride;var Z=V.ariaHidden;var l=V.ariaExpanded;var G=V.ariaLabel;var F=V.tabindex;var k=V.id;var d=V.size;var z=V.iconFilter;return _.K(_.e,{cond:D,then:function(){var C=_.DY().resolve(O5o);return _.K(C,{icon:D,dataSelected:J,dataDisabled:H,animateIcon:T,themeOverride:y,ariaExpanded:l,tabindex:F,id:k,active:f,size:d,role:Q,className:n,
ariaHidden:Z,ariaLabel:G,style:function(){return t!=null&&t()||d==null||!d()?t==null?void 0:t():"width: "+(d==null?void 0:d())+"px;height: "+((d==null?void 0:d())+"px;")},
iconFilter:z})}})},"b");
_.cj.idomCompat=!0;var eT9=window.devicePixelRatio||1;var vhL=new Map([["yt_outline_bag_black_24","bag"]]);var S2=function(V){var D=this;this.margin=.1;this.whenInViewportWithMargin=V;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){D.requestScan()});
window.addEventListener("touchend",function(){D.requestScan()});
window.addEventListener("updateui",function(){D.requestScan()});
var f=new _.I7((0,_.F1)(this.requestScan,this),100);window.addEventListener("scroll",function(){f.fire()},!0);
window.addEventListener("resize",(0,_.F1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){D.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.F1)(this.requestScan,this))};
S2.prototype.observe=function(V){this.observationTargets.includes(V)||this.observationTargets.push(V)};
S2.prototype.unobserve=function(V){this.observationTargets=this.observationTargets.filter(function(D){return D!==V})};
S2.prototype.requestScan=function(){var V=this;this.scanRequested||(ds(function(){xzP(V)}),this.scanRequested=!0)};
var xzP=function(V){var D=(1+V.margin)*(document.documentElement.clientHeight||window.innerHeight);V.observationTargets=V.observationTargets.filter(function(f){var n=f.getBoundingClientRect();(n=D>n.top&&!!n.height)&&V.whenInViewportWithMargin(f);return!n&&f.parentNode});
V.scanRequested=!1};
S2.prototype.disconnect=function(){this.observationTargets=[]};var M4Y,Uz6;M4Y=_.r(_.HJ(uj3(),void 0,"O3X2wd"));_.hnE=M4Y.next().value;Uz6=M4Y.next().value;window.addEventListener("resize",function(){Uz6(uj3())});var Vfr={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},DOL=void 0,fEY=window.innerWidth,nXl=window.innerHeight;window.addEventListener("resize",function(){DOL=void 0});var tfL;if("IntersectionObserver"in window)tfL=zTY();else{if(DOL===void 0){var Prr;Prr="matchMedia"in window?window.matchMedia(Vfr.landscape+","+Vfr.portrait).matches:void 0;DOL=Prr!==void 0?Prr:fEY>=930&&nXl>=550||fEY>=550&&nXl>=930}tfL=DOL?{observe:function(V){ds(function(){var D;(D=V.onViewportEntered)==null||D.call(V)})},
unobserve:function(){}}:new S2(function(V){ds(function(){var D;
(D=V.onViewportEntered)==null||D.call(V)})})}var NiX=tfL;var oXF=_.MA(function(V){var D=!1,f=_.W2("img",function(n){_.dc(function(){D=!0;n.onload=null})});
_.BJ(function(){var n,t=(n=V.data)==null?void 0:n.call(V),J,H=(J=V.getSrc)==null?void 0:J.call(V).cb,Q;n=(Q=V.config)==null?void 0:Q.call(V);if(Q=f.value)if(J=function(y,Z){if(!D)return H?H(y,Z):y},qHZ(Q,n),_.c("web_image_dont_reload_same_src")&&CjF(Q,t,J))_.c("web_image_dont_reload_same_src_simulate_load")&&Q.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var T;RT9(Q,t||null,J,n,(T=V.lazy)==null?void 0:T.call(V))}},"v0I2p");
return _.K("img",{el:f})},"c");
oXF.idomCompat=!0;_.xt=_.MA(function(V){var D=function(){var f,n=V.data(),t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ,ZZ,sd,NU,Bn,aY,Ed,V0,kf;var mY={contentMode:(t=V.contentMode)==null?void 0:t.call(V),loadedClass:(J=V.loadedClass)==null?void 0:J.call(V),isPreloaded:(H=V.isPreloaded)==null?void 0:H.call(V),notifyOnLoaded:(Q=V.notifyOnLoaded)==null?void 0:Q.call(V),notifyOnUnloaded:(T=V.notifyOnUnloaded)==null?void 0:T.call(V),preferredThumbnail:(y=V.preferredThumbnail)==null?void 0:y.call(V),preserveHeight:(Z=V.preserveHeight)==
null?void 0:Z.call(V),preserveWidth:(l=V.preserveWidth)==null?void 0:l.call(V),objectPosition:(G=V.objectPosition)==null?void 0:G.call(V),targetWidth:(F=V.targetWidth)==null?void 0:F.call(V),targetHeight:(k=V.targetHeight)==null?void 0:k.call(V),shouldShowPlaceholder:(d=V.shouldShowPlaceholder)==null?void 0:d.call(V),useWidth:(z=V.useWidth)==null?void 0:z.call(V),isToggled:(C=V.isToggled)==null?void 0:C.call(V),alt:(A=V.alt)==null?void 0:A.call(V),className:(O=V.className)==null?void 0:O.call(V),
onerror:V.onerror,onload:V.onload,style$:((W=V.style$)==null?void 0:W.call(V))||((I=V.style)==null?void 0:I.call(V)),color:(x=V.color)==null?void 0:x.call(V),width:(oY=V.width)==null?void 0:oY.call(V),height:(wZ=V.height)==null?void 0:wZ.call(V),"aria-hidden$":(V0=(ZZ=V["aria-hidden$"])==null?void 0:ZZ.call(V))!=null?V0:(sd=V.ariaHidden)==null?void 0:sd.call(V),draggable:(NU=V.draggable)==null?void 0:NU.call(V),"data-disabled$":(kf=(Bn=V["data-disabled$"])==null?void 0:Bn.call(V))!=null?kf:(aY=V.dataDisabled)==
null?void 0:aY.call(V),size:(Ed=V.size)==null?void 0:Ed.call(V)};return AsR(n,mY,(f=V.hideOn404)==null?void 0:f.call(V))};
return _.K(_.kw,null,_.K(_.gj,{when:function(){var f;return((f=D())==null?void 0:f.type)==="image"}},function(){return _.K(oXF,{data:function(){return D().image},
getSrc:{cb:function(f,n){var t=D().image.sources,J=D().config.isPreloaded,H=D().config.useWidth,Q=D().config.targetWidth,T=D().config.targetHeight,y=D().config.preferredThumbnail;return _.csZ(n,t,J,H,Q,T,y)||""}},
config:function(){var f=D().config,n;for(n in f)f[n]===void 0&&delete f[n];return f},
lazy:V.renderLazy})}),_.K(_.gj,{when:function(){var f;
return((f=D())==null?void 0:f.type)==="icon"}},function(){return _.K(_.cj,{icon:function(){return D().iconName},
role:function(){return D().config.role},
className:function(){return D().config.className},
style:function(){return D().config.style$+";width: "+(D().config.width+"px;height: ")+(D().config.height+"px;color: ")+(D().config.color+";")},
ariaLabel:function(){return D().config["aria-label$"]},
ariaHidden:function(){return D().config["aria-hidden$"]},
dataDisabled:function(){return D().config["data-disabled$"]},
active:function(){return D().config.isToggled},
size:function(){return D().config.size}})}))},"d");
_.xt.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var JdU=function(V){return function(D){return _.K(GkU,null,function(){var f=D.data(),n=_.Nq(D.config);return _.K(Ly,null,function(){return void V(f,n)})})}}(SHU),$I9=_.MA(function(V){var D=function(n){var t,J=_.h2(function(G){t=ub(function(){for(var F=_.r(Z()),k=F.next();!k.done;k=F.next()){k=WeZ(k.value);
k=typeof k==="string"?document.createTextNode(k):k;if(!(k instanceof Node)){F=new _.cI("Part is not a node",k,typeof k);_.NG(F);break}G.appendChild(k)}})}),H=Um(function(){return ohL(n())},{isEqual:YHU}),Q=_.IU(V.config),T=function(){var G,F=H();
return!((G=Q())==null||!G.ariaLabel)||!(F.commandRuns&&F.commandRuns.length!==0||F.paragraphStyleRuns&&F.paragraphStyleRuns.length!==0)},y=Um(Q,{isEqual:LeR}),Z=function(){var G=PjR(H(),y());
rsd(G,y());return H().content?KeY(H().content,G).parts:[]},l=!0;
_.BJ(function(){H();y();if(l)l=!1;else{var G=Z();Promise.resolve().then(function(){var F=J.value;if(F){F.innerText="";var k;(k=t)==null||k();t=_.sG(F,function(){return _.K(pin,{parts:G})})}})}},"YlhjWd");
return _.K("span",{el:J,class:function(){return H()&&WZ9(H(),Q())},
dir:function(){var G;return((G=Q())==null?0:G.userInput)?"auto":void 0},
"aria-label":function(){var G;return T()?(G=Q())==null?void 0:G.ariaLabel:void 0},
role:function(){return T()?"text":void 0}})},f;
return((f=V.config)==null?0:f.renderedFromFormattedString)?D(V.text):_.K(_.e,{cond:V.text,then:D})},"e");
$I9.idomCompat=!0;_.Ow=_.MA(function(V){var D=_.IU(V.text),f=IPF(V);V.renderedFromFormattedString!==void 0&&(f.renderedFromFormattedString=!0);return _.c("attr_string_reactive")?_.K($I9,{text:D,config:f}):_.K(_.e,{cond:function(){var n;return D()&&((n=ohL(D()))==null?void 0:n.content)},
then:function(){return _.K(JdU,{data:V.text,config:f})},
debugInstance:"Apcuac"})},"f");
_.Ow.idomCompat=!0;var xIn=function(V,D,f){D=D===void 0?"unknown":D;f=f===void 0?{}:f;_.cI.call(this,V+" ("+D+")",Object.assign({},{name:"YtWcwError",tagName:D},f));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(xIn,_.cI);_.f4F=new WeakMap;_.DBU=!1;var Vmx,n3F,UIn;_.WX=Symbol("mh");_.Dn=Symbol("nh");Vmx=Symbol("oh");n3F=new Set(Object.getOwnPropertyNames(Element.prototype));UIn=Symbol("ph");var rdP=_.MA(function(V){return _.K("yt-attributed-string",{"aria-label":V.ariaLabel,hidden:V.hidden,id:V.id,class:V.className,"force-default-style":V.forceDefaultStyle},_.K(_.Ow,{text:V.data,ariaLabel:V.ariaLabel,ellipsisTruncate:V.ellipsisTruncate,isOverlay:V.isOverlay,linkInheritColor:V.linkInheritColor,noPreWrap:V.noPreWrap,noWrap:V.noWrap,userInput:V.userInput,noEndpoints:V.noEndpoints,headerRuns:V.headerRuns}))},"g");
_.c("web_wiz_attributed_string")&&_.fT(rdP,"yt-attributed-string",{props:{ariaHidden:_.WX,ariaLabel:_.WX,className:_.WX,ellipsisTruncate:_.WX,isOverlay:_.WX,linkInheritColor:_.WX,noEndpoints:_.WX,noStyleRuns:_.WX,noLinkColor:_.WX,noPreWrap:_.WX,noWrap:_.WX,skipOnClick:_.WX,userInput:_.WX,headerRuns:_.WX,id:_.WX,data:_.WX,hidden:_.WX,forceDefaultStyle:_.WX,text:_.Dn,stopPropagation:_.Dn,disableUpgrade:_.Dn,disable:_.Dn,slot:_.Dn}});var p1=function(){return _.E.apply(this,arguments)||this};
_.v(p1,_.E);p1.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},SHU(this.data,this.config))};
_.S([_.u(G7E),_.p("design:type",Object)],p1.prototype,"ytIdomTemplatingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],p1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],p1.prototype,"ariaLabel",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"disable",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"ellipsisTruncate",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"isOverlay",void 0);
_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"linkInheritColor",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"noPreWrap",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"noWrap",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"userInput",void 0);_.S([_.q(),_.p("design:type",Boolean)],p1.prototype,"noEndpoints",void 0);_.S([_.q(),_.p("design:type",Array)],p1.prototype,"headerRuns",void 0);
_.S([_.zy({is:"yt-attributed-string",disableElementRegistration:!0})],p1);
_.c("web_wiz_attributed_string")||_.Y(p1,"yt-attributed-string",function(){if(SSF===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
V.content.insertBefore(i5F().content.cloneNode(!0),V.content.firstChild);SSF=V}V=SSF;return V},{mode:2});var HFH,wpF,wKY;HFH=function(){this.firstThumbnailLoaded=!1};
_.Q_F=function(){wpF||(wpF=new HFH);return wpF};
wKY=function(V){var D=_.Q_F();D.firstThumbnailLoaded||(D.firstThumbnailLoaded=!0,_.zm("ftl",V))};
HFH.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Ps9=0,Hjc=new WeakMap,JMF=0,Pj=new Set;var TJU,bFV=function(){return TJU!==void 0?TJU:TJU=document.createElement("template")};
document.head.appendChild(bFV().content);var KZu;var KoR,Zj9,L1;_.rk=_.fx.caches;L1=function(){};
L1.prototype.open=function(V){return _.rk.open(ydU(V))};
L1.prototype.has=function(V){return _.rk.has(ydU(V))};
L1.prototype.delete=function(V){return _.rk.delete(ydU(V))};
L1.prototype.match=function(V,D){var f=this,n,t,J,H,Q,T;return _.w(function(y){switch(y.nextAddress){case 1:return _.b(y,f.keys(),2);case 2:n=y.yieldResult,t=_.r(n),J=t.next();case 3:if(J.done){y.jumpTo(5);break}H=J.value;return _.b(y,f.open(H),6);case 6:return Q=y.yieldResult,_.b(y,Q.match(V,D),7);case 7:if(T=y.yieldResult)return y.return(T);J=t.next();y.jumpTo(3);break;case 5:return y.return()}})};
var jJn=function(){};
_.v(jJn,L1);var ydU=function(V){if(V.includes(":"))throw Error("sh`"+V);return V+":"+_.G5("CacheStorage get")};
jJn.prototype.keys=function(){var V,D,f,n,t,J,H,Q,T;return _.w(function(y){if(y.nextAddress==1)return V=[],D=_.G5("CacheStorage keys"),_.b(y,_.rk.keys(),2);f=y.yieldResult;n=_.r(f);for(t=n.next();!t.done;t=n.next())J=t.value,H=_.bjZ(J),Q=H.originalName,T=H.datasyncId,T===D&&V.push(Q);return y.return(V)})};var IC=function(){var V=_.E.apply(this,arguments)||this;V.objectURL=null;V.loadTime=Infinity;return V};
_.v(IC,_.E);_.P=IC.prototype;_.P.renderIdom=function(){Trd(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&Xic(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.P.objectFitToContentMode=function(V){switch(V){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.P.logThumbnailFailureVe=function(){var V=_.Bj(197497);_.oj(_.lS(),V);var D=_.Ni();D&&V&&D&&_.SJ(D,[V])};
_.P.loadImageFromCacheIfExists=function(V){var D=this,f=V.target;(f==null?0:f.src)&&GXR(f.src).then(function(n){D.objectURL=_.Ft(n).toString();D.setSrc(f,D.objectURL)}).catch(function(){})};
_.P.onError=function(V){var D=this;if(_.c("web_use_cache_for_image_fallback")){var f=V.target;f&&GXR(f.src).then(function(n){D.objectURL=_.Ft(n).toString();D.setSrc(f,D.objectURL)}).catch(function(){_.c("kevlar_woffle_log_thumbnail_failure_ve")&&D.logThumbnailFailureVe();
_.c("kevlar_woffle_fallback_image")&&D.setSrc(f,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.P.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.P.setConfig=function(){var V=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(D){V.loadImageFromCacheIfExists(D);V.revokeObjectURL();QJd(V.hostElement)},
onerror:function(D){V.onError(D)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.c("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.P.setSrc=function(V,D){D&&(V.src=D)};
_.S([_.u(G7E),_.p("design:type",Object)],IC.prototype,"ytIdomTemplatingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],IC.prototype,"alt",void 0);_.S([_.q(),_.p("design:type",Boolean)],IC.prototype,"ftlEligible",void 0);_.S([_.q(),_.p("design:type",Number)],IC.prototype,"height",void 0);_.S([_.q(),_.p("design:type",Boolean)],IC.prototype,"notifyOnLoaded",void 0);
_.S([_.q(),_.p("design:type",Boolean)],IC.prototype,"notifyOnUnloaded",void 0);_.S([_.q(),_.p("design:type",String)],IC.prototype,"objectFit",void 0);_.S([_.q(),_.p("design:type",String)],IC.prototype,"objectPosition",void 0);_.S([_.q(),_.p("design:type",String)],IC.prototype,"preferredThumbnail",void 0);_.S([_.q(),_.p("design:type",Boolean)],IC.prototype,"preserveHeight",void 0);_.S([_.q(),_.p("design:type",Boolean)],IC.prototype,"preserveWidth",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],IC.prototype,"useWidth",void 0);_.S([_.q({value:function(){return!_.EG("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.p("design:type",Boolean)],IC.prototype,"shouldRenderLazy",void 0);_.S([_.q(),_.p("design:type",Number)],IC.prototype,"width",void 0);_.S([_.zy({is:"yt-image",disableElementRegistration:!0})],IC);
_.Y(IC,"yt-image",function(){if(KZu===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(bFV().content.cloneNode(!0),V.content.firstChild);
KZu=V}V=KZu;return V},{mode:2});var OY=function(){return _.E.apply(this,arguments)||this};
_.v(OY,_.E);OY.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var V=_.Xo(this.data.onVisibleCommand);V&&this.ytComponentBehavior.resolveCommand(V)}};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],OY.prototype,"ytVisibilityBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OY.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],OY);
_.Y(OY,"yt-bumper-user-edu-content-view-model",function(){if(Z5l===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;y0F===void 0&&(y0F=document.createElement("template"));var n=y0F;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Z5l=V}V=Z5l;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZFo;var j_E,lEU=function(){if(j_E!==void 0)return j_E;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;ZFo===void 0&&(ZFo=document.createElement("template"));var n=ZFo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return j_E=V};var Gil;_.xm={};Gil=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"]);_.xm.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var V=this.getContext_();return V?V.getTaskManager():_.dm},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var V=_.PA(this.hostElement,"yt-get-context-provider",{});V.detail&&V.detail.contextProvider?this.cachedProviderNode_=V.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Gil.has(this.hostElement.localName)},
getNetworkManager:function(){var V=this.getContext_();if(V)return V.getNetworkManager()}};var kXn,eEL,FZF,cd6;_.Md=function(V){var D=eEL.get(V);if(D&&(D=D.pop()))return cd6++,D;FZF++;try{var f=document.createElement(V)}catch(n){throw new _.cI("ElementPool failed to create element",V,n.message);}return f};
kXn=function(V){var D=V.is;if(D){var f=eEL.get(D);f||(f=[],eEL.set(D,f));var n=_.XB("ELEMENT_POOL_CONFIG")||{};f.length>=(n[D]!==void 0?n[D]:_.XB("ELEMENT_POOL_DEFAULT_CAP",0))||f.push(V)}else _.zP(new _.cI("Element pool should only handle custom elements:",V.nodeName))};
eEL=new Map;FZF=0;cd6=0;var Hj=new WeakMap,v3c=new WeakMap;var vXV;_.h5=function(V,D,f){f=f===void 0?_.kv():f;this.JSC$11831_defaultPriority=V;this.signal=D;this.scheduler=f;this.nextJobDescriptor=0;this.JSC$11831_parkedJobs=[];this.scheduledJobs=new Map};
_.UY=function(V,D){if(D){var f=_.C_();V.signal&&!_.qP(f,V.signal)?(f.addListener(V.signal,function(){V.processSignal()}),V.JSC$11831_parkedJobs.push({job:D,
priority:void 0})):gXE(V,D)}};
vXV=function(V,D){if(D!==V.JSC$11831_defaultPriority){V.JSC$11831_defaultPriority=D;for(var f=_.r(V.scheduledJobs.values()),n=f.next();!n.done;n=f.next())n=n.value,V.scheduler.cancelJob(n.jobId),n.jobId=V.scheduler.addJob(n.jobWrapper,D)}};
_.h5.prototype.flushJobs=function(){vXV(this,10);this.processSignal()};
_.h5.prototype.cancel=function(){for(var V=_.r(this.scheduledJobs),D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;this.scheduler.cancelJob(f.jobId);this.scheduledJobs.delete(D)}this.JSC$11831_parkedJobs=[]};
_.h5.prototype.processSignal=function(){for(var V=_.r(this.JSC$11831_parkedJobs),D=V.next();!D.done;D=V.next())D=D.value,gXE(this,D.job,D.priority);this.JSC$11831_parkedJobs=[]};
var gXE=function(V,D,f){f=f||V.JSC$11831_defaultPriority;if(f===10)ot(D);else{var n=V.nextJobDescriptor++,t=function(){D();V.scheduledJobs.delete(n)},J=V.scheduler.addJob(t,f);
V.scheduledJobs.set(n,{jobWrapper:t,jobId:J,priority:f})}};_.V$(uGL);var Nr9={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};ckY({beforeVisit:function(V){if(t2.has(V.type)){var D;(D=V.props).idomKey!=null||(D.idomKey=V.type)}else V.type.TAG_NAME&&(fm=V.type.TAG_NAME)},
afterRender:function(V,D){var f;fm=(f=D==null?void 0:D.type)!=null?f:""},
didPatch:function(){fm=""}});var kiu;_.V8={};kiu={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.V8.YtRendererstamperBehavior=[_.xm.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 V in this.stampDom){var D=this.stampDom[V];D&&D.id&&this.addReactiveSchema({type:"observe",method:{methodName:cMZ(D.id),args:[{type:"wildcard",path:V}]}})}else{(V=(this.constructor.generatedFrom||this).observers)||(V=[]);for(D in this.stampDom){var f=this.stampDom[D];f&&f.id&&V.push(cMZ(f.id)+"("+D+".*)")}this.constructor.generatedFrom.observers=V}},
addStampDomObserverFns_:function(){for(var V in this.stampDom){var D=this.stampDom[V];D.id?(this[cMZ(D.id)]=this.rendererStamperObserver_.bind(this,V,D.id),this.hasDataPath_[V]=!1):(D=new _.cI("Bad rendererstamper config",this.is+":"+V),_.NG(D))}},
rendererStamperObserver_:function(V,D,f){if(f.path==V){if(f.value===void 0&&!this.hasDataPath_[V])return;this.hasDataPath_[V]=f.value!==void 0}this.rendererStamperApplyChangeRecord_(V,D,f)},
rendererStamperApplyChangeRecord_:function(V,D,f){var n=this.renderJobsMap_[D],t=null;V==f.path?(f=f.value,_.MU(f)||(f=f===void 0||f===null?[]:[f]),V=this.stampDom[V],V.mapping&&(t=this.stampDomArray_.bind(this,f,D,V.mapping,V.reuseComponents,V.events,V.stamperStableList)),n&&n.cancel(),f=V.usePageScheduler?this.getTaskManager():void 0,n||V.initialRenderPriority==void 0)?V.renderPriority==void 0||n||(n=new _.h5(V.renderPriority,V.waitForSignal,f),this.renderJobsMap_[D]=n):(n=new _.h5(V.initialRenderPriority,
V.waitForSignal,f),this.renderJobsMap_[D]=n,t=function(J,H){J();vXV(H,10)}.bind(this,t,n)):t=V+".splices"==f.path?this.stampDomArraySplices_.bind(this,V,D,f.value):this.forwardRendererStamperChanges_.bind(this,V,D,f);
n?_.UY(n,t):t()},
forwardRendererStamperChanges_:function(V,D,f){var n=f.path.slice(V.length+1),t=this.getStampContainer_(D),J=n.indexOf("."),H=n.substring(0,J),Q=!1,T=0,y=parseInt(H,0);if(H[0]=="#"){Q=parseInt(H.substring(1),0);y=this.get(V);var Z=this.get([V,H]);y[Q]==Z?T=Q:T=y.indexOf(Z);Q=!0}else isNaN(y)||(T=y,Q=!0);Q&&(n=n.substring(H.length+1),J=n.indexOf("."));H=_.Fw(t).children[T];var l;if(t=(l=H==null?void 0:H.polymerController)!=null?l:H)n="data"+n.slice(J),typeof t.notifyPath!=="function"?_.zP(new _.cI("notifyPath missing",
this.is+": "+V+", "+D)):f.value?t.notifyPath(n,f.value):t.notifyPath(n)},
stampDomArraySplices_:function(V,D,f){if(f&&f.indexSplices){var n=this.getStampContainer_(D);if(n){for(var t=_.Fw(n),J=g3R(this.stampDom[V].reuseComponents),H=f.indexSplices.length,Q=0;Q<H;Q++){for(var T=f.indexSplices[Q],y=t.children[T.index],Z=T.removed.length;Z>0;Z--)y&&y.parentElement&&(_.Fw(y.parentElement).removeChild(y),J&&kXn(y),y=t.children[T.index]);Z=this.stampDom[V].mapping;for(var l=T.index+T.addedCount,G=document.createDocumentFragment(),F=J,k=T.index;k<l;k++){var d=T.object[k],z=e8d(Z,
d);if(z){var C=Z[z];d=d[z];z=this.getComponentName_(C,d);var A=y?Hj.has(y):!1;F&&y&&y.is==z&&A?(z=y,this.telemetry_.reuse++,y=y.nextElementSibling):F&&y&&A?(z=this.createComponent_(C,d,J),A=_.Fw(y).nextElementSibling,t.insertBefore(z,A),Br9(this.is,t,y,J),y=A):(F=!1,z=this.createComponent_(C,d,J),G.appendChild(z));this.deferRenderStamperBinding_(z,C,d)}else C=new _.cI("Unimplemented type",V,D,n.tagName,Object.keys(d)[0]),_.NG(C)}t.insertBefore(G,y)}this.flushRenderStamperComponentBindings_();this.stampDom[V].events&&
_.PA(this.hostElement,"yt-rendererstamper-finished",{container:n})}else V=new _.cI("Container object not found",D,this.hostElement?this.hostElement.is:""),_.NG(V)}},
stampDomArray_:function(V,D,f,n,t,J){var H=this.getStampContainer_(D);if(H)if(D=_.Fw(H),n=g3R(n),V){var Q=0,T=0,y;if(J=J===void 0?_.EG("STAMPER_STABLE_LIST",!1):J||!1)for(y=D.firstElementChild;y&&!Hj.has(y)&&V.length>T;){J=V[T];var Z=e8d(f,J);if(Z){if(this.getComponentName_(f[Z],J[Z])!=y.is){var l=this.createComponent_(f[Z],J[Z],n),G=_.Fw(y).nextElementSibling;G?D.insertBefore(l,G):D.appendChild(l);Br9(this.is,D,y,n);y=l}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(y,f[Z],J[Z]);Q++;
T++;y=_.Fw(y).nextElementSibling}else T++}dB9(this.is,D,Q,n);Q=y;if(V.length>T){J=document.createDocumentFragment();for(Z=V.length;T<Z;T++)if(l=V[T],G=e8d(f,l))y=this.createComponent_(f[G],l[G],n),this.deferRenderStamperBinding_(y,f[G],l[G]),J.appendChild(y);Q&&_.Fw(Q).parentNode&&y&&!Hj.has(y)?D.insertBefore(J,Q):D.appendChild(J)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();t&&_.PA(this.hostElement,"yt-rendererstamper-finished",{container:H})}else dB9(this.is,D,0,
n);else V=new _.cI("Container object not found",D,this.hostElement?this.hostElement.is:""),_.NG(V)},
getStampContainer_:function(V){return this.$&&this.$[V]||_.Pt(this.hostElement).querySelector("#"+V)},
getComponentName_:function(V,D){return typeof V==="string"?V:V.matcher?V.matcher.call(this,D):V.component},
createComponent_:function(V,D,f){V=this.getComponentName_(V,D);try{var n=Pr.has(V)||t2.has(V);if(f&&!n){var t=_.Md(V);try{_.wI(t)}catch(J){f="Failed to clear styles for "+V+".",J.message&&(f+=" Original error: "+J.message),_.zP(new _.cI(f))}}else t=document.createElement(V)}catch(J){return t="YtRendererStamperBehavior failed to create "+V+".",J.message&&(t+=" Original description: "+J.message),J.message="YtRendererStamperBehavior failed to create element",_.R2(J,t),kiu.hasOwnProperty(V)?_.zP(J):_.NG(J),
document.createElement("SPAN")}this.telemetry_.create++;return t},
deferRenderStamperBinding_:function(V,D,f){this.deferredBindingTasks_.push({component:V,typeOrConfig:D,data:f})},
flushRenderStamperComponentBindings_:function(){for(var V=0,D=this.deferredBindingTasks_.length;V<D;V++){var f=this.deferredBindingTasks_[V];if(!f)break;var n=void 0,t=void 0,J=void 0,H=void 0,Q=f.component,T=f.typeOrConfig;f=f.data;var y=(H=Q.polymerController)!=null?H:Q;H=Q.loggingStatus;try{H&&(H.isRendererStamper=!0);if(typeof T!=="string"){for(J in T.attributes)T.attributes[J]===!0?Q.setAttribute(J,""):T.attributes[J]===!1?Q.removeAttribute(J):Q.setAttribute(J,T.attributes[J]);for(t in T.params)y[t]=
T.params[t],Q!==y&&gI(Q.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(n in T.properties){var Z=T.properties[n];if(Z){var l=Fo3(Z);y[n]=this.get(l);Q!==y&&gI(Q.localName,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(n==="on-tap"||n==="on-click"){var G=this.get(l);Q.addEventListener("click",G);v3c.set(Q,{property:n,listener:{type:"element",eventName:"click",handler:G}})}}else{var F=new _.cI("Undefined property binding",n);_.NG(F)}}}if(T.classListBinding){var k=Fo3(T.classListBinding),
d=k?this[k]:null;if(d)for(n=0;n<d.length;n++)_.JA(Q,d[n],!0)}y.data=f}finally{H&&(H.isRendererStamper=!1)}if(n=Hj.get(Q))Q.hidden=!1,Hj.delete(Q),_.dm.cancelJob(n)}this.deferredBindingTasks_.length=0}}];_.D6={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(V){for(var D=_.Yb.getInstance(),f=_.r(Object.keys(V)),n=f.next();!n.done;n=f.next()){var t=n.value;n=V[t];if(this&&this[n]){var J=D.actionRoutingMap.get(t);J||(J=new Map,D.actionRoutingMap.set(t,J));D.registerActionHandler(this,t,this[n].bind(this),J)}else t=Error("nd"),t.params=n,_.Ah(t)}},
unregisterActionMap:function(V){_.iN(_.Yb.getInstance(),V,this)}}]};var Tk=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_"+(_.c("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.c("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.c("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.c("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.c("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,
autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.c("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Q6;var be=new Map;var ijY=window.matchMedia("(forced-colors: active)").matches;var s_p;var BJo;var dOV=new _.IH("LOTTIE_LOADER_TOKEN");_.ft=_.MA(function(V){var D=V.data;var f=V.className;var n=V.animationName;var t=V.animationRef;var J=V.elRefForInterop;var H=_.py("lottie-component"),Q;_.dc(function(){var y;return void((y=Q)==null?void 0:y.destroy())});
var T;_.BJ(function(){var y=_.Nq(n);if(y!==T){T=y;var Z=Object.assign({},{animationName:y,animationRef:_.Nq(t)},_.Nq(D));try{_.DY().resolve(dOV)().then(function(F){var k;(k=Q)==null||k.destroy();var d,z;k=(z=J==null?void 0:(d=J())==null?void 0:d.value)!=null?z:H.value;d=Z.animationRef;z=Z.listeners;F=F.loadAnimation(Object.assign({},{container:k},Z.animationConfig));d&&(d.lottieEl=F);if(z)for(k=_.r(Object.entries(z)),d=k.next();!d.done;d=k.next())z=_.r(d.value),d=z.next().value,(z=z.next().value)&&
F.addEventListener(d,z);Q=F})}catch(F){y=F;
var l="LottieComponent error.";y.message&&(l+=" Original description: "+y.message);_.R2(y,l);_.zP(y);var G;((G=Z.listeners)==null?0:G.error)&&Z.listeners.error(y)}}},"lbhvPc");
return _.K(iyU,{cond:function(){return!(J==null?0:J())},
then:function(){return _.K("lottie-component",{class:_.KT("ytLottieComponentHost",f),el:H})}})},"h");_.fT(_.MA(function(V){return _.K("ytd-lottie-player",{id:V.id,hidden:V.hidden,class:V.className,"aria-label":V.ariaLabel,style:"display: block;"},_.K(_.ft,{data:V.data,animationName:function(){var D;return((D=V.data().animationConfig)==null?void 0:D.name)||""},
animationRef:function(){return V.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.WX,
id:_.WX,hidden:_.WX,className:_.WX,ariaLabel:_.WX}});var nt=function(){var V=_.E.apply(this,arguments)||this;V.animationRef={};V.delhiIconsEnabled=_.c("enable_web_delhi_icons");return V};
_.v(nt,_.E);_.P=nt.prototype;
_.P.handlePropertyChange=function(){var V=this.animatedIcon,D=this.active,f=this.isDarkTheme;if(V){var n=this.previousActive!==D;this.previousActive=D;this.animationRef.lottieEl?n&&this.toggleAnimation(D,V.totalFrames):D?this.initializeAnimationAsToggled(V.lottiePlayerProps,V.totalFrames):this.initializeAnimationAsUntoggled(V.lottiePlayerProps);V.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=V.type;this.lottiePlayerProps=this.computeLottiePlayerProps(V,f)}};
_.P.computeLottiePlayerProps=function(V,D){var f=this.deepCloneLottiePlayerProps(V);D?(D=V.nameDarkTheme,V=V.pathDarkTheme):(D=V.name,V=V.path);f.animationConfig.name=D;(D=be.get(V))?f.animationConfig.animationData=D:f.animationConfig.path=V;return f};
_.P.initializeAnimationAsToggled=function(V,D){V.animationConfig.initialSegment=[D-1,D]};
_.P.initializeAnimationAsUntoggled=function(V){V.animationConfig.initialSegment=void 0};
_.P.toggleAnimation=function(V,D){if(V){var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,D],!0)}else{var n;(n=this.animationRef.lottieEl)==null||n.playSegments([0,1],!0)}};
_.P.deepCloneLottiePlayerProps=function(V){var D=Object.assign({},V.lottiePlayerProps.animationConfig);V=Object.assign({},V.lottiePlayerProps);V.animationConfig=D;return V};
nt.prototype.handlePropertyChange=nt.prototype.handlePropertyChange;_.S([_.q(),_.p("design:type",Object)],nt.prototype,"animatedIcon",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],nt.prototype,"active",void 0);_.S([_.q(),_.p("design:type",Boolean)],nt.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],nt.prototype,"animatedIconType",void 0);_.S([_.q(),_.p("design:type",Boolean)],nt.prototype,"previousActive",void 0);
_.S([_.q(),_.p("design:type",Object)],nt.prototype,"lottiePlayerProps",void 0);_.S([_.q(),_.p("design:type",Object)],nt.prototype,"animationRef",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],nt.prototype,"delhiIconsEnabled",void 0);_.S([_.KI("animatedIcon","active","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nt.prototype,"handlePropertyChange",null);_.S([_.zy({is:"yt-animated-icon",disableElementRegistration:!0})],nt);
_.Y(nt,"yt-animated-icon",function(){if(BJo===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;s_p===void 0&&(s_p=document.createElement("template"));var n=s_p;f.call(D,n.content.cloneNode(!0),V.content.firstChild);BJo=V}V=BJo;return V},{mode:2});var upp;var NJr;var Ojc=_.MA(function(V){var D=_.py("span"),f=m0(function(){return{value:null}});
_.dc(function(){var t;(t=f.value)==null||t.cancel()});
var n=_.yT(V.data,{equals:function(t,J){return t.iconName===J.iconName&&t.iconStyle===J.iconStyle&&t.iconSize===J.iconSize&&t.iconSetName===J.iconSetName&&t.iconSelected===J.iconSelected}},"aoiXAb");
_.BJ(function(){var t,J=(t=V.options)==null?void 0:t.call(V);I4X(D,f,n(),J)},"QXgxJd");
return _.K("span",{class:"yt-icon-shape",el:D})},"j");
Ojc.idomCompat=!0;var ebZ=["youtube_fill","youtube_outline"];var mOo=new _.FK({type:"iconset",value:void 0}),tv=function(){var V=_.E.apply(this,arguments)||this;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.iconName="";V.iconsetName="yt-icons";V.iconset=null;V.missingIconSet=!1;V.iconType=null;V.iconShapeDataSignal=_.HJ(void 0,void 0,"RQ9kUb");V.renderingOptionsSignal=_.HJ({iconWidth:"100%",iconHeight:"100%",iconFilter:V.iconFilter},void 0,"qtx8Ef");V.wizHasRendered=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(tv,_.E);tv.prototype.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
tv.prototype.handlePropertyChange=function(){var V=this,D,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C;return _.w(function(A){switch(A.nextAddress){case 1:if(D=!V.icon&&!V.iconName||!V.isAttached)return A.return();f=V;n=f.icon;t=f.size;J=f.defaultToFilled;H=f.active;Q=f.targetContainer;V.toggleContainerClass(Q);_.c("kevlar_use_wil_icons")&&n&&(T=suY(n),V.iconType=T.length?T[1]:null);if(n){A.jumpTo(2);break}V.iconsetName="";V.iconName="";return _.b(A,V.renderIcon(Q,n),3);case 3:return A.return();case 2:y=zEU(n);
Z=suY(y);Z.length&&(V.iconsetName=Z[0],V.iconName=Z[1]);if(!_.c("kevlar_use_wil_icons")){A.jumpTo(4);break}l=tv;G=REr;F=V.iconType;k=V.active;d=V.defaultToFilled;z=V.size;C=V.iconsetName;return _.b(A,CrU(),6);case 6:return _.b(A,G.call(l,F,k,d,z,C,A.yieldResult),5);case 5:V.iconShapeData=A.yieldResult;case 4:if(V.shouldRenderIconShape(Q)){A.jumpTo(7);break}return _.b(A,V.determineIconSet(y,H,J,t,Q),7);case 7:return _.b(A,V.renderIcon(Q,n),0)}})};
tv.prototype.toggleContainerClass=function(V){V?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var zEU=function(V){return!_.c("default_to_innertube_icon")||V.indexOf(":")>0?V:_.Qa(V)};
_.P=tv.prototype;_.P.determineIconSet=function(V,D,f,n){var t=this;return _.w(function(J){return J.nextAddress==1?_.c("kevlar_system_icons")||_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.XB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.b(J,t.switchToYtSysIconset(V,D,f,n),3):J.jumpTo(2):J.nextAddress!=2?J.return():_.b(J,t.useYtSysIconsetForMissingIcons(V,D,f,n),0)})};
_.P.switchToYtSysIconset=function(V,D,f,n){var t=this,J,H,Q,T,y,Z,l;return _.w(function(G){switch(G.nextAddress){case 1:if(!V||t.iconsetName!=="yt-icons"&&t.iconsetName!=="yt-sys-icons"){G.jumpTo(0);break}J=suY(V);H=J[1];H=_.Xv9(H);_.c("enable_polymer_icons_replace_underscores_dash")&&H.includes("_filled")&&(H=H.replace(/_filled/g,"-filled"));return _.b(G,ws(H,!0),3);case 3:return Q=G.yieldResult,_.b(G,ws(H,!1),4);case 4:if((T=G.yieldResult)||D&&Q)t.iconsetName="yt-sys-icons";t.iconName=t.getIconName(H,
D,f,T,Q);if(n===24){G.jumpTo(0);break}y="yt-sys-icons"+n+":"+t.iconName;return _.b(G,ws(y,!1,!0),6);case 6:return Z=G.yieldResult,_.b(G,ws(y,!0,!0),7);case 7:l=G.yieldResult;t.iconName=t.getIconName(H,D,f,Z,l);if(!D&&Z||D&&l)t.iconsetName="yt-sys-icons"+n;_.yz(G)}})};
_.P.getIconName=function(V,D,f,n,t){V.includes("-filled")&&(V=V.replace("-filled",""));return t&&(D||f)?V+"-filled":V};
_.P.useYtSysIconsetForMissingIcons=function(V,D,f,n){var t=this,J,H;return _.w(function(Q){if(Q.nextAddress==1)return t.iconsetName!=="yt-icons"?Q.jumpTo(0):_.b(Q,ws(t.iconName,!1,!1,!0),3);if(Q.nextAddress!=4)return J=Q.yieldResult,_.b(Q,ws(t.iconName,!1),4);H=Q.yieldResult;if(J||!H)return Q.jumpTo(0);t.iconsetName="yt-sys-icons";return _.b(Q,t.switchToYtSysIconset(V,D,f,n),0)})};
_.P.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var CrU=function(){return _.w(function(V){try{return V.return(_.DY().resolve(_.TK))}catch(D){return V.return(new Promise(function(f){_.C_().parkOrScheduleJob(function(){f(_.DY().resolve(_.TK))},2,"ci")}))}})},REr=function(V,D,f,n,t,J){n=n===void 0?24:n;
if(V){V=V.toLowerCase();var H=V.endsWith("_filled")||V.endsWith("-filled");D={iconName:V,iconStyle:(D===void 0?0:D)||(f===void 0?0:f)||H?"youtube_fill":"youtube_outline",iconSize:n,iconSetName:t===void 0?"yt-icons":t};f=!!J.resolveIcon(D);f||(D.iconSize=void 0,f=!!J.resolveIcon(D));!f&&H&&(D.iconName=V.substring(0,V.length-7),D.iconSize=n,f=!!J.resolveIcon(D),f||(D.iconSize=void 0,f=!!J.resolveIcon(D)));f||(D.iconStyle=void 0,f=!!J.resolveIcon(D));f||_.zP(new _.cI("Icon not supported",{iconName:D.iconName,
iconStyle:D.iconStyle,iconSize:D.iconSize,iconType:V}));return f?D:void 0}};
_.P=tv.prototype;_.P.shouldRenderIconShape=function(V){if(!_.c("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;V=this.getContainer(V);return!SUY(V,this.icon)};
_.P.renderIcon=function(V,D){var f=this,n,t,J,H,Q,T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:if(D&&f.icon!==D)return l.return();n=f.getContainer(V);t=SUY(n,f.icon);if(f.shouldRenderIconShape(V)&&f.iconType)return f.applyIconShape(t,n),l.return();f.removeIconShape();if(!n)return l.return();f.iconName===""&&f.iconset&&n&&(f.removeStaticIcon(f.iconset,n),t&&f.removeAnimatedIcon(n));if(f.iconName===""&&f.iconset||!f.iconsetName||!mOo)return l.return();f.iconset=mOo.byKey(f.iconsetName);
if(!f.iconset)return f.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Ty(f,f.onIconsetAdded)),l.return();f.missingIconSet&&(f.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Ty(f,f.onIconsetAdded)));H=(J=t||f.isAnimatedIcon?$Bc(f.icon):void 0)&&!J.lazyLoad;T=J&&((Q=J)==null?void 0:Q.lazyLoad)&&(J.lottiePlayerProps.animationConfig.animationData?!0:be.get(f.isDarkTheme?J.pathDarkTheme:J.path)?!0:!1);if(H||T)return f.applyAnimatedIcon(n,J,f.iconset),l.return();if(T||
(y=J)==null||!y.lazyLoad){l.jumpTo(2);break}Z=pKZ(J,f.isDarkTheme);f.applyStaticIcon(f.iconset,n,f.iconName,V,t);return _.b(l,Z,3);case 3:return _.b(l,f.renderIcon(f.targetContainer,f.icon),4);case 4:return l.return();case 2:f.applyStaticIcon(f.iconset,n,f.iconName,V,t),_.yz(l)}})};
_.P.getContainer=function(V){var D,f=(D=p$R(this.hostElement))==null?void 0:D.host;D=!!f&&!!f.polymerController;if(!V||D)return V?this.getTargetContainer(V,f):this.hostElement};
_.P.getTargetContainer=function(V,D){var f=_.Pt(D).querySelector("#"+V);f||(V=new _.cI("yt-icon container missing",D.is,V),_.NG(V));return f};
_.P.applyStaticIcon=function(V,D,f,n,t){t&&this.removeAnimatedIcon(D);this.removeIconShape();t=t&&!!this.iconType&&!!this.iconShapeData&&_.c("kevlar_use_wil_icons");try{t?this.applyIconShape(!1,D):V.applyIcon(D,f)}catch(J){this.handleError(J,n,D)}};
_.P.applyIconShape=function(V,D){this.iconset&&D&&(this.removeStaticIcon(this.iconset,D),V&&this.removeAnimatedIcon(D));V={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var f=_.r(this.iconShapeDataSignal);D=f.next().value;f=f.next().value;var n=_.r(this.renderingOptionsSignal),t=n.next().value;n=n.next().value;f(this.iconShapeData);n(V);if(!this.wizHasRendered)for(this.wizHasRendered=!0,V=_.r(xB9(D,t)).next().value;V.firstChild;)_.Pt(this.hostElement).appendChild(V.firstChild)};
_.P.removeIconShape=function(){if(_.c("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.P.removeStaticIcon=function(V,D){V.removeIcon(D)};
_.P.applyAnimatedIcon=function(V,D,f){this.removeStaticIcon(f,V);this.removeIconShape();var n;f=this.animatedIconElement&&((n=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:n.type)===D.type;if(this.animatedIconElement&&f){this.animatedIconElement.polymerController.animatedIcon=D;var t;((t=this.animatedIconElement)==null?void 0:t.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(V),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=D,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.c("kevlar_use_wil_icons")?V.insertBefore(this.animatedIconElement,V.childNodes[0]):(V=_.Pt(V),V.insertBefore(this.animatedIconElement,V.childNodes[0]))};
_.P.removeAnimatedIcon=function(V){_.c("kevlar_use_wil_icons")?this.animatedIconElement&&V.contains(this.animatedIconElement)&&V.removeChild(this.animatedIconElement):(V=_.Pt(V),this.animatedIconElement&&V.contains(this.animatedIconElement)&&V.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.P.handleError=function(V,D,f){_.R2(V,this.iconName,D,f);D=SUY(f,this.icon);var n=!1;window.location.href.includes("JpymaW6Lh2w")?n=!0:f._svgIcon&&(f=(f=f._svgIcon.parentNode)?f.tagName:"unknown",_.R2(V,f),f==="YT-ICON"&&V.name==="NotFoundError"?n=!0:V.name==="NotFoundError"&&D&&(n=!0));n?_.zP(V):_.NG(V)};
_.IG.Object.defineProperties(tv,{template:{configurable:!0,enumerable:!0,get:function(){if(NJr===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;
upp===void 0&&(upp=document.createElement("template"));var n=upp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);NJr=V}V=NJr;return V}}});
tv.prototype.handlePropertyChange=tv.prototype.handlePropertyChange;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],tv.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",String)],tv.prototype,"icon",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],tv.prototype,"active",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],tv.prototype,"defaultToFilled",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],tv.prototype,"isAnimatedIcon",void 0);
_.S([_.q({value:24}),_.p("design:type",Number)],tv.prototype,"size",void 0);_.S([_.q({value:""}),_.p("design:type",String)],tv.prototype,"targetContainer",void 0);_.S([_.q(),_.p("design:type",Object)],tv.prototype,"animatedIconElement",void 0);_.S([_.q(),_.p("design:type",Object)],tv.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],tv.prototype,"ariaHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],tv.prototype,"ariaLabel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],tv.prototype,"role",void 0);_.S([_.q(),_.p("design:type",String)],tv.prototype,"style",void 0);_.S([_.q(),_.p("design:type",String)],tv.prototype,"iconFilter",void 0);_.S([_.KI("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],tv.prototype,"handlePropertyChange",null);_.S([_.zy({is:"yt-icon",noInjection:!0})],tv);var q$p;var XpF=function(){var V=document.body,D=V.appendChild;if(q$p===void 0){var f=document.createElement("template");_.B(f,'\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>');
q$p=f}f=q$p;D.call(V,f.content)};
document.body?XpF():window.addEventListener("DOMContentLoaded",XpF);var EXF,AdE=function(){return EXF!==void 0?EXF:EXF=document.createElement("template")};
document.head.appendChild(AdE().content);var aEu,Y$l=function(){return aEu!==void 0?aEu:aEu=document.createElement("template")};
document.head.appendChild(Y$l().content);var $OH;_.PO=new _.IH("KEY_MANAGER_TOKEN");var DE3={duration:1E3,easing:"ease",fill:"forwards"};_.V$(VS9);var nIR={duration:1E3,easing:"ease",fill:"forwards"},WZl=_.MA(function(V){var D=_.W2("animated-rolling-character"),f=void 0,n=function(){var t,J;return Ib((t=V.character)==null?void 0:t.call(V))||Ib((J=V.previousCharacter)==null?void 0:J.call(V))};
_.BJ(function(){if(V.marginMultiplier()){var t;(t=f)==null||t.cancel();if(n()){var J;t=((J=V.previousCharacter)==null?0:J.call(V))?Number(V.previousCharacter())+10:V.rollUp()?0:30;var H;if((H=V.shouldAnimate)==null||!H.call(V)){var Q,T;t-=fuF((Q=V.character)==null?void 0:Q.call(V),(T=V.previousCharacter)==null?void 0:T.call(V),V.rollUp(),t)}}else{t=V.rollUp()?0:2;var y;(y=V.shouldAnimate)!=null&&y.call(V)||(J=t,H=V.rollUp()?-1:1,t=J-H)}D.value.style.marginTop="-"+t*V.marginMultiplier()+"px";var Z;
if((Z=V.shouldAnimate)==null?0:Z.call(V)){var l,G;f=tSF(D.value,(l=V.character)==null?void 0:l.call(V),(G=V.previousCharacter)==null?void 0:G.call(V),V.rollUp(),t,n(),V.marginMultiplier())}else{var F;D.value.style.display=((F=V.character)==null?0:F.call(V))?"":"none"}}},"vt9b9b");
return _.K("animated-rolling-character",{el:D,class:"animated-rolling-character-wiz"},_.K(_.e,{cond:n,then:function(){return _.K(iFE,null)},
else:function(){return _.K(S$F,{character:V.character})}}))},"k");
WZl.idomCompat=!0;var POx=_.c("web_enable_sink_animated_rolling_character_and_number")?WZl:VS9,ppY=_.c("web_enable_sink_animated_rolling_character_and_number")?WZl:_.Zn(VS9),iFE=_.MA(function(){for(var V=[],D=1;D<30;D++)V.push(_.K("div",null,D%10));return _.K(_.th,null,_.K("div",null,"\u00a0"),V,_.K("div",null,"\u00a0"))},"l"),S$F=_.MA(function(V){var D=V.character;
return _.K(_.th,null,_.K("div",null,"\u00a0"),_.K(_.e,{cond:function(){return!(D==null?0:D())||_.Hn(D==null?void 0:D())},
then:function(){return _.K("div",null,"\u00a0")},
else:function(){return _.K("div",null,D)}}),_.K("div",null,"\u00a0"))},"m");_.V$(oI3);var LZU=_.MA(function(V){var D=void 0,f=void 0,n=function(){var J;return((J=V.fontSizeMultiplier)==null?0:J.call(V))?V.heightPx()*V.fontSizeMultiplier():V.heightPx()},t=_.yT(function(){if(!V.numberText())return[];
var J,H,Q=((J=V.forceRollUp)==null?void 0:J.call(V))||!f||!((H=V.numberValue)==null?0:H.call(V))||f<V.numberValue(),T,y=V.numberText();J=n();H=!((T=V.shouldAnimate)==null||!T.call(V));T=[];var Z=0,l=0,G=(D?D.replace(/\D/g,"").length:0)-(y?y.replace(/\D/g,"").length:0),F=D?D.split(/(\d)/).filter(Boolean):[];for(y=y.split(/(\d)/).filter(Boolean);G<0;){var k=y[l];T.push({character:k,rollUp:Q,marginMultiplier:J,shouldAnimate:H});l++;Ib(k)&&G++}for(;Z<G;)k=F[Z],T.push({previousCharacter:k,rollUp:Q,marginMultiplier:J,
shouldAnimate:H}),Z++,Ib(k)||G++;for(;l<y.length;)G=y[l],k=F[Z],Ib(G)===Ib(k)?(l++,Z++):Ib(G)?(Z++,G=void 0):Ib(k)&&(l++,k=void 0),T.push({character:G,previousCharacter:k,rollUp:Q,marginMultiplier:J,shouldAnimate:H});D=V.numberText();var d;f=(d=V.numberValue)==null?void 0:d.call(V);return T},void 0,"B9AmNd");
return _.K("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return V.numberText()?["height: "+n()+"px;","line-height: "+V.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.K(_.FB,{each:t,keyBy:"INDEX"},function(J){return _.K(ppY,{character:function(){return J().character},
previousCharacter:function(){return J().previousCharacter},
marginMultiplier:function(){return J().marginMultiplier},
rollUp:function(){return J().rollUp},
shouldAnimate:function(){return J().shouldAnimate}})}))},"n");
LZU.idomCompat=!0;_.vIL=_.c("web_enable_sink_animated_rolling_character_and_number")?LZU:oI3;_.IEl=_.c("web_enable_sink_animated_rolling_character_and_number")?LZU:_.Zn(oI3);var J3c={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.YC=_.MA(function(V){var D=_.W2("a",V.ref),f=V.aTagConfig?V.aTagConfig:_.yT(function(){var n,t,J,H,Q;var T=(Q=_.Xo((J=V.command)==null?void 0:J.call(V)))!=null?Q:(H=V.command)==null?void 0:H.call(V);return _.A2({innertubeCommand:T,skipOnClick:(n=V.skipOnClick)==null?void 0:n.call(V),defaultTarget:(t=V.target)==null?void 0:t.call(V)})||{}},void 0,"TAvz0");
_.BJ(function(){D.value._data=f()._data;D.value.params=f().params},"dcjvAe");
return _.K("a",{el:D,href:function(){return f().href$},
rel:function(){return f().rel$},
class:function(){var n,t;return(t=f().className)!=null?t:(n=V.className)==null?void 0:n.call(V)},
style:function(){var n;if((n=V.style)==null?0:n.call(V))return V.style();var t;return((t=V.disabled)==null?0:t.call(V))?"pointer-events:none":""},
"aria-haspopup":function(){return!!f()["aria-haspopup$"]},
"force-new-state":le(function(){return f()["force-new-state$"]}),
title:le(function(){var n,t;return(t=f().title$)!=null?t:(n=V.title)==null?void 0:n.call(V)}),
role:le(function(){return f().role$}),
target:le(function(){return f().target$}),
dir:le(function(){var n;return((n=V.dir)==null?0:n.call(V))?V.dir():f().dir}),
tabindex:function(){var n;return f().tabindex$?Number(f().tabindex$):(n=V.tabIndex)==null?void 0:n.call(V)},
"aria-hidden":function(){var n,t;return(t=f()["aria-hidden$"])!=null?t:(n=V.ariaHidden)==null?void 0:n.call(V)},
"aria-label":function(){var n,t;return(t=f()["aria-label$"])!=null?t:(n=V.ariaLabel)==null?void 0:n.call(V)},
"aria-current":V.ariaCurrent,"aria-disabled":V.disabled,"aria-labelledby":V.ariaLabelledby,"aria-describedby":V.ariaDescribedby,"aria-selected":V.ariaSelected,"tab-identifier":V.tabIdentifier,"on:pointerdown":_.jl(function(n){var t,J;return void((J=(t=f()).onpointerdown)==null?void 0:J.call(t,n))}),
"on:click":_.jl(function(n){var t,J;(J=(t=f()).onclick)==null||J.call(t,n);var H;(H=V.onClick)==null||H.call(V,n)}),
"on:focusin":_.jl(function(n){var t;(t=V.onFocusin)==null||t.call(V,n)}),
"on:focusout":_.jl(function(n){var t;(t=V.onFocusout)==null||t.call(V,n)})},V.children)},"o");var OFl=function(V,D){this.fillAnimation=new Animation(QdX(V),document.timeline);this.strokeAnimation=new Animation(T1n(D),document.timeline)};
OFl.prototype.play=function(){var V,D;(D=(V=this.fillAnimation).play)==null||D.call(V);var f,n;(n=(f=this.strokeAnimation).play)==null||n.call(f)};
OFl.prototype.cancel=function(){var V,D;(D=(V=this.fillAnimation).cancel)==null||D.call(V);var f,n;(n=(f=this.strokeAnimation).cancel)==null||n.call(f)};_.kl=_.MA(function(V){var D=V.model;var f=V.pointerDownEvent;var n=V.pointerUpEvent;var t=V.pointerLeaveEvent;V=_.W2("div");var J=_.el({"border-radius":function(){return D().borderRadius}}),H=_.W2("div"),Q=_.W2("div"),T=_.r(_.Gk(function(){return(n==null?0:n())||(t==null?0:t())?!1:!(f==null||!f())||!1})),y=T.next().value,Z=T.next().value,l=void 0,G=function(){!l&&Q.value&&H.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(l=new OFl(Q.value,H.value));
var A;(A=l)==null||A.play()},F=function(){var A;
(A=l)==null||A.cancel()},k=function(){var A;
(A=l)==null||A.cancel()};
_.BJ(function(){(n==null?0:n())&&G()},"YjVIpd");
_.BJ(function(){(f==null?0:f())&&F()},"UrXvqb");
_.BJ(function(){(t==null?0:t())&&k()},"QK6L8b");
T=_.jl(function(){G();Z(!1)});
var d=_.jl(function(){F();Z(!0)}),z=_.jl(function(){k();
Z(!1)});
_.dc(function(){if(l){var A;(A=l)==null||A.cancel();l=void 0}});
var C={};y=_.KT("yt-spec-touch-feedback-shape",function(){return bkc(D().color)},(C["yt-spec-touch-feedback-shape--focused"]=function(){return!!D().focused&&!D().disabled},C["yt-spec-touch-feedback-shape--circular"]=function(){return!!D().circular},C["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!D().isExtended},C["yt-spec-touch-feedback-shape--down"]=y,C["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!D().triggerEvents},C));
return _.K("yt-touch-feedback-shape",{style:_.el({"border-radius":"inherit"})},_.K("div",{el:V,class:y,style:_.el({"margin-top":function(){return D().customTopExtend?"-"+D().customTopExtend+"px":void 0}}),
"on:mousedown":d,"on:mouseup":T,"on:pointerleave":z,"on:touchstart":d,"on:touchend":T,"aria-hidden":!0},_.K("div",{class:"yt-spec-touch-feedback-shape__stroke",style:J,el:H}),_.K("div",{class:"yt-spec-touch-feedback-shape__fill",style:J,el:Q})))},"p");
_.kl.idomCompat=!0;var xOr={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 oK=_.jR();oK=oK.toLowerCase();if(_.QY(oK,"android")){var MfL=oK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);MfL&&parseFloat(MfL[1])<100||oK.match("("+Object.keys(xOr).join("|")+")")};var hEY=_.MA(function(V){return _.K(_.e,{cond:V.aTagConfig,then:function(D){return _.K(_.YC,{aTagConfig:D,disabled:V.disabled,className:V.className,style:V.style,title:V.title,ariaLabel:V.ariaLabel,ariaCurrent:function(){var f,n;return((f=V.toggleable)==null?void 0:f.call(V))&&((n=V.toggled)==null?void 0:n.call(V))}},V.children)},
else:function(){return _.K("button",{"on:click":_.jl(function(D){var f;return(f=V.onClick)==null?void 0:f.call(V,D)}),
class:V.className,title:V.title,style:V.style,disabled:V.disabled,"aria-pressed":function(){var D,f;return((D=V.toggleable)==null?0:D.call(V))?!((f=V.toggled)==null||!f.call(V)):void 0},
"aria-label":V.ariaLabel,"aria-disabled":V.visiblyDisabled,"aria-hidden":V.ariaHidden,tabindex:V.tabIndex},V.children)}})},"q"),VUY=_.MA(function(V){var D=V.data;
var f=V.hasIconLeading;var n=V.hasIconLeadingTrailing;var t=V.hasIconTrailing;var J=V.iconButton;var H=V.iconClassName;var Q=V.secondaryIconClassName;var T=V.icon;var y=V.secondaryIcon;var Z=V.textContentClassName;return _.K(Jv,{className:"",style:"display: inherit; justify-content: center"},_.K(_.e,{debugInstance:"V4z1Uc",cond:function(){return T&&(f()||n()||(J==null?void 0:J()))},
then:function(){return _.K(Jv,null,_.K("div",{class:H,"aria-hidden":"true"},T==null?void 0:T()))}}),_.K(_.e,{debugInstance:"ok3btb",
cond:function(){return(D().buttonText||D().animatedTextProps||D().formattedButtonText)&&!(J==null?0:J())},
then:function(){return _.K(Jv,null,_.K(UOr,{className:Z,iconPosition:function(){return D().iconPosition},
text:function(){return D().buttonText},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps}}))}}),_.K(_.e,{debugInstance:"DO5Rz",
cond:t,then:function(){return _.K(Jv,null,_.K("div",{class:H},T==null?void 0:T()))}}),_.K(_.e,{debugInstance:"bnojSc",
cond:n,then:function(){return _.K(Jv,null,_.K("div",{class:Q},y==null?void 0:y()))}}),_.K(_.e,{debugInstance:"HN3kad",
cond:function(){return!D().disabled&&!0},
then:function(){return _.K(_.kl,{model:function(){return{color:luZ(D())}}})}}))},"r"),UOr=_.MA(function(V){var D=function(){var f,n;
return((f=V.iconPosition)==null?void 0:f.call(V))==="icon-with-label"||((n=V.oneOffCustomTextWrap)==null?void 0:n.call(V))};
return _.K("div",{class:V.className,"aria-hidden":function(){var f,n,t;return((f=V.ariaHidden)==null?void 0:f.call(V))&&(!((n=V.animatedTextProps)==null||!n.call(V))||!((t=V.formattedButtonText)==null||!t.call(V)))}},_.K(_.kw,null,_.K(_.gj,{when:function(){var f;
return(f=V.animatedTextProps)==null?void 0:f.call(V)}},function(){return _.K(_.IEl,{numberText:function(){return V.animatedTextProps().numberText},
numberValue:function(){return V.animatedTextProps().numberValue},
heightPx:function(){return V.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return V.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return V.animatedTextProps().shouldAnimate},
forceRollUp:function(){return V.animatedTextProps().forceRollUp}})}),_.K(_.gj,{when:function(){var f;
return(f=V.formattedButtonText)==null?void 0:f.call(V)}},function(){return _.K(_.Ow,{text:function(){return Object.assign({},V.formattedButtonText(),{lineBreakMode:D()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":V.formattedButtonText().lineBreakMode,
alignment:D()?"TEXT_ALIGNMENT_CENTER":V.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!D()}})}),_.K(_.gj,{when:function(){var f,n;
return((f=V.iconPosition)==null?void 0:f.call(V))==="icon-with-label"&&((n=V.text)==null?void 0:n.call(V))}},function(){return _.K(_.Ow,{text:function(){return{content:V.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.K(_.v9,null,function(){return V.text})))},"s"),DIF=_.MA(function(V){return _.K(_.e,{debugInstance:"kM7Sgc",
cond:V.hasLabel,then:function(){var D;return _.K("label",{class:V.className},V.children,(D=V.textContent)==null?void 0:D.call(V))},
else:function(){return V.children}})},"t"),Jv=_.MA(function(V){return V.children},"u");var KAU=MN("stamper-context");var xC=_.MA(function(V){var D=V.data;var f=V.icon;var n=V.iconName;var t=V.secondaryIcon;var J=V.secondaryIconName;var H=V.focusedOverride;_.u5x();var Q=KTU(D),T=Q.size,y=Q.style;V=Q.disabled;var Z=Q.onTap,l=Q.alignByText,G=Q.aTagConfig,F=Q.customColors,k=Q.segmentedPosition,d=Q.toggled,z=Q.toggleable,C=Q.accessibilityLabel,A=Q.onToggle,O=Q.iconPosition,W=Q.oneOffCustomTextWrap,I=Q.disableTextEllipsis,x=Q.disableBackdropFilter,oY=Q.tooltipText,wZ=Q.ariaHidden,ZZ=Q.tabIndex,sd=Q.buttonText,NU=Q.formattedButtonText,
Bn=Q.animatedTextProps,aY=jd3(D,f,t,n,J,H),Ed=aY.type;f=aY.shouldFocus;n=aY.hasIconLeading;t=aY.hasIconTrailing;var V0=aY.hasIconLeadingTrailing,kf=aY.hasIconOnly;J=aY.hasIconOnly40;var mY=aY.hasIconWithLabel;H=aY.iconButton;var Ko=aY.visiblyDisabled;Q=aY.overrideSmallSizeIcon;var Eu=aY.iconToRender;aY=aY.secondaryIconToRender;var y0={},BH={};return _.K(DIF,{className:_.KT("yt-spec-button-shape-with-label",(y0["yt-spec-button-shape-with-label--is-overlay"]=function(){return y()==="overlay"||y()===
"overlay-dark"},y0)),
hasLabel:mY,textContent:function(){return _.K(UOr,{text:sd,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:W,iconPosition:O,formattedButtonText:NU,animatedTextProps:Bn})}},_.K(hEY,{aTagConfig:G,
className:_.KT("yt-spec-button-shape-next",function(){return euF(Ed())},function(){return Ko()?void 0:c39(y())},function(){return FTx(T())},(BH["yt-spec-button-shape-next--disabled"]=Ko,BH["yt-spec-button-shape-next--focused"]=f,BH["yt-spec-button-shape-next--icon-trailing"]=t,BH["yt-spec-button-shape-next--icon-leading"]=n,BH["yt-spec-button-shape-next--icon-leading-trailing"]=V0,BH["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return V0()&&!(sd()||NU())},BH["yt-spec-button-shape-next--icon-button"]=
function(){return kf()||mY()},BH["yt-spec-button-shape-next--icon-only-default"]=J,BH["yt-spec-button-shape-next--align-by-text"]=l,BH["yt-spec-button-shape-next--segmented-start"]=function(){return k()==="start"},BH["yt-spec-button-shape-next--segmented-end"]=function(){return k()==="end"},BH["yt-spec-button-shape-next--override-small-size-icon"]=Q,BH["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=W,BH["yt-spec-button-shape-next--disable-text-ellipsis"]=I,BH["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!x()&&GrZ()},BH)),
style:function(){return gIF(F()).style},
onClick:function(wu){Z==null||Z(wu);z()&&(A==null||A(wu))},
disabled:V,ariaLabel:C,toggleable:z,toggled:d,title:function(){var wu;return(wu=oY())!=null?wu:""},
visiblyDisabled:Ko,ariaHidden:wZ,tabIndex:ZZ},_.K(VUY,{data:D,hasIconLeading:n,hasIconLeadingTrailing:V0,hasIconTrailing:t,iconButton:H,icon:Eu,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:aY})))},"v");
xC.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var fPl=_.MA(function(V){var D=V.data;var f=V.id;var n=V.hidden;var t=V.className;var J=V.iconName;var H=V.secondaryIconName;V=_.r(_.HJ(!1,void 0,"RyKHFc"));var Q=V.next().value,T=V.next().value,y=function(){var l=_.DY().resolve(_.Vx(_.PO));l&&T(l.isKeyBoardInUse())},Z=function(){T(!1)};
V=_.W2("yt-button-shape",function(l){if(_.DY().resolve(_.Vx(_.PO)))return l.addEventListener("focusin",y),l.addEventListener("focusout",Z),function(){l.removeEventListener("focusin",y);l.removeEventListener("focusout",Z)}});
return _.K("yt-button-shape",{el:V,id:f,class:t,hidden:n},_.K(_.e,{cond:D,then:function(){return _.K(xC,{data:D,iconName:J,secondaryIconName:H,focusedOverride:Q})}}))},"w");
_.c("web_wiz_button_shape")&&_.fT(fPl,"yt-button-shape",{props:{data:_.WX,id:_.WX,hidden:_.WX,className:_.WX,iconName:_.WX,secondaryIconName:_.WX},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var rM=function(){var V=_.E.apply(this,arguments)||this;V.keyboardFocused=!1;return V};
_.v(rM,_.E);rM.prototype.onFocus=function(){var V=_.DY().resolve(_.Vx(_.PO));V&&(this.keyboardFocused=V.isKeyBoardInUse())};
rM.prototype.onBlur=function(){this.keyboardFocused=!1};
rM.prototype.renderIdom=function(){var V=this;if(this.data){var D=Fh(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),f=ZkL(this.data);this.data.focused=this.keyboardFocused;dEF(this.data,function(){var n;N3("yt-icon",{icon:V.iconName,active:(n=V.data)==null?void 0:n.toggled,size:D,style:"width: "+D+"px; height: "+D+"px;",iconFilter:f},pG)},function(){var n;
N3("yt-icon",{icon:V.secondaryIconName,active:(n=V.data)==null?void 0:n.toggled,size:D,style:"width: "+D+"px; height: "+D+"px;",iconFilter:f},pG)});
_.PA(this.hostElement,"yt-renderidom-finished")}};
_.IG.Object.defineProperties(rM,{template:{configurable:!0,enumerable:!0,get:function(){if($OH===void 0){var V=document.createElement("template");_.B(V,"\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");
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(Y$l().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(AdE().content.cloneNode(!0),V.content.firstChild);$OH=V}V=$OH;return V}}});
rM.prototype.onBlur=rM.prototype.onBlur;rM.prototype.onFocus=rM.prototype.onFocus;_.S([_.u(G7E),_.p("design:type",Object)],rM.prototype,"ytIdomTemplatingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],rM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],rM.prototype,"iconName",void 0);_.S([_.q(),_.p("design:type",String)],rM.prototype,"secondaryIconName",void 0);_.S([_.q(),_.p("design:type",Object)],rM.prototype,"keyboardFocused",void 0);
_.S([_.bU("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rM.prototype,"onFocus",null);_.S([_.bU("focusout"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rM.prototype,"onBlur",null);_.S([_.zy({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.c("web_wiz_button_shape")})],rM);_.fT(_.MA(function(V){function D(){f().seconds&&J(i93({seconds:Number(f().seconds)-Date.now()/1E3}))}
var f=V.targetTimestamp;V=V.className;var n=_.r(_.HJ("",void 0,"U1Q8Ae")),t=n.next().value,J=n.next().value;_.B9(function(){D();var H=setInterval(function(){D()},1E3);
_.dc(function(){clearInterval(H)})});
return _.K("yt-countdown",{class:_.KT("ytCountDownHost",V)},_.K("div",null,t))},"x"),"yt-countdown",{props:{targetTimestamp:_.WX,
className:_.Dn}});_.HO=_.MA(function(V){var D=V.data;var f=V.className;var n=V.style;var t=V.useOutlinedIcon;var J=V.buttonOverrides;var H=V.animatedTextProps;var Q=V.onClick;var T=V.target;var y=_.W2("button-view-model",function(C){C.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var A=D().targetId;A&&_.sDr(_.cX(),A,C);return function(){vDF(_.cX(),C)}}),Z=function(){return D().iconName},l,G=(l=_.DY().resolve(_.Vx(_.pm)))==null?void 0:l(),F=function(){var C=D();
var A=J==null?void 0:J(),O=H==null?void 0:H(),W=T==null?void 0:T();if(C){var I=qId(C.type);var x=!!C.title||!!C.titleFormatted;var oY=!(!C.iconName&&!C.iconImage);x=oY&&!x?"icon-only":oY?C.iconTrailing||C.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;x==="icon-only-40"&&(I="text");var wZ,ZZ=(wZ=A==null?void 0:A.disabled)!=null?wZ:C.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||C.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";wZ=Object;oY=wZ.assign;var sd=C.title,
NU=C.titleFormatted;O=O&&O.numberText&&!isNaN(Number(O.numberValue))?O:void 0;var Bn=C.accessibilityText,aY=COY(C.style),Ed=XfX(C.state),V0=EId(C.buttonSize);W=Rux(C,y,ZZ,Q,W);ZZ=ZZ&&!C.onDisabledTap;var kf=_.Xo(C==null?void 0:C.onTap);var mY={};kf&&(mY.clickedVisualElement=zu3(C,kf));kf=_.A2({elementsCommand:C.onTap,forceNewState:!0,additionalCommandArgs:mY});kf=a5(kf)?kf:void 0;var Ko=C.customFontColor,Eu=C.customBackgroundColor;mY=C.customBorderColor;var y0=C.customDarkThemeFontColor,BH=C.customDarkThemeBackgroundColor,
wu=C.customDarkThemeBorderColor;Ko=G&&y0?y0:Ko;Eu=G&&BH?BH:Eu;mY=G&&wu?wu:mY;mY={color:Ko?_.aB(Ko):void 0,backgroundColor:Eu?_.aB(Eu):void 0,borderColor:mY?_.aB(mY):void 0};C=oY.call(wZ,{},{buttonText:sd,formattedButtonText:NU,animatedTextProps:O,accessibilityLabel:Bn,style:aY,type:I,state:Ed,size:V0,iconPosition:x,onTap:W,disabled:ZZ,aTagConfig:kf,customColors:mY,tooltipText:C.tooltip},A)}else C={style:"mono",type:"text",state:"active",size:"M"};C.focused=z();return C},k=function(){return Fh(F(),
!!D().iconName)};
V=_.r(_.HJ(!1,void 0,"nBSZgd"));l=V.next().value;var d=V.next().value,z=l;V=_.jl(function(){var C=_.DY().resolve(_.Vx(_.PO));C&&d(C.isKeyBoardInUse());return!1});
l=_.jl(function(){d(!1);return!1});
_.BJ(function(){var C,A=_.g(D==null?void 0:(C=D())==null?void 0:C.onVisible,_.q3);A&&_.Em(A,{disableClickTracking:!0})},"pTxQg");
return _.K("button-view-model",{el:y,class:_.KT("yt-spec-button-view-model",f),"on:focusin":V,"on:focusout":l},_.K(_.e,{cond:function(){var C;return(D==null?0:(C=D())==null?0:C.iconImage)?{sources:[D().iconImage]}:void 0},
then:function(C){return _.K(xC,{data:F,icon:function(){return _.K(_.xt,{data:C,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.K(xC,{data:F,icon:function(){return _.K(_.cj,{icon:Z,active:function(){return(t==null?0:t())?!1:F().toggled},
animateIcon:function(){var C;return!!(n==null?0:(C=n())==null?0:C.animateIcon)},
size:k})}})}}))},"y");
_.HO.idomCompat={callbacks:{onClick:!0}};_.fT(_.MA(function(V){return _.K("yt-button-view-model",{id:V.id,class:_.KT(V.scopingClassName,V.classes),icon:function(){var D;return(D=V.icon)==null?void 0:D.call(V)},
"dialog-dismiss":function(){var D;return((D=V.dialogDismiss)==null?0:D.call(V))?"":void 0}},_.K(_.HO,{data:function(){var D;
return(D=V.data)==null?void 0:D.call(V)},
className:function(){var D;return(D=V.className)==null?void 0:D.call(V)},
style:function(){var D;return(D=V.style)==null?void 0:D.call(V)},
useOutlinedIcon:function(){var D;return(D=V.useOutlinedIcon)==null?void 0:D.call(V)},
buttonOverrides:function(){var D;return(D=V.buttonOverrides)==null?void 0:D.call(V)},
animatedTextProps:function(){var D;return(D=V.animatedTextProps)==null?void 0:D.call(V)},
onClick:function(D){var f;return(f=V.onClick)==null?void 0:f.call(V,D)}}))},"z"),"yt-button-view-model",{props:{data:_.WX,
className:_.WX,style:_.WX,useOutlinedIcon:_.WX,buttonOverrides:_.WX,animatedTextProps:_.WX,onClick:_.Dn,scopingClassName:_.WX,id:_.WX,icon:_.WX,dialogDismiss:_.WX,classes:_.WX,target:_.Dn}});var wM=function(){var V=_.E.apply(this,arguments)||this;V.isGoalActive=!0;return V};
_.v(wM,_.E);wM.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
wM.prototype.progressBarChanged=function(){var V=_.Pt(this.hostElement).querySelector("#progress-bar-progress"),D,f,n,t=(n=Number((D=this.creatorGoalState)==null?void 0:D.currentGoalCount)/Number((f=this.creatorGoalState)==null?void 0:f.totalGoalCount)*100)!=null?n:0,J;V.style.width=((J=Math.min(t,100))!=null?J:0)+"%"};
wM.prototype.goalStateChanged=function(){var V;this.isGoalActive=((V=this.creatorGoalState)==null?void 0:V.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var D;V={"--yt-progress-bar-color":Vfc((D=this.creatorGoalState)==null?void 0:D.progressBarColor)};_.wI(this.hostElement,V)};
wM.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.IG.Object.defineProperties(wM.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var V;return this.isGoalActive&&!((V=this.creatorGoalState)==null||!V.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.creatorGoalState)==null?0:V.endTimestampMs){var D;V=Number((D=this.creatorGoalState)==null?void 0:D.endTimestampMs)/1E3;return{seconds:String(V)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.creatorGoalState)==null?0:V.themedTargetImage){var D;V=_.g((D=this.creatorGoalState)==null?void 0:D.themedTargetImage,aDE);return this.isAppDarkTheme()?V==null?void 0:V.imageDark:V==null?void 0:V.imageLight}}}});
_.IG.Object.defineProperties(wM,{template:{configurable:!0,enumerable:!0,get:function(){return lEU()}}});
wM.prototype.goalStateChanged=wM.prototype.goalStateChanged;wM.prototype.progressBarChanged=wM.prototype.progressBarChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],wM.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);
_.S([_.q({selectorArgs:["data.creatorGoalEntityKey"],selector:function(V,D){return _.wg(V.entities,"creatorGoalEntity",D)}}),
_.p("design:type",Object)],wM.prototype,"creatorGoalState",void 0);_.S([_.q(),_.p("design:type",Object)],wM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],wM.prototype,"isGoalActive",void 0);_.S([_.R("creatorGoalState","isGoalActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],wM.prototype,"shouldShowCountdown",null);_.S([_.R("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"endTimestamp",null);
_.S([_.R("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"targetIconThemedImage",null);_.S([_.KI("creatorGoalState.currentGoalCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wM.prototype,"progressBarChanged",null);_.S([_.KI("creatorGoalState.creatorGoalState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wM.prototype,"goalStateChanged",null);
_.S([_.zy({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],wM);_.Y(wM,"yt-creator-goal-progress-flow-view-model",function(){return lEU()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var nhE;var tUF;var Q8=function(){return _.E.apply(this,arguments)||this};
_.v(Q8,_.E);Q8.prototype.attached=function(){var V,D,f;if(this==null?0:(V=this.data)==null?0:(D=V.pdgPurchasedBumperLoggingDirectives)==null?0:(f=D.loggingDirectives)==null?0:f.trackingParams){var n,t,J;YIZ(this==null?void 0:(n=this.data)==null?void 0:(t=n.pdgPurchasedBumperLoggingDirectives)==null?void 0:(J=t.loggingDirectives)==null?void 0:J.trackingParams)}};
Q8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Q8.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Q8.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Q8);
_.Y(Q8,"yt-live-chat-item-bumper-view-model",function(){if(tUF===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;nhE===void 0&&(nhE=document.createElement("template"));var n=nhE;f.call(D,n.content.cloneNode(!0),V.content.firstChild);tUF=V}V=tUF;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var PjE;var ohU;_.LT=function(V,D){this.data=V;this.actions=D;this.data=V;this.actions=D};
_.AI=function(){};_.T0={};_.T0.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(V,D){$Ex(this.hostElement,V,D)},
getNavigationEndpointPopupAction:function(V){return ikn(V,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(V,D){SIn(this.hostElement,V,D,this.openPopupConfig)}};var VyR=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.bz={};
_.bz.YtEndpointBehavior=[_.T0.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.XB("openPopupConfig");(this.useClickHandler=_.EG("useClickHandler",!1))?this.hostElement.addEventListener("click",Qg(this,this.onEndpointClick_)):(B1(this.hostElement,"tap",Qg(this,this.onEndpointTap_)),B1(this.hostElement,"touchend",Qg(this,this.onEndpointTouchEnd_)));B1(this.hostElement,"touchstart",Qg(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Qg(this,this.onEndpointTapStart_))},
onEndpointClick_:function(V){LTL(this.hostElement,V,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(V){var D=this.hostElement,f=this.openPopupConfig,n=this.disableCommandHandlerOverride;n=n===void 0?!1:n;var t=WT9(V);if(t){t.href&&id(t.href);var J=V.detail;var H=J.sourceEvent;J=J.preventer;H=H.button!==void 0?H.button===0&&!dk(H):J?!dk(J):!0;t.data&&H&&pfY(D,t,V,f,n)}},
onEndpointTouchEnd_:function(V){dk(V)||WT9(V)&&V.preventDefault()},
onEndpointTapStart_:function(V){hud(V)}}];var Dvc="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),nPR=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var JsV={};JsV.YtPlaintextBehavior=[_.ja,{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(V){V.preventDefault();V=V.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},
preventRichTextFormatting_:function(V){_.Tl&&(V=V.detail.keyboardEvent,V.stopImmediatePropagation(),V.preventDefault())}}];var rsu;var HQu;var Kt=function(){var V=_.E.apply(this,arguments)||this;V.ignoreShadyDom=!1;V.hasChange_=!1;V.hasSetTitle_=!1;V.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.XB("INNERTUBE_CLIENT_NAME")==="WEB";V.ytFormattedStringObserverHandlerKeys_=void 0;return V};
_.v(Kt,_.E);_.P=Kt.prototype;_.P.created=function(){this.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.XB("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.P.ready=function(){_.XB("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_()};
_.P.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.P.detached=function(){this.unobserveIOObservers_()};
_.P.clearContents_=function(){for(var V=this.getRoot(),D=V.lastChild;D&&D.tagName!=="STYLE";){try{V.removeChild(D)}catch(f){break}D=V.lastChild}};
_.P.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var V=_.r(this.ytFormattedStringObserverHandlerKeys_),D=V.next();!D.done;D=V.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(D.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.P.resetForAttributedString=function(){var V=this.getRoot();!V.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),V.appendChild(this.ytAttributedStringElementRef))};
_.P.resetForFormattedString=function(){var V=this.getRoot(),D=V.querySelector("yt-attributed-string");D&&(this.ytAttributedStringElementRef=V.removeChild(D))};
_.P.textChanged=function(){this.textChanged_(this.text)};
_.P.textChanged_=function(V){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!V||!V.runs&&!V.simpleText;if(_.c("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var D=this.hostElement.firstChild;D&&D.nodeName==="FONT";){var f=D;D=D.nextSibling;this.hostElement.removeChild(f)}D=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
f=V.simpleText;var n;!f&&((n=V.runs)==null?void 0:n.length)===1&&this.isSimpleString_(V.runs[0])&&(f=V.runs[0].text);f!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.XB("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(f!==void 0){try{D.textContent=f}catch(t){}D.textContent||(this.isEmpty=!0)}else V=V.runs,f!==void 0&&(V=[{text:f}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),V&&this.updateText_(V),
D.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.P.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)};
_.P.computeAriaLabel_=function(V){return V};
_.P.computeEllipsisTruncateStyling=function(V,D){return V&&!D};
_.P.computeUseAttributedString=function(V){return _.c("web_replace_formatted_with_attributed_string")&&ZFx(V)&&!this.disableAttributedString&&!this.enableContentEditable};
_.P.setNodeStyle_=function(V,D){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.c("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?D.removeAttribute("dir"):D.setAttribute("dir","auto");D.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");D.style.color="";var f=null;this.noStyles||(V.bold&&(D.classList.add("bold"),f="bold"),V.deemphasize&&(D.classList.add("deemphasize"),f="deemphasize"),V.italics&&D.classList.add("italic"),
V.strikethrough&&D.classList.add("strikethrough"),V.errorUnderline&&(D.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),V.bracket&&D.classList.add("bracket"),V.textColor&&(D.style.color=_.AP(V.textColor)));f!==D.getAttribute("style-target")&&(f?D.setAttribute("style-target",f):D.removeAttribute("style-target"))};
_.P.setUpVisibilityLogging_=function(V,D){var f=this;this.setNodeTrackingParams_(V,D);var n;((n=D.data)==null?0:n.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(V=this.ytRendererBehavior.visibilityObserver.observe(D,function(t){var J=f.ytRendererBehavior.getVisibilityLogger();J&&J.reportShown(t)},this.ytRendererBehavior.visibilityOptionVisible_),D=this.ytRendererBehavior.visibilityObserver.observe(D,function(t){var J=f.ytRendererBehavior.getVisibilityLogger();
J&&J.reportHidden(t)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(V),this.ytFormattedStringObserverHandlerKeys_.push(D))};
_.P.setNodeTrackingParams_=function(V,D){D.data||(D.data={});if((V=V.loggingDirectives?V.loggingDirectives.trackingParams:null)||D.data.trackingParams)D.data.trackingParams=V};
_.P.computeHasLinkOnly_=function(V){return!(!V||V.length!==1||this.noEndpoints||!V[0].navigationEndpoint)};
_.P.getRoot=function(){var V=this.buildScopeDomOptions();return this.enableContentEditable?_.Pt(_.Pt(this.hostElement,V).querySelector("[contenteditable]")):_.Pt(this.hostElement,V)};
_.P.fixContenteditableScope=function(){var V=function(D){D&&(D.nodeType===1&&D.classList&&(D.classList.add("style-scope"),D.classList.add("yt-formatted-string")),D.childNodes&&D.childNodes.forEach(function(f){V(f)}))};
V(this.getRoot())};
_.P.updateText_=function(V){for(var D=V.length,f=this.getRoot(),n=f.firstChild;n&&n.nodeName==="STYLE";)n=n.nextSibling;for(var t=0;t<D&&n;){var J=V[t],H=_.c("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)if(n.nodeName==="#text"){n.textContent!=H&&(n.textContent=H);t++;n=n.nextSibling;continue}else break;if(_.g(J,R5))break;else if(!this.noEndpoints&&J.navigationEndpoint){if(n.nodeName!=="A")break;this.setDataOnAnchor_(n,
J.navigationEndpoint)}else if(n.nodeName!=="SPAN")break;this.setNodeStyle_(J,n);this.setUpVisibilityLogging_(J,n);n.textContent!=H&&(n.textContent=H);t++;n=n.nextSibling}if(n)for(J=f.lastChild,n=t?n.previousSibling:null;J&&J!=n;){try{f.removeChild(J)}catch(Q){break}J=f.lastChild}t!==D&&this.addTextNodes_(V,t)};
_.P.addTextNodes_=function(V,D){for(var f=document.createDocumentFragment(),n=V.length;D<n;D++){var t=V[D],J=_.c("remove_cr_char")&&t.text?t.text.replace("\r",""):t.text;if(this.isSimpleString_(t)&&!this.useMixedDirectionFormattedStrings)f.appendChild(document.createTextNode(J));else{var H=_.g(t,R5);if(H){if(H.image){var Q=document.createElement("img");H.isCustomEmoji||Q.classList.add("small-emoji");Q.classList.add("emoji");H.isCustomEmoji&&(Q.dataset.emojiId=H.emojiId);Q.src=_.nT(H.image.thumbnails,
this.emojiSize);(t=this.get("image.accessibility.accessibilityData.label",H))?Q.alt=t:H.shortcuts&&H.shortcuts.length>0?Q.alt=H.shortcuts[0]:H.emojiId&&(Q.alt=H.emojiId);f.appendChild(Q);this.hasEmoji=!0}}else!this.noEndpoints&&t.navigationEndpoint?(Q=document.createElement("a"),Q.classList.add("yt-simple-endpoint"),Q.setAttribute("spellcheck","false"),this.setDataOnAnchor_(Q,t.navigationEndpoint)):Q=document.createElement("span"),this.setNodeStyle_(t,Q),this.setUpVisibilityLogging_(t,Q),Q.appendChild(document.createTextNode(J)),
f.appendChild(Q)}}this.getRoot().appendChild(f)};
_.P.isSimpleString_=function(V){return(this.noEndpoints||!V.navigationEndpoint)&&!_.g(V,R5)&&(this.noStyles||!(V.bold||V.deemphasize||V.italics||V.strikethrough||V.errorUnderline||V.bracket||V.textColor))&&!V.loggingDirectives};
_.P.getRawText=function(){return _.LA(this.text)};
_.P.getFirstRunText=function(){var V;if(((V=this.text)==null?0:V.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.P.setFirstRunText=function(V){var D;((D=this.text)==null?0:D.runs)&&this.text.runs[0]&&(this.text.runs[0].text=V,this.textChanged_(this.text))};
_.P.setDataOnAnchor_=function(V,D){var f=this;!_.c("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(D)||this.isSignalServiceEndpoint_(D)?(V.onclick=this.serviceEndpointHandler_(D),se(V,"#")):zqd({text:this.text,command:D},function(){W7R(V,D,f.target)})};
_.P.isServiceEndpoint_=function(V){var D;return!((D=_.g(V==null?void 0:V.commandMetadata,_.he))==null||!D.sendPost)};
_.P.isSignalServiceEndpoint_=function(V){return!!_.g(V,_.K6)};
_.P.serviceEndpointHandler_=function(V){var D=this;return function(f){_.HA(D.hostElement,[V]);f.preventDefault()}};
_.P.overrideAriaLabelChanged_=function(){var V=this.getRoot();this.enableContentEditable&&V&&V.setAttribute("aria-label",this.overrideAriaLabel)};
_.P.enableContentEditableChanged_=function(){var V=this,D=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),D=_.Pt(this.hostElement,D),!D.lastChild||D.lastChild instanceof HTMLElement&&D.lastChild.id!=="contenteditable-root"){var f=document.createElement("div");f.id="contenteditable-root";f.setAttribute("contenteditable","true");f.setAttribute("dir","auto");f.onfocus=function(){V.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
D.appendChild(f);this.overrideAriaLabel&&f.setAttribute("aria-label",this.overrideAriaLabel)}}else f=_.oU(this.hostElement).firstChild,f instanceof HTMLElement&&f.id==="contenteditable-root"&&_.Pt(this.hostElement,D).removeChild(f)};
_.P.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.P.getNodesForVisibilityLogging_=function(){return _.Pb(this.getRoot().childNodes,function(V){var D;return!((D=V.data)==null||!D.trackingParams)})};
_.P.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.P.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var V=this.ytRendererBehavior.getVisibilityLogger();V&&this.getNodesForVisibilityLogging_().forEach(function(D){V.reportShown(D)})}};
_.P.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var V=this.ytRendererBehavior.getVisibilityLogger();V&&this.getNodesForVisibilityLogging_().forEach(function(D){V.reportHidden(D)})}};
_.IG.Object.defineProperties(Kt.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.c("enable_mixed_direction_formatted_strings")}}});
Kt.prototype.enableContentEditableChanged_=Kt.prototype.enableContentEditableChanged_;Kt.prototype.overrideAriaLabelChanged_=Kt.prototype.overrideAriaLabelChanged_;Kt.prototype.ellipsisTruncateChanged_=Kt.prototype.ellipsisTruncateChanged_;Kt.prototype.textChanged=Kt.prototype.textChanged;_.S([_.u(JsV.YtPlaintextBehavior),_.p("design:type",Object)],Kt.prototype,"ytPlaintextBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Kt.prototype,"text",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"noEndpoints",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"noStyles",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Kt.prototype,"isDarkTheme",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Kt.prototype,"splitLines",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Kt.prototype,"forceDefaultStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Kt.prototype,"ellipsisTruncate",void 0);_.S([_.q(),_.p("design:type",Object)],Kt.prototype,"ignoreShadyDom",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.p("design:type",Boolean)],Kt.prototype,"ellipsisTruncateStyling",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.p("design:type",String)],Kt.prototype,"ariaLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Kt.prototype,"isEmpty",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.p("design:type",Boolean)],Kt.prototype,"hasLinkOnly_",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"hasEmoji",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"disableAttributedString",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"isOverlay",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"linkInheritColor",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"noPreWrap",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"userInput",void 0);_.S([_.q({value:16}),_.p("design:type",Number)],Kt.prototype,"emojiSize",void 0);_.S([_.q(),_.p("design:type",String)],Kt.prototype,"target",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"enableContentEditable",void 0);_.S([_.q(),_.p("design:type",String)],Kt.prototype,"overrideAriaLabel",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"respectHtmlDir",void 0);_.S([_.q(),_.p("design:type",Boolean)],Kt.prototype,"respectLangDir",void 0);_.S([_.R("plaintextOnly"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kt.prototype,"useMixedDirectionFormattedStrings",null);_.S([_.q({computed:"computeUseAttributedString(text)"}),_.p("design:type",Boolean)],Kt.prototype,"useYtAttributedString",void 0);
_.S([_.KI("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kt.prototype,"textChanged",null);_.S([_.KI("ellipsisTruncate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kt.prototype,"ellipsisTruncateChanged_",null);_.S([_.KI("overrideAriaLabel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kt.prototype,"overrideAriaLabelChanged_",null);
_.S([_.KI("enableContentEditable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kt.prototype,"enableContentEditableChanged_",null);_.S([_.zy({is:"yt-formatted-string",disableElementRegistration:!0})],Kt);
_.Y(Kt,"yt-formatted-string",function(){if(HQu===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;rsu===void 0&&(rsu=document.createElement("template"));var n=rsu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);HQu=V}V=HQu;return V});var wip;var Qvr;var Tip;var bQL;var y8=function(){var V=_.E.apply(this,arguments)||this;V.focused=!1;V.disabled=!1;V.isOverlay=!1;return V};
_.v(y8,_.E);y8.prototype.triggerDown=function(){if(!this.disabled){_.JA(this.hostElement,"down",!0);var V;(V=this.currentAnimation)==null||V.cancel()}};
y8.prototype.triggerUp=function(){if(!this.disabled){_.JA(this.hostElement,"down",!1);var V=this.fillElement;var D=this.strokeElement;typeof GroupEffect==="function"?(V=new GroupEffect([QdX(V),T1n(D)]),V=new Animation(V,document.timeline)):V=new OFl(V,D);this.currentAnimation=V;var f;(f=this.currentAnimation)==null||f.play()}};
_.S([_.Zv(".stroke"),_.p("design:type",HTMLElement)],y8.prototype,"strokeElement",void 0);_.S([_.Zv(".fill"),_.p("design:type",HTMLElement)],y8.prototype,"fillElement",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],y8.prototype,"focused",void 0);_.S([_.q(),_.p("design:type",Object)],y8.prototype,"disabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],y8.prototype,"isOverlay",void 0);_.S([_.zy({is:"yt-interaction",disableElementRegistration:!0})],y8);
_.Y(y8,"yt-interaction",function(){if(bQL===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Tip===void 0&&(Tip=document.createElement("template"));var n=Tip;f.call(D,n.content.cloneNode(!0),V.content.firstChild);bQL=V}V=bQL;return V},{mode:2});var Z6=function(){return _.E.apply(this,arguments)||this};
_.v(Z6,_.E);_.P=Z6.prototype;_.P.ready=function(){var V=this,D=_.Pt(this.hostElement).querySelector("#button");D.addEventListener("focus",function(){C1H||(C1H=new R7E);V.keyboardFocused=C1H.isKeyBoardInUse()});
D.addEventListener("blur",function(){V.keyboardFocused=!1;V.rippleUp_()})};
_.P.computeTabIndex_=function(V){return V?-1:0};
_.P.computeButtonAriaPressed_=function(V){if(this.toggleable)return V?"true":"false"};
_.P.rippleDown_=function(){_.Pt(this.hostElement).querySelector("#interaction").triggerDown()};
_.P.rippleUp_=function(){_.Pt(this.hostElement).querySelector("#interaction").triggerUp()};
_.P.onPressedChanged_=function(){var V=_.oU(_.Pt(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.oU(_.Pt(this.hostElement).querySelector("#button")).children[0];V&&(V.active=this.pressed)};
Z6.prototype.onPressedChanged_=Z6.prototype.onPressedChanged_;Z6.prototype.rippleUp_=Z6.prototype.rippleUp_;Z6.prototype.rippleDown_=Z6.prototype.rippleDown_;_.S([_.q(),_.p("design:type",String)],Z6.prototype,"label",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Z6.prototype,"disabled",void 0);_.S([_.q(),_.p("design:type",Boolean)],Z6.prototype,"pressed",void 0);_.S([_.q(),_.p("design:type",Object)],Z6.prototype,"toggleable",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Z6.prototype,"untabbable",void 0);_.S([_.q(),_.p("design:type",Boolean)],Z6.prototype,"keyboardFocused",void 0);_.S([_.bU("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z6.prototype,"rippleDown_",null);_.S([_.bU("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z6.prototype,"rippleUp_",null);
_.S([_.KI("pressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z6.prototype,"onPressedChanged_",null);_.S([_.zy({is:"yt-icon-button",disableElementRegistration:!0})],Z6);
_.Y(Z6,"yt-icon-button",function(){if(Qvr===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;wip===void 0&&(wip=document.createElement("template"));var n=wip;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Qvr=V}V=Qvr;return V},{mode:2});var Kel=_.WV(["aria-"]),jH={};jH.YtRenderButtonBehavior=[_.U.YtRendererBehavior,_.bz.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!!_.DY().resolve(_.Vx(_.PO))&&_.c("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 V=this.computeHref_(this.endpoint,!0);V?se(this.elements_.endpoint,V):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){V=this.buttonClass.split(" ");V=_.r(V);for(var D=V.next();!D.done;D=V.next())D=D.value,_.JA(this.hostElement,D,!0),this.elements_.button&&_.JA(this.elements_.button,D,!0),this.elements_.text&&_.JA(this.elements_.text,D,!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&&(V=null,this.buttonAccessibility&&(V=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=V:V?_.iv([_.fi(Kel)],this.elements_.button,"aria-label",V):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var V=_.DY().resolve(_.Vx(_.PO));V&&(this.keyboardFocused=V.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Md("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,_.Fw(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Fw(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(V,D){if(D)for(V=D.split(" "),V=_.r(V),D=V.next();!D.done;D=V.next())D=D.value,_.JA(this.hostElement,D,!1),this.elements_.button&&_.JA(this.elements_.button,D,!1),this.elements_.text&&_.JA(this.elements_.text,D,!1)},
buttonIconChanged_:function(V){this.elements_.icon?V?(this.elements_.icon.icon=V,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Fw(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.rI(this.hostElement,"is-paper-button-with-icon",!1)):V&&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"&&_.Fw(this.elements_.button).appendChild(this.elements_.icon):_.Fw(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.rI(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(V){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,V){var D=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(V){case "yt_icon_button_with_label":D=!0;_.JA(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();V=_.Fw(this.elements_.button).firstElementChild;
this.elements_.icon=V;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Fw(this.elements_.endpoint).appendChild(this.elements_.button);_.Fw(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Md("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;_.Fw(this.elements_.button).appendChild(this.elements_.text);_.Fw(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":D=!0,this.elements_.button=this.getYtIconButton_(),V=_.Fw(this.elements_.button).firstElementChild,this.elements_.icon=V,this.setIconActive_(this.elements_.icon),
_.Fw(this.elements_.endpoint).appendChild(this.elements_.button)}_.rI(this.hostElement,"is-icon-button",D);_.rI(this.hostElement,"is-paper-button",!D);_.rI(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 f;_.Pt((f=this.container.hostElement)!=null?f:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Fw(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(V){if(V!=void 0||this.disabled)this.disabled=V,this.elements_.button&&(this.elements_.button.disabled=V)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(V){_.c("kevlar_system_icons")&&V&&this.data&&(this.data.isSelected!==void 0?V.active=this.data.isSelected:this.data.isToggled!==void 0&&(V.active=this.data.isToggled))},
observeBasicPalette_:function(V){_.Na(this.hostElement,V)},
disabledChanged_:function(V){this.data&&this.set("data.isDisabled",V)},
onYtButtonTap_:function(V){if(this.disabled)V.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.HA(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(V=this.disableCommandHandlerOverride,!this.data||!this.data.command||V||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.c("handle_service_request_actions")||_.HA(this.hostElement,[this.serviceEndpoint]),
_.PA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.c("handle_service_request_actions")?(V=[],this.serviceEndpoint&&V.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&V.push(this.data.command),V.length&&_.wN(this.hostElement,V,this.hostElement)):this.data&&this.data.command&&(V=this.data.command,V.accountUnlinkCommand||V.accountLinkCommand||V.insertAdCommand||V.insertHighlightMarkerCommand||
V.createLivestreamHighlightClipCommand||V.getVideoUploadFeedbackCommand||V.musicDeletePrivatelyOwnedEntityCommand||V.ypcCancelRecurrenceEndpoint||V.getMultiSelectCommandEndpoint?_.HA(this.hostElement,[V]):_.wN(this.hostElement,[V],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 V,D=_.Pt((V=this.container.hostElement)!=null?V:this.container);D.lastChild&&D.lastChild.tagName!="STYLE";)try{D.removeChild(D.lastChild)}catch(f){break}},
getYtIconButton_:function(){var V=this.reuseEnabled_()?_.Md("yt-icon-button"):document.createElement("yt-icon-button"),D=_.Fw(V).firstElementChild;if(D&&D.is!="yt-icon"){for(D=_.Fw(V);D.lastChild;)D.removeChild(D.lastChild);D=null}D||(D=this.getIcon_(),this.setIconActive_(D),_.Fw(V).appendChild(D));return V},
reuseEnabled_:function(){return _.c("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Md("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Md("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ys6={};
_.ys6.YtButtonBehavior=[jH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var V=this.data;V&&(this._setEndpoint(this.computeEndpoint_(V)),this._setServiceEndpoint(this.computeServiceEndpoint_(V)),this._setCommand(this.computeCommand_(V)),this._setButtonIcon(this.computeButtonIcon_(V)),this._setButtonText(this.computeButtonText_(V,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(V)),this._setButtonTooltip(this.computeTooltip_(V)),this._setButtonClass(this.computeButtonClass_(V)),this._setIconPositionType(this.computeIconPositionType_(V)),this.updateRenderedElements())},
setPressedState:function(V){var D;if((D=this.elements_)==null?0:D.button)this.elements_.button.pressed=!!V},
computeIconPositionType_:function(V){return V&&V.iconPosition||null},
computeEndpoint_:function(V){var D=V&&V.navigationEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.url"),n=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:V&&V.command&&V.command.modalEndpoint?V.command:f&&!n&&V.command?V.command:null},
computeServiceEndpoint_:function(V){var D=V&&V.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:f&&V.command?V.command:null},
computeCommand_:function(V){return V&&V.command||null},
computeButtonIcon_:function(V){return V&&V.icon&&V.icon.iconType?_.Qa(V.icon.iconType):null},
computeButtonText_:function(V,D){return!D&&V&&V.text||null},
computeAccessibility_:function(V){return this.get("accessibilityData.accessibilityData",V)||V&&V.accessibility||(V&&V.text?{label:this.getSimpleString(V.text)}:null)},
computeTooltip_:function(V){return V?V.isDisabled&&V.disabledTooltip||V.tooltip||null:null},
computeButtonClass_:function(V){var D=V&&V.style?V.style.toLowerCase().replace(/_/g,"-")+" ":"";D+=V&&V.size?V.size.toLowerCase().replace(/_/g,"-")+" ":"";V.colorData&&V.colorData.basicColorPaletteData&&V.colorData.basicColorPaletteData.borderColor&&(D+="palette-with-border");return D.trim()}}];var mA={};var ZQo;var jvl;var lPl,G9u=function(){return lPl!==void 0?lPl:lPl=document.createElement("template")};
document.head.appendChild(G9u().content);var eTF;var csP,Fe6=function(){return csP!==void 0?csP:csP=document.createElement("template")};
document.head.appendChild(Fe6().content);var ghH;var vhU,k9r=function(){return vhU!==void 0?vhU:vhU=document.createElement("template")};
document.head.appendChild(k9r().content);var svp;var BiP=document.head,dI6=BiP.appendChild,uj6;if(svp===void 0){var NiY=document.createElement("template");_.B(NiY,"\x3c!--css-build:shady--\x3e");NiY.content.insertBefore(k9r().content.cloneNode(!0),NiY.content.firstChild);svp=NiY}uj6=svp;dI6.call(BiP,uj6.content);var mIU=document.head,zTV=mIU.appendChild,RTF;if(ghH===void 0){var Cjp=document.createElement("template");_.B(Cjp,"\x3c!--css-build:shady--\x3e");Cjp.content.insertBefore(Fe6().content.cloneNode(!0),Cjp.content.firstChild);ghH=Cjp}RTF=ghH;zTV.call(mIU,RTF.content);var qHF=document.head,Xir=qHF.appendChild,Ehl;if(eTF===void 0){var AsE=document.createElement("template");_.B(AsE,"\x3c!--css-build:shady--\x3e");AsE.content.insertBefore(G9u().content.cloneNode(!0),AsE.content.firstChild);eTF=AsE}Ehl=eTF;Xir.call(qHF,Ehl.content);var aPr;_.zk("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");aPr=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.lz=function(){return _.E.apply(this,arguments)||this};
_.v(_.lz,_.E);_.lz.prototype.created=function(){this.openPopupConfig=_.XB("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.lz.prototype.onYtNavigate_=function(V){var D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);D&&(this.ytOpenPopupBehavior.openPopup(D),V.stopPropagation(),V.preventDefault())};
_.IG.Object.defineProperties(_.lz,{template:{configurable:!0,enumerable:!0,get:function(){if(jvl===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;ZQo===void 0&&(ZQo=document.createElement("template"));var n=ZQo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);jvl=V}V=jvl;return V}}});
_.lz.prototype.onYtNavigate_=_.lz.prototype.onYtNavigate_;_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],_.lz.prototype,"ytOpenPopupBehavior",void 0);_.S([_.u(_.ys6.YtButtonBehavior),_.p("design:type",Object)],_.lz.prototype,"ytButtonBehavior",void 0);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.lz.prototype,"onYtNavigate_",null);
_.S([_.zy({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:aPr})],_.lz);var YHL;var $Il=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live"),G0=function(){var V=_.E.apply(this,arguments)||this;V.isPressed=!1;V.forceIconButton=!1;V.forceIconOnly=!1;V.forceModernIconButton=!1;V.skipCommandHandling=!1;V.alignByText=!1;V.fitToVisibleBounds=!0;V.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};V.onTap=function(D){_.PA(V.hostElement,"yt-service-request-sent-button-renderer",D)};
return V};
_.v(G0,_.E);_.P=G0.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.P.onClick=function(V){var D,f=this.disabled||((D=this.data)==null?void 0:D.isDisabled);D=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");f&&D&&V.stopPropagation()};
_.P.computeIcon=function(){var V,D,f=(V=this.data)==null?void 0:(D=V.icon)==null?void 0:D.iconType;if(f)return _.Qa(f)};
_.P.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.P.handleUpdateButtonAction=function(V){V=_.g(V,rDH);var D=_.g(V==null?void 0:V.updatedButton,_.RI);if(this.data&&V&&D){var f=this.data;f.targetId&&V.targetId&&f.targetId===V.targetId&&(this.data=D)}};
_.IG.Object.defineProperties(G0.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var V=this;if(this.data){var D=HbX({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.PA(V.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.PA(V.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});D.alignByText=this.alignByText;return D}}}});
_.IG.Object.defineProperties(G0,{template:{configurable:!0,enumerable:!0,get:function(){if(YHL===void 0){var V=document.createElement("template");_.B(V,'\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>');YHL=V}V=YHL;return V}}});
G0.prototype.onClick=G0.prototype.onClick;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],G0.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"isPressed",void 0);
_.S([_.q(),_.p("design:type",Object)],G0.prototype,"forceIconButton",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"forceIconOnly",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"forceModernIconButton",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"skipCommandHandling",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"alignByText",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"buttonTooltipPosition",void 0);
_.S([_.q(),_.p("design:type",Object)],G0.prototype,"fitToVisibleBounds",void 0);_.S([_.q({computed:"computeTooltip(data)"}),_.p("design:type",Object)],G0.prototype,"tooltip",void 0);_.S([_.q(),_.p("design:type",Object)],G0.prototype,"overrides",void 0);_.S([_.q(),_.p("design:type",Boolean)],G0.prototype,"disabled",void 0);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],G0.prototype,"onClick",null);
_.S([_.R("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.p("design:type",Object),_.p("design:paramtypes",[])],G0.prototype,"computedButtonShape",null);_.S([_.zy({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$Il,cssBuildOptOut:!0}),_.zy({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$Il,cssBuildOptOut:!0})],G0);var iQp;var SHL;var eH=function(){var V=_.E.apply(this,arguments)||this;V.empty_=!0;V.loadTime=Infinity;V.pendingPaint=!1;V.hasChange_=!1;V.oldThumbnail_=null;V.oldDelayedSrc_="";V.objectURL_=null;return V};
_.v(eH,_.E);_.P=eH.prototype;_.P.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.P.ready=function(){var V=this.shouldShowPlaceholder_();_.JA(this.hostElement,"no-transition",!0);V&&this.hostElement.classList.add("with-placeholder")};
_.P.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.P.isThumbPreloaded_=function(V){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",V)};
_.P.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||WeF};
_.P.computeThumbnailSrc_=function(V){return V&&V.thumbnails?_.nT(V.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.P.computeAlt_=function(){var V=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&V||""};
_.P.thumbnailChanged_=function(){var V=_.r([this.thumbnail,this.oldThumbnail_]),D=V.next().value;V=V.next().value;this.oldThumbnail_=D;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(V=this.computeThumbnailSrc_(V),this.computeThumbnailSrc_(D)===V))return;_.c("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(D)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):D&&_.EG("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.pO(this,this.onReload_):_.pO(this,this.onShow_):this.resetImage_();D&&(this.hostElement.style.opacity=""+D.opacity)}};
_.P.delayedSrcChanged_=function(){var V=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===V||this.resetImage_()};
_.P.setSrc_=function(V){V?(_.Pt(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Pt(this.hostElement).querySelector("#img").src=V):(_.Pt(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.P.resetImage_=function(){Trd(this.hostElement);this.empty_=!0;this.setSrc_(WeF);this.ytRendererBehavior.invalidate(!1)};
_.P.observePlaceholderColor_=function(){var V=this.thumbnail&&this.thumbnail.placeholderColor;V?this.hostElement.style.backgroundColor=_.AP(V):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.P.onLoad_=function(){_.Pt(this.hostElement).querySelector("#img").src&&_.Pt(this.hostElement).querySelector("#img").src!==WeF&&(QJd(this.hostElement),this.notifyOnLoaded&&_.PA(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.P.onError_=function(){var V=this;if(_.c("web_use_cache_for_image_fallback"))GXR(_.Pt(this.hostElement).querySelector("#img").src).then(function(D){V.objectURL_=_.Ft(D).toString();V.setSrc_(V.objectURL_)}).catch(function(){_.c("kevlar_woffle_fallback_image")&&V.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.P.onPrescanVisible=function(){this.onShow_()};
_.P.onVisible=function(){if(_.c("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.P.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var V=this.computeSrc_();V!==_.Pt(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(V))}};
_.P.onReload_=function(){this.empty_=!1;var V=this.computeSrc_();V!==_.Pt(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(V))};
_.P.shouldShowPlaceholder_=function(){return _.c("kevlar_thumbnail_bg")};
eH.prototype.observePlaceholderColor_=eH.prototype.observePlaceholderColor_;eH.prototype.delayedSrcChanged_=eH.prototype.delayedSrcChanged_;eH.prototype.thumbnailChanged_=eH.prototype.thumbnailChanged_;_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"alt",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eH.prototype,"ariaHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"ariaLabel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"id",void 0);_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],eH.prototype,"ytVisibilityBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",String)],eH.prototype,"delayedSrc",void 0);
_.S([_.q(),_.p("design:type",Object)],eH.prototype,"thumbnail",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"loaded",void 0);_.S([_.q(),_.p("design:type",Boolean)],eH.prototype,"notifyOnLoaded",void 0);_.S([_.q(),_.p("design:type",Number)],eH.prototype,"height",void 0);_.S([_.q(),_.p("design:type",Number)],eH.prototype,"width",void 0);_.S([_.q({value:function(){return"width"}}),
_.p("design:type",String)],eH.prototype,"dimension",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"fit",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"fitHeight",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"fitWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"objectFit",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"objectPosition",void 0);_.S([_.q(),_.p("design:type",String)],eH.prototype,"preferredThumbnail",void 0);_.S([_.q({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.p("design:type",String)],eH.prototype,"alt_",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],eH.prototype,"sharedTooltipText",void 0);
_.S([_.q(),_.p("design:type",Boolean)],eH.prototype,"ftlEligible",void 0);_.S([_.q({value:void 0}),_.p("design:type",String)],eH.prototype,"observeHiddenOption",void 0);_.S([_.q({value:"observe_once"}),_.p("design:type",String)],eH.prototype,"observePrescanOption",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eH.prototype,"roundedContainer",void 0);
_.S([_.eY("thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eH.prototype,"thumbnailChanged_",null);_.S([_.eY("delayedSrc"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eH.prototype,"delayedSrcChanged_",null);_.S([_.KI("thumbnail.placeholderColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eH.prototype,"observePlaceholderColor_",null);
_.S([_.zy({is:"yt-img-shadow",disableElementRegistration:!0})],eH);var WeF=_.EG("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.o5()(eH,"yt-img-shadow",function(){if(SHL===void 0){var V=document.createElement("template");_.B(V,'\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">');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;iQp===void 0&&(iQp=document.createElement("template"));var n=iQp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);SHL=V}V=SHL;return V},{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 PpZ;_.cO=new _.IH("SCREEN_MANAGER_TOKEN");PpZ=new _.IH("LOG_INITIAL_SCREEN_TOKEN");_.FA=_.MA(function(V){function D(oY){return _.g(oY,_.cW)}
function f(){var oY=n().isTogglingDisabled||d()&&n().toggledIsTogglingDisabled,wZ=oY||G()?d():!d();z(wZ);A(!1);if(!oY){var ZZ;(ZZ=H)==null||ZZ(!!wZ)}var sd;((sd=J)==null?0:sd())||_.H5(_.DY().resolve(_.cO),n().trackingParams);var NU;if(!wZ||!D(n().defaultButtonViewModel)||(NU=J)!=null&&NU()){var Bn;!D(n().toggledButtonViewModel)||((Bn=J)==null?0:Bn())||_.H5(_.DY().resolve(_.cO),D(n().toggledButtonViewModel).trackingParams)}else _.H5(_.DY().resolve(_.cO),D(n().defaultButtonViewModel).trackingParams)}
var n=V.data,t=V.buttonShapeOverrides,J=V.disableExplicitClickLogging,H=V.onToggle,Q=V.style,T=V.useOutlinedIcon,y=V.className,Z=function(){var oY,wZ;return d()?(oY=V.animatedTextPropsToggled)==null?void 0:oY.call(V):(wZ=V.animatedTextPropsDefault)==null?void 0:wZ.call(V)},l=_.yT(function(){return Z()?Object.assign({},Z(),{shouldAnimate:C()}):void 0},void 0,"ZKEa0b"),G=function(){var oY;
return((oY=I())==null?void 0:oY.isToggled)!==void 0},F=_.r(_.Gk(function(){var oY,wZ,ZZ;
return G()?(oY=I())==null?void 0:oY.isToggled:(ZZ=t==null?void 0:(wZ=t())==null?void 0:wZ.toggled)!=null?ZZ:n().isToggled})),k=F.next().value;
F=F.next().value;var d=k,z=F;F=_.r(_.Gk(function(){var oY,wZ;return(oY=V.animatedTextPropsToggled)==null?void 0:(wZ=oY.call(V))==null?void 0:wZ.shouldAnimate}));
k=F.next().value;F=F.next().value;var C=k,A=F;k=_.r(_.HJ(!1,void 0,"S11hid"));var O=k.next().value,W=k.next().value,I=_.CT(function(oY){var wZ;a:{var ZZ=n().entityKey,sd=n().toggledStateEntitySelectorType;if(sd&&ZZ)switch(sd){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var NU;oY=(NU=_.wg(oY.entities,"sfvAudioItemCurrentlyPlayingEntity",ZZ))!=null?NU:void 0;NU=(wZ=oY==null?void 0:oY.sfvAudioItemPlaybackState)!=null?wZ:void 0;if(NU==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){wZ={isToggled:!0};
break a}if(NU){wZ={isToggled:!1};break a}break;default:_.zP(new _.cI("Error: entitySelectorType defined but not matched in selector.",oY,sd))}wZ=void 0}return wZ}),x=function(){return Object.assign({},t==null?void 0:t(),{onToggle:f,
toggleable:!0,toggled:d(),focused:O()})};
return _.K("toggle-button-view-model",{"on:focusin":_.jl(function(){var oY=_.DY().resolve(_.Vx(_.PO));oY&&W(oY.isKeyBoardInUse());return!1}),
"on:focusout":_.jl(function(){W(!1);return!1})},_.K(_.e,{cond:function(){return d()?D(n().toggledButtonViewModel):D(n().defaultButtonViewModel)},
then:function(oY){return _.K(_.HO,{data:oY,className:y,style:Q,useOutlinedIcon:T,buttonOverrides:x,animatedTextProps:l})}}))},"A");
_.FA.idomCompat={callbacks:{onToggle:!0}};_.fT(_.MA(function(V){return _.K("yt-toggle-button-view-model",{class:function(){var D;return(D=V.scopingClassName)==null?void 0:D.call(V)}},_.K(_.FA,{data:function(){var D;
return(D=V.data)==null?void 0:D.call(V)},
buttonShapeOverrides:function(){var D;return(D=V.overrides)==null?void 0:D.call(V)},
animatedTextPropsDefault:function(){var D;return(D=V.animatedTextPropsDefault)==null?void 0:D.call(V)},
animatedTextPropsToggled:function(){var D;return(D=V.animatedTextPropsToggled)==null?void 0:D.call(V)},
disableExplicitClickLogging:function(){var D;return(D=V.disableExplicitClickLogging)==null?void 0:D.call(V)},
onToggle:function(D){var f;return(f=V.onToggle)==null?void 0:f.call(V,D)},
style:function(){var D;return(D=V.style)==null?void 0:D.call(V)},
useOutlinedIcon:function(){var D;return(D=V.useOutlinedIcon)==null?void 0:D.call(V)},
className:function(){var D;return(D=V.className)==null?void 0:D.call(V)}}))},"B"),"yt-toggle-button-view-model",{props:{data:_.WX,
buttonShapeOverrides:_.WX,overrides:_.WX,animatedTextPropsDefault:_.WX,animatedTextPropsToggled:_.WX,disableExplicitClickLogging:_.WX,onToggle:_.Dn,style:_.WX,useOutlinedIcon:_.WX,className:_.WX,scopingClassName:_.WX}});var gM=function(){return _.E.apply(this,arguments)||this};
_.v(gM,_.E);gM.prototype.onTap=function(V){V.stopPropagation();V=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.XW("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:V})):this.ytLiveChatReduxBehavior.dispatch(_.y1("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:V}))};
_.IG.Object.defineProperties(gM.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.engagementState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=_.g(this.data.toggleButton,_.FO),D;if(Number(((D=this.likeCountState)==null?void 0:D.likeCountIfIndifferentNumber)||"0")===0){var f;D=((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}else{var n,t,J;D=((n=this.likeCountState)==null?void 0:(t=n.likeCountIfIndifferent)==null?void 0:t.content)||((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}var H,Q;f=((H=this.likeCountState)==null?void 0:(Q=
H.likeCountIfLiked)==null?void 0:Q.content)||"1";H=_.g(V.toggledButtonViewModel,_.cW);return Object.assign({},V,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.g(V.defaultButtonViewModel,_.cW),{title:D})},toggledButtonViewModel:{buttonViewModel:Object.assign({},H,{title:f})}})}}}});
gM.prototype.onTap=gM.prototype.onTap;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],gM.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gM.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.likeCountEntityKey"],selector:w3U}),_.p("design:type",Object)],gM.prototype,"likeCountState",void 0);_.S([_.q({selectorArgs:["data.engagementStateKey"],selector:A3Y}),_.p("design:type",Object)],gM.prototype,"engagementState",void 0);_.S([_.R("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"isLiked",null);
_.S([_.R("data","likeCountState","isLiked"),_.p("design:type",Object),_.p("design:paramtypes",[])],gM.prototype,"toggleButton",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gM.prototype,"onTap",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],gM);
_.Y(gM,"yt-live-chat-like-button-view-model",function(){if(ohU===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PjE===void 0&&(PjE=document.createElement("template"));var n=PjE;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ohU=V}V=ohU;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var piH;var LeE;var vO=function(){return _.E.apply(this,arguments)||this};
_.v(vO,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vO.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],vO);
_.Y(vO,"yt-live-chat-paid-message-footer-renderer",function(){if(LeE===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;piH===void 0&&(piH=document.createElement("template"));var n=piH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);LeE=V}V=LeE;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var IPp;var OQl;var xIH;var MUL,hTY=function(){if(MUL!==void 0)return MUL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;xIH===void 0&&(xIH=document.createElement("template"));var n=xIH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return MUL=V};var kL=function(){return _.E.apply(this,arguments)||this};
_.v(kL,_.E);kL.prototype.onTap=function(V){V.stopPropagation()};
_.IG.Object.defineProperties(kL.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=_.g(this.data.replyButton,_.cW),D,f,n,t,J,H,Q,T=Number(((D=this.replyCountState)==null?void 0:D.replyCountNumber)||"0")===0?(f=this.data)==null?void 0:(n=f.replyCountPlaceholder)==null?void 0:n.content:((t=this.replyCountState)==null?void 0:(J=t.replyCount)==null?void 0:J.content)||((H=this.data)==null?void 0:(Q=H.replyCountPlaceholder)==null?void 0:Q.content)||"",y;return Object.assign({},
V,{title:T,accessibilityText:(y=this.replyCountState)==null?void 0:y.replyButtonAccessibilityText})}}}});
_.IG.Object.defineProperties(kL,{template:{configurable:!0,enumerable:!0,get:function(){return hTY()}}});
kL.prototype.onTap=kL.prototype.onTap;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],kL.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],kL.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kL.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.replyCountEntityKey"],selector:function(V,D){return _.wg(V.entities,"replyCountEntity",D)}}),
_.p("design:type",Object)],kL.prototype,"replyCountState",void 0);_.S([_.R("data","replyCountState"),_.p("design:type",Object),_.p("design:paramtypes",[])],kL.prototype,"buttonViewModel",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kL.prototype,"onTap",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],kL);
_.Y(kL,"yt-live-chat-reply-button-view-model",function(){return hTY()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var UIH;var Vmo;var s6=function(){var V=_.E.apply(this,arguments)||this;V.ariaLabel="";return V};
_.v(s6,_.E);
s6.prototype.dataChanged=function(){for(var V=(0,_.Ht)(_.Pt(this.hostElement).querySelector("#image"));V.firstChild;)V.removeChild(V.firstChild);if(this.data)if(this.data.icon){var D=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(D.polymerController.icon="yt-sys-icons:shield-filled",D.polymerController.defaultToFilled=!0):D.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();V.appendChild(D)}else if(this.data.customThumbnail){D=document.createElement("img");
var f=_.tm9(this.data.customThumbnail.thumbnails,16);f?(D.src=f,V.appendChild(D),D.setAttribute("alt",this.hostElement.ariaLabel||"")):_.zP(new _.cI("Could not compute URL for thumbnail",this.data.customThumbnail))}};
s6.prototype.identity=function(V){return V};
s6.prototype.computeType=function(V){return rs(V||void 0)};
s6.prototype.dataChanged=s6.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],s6.prototype,"data",void 0);_.S([_.q({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.p("design:type",Object)],s6.prototype,"ariaLabel",void 0);_.S([_.q({computed:"computeType(data)",reflectToAttribute:!0}),_.p("design:type",String)],s6.prototype,"type",void 0);
_.S([_.q({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.p("design:type",String)],s6.prototype,"sharedTooltipText",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("live_chat_enable_new_moderator_badge")}}),
_.p("design:type",Boolean)],s6.prototype,"enableNewModeratorBadge",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s6.prototype,"dataChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],s6);
_.Y(s6,"yt-live-chat-author-badge-renderer",function(){if(Vmo===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;UIH===void 0&&(UIH=document.createElement("template"));var n=UIH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Vmo=V}V=Vmo;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var DBL;var f4p;var BO=function(){return _.E.apply(this,arguments)||this};
_.v(BO,_.E);_.P=BO.prototype;_.P.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"}}}}};
_.P.computeBadgesInsideChip=function(V){return V?V.filter(function(D){return rs(D.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.P.computeBadgesOutsideChip=function(V){return this.prependChatBadges||!V?[]:V.filter(function(D){D=rs(D.liveChatAuthorBadgeRenderer);return D!=="verified"&&D!=="owner"})};
_.P.computeBadgesBeforeChip=function(V){return this.prependChatBadges&&V?V.filter(function(D){D=rs(D.liveChatAuthorBadgeRenderer);return D!=="verified"&&D!=="owner"}):[]};
_.P.computeIsHighlighted=function(V,D){var f=!!lhZ(V,"owner"),n=!!lhZ(V,"verified");V=!!lhZ(V,"moderator");return(f||n&&!V)&&!D};
_.P.computeAuthorType=function(V){return juX(V)};
_.P.computeAuthorClass=function(V,D){return D?(V?V+" ":"")+"single-line":V};
_.P.onSeedColorChanged=function(){_.c("live_chat_author_name_color_usernames")||_.c("live_chat_seed_color_usernames")||_.c("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):_.c("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
BO.prototype.onSeedColorChanged=BO.prototype.onSeedColorChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],BO.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BO.prototype,"authorName",void 0);_.S([_.q(),_.p("design:type",Array)],BO.prototype,"authorBadges",void 0);
_.S([_.q({computed:"computeAuthorType(authorBadges)"}),_.p("design:type",String)],BO.prototype,"authorType",void 0);_.S([_.q({computed:"computeAuthorClass(authorType, singleLine)"}),_.p("design:type",String)],BO.prototype,"authorClass",void 0);_.S([_.q({computed:"computeBadgesInsideChip(authorBadges)"}),_.p("design:type",Array)],BO.prototype,"badgesInsideChip",void 0);_.S([_.q({computed:"computeBadgesOutsideChip(authorBadges)"}),_.p("design:type",Array)],BO.prototype,"badgesOutsideChip",void 0);
_.S([_.q({computed:"computeBadgesBeforeChip(authorBadges)"}),_.p("design:type",Array)],BO.prototype,"badgesBeforeChip",void 0);_.S([_.q({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.p("design:type",Boolean)],BO.prototype,"isHighlighted",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],BO.prototype,"singleLine",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],BO.prototype,"disableHighlighting",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],BO.prototype,"dashboardMoneyFeed",void 0);_.S([_.q({value:_.c("live_chat_prepend_badges"),reflectToAttribute:!0}),_.p("design:type",Boolean)],BO.prototype,"prependChatBadges",void 0);_.S([_.q(),_.p("design:type",String)],BO.prototype,"authorNameColor",void 0);_.S([_.Zv("#author-name"),_.p("design:type",HTMLDivElement)],BO.prototype,"username",void 0);
_.S([_.KI("authorNameColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BO.prototype,"onSeedColorChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],BO);
_.Y(BO,"yt-live-chat-author-chip",function(){if(f4p===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;DBL===void 0&&(DBL=document.createElement("template"));var n=DBL;f.call(D,n.content.cloneNode(!0),V.content.firstChild);f4p=V}V=f4p;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var n3p;var tml;var dM=function(){var V=_.E.apply(this,arguments)||this;V.debounceCommand=_.ZT(function(D){V.ytComponentBehavior.resolveCommand(D)},1500);
return V};
_.v(dM,_.E);dM.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var V=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",D,f,n=this.isHearted?(D=this.data)==null?void 0:D.unheartCommand:(f=this.data)==null?void 0:f.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.XW("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:V}));(V=_.Xo(n))&&this.debounceCommand(V)}};
_.IG.Object.defineProperties(dM.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var V,D;if(!((V=this.data)==null?0:(D=V.creatorThumbnail)==null?0:D.sources))return{};V={thumbnails:[]};D={};D.url=this.data.creatorThumbnail.sources[0].url;V.thumbnails.push(D);return V}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.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}}});
dM.prototype.onTap=dM.prototype.onTap;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],dM.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],dM.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],dM.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.engagementStateKey"],selector:A3Y}),_.p("design:type",Object)],dM.prototype,"engagementState",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dM.prototype,"thumbnailDetails",null);_.S([_.R("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dM.prototype,"isHearted",null);_.S([_.R("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dM.prototype,"isEditable",null);
_.S([_.R("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dM.prototype,"showCreatorView",null);_.S([_.R("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dM.prototype,"showButton",null);_.S([_.R("data","isHearted"),_.p("design:type",String),_.p("design:paramtypes",[])],dM.prototype,"label",null);_.S([_.R("data","isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],dM.prototype,"heartHoverText",null);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dM.prototype,"onTap",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],dM);
_.Y(dM,"yt-live-chat-creator-heart-view-model",function(){if(tml===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;n3p===void 0&&(n3p=document.createElement("template"));var n=n3p;f.call(D,n.content.cloneNode(!0),V.content.firstChild);tml=V}V=tml;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var uz=function(){};
_.v(uz,PX);uz.prototype.JSC$11138_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:i8("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
uz.prototype.getApiPaths=function(){return[]};
uz.prototype.getExtension=function(){};
uz.prototype.JSC$11138_buildRequest=function(){};var Psl={},o3U=(Psl.GET_DATASYNC_IDS=vo(uz),Psl);var JMp,rMF,Hjr,nDV,NC,Tru,HvF,QJu,wKV;JMp="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");rMF=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Yl=function(V,D,f,n,t,J,H,Q,T){this.endpointMap=V;this.networkManager=D;this.authService=f;this.responseProcessorMap=n;this.innertubeResponseStore=t;this.contextProcessors=J;this.asyncContextProcessors=H;this.localInnertubeRouter=Q;this.requestSequencer=T;this.inflightRequests=new Map;V.signalEndpointMap||(V.signalEndpointMap={});V.signalEndpointMap=Object.assign({},o3U,V.signalEndpointMap)};
Hjr=function(V,D,f,n,t,J,H,Q,T){if(_.Yl.instance!==void 0){if(n=_.Yl.instance,V=[V!==n.endpointMap,D!==n.networkManager,f!==n.authService,t!==n.innertubeResponseStore,J!==n.contextProcessors,H!==n.asyncContextProcessors,Q!==n.localInnertubeRouter],V.some(function(y){return y}))throw new _.cI("InnerTubeTransportService is already initialized",V);
}else _.Yl.instance=new _.Yl(V,D,f,n,t,J,H,Q,T)};
_.ie=function(V,D,f){var n=n===void 0?Hhu:n;var t=HvF(V,D);return t?new _.Qf(function(J,H){var Q,T,y,Z,l;return _.w(function(G){switch(G.nextAddress){case 1:return _.b(G,t,2);case 2:Q=G.yieldResult;T=Q.JSC$11138_getRequest(D,f,n);if(!T){H(new _.cI("Error: Failed to build request for command.",D));G.jumpTo(0);break}id(T.input);Z=((y=T.requestShell)==null?void 0:y.mode)==="cors"?"cors":void 0;if(V.authService.syncHeaders){l=wKV(T.config,Z);G.jumpTo(4);break}return _.b(G,QJu(T.config,Z),5);case 5:l=
G.yieldResult;case 4:J(Tru(V,T,l)),_.yz(G)}})}):_.Br(new _.cI("Error: No request builder found for command.",D))};
nDV=function(V,D,f,n){var t=t===void 0?Hhu:t;var J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x;return _.w(function(oY){switch(oY.nextAddress){case 1:J=bbn(D,V.endpointMap);if(!J)throw new _.cI("Error: No streaming request builder found for command",D);H=J.JSC$11138_getRequest(D,f,t);if(!H)throw new _.cI("Failed to build YtRequest for streaming Command",D);if((Q=V.localInnertubeRouter)==null||!Q.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){oY.jumpTo(2);break}return _.b(oY,V.localInnertubeRouter.localInnertubeResponse(H.input,
H.innerTubeRequest),3);case 3:return T=oY.yieldResult,y={},T.playerResponse&&(NC(V,T.playerResponse,H),y.player=T.playerResponse,(Z=n)==null||Z(y,T)),T.watchNextResponse&&(NC(V,T.watchNextResponse,H),y.content=T.watchNextResponse,(l=n)==null||l(y,T)),oY.return(y);case 2:F=((G=H.requestShell)==null?void 0:G.mode)==="cors"?"cors":void 0;if(V.authService.syncHeaders){k=wKV(H.config,F);oY.jumpTo(4);break}return _.b(oY,QJu(H.config,F),5);case 5:k=oY.yieldResult;case 4:return C=(z=(d=H.requestShell)==null?
void 0:d.headers)!=null?z:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},C,k)}),A=Object.assign({},H.requestShell),O=JSON.stringify(H.innerTubeRequest),H.requestShell.method==="POST"&&(A=Object.assign({},A,{body:O})),W=function(wZ,ZZ){NC(V,ZZ.playerResponse||ZZ.watchNextResponse||ZZ.reelItemWatchResponse||ZZ.reelWatchSequenceResponse,H);n==null||n(wZ,ZZ)},I={},_.b(oY,bjP(V.networkManager,H.input,A,W),6);
case 6:return I=oY.yieldResult,((x=H.config)==null?0:x.responseTick)&&_.zm(H.config.responseTick),oY.return(I)}})};
_.m5=function(V,D,f,n,t){t=t===void 0?{authStrategy:{identity:Hhu}}:t;var J=J===void 0?!0:J;var H=function(){};
H=KSZ(Tlc(f));D.context||(D.context=_.vLX(n,J));return new _.Qf(function(Q){var T,y,Z,l,G;return _.w(function(F){if(F.nextAddress==1)return T=Um3(f),y=_.$o(T),V.authService.syncHeaders?(Z=wKV(t,y),F.jumpTo(2)):_.b(F,QJu(t,y),3);F.nextAddress!=2&&(Z=F.yieldResult);l=VNn(Um3(f));G={input:l,requestShell:i8(l),innerTubeRequest:D,config:t};Q(Tru(V,G,Z,H));_.yz(F)})})};
NC=function(V,D,f){var n;if(D&&!(D==null?0:(n=D.sequenceMetaData)==null?0:n.skipProcessing)&&V.responseProcessorMap){n=_.r(JMp);for(var t=n.next();!t.done;t=n.next())t=t.value,V.responseProcessorMap[t]&&V.responseProcessorMap[t].handleResponse(D,f)}};
Tru=function(V,D,f,n){n=n===void 0?function(){}:n;
var t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ,ZZ,sd,NU,Bn,aY,Ed,V0,kf,mY,Ko,Eu,y0,BH,wu,lF,rZ,wP,gP,uX;return _.w(function(cH){switch(cH.nextAddress){case 1:H=(t=D.config)==null?void 0:(J=t.storeStrategy)==null?void 0:J.storeKey;if(!(H&&V.innertubeResponseStore&&V.innertubeResponseStore.has(H))||((Q=D.config)==null?0:(T=Q.storeStrategy)==null?0:T.disableCache)){cH.jumpTo(2);break}return _.b(cH,V.innertubeResponseStore.get(H),3);case 3:if((y=cH.yieldResult)&&!y.isExpired())return cH.return(Promise.resolve(_.PV(y)));
case 2:if(!((Z=D)==null?0:(l=Z.innerTubeRequest)==null?0:l.context)){cH.jumpTo(4);break}G=D.innerTubeRequest.context;if(!(V.asyncContextProcessors&&V.asyncContextProcessors.length>0)){cH.jumpTo(5);break}F=[];k=_.r(V.asyncContextProcessors);for(d=k.next();!d.done;d=k.next())z=d.value,C=z.processContext(D),C.wrappedPromise_&&F.push(C.wrappedPromise_);if(!(F.length>0)){cH.jumpTo(5);break}return _.b(cH,Promise.all(F),5);case 5:A=_.r(V.contextProcessors||[]),O=A.next();case 8:if(O.done){cH.jumpTo(4);break}W=
O.value;return _.b(cH,W.processContext(G),9);case 9:O=A.next();cH.jumpTo(8);break;case 4:if((I=V.localInnertubeRouter)==null||!I.shouldPreferLocalResponse(D.input,D.innerTubeRequest)){cH.jumpTo(12);break}return _.b(cH,V.localInnertubeRouter.localInnertubeResponse(D.input,D.innerTubeRequest),13);case 13:return x=cH.yieldResult,NC(V,x,D),cH.return(x);case 12:return(ZZ=(wZ=D.config)==null?void 0:wZ.requestKey)&&V.inflightRequests.has(ZZ)?oY=V.inflightRequests.get(ZZ):(sd=JSON.stringify(D.innerTubeRequest),
aY=(Bn=(NU=D.requestShell)==null?void 0:NU.headers)!=null?Bn:{},D.requestShell=Object.assign({},D.requestShell,{headers:Object.assign({},aY,f)}),Ed=Object.assign({},D.requestShell),D.requestShell.method==="POST"&&(Ed=Object.assign({},Ed,{body:sd})),((V0=D.config)==null?0:V0.requestTick)&&_.zm(D.config.requestTick),kf=function(){return V.networkManager.fetch(D.input,Ed,D.config)},oY=V.requestSequencer?KoE(V.requestSequencer,D,kf):kf(),ZZ&&V.inflightRequests.set(ZZ,oY)),_.b(cH,oY,14);
case 14:(mY=cH.yieldResult)&&_.c("web_streaming_player")&&Array.isArray(mY)&&(mY=mY[0].playerResponse);if(mY&&"error"in mY&&((Ko=mY)==null?0:(Eu=Ko.error)==null?0:Eu.details))for(y0=mY.error.details,BH=_.r(y0),wu=BH.next();!wu.done;wu=BH.next())lF=wu.value,(rZ=lF["@type"])&&rMF.indexOf(rZ)>-1&&(delete lF["@type"],mY=lF);ZZ&&V.inflightRequests.has(ZZ)&&V.inflightRequests.delete(ZZ);((wP=D.config)==null?0:wP.responseTick)&&_.zm(D.config.responseTick);if(mY||(gP=V.localInnertubeRouter)==null||!gP.canProvideFallbackResponse(D.input,
D.innerTubeRequest)){cH.jumpTo(15);break}return _.b(cH,V.localInnertubeRouter.localFallbackInnertubeResponse(D.input,D.innerTubeRequest),16);case 16:mY=cH.yieldResult;case 15:return NC(V,mY,D),((uX=D.config)==null?0:uX.processorTick)&&_.zm(D.config.processorTick),n(),cH.return(mY||void 0)}})};
_.$l=function(V,D){return TLd(D,V.endpointMap)};
HvF=function(V,D){V=KrL(D,V.endpointMap);if(V!==void 0)return Promise.resolve(V)};
QJu=function(V,D){var f,n,t,J;return _.w(function(H){if(H.nextAddress==1){t=(f=V)==null?void 0:(n=f.authStrategy)==null?void 0:n.sessionIndex;var Q=_.Qv(kmY({sessionIndex:t}));return _.b(H,Q,2)}J=H.yieldResult;return H.return(Promise.resolve(Object.assign({},yKY(D),J)))})};
wKV=function(V,D){var f;V=V==null?void 0:(f=V.authStrategy)==null?void 0:f.sessionIndex;f=kmY({sessionIndex:V});return Object.assign({},yKY(D),f)};var yMY,ZjF,jJH,l4V,GXE,e8u,g3E,v3r,RK,kXH,sJF,Fo6,BrF;yMY=0;ZjF=/tone[1-5]/;jJH=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");l4V="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
GXE=Number.MAX_SAFE_INTEGER;e8u=RegExp("\ufe0f","g");_.m9=function(V){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;V&&_.cMF(this,V)};
_.cMF=function(V,D){try{_.T5(D,{context:V,onSuccess:function(n,t){Array.isArray(t)?V.load(t):(n=new _.cI("Emoji manager JSON response was not an array!",{response:t}),_.NG(n))},
onError:function(n){n=new _.cI("Failed to retrieve emoji manager initial JSON data!",{url:D,statusCode:_.JU(n).toString()});_.zP(n)}})}catch(n){var f=new _.cI("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:D});
_.zP(f)}};
_.m9.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.m9.prototype.load=function(V,D){if(D)if(V.length)V=V.concat(D.emojis);else{this.emojis=D.emojis;this.emojiMap=D.emojiMap;this.emojiShortcutMap=D.emojiShortcutMap;this.emojiShortcutCharMap=Fo6(D);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=D.emojiRegex;return}this.emojis=[].concat(_.sz(new Set(this.emojis.concat(V))));this.hasInitializedShortcutCharMap=!1;V=Array(this.emojis.length);for(D=0;D<this.emojis.length;D++){var f=this.emojis[D];if(f.emojiId){this.emojiMap[f.emojiId]=f;this.emojiMap[f.emojiId].index=
D;for(var n=0;f.shortcuts&&n<f.shortcuts.length;n++)this.emojiShortcutMap[f.shortcuts[n].toLocaleLowerCase()]=f;V[D]=f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId}}V.sort(function(t,J){return J.length-t.length});
if(V.length)try{this.emojiRegex=new RegExp(V.join("|").replace("*","\\*"),"gi")}catch(t){this.emojiRegex=/$./}else this.emojiRegex=/$./};
g3E=function(V,D){D=_.r(D);for(var f=D.next();!f.done;f=D.next()){var n=f.value;if(n.emojiId&&V.emojiMap[n.emojiId]){f=Object.assign({},V.emojiMap[n.emojiId],n);V.emojiMap[n.emojiId]=f;var t=void 0;f.index&&((t=V.emojis[f.index])==null?void 0:t.emojiId)===n.emojiId&&(V.emojis[f.index]=f);n=void 0;if((n=f.shortcuts)==null?0:n.length)for(V.hasInitializedShortcutCharMap=!1,n=_.r(f.shortcuts),t=n.next();!t.done;t=n.next())V.emojiShortcutMap[t.value.toLocaleLowerCase()]=f}}};
v3r=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,_.F7.getInstance(),2);if(n.nextAddress!=3)return(D=n.yieldResult)?_.b(n,D.get("ytlc-emoji-pref"),3):n.return();(f=n.yieldResult)&&g3E(V,Object.keys(f).map(function(t){return{emojiId:t,stickyPrefId:f[t]}}).filter(function(t){return!!t.emojiId&&!!t.stickyPrefId}));
_.yz(n)})};
_.z0=function(V,D,f){return(V=V.emojiMap[D])&&(!V.isLocked||f!==void 0&&f)?V:void 0};
RK=function(V,D,f){f=_.z0(V,D,f===void 0?!1:f);var n=D.match("\u200d");f&&V.skinTone!==0&&(V=(n==null?void 0:n.length)===1?_.z0(V,D.replace("\u200d",jJH[V.skinTone]+"\u200d")):_.z0(V,D+jJH[V.skinTone]))&&(f=V);return f};
kXH=function(V,D){var f=V.emojiMap[D];return(f==null?0:f.stickyPrefId)?V.emojiMap[f.stickyPrefId]:RK(V,D)};
_.jb=function(V,D){V=V.emojiShortcutMap[D.toLocaleLowerCase()];return!V||V.isLocked?null:V};
sJF=function(V,D,f){return Fo6(V,f===void 0?!1:f)[D]||{}};
Fo6=function(V,D){D=D===void 0?!1:D;if(!V.hasInitializedShortcutCharMap){V.hasInitializedShortcutCharMap=!0;for(var f=0;f<V.emojis.length;f++){var n=V.emojis[f];if(!(n.isLocked||D&&n.isCustomEmoji&&n.emojiId&&!V.pickerCustomEmojiIds.includes(n.emojiId)))for(var t=0;n.shortcuts&&t<n.shortcuts.length;t++){var J=n.shortcuts[t];J.startsWith(":_")&&n.isCustomEmoji&&(V.emojiShortcutCharMap[":_"]==null&&(V.emojiShortcutCharMap[":_"]=Object.create(null)),V.emojiShortcutCharMap[":_"][J]=n);if(!(J.length<3||
!n.isCustomEmoji&&ZjF.test(J))){var H=J.substr(0,3).toLocaleLowerCase();V.emojiShortcutCharMap[H]==null&&(V.emojiShortcutCharMap[H]=Object.create(null));V.emojiShortcutCharMap[H][J]=n}}}}return V.emojiShortcutCharMap};
_.m9.prototype.createEmoji=function(V,D){D=D===void 0?!0:D;var f=document.createElement("img");V.isCustomEmoji||f.classList.add("small-emoji");f.classList.add("emoji");f.classList.add("yt-formatted-string");f.src=V.image?_.nT(V.image.thumbnails,this.emojiSize)||"":"";var n=void 0;V.image&&V.image.accessibility&&V.image.accessibility.accessibilityData&&(n=V.image.accessibility.accessibilityData.label);f.alt=n?n:(V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId)||"";V.isCustomEmoji&&(f.dataset.emojiId=
V.emojiId);_.JF&&(f.setAttribute("contenteditable","false"),f.setAttribute("unselectable","on"));D&&(V.shortcuts&&V.shortcuts.length&&f.setAttribute("shared-tooltip-text",V.shortcuts[0]),f.id="emoji-"+yMY++);return f};
_.m9.prototype.createDocumentFragment=function(V,D,f,n){D=D===void 0?!1:D;f=f===void 0?!0:f;n=n===void 0?!1:n;V=V.replace(e8u,"");for(var t=document.createDocumentFragment(),J=0,H,Q=0;(H=this.emojiRegex.exec(V))!=null;){var T=_.z0(this,H[0])||_.jb(this,H[0]);!T||T.isCustomEmoji&&!D||(T=this.createEmoji(T,f),J!==H.index&&t.appendChild(document.createTextNode(V.substring(J,H.index))),t.appendChild(T),J=H.index+H[0].length,Q++)}if(!n||Q)return t.appendChild(document.createTextNode(V.substr(J))),t};
BrF=function(V,D,f){var n,t,J,H,Q,T,y,Z,l;return _.w(function(G){if(G.nextAddress==1){if(!D.emojiId||!V.emojiMap[D.emojiId])return G.return();n=Object.assign({},V.emojiMap[D.emojiId],{stickyPrefId:f});V.emojiMap[D.emojiId]=n;D.index&&((t=V.emojis[D.index])==null?void 0:t.emojiId)===D.emojiId&&(V.emojis[D.index]=n);if((J=D.shortcuts)==null?0:J.length)for(V.hasInitializedShortcutCharMap=!1,H=_.r(D.shortcuts),Q=H.next();!Q.done;Q=H.next())T=Q.value,V.emojiShortcutMap[T.toLocaleLowerCase()]=n;return _.b(G,
_.F7.getInstance(),2)}if(G.nextAddress!=4)return(y=G.yieldResult)?_.b(G,y.get("ytlc-emoji-pref"),4):G.jumpTo(0);l=(Z=G.yieldResult)!=null?Z:{};l[D.emojiId]=f;return _.b(G,y.set("ytlc-emoji-pref",l,GXE),0)})};
_.Ct=new _.m9;var NrF;_.qC={};
NrF={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.c("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:_.c("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 Ss(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 V=_.Pt(this.hostElement||this).querySelector("#inline-action-button-container");V&&V.setAttribute("aria-hidden","true");this.menuButton=_.Pt(this.hostElement).querySelector("#menu-button")},
attached:function(){var V=this.menuButton;V&&(V.addEventListener("focusin",_.Ty(this,this.onMenuButtonFocus_)),V.addEventListener("focusout",_.Ty(this,this.onMenuButtonBlur_)))},
detached:function(){var V=this.menuButton;V&&(V.removeEventListener("focusin",_.Ty(this,this.onMenuButtonFocus_)),V.removeEventListener("focusout",_.Ty(this,this.onMenuButtonBlur_)))},
identity:_.YF,truthy:function(V){return!!V},
computeTimestampString:function(V){return V?V.timestampText?this.getSimpleString(V.timestampText):this.TIME_FORMATTER.format(new Date(V.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(V){return V},
computeMenuVisible_:function(V,D){return V||D},
computeHasInlineActionButtons:function(V){if(!V)return!1;var D,f;return!((D=V.inlineActionButtons)==null||!D.length)||!((f=V.additionalInlineActionButtons)==null||!f.length)},
createDocumentFragmentFromString:function(V){var D=_.Ct.createDocumentFragment.bind(_.Ct),f;if((f=this.participantsManager)==null||!f.viewerRegex)return D(V);f=document.createDocumentFragment();for(var n=0,t;(t=this.participantsManager.viewerRegex.exec(V))!=null;){if(t.index>0){var J=":"+t[0]+":";if((_.z0(_.Ct,J)||_.jb(_.Ct,J))&&V.indexOf(J)===t.index-1)continue}f.appendChild(D(V.substring(n,t.index)));n=document.createElement("span");n.appendChild(D(t[0]));n.classList.add("mention");f.appendChild(n);
n=t.index+t[0].length}f.appendChild(D(V.substring(n)));return f},
createDocumentFragment:function(V){var D=document.createDocumentFragment();if(V.simpleText)return D.appendChild(this.createDocumentFragmentFromString(V.simpleText)),D;if(!V.runs)return D;for(var f=0;f<V.runs.length;f++){var n=V.runs[f];if(n.emoji)D.appendChild(_.Ct.createEmoji(n.emoji));else if(n.text)if(n.navigationEndpoint){var t=document.createElement("a");t.classList.add("yt-simple-endpoint");W7R(t,n.navigationEndpoint);_.Pt(t).appendChild(this.createDocumentFragmentFromString(n.text));D.appendChild(t)}else D.appendChild(this.createDocumentFragmentFromString(n.text))}return D},
hasModerationOverlayVisible:function(){var V;return((V=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:V.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(V){V.composedPath().some(function(D){return(D=D instanceof Element?D:null)?D.tagName&&(D.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||D.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.c("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(V)},
colorFromDecimal:function(V){return Vfc(V)},
markAsDeleted:function(V,D){this.set("data.deletedStateMessage",V);this.set("data.showOriginalContentMessage",D)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(V){if(this.data.contextMenuEndpoint){var D=_.DY().resolve(_.RB),f=this.data.contextMenuEndpoint,n;(n=_.Yl.instance)&&_.$l(n,f)?(D=dBF(D,f),n=_.m5(n,{},D)):n=_.uGU(D,f);n.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);V&&V.stopPropagation()}},
handleGetContextMenuResponse_:function(V){var D=_.Yl.instance;D&&_.$l(D,{liveChatEndpoint:{}})||(V=V.response);V.liveChatItemContextMenuSupportedRenderers&&V.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(V.liveChatItemContextMenuSupportedRenderers.menuRenderer);V.actions&&_.o4(this.hostElement,"yt-live-chat-actions",[V.actions])},
handleGetContextMenuError:function(V){if(V instanceof Error||V instanceof Object||V instanceof String)var D=V;_.NG(new _.cI("Error encountered calling GetLiveChatItemContextMenu",D))},
showContextMenu_:function(V){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.PA(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.PA(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.qC.YtLiveChatItemBehavior=[NrF,_.EY.YtComponentBehavior,_.T0.YtOpenPopupBehavior];_.XA=function(){};var mBU;var z8p;var R8l;var Csl;var E6=function(){var V=_.E.apply(this,arguments)||this;V.active=!1;V.identity=_.YF;return V};
_.v(E6,_.E);E6.prototype.dataChanged=function(){this.active=!1};
E6.prototype.onClick=function(){_.PA(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
E6.prototype.dataChanged=E6.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],E6.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],E6.prototype,"active",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E6.prototype,"dataChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],E6);
_.Y(E6,"yt-live-chat-text-input-field-suggestion",function(){if(Csl===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;R8l===void 0&&(R8l=document.createElement("template"));var n=R8l;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Csl=V}V=Csl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});_.Av=function(V,D,f){return CustomEvent.call(this,V,{detail:{value:D,path:f}})||this};
_.v(_.Av,CustomEvent);_.aK=function(){var V=_.E.apply(this,arguments)||this;V.viewerName=null;V.actionMap={"yt-live-chat-actions":"onChatMessage_"};V.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];V.PARTICIPANT_TIME_USEC_=3E8;return V};
_.v(_.aK,_.E);_.P=_.aK.prototype;_.P.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.P.addParticipant=function(V){var D=_.ccn(this.participants,V,function(n,t){n=n[Object.keys(n)[0]];t=t[Object.keys(t)[0]];n=String(_.LA(n.authorName)).toLowerCase();t=String(_.LA(t.authorName)).toLowerCase();return n<t?-1:n==t?0:1}.bind(this));
if(D>=0){var f=this.participants[D];f[Object.keys(f)[0]].timestampUsec&&this.splice("participants",D,1,V)}else this.splice("participants",-D-1,0,V);V=V[Object.keys(V)[0]];D=_.LA(V.authorName).toLocaleLowerCase();f=D.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(f)||(this.allParticipantsCharMap_[f]={});this.allParticipantsCharMap_[f][D]=V};
_.P.getAuthorsFromPrefix=function(V){return this.allParticipantsCharMap_.hasOwnProperty(V)?this.allParticipantsCharMap_[V]:null};
_.P.computeViewerRegex_=function(V){if(!V)return null;V=V.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var D=V.indexOf("@")===0&&_.c("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(D+V.replace(/ /g,"\\s*")+"|^"+V.replace(/ /g,"\\s*")+"$|^"+V.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+V.replace(/ /g,"\\s*")+"$|(?<=\\s)"+V.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.P.checkForStaleParticipants_=function(){var V=this;this.trimOldParticipants_();this.asyncHandle_&&sDc(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.aU(function(){V.checkForStaleParticipants_()},3E4))};
_.P.onChatMessage_=function(V){var D=this,f=Date.now()*1E3;V.forEach(function(n){if(n=_.g(n,q7U)){n=n.item;var t=Object.keys(n)[0];D.SUPPORTED_ITEM_TYPES_.indexOf(t)!=-1&&n[t].timestampUsec>=f-D.PARTICIPANT_TIME_USEC_&&D.addParticipant(n)}},this);
this.checkForStaleParticipants_()};
_.P.trimOldParticipants_=function(){for(var V=Date.now()*1E3,D=this.participants.length-1;D>=0;D--){var f=this.participants[D];f=f[Object.keys(f)[0]];f.timestampUsec&&f.timestampUsec<V-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",D,1)}};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],_.aK.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],_.aK.prototype,"viewerName",void 0);_.S([_.q({computed:"computeViewerRegex_(viewerName)"}),_.p("design:type",Object)],_.aK.prototype,"viewerRegex",void 0);_.S([_.q({value:function(){return[]},
notify:!0}),_.p("design:type",Array)],_.aK.prototype,"participants",void 0);_.S([_.zy({is:"yt-live-chat-participants-manager",noInjection:!0})],_.aK);var qU6=/.*([:@#].*?)$/,YL=/\u00a0/g,XKp=String.fromCharCode(160),E3o={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"},$L=function(){var V=_.E.apply(this,arguments)||this;V.disabled=!1;V.liveChatRichMessageInput=null;V.messageInput=null;V.isValidWithNoInputText=!1;V.suggestions=[];V.emojiManager=_.Ct;V.inputMethodEditorActive=
!1;V.suggestionIndex=-1;V.JSC$12132_lastSuggestionRange=null;return V};
_.v($L,_.E);_.P=$L.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.P.attached=function(){_.rf&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.P.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.P.dataChanged=function(){if(!this.ignoreColorMapping){var V=!1,D={},f;for(f in E3o)this.data&&this.data.hasOwnProperty(f)&&(D[E3o[f]]=this.colorFromDecimal(this.data[f]),V=!0);V&&_.wI(this.hostElement,D)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.P.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.P.colorFromDecimal=function(V){V=Math.floor(Number(V));return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
_.P.preventDrag=function(V){V.dataTransfer&&(V.dataTransfer.dropEffect="none");V.preventDefault()};
_.P.preventResize=function(V){V.returnValue=!1};
_.P.onInputChange=function(){var V=this.characterCount,D=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&D&&D.remove();if(!D&&this.characterCount>this.maxCharacterLimit){var f=window.getSelection();if(f){var n=f.getRangeAt(0);f.removeAllRanges();f.addRange(n)}}if(f=this.getCurrentRange())n=this.calculateTextBeforeRange(f),this.completeEmojisInRange(f,n,!0)||this.updateSuggestions(f,n);n=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(n);
_.PA(this.hostElement,"yt-live-chat-message-input-change",n);D&&this.characterCount===0&&D.remove();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>V):f&&!f.collapsed&&f.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(V=this.input.childNodes.length-1;V>=0;V--)this.input.childNodes[V].nodeName==="BR"&&this.input.childNodes[V].remove()};
_.P.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.P.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var V=this.getCurrentRange();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.mergeOverflowText=function(V){if(V){var D=document.createRange();D.selectNodeContents(V);D=D.extractContents();this.input.insertBefore(D,V)}};
_.P.checkRangeAtEndOfInput=function(){var V=this.getCurrentRange();if(V){var D=_.Pt(this.hostElement).querySelector("#overflow-text"),f=document.createRange();D&&D.previousSibling?D.previousSibling instanceof HTMLImageElement?f.selectNode(D.previousSibling):f.selectNodeContents(D.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?f.selectNode(this.input.lastChild):f.selectNodeContents(this.input.lastChild));f.collapse(!1);return f.isPointInRange(V.startContainer,
V.startOffset)}return!1};
_.P.handleOverflowText=function(V){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var D=_.Pt(this.hostElement).querySelector("#overflow-text"),f=this.getCurrentRange();this.input.normalize();V=this.checkRangeAtEndOfInput()&&V;this.mergeOverflowText(D);for(var n,t=0,J=0,H,Q=this.input.childNodes,T=0;T<Q.length;T++){var y=Q[T];y instanceof Text?(J+=y.textContent.length,J>this.maxCharacterLimit&&(n=y,t=this.maxCharacterLimit+y.textContent.length-J)):y instanceof HTMLImageElement&&
(n=void 0,J=y.dataset.emojiId&&((n=this.data)==null?0:n.emojiCharacterCount)?J+this.data.emojiCharacterCount:J+y.alt.length,n=this.input,t=T);if(J>this.maxCharacterLimit&&n){H=document.createRange();H.collapse(!1);D?(J=this.input.lastChild.previousSibling,J instanceof Text?H.setEnd(this.input.lastChild.previousSibling,J.textContent.length):J instanceof HTMLImageElement&&H.setEnd(this.input,this.input.childNodes.length-1)):H.selectNodeContents(this.input);H.setStart(n,t);break}}H&&(n=!1,f&&(V=H.isPointInRange(f.startContainer,
f.startOffset-1)),D||(D=document.createElement("span"),D.id="overflow-text",D.textContent="",D.setAttribute("contenteditable","true"),_.Pt(_.Pt(this.hostElement).querySelector("#input")).appendChild(D),n=!0),D&&(f=H.extractContents(),D.insertBefore(f,D.firstChild),V&&D.firstChild&&(f=document.createRange(),n?f.setStartAfter(D.lastChild):f.setStartAfter(D.firstChild),f.collapse(!0),D=window.getSelection(),D.removeAllRanges(),D.addRange(f))))}};
_.P.checkForDuplicateSpans=function(){for(var V=0;V<this.input.childNodes.length;V++){var D=this.input.childNodes[V];if(D.nodeName==="SPAN"){var f=document.createRange();f.selectNodeContents(D);f=f.extractContents();this.input.insertBefore(f,D);D.remove()}}this.handleOverflowText(!0)};
_.P.getCurrentRange=function(){var V=window.getSelection();return V&&V.rangeCount?V.getRangeAt(0).cloneRange():null};
_.P.getInputRange=function(){var V=this.getCurrentRange();if(V){for(var D=V.commonAncestorContainer,f=!1,n=_.Pt(this.hostElement).querySelector("#input");D;){if(D===n){f=!0;break}D=D.parentNode}f||(V=null)}V||(V=this.getRangeAtEnd());return V};
_.P.getRangeAtEnd=function(){var V=document.createRange(),D=_.Pt(this.hostElement).querySelector("#input").lastChild;!D||D.nodeName!=="#text"&&D.nodeName!=="SPAN"?(V.selectNodeContents(_.Pt(this.hostElement).querySelector("#input")),V.collapse(!1)):D.nodeName==="#text"?V.setStart(D,D.textContent.length):V.setStart(D,D.childNodes.length);return V};
_.P.getChatParticipantSuggestions=function(V,D,f,n){var t=_.c("live_chat_enable_handles_web_text_input_update");if(D)for(var J in D)if(J.indexOf(V)===0||t&&J.indexOf(f+V)===0){var H=D[J],Q=_.LA(H.authorName);n.push({suggestion:{author:!0,authorType:f,image:H.authorPhoto,alt:Q,text:Q}});if(n.length>=64)break}};
_.P.getSuggestions=function(V){var D=[],f=V.substring(0,3),n=sJF(_.Ct,f,!0);if(n)for(var t in n)if(t.toLocaleLowerCase().indexOf(V)===0){var J=n[t];if(J&&J.emojiId){if(J=kXH(_.Ct,J.emojiId)){var H=void 0,Q=void 0,T=void 0,y=void 0,Z=((H=J.image)==null?0:(Q=H.accessibility)==null?0:(T=Q.accessibilityData)==null?0:T.label)||J.isCustomEmoji?(y=J.shortcuts)==null?void 0:y[0]:J.emojiId;D.push({suggestion:{emoji:!0,image:J.image,alt:Z,text:t,textToInsertWhenSelected:J.isCustomEmoji?t:Z}})}if(D.length>=
64)break}}if(!this.participantsManager)return null;if(f.indexOf("@")===0||f.indexOf("#")===0)n=f.charAt(0),V=V.substring(1),t=_.c("live_chat_enable_handles_web_text_input_update"),f.indexOf("@")===0&&t&&(t=this.participantsManager.getAuthorsFromPrefix(f.substring(0,2)),this.getChatParticipantSuggestions(V,t,n,D)),f=f.substring(1),f=this.participantsManager.getAuthorsFromPrefix(f),this.getChatParticipantSuggestions(V,f,n,D);return D?D.sort(function(l,G){return G.suggestion.text<l.suggestion.text?-1:
G.suggestion.text===l.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(V){var D=_.c("live_chat_enable_handles_web_text_input_update"),f=V.authorType;D=V.text.indexOf(f)===0&&D?V.text+XKp:f+V.text+XKp;V.emoji?this.insertTextAtRange(this.JSC$12132_lastSuggestionRange,V.textToInsertWhenSelected||""):V.author&&this.insertTextAtRange(this.JSC$12132_lastSuggestionRange,D)};
_.P.updateSuggestionsAtCaret=function(){var V=this.getCurrentRange();V&&this.updateSuggestions(V,this.calculateTextBeforeRange(V))};
_.P.offsetStartOfRangeBy=function(V,D){for(;D>0;)if(V.startOffset-D>=0){V.setStart(V.startContainer,V.startOffset-D);break}else{D=V.startContainer instanceof HTMLImageElement?D-V.startContainer.alt.length:D-V.startOffset;var f=V.startContainer.previousSibling;if(!f){V.setStart(V.startContainer,0);break}if(_.c("live_chat_require_space_for_autocomplete_emoji")){var n=void 0,t=void 0;V.setStart(f,((n=f)==null?void 0:(t=n.textContent)==null?void 0:t.length)||0)}else V.setStart(f,f.childNodes.length||
0)}};
_.P.updateSuggestions=function(V,D){var f=this;this.JSC$12132_lastSuggestionRange&&(this.JSC$12132_lastSuggestionRange.detach(),this.JSC$12132_lastSuggestionRange=null);if((D=qU6.exec(D))&&D.length&&(D=D[D.length-1].toLocaleLowerCase(),D.length>2&&(this.offsetStartOfRangeBy(V,D.length),this.JSC$12132_lastSuggestionRange=V,(V=this.getSuggestions(D))&&V.length))){this.suggestions=V;_.pO(this,function(){_.Pt(f.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(V.length-1);return}this.dropdown.opened=!1};
_.P.completeEmojisInRange=function(V,D,f){var n=D.replace(/[\s\xa0]+$/,"");D=D.length-n.length;n=n.split(" ");n=n[n.length-1].trim().toLocaleLowerCase();var t=n.lastIndexOf(":");if(f&&!D&&t!==n.length-1)return!1;t!==-1&&(f=n.lastIndexOf(":",t-1),f!==-1&&(n=n.substring(f)));if((f=_.jb(_.Ct,n))&&f.emojiId){f=kXH(_.Ct,f.emojiId)||null;this.offsetStartOfRangeBy(V,n.length+D);var J,H,Q,T;n=(((J=f)==null?0:J.isCustomEmoji)?(H=f)==null?void 0:(Q=H.shortcuts)==null?void 0:Q[0]:(T=f)==null?void 0:T.emojiId)||
"";D&&(n+=XKp);this.insertTextAtRange(V,n);this.dropdown.opened=!1;return!0}return!1};
_.P.onSuggestion=function(V){this.insertSuggestion(V.detail);this.dropdown.opened=!1};
_.P.onKeyPress=function(V){V.keyCode===13&&(V.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.PA(this.hostElement,"yt-live-chat-send-message"))};
_.P.completeEmojis=function(){var V=document.createRange(),D=_.Pt(this.hostElement).querySelector("#input").lastChild;D?V.setStart(D,D.childNodes.length):(V.selectNodeContents(_.Pt(this.hostElement).querySelector("#input")),V.collapse(!1));this.completeEmojisInRange(V,this.calculateTextBeforeRange(V),_.c("live_chat_require_space_for_autocomplete_emoji"))};
_.P.maybePreventTextFormatting=function(V){!_.Tl||!V.ctrlKey&&!V.metaKey||V.keyCode!==66&&V.keyCode!==73||(V.stopImmediatePropagation(),V.preventDefault())};
_.P.onKeyDown=function(V){this.maybePreventTextFormatting(V);if(this.dropdown.opened)switch(V.keyCode){case 27:this.dropdown.opened=!1;V.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;V.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);V.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),V.preventDefault()}};
_.P.onKeyUp=function(V){switch(V.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.JF)this.onInputChange()};
_.P.changeSuggestionIndex=function(V){if(this.dropdown.opened){var D=_.Pt(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<D.children.length&&(D.children[this.suggestionIndex].active=!1);var f=this.suggestions.length;this.suggestionIndex=(V+f)%f;V=D.children[this.suggestionIndex];V.active=!0;D.scrollTop=V.offsetTop}};
_.P.onInputPaste=function(V){V.preventDefault();(V=V.clipboardData)&&V.types&&(V=V.getData("text/plain")||"",V=V.replace(/\n/g,""),this.insertText(V));(V=this.getCurrentRange())&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.onFocus=function(){this._setFocused(!0)};
_.P.onBlur=function(){this._setFocused(!1)};
_.P.insertText=function(V){this.insertTextAtRange(this.getInputRange(),V)};
_.P.insertTextAtRange=function(V,D){if(V&&(V.collapsed||V.deleteContents(),D=_.Ct.createDocumentFragment(D,!0,!1))){for(var f=_.r((D==null?void 0:D.childNodes)||[]),n=f.next();!n.done;n=f.next()){n=n.value;var t=void 0,J=void 0,H=void 0,Q=void 0,T=void 0;(H=(t=window)==null?void 0:(J=t.ShadyCSS)==null?void 0:J.ScopingShim)==null||(T=(Q=H).scopeNode)==null||T.call(Q,n,this.hostElement.localName)}f=D.lastChild;V.insertNode(D);this.focused||this.input.focus();if(this.focused){V=V.cloneRange();V.selectNodeContents(f);
V.collapse(!1);if(D=window.getSelection())D.removeAllRanges(),D.addRange(V);V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}V=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(V);_.PA(this.hostElement,"yt-live-chat-message-input-change",V)}};
_.P.setLiveChatRichMessageInput=function(V){_.Pt(_.Pt(this.hostElement).querySelector("#input")).textContent="";if(V&&V.textSegments){for(var D=0;D<V.textSegments.length;D++){var f=V.textSegments[D];f.text?_.Pt(_.Pt(this.hostElement).querySelector("#input")).appendChild(_.Ct.createDocumentFragment(f.text,!0,!1)):f.emojiId&&(f=_.z0(_.Ct,f.emojiId))&&_.Pt(_.Pt(this.hostElement).querySelector("#input")).appendChild(_.Ct.createEmoji(f,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.P.setText=function(V){this.setLiveChatRichMessageInput(V?{textSegments:[{text:V}]}:null)};
_.P.calculateTextBeforeRange=function(V){var D="",f=V.startContainer;if(f&&f instanceof Text){var n;D=((n=f.textContent)==null?void 0:n.substring(0,V.startOffset))||"";f=f.previousSibling}for(;f&&f instanceof Text;)D=f.textContent+D,f=f.previousSibling;return D.replace(YL," ")};
_.P.calculateLiveChatRichMessageInput=function(){for(var V=[],D="",f=_.Pt(_.Pt(this.hostElement).querySelector("#input")).childNodes,n=0;n<f.length;n++){var t=f[n];t instanceof Text?D+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(D&&(V.push({text:D.replace(YL," ")}),D=""),V.push({emojiId:t.dataset.emojiId})):D+=t.alt)}D&&V.push({text:D.replace(YL," ")});if(f=_.Pt(this.hostElement).querySelector("#overflow-text")){D="";f=f.childNodes;for(n=0;n<f.length;n++)t=f[n],t instanceof Text?
D+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(D&&(V.push({text:D.replace(YL," ")}),D=""),V.push({emojiId:t.dataset.emojiId})):D+=t.alt);D&&V.push({text:D.replace(YL," ")})}return{textSegments:V}};
_.P.computeCharacterCount=function(V){if(!V||!V.textSegments)return 0;for(var D=0,f=0;f<V.textSegments.length;f++){var n=V.textSegments[f];if(n.text)D+=n.text.length;else if(n.emojiId){var t=void 0;if((t=this.data)==null?0:t.emojiCharacterCount)D+=this.data.emojiCharacterCount;else{var J=t=void 0,H=void 0;D+=((J=_.z0(_.Ct,(t=n)==null?void 0:t.emojiId))==null?void 0:(H=J.shortcuts)==null?void 0:H[0].length)||0}}}return D};
_.P.characterCountChanged=function(){_.PA(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.P.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Av("focused-changed",this.focused))};
_.P.focus=function(){this.setFocus(!1)};
_.P.focusAtEnd=function(){this.setFocus(!0)};
_.P.setFocus=function(V){V=V?this.getRangeAtEnd():this.getInputRange();_.Pt(this.hostElement).querySelector("#input").focus();var D=window.getSelection();D&&(D.removeAllRanges(),D.addRange(V))};
_.P.insertEmoji=function(V){var D,f=((V==null?0:V.isCustomEmoji)?(D=V.shortcuts)==null?void 0:D[0]:V==null?void 0:V.emojiId)||"";this.insertText(f)};
_.P.computeText=function(V){if(!V||!V.textSegments)return"";for(var D="",f=0;f<V.textSegments.length;f++){var n=V.textSegments[f];if(n.text)D+=n.text;else if(n.emojiId){var t=void 0,J=void 0,H=void 0;D+=((J=_.z0(_.Ct,(t=n)==null?void 0:t.emojiId))==null?void 0:(H=J.shortcuts)==null?void 0:H[0])||""}}return D};
_.P.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.IG.Object.defineProperties($L.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.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}}});
$L.prototype.focusedChanged=$L.prototype.focusedChanged;$L.prototype.characterCountChanged=$L.prototype.characterCountChanged;$L.prototype.onSuggestion=$L.prototype.onSuggestion;$L.prototype.onMessageSet=$L.prototype.onMessageSet;$L.prototype.dataChanged=$L.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],$L.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$L.prototype,"disabled",void 0);_.S([_.R("disabled"),_.p("design:type",Number),_.p("design:paramtypes",[])],$L.prototype,"inputTabIndex",null);_.S([_.R("data.maxCharacterLimit"),_.q({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],$L.prototype,"maxCharacterLimit",null);
_.S([_.R("liveChatRichMessageInput"),_.q({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],$L.prototype,"characterCount",null);_.S([_.R("maxCharacterLimit, characterCount"),_.q({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],$L.prototype,"remainingCharacterCount",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],$L.prototype,"isChatMessageInput",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],$L.prototype,"inputExpanded",void 0);_.S([_.q({readOnly:!0,notify:!0}),_.p("design:type",Object)],$L.prototype,"liveChatRichMessageInput",void 0);_.S([_.q(),_.p("design:type",Object)],$L.prototype,"messageInput",void 0);_.S([_.q(),_.p("design:type",Boolean)],$L.prototype,"ignoreColorMapping",void 0);_.S([_.R("characterCount"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$L.prototype,"hasText",null);
_.S([_.q(),_.p("design:type",Object)],$L.prototype,"isValidWithNoInputText",void 0);_.S([_.R("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.q(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$L.prototype,"isInputValid",null);_.S([_.q({readOnly:!0,value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],$L.prototype,"focused",void 0);_.S([_.q(),_.p("design:type",Array)],$L.prototype,"suggestions",void 0);
_.S([_.q(),_.p("design:type",_.m9)],$L.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",_.aK)],$L.prototype,"participantsManager",void 0);_.S([_.q(),_.p("design:type",Boolean)],$L.prototype,"noUnderline",void 0);_.S([_.q(),_.p("design:type",Object)],$L.prototype,"inputMethodEditorActive",void 0);_.S([_.Zv("#dropdown"),_.p("design:type",Object)],$L.prototype,"dropdown",void 0);_.S([_.Zv("#input"),_.p("design:type",HTMLElement)],$L.prototype,"input",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$L.prototype,"dataChanged",null);_.S([_.KI("messageInput"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$L.prototype,"onMessageSet",null);_.S([_.bU("yt-live-chat-select-suggestion"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$L.prototype,"onSuggestion",null);
_.S([_.KI("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$L.prototype,"characterCountChanged",null);_.S([_.KI("focused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$L.prototype,"focusedChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],$L);
_.AM6=_.Y($L,"yt-live-chat-text-input-field-renderer",function(){if(z8p===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;mBU===void 0&&(mBU=document.createElement("template"));var n=mBU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);z8p=V}V=z8p;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var iz=function(){var V=_.E.apply(this,arguments)||this;V.buttonOverrides={style:"overlay",type:"filled"};V.allowAnimations=!1;V.modern=_.c("web_button_rework_with_live");V.noPadding=!1;return V};
_.v(iz,_.E);_.P=iz.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.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"}}}}};
_.P.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.attached=function(){this.allowAnimations=!1};
_.P.dataChanged=function(){if(this.data){var V={"--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)};_.wI(this.hostElement,V);this.allowAnimations=!0}};
_.P.messageChanged=function(){var V,D=(V=this.data)==null?void 0:V.message;V=_.Pt(_.Pt(this.hostElement).querySelector("#message"));V.textContent="";D&&V.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.P.computeShowOnlyHeader=function(V,D){return!V||V.pdgLikeButton||V.replyButton||V.buyFlowButton?!1:this.isEmpty(V,D)&&!V.footer};
_.P.computeShowFooterDivider=function(V,D,f){return V?!!V.footer&&!this.isEmpty(V,D)&&!f:!1};
_.P.computeIsUserEditable=function(V){return!!V.inputField};
_.P.computeHasHeartButton=function(V){return(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.P.computeNoveltyImage=function(V){if(V.headerOverlayImage&&V.headerOverlayImage.thumbnails.length){var D=V.headerOverlayImage.thumbnails[0],f,n;if((f=V.pdgPurchasedNoveltyLoggingDirectives)==null?0:(n=f.loggingDirectives)==null?0:n.trackingParams){var t,J;YIZ((t=V.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=t.loggingDirectives)==null?void 0:J.trackingParams)}return D.width||0}return 0};
_.P.computeAuthorPhotoSize=function(V){return(V==null?0:V.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.P.inputFocus=function(){var V=_.Pt(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");V&&V.focus()};
_.P.inputInsertEmoji=function(V){var D=_.Pt(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.insertEmoji(V)};
_.P.inputMessage=function(){var V=_.Pt(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),D;return V&&((D=this.data)==null?0:D.inputField)?(V.completeEmojis(),_.Eo(V.liveChatRichMessageInput)):null};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.P.isEmpty=function(V,D){return V?V.empty||!(V.message||V.inputField||D):!0};
_.P.onLowerBuyButtonClick=function(){var V,D=_.g((V=this.data)==null?void 0:V.buyButton,_.RI);D&&D.trackingParams&&!fEX(D.command)&&(V=_.gs(D.trackingParams))&&(D=_.Ni())&&_.p6(D,V)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.IG.Object.defineProperties(iz.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
iz.prototype.isDeletedChanged=iz.prototype.isDeletedChanged;iz.prototype.messageChanged=iz.prototype.messageChanged;iz.prototype.dataChanged=iz.prototype.dataChanged;_.S([_.u(KNo.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],iz.prototype,"ytPdgLiveChatItemBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],iz.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],iz.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iz.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:A3Y}),_.p("design:type",Object)],iz.prototype,"engagementState",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.p("design:type",Boolean)],iz.prototype,"isUserEditable",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.p("design:type",Boolean)],iz.prototype,"hasHeartButton",void 0);_.S([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Boolean)],iz.prototype,"showOnlyHeader",void 0);
_.S([_.q({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.p("design:type",Boolean)],iz.prototype,"showFooterDivider",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],iz.prototype,"allowAnimations",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],iz.prototype,"dashboardMoneyFeed",void 0);_.S([_.q({computed:"computeNoveltyImage(data)"}),_.p("design:type",Number)],iz.prototype,"noveltyWidth",void 0);
_.S([_.q({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],iz.prototype,"authorPhotoSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],iz.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],iz.prototype,"noPadding",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iz.prototype,"dataChanged",null);
_.S([_.KI("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iz.prototype,"messageChanged",null);_.S([_.R("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iz.prototype,"hideLowerBumper",null);_.S([_.KI("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iz.prototype,"isDeletedChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],iz);
_.Y(iz,"yt-live-chat-paid-message-renderer",function(){if(OQl===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;IPp===void 0&&(IPp=document.createElement("template"));var n=IPp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);OQl=V}V=OQl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var a4V;var YUV;var SH=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;return V};
_.v(SH,_.lU);SH.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.XB("openPopupConfig")};
_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],SH.prototype,"ytOpenPopupBehavior",void 0);_.S([_.Gy()],SH);_.WO=[_.T0.YtOpenPopupBehavior,SH.prototype];var $Br;var Wj=[_.jL,j$6,_.NT,_.ld,_.pl,_.EN6,_.gU,_.Mau,_.uY,qhX];_.c("web_watch_get_updated_metadata_response_processing")&&Wj.push(_.yTp);_.c("web_continuation_response_processing")&&Wj.push(_.Xh);var d5d=new _.IH("RESPONSE_RECEIVED_COMMANDS"),mvY=new _.IH("RESPONSE_RECEIVED_COMMANDS");var vPY="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),gP3=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Fr9=["GET_UNSEEN_NOTIFICATION_COUNT"];var pt=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.serviceEndpointHandlers=[];return V};
_.v(pt,_.lU);pt.prototype.created=function(){var V=this;this.endpointHandlerActionMap={"yt-service-request":function(D,f,n,t){var J;return cK9(V.hostElement,D,f,n,t,V.serviceEndpointHandlers,(J=V.onEntitiesUpdated)==null?void 0:J.bind(V))}}};
pt.prototype.attached=function(){_.$b(_.Yb.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
pt.prototype.detached=function(){_.iN(_.Yb.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.S([_.Gy()],pt);_.ijl=[pt.prototype];var SUl,WoF=function(){return SUl!==void 0?SUl:SUl=document.createElement("template")};
document.head.appendChild(WoF().content);var pKP;var LoY=document.head,I4Y=LoY.appendChild,Ojr;if(pKP===void 0){var xBF=document.createElement("template");_.B(xBF,"\x3c!--css-build:shady--\x3e");xBF.content.insertBefore(WoF().content.cloneNode(!0),xBF.content.firstChild);pKP=xBF}Ojr=pKP;I4Y.call(LoY,Ojr.content);var Mml,h8l=function(){return Mml!==void 0?Mml:Mml=document.createElement("template")};
document.head.appendChild(h8l().content);var UBU;var VSF=document.head,DE6=VSF.appendChild,fup;if(UBU===void 0){var nIE=document.createElement("template");_.B(nIE,"\x3c!--css-build:shady--\x3e");nIE.content.insertBefore(h8l().content.cloneNode(!0),nIE.content.firstChild);UBU=nIE}fup=UBU;DE6.call(VSF,fup.content);var tSp;_.zk("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.zk("sharingRendererButtons","buttonRenderer","ytd-button-renderer");tSp=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.Lt=function(){var V=_.E.apply(this,arguments)||this;V.isPressed=!1;V.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return V};
_.v(_.Lt,_.E);_.P=_.Lt.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.onHintIdChanged=function(){var V=this,D,f,n=(D=this.ytButtonBehavior.data)==null?void 0:(f=D.hint)==null?void 0:f.hintRenderer;if(n&&n.hintId){D=_.JR(this.hostElement,"yt-get-opened-popups-action");D=(D&&D.length===1?D[0]:[]).length>0;var t=null;n.hintId!=="sponsor-pre-purchase"||D?n.hintId.startsWith("sponsor-post-purchase")&&!D?t=dhH("membership-manage"):n.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!D&&(t=dhH("membership-freebie-join")):t=dhH("membership-join");t&&_.dm.addLowPriorityJob(function(){for(var J=
_.r(t),H=J.next();!H.done;H=J.next())V.ytComponentBehavior.resolveCommand(H.value)})}};
_.P.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.P.onYtNavigate=function(V){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);D&&(V.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(D))};
_.P.onYtServiceRequestSent=function(V,D){this.handleServiceRequestActions(D);_.PA(this.hostElement,"yt-service-request-sent-button-renderer")};
_.P.onServiceRequestCompleted=function(V,D){this.handleServiceRequestActions(D);_.PA(this.hostElement,"yt-service-request-completed-button-renderer")};
_.P.updateButton=function(V){var D;if(V=(D=_.g(V,rDH))==null?void 0:D.updatedButton)this.ytButtonBehavior.data=_.g(V,_.RI)};
_.P.handleUpdateButtonAction=function(V){var D=this.ytButtonBehavior.data;D.targetId&&V.updateButtonAction.targetId&&D.targetId===V.updateButtonAction.targetId&&this.updateButton(V)};
_.P.handleServiceRequestActions=function(V){if(V=V.actions)for(var D=0;D<V.length;D++)this.updateButton(V[D])};
_.IG.Object.defineProperties(_.Lt,{template:{configurable:!0,enumerable:!0,get:function(){if($Br===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);$Br=V}V=$Br;return V}}});
_.Lt.prototype.onServiceRequestCompleted=_.Lt.prototype.onServiceRequestCompleted;_.Lt.prototype.onYtServiceRequestSent=_.Lt.prototype.onYtServiceRequestSent;_.Lt.prototype.onYtNavigate=_.Lt.prototype.onYtNavigate;_.Lt.prototype.onPressedStateChanged=_.Lt.prototype.onPressedStateChanged;_.Lt.prototype.onHintIdChanged=_.Lt.prototype.onHintIdChanged;_.S([_.q(),_.p("design:type",Object)],_.Lt.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],_.Lt.prototype,"isPressed",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],_.Lt.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.ys6.YtButtonBehavior),_.p("design:type",Object)],_.Lt.prototype,"ytButtonBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],_.Lt.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],_.Lt.prototype,"ytComponentBehavior",void 0);
_.S([_.u(jH.YtRenderButtonBehavior),_.p("design:type",Object)],_.Lt.prototype,"ytRenderButtonBehavior",void 0);_.S([_.KI("data.hint.hintRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.Lt.prototype,"onHintIdChanged",null);_.S([_.KI("isPressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.Lt.prototype,"onPressedStateChanged",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.Lt.prototype,"onYtNavigate",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],_.Lt.prototype,"onYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],_.Lt.prototype,"onServiceRequestCompleted",null);_.S([_.a({is:"ytd-button-renderer",disableElementRegistration:tSp})],_.Lt);var IK=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.v(IK,_.E);_.P=IK.prototype;_.P.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"}}}}};
_.P.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.dataChanged=function(){if(this.data&&this.data.sticker){var V=_.nT(this.data.sticker.thumbnails,this.stickerWidth);V||_.AKZ(V).thenCatch(function(){_.zP(new _.cI("Failed to load Super Sticker with url",V))})}};
_.P.computeAuthorPhotoSize=function(V){return(V==null?0:V.isV2Style)?32:40};
_.P.computeIsV2Style=function(V){return(V==null?0:V.isV2Style)?!0:!1};
_.P.onStickerLoaded=function(V){var D,f,n;(D=_.x7(V))==null||(f=D.parentNode)==null||(n=f.classList)==null||n.add("sticker-loaded")};
_.P.computeNoveltyImageWidth=function(V){var D,f;if(V==null?0:(D=V.headerOverlayImage)==null?0:(f=D.thumbnails)==null?0:f.length){D=V.headerOverlayImage.thumbnails[0];var n,t;if((n=V.pdgPurchasedNoveltyLoggingDirectives)==null?0:(t=n.loggingDirectives)==null?0:t.trackingParams){var J,H;YIZ((J=V.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(H=J.loggingDirectives)==null?void 0:H.trackingParams)}return D.width||0}return 0};
_.P.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.P.updateStickerStyles=function(){var V=this.data;V&&(V={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.authorNameTextColor)},
_.wI(this.hostElement,V))};
_.P.onBuyButtonClick=function(){var V,D=_.g((V=this.data)==null?void 0:V.buyButton,_.RI);D&&!fEX(D.command)&&this.ytRendererBehavior.logExplicitClick(D)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.IG.Object.defineProperties(IK.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 V;return((V=this.data)==null?0:V.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
IK.prototype.updateStickerStyles=IK.prototype.updateStickerStyles;IK.prototype.isDeletedChanged=IK.prototype.isDeletedChanged;IK.prototype.onStickerLoaded=IK.prototype.onStickerLoaded;IK.prototype.dataChanged=IK.prototype.dataChanged;_.S([_.u(KNo.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],IK.prototype,"ytPdgLiveChatItemBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],IK.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],IK.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IK.prototype,"data",void 0);
_.S([_.q({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],IK.prototype,"authorPhotoSize",void 0);_.S([_.q(),_.p("design:type",Boolean)],IK.prototype,"isDeleted",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],IK.prototype,"dashboardMoneyFeed",void 0);_.S([_.q({computed:"computeNoveltyImageWidth(data)"}),_.p("design:type",Number)],IK.prototype,"noveltyWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IK.prototype,"modern",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.p("design:type",Boolean)],IK.prototype,"isV2Style",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IK.prototype,"dataChanged",null);_.S([_.bU("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],IK.prototype,"onStickerLoaded",null);
_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],IK.prototype,"stickerWidth",null);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],IK.prototype,"stickerHeight",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IK.prototype,"hasHeartButton",null);_.S([_.R("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IK.prototype,"hideLowerBumper",null);
_.S([_.KI("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IK.prototype,"isDeletedChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IK.prototype,"updateStickerStyles",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],IK);
_.Y(IK,"yt-live-chat-paid-sticker-renderer",function(){if(YUV===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;a4V===void 0&&(a4V=document.createElement("template"));var n=a4V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);YUV=V}V=YUV;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var POo;var oI6;var J3r,r3H=function(){return J3r!==void 0?J3r:J3r=document.createElement("template")};
document.head.appendChild(r3H().content);var Hkl,wfp=function(){return Hkl!==void 0?Hkl:Hkl=document.createElement("template")};
document.head.appendChild(wfp().content);var QdY;var T1H,bkr=function(){return T1H!==void 0?T1H:T1H=document.createElement("template")};
document.head.appendChild(bkr().content);var KTL;var y3P=document.head,ZkU=y3P.appendChild,jd6;if(KTL===void 0){var luF=document.createElement("template");_.B(luF,"\x3c!--css-build:shady--\x3e");luF.content.insertBefore(bkr().content.cloneNode(!0),luF.content.firstChild);KTL=luF}jd6=KTL;ZkU.call(y3P,jd6.content);var GrF=document.head,eup=GrF.appendChild,c3F;if(QdY===void 0){var O6=document.createElement("template");_.B(O6,"\x3c!--css-build:shady--\x3e");O6.content.insertBefore(wfp().content.cloneNode(!0),O6.content.firstChild);O6.content.insertBefore(r3H().content.cloneNode(!0),O6.content.firstChild);QdY=O6}c3F=QdY;eup.call(GrF,c3F.content);var xL=function(){var V=_.lU.apply(this,arguments)||this;V.focusedIndex=0;V.verticalOffset=0;V.verticalAlign="top";V.dynamicAlign=!0;return V};
_.v(xL,_.lU);xL.prototype.emojiUrl=function(V){V=_.z0(this.emojiManager,V);if(!V)return"";var D;V=(D=V.image)==null?void 0:D.thumbnails;return _.nT(V,24)||""};
var FTo=function(V){var D;V.emojiVariants&&(D=V.data)!=null&&D.target&&_.pO(V,function(){V.set("verticalOffset",-1*V.hostElement.clientHeight);var f=_.Pt(V.hostElement).querySelector("img");f&&f.focus()})};
_.P=xL.prototype;_.P.onKeyboardEnter=function(){};
_.P.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.P.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.P.onKeyDown=function(V){switch(V.keyCode){case 13:this.onKeyboardEnter();V.preventDefault();break;case 40:this.changeFocus(1);V.preventDefault();break;case 38:this.changeFocus(-1);V.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.P.onYtEmojiSelect=function(V){var D=this,f,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return n=(f=D.data)==null?void 0:f.emoji,H=((t=n)==null?void 0:t.stickyPrefId)||((J=n)==null?void 0:J.emojiId),T=(Q=V.detail)==null?void 0:Q.emojiId,H&&T&&H!==T?_.b(Z,(y=D.emojiManager)==null?void 0:BrF(y,n,T),2):Z.return();_.o4(D.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[n,T]);_.yz(Z)})};
_.P.changeFocus=function(V){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+V+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(V=_.Pt(this.hostElement).querySelector("#variants"))&&V.children[this.focusedIndex].focus())};
_.IG.Object.defineProperties(xL.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
xL.prototype.onYtEmojiSelect=xL.prototype.onYtEmojiSelect;xL.prototype.onKeyDown=xL.prototype.onKeyDown;xL.prototype.onEmojiVariantsChanged=xL.prototype.onEmojiVariantsChanged;xL.prototype.onVerticalOffsetOrPositionTargetChanged=xL.prototype.onVerticalOffsetOrPositionTargetChanged;_.S([_.u(_.Y0),_.p("design:type",Object)],xL.prototype,"ironOverlayBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xL.prototype,"data",void 0);_.S([_.q(),_.p("design:type",_.m9)],xL.prototype,"emojiManager",void 0);
_.S([_.q(),_.p("design:type",Object)],xL.prototype,"emojiVariants",void 0);_.S([_.q(),_.p("design:type",Object)],xL.prototype,"focusedIndex",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],xL.prototype,"positionTarget",null);_.S([_.q({reflectToAttribute:!0}),_.R("verticalOffset","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xL.prototype,"isPositioned",null);_.S([_.q(),_.p("design:type",Object)],xL.prototype,"verticalOffset",void 0);
_.S([_.q(),_.p("design:type",Object)],xL.prototype,"verticalAlign",void 0);_.S([_.q(),_.p("design:type",Object)],xL.prototype,"dynamicAlign",void 0);_.S([_.KI("verticalOffset","positionTarget"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xL.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.S([_.KI("emojiVariants"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xL.prototype,"onEmojiVariantsChanged",null);
_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],xL.prototype,"onKeyDown",null);_.S([_.bU("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],xL.prototype,"onYtEmojiSelect",null);_.S([_.Gy()],xL);var gIp=[xL.prototype];var vIU;var krH;var sdr=/medium-light|medium-dark|light|medium|dark/,B1p=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,dEp=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),MC=function(){var V=_.E.apply(this,arguments)||this;V.userSelection={left:null,right:null};V.scrollAction="lock";V.isEmojiDraftInProgress=!1;return V};
_.v(MC,_.E);_.P=MC.prototype;_.P.onClick=function(V){V=_.x7(V);V instanceof HTMLImageElement&&this.selectOrUpdateEmoji(V)};
_.P.selectOrUpdateEmoji=function(V){var D=V.getAttribute("selection");D&&(D==="default"?_.PA(this.hostElement,"yt-emoji-select",_.z0(this.emojiManager,V.id)):D==="left"?this.userSelection=Object.assign({},this.userSelection,{left:V.src}):D==="right"?this.userSelection=Object.assign({},this.userSelection,{right:V.src}):D==="user"&&this.userSelection.left&&this.userSelection.right&&_.PA(this.hostElement,"yt-emoji-select",_.z0(this.emojiManager,V.id)))};
_.P.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.P.onMultiSelectorThumbnailRowChanged=function(){var V,D,f;((V=this.data)==null?0:(D=V.emoji)==null?0:(f=D.multiSelectorThumbnailRow)==null?0:f.length)&&this.openSelector()};
_.P.getThumbnailFromEmojiRow=function(V){var D,f;return(V==null?void 0:(D=V.thumbnails)==null?void 0:(f=D[0])==null?void 0:f.url)||""};
_.P.getEmojiAltTextForPartialSelector=function(V){var D;return((D=this.getThumbnailFromEmojiRow(V).match(B1p))==null?void 0:D[0])||""};
_.P.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.P.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.P.getRowSelection=function(V){return["left","right"][V]};
_.P.getIdFromComposedEmoji=function(V){return(V==null?void 0:V.emojiId)||""};
_.P.getEmojiFromPartialSelections=function(V,D){if(!V&&!D)return null;var f,n,t=(f=this.data)==null?void 0:(n=f.emoji)==null?void 0:n.variantIds;if(!t||!t.length)return null;var J;V=(J=V.match(sdr))==null?void 0:J[0];var H;D=(H=D.match(sdr))==null?void 0:H[0];if(!V||!D)return null;var Q=dEp.get(V);H=dEp.get(D);if(Q===H){H=Array.from(dEp.values()).filter(function(y){return y!==Q}).join("|");
var T=new RegExp("^((?!("+H+")).)*"+Q+"$")}else T=new RegExp(Q+".*"+H);return(t=t.find(function(y){return T.test(y)}))&&_.z0(this.emojiManager,t)||null};
_.P.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var V,D=this.ytEmojiSelectorBehavior.emojiUrl(((V=this.data.emoji)==null?void 0:V.emojiId)||"");_.Pt(this.hostElement).querySelector('[selection="user"]').src.includes(D)||(this.isEmojiDraftInProgress=!0)}};
_.P.onDomChange=function(){FTo(this.ytEmojiSelectorBehavior)};
_.P.getFocusableElements=function(){return _.Pt(this.hostElement).querySelectorAll("img").filter(function(V){return V.getAttribute("role")==="option"})};
_.P.changeFocus=function(V){var D=this.getFocusableElements();D!=null&&D.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+V+D.length)%D.length,this.ytEmojiSelectorBehavior.focusedIndex<D.length&&(V=D[this.ytEmojiSelectorBehavior.focusedIndex])&&V.focus())};
_.P.onKeyboardEnter=function(){var V=this.getFocusableElements();V!=null&&V.length&&(V=V[this.ytEmojiSelectorBehavior.focusedIndex])&&V instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(V),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.IG.Object.defineProperties(MC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f,n;return this.emojiManager&&((D=this.data)==null?0:(f=D.emoji)==null?0:(n=f.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.z0(V.emojiManager,t)}).filter(function(t){return!!t}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var V,D=(V=this.userSelection)==null?void 0:V.left,f;V=(f=this.userSelection)==null?void 0:f.right;return D&&V?this.getEmojiFromPartialSelections(D,V):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.composedEmojiSelection)==null?0:V.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var D;V=(D=this.userSelection)==null?void 0:D.left;var f;D=(f=this.userSelection)==null?void 0:f.right;if(!V&&!D){var n;return this.ytEmojiSelectorBehavior.emojiUrl(((n=this.data.emoji)==null?void 0:n.emojiId)||"")}return V&&!D?V:!V&&D?D:""}}});
MC.prototype.onMultiSelectorThumbnailRowChanged=MC.prototype.onMultiSelectorThumbnailRowChanged;MC.prototype.onClick=MC.prototype.onClick;_.S([_.u(_.Y0),_.p("design:type",Object)],MC.prototype,"ironOverlayBehavior",void 0);_.S([_.u(gIp),_.p("design:type",Object)],MC.prototype,"ytEmojiSelectorBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",_.m9)],MC.prototype,"emojiManager",void 0);
_.S([_.q(),_.p("design:type",Object)],MC.prototype,"userSelection",void 0);_.S([_.q(),_.p("design:type",Object)],MC.prototype,"scrollAction",void 0);_.S([_.q(),_.p("design:type",Object)],MC.prototype,"isEmojiDraftInProgress",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],MC.prototype,"emojiVariants",null);_.S([_.R("data","userSelection"),_.p("design:type",Object),_.p("design:paramtypes",[])],MC.prototype,"composedEmojiSelection",null);
_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],MC.prototype,"onClick",null);_.S([_.KI("data.emoji.multiSelectorThumbnailRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MC.prototype,"onMultiSelectorThumbnailRowChanged",null);_.S([_.R("data","userSelection","composedEmojiSelection"),_.p("design:type",String),_.p("design:paramtypes",[])],MC.prototype,"draftEmojiUrl",null);
_.S([_.zy({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],MC);
_.Y(MC,"yt-emoji-multi-person-selector",function(){if(krH===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;vIU===void 0&&(vIU=document.createElement("template"));var n=vIU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);krH=V}V=krH;return V},{mode:2});var u5o;var N1U;var hv=function(){var V=_.E.apply(this,arguments)||this;V.tooltip_=null;return V};
_.v(hv,_.E);_.P=hv.prototype;_.P.dataChanged_=function(){var V;if((V=this.data)==null?0:V.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Pt(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Ht)(this.tooltip_).textContent=this.data.tooltip};
_.P.computeTargetId=function(){var V;return((V=this.data)==null?void 0:V.targetId)||""};
_.P.computeId_=function(V){return V};
_.P.computeIcon_=function(V){return _.Qa(V)};
_.P.onTap_=function(){this.active=!this.active;_.PA(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.P.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("active-changed",this.active))};
_.IG.Object.defineProperties(hv.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var V,D;if((V=this.data)==null?0:(D=V.icon)==null?0:D.iconType)return this.data.icon.iconType==="SUPER_STICKER";var f,n;return((f=this.data)==null?void 0:(n=f.icon)==null?void 0:n.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
hv.prototype.activeChangedForBinding=hv.prototype.activeChangedForBinding;hv.prototype.dataChanged_=hv.prototype.dataChanged_;_.S([_.u(_.X_.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],hv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hv.prototype,"data",void 0);_.S([_.q({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.p("design:type",String)],hv.prototype,"id",void 0);
_.S([_.q({computed:"computeTargetId(data.targetId)"}),_.p("design:type",String)],hv.prototype,"targetId",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],hv.prototype,"active",void 0);_.S([_.q({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.p("design:type",String)],hv.prototype,"icon",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hv.prototype,"dataChanged_",null);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hv.prototype,"iconFilled",null);_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hv.prototype,"activeChangedForBinding",null);_.S([_.zy({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],hv);
_.Y(hv,"yt-emoji-picker-category-button-renderer",function(){if(N1U===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;u5o===void 0&&(u5o=document.createElement("template"));var n=u5o;f.call(D,n.content.cloneNode(!0),V.content.firstChild);N1U=V}V=N1U;return V},{mode:2});var mEu;var zu6;var U6=function(){var V=_.E.apply(this,arguments)||this;V.ariaLabel=null;V.ariaActivedescendant=null;V.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};V.JSC$12197_ignoreNextFocus_=!1;V.longPressTimeoutId=-1;return V};
_.v(U6,_.E);_.P=U6.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var V=_.lS(),D=0;D<this.emoji.length;D++){var f={veType:88013,elementIndex:D},n=this.emoji[D];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(f=_.jD(V,f))&&(n.visualElement=f)}};
_.P.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.P.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.P.emojiSkinToneChanged_=function(V){this.skinTone=V};
_.P.dataChanged=function(){this.data&&this.data.emojiData&&g3E(this.emojiManager,this.data.emojiData)};
_.P.emojiUrl=function(V){V=this.getEmoji(V);if(!V)return"";var D;V=(D=V.image)==null?void 0:D.thumbnails;return _.nT(V,24)||""};
_.P.emojiAlt=function(V){var D=this.get("image.accessibility.accessibilityData.label",V);return D?D:V.isCustomEmoji?V.shortcuts[0]:V.emojiId};
_.P.emojiAriaLabel=function(V){return V.shortcuts?V.shortcuts[0]:""};
_.P.emojiAriaSelected=function(V,D,f){return V&&f==D?"true":"false"};
_.P.getEmoji=function(V){if(this.emojiManager)return this.shouldUseStickyPreferences?kXH(this.emojiManager,V):RK(this.emojiManager,V)};
_.P.computeId_=function(V){return V.categoryId||""};
_.P.computeEmoji=function(V){var D=this;return this.emojiManager?V.emojiIds?V.emojiIds.map(function(f){return f?_.z0(D.emojiManager,f):null}).filter(ayn):V.emojiData?V.emojiData.map(function(f){var n=!!f.emojiId&&_.z0(D.emojiManager,f.emojiId);
return n?Object.assign({},n,f):null}).filter(ayn):[]:[]};
_.P.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.P.computeAriaLabel_=function(V){return _.LA(V)};
_.P.computeAriaActivedescendant_=function(V,D){return V&&V[D]?V[D].emojiId||"":""};
_.P.handleLongPressEmojiWithVariants=function(V,D){this.changeFocusToEmoji(V.emojiId,!1);this.openVariantSelector(V,D)};
_.P.onMouseDown=function(V){var D=this;this.hostElement!==document.activeElement&&(this.JSC$12197_ignoreNextFocus_=!0);if(V.button===0){var f=_.x7(V);if(f instanceof HTMLImageElement){var n=_.Pt(this.hostElement).querySelector("#repeat").itemForElement(f);this.emojiContainsVariants(n)&&(this.longPressTimeoutId=setTimeout(function(){D.handleLongPressEmojiWithVariants(n,f)},500))}}};
_.P.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.P.onFocus=function(){this.JSC$12197_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12197_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.emojiContainsVariants=function(V){return!!(V&&V.variantIds&&V.variantIds.length)};
_.P.onClick=function(V){clearTimeout(this.longPressTimeoutId);V=_.x7(V);if(V instanceof HTMLImageElement){var D=V.id;this.changeFocusToEmoji(D,!1);var f=this.getEmoji(D),n;if(n=this.shouldUseStickyPreferences&&this.emojiContainsVariants(f)){var t;n=!((t=this.emojiManager.emojiMap[D])!=null&&t.stickyPrefId)}n?(t=_.Pt(this.hostElement).querySelector("#repeat").itemForElement(V),this.openVariantSelector(t,V)):_.PA(this.hostElement,"yt-emoji-select",f)}};
_.P.isActiveEmojiWithVariants=function(V,D){return V&&D?D.stickyPrefId?V===D.stickyPrefId:V===D.emojiId:!1};
_.P.onCloseEmojiVariantSelector=function(V){this.activeEmojiWithVariantsId===V&&(this.activeEmojiWithVariantsId="")};
_.P.onMouseOver_=function(V){V=_.x7(V);V instanceof HTMLImageElement&&_.PA(this.hostElement,"yt-emoji-hover",_.z0(this.emojiManager,V.id))};
_.P.changeFocus_=function(V,D){this.focusedIndex=(this.focusedIndex+V+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(V=this.emoji[this.focusedIndex],D&&(this.showFocus=!0,_.Pt(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.PA(this.hostElement,"yt-emoji-hover",V)))};
_.P.changeFocusToEmoji=function(V,D){if(V){var f=this.emoji.findIndex(function(n){return n.emojiId===V});
f!==-1&&this.changeFocus_(f-this.focusedIndex,D)}};
_.P.onKeyDown_=function(V){switch(V.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var D=this.emoji[this.focusedIndex];if(D&&D.emojiId){if(this.emojiContainsVariants(D)){var f=_.Pt(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(D,f)}else _.PA(this.hostElement,"yt-emoji-select",RK(this.emojiManager,D.emojiId)),this.hostElement.focus();V.preventDefault()}}break;case 40:this.changeFocus_(1,!0);V.preventDefault();break;case 38:this.changeFocus_(-1,!0),
V.preventDefault()}};
_.P.onEmojiStickyPreferenceChanged=function(V,D){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&V.emojiId&&V.variantIds&&V.variantIds.includes(D)&&this.activeEmojiWithVariantsId!==D&&this.setStickyEmojiPreference(V.emojiId,D)};
_.P.openVariantSelector=function(V,D){this.activeEmojiWithVariantsId=V.stickyPrefId||V.emojiId||"";_.PA(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:V,target:D})};
_.P.setStickyEmojiPreference=function(V,D){if(this.data){var f=this.emoji.findIndex(function(t){return t.emojiId===V});
if(f!==-1){var n=this.emoji[f];n.stickyPrefId=D;this.set("emoji."+f,Object.assign({},n));this.activeEmojiWithVariantsId=D}}};
U6.prototype.onKeyDown_=U6.prototype.onKeyDown_;U6.prototype.onMouseOver_=U6.prototype.onMouseOver_;U6.prototype.onClick=U6.prototype.onClick;U6.prototype.onBlur_=U6.prototype.onBlur_;U6.prototype.onFocus=U6.prototype.onFocus;U6.prototype.onMouseUp=U6.prototype.onMouseUp;U6.prototype.onMouseDown=U6.prototype.onMouseDown;U6.prototype.dataChanged=U6.prototype.dataChanged;U6.prototype.disableIncrementalLoadingChanged_=U6.prototype.disableIncrementalLoadingChanged_;U6.prototype.emojiManagerChanged_=U6.prototype.emojiManagerChanged_;
U6.prototype.emojiChanged_=U6.prototype.emojiChanged_;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],U6.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],U6.prototype,"data",void 0);_.S([_.q({computed:"computeId_(data)"}),_.p("design:type",String)],U6.prototype,"id",void 0);_.S([_.q({computed:"computeEmoji(data)"}),_.p("design:type",Array)],U6.prototype,"emoji",void 0);_.S([_.q(),_.p("design:type",Number)],U6.prototype,"skinTone",void 0);
_.S([_.q(),_.p("design:type",_.m9)],U6.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Boolean)],U6.prototype,"disableIncrementalLoading",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],U6.prototype,"focusedIndex",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],U6.prototype,"showFocus",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.p("design:type",Object)],U6.prototype,"ariaLabel",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.p("design:type",Object)],U6.prototype,"ariaActivedescendant",void 0);_.S([_.q({value:60}),_.p("design:type",Number)],U6.prototype,"domRepeatTargetFramerate",void 0);_.S([_.q({value:1}),_.p("design:type",Number)],U6.prototype,"domRepeatInitialCount",void 0);_.S([_.q({value:""}),_.p("design:type",String)],U6.prototype,"activeEmojiWithVariantsId",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],U6.prototype,"shouldUseStickyPreferences",void 0);_.S([_.KI("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"emojiChanged_",null);_.S([_.KI("emojiManager"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"emojiManagerChanged_",null);
_.S([_.KI("disableIncrementalLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"disableIncrementalLoadingChanged_",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"dataChanged",null);_.S([_.bU("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],U6.prototype,"onMouseDown",null);
_.S([_.bU("mouseup"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"onMouseUp",null);_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"onFocus",null);_.S([_.bU("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U6.prototype,"onBlur_",null);
_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],U6.prototype,"onClick",null);_.S([_.bU("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],U6.prototype,"onMouseOver_",null);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],U6.prototype,"onKeyDown_",null);
_.S([_.zy({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],U6);
_.Y(U6,"yt-emoji-picker-category-renderer",function(){if(zu6===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;mEu===void 0&&(mEu=document.createElement("template"));var n=mEu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);zu6=V}V=zu6;return V},{mode:2});var Ruo;var COV;var qIu;var XfY;var VD=function(){var V=_.E.apply(this,arguments)||this;V.ariaLabel=null;V.ariaActivedescendant=null;V.getFormattedStringRawText=_.LA;V.JSC$12203_ignoreNextFocus_=!1;return V};
_.v(VD,_.E);_.P=VD.prototype;_.P.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")};
_.P.emojiUrl=function(V){var D,f;V=(D=RK(this.emojiManager,V,!0))==null?void 0:(f=D.image)==null?void 0:f.thumbnails;return _.nT(V,24)||""};
_.P.emojiAlt=function(V){var D=this.get("image.accessibility.accessibilityData.label",V);return D?D:V.isCustomEmoji?V.shortcuts[0]:V.emojiId};
_.P.emojiId=function(V){return"emoji"+V};
_.P.computeId_=function(V){return V.categoryId||""};
_.P.computeAriaActivedescendant_=function(V){return this.emoji&&V<this.emoji.length?this.emojiId(V):""};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var V=_.lS(),D=0;D<this.emoji.length;D++){var f={veType:88013,elementIndex:D},n=this.emoji[D];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(f=_.jD(V,f))&&(n.visualElement=f)}};
_.P.computeEmoji_=function(V){var D=this;return this.emojiManager?V.emojiIds.map(function(f){return _.z0(D.emojiManager,f,!0)}).filter(YhU):[]};
_.P.titleOffsetChanged_=function(){var V=this.hostElement.getBoundingClientRect(),D=_.Pt(this.hostElement).querySelector("#title").getBoundingClientRect();V=Math.max(0,Math.min(this.titleOffset,V.height-D.height));_.Pt(this.hostElement).querySelector("#title").style.top=V+"px"};
_.P.onEmojiMouseOver_=function(V){_.PA(this.hostElement,"yt-emoji-hover",V.model.item)};
_.P.onEmojiTap_=function(V){this.data.command&&(V=OkR(_.DY().resolve(_.Vx(Ak)),this.data.command,V),_.PA(this.hostElement,"yt-navigate",V))};
_.P.emojiAriaLabel=function(V){return V.shortcuts[0]};
_.P.emojiAriaSelected=function(V,D,f){return V&&f==D?"true":"false"};
_.P.changeFocus_=function(V,D){var f=this.emoji.length;this.focusedIndex=(this.focusedIndex+V+f)%f;V=this.emoji[this.focusedIndex];if(D){var n;(n=_.Pt(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||n.scrollIntoView(!1);_.PA(this.hostElement,"yt-emoji-hover",V)}};
_.P.onMouseDown_=function(){this.JSC$12203_ignoreNextFocus_=!0};
_.P.onFocus_=function(){this.JSC$12203_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12203_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.onKeyDown_=function(V){switch(V.keyCode){case 13:this.onEmojiTap_(V);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);V.preventDefault();break;case 38:this.changeFocus_(-1,!0),V.preventDefault()}};
VD.prototype.onKeyDown_=VD.prototype.onKeyDown_;VD.prototype.onBlur_=VD.prototype.onBlur_;VD.prototype.onFocus_=VD.prototype.onFocus_;VD.prototype.onMouseDown_=VD.prototype.onMouseDown_;VD.prototype.onEmojiTap_=VD.prototype.onEmojiTap_;VD.prototype.titleOffsetChanged_=VD.prototype.titleOffsetChanged_;VD.prototype.emojiChanged_=VD.prototype.emojiChanged_;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],VD.prototype,"data",void 0);_.S([_.q({computed:"computeId_(data)"}),_.p("design:type",String)],VD.prototype,"id",void 0);_.S([_.q({computed:"computeEmoji_(data)"}),_.p("design:type",Array)],VD.prototype,"emoji",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],VD.prototype,"titleOffset",void 0);_.S([_.q({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.p("design:type",Object)],VD.prototype,"ariaLabel",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.p("design:type",Object)],VD.prototype,"ariaActivedescendant",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],VD.prototype,"showFocus",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],VD.prototype,"focusedIndex",void 0);_.S([_.q(),_.p("design:type",_.m9)],VD.prototype,"emojiManager",void 0);
_.S([_.KI("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"emojiChanged_",null);_.S([_.KI("titleOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"titleOffsetChanged_",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],VD.prototype,"onEmojiTap_",null);
_.S([_.bU("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"onMouseDown_",null);_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"onFocus_",null);_.S([_.bU("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"onBlur_",null);
_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],VD.prototype,"onKeyDown_",null);_.S([_.zy({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],VD);
_.Y(VD,"yt-emoji-picker-upsell-category-renderer",function(){if(XfY===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;qIu===void 0&&(qIu=document.createElement("template"));var n=qIu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);XfY=V}V=XfY;return V},{mode:2});var EIu;var A3V;var Dg=function(){var V=_.E.apply(this,arguments)||this;V.scrollAction="lock";V.verticalAlign="top";return V};
_.v(Dg,_.E);_.P=Dg.prototype;_.P.onClick=function(V){V=_.x7(V);V instanceof HTMLImageElement&&_.PA(this.hostElement,"yt-emoji-select",_.z0(this.emojiManager,V.id))};
_.P.openSelector=function(){this.ironOverlayBehavior.open()};
_.P.onDomChange=function(){FTo(this.ytEmojiSelectorBehavior)};
_.P.computeIsFamilySelector=function(V){var D;return(V==null?void 0:(D=V.emoji)==null?void 0:D.emojiId)==="\ud83d\udc6a"};
_.P.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var V=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];V&&V.emojiId&&(_.PA(this.hostElement,"yt-emoji-select",_.z0(this.emojiManager,V.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.IG.Object.defineProperties(Dg.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f,n;return this.emojiManager&&((D=this.data)==null?0:(f=D.emoji)==null?0:(n=f.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.z0(V.emojiManager,t)}).filter(function(t){return!!t}):[]}}});
Dg.prototype.onClick=Dg.prototype.onClick;_.S([_.u(_.Y0),_.p("design:type",Object)],Dg.prototype,"ironOverlayBehavior",void 0);_.S([_.u(gIp),_.p("design:type",Object)],Dg.prototype,"ytEmojiSelectorBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Dg.prototype,"data",void 0);_.S([_.q(),_.p("design:type",_.m9)],Dg.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Object)],Dg.prototype,"scrollAction",void 0);_.S([_.q(),_.p("design:type",Object)],Dg.prototype,"verticalAlign",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.p("design:type",Boolean)],Dg.prototype,"isFamilySelector",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Dg.prototype,"emojiVariants",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],Dg.prototype,"onClick",null);_.S([_.zy({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Dg);
_.Y(Dg,"yt-emoji-variant-selector",function(){if(A3V===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;EIu===void 0&&(EIu=document.createElement("template"));var n=EIu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);A3V=V}V=A3V;return V},{mode:2});var auE=/:/g,YIF=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],fE=function(){var V=_.E.apply(this,arguments)||this;V.emojiVariantSelector=null;V.emojiMultiPersonSelector=null;V.identity=_.YF;V.lastAnimationTime_=0;V.animationStart_=null;V.animationEnd_=null;return V};
_.v(fE,_.E);_.P=fE.prototype;
_.P.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}}};
_.P.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Ct)};
_.P.attached=function(){_.JF&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&v3r(this.emojiManager)};
_.P.dataChanged=function(){var V;if((V=this.data)==null?0:V.categories){V=this.emojiManager;var D=this.getCustomEmojiIds();V.pickerCustomEmojiIds=[].concat(_.sz(l4V),_.sz(D))}};
_.P.getCustomEmojiIds=function(){var V,D=(V=this.data.categories)==null?void 0:V.find(function(J){var H;return((H=J.emojiPickerCategoryRenderer)==null?void 0:H.categoryId)&&YIF.includes(J.emojiPickerCategoryRenderer.categoryId)}),f;
V=(f=this.data.categories)==null?void 0:f.find(function(J){return J.emojiPickerUpsellCategoryRenderer});
var n,t;return[D==null?void 0:(n=D.emojiPickerCategoryRenderer)==null?void 0:n.emojiIds,V==null?void 0:(t=V.emojiPickerUpsellCategoryRenderer)==null?void 0:t.emojiIds].flat().filter(function(J){return!!J})};
_.P.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.P.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.P.updateCategoriesAndPlaceholderInternal=function(V,D){var f=this;V&&D&&(this.categories=V.categories||[],this.categoryButtons=V.categoryButtons||[],this.resetPlaceholder(),this.search="",_.aU(function(){f.updateButtons_()}))};
_.P.computeId_=function(V){return V.id||""};
_.P.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(V){return V.emojiPickerCategoryRenderer&&V.emojiPickerCategoryRenderer.emojiData}):!1};
_.P.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.P.onShowEmojiVariantSelector=function(V){var D=V.detail.emojiData;D.variantIds&&D.variantIds.length&&(D.multiSelectorThumbnailRow&&D.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:D,target:V.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:D,target:V.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onIronOverlayClosed=function(V){var D=kXH(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");D&&V.composedPath&&(V.composedPath().includes(_.Pt(this.hostElement).querySelector("#emoji-variant-selector"))||V.composedPath().includes(_.Pt(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.o4(this.hostElement,"yt-close-emoji-variant-selector",[D.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onEmojiVariantSelectorMouseup=function(V){var D=V.target.firstChild;this.variantSelectorOpened&&D&&_.aU(function(){D.noCancelOnOutsideClick=!1},100)};
_.P.onEmojiVariantSelectorMousedown=function(V){V=V.target.firstChild;this.variantSelectorOpened&&V&&(V.noCancelOnOutsideClick=!1)};
_.P.onSelectCategory_=function(V){var D=this.search!="";this.search="";for(var f=_.Pt(this.hostElement).querySelector("#categories").children,n=0;n<f.length;n++){var t=f[n];if(t.id==V.detail.categoryId){D?(_.Pt(this.hostElement).querySelector("#categories").scrollTop=t.offsetTop,this.updateButtons_()):(this.animationStart_=_.Pt(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=t.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.P.onEmojiHover_=function(V){this.placeholder=V.detail.shortcuts?V.detail.shortcuts[0]:""};
_.P.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.P.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.P.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.P.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.P.computeSearchCategory_=function(V){V=V.replace(auE,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();V=V.split(" ");for(var D=[],f=this.emojiManager.emojis,n=0;n<f.length;n++){var t=f[n];if(t.searchTerms)for(var J=0;J<t.searchTerms.length;J++){for(var H=t.searchTerms[J].toLocaleLowerCase(),Q=!1,T=0;T<V.length;T++)if(H.indexOf(V[T])!=-1){Q=!0;break}if(Q&&(!t.isCustomEmoji||!t.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(t.emojiId))){D.push(t.emojiId);
break}}}return{categoryId:-1,emojiIds:D}};
_.P.computeSearchEmptyMessage_=function(V,D){return V&&D&&D.emojiIds&&D.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.P.computeSearching_=function(V){return this.emojiManager&&V.replace(auE,"").length>1};
_.P.computeSkinToneHidden=function(){var V;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((V=this.data)==null||!V.hideSkinTonePicker)};
_.P.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.P.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.P.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.P.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.P.selectSkinTone_=function(V){V=Number(V.target.getAttribute("tone"));this.set("emojiManager.skinTone",V);_.o4(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[V]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.P.skinToneChanged_=function(){_.Pt(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var V=_.Pt(this.hostElement).querySelector("#dropdown-content").children,D=0;D<V.length;D++)D===this.skinTone?V[D].setAttribute("selected",""):V[D].removeAttribute("selected")};
_.P.animateScroll_=function(V){this.lastAnimationTime_||(this.lastAnimationTime_=V);V-=this.lastAnimationTime_;V<200?(_.Pt(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*V/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Pt(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.P.searchChanged_=function(){this.updateButtons_()};
_.P.updateButtons_=function(){var V=null;if(!this.search)for(var D=_.Pt(this.hostElement).querySelector("#categories").scrollTop,f=_.Pt(this.hostElement).querySelector("#categories").children,n=0;n<f.length;n++){var t=f[n];t.offsetTop<=D&&(V=t.id)}D=_.Pt(this.hostElement).querySelector("#category-buttons").children;for(f=0;f<D.length;f++)n=D[f],n.active=n.id===V};
fE.prototype.searchChanged_=fE.prototype.searchChanged_;fE.prototype.skinToneChanged_=fE.prototype.skinToneChanged_;fE.prototype.onEmojiHover_=fE.prototype.onEmojiHover_;fE.prototype.onSelectCategory_=fE.prototype.onSelectCategory_;fE.prototype.onShowEmojiVariantSelector=fE.prototype.onShowEmojiVariantSelector;fE.prototype.updateCategoriesAndPlaceholder_=fE.prototype.updateCategoriesAndPlaceholder_;fE.prototype.dataChanged=fE.prototype.dataChanged;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fE.prototype,"data",void 0);_.S([_.q({value:function(){return[]}}),
_.p("design:type",Array)],fE.prototype,"categories",void 0);_.S([_.q({value:function(){return[]}}),
_.p("design:type",Array)],fE.prototype,"categoryButtons",void 0);_.S([_.q({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fE.prototype,"disableScroll",void 0);_.S([_.q({computed:"computeId_(data)",reflectToAttribute:!0}),_.p("design:type",String)],fE.prototype,"id",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],fE.prototype,"selected",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],fE.prototype,"disableIncrementalLoading",void 0);_.S([_.q(),_.p("design:type",String)],fE.prototype,"placeholder",void 0);_.S([_.q({value:""}),_.p("design:type",String)],fE.prototype,"search",void 0);_.S([_.q({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fE.prototype,"searching",void 0);_.S([_.q({computed:"computeSearchCategory_(search)"}),_.p("design:type",Object)],fE.prototype,"searchCategory",void 0);
_.S([_.q({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.p("design:type",Object)],fE.prototype,"searchEmptyMessage",void 0);_.S([_.q({computed:"identity(emojiManager.skinTone)"}),_.p("design:type",Number)],fE.prototype,"skinTone",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],fE.prototype,"skinToneOpened",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],fE.prototype,"variantSelectorOpened",void 0);
_.S([_.q({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.p("design:type",Boolean)],fE.prototype,"skinToneHidden",void 0);_.S([_.q(),_.p("design:type",_.m9)],fE.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Object)],fE.prototype,"emojiVariantSelector",void 0);_.S([_.q(),_.p("design:type",Object)],fE.prototype,"emojiMultiPersonSelector",void 0);
_.S([_.q({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.p("design:type",Boolean)],fE.prototype,"shouldUseStickyPreferences",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fE.prototype,"dataChanged",null);_.S([_.KI("data","selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fE.prototype,"updateCategoriesAndPlaceholder_",null);
_.S([_.bU("yt-show-emoji-variant-selector"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fE.prototype,"onShowEmojiVariantSelector",null);_.S([_.bU("yt-emoji-picker-select-category"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fE.prototype,"onSelectCategory_",null);_.S([_.bU("yt-emoji-hover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],fE.prototype,"onEmojiHover_",null);
_.S([_.KI("skinTone"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fE.prototype,"skinToneChanged_",null);_.S([_.KI("search"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fE.prototype,"searchChanged_",null);_.S([_.zy({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],fE);
_.Y(fE,"yt-emoji-picker-renderer",function(){if(COV===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Ruo===void 0&&(Ruo=document.createElement("template"));var n=Ruo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);COV=V}V=COV;return V},{mode:2});var nE=function(){var V=_.E.apply(this,arguments)||this;V.emojiManager=_.Ct;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.selectedIndex=1;V.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return V};
_.v(nE,_.E);_.P=nE.prototype;_.P.handleEmojiCustomizationVisible=function(V){this.emojiPickerRenderer.selected=V;this.selectedIndex=1;V?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.P.emojiCustomizationSetChanged=function(){var V;(V=this.data)!=null&&V.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.PH(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.P.updateSaveButtonState=function(V){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.y1("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:V}))};
_.P.emojiUrl=function(V){V=_.z0(this.emojiManager,V);if(!V)return"";var D;V=(D=V.image)==null?void 0:D.thumbnails;return _.nT(V,24)||""};
_.P.emojiAlt=function(V){var D=_.z0(this.emojiManager,V);if(!D)return V;var f,n,t,J=(D==null?void 0:(f=D.image)==null?void 0:(n=f.accessibility)==null?void 0:(t=n.accessibilityData)==null?void 0:t.label)||"";return J?J:D.isCustomEmoji?D.shortcuts[0]:D.emojiId||V};
_.P.emojiAriaLabel=function(V){var D,f;return((D=_.z0(this.emojiManager,V))==null?void 0:(f=D.shortcuts)==null?void 0:f[0])||V};
_.P.onEmojiClick=function(V){V.model.index!==0&&(this.selectedIndex=V.model.index)};
_.P.onEmojiSelect=function(V){V=V.detail;var D,f;((D=this.data)==null?0:D.emojiCustomizationSetEntityKey)&&((f=this.emojiCustomizationSet)==null?0:f.emojiId)&&V.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,V.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.y1("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,V.emojiId,this.selectedIndex)}))};
_.P.canEditEmoji=function(V,D,f){V=V.indexOf(D);return V===f||V===0||f===0?!1:!0};
_.P.getUpdatedEmojiIdList=function(V,D,f){var n=V.indexOf(D);V=[].concat(_.sz(V));n>=0&&(V[n]=V[f]);V[f]=D;return V};
_.IG.Object.defineProperties(nE,{template:{configurable:!0,enumerable:!0,get:function(){if(oI6===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;POo===void 0&&(POo=document.createElement("template"));var n=POo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);oI6=V}V=oI6;return V}}});
nE.prototype.onEmojiSelect=nE.prototype.onEmojiSelect;_.S([_.u(_.qd),_.p("design:type",Object)],nE.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Zv("yt-emoji-picker-renderer"),_.p("design:type",Object)],nE.prototype,"emojiPickerRenderer",void 0);
_.S([_.q({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(V,D){return _.wg(V.entities,"emojiCustomizationSetEntity",D)},
observer:"emojiCustomizationSetChanged"}),_.p("design:type",Object)],nE.prototype,"emojiCustomizationSet",void 0);_.S([_.q(),_.p("design:type",Object)],nE.prototype,"originalEmojiSet",void 0);_.S([_.q(),_.p("design:type",_.m9)],nE.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Object)],nE.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],nE.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],nE.prototype,"selectedIndex",void 0);
_.S([_.bU("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nE.prototype,"onEmojiSelect",null);_.S([_.zy({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],nE);var $Eo;var ikH;var SIH;var WTF;var tf=function(){var V=_.E.apply(this,arguments)||this;V.authorBadges=[];return V};
_.v(tf,_.E);_.P=tf.prototype;_.P.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.P.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]]"}}}}}};
_.P.dataChanged=function(){var V=juX(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",V)};
_.P.updateMessage=function(){var V=this.data.message,D=_.Pt(_.Pt(this.hostElement).querySelector("#message"));D.textContent="";V&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V))};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.P.onShowOriginalClick=function(V){V.preventDefault();this.showOriginal=!0};
_.P.computeShowBar=function(V,D,f){return V&&D||f};
_.P.computeAuthorBadges=function(V){return V.authorBadges||[]};
_.P.computeAuthorIsOwner=function(V){return!!lhZ(V.authorBadges,"owner")};
_.P.computeAuthorNameColor=function(V){var D;if(_.c("live_chat_author_name_color_usernames")&&(V==null?0:(D=V.authorName)==null?0:D.simpleText))return _.v2Y(_.k7Z(V.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(V==null?0:V.authorSeedColorArgb))return _.v2Y(_.Hr(V.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var f;return _.c("live_chat_simple_color_usernames")&&(V==null?0:(f=V.authorName)==null?0:f.simpleText)&&(V==null?0:V.authorUsernameColorLight)&&
(V==null?0:V.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Hr(V.authorUsernameColorDark):_.Hr(V.authorUsernameColorLight):""};
tf.prototype.updateMessage=tf.prototype.updateMessage;tf.prototype.dataChanged=tf.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],tf.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tf.prototype,"data",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"showOriginal",void 0);_.S([_.q({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"isDimmed",void 0);_.S([_.q({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"showBar",void 0);
_.S([_.q({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],tf.prototype,"authorBadges",void 0);_.S([_.q({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"authorIsOwner",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"inCollapsedBanner",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"inBanner",void 0);
_.S([_.q({value:_.c("live_chat_hide_avatars"),reflectToAttribute:!0}),_.p("design:type",Boolean)],tf.prototype,"avatarHidden",void 0);_.S([_.q({computed:"computeAuthorNameColor(data)"}),_.p("design:type",String)],tf.prototype,"authorNameColor",void 0);_.S([_.q(),_.p("design:type",_.aK)],tf.prototype,"participantsManager",void 0);_.S([_.q({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.p("design:type",Object)],tf.prototype,"filledButtonOverrides",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tf.prototype,"dataChanged",null);_.S([_.KI("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tf.prototype,"updateMessage",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],tf);
_.Y(tf,"yt-live-chat-text-message-renderer",function(){if(WTF===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;SIH===void 0&&(SIH=document.createElement("template"));var n=SIH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);WTF=V}V=WTF;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var P$=function(){var V=_.E.apply(this,arguments)||this;V.tonalButtonOverrides={type:"tonal",style:"overlay"};return V};
_.v(P$,_.E);
P$.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]]"}}}}}};
P$.prototype.shouldSupportInlineActionButtons=function(){return!0};
P$.prototype.shouldSupportWholeItemClick=function(){return!0};
_.IG.Object.defineProperties(P$.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],P$.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],P$.prototype,"data",void 0);_.S([_.q(),_.p("design:type",_.aK)],P$.prototype,"participantsManager",void 0);
_.S([_.q(),_.p("design:type",Object)],P$.prototype,"tonalButtonOverrides",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.infoDialogButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],P$.prototype,"hasInfoDialogButton",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],P$);
_.Y(P$,"yt-live-chat-auto-mod-message-renderer",function(){if(ikH===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;$Eo===void 0&&($Eo=document.createElement("template"));var n=$Eo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ikH=V}V=ikH;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var pfl;var LTU;var Iul;var OkE=function(){return _.E.apply(this,arguments)||this};
_.v(OkE,_.E);_.S([_.q(),_.p("design:type",Object)],OkE.prototype,"data",void 0);_.S([_.a({is:"ytd-factoid-renderer",disableElementRegistration:!0})],OkE);
_.Y(OkE,"ytd-factoid-renderer",function(){if(Iul!==void 0)return Iul;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Iul=V},{mode:1});var ox=function(){return _.E.apply(this,arguments)||this};
_.v(ox,_.E);ox.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.S([_.q(),_.p("design:type",Object)],ox.prototype,"data",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],ox);
_.Y(ox,"yt-live-chat-channel-activity-reputation-renderer",function(){if(LTU===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;pfl===void 0&&(pfl=document.createElement("template"));var n=pfl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);LTU=V}V=LTU;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var xEu;var MSl;var Jf=function(){return _.E.apply(this,arguments)||this};
_.v(Jf,_.E);Jf.prototype.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Boolean)],Jf.prototype,"menuFocused",void 0);_.S([_.q(),_.p("design:type",Object)],Jf.prototype,"data",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],Jf.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Jf);
_.Y(Jf,"yt-live-chat-donation-announcement-renderer",function(){if(MSl===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;xEu===void 0&&(xEu=document.createElement("template"));var n=xEu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);MSl=V}V=MSl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var huu;var UEu,VyE=function(){if(UEu!==void 0)return UEu;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;huu===void 0&&(huu=document.createElement("template"));var n=huu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return UEu=V};var rh=function(){return _.E.apply(this,arguments)||this};
_.v(rh,_.E);_.IG.Object.defineProperties(rh,{template:{configurable:!0,enumerable:!0,get:function(){return VyE()}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],rh.prototype,"data",void 0);_.S([_.zy({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],rh);_.Y(rh,"yt-live-chat-empty-feed-view-model",function(){return VyE()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Dvr;var fyE;var H$=function(){return _.E.apply(this,arguments)||this};
_.v(H$,_.E);H$.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"}}}}}};
_.IG.Object.defineProperties(H$.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var V,D;return{runs:[{text:(V=this.data)==null?void 0:(D=V.channelName)==null?void 0:D.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var V=[],D;if((D=this.data)==null||!D.channelBadges)return V;var f;D=_.r((f=this.data)==null?void 0:f.channelBadges);for(f=D.next();!f.done;f=D.next()){f=_.g(f.value,LjE);var n=void 0,t=void 0;if((n=f)==null?0:(t=n.badgeImage)==null?0:t.sources)n=void 0,t={liveChatAuthorBadgeRenderer:{tooltip:f.tooltip,accessibility:{accessibilityData:{label:(n=_.g(f.rendererContext,_.Z8))==null?void 0:n.label}}}},f.badgeImage.sources[0].clientResource?t.liveChatAuthorBadgeRenderer.icon=
{iconType:f.badgeImage.sources[0].clientResource.imageName}:t.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:f.badgeImage.sources},V.push(t)}return V}}});
_.S([_.q(),_.p("design:type",Object)],H$.prototype,"data",void 0);_.S([_.R("data.channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],H$.prototype,"channelName",null);_.S([_.R("data.channelBadges"),_.p("design:type",Array),_.p("design:paramtypes",[])],H$.prototype,"channelBadges",null);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],H$);
_.Y(H$,"yt-live-chat-identity-view-model",function(){if(fyE===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Dvr===void 0&&(Dvr=document.createElement("template"));var n=Dvr;f.call(D,n.content.cloneNode(!0),V.content.firstChild);fyE=V}V=fyE;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var nPE;var typ;var PtY;var oPV;var wh=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;V.supportsInlineActionButtons=!0;return V};
_.v(wh,_.E);wh.prototype.ready=function(){var V;((V=document.querySelector("yt-live-chat-app"))==null?0:V.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
wh.prototype.dataChanged=function(V){var D=(0,_.Ht)(_.Pt(this.hostElement).querySelector("#detail-text"));D.textContent="";(V==null?0:V.detailText)&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V.detailText))};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],wh.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({observer:"dataChanged"}),_.p("design:type",Object)],wh.prototype,"data",void 0);
_.S([_.q({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],wh.prototype,"hidden",void 0);_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],wh);
_.Y(wh,"yt-live-chat-legacy-paid-message-renderer",function(){if(oPV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PtY===void 0&&(PtY=document.createElement("template"));var n=PtY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);oPV=V}V=oPV;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var JKV;var rKP;var HbY={},QD=function(){return _.lU.apply(this,arguments)||this};
_.v(QD,_.lU);QD.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
QD.prototype.onLiveChatMembershipItemBehaviorClick=QD.prototype.onLiveChatMembershipItemBehaviorClick;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QD.prototype,"data",void 0);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],QD.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.S([_.Gy()],QD);
HbY.YtLiveChatMembershipItemBehavior=[QD.prototype,_.U.YtRendererBehavior];var Tn=function(){var V=_.E.apply(this,arguments)||this;V.supportsInlineActionButtons=!0;V.hasPrimaryHeaderText=!1;V.showOnlyHeader=!1;V.authorBadges=[];V.modern=_.c("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.v(Tn,_.E);_.P=Tn.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P.messageChanged=function(){var V=this.data.message,D=(0,_.Ht)(_.Pt(this.hostElement).querySelector("#message"));D.textContent="";V&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V))};
_.P.computeHasPrimaryHeaderText=function(V){return!(!V||!V.headerPrimaryText)};
_.P.computeShowOnlyHeader=function(V,D){return this.isMessageEmpty(V,D)};
_.P.computeAuthorBadges=function(V){return V.authorBadges||[]};
_.P.isMessageEmpty=function(V,D){return!V||V.empty?!0:!V.message&&!V.inputField&&!D};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.P.getInputElement=function(){return _.Pt(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.P.inputFocus=function(){var V=this.getInputElement();V&&V.focus()};
_.P.inputInsertEmoji=function(V){var D=this.getInputElement();D&&D.insertEmoji(V)};
_.P.inputMessage=function(){var V=this.getInputElement();return V&&this.data.inputField?(V.completeEmojis(),_.Eo(V.liveChatRichMessageInput)):null};
_.P.onFooterButtonClick=function(){this.data.footerButton&&_.PA(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.P.shouldSupportWholeItemClick=function(){return!0};
Tn.prototype.isDeletedChanged=Tn.prototype.isDeletedChanged;Tn.prototype.messageChanged=Tn.prototype.messageChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],Tn.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(HbY.YtLiveChatMembershipItemBehavior),_.p("design:type",Object)],Tn.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Tn.prototype,"data",void 0);_.S([_.q({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Tn.prototype,"hasPrimaryHeaderText",void 0);_.S([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],Tn.prototype,"showOnlyHeader",void 0);
_.S([_.q({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],Tn.prototype,"authorBadges",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Tn.prototype,"modern",void 0);_.S([_.KI("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tn.prototype,"messageChanged",null);_.S([_.KI("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tn.prototype,"isDeletedChanged",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Tn);
_.Y(Tn,"yt-live-chat-membership-item-renderer",function(){if(rKP===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;JKV===void 0&&(JKV=document.createElement("template"));var n=JKV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);rKP=V}V=rKP;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var w3L;var QAE;var b2=function(){return _.E.apply(this,arguments)||this};
_.v(b2,_.E);b2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],b2.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],b2);
_.Y(b2,"yt-live-chat-mode-change-message-renderer",function(){if(QAE===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;w3L===void 0&&(w3L=document.createElement("template"));var n=w3L;f.call(D,n.content.cloneNode(!0),V.content.firstChild);QAE=V}V=QAE;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var TLu;var bbH;var KE=function(){return _.E.apply(this,arguments)||this};
_.v(KE,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],KE.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KE.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],KE);
_.Y(KE,"yt-live-chat-moderation-message-renderer",function(){if(bbH===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;TLu===void 0&&(TLu=document.createElement("template"));var n=TLu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);bbH=V}V=bbH;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KrU;var yKl;var yD=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework");return V};
_.v(yD,_.E);yD.prototype.onClick=function(){var V;if((V=this.data)!=null&&V.onClickCommand){var D;_.bS.instance.resolveCommand((D=this.data)==null?void 0:D.onClickCommand)}};
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yD.prototype,"modern",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],yD.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],yD.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],yD.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],yD);
_.Y(yD,"yt-live-chat-offer-click-count-message-renderer",function(){if(yKl===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;KrU===void 0&&(KrU=document.createElement("template"));var n=KrU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);yKl=V}V=yKl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZbF;var jAY=function(){return _.E.apply(this,arguments)||this};
_.v(jAY,_.E);_.S([_.q(),_.p("design:type",Object)],jAY.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],jAY);
_.Y(jAY,"yt-live-chat-placeholder-item-renderer",function(){if(ZbF===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);ZbF=V}V=ZbF;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var lyp;var Gcl;var ewo=new Ss(7),Zg=function(){var V=_.E.apply(this,arguments)||this;V.data={};return V};
_.v(Zg,_.E);Zg.prototype.dataChanged=function(){var V;((V=this.data)==null?0:V.class)&&_.JA(this.hostElement,this.data.class,!0);var D;((D=this.oldData)==null?0:D.class)&&_.JA(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Zg.prototype.computeTimestampString=function(V){return ewo.format(new Date(V/1E3))};
Zg.prototype.dataChanged=Zg.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],Zg.prototype,"data",void 0);_.S([_.q({computed:"computeTimestampString(data.timestampUsec)"}),_.p("design:type",String)],Zg.prototype,"timestampString",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zg.prototype,"dataChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Zg);
_.Y(Zg,"yt-live-chat-server-error-message",function(){if(Gcl===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;lyp===void 0&&(lyp=document.createElement("template"));var n=lyp;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Gcl=V}V=Gcl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var cKl;var Frl;var jn=function(){var V=_.E.apply(this,arguments)||this;V.defaultToFilledIcon=!1;return V};
_.v(jn,_.E);jn.prototype.computeHasPrimaryColorIcon=function(V){return V==="SPARK"||V==="SPONSORSHIP_STAR"};
jn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],jn.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jn.prototype,"defaultToFilledIcon",void 0);_.S([_.q(),_.p("design:type",Object)],jn.prototype,"data",void 0);
_.S([_.q({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.p("design:type",Boolean)],jn.prototype,"hasPrimaryColorIcon",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],jn);
_.Y(jn,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Frl===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;cKl===void 0&&(cKl=document.createElement("template"));var n=cKl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Frl=V}V=Frl;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var gP6;var l2=function(){var V=_.E.apply(this,arguments)||this;V.modernUpdate=!1;V.buttonStyle="overlay";V.buttonType="filled";return V};
_.v(l2,_.E);l2.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
l2.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],l2.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],l2.prototype,"modernUpdate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],l2.prototype,"buttonStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],l2.prototype,"buttonType",void 0);
_.S([_.a({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],l2);
_.Y(l2,"ytd-ad-hover-text-button-renderer",function(){if(gP6!==void 0)return gP6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gP6=V},{mode:1});var vPV;var Gn=function(){var V=_.E.apply(this,arguments)||this;V.buttonOverrides={size:"XS"};V.modern=_.c("web_button_rework");return V};
_.v(Gn,_.E);Gn.prototype.onHelpTap=function(V){this.data&&this.data.informationDialog&&(_.PA(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),V.preventDefault(),V.stopPropagation())};
_.S([_.q(),_.p("design:type",Object)],Gn.prototype,"buttonOverrides",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Gn.prototype,"modern",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Gn.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Gn);
_.Y(Gn,"ytd-live-chat-purchased-product-message-renderer",function(){if(vPV!==void 0)return vPV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return vPV=V},{mode:1});var kcF;var sAF;var en=function(){var V=_.E.apply(this,arguments)||this;V.isContainerDeleted=!1;return V};
_.v(en,_.E);en.prototype.onContextMenuClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
en.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))};
en.prototype.isContainerDeletedChanged=en.prototype.isContainerDeletedChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],en.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],en.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],en.prototype,"isContainerDeleted",void 0);
_.S([_.q(),_.p("design:type",String)],en.prototype,"deletedStateMessage",void 0);_.S([_.KI("isContainerDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],en.prototype,"isContainerDeletedChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],en);
_.Y(en,"ytd-sponsorships-live-chat-header-renderer",function(){if(sAF!==void 0)return sAF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return sAF=V},{mode:1});var c$=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.v(c$,_.E);c$.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]]"}}}}}};
c$.prototype.onCtaButtonClick=function(){var V,D=_.g((V=this.data)==null?void 0:V.optInPrompt,_.RI);if(V=this.maybeGetButtonCommand(D)){var f;(f=_.lS())==null||f.clickCommand(V)}};
c$.prototype.maybeGetButtonCommand=function(V){return!V||!V.command||_.g(V.command,sIl)===void 0&&_.g(V.command,kNV)===void 0?null:V.command};
c$.prototype.shouldHideOptinPrompt=function(V,D){return!V||D};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],c$.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],c$.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],c$.prototype,"modern",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],c$);
_.Y(c$,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(kcF!==void 0)return kcF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return kcF=V},{mode:1});var BLH;var Fd=function(){return _.E.apply(this,arguments)||this};
_.v(Fd,_.E);Fd.prototype.onContextMenuClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
Fd.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))};
Fd.prototype.isDeletedChanged=Fd.prototype.isDeletedChanged;_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],Fd.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Fd.prototype,"data",void 0);_.S([_.KI("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fd.prototype,"isDeletedChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Fd);
_.Y(Fd,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(BLH!==void 0)return BLH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return BLH=V},{mode:1});var gh=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return V};
_.v(gh,_.E);_.P=gh.prototype;
_.P.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"}}}};
_.P.handleLiveChatAction=function(V){_.g(V,EqF)?this.handleMarkChatItemAsDeletedAction(_.g(V,EqF)):_.g(V,XTp)&&this.handleRemoveChatItemAction(_.g(V,XTp))};
_.P.handleLiveChatActions=function(V){V.forEach(this.handleLiveChatAction,this)};
_.P.handleMarkChatItemAsDeletedAction=function(V){var D=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(n,t){var J=Object.keys(n)[0];Object.values(n)[0].id===V.targetItemId&&D.markAsDeleted("data.items",t,J,V.deletedStateMessage,V.showOriginalContentMessage)})};
_.P.handleRemoveChatItemAction=function(V){var D=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(n,t){Object.values(n)[0].id===V.targetItemId&&D.splice("data.items",t,1)})};
_.P.markAsDeleted=function(V,D,f,n,t){V=[V,D,f].join(".");this.set(V+".deletedStateMessage",n);this.set(V+".showOriginalContentMessage",t)};
_.S([_.q(),_.p("design:type",Object)],gh.prototype,"data",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],gh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],gh);
_.Y(gh,"yt-live-chat-item-display-list-renderer",function(){if(typ===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;nPE===void 0&&(nPE=document.createElement("template"));var n=nPE;f.call(D,n.content.cloneNode(!0),V.content.firstChild);typ=V}V=typ;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var dvL;var u$P,NLo=function(){if(u$P!==void 0)return u$P;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;dvL===void 0&&(dvL=document.createElement("template"));var n=dvL;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return u$P=V};var v$=function(){var V=_.E.apply(this,arguments)||this;V.isHeader=!1;return V};
_.v(v$,_.E);v$.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.IG.Object.defineProperties(v$,{template:{configurable:!0,enumerable:!0,get:function(){return NLo()}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],v$.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],v$.prototype,"isHeader",void 0);_.S([_.zy({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],v$);_.Y(v$,"yt-live-chat-item-display-renderer",function(){return NLo()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var mvV,zwl,EPl,X3Y;
mvV={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}};zwl={home:"eohps",search:"eosps",watch:"eowps"};_.RwL=["watch","search","home"];
_.k$=function(){this.JSC$12314_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12314_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.XB("PRECONSTRUCTION_DELAY",0);this.signals_=_.C_();this.targetPage_=""};
_.k$.prototype.init=function(V,D){V=V===void 0?"":V;D=D===void 0?null:D;if(this.JSC$12314_isInitialized_)this.abort();else if(this.JSC$12314_isInitialized_=!0,V&&_.CtV(this,V),D){var f=_.qP(this.signals_,"pcl")?0:10,n=function(){for(var t=0,J;J=_.RwL[t++];)J!=V&&J!=D&&this.pendingPages_.push(J);_.qhY(this)}.bind(this);
this.signals_.parkOrScheduleJob(n,f,"pcl")}};
_.k$.prototype.abort=function(){this.fragmentJobId_&&(_.dm.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);X3Y(this)};
_.CtV=function(V,D){V.JSC$12314_isInitialized_&&!V.targetPage_&&(V.targetPage_=D,EPl(V,D),V.isInitialPass_=!1,EPl(V,D),V.signals_.processSignal(zwl[V.targetPage_]),X3Y(V),_.qhY(V))};
_.qhY=function(V){V.pendingPages_.length&&!V.pagePreparerJobId_&&(V.pagePreparerJobId_=_.gq(_.dm,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.CtV(this,this.pendingPages_.shift())}.bind(V),V.DEFAULT_DELAY_))};
EPl=function(V,D){if(D=mvV[D])for(var f in D){var n=!1,t=f;f.charAt(0)=="~"&&(n=!0,t=f.substring(1));var J=D[f];J=typeof J=="object"?J:{count:J};D[f]=J;J.componentName=t;J.count>0&&(V.isInitialPass_?n||V.isSeenDuringInitialPass_[t]||(V.JSC$12314_queue_.push({componentName:t,count:1,signals:J.signals}),V.isSeenDuringInitialPass_[t]=!0,J.count--):V.JSC$12314_queue_.push(J))}};
X3Y=function(V){V.JSC$12314_queue_.length=0;V.targetPage_="";V.isInitialPass_=!0;V.signals_.processSignal("eop")};
_.k$.getInstance=function(){return _.nY(_.k$)};var AKP=function(){this.signals=_.C_();this.init()};
AKP.prototype.startPreconstruction=function(){_.k$.getInstance().init(_.EG("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
AKP.prototype.init=function(){ayH(this);window.Polymer&&IYr&&PzX();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var V=_.fx.ytcsi;if(V&&V.gt&&(V=V.gt())&&V.tick&&(V.tick.aft>0||V.tick.pbs>0)&&(_.EG("IS_HOMEPAGE_COLD")||_.EG("IS_RESULTS_PAGE_COLD")||_.EG("IS_WATCH_PAGE_COLD"))){YhL(this);break a}jWX(fBR,this.onNotifications,this)}};
var ayH=function(V){var D=function(){V.signals.processSignal("dl")};
document.readyState==="complete"?(_.$w(Error("yh"),"WARNING"),D()):_.LRF(window,"load",D)};
AKP.prototype.onNotifications=function(V){V.timer||(_.EG("IS_HOMEPAGE_COLD")||_.EG("IS_RESULTS_PAGE_COLD")||_.EG("IS_WATCH_PAGE_COLD"))&&YhL(this)};
var YhL=function(V){V.signals.parkOrScheduleJob(function(){V.signals.processSignal("eocs")},10,"eor")};
new AKP;var s_,$vF=function(){return _.lU.apply(this,arguments)||this};
_.v($vF,_.lU);_.P=$vF.prototype;_.P.enableActiveViewMeasurement=function(V){if(this.isActiveViewEnabled(V)){var D=this.getUrlPrefixesFromCommand(V.viewableCommands);V=this.getUrlPrefixesFromCommand(V.endOfSessionCommands);if(!s_){var f=_.tU("custom_active_view_tos_timeout_ms");s_=f>0&&f!==36E5?new TzZ(this.getVersion(),f):new TzZ(this.getVersion())}Kbd(s_,this.hostElement);yW9(s_,this.hostElement,D,V)}};
_.P.stopActiveViewMeasurement=function(){s_&&Kbd(s_,this.hostElement)};
_.P.isActiveViewEnabled=function(V){return!!V&&(this.hasAtLeastOneUrl(V.viewableCommands)||this.hasAtLeastOneUrl(V.endOfSessionCommands))};
_.P.hasAtLeastOneUrl=function(V){return!!V&&V.length>0&&V[0].loggingUrls!=null&&V[0].loggingUrls.length>0};
_.P.getVersion=function(){var V=_.XB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(V==null?void 0:V.length)===2?V[1]:null};
_.P.getUrlPrefixesFromCommand=function(V){if(!V)return[];var D=[];V=_.r(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,f.loggingUrls){f=_.r(f.loggingUrls);for(var n=f.next();!n.done;n=f.next())n=n.value,n.baseUrl&&D.push(n.baseUrl)}return D};
_.S([_.Gy()],$vF);var B$=[$vF.prototype];var ibE=function(){return _.lU.apply(this,arguments)||this};
_.v(ibE,_.lU);_.IG.Object.defineProperties(ibE.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_entity_store_from_dependency_injection")?_.pI():_.Ol()}}});
_.S([_.Gy()],ibE);_.dh=[dC.prototype,ibE.prototype];var ShE=["ytd-rich-shelf-renderer"],u2=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";V.followUpDialogPromise=null;V.followUpDialogPromiseResolve=null;V.followUpDialogPromiseReject=null;return V};
_.v(u2,_.lU);_.P=u2.prototype;_.P.dismissibleItemIsDismissedChanged_=function(V){_.c("kevlar_fluid_dismiss")&&(V?_.PA(this.hostElement,"yt-dismissible-item-dismissed"):_.PA(this.hostElement,"yt-dismissible-item-undismissed"))};
_.P.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.P.dismissibleItemReset_=function(){var V=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 _.Qf(function(D,f){V.followUpDialogPromiseResolve=D;V.followUpDialogPromiseReject=f});
_.PA(this.hostElement,"yt-enable-lockup-interaction")};
_.P.dismissibleItemOnYtServiceRequestSent_=function(V,D){D.actions&&this.dismissibleItemProcessActions(D.actions,V)};
_.P.dismissibleItemOnRequestSent=function(V){if(_.c("web_button_rework"))for(var D=_.r(V.detail),f=D.next();!f.done;f=D.next()){var n=void 0;(f=(n=_.g(f.value,_.K6))==null?void 0:n.actions)&&this.dismissibleItemProcessActions(f,V)}};
_.P.dismissibleItemOnCommandSent=function(V,D){D&&this.dismissibleItemProcessActions(D,V)};
_.P.setAndGetDismissedContentId=function(V){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+V};
_.P.replayDismissAction=function(V){this.dismissibleItemProcessActions([V])};
_.P.dismissibleItemProcessActions=function(V,D){for(var f=0;f<V.length;f++){var n=V[f],t=void 0;((t=_.g(n,_.Tm))==null?0:t.commands)&&this.dismissibleItemProcessActions(_.g(n,_.Tm).commands,D);if(_.g(n,_.l7)){if(t=_.g(n,_.l7),!t.replaceParentSection||ShE.includes(this.hostElement.nodeName.toLowerCase()))_.c("web_see_fewer_shorts_reactive_dismissal")&&t.groupDismissal&&$vZ(this,t.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(t),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.y1("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:n})),n=void 0,(n=D)==null||n.stopPropagation()}else if(_.g(n,AxE))this.dismissibleItemHandleHideEnclosingAction_(),n=void 0,(n=D)==null||n.stopPropagation();else if(_.g(n,JDE))_.c("web_see_fewer_shorts_reactive_dismissal")&&(n=_.g(n,JDE),t=void 0,((t=n)==null?0:t.targetGroupId)&&$vZ(this,{targetGroupId:n.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.y1("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),n=void 0,(n=D)==null||n.stopPropagation();else if(_.g(n,_.K6))(n=_.g(n,_.K6).actions)&&_.wN(this.hostElement,n,this.hostElement),n=void 0,(n=D)==null||n.stopPropagation();else{var J=t=void 0;((t=_.g(n,_.Eq))==null?void 0:t.signal)!=="TELL_US_WHY"||((J=_.g(n,_.Eq))==null?0:J.targetId)&&_.c("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),n=void 0,(n=D)==null||n.stopPropagation())}}};
_.P.dismissibleItemOnYtServiceRequestCompleted_=function(V,D){var f=this.get("feedbackResponses.0.followUpDialog",D.data);f?this.followUpDialogPromiseResolve(f):D.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(D.actions,V)};
_.P.dismissibleItemHandleReplaceEnclosingAction_=function(V){this.dismissedRenderer=V.item;this.isDismissed=!0;var D=null;(D=_.Pt(this.hostElement).querySelector("#dismissed"))&&_.pO(this,function(){_.Lh(D)});
_.PA(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.P.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.P.dismissibleItemHandleUndoFeedbackAction_=function(){_.PA(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.P.dismissibleItemHandleTellUsWhySignalAction_=function(){var V=this;this.followUpDialogPromise.then(function(D){V.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:D}})})};
u2.prototype.dismissibleItemOnYtServiceRequestCompleted_=u2.prototype.dismissibleItemOnYtServiceRequestCompleted_;u2.prototype.dismissibleItemOnCommandSent=u2.prototype.dismissibleItemOnCommandSent;u2.prototype.dismissibleItemOnRequestSent=u2.prototype.dismissibleItemOnRequestSent;u2.prototype.dismissibleItemOnYtServiceRequestSent_=u2.prototype.dismissibleItemOnYtServiceRequestSent_;u2.prototype.dismissibleItemDataChanged_=u2.prototype.dismissibleItemDataChanged_;
u2.prototype.dismissibleItemIsDismissedChanged_=u2.prototype.dismissibleItemIsDismissedChanged_;_.S([_.u(_.WO),_.p("design:type",Object)],u2.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"isDismissed",void 0);_.S([_.q(),_.p("design:type",Object)],u2.prototype,"dismissedRenderer",void 0);
_.S([_.KI("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],u2.prototype,"dismissibleItemIsDismissedChanged_",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"dismissibleItemDataChanged_",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.S([_.bU("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnRequestSent",null);
_.S([_.bU("yt-dismissible-item-action"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Array]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnCommandSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.S([_.Gy()],u2);_.N0=[_.WO,_.dh,u2.prototype];var mm=function(){var V=_.lU.apply(this,arguments)||this;V.disableGridStateAware=!1;V.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};V.currentGridClass="";return V};
_.v(mm,_.lU);mm.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.pO(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var V=this.gridStateAwareGetElement();_.JA(V,"grid",!0)}};
mm.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
mm.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Pt(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
mm.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var V="grid-disabled";else{V=_.z7E.getInstance();var D=this.get("pageSubtype");V=D&&uRP.includes(D)?"grid-disabled":V.currentSnapState_?V.currentSnapState_.className:null}(D=this.gridStateAwareGetElement())&&V!==this.currentGridClass&&(V&&_.JA(D,V,!0),this.currentGridClass&&_.JA(D,this.currentGridClass,!1),this.currentGridClass=V)};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mm.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",String)],mm.prototype,"gridStateAwareSizingElementSelector",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],mm.prototype,"disableGridStateAware",void 0);_.S([_.Gy()],mm);_.zn=[mm.prototype,_.D6.YtActionHandlerBehavior];_.Rx=new _.IH("GUIDE_TOKEN");var q0;_.CE={};q0=function(){var V=_.lU.apply(this,arguments)||this;V.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 V};
_.v(q0,_.lU);_.P=q0.prototype;_.P.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var V=_.DY().resolve(_.Vx(_.Rx));V&&(this.guidePersistentAndVisible=V.getGuidePersistentAndVisible(),this.activeEndpoint=V.getActiveEndpoint(),this.guideOpened=V.getGuideOpened(),this.miniGuideVisible=V.getMiniGuideVisible())};
_.P.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.P.handleGuideStateAction=function(V){this.guidePersistentAndVisible=V};
_.P.handleMiniGuideStateAction=function(V){this.miniGuideVisible=V};
_.P.handleGuideOpenedAction=function(V){this.guideOpened=V};
_.P.handleActiveEndpointAction=function(V){this.activeEndpoint=V};
q0.prototype.onActiveEndpointChange=q0.prototype.onActiveEndpointChange;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],q0.prototype,"guidePersistentAndVisible",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],q0.prototype,"miniGuideVisible",void 0);_.S([_.q(),_.p("design:type",Object)],q0.prototype,"activeEndpoint",void 0);
_.S([_.KI("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q0.prototype,"onActiveEndpointChange",null);_.S([_.q(),_.p("design:type",Boolean)],q0.prototype,"guideOpened",void 0);_.S([_.Gy()],q0);_.CE.YtdGuideStateAwareBehavior=[];_.CE.YtdGuideStateAwareBehavior.push(q0.prototype,_.D6.YtActionHandlerBehavior);var WrF=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Xd=function(){var V=_.lU.apply(this,arguments)||this;V.hoverJobId=0;V.JSC$12345_touched=!1;return V};
_.v(Xd,_.lU);_.P=Xd.prototype;_.P.created=function(){this.useExpandableTooltip=!WrF.includes(this.is)};
_.P.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.P.detached=function(){this.useExpandableTooltip=!1};
_.P.lockupOnDown=function(V){this.interactionElement&&!_.It(_.Os(V),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.P.lockupOnUp=function(V){this.interactionElement&&!_.It(_.Os(V),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.P.onTouchStart=function(){this.JSC$12345_touched=!0};
_.P.lockupOnMouseEnter=function(){var V=this,D=_.tU("kevlar_lockup_hover_delay",-1);this.JSC$12345_touched&&D>=0?(_.dm.cancelJob(this.hoverJobId),this.hoverJobId=_.dm.addJob(function(){V.lockupIsHovered=!0},8,D),this.JSC$12345_touched=!1):this.lockupIsHovered=!0};
_.P.lockupOnMouseLeave=function(){this.hoverJobId&&(_.dm.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.P.lockupOnPopupClosed=function(V,D){var f;((f=D.popupRenderer)==null?void 0:f.is)==="ytd-menu-popup-renderer"&&(V=D.popupRenderer.veData,D=_.Ni(),V&&D&&_.WA(D,[V]))};
_.P.lockupOnLockupRequested=function(V){var D=V.detail.videoIds[0],f;V.detail&&D===((f=this.data)==null?void 0:f.videoId)&&(V.detail.returnValue=[this.data])};
_.P.lockupOnYtServiceRequestSent=function(V,D){if(V=D.actions)for(var f=0;f<V.length;f++){var n=V[f];if(n.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&D.ajaxPromise){var t=void 0,J=(t=_.g(D.endpoint,_.NT))==null?void 0:t.playlistId;t=void 0;n=(t=n.removedVideoId)!=null?t:"";Dh6(_.Eg(),n,J)}else n.action==="ACTION_REMOVE_VIDEO"&&D.ajaxPromise&&(J=void 0,n=(J=n.setVideoId)!=null?J:"",_.fwV(_.Eg(),n))}};
_.P.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.P.lockupOnLockupEnabled=function(){if(!this.$){var V=_.DY().resolve(_.xl).getCurrentPage(),D=this.getParentRenderer?this.getParentRenderer():void 0;_.zP(new _.cI("component not ready",this.is,this.isAttached,V==null?void 0:V.is,D==null?void 0:D.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Xd.prototype.lockupOnLockupEnabled=Xd.prototype.lockupOnLockupEnabled;Xd.prototype.lockupOnLockupDisabled=Xd.prototype.lockupOnLockupDisabled;Xd.prototype.lockupOnYtServiceRequestSent=Xd.prototype.lockupOnYtServiceRequestSent;Xd.prototype.lockupOnLockupRequested=Xd.prototype.lockupOnLockupRequested;Xd.prototype.lockupOnPopupClosed=Xd.prototype.lockupOnPopupClosed;Xd.prototype.lockupOnMouseLeave=Xd.prototype.lockupOnMouseLeave;Xd.prototype.lockupOnMouseEnter=Xd.prototype.lockupOnMouseEnter;
Xd.prototype.onTouchStart=Xd.prototype.onTouchStart;Xd.prototype.lockupOnUp=Xd.prototype.lockupOnUp;Xd.prototype.lockupOnDown=Xd.prototype.lockupOnDown;_.S([_.q(),_.p("design:type",Object)],Xd.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Xd.prototype,"lockupIsHovered",void 0);_.S([_.q(),_.p("design:type",Boolean)],Xd.prototype,"lockupTouchTriggered",void 0);_.S([_.q(),_.p("design:type",Boolean)],Xd.prototype,"useExpandableTooltip",void 0);
_.S([_.Zv("#interaction"),_.p("design:type",Object)],Xd.prototype,"interactionElement",void 0);_.S([_.bU("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Xd.prototype,"lockupOnDown",null);_.S([_.bU("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Xd.prototype,"lockupOnUp",null);
_.S([_.bU("touchstart"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xd.prototype,"onTouchStart",null);_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xd.prototype,"lockupOnMouseEnter",null);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xd.prototype,"lockupOnMouseLeave",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Xd.prototype,"lockupOnPopupClosed",null);_.S([_.bU("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Xd.prototype,"lockupOnLockupRequested",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],Xd.prototype,"lockupOnYtServiceRequestSent",null);_.S([_.bU("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xd.prototype,"lockupOnLockupDisabled",null);
_.S([_.bU("yt-enable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xd.prototype,"lockupOnLockupEnabled",null);_.S([_.Gy()],Xd);_.E_=[Xd.prototype];_.p3l={YtdReduxBehavior:[]};_.p3l.YtdReduxBehavior.push.apply(_.p3l.YtdReduxBehavior,_.dh);var Af=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.disableNowPlaying=!1;V.disableTooltips=!1;V.useHoveredProperty=!1;V.hovered=!1;V.isThumbnailHovered_=!1;V.addBackground=_.c("kevlar_thumbnail_bg");V.nowPlaying=!1;V.disableRounding=!1;V.size="small";return V};
_.v(Af,_.lU);_.P=Af.prototype;_.P.computeThumbnailOverlaySidePanelWidth_=function(V,D){return V-D};
_.P.computeSize=function(V,D){if(!this.disableRounding){if(!V&&!D)return"small";V=Math.max(V||0,D||0);return V>=256?"large":V>=96?"medium":"small"}};
_.P.computeFinalHoveredState_=function(V,D,f){return this.nowPlaying?!1:_.c("kevlar_thumbnail_fluid")&&V?D:f};
_.P.computeHoverOverlays_=function(V,D){return V&&D?D:void 0};
_.P.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.P.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.P.checkMiniplayer_=function(){var V;if(((V=this.data)==null?0:V.playlistSetVideoId)&&_.c("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{V=_.b$();var D=V.currentEndpoint;!this.disableNowPlaying&&D&&_.g(D,_.pl)&&this.data?(D=_.g(D,_.pl),this.nowPlaying=this.data.playlistId?D.playlistId===this.data.playlistId:D.videoId===this.data.videoId,this.isVideoPlaying=V==null?void 0:V.isVideoPlaying):this.nowPlaying=!1}};
Af.prototype.checkMiniplayer_=Af.prototype.checkMiniplayer_;Af.prototype.onMouseLeave_=Af.prototype.onMouseLeave_;Af.prototype.onMouseEnter_=Af.prototype.onMouseEnter_;Af.prototype.computeHoverOverlays_=Af.prototype.computeHoverOverlays_;Af.prototype.computeFinalHoveredState_=Af.prototype.computeFinalHoveredState_;Af.prototype.computeSize=Af.prototype.computeSize;Af.prototype.computeThumbnailOverlaySidePanelWidth_=Af.prototype.computeThumbnailOverlaySidePanelWidth_;
_.S([_.u(_.dh),_.p("design:type",Object)],Af.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],Af.prototype,"height",void 0);_.S([_.q(),_.p("design:type",Boolean)],Af.prototype,"bottomSidePanel",void 0);_.S([_.q(),_.p("design:type",Number)],Af.prototype,"width",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"disableNowPlaying",void 0);
_.S([_.q({selector:_.mq}),_.p("design:type",Boolean)],Af.prototype,"miniplayerIsActive",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"disableTooltips",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"useHoveredProperty",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"hovered",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"isThumbnailHovered_",void 0);
_.S([_.q({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.p("design:type",Boolean)],Af.prototype,"finalHoveredState_",void 0);_.S([_.q({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.p("design:type",Number)],Af.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Af.prototype,"addBackground",void 0);
_.S([_.q({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.p("design:type",Object)],Af.prototype,"hoverOverlays_",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Af.prototype,"nowPlaying",void 0);_.S([_.q(),_.p("design:type",Boolean)],Af.prototype,"isVideoPlaying",void 0);_.S([_.q(),_.p("design:type",Object)],Af.prototype,"disableRounding",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.p("design:type",Object)],Af.prototype,"size",void 0);_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Af.prototype,"onMouseEnter_",null);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Af.prototype,"onMouseLeave_",null);
_.S([_.KI("data","disableNowPlaying","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Af.prototype,"checkMiniplayer_",null);_.S([_.Gy()],Af);var LrF=[Af.prototype];_.ax={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(V,D){return V+":"+_.fo(D)},
getPlayerListener_:function(V,D,f){V=this.getPlayerListenerKey_(V,D);D=this.playerListeners_.get(V);f&&this.playerListeners_.delete(V);return D},
savePlayerListener_:function(V,D){var f=D.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(V,D),f);return f},
listenToPlayerEvent:function(V,D,f){f=this.savePlayerListener_(D,f);V.addEventListener(D,f)},
listenToPlayerEvents:function(V,D){D.forEach(function(f,n){this.listenToPlayerEvent(V,n,f)}.bind(this))},
unlistenFromPlayerEvent:function(V,D,f){f=this.getPlayerListener_(D,f,!0);V.removeEventListener(D,f)},
unlistenFromPlayerEvents:function(V,D){D.forEach(function(f,n){this.unlistenFromPlayerEvent(V,n,f)}.bind(this))}}};
_.Y$=function(){};_.Iyu=new _.IH("PLAYER_API_TOKEN");var ObZ=!1,UvF,My3=!1,Du9;var Dt=function(V,D,f,n,t){_.cq.call(this);var J=this;this.playerId=D;this.webPlayerContextConfig=n;this.cFq=t;this.h7L=!1;this.api={};this.bci=this.rWi=null;this.cn1=new _.KH;this.sj={};this.w21=this.p56=this.elementId=this.oCL=this.config=null;this.auJ=!1;this.uC=this.sr1=null;this.s5J={};this.wuA=["onReady"];this.lastError=null;this.cZJ=NaN;this.w93={};this.jej=0;this.bT=this.targetElement=V;_.wX(this,this.cn1);ObF(this);f?this.jej=setTimeout(function(){J.loadNewVideoConfig(f)},0):n&&(xvE(this),
My6(this))};
_.v(Dt,_.cq);Dt.prototype.getId=function(){return this.playerId};
Dt.prototype.loadNewVideoConfig=function(V){if(!this.isDisposed()){this.jej&&(clearTimeout(this.jej),this.jej=0);var D=V||{};D instanceof wXl||(D=new wXl(D));this.config=D;this.setConfig(V);My6(this);this.isReady()&&hwu(this)}};
var xvE=function(V){var D;V.webPlayerContextConfig?D=V.webPlayerContextConfig.rootElementId:D=V.config.attrs.id;V.elementId=D||V.elementId;V.elementId==="video-player"&&(V.elementId=V.playerId,V.webPlayerContextConfig?V.webPlayerContextConfig.rootElementId=V.playerId:V.config.attrs.id=V.playerId);var f;((f=V.bT)==null?void 0:f.id)===V.elementId&&(V.elementId+="-player",V.webPlayerContextConfig?V.webPlayerContextConfig.rootElementId=V.elementId:V.config.attrs.id=V.elementId)};
Dt.prototype.setConfig=function(V){this.oCL=V;this.config=Uvp(V);xvE(this);if(!this.p56){var D;this.p56=V3V(this,((D=this.config.args)==null?void 0:D.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var f;if((f=this.config)==null?0:f.attrs)V=this.config.attrs,(D=V.width)&&this.bT&&(this.bT.style.width=z$(Number(D)||D,!0)),(V=V.height)&&this.bT&&(this.bT.style.height=z$(Number(V)||V,!0))};
var hwu=function(V){if(V.config&&V.config.loaded!==!0)if(V.config.loaded=!0,!V.config.args||V.config.args.autoplay!=="0"&&V.config.args.autoplay!==0&&V.config.args.autoplay!==!1){var D;V.api.loadVideoByPlayerVars((D=V.config.args)!=null?D:null)}else V.api.cueVideoByPlayerVars(V.config.args)},f_6=function(V){var D=!0,f=V.getPlayerElement();
f&&V.config&&(D=f.dataset.version===DuF(V));return D&&!!_.Yw("yt.player.Application.create")},My6=function(V){if(!V.isDisposed()&&!V.auJ){var D=f_6(V);
if(D&&(V.getPlayerElement()?"html5":null)==="html5")V.w21="html5",V.isReady()||nSP(V);else if(t3l(V),V.w21="html5",D&&V.uC&&V.targetElement)V.targetElement.appendChild(V.uC),nSP(V);else{V.config&&(V.config.loaded=!0);var f=!1;V.sr1=function(){f=!0;var n=PhV(V,"player_bootstrap_method")?_.Yw("yt.player.Application.createAlternate")||_.Yw("yt.player.Application.create"):_.Yw("yt.player.Application.create");var t=V.config?Uvp(V.config):void 0;n&&n(V.targetElement,t,V.webPlayerContextConfig,V.cFq);nSP(V)};
V.auJ=!0;D?V.sr1():(_.EX(DuF(V),V.sr1),(D=oSF(V))&&F69(D||""),JSP(V)&&!f&&_.M4("yt.player.Application.create",null))}}};
Dt.prototype.getPlayerElement=function(){var V=_.V1(document,this.elementId);!V&&this.bT&&this.bT.querySelector&&(V=this.bT.querySelector("#"+this.elementId));return V};
var nSP=function(V){if(!V.isDisposed()){var D=V.getPlayerElement(),f=!1;D&&D.getApiInterface&&D.getApiInterface()&&(f=!0);if(f){V.auJ=!1;if(!PhV(V,"html5_remove_not_servable_check_killswitch")){var n;if((D==null?0:D.isNotServable)&&V.config&&(D==null?0:D.isNotServable((n=V.config.args)==null?void 0:n.video_id)))return}rSF(V)}else V.cZJ=setTimeout(function(){nSP(V)},50)}},rSF=function(V){ObF(V);
V.h7L=!0;var D=V.getPlayerElement();if(D){V.rWi=H2P(V,D,"addEventListener");V.bci=H2P(V,D,"removeEventListener");var f=D.getApiInterface();f=f.concat(D.getInternalApiInterface());for(var n=V.api,t=0;t<f.length;t++){var J=f[t];n[J]||(n[J]=H2P(V,D,J))}}for(var H in V.sj)V.sj.hasOwnProperty(H)&&V.rWi&&V.rWi(H,V.sj[H]);hwu(V);V.p56&&V.p56(V.api);V.cn1.publish("onReady",V.api)},H2P=function(V,D,f){var n=D[f];
return function(){var t=_.gQ.apply(0,arguments);try{return V.lastError=null,n.apply(D,t)}catch(J){if(f!=="sendAbandonmentPing")throw J.params=f,V.lastError=J,t=new _.cI("PlayerProxy error in method call",{error:J,method:f,playerId:V.playerId}),t.level="WARNING",t;}}},ObF=function(V){V.h7L=!1;
if(V.bci)for(var D in V.sj)V.sj.hasOwnProperty(D)&&V.bci(D,V.sj[D]);for(var f in V.w93)V.w93.hasOwnProperty(f)&&clearTimeout(Number(f));V.w93={};V.rWi=null;V.bci=null;D=V.api;for(var n in D)D.hasOwnProperty(n)&&(D[n]=null);D.addEventListener=function(t,J){V.addEventListener(t,J)};
D.removeEventListener=function(t,J){V.removeEventListener(t,J)};
D.destroy=function(){V.dispose()};
D.getLastError=function(){return V.getLastError()};
D.getPlayerType=function(){return V.getPlayerType()};
D.getCurrentVideoConfig=function(){return V.oCL};
D.loadNewVideoConfig=function(t){V.loadNewVideoConfig(t)};
D.isReady=function(){return V.isReady()}};
Dt.prototype.isReady=function(){return this.h7L};
Dt.prototype.addEventListener=function(V,D){var f=this;this.isDisposed();var n=V3V(this,D);n&&(_.i3(this.wuA,V)||this.sj[V]||(D=wMY(this,V),this.rWi&&this.rWi(V,D)),this.cn1.subscribe(V,n),V==="onReady"&&this.isReady()&&setTimeout(function(){n(f.api)},0))};
Dt.prototype.removeEventListener=function(V,D){this.isDisposed()||(D=V3V(this,D))&&this.cn1.unsubscribe(V,D)};
var V3V=function(V,D){var f=D;if(typeof D==="string"){if(V.s5J[D])return V.s5J[D];f=function(){var n=_.gQ.apply(0,arguments),t=_.Yw(D);if(t)try{t.apply(_.fx,n)}catch(J){throw n=new _.cI("PlayerProxy error when executing callback",{error:J}),n.level="ERROR",n;}};
V.s5J[D]=f}return f?f:null},wMY=function(V,D){var f=function(n){var t=function(){V.isDisposed();
if(!V.isDisposed())try{V.cn1.publish(D,n!=null?n:void 0)}catch(Q){var H=new _.cI("PlayerProxy error when creating global callback",{error:Q.message,event:D,playerId:V.playerId,data:n,originalStack:Q.stack,componentStack:Q.componentStack});H.level="WARNING";throw H;}};
if(PhV(V,"web_player_publish_events_immediately"))t();else{var J=setTimeout(function(){t();_.sB.remove(V.w93,String(J))},0);
_.sB.add(V.w93,String(J),!0)}};
return V.sj[D]=f};
Dt.prototype.getPlayerType=function(){return this.w21||(this.getPlayerElement()?"html5":null)};
Dt.prototype.getLastError=function(){return this.lastError};
var t3l=function(V){V.cancel();ObF(V);V.w21=null;V.config&&(V.config.loaded=!1);var D=V.getPlayerElement();D&&(f_6(V)||!JSP(V)?V.uC=D:(D&&D.destroy&&D.destroy(),V.uC=null));V.targetElement&&_.kN(V.targetElement)};
Dt.prototype.cancel=function(){this.sr1&&_.xmF(DuF(this),this.sr1);clearTimeout(this.cZJ);this.auJ=!1};
Dt.prototype.disposeInternal=function(){t3l(this);if(this.uC&&this.config&&this.uC.destroy)try{this.uC.destroy()}catch(D){var V=new _.cI("PlayerProxy error during disposal",{error:D});V.level="ERROR";throw V;}this.s5J=null;for(V in this.sj)this.sj.hasOwnProperty(V)&&delete this.sj[V];this.oCL=this.config=this.api=null;delete this.targetElement;delete this.bT;_.cq.prototype.disposeInternal.call(this)};
var JSP=function(V){var D,f;V=(D=V.config)==null?void 0:(f=D.args)==null?void 0:f.fflags;return!!V&&V.indexOf("player_destroy_old_version=true")!==-1},DuF=function(V){return V.webPlayerContextConfig?V.webPlayerContextConfig.jsUrl:(V=V.config.assets)?V.js:""},oSF=function(V){return V.webPlayerContextConfig?V.webPlayerContextConfig.cssUrl:(V=V.config.assets)?V.css:""},PhV=function(V,D){if(V.webPlayerContextConfig)var f=V.webPlayerContextConfig.serializedExperimentFlags;
else{var n;if((n=V.config)==null?0:n.args)f=V.config.args.fflags}return(f||"").split("&").includes(D+"=true")},Uvp=function(V){for(var D={},f=_.r(Object.keys(V)),n=f.next();!n.done;n=f.next()){n=n.value;
var t=V[n];D[n]=typeof t==="object"?_.sB.clone(t):t}return D};var oS9={},PhY="player_uid_"+(Math.random()*1E9>>>0);var $$=function(V,D,f,n,t,J){D=D===void 0?document.createElement("div"):D;this.webPlayerContextConfig=V;this.container=D;this.commandResolver=f;this.apiResolver=H2Z();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.wU;n||J?QsY(this):TFP(this);this.pendingPlayerResponse=n;this.pendingWatchNextResponse=t;this.pendingPlayerVars=J;b2r(this)};
$$.prototype.loadVideoWithPlayerResponse=function(V,D,f){this.loadVideo(V,D,f)};
$$.prototype.loadVideoWithPlayerVars=function(V){return this.loadVideo(void 0,void 0,V)};
$$.prototype.destroy=function(V){if(V=_.V1(document,V))V=PhY+"_"+_.fo(V),(V=oS9[V])&&V.dispose()};
var ySF=function(V,D){var f;_.w(function(n){if(n.nextAddress==1)return V.pendingWatchNextResponse=D,V.synchronousApi?(f=V.synchronousApi,n.jumpTo(2)):_.b(n,V.api,3);n.nextAddress!=2&&(f=n.yieldResult);Khp(V,f);V.pendingWatchNextResponse&&(f.updateVideoData({raw_watch_next_response:V.pendingWatchNextResponse}),V.pendingWatchNextResponse=void 0);_.yz(n)})},Khp=function(V,D){var f;
if(!(D==null?0:(f=D.isReady)==null?0:f.call(D))){var n;_.zP(new _.cI("playerApi is falsey",{synchronousApi:V.synchronousApi,apiResolved:V.apiResolver.resolved,playerApiUndefined:D===void 0,playerApiNull:D===null,playerApiReady:(D==null?void 0:(n=D.isReady)==null?void 0:n.call(D))===!0,playerApiMethods:D?Object.keys(D):[]}))}},Z2u=function(V,D){if(typeof V[D]==="function")return V[D]()},jsH=function(V){var D=window,f,n=(f=D.ytplayer)==null?void 0:f.bootstrapPlayerContainer;
if((f=n==null?void 0:n.firstElementChild)&&_.E7(f,"html5-video-player")){var t,J,H=(t=D.ytplayer)==null?void 0:(J=t.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;t=V.webPlayerContextConfig.contextId;if(H&&H===t){n!==V.container&&(n=!1,Z2u(f,"getPlayerState")===2&&(n=!0),V.container.appendChild(f),n||Z2u(f,"playVideo"));var Q;if((Q=D.ytplayer)==null?0:Q.bootstrapPlayerResponse)V.bootstrapPlayerResponse=D.ytplayer.bootstrapPlayerResponse}}},b2r=function(V){var D,f,n,t,J;
_.w(function(H){if(H.nextAddress==1)return V.pageReadyOrDataAvailable?H.jumpTo(2):_.b(H,V.pageReadyOrDataAvailableResolver.promise,2);if(H.nextAddress!=4)return!_.c("kevlar_player_unified_player_loading")||xvR()&&hwd()?H.jumpTo(4):_.b(H,nSZ(),4);jsH(V);if(V.pendingPlayerResponse||V.pendingPlayerVars)D=t3Y(V.pendingPlayerResponse,V.pendingWatchNextResponse,V.pendingPlayerVars),V.pendingPlayerResponse&&V.pendingPlayerResponse===V.bootstrapPlayerResponse&&(D.loaded=!0),V.bootstrapPlayerResponse=void 0;
f=rS9(V.container,D,V.webPlayerContextConfig);((n=D)==null?0:n.loaded)&&V.pendingWatchNextResponse?(ySF(V,V.pendingWatchNextResponse),V.pendingPlayerResponse=void 0,V.pendingPlayerVars=void 0):l_H(V);t=function(Q){f.removeEventListener("onReady",t);V.synchronousApi=Q;V.apiResolver.resolve(Q)};
f.addEventListener("onReady",t);V.commandResolver!==void 0&&(J=V.commandResolver,f.addEventListener("innertubeCommand",function(Q){J(Q)}));
_.yz(H)})};
$$.prototype.loadVideo=function(V,D,f){var n=this,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){if(F.nextAddress==1)return n.pendingPlayerResponse=V,n.pendingWatchNextResponse=D,n.pendingPlayerVars=f,QsY(n),n.synchronousApi?(t=n.synchronousApi,F.jumpTo(2)):_.b(F,n.api,3);F.nextAddress!=2&&(t=F.yieldResult);Khp(n,t);H=new Promise(function(k){J=k});
Q=function(){var k=t.getPlayerResponse();k&&(t.removeEventListener("onVideoDataChange",Q),J(k))};
t.addEventListener("onVideoDataChange",Q);if(n.pendingPlayerResponse||n.pendingPlayerVars)n.pendingPlayerResponse&&n.pendingPlayerResponse===n.bootstrapPlayerResponse?(J(n.pendingPlayerResponse),n.pendingWatchNextResponse&&ySF(n,n.pendingWatchNextResponse)):(T=t3Y(n.pendingPlayerResponse,n.pendingWatchNextResponse,n.pendingPlayerVars),(G=(y=n.pendingPlayerResponse)==null?void 0:(Z=y.playerConfig)==null?void 0:(l=Z.playbackStartConfig)==null?void 0:l.startPaused)?t.cueVideoByPlayerVars(T.args):t.loadVideoByPlayerVars(T.args)),
l_H(n),n.bootstrapPlayerResponse=void 0;return F.return(H)})};
var TFP=function(V){if(document.readyState==="complete"||document.readyState==="interactive")QsY(V);else{var D=function(){document.removeEventListener("DOMContentLoaded",D);QsY(V)};
document.addEventListener("DOMContentLoaded",D)}},QsY=function(V){V.pageReadyOrDataAvailable=!0;
V.pageReadyOrDataAvailableResolver.resolve()},l_H=function(V){V.pendingPlayerResponse=void 0;
V.pendingWatchNextResponse=void 0;V.pendingPlayerVars=void 0};
_.IG.Object.defineProperties($$.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var i2=function(V){sj.call(this,V===void 0?"document_active":V);var D=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(f){D.transition("document_disposed",{event:f})});
window.addEventListener("beforeunload",function(f){D.transition("document_disposed_preventable",{event:f})});
window.addEventListener("unload",function(f){D.transition("document_disposed",{event:f});D.hasRun=new Map})};
_.v(i2,sj);
i2.prototype.runPreventableDispose=function(V,D){if(!this.hasRun.get("document_disposed_preventable")){V(D==null?void 0:D.event);var f,n;if((D==null?0:(f=D.event)==null?0:f.defaultPrevented)||(D==null?0:(n=D.event)==null?0:n.returnValue)){D.event.returnValue||(D.event.returnValue=!0);D.event.defaultPrevented||D.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")};
i2.prototype.runDispose=function(V,D){this.hasRun.get("document_disposed")?this.transition("document_active"):(V(D==null?void 0:D.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
i2.prototype.runFlush=function(V,D){V(D==null?void 0:D.event);this.transition("document_active")};
i2.prototype.runActive=function(){};var Sn=function(V){sj.call(this,V===void 0?"document_visibility_unknown":V);var D=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(f){document.visibilityState==="visible"?D.transition("document_visible",{event:f}):D.transition("document_hidden",
{event:f})});
_.c("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(f){D.transition("document_backgrounded",{event:f})}),window.addEventListener("focus",function(f){D.transition("document_foregrounded",{event:f})}))};
_.v(Sn,sj);Sn.prototype.runVisible=function(V,D){V(D==null?void 0:D.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Sn.prototype.runHidden=function(V,D){V(D==null?void 0:D.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Sn.prototype.runBackgrounded=function(V,D){V(D==null?void 0:D.event)};
Sn.prototype.runForegrounded=function(V,D){V(D==null?void 0:D.event)};var W$=function(){this.teardownLifecycle=new i2;this.visibilityLifecycle=new Sn};
W$.prototype.install=function(){var V=_.gQ.apply(0,arguments),D=this;V.forEach(function(f){D.teardownLifecycle.install(f)});
V.forEach(function(f){D.visibilityLifecycle.install(f)})};var pE=function(){W$.call(this);var V={};this.install((V.document_disposed={callback:this.abortSlisAndFlush},V));_.c("combine_ve_grafts")&&(V={},this.install((V.document_disposed={callback:this.flushInteractionLoggingAttachVes},V)));V={};this.install((V.flush_logs={callback:this.logFinalPayload},V));_.c("web_log_cfg_cee_ks")||_.gq(_.dm,GdH)};
_.v(pE,W$);var wMX=function(){pE.loggingInstance||(pE.loggingInstance=new pE);return pE.loggingInstance};
pE.prototype.logFinalPayload=function(){if(_.c("web_fp_via_jspb")){var V=new FwE,D=_.Ni();D&&_.lB(V,1,D);D=_.c("jspb_sparse_encoded_pivot")?new F4([{}]):new F4;_.nc(D,380,gbE,V);YyU("finalPayload",D);_.c("web_fp_via_jspb_and_json")&&_.dq("finalPayload",{csn:_.Ni()})}else _.dq("finalPayload",{csn:_.Ni()})};
pE.prototype.abortSlisAndFlush=function(){IDF(aI);YB!=null&&YB.flush()};
pE.prototype.flushInteractionLoggingAttachVes=function(){bEF(_.lS())};
var GdH=function(){var V=_.XB("CLIENT_EXPERIMENT_EVENTS");if(V){var D=Acn();V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,D(f)&&_.dq("genericClientExperimentEvent",{eventType:f});delete _.CZ.CLIENT_EXPERIMENT_EVENTS}};var eaE={};
eaE.YtPlayerBehavior=[_.ax.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 V=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.wU;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;QsX(function(){V.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.uL(this,"pan-down"),_.c("kevlar_pinch_fullscreen")&&_.F_().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.c("kevlar_pinch_fullscreen")&&_.F_().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(V,D,f){var n=this;fX(this.useUnifiedPlayer_());if(this.mainAppPlayer_)fX(!1,"MainAppPlayer already created.");else{var t=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.Pt(this.hostElement).querySelector("#container");this.mainAppPlayer_=new $$(this.getWebPlayerContextConfig_(),t,function(J){return _.Km(J,n.hostElement)},V,D,f);
this.mainAppPlayer_.api.then(function(J){n.player_=J;n.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&bCL.resolve(J)})}},
loadVideoWithPlayerResponse:function(V,D){var f=this;if(this.useUnifiedPlayer_()){var n=this.watchNextData,t,J=(t=V.videoDetails)==null?void 0:t.videoId,H,Q,T;(t=(H=this.watchNextData)==null?void 0:(Q=H.currentVideoEndpoint)==null?void 0:(T=Q.watchEndpoint)==null?void 0:T.videoId)&&J!=t&&(n=void 0,_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(V,n,D):this.createMainAppPlayer_(V,n,D);this.mainAppPlayer_.api.then(function(){_.PA(f.hostElement,
"yt-player-updated")})}else this.update(p39(V,D))},
loadVideoWithPlayerVars:function(V){var D=this;this.useUnifiedPlayer_()?(_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(V):this.createMainAppPlayer_(void 0,void 0,V),this.mainAppPlayer_.api.then(function(){_.PA(D.hostElement,"yt-player-updated")})):this.update({args:V})},
update:function(V){var D=this;if(this.useUnifiedPlayer_())fX(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(V);var f=PT3(V.args);f&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==f&&Object.assign(V.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(V).then(function(n){_.PA(D.hostElement,"yt-player-updated",_.c("kevlar_player_updated_obsolete_player_killswitch")?
n:void 0)})}_.mw(new _.cI("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.getPlayerPromise(),2);f=n.yieldResult;if(!f)throw Error("Ah");V&&D.updatePlayerPlaylist_(V);_.yz(n)})},
acquireApi_:function(V){var D=this;if(this.useUnifiedPlayer_())fX(!1,"Invalid method call in kevlar_unified_player.");else return _.dm.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(fX(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(f){D.shouldAutoplay_(V)?f.loadVideoByPlayerVars(V.args):f.cueVideoByPlayerVars(V.args)})):this.initPlayerPromise_=this.initPlayerContainer_(V),this.initPlayerPromise_},
initPlayerContainer_:function(V){var D=this;if(this.useUnifiedPlayer_())fX(!1,"Invalid method call in kevlar_unified_player.");else return fX(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.zP(Error("Bh")),fX(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.Pt(this.hostElement).querySelector("#container"),nSZ().then(function(){var f=D.initPlayer_(V);D.playerResolver_.resolve(f);
return f})},
onPlayerReady_:function(V,D){this.useUnifiedPlayer_()?fX(!1,"Invalid method call in kevlar_unified_player."):(V.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&bCL.resolve(V),D(V))},
maybeCallApiMethodOnElement_:function(V,D){if(typeof V[D]==="function")return V[D]()},
maybeAdoptBootstrapPlayer_:function(){var V=window,D,f=(D=V.ytplayer)==null?void 0:D.bootstrapPlayerContainer;if((D=f==null?void 0:f.firstElementChild)&&D.classList.contains("html5-video-player")){var n,t,J=(n=V.ytplayer)==null?void 0:(t=n.bootstrapWebPlayerContextConfig)==null?void 0:t.contextId;n=this.getWebPlayerContextConfig_().contextId;if(J&&J===n){f!==this.playerContainer_&&(f=!1,this.maybeCallApiMethodOnElement_(D,"getPlayerState")===2&&(f=!0),this.playerContainer_.appendChild(D),f||this.maybeCallApiMethodOnElement_(D,
"playVideo"));var H;if((H=V.ytplayer)==null?0:H.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=V.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(V){var D=this;if(this.useUnifiedPlayer_())fX(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(f){D.maybeAdoptBootstrapPlayer_();var n=V?LrZ(V):void 0;n&&n==D.bootstrapPlayerResponse_&&(V.loaded=!0);n=D.playerContainer_;var t=D.getWebPlayerContextConfig_();n=rS9(n,V,t);D.player_=n;D.onPlayerReadyEvent_=D.onPlayerReady_.bind(D,D.player_,f);D.player_.addEventListener("onReady",D.onPlayerReadyEvent_);D.player_.addEventListener("innertubeCommand",
D.onPlayerInnerTubeCommand_.bind(D));_.c("enable_web_shorts_captions_language_command")&&D.player_.addEventListener("captionschanged",D.storePlayerCaptionLanguage_.bind(D))})},
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(V){V.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(V){V.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var V=_.DY().resolve(_.xl).getCurrentPage();V&&V.getScrollTop()<=0?_.uL(this,"pan-down"):_.uL(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(V){V.isFullscreen()||V.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(V){V.isFullscreen()&&V.toggleFullscreen()})},
updatePlayerPlaylist_:function(V){var D=this,f,n,t;return _.w(function(J){if(J.nextAddress==1)return f=_.DY().resolve(_.Vx(_.zI)),n=!!(f&&f.playlistComponent&&f.playlistComponent.loopOn),_.b(J,D.getPlayerPromise(),2);var H=t=J.yieldResult,Q=H.updatePlaylist,T=[];if(_.c("kevlar_player_playlist_use_local_index")){var y,Z;var l=(Z=(y=V.localCurrentIndex)!=null?y:V.currentIndex)!=null?Z:0}else{var G;l=(G=V.currentIndex)!=null?G:0}if(V.contents)for(y=0;y<V.contents.length;y++)if((Z=V.contents[y])&&Z.playlistPanelVideoRenderer)if(xPF(Z)){Z=
Z.playlistPanelVideoRenderer;G="";Z.shortBylineText&&(G=_.LA(Z.shortBylineText));var F="";Z.title?F=_.LA(Z.title):Z.unplayableText&&(F=_.LA(Z.unplayableText));T.push({author:G,title:F,encrypted_id:Z.videoId})}else y<l&&--l;Q.call(H,{index:l,list:V.playlistId?V.playlistId:"",loop:n,playlist_title:V.title,playlist_length:T.length,video:T,fetch:0,external_list:"1",title:V.title?V.title:"",playlist_author:V.ownerName?_.LA(V.ownerName):void 0});_.yz(J)})},
focusOnPlayer:function(){_.pO(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var V=this.playerContainer_.querySelector(".html5-video-player");V&&(_.LE(_.DY().resolve(_.ue)),V.focus())}})},
preparePlayer:function(){var V=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(D){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")D();else{var f=function(){document.removeEventListener("DOMContentLoaded",f);D()};
document.addEventListener("DOMContentLoaded",f)}})).then(function(){return nSZ()}).then(function(){V.initPlayerPromise_||V.preparePlayerJobId_||(V.preparePlayerJobId_=_.gq(_.dm,function(){V.initPlayerPromise_||(V.initPlayerPromise_=V.initPlayerContainer_())}))}):_.mw(new _.cI("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(V){this.useUnifiedPlayer_()?fX(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(V)||(V.args.autoplay="0")},
shouldAutoplay_:function(V){if(this.useUnifiedPlayer_())fX(!1,"Invalid method call in kevlar_unified_player.");else{var D=this.get("args.el",V);return D&&D!="detailpage"&&this.isMiniplayerActive_()||D&&(D=="sponsorshipsoffer"||D=="handlesclaiming")&&this.get("args.autoplay",V)=="0"?!1:(V=LrZ(V))&&this.get("playerConfig.playbackStartConfig.startPaused",V)?!1:!0}},
isMiniplayerActive_:function(){return _.DY().resolve(_.qw).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var V=this.getPlayer();if(V){var D=V.getPlayerState();_.c("kevlar_player_check_ad_state_on_stop")&&(D=V.getPlayerState(V.getPresentingPlayerType()));D!=5&&V.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(V,D,f){f=f===void 0?!1:f;var n=this,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return D||(D=n.hostElement),t=n.useUnifiedPlayer_()?!!n.mainAppPlayer_:!!n.initPlayerPromise_,t?_.b(T,n.getPlayerPromise(),2):(f?V.insertBefore(D,V.firstChild):V.appendChild(D),T.return());J=T.yieldResult;H=J.getPlayerState(J.getPresentingPlayerType());Q=!1;if(H==-1||H==1||H==3)Q=!0;f?V.insertBefore(D,V.firstChild):V.appendChild(D);Q&&J.playVideo();J.setSize(NaN,NaN);_.yz(T)})},
watchNextDataChanged_:function(V){var D=this;V&&(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&ySF(this.mainAppPlayer_,V):this.getPlayerPromise().then(function(f){f.updateVideoData(D.computeWatchNextPlayerVars_(V))}))},
computeWatchNextPlayerVars_:function(V){if(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch"))fX(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:V}},
maybeSendAbandonmentPing_:function(){var V=this.getPlayer();V&&V.getPlayerState()!=5&&V.getPlayerState()!=0&&V.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var V=_.XB("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(V=Object.assign({},V),V.rootElementId=this.playerId);V.serializedExperimentIds&&V.serializedExperimentFlags||_.zP(Error("Ch"));return V},
hasWebPlayerContextConfig_:function(){return!!_.XB("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(V){this.useUnifiedPlayer_()?fX(!1,"Invalid method call in kevlar_unified_player."):_.Km(V,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(V){var D=_.DY().resolve(_.Z$);V=V==null?void 0:V.getOption("captions","track");var f=_.HR("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(V){var n,t=(n=_.KX(_.QAR,f)())==null?void 0:n.value,J;n=typeof(V==null?void 0:V.translationLanguage)==="object"&&((J=V.translationLanguage)==null?void 0:J.languageName)||V.displayName||"";t!==n&&D.store.dispatch(_.y1("stringEntity",f,{key:f,value:n.toString()}))}else D.store.dispatch(_.y1("stringEntity",
f,{key:f,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var V=_.c("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.c("kevlar_unified_player")||V}}];var cSp={};cSp.YtPlaylistPanelBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(V){V=V.detail;if(V.actions.loop!=void 0||V.actions["yt-icons:loop"]!=void 0)this.loopOn=V.actions.loop||V.actions["yt-icons:loop"];if(V.actions.shuffle!=void 0||V.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=V.actions.shuffle||V.actions["yt-icons:shuffle"]},
setMenuData_:function(V){if(!V||!V.playlistButtons||V.isInfinite)return null;for(var D=V.playlistButtons.menuRenderer.topLevelButtons,f=D.length,n=0;n<f;n++)if(D[n].toggleButtonRenderer){var t=D[n].toggleButtonRenderer;t.defaultIcon.iconType=="LOOP"&&this.loopOn?t.isToggled=this.loopOn:t.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(t.isToggled=this.shuffleOn)}return V.playlistButtons}}];var FhL=function(V){nl.call(this,V,132);this.isDocument=V===document.documentElement};
_.v(FhL,nl);FhL.prototype.calculateScrollDelta=function(V,D,f){var n=0;V<D?n=V<D-100?-48:-8:V>D+f&&(n=V>D+f+100?48:8);return n};
FhL.prototype.JSC$9432_onMouseMove=function(V){this.isDocument||(V.clientX=V.event_.pageX,V.clientY=V.event_.pageY);nl.prototype.JSC$9432_onMouseMove.call(this,V)};var Ix=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.scrollElement=document.documentElement;V.JSC$12404_dragListGroup=null;V.dragScrollSupport=null;V.onDraggerCreated=function(D){var f=D.JSC$9428_dragger;f.scrollTarget_=V.scrollElement;D=D.draggerEl;f&&D.menuOpened&&f.setEnabled(!1)};
V.onDragStart=function(D){var f=D.draggerEl;D=D.currDragItem;var n=Object.assign({},D==null?void 0:D.data);n.trackingParams=void 0;f.data=n;f.style.position="absolute";f.style.width=(D==null?void 0:D.clientWidth)+"px";f.style.zIndex="2030";f.onDrag&&f.onDrag();_.c("web_owner_document_fallback_killswitch")?(D=document.querySelector("ytd-app"))&&_.Pt(D).appendChild(f):(D=_.mk(f),(n=D.querySelector("ytd-app"))?_.Pt(n).appendChild(f):D.body.appendChild(f));V.dragScrollSupport=new FhL(V.scrollElement);
V.dragScrollSupport.horizontalScrolling_=!1;f=V.dragScrollSupport;f.constrainScroll_=!!f.margin_&&!1};
V.onDrop=function(D){V.handleDrop(D);V.dragScrollSupport&&(_.Mr(V.dragScrollSupport),V.dragScrollSupport=null)};
V.onReorderableScroll=function(){if(V.JSC$12404_dragListGroup){var D=V.JSC$12404_dragListGroup;jWY(D,D.currDragItem_)}};
return V};
_.v(Ix,_.lU);Ix.prototype.detached=function(){_.gSu(this)};
_.gSu=function(V){V.JSC$12404_dragListGroup&&(_.ZU(V.JSC$12404_dragListGroup,rOF,V.onDragStart),_.ZU(V.JSC$12404_dragListGroup,Tgr,V.onDragStart),V.JSC$12404_dragListGroup.dispose(),V.JSC$12404_dragListGroup=null);V.dragScrollSupport&&(_.Mr(V.dragScrollSupport),V.dragScrollSupport=null);V.scrollElement.removeEventListener("scroll",V.onReorderableScroll)};
_.vSo=function(V,D,f,n){n=n===void 0?"":n;_.gSu(V);f&&(V.scrollElement=f);V.JSC$12404_dragListGroup=new Ra;V.JSC$12404_dragListGroup.hysteresisDistance_=2;KqP(V.JSC$12404_dragListGroup,D);V.JSC$12404_dragListGroup.draggerElClasses_=b3("dragging").split(" ");n&&yOH(V.JSC$12404_dragListGroup,function(t){var J=t||document,H=null;J.getElementsByClassName?H=J.getElementsByClassName(n)[0]:H=xUV("*",n,t);return H||t});
_.kt(V.JSC$12404_dragListGroup,oyF,V.onDraggerCreated);_.kt(V.JSC$12404_dragListGroup,rOF,V.onDragStart);_.kt(V.JSC$12404_dragListGroup,Tgr,V.onDrop);V.JSC$12404_dragListGroup.init();V.scrollElement.addEventListener("scroll",V.onReorderableScroll,{passive:!0})};
Ix.prototype.handleDrop=function(){};
_.IG.Object.defineProperties(Ix.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.S([_.q({value:100}),_.p("design:type",Number)],Ix.prototype,"scrollMargin",void 0);_.S([_.Gy()],Ix);_.kdE=[Ix.prototype];_.O_={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(V,D,f){var n=this.getClickTarget_(D);if(n&&this.isClickAllowed_(n)){D.preventDefault();V=(0,_.sB.unsafeClone)(V);var t=this.getContainerBoundingRect();D=this.getRelativeClickXy_(D,t);this.expandEndpointUrlMacros_(V,{NX:D[0],NY:D[1],NB:n.code});f&&this.truncateWebCommendMetadataUrl_(V);_.PA(this.hostElement,"yt-navigate",{endpoint:V})}},
getClickTarget_:function(V){if(!this.clickTargetMap)return null;V=_.Os(V)||[];V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;if(D===_.Pt(this.hostElement).querySelector("#menu"))break;if(D=this.clickTargetMap.get(D.id))return D}return null},
getRelativeClickXy_:function(V,D){var f=V.detail.x,n=V.detail.y;_.c("use_on_click_for_desktop_display_ad")&&V.clientX!=null&&V.clientY!=null&&(f=V.clientX,n=V.clientY);V=Math.round(f-D.left);D=Math.round(n-D.top);return V<0||D<0?[null,null]:[V,D]},
getContainerBoundingRect:function(){return _.Pt(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(V,D){for(var f=_.r(V.loggingUrls||[]),n=f.next();!n.done;n=f.next())n=n.value,n.baseUrl&&(n.baseUrl=Bl(n.baseUrl,D));V.urlEndpoint&&V.urlEndpoint.url&&(V.urlEndpoint.url=Bl(V.urlEndpoint.url,D));V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url&&(V.commandMetadata.webCommandMetadata.url=Bl(V.commandMetadata.webCommandMetadata.url,D))},
truncateWebCommendMetadataUrl_:function(V){if(V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url){var D=V.commandMetadata.webCommandMetadata.url,f=D.indexOf("&pp=");if(f>0){var n=D.indexOf("&",f+1);V.commandMetadata.webCommandMetadata.url=n>f&&n<D.length?D.slice(0,f)+D.slice(n):D.slice(0,f)}}},
configureClickTargets:function(V,D,f){this.containerId=V;this.clickTargetMap=new Map;V=_.r(D);for(D=V.next();!D.done;D=V.next())if(D=D.value,D.location){var n=f.get(D.location);n&&(_.JA(_.Pt(this.hostElement).querySelector("#"+n),"yt-simple-endpoint",this.isClickAllowed_(D)),this.clickTargetMap.set(n,D))}},
isClickAllowed_:function(V){return V.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.x$={};
_.x$.YtLazyListBehavior=[_.xm.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 V=(this.constructor.generatedFrom||this).observers;V||(V=[]);V.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
V}},
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 V=this.renderElementsOutsideVisibleArea_;V&&(vXV(V,4),V.processSignal())},
deepLazyListObserver_:function(V){var D=this;if(V){var f=V.value||[];if(this.itemsPath==V.path){var n=this.nonDeferredItemCount;V=0;n>-1&&f.length>n&&(V=_.XB("REMAINING_DOVA_DEFERRED_CHUNKS",-1));V>0?(n>0&&(n=f.slice(0,n),this.setInitialItemsOnDataChanged(n)),(n=this.renderElementsOutsideVisibleArea_)?n.cancel():(n=this.renderElementsOutsideVisibleArea_=new _.h5(2,"eocs"),_.LRF(window,"scroll",function(){return D.renderDeferredElements()})),_.UY(n,function(){D.setInitialItemsOnDataChanged(f)}),_.ql("REMAINING_DOVA_DEFERRED_CHUNKS",
V-1)):this.setInitialItemsOnDataChanged(f)}else if(this.itemsPath+".splices"==V.path)this.onItemsUpdated_(f);
else n="shownItems"+V.path.substr(this.itemsPath.length),this.useSignals&&n==="shownItems.length"||this.notifyPath(n,V.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(V){V&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(V),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(V){V=V.indexSplices;for(var D=0,f=V.length;D<f;D++){var n=V[D];if(n.index<this.shownCount&&(n.removed&&this.splice("shownItems",n.index,n.removed.length),n.addedCount)){var t=n.object.slice(n.index,n.index+n.addedCount);n=["shownItems",n.index,0];n.push.apply(n,t);this.splice.apply(this,n)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(V){this.cancelPendingTasks_();V||(V=[]);this.items_=V;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&&(_.EG("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.pO(this,this.tryRenderChunk_)))},
fillRange_:function(V,D){this.canShowMore&&this.items_&&(V=this.items_.slice(V,D),V.unshift("shownItems"),this.push.apply(this,V),this.shownCount=D,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var V=this;this.canShowMore&&_.Yu(this,"renderChunk",function(){V.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.EG("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.lf(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var V=this.renderElementsOutsideVisibleArea_;V&&(V.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var V=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(V-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=V;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(V){return Math.ceil(1E3/V)},
onCanShowMoreUpdated_:function(V){this.data&&this.items_!==null&&(V?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(V){!this.shouldUseTaskManager()&&this.data&&(!V&&this.canShowMore?(_.NbL(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):V&&this.partiallyRenderedItems_.has(this.items_)&&(_.c("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var U_;_.M0={};
U_=function(){var V=_.lU.apply(this,arguments)||this;V.atStart=!0;V.atEnd=!0;V.startIndex=0;V.endIndex=0;V.scrollCount=0;V.initialStartIndex=0;V.disableScrollEventListener=!1;V.useFloorScrolling=!1;V.isSearch=!1;V.dragging=!1;V.dragMouseStart=0;V.dragOffsetStart=0;V.disableWheelScroll=!1;V.centerListItems=!1;V.offset=0;V.minComponentWidth=0;V.marginWidthRight=0;V.marginWidthLeft=0;V.setButtonsStateRequested=!1;V.itemsVisibilityObserver=null;V.fullyVisibleItemsIndices=[];V.JSC$12415_onWheelScroll=function(D){if(V.isSearch&&
!V.disableWheelScroll&&_.c("desktop_enable_dmpanel_wheel_scroll")){var f=D.shiftKey?Math.abs(D.deltaY)>Math.abs(D.deltaX)?D.deltaY:D.deltaX:D.deltaX;f!==0&&(D.preventDefault(),V.ytLazyListBehavior.fillRemainingListItems(),V.offset+=f,hf(V),V.reposition_())}};
V.onPointerDown=function(D){ssl(V)&&(V.dragMouseStart=D.clientX,V.dragOffsetStart=V.offset,V.dragging=!0)};
V.onPointerMove=function(D){ssl(V)&&V.dragging&&(V.ytLazyListBehavior.fillRemainingListItems(),V.offset=V.dragOffsetStart-(D.clientX-V.dragMouseStart),hf(V),V.reposition_())};
V.onPointerUp=function(){ssl(V)&&(V.dragging=!1)};
return V};
_.v(U_,_.lU);var BFo=function(V){var D=_.Pt(V.hostElement).querySelector("#items").children;if(!D)return 0;var f=0;V=_.r(V.fullyVisibleItemsIndices);for(var n=V.next();!n.done;n=V.next())f+=D[n.value].clientWidth;return f},ssl=function(V){return V.isSearch&&_.c("desktop_enable_dmpanel_click_drag_scroll")};
U_.prototype.created=function(){this.cachedViewportWidth=_.XB("initialInnerWidth")||window.innerWidth;this.JSC$12415_cachedViewportHeight=_.XB("initialInnerHeight")||window.innerHeight;_.XB("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.ql("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
U_.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();du6(this)};
U_.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var V;(V=this.itemsVisibilityObserver)==null||V.disconnect();this.itemsVisibilityObserver=null;var D;(D=this.itemsObserver)==null||D.disconnect()};
var du6=function(V){var D=_.Pt(V.hostElement).querySelector("#scroll-container");if(D){if(!V.itemsVisibilityObserver){var f=window.getComputedStyle(D).marginRight;V.itemsVisibilityObserver=new IntersectionObserver(function(n){ufl(V,n)},{root:D,
rootMargin:f,threshold:.98})}if(D=_.Pt(V.hostElement).querySelector("#items"))V.itemsObserver=new LIl(D,function(n){NFE(V,n)})}},NFE=function(V,D){mul(V)&&(Array.from(D.addedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){V.itemsVisibilityObserver&&V.itemsVisibilityObserver.observe(f)}),Array.from(D.removedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){V.itemsVisibilityObserver&&V.itemsVisibilityObserver.unobserve(f)}))},
ufl=function(V,D){var f=new Set(V.fullyVisibleItemsIndices);
D=_.r(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;var t=n.target.parentElement;t?(t=Array.from(t.children).indexOf(n.target),n.isIntersecting?f.add(t):f.has(t)&&f.delete(t)):_.zP(new _.cI("Parent element not found",n.target.nodeName))}V.fullyVisibleItemsIndices=Array.from(f).sort(function(J,H){return J-H});
f.size===0?_.zP(new _.cI("No visible entries in horizontal list")):(V.startIndex=V.fullyVisibleItemsIndices[0],V.endIndex=V.fullyVisibleItemsIndices[V.fullyVisibleItemsIndices.length-1])},mul=function(V){V.data?V=(V=V.data)&&V.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===V.itemSizeConstraint:!1:V=!1;
return V};
_.P=U_.prototype;_.P.addScrollEventListeners=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container");V.style.touchAction="pan-y";V.addEventListener("wheel",this.JSC$12415_onWheelScroll);V.addEventListener("pointerdown",this.onPointerDown);V.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.P.removeScrollEventListeners=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container");V.removeEventListener("wheel",this.JSC$12415_onWheelScroll);V.removeEventListener("pointerdown",this.onPointerDown);V.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.P.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.pO(this,this.setStartIndex,[this.initialStartIndex])};
_.P.reposition_=function(){var V=_.XB("HTML_DIR")=="rtl"?"":"-",D=_.Pt(this.hostElement).querySelector("#items");D&&(D.style.transform="translateX("+V+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.P.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.pO(this,this.setButtonsState_))};
_.P.setButtonsState_=function(){this.setButtonsStateRequested=!1;var V=_.Pt(this.hostElement).querySelector("#items").firstElementChild;if(V){this.minComponentWidth||(this.minComponentWidth=zar(this,V));V=_.Pt(this.hostElement).querySelector("#scroll-container").clientWidth;var D=_.Pt(this.hostElement).querySelector("#items").clientWidth,f=this.get(this.ytLazyListBehavior.itemsPath,this);if(f){var n=Math.round(V/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+n,f.length)-1)}this.ytLazyListBehavior.canShowMore?D+this.minComponentWidth>=this.offset+V&&(this.atEnd=!1):this.atEnd=this.offset+V>=D-20?!0:!1;this.atStart=this.offset<=20}};
_.P.setStartIndex=function(V){if(!this.minComponentWidth){var D=_.Pt(this.hostElement).querySelector("#items").firstElementChild;if(!D)return;this.minComponentWidth=zar(this,D)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*V;hf(this);this.reposition_()};
_.P.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.oa();var V=_.Pt(this.hostElement).querySelector("#scroll-container").clientWidth;_.c("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=zar(this,_.Pt(this.hostElement).querySelector("#items").firstElementChild));V=this.useFloorScrolling?Math.floor(V/this.minComponentWidth)||1:Math.round(V/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&RaY(this);this.offset+=mul(this)?
BFo(this):V*this.minComponentWidth;hf(this);this.reposition_();this.scrollCount++};
_.P.prevClick_=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container").clientWidth;V=this.useFloorScrolling?Math.floor(V/this.minComponentWidth)||1:Math.round(V/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=mul(this)?BFo(this):this.minComponentWidth*this.scrollCount-1):this.offset-=mul(this)?BFo(this):V*this.minComponentWidth;this.centerListItems&&RaY(this);hf(this);this.reposition_()};
_.P.onIronResize_=function(){this.resizeSupportEnabled&&_.pO(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.P.onItemsTransitionEnd_=function(V){_.x7(V)===_.Pt(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.P.onChildElementFocus_=function(V){V=V.target.closest("#items > *");var D=_.Pt(this.hostElement).querySelector("#scroll-container");if(D.contains(V)){if(_.c("web_horizontal_list_behavior_focus_killswitch"))if(V.offsetLeft<this.offset)this.offset=Math.abs(V.offsetLeft)<V.clientWidth?0:V.offsetLeft;else if(V.offsetLeft+V.clientWidth>this.offset+D.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.oa(),this.offset=V.offsetLeft+V.clientWidth-D.clientWidth;else return;else{var f=_.Pt(this.hostElement).querySelector("#items"),
n=_.XB("HTML_DIR")==="rtl",t=n?f.clientWidth-V.offsetLeft:V.offsetLeft;f=n?f.clientWidth-(V.offsetLeft+V.clientWidth):V.offsetLeft+V.clientWidth;var J=n?t>this.offset+D.clientWidth:t<this.offset,H=n?f<this.offset:f>this.offset+D.clientWidth,Q=n?J:H;if(n?H:J)D=n?f:t,this.offset=Math.abs(D)<V.clientWidth?0:D;else if(Q)this.ytLazyListBehavior.fillRemainingListItems(),_.oa(),this.offset=(n?t:f)-D.clientWidth;else return}hf(this);this.reposition_()}};
_.P.observeShownItems_=function(){this.reset()};
_.P.checkComponentWidthResize=function(){var V=_.Pt(this.hostElement).querySelector("#items").firstElementChild;V&&(V=zar(this,V),this.centerListItems||V!==this.minComponentWidth)&&(this.minComponentWidth=V,this.offset=V*this.scrollCount,this.centerListItems&&RaY(this),hf(this),this.reposition_())};
var zar=function(V,D){var f=window.getComputedStyle(D).marginRight;f=Math.floor(Number(f.replace("px","")));var n=window.getComputedStyle(D).marginLeft;n=Math.floor(Number(n.replace("px","")));V.centerListItems&&!V.marginWidthRight&&(V.marginWidthRight=f,V.marginWidthLeft=n);return V.resizeSupportEnabled?D.getBoundingClientRect().width+f:D.offsetWidth+f},hf=function(V){var D=_.Pt(V.hostElement).querySelector("#scroll-container").clientWidth,f=_.Pt(V.hostElement).querySelector("#items").clientWidth;
V.offset<0?V.offset=0:V.offset+D>=f&&(V.offset=f-D)},RaY=function(V){V.offset-=(_.Pt(V.hostElement).querySelector("#scroll-container").clientWidth+V.marginWidthRight-V.minComponentWidth)/2-V.marginWidthLeft};
_.IG.Object.defineProperties(U_.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var V=_.XB("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(V==-1)V=this.JSC$12415_cachedViewportHeight,V=V>1320?5:V>1020?4:V>730?3:V>430?2:1;else if(V==0)return 0;_.ql("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",V-1);V=_.XB("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(V>-1)return V;V=this.cachedViewportWidth;V=V>1600?6:V>1400?5:V>1300?4:V>1090?5:V>870?4:V>660?3:2;_.ql("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
V);return V},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.c("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
U_.prototype.observeShownItems_=U_.prototype.observeShownItems_;U_.prototype.onChildElementFocus_=U_.prototype.onChildElementFocus_;U_.prototype.onItemsTransitionEnd_=U_.prototype.onItemsTransitionEnd_;U_.prototype.onIronResize_=U_.prototype.onIronResize_;U_.prototype.prevClick_=U_.prototype.prevClick_;U_.prototype.nextClick_=U_.prototype.nextClick_;U_.prototype.setButtonsState_=U_.prototype.setButtonsState_;U_.prototype.requestButtonsStateUpdate_=U_.prototype.requestButtonsStateUpdate_;
U_.prototype.reposition_=U_.prototype.reposition_;U_.prototype.reset=U_.prototype.reset;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],U_.prototype,"ytLazyListBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],U_.prototype,"atStart",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],U_.prototype,"atEnd",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"startIndex",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"endIndex",void 0);_.S([_.q({value:6}),_.p("design:type",Number)],U_.prototype,"initialCount",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"scrollCount",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"initialStartIndex",void 0);
_.S([_.q(),_.p("design:type",Object)],U_.prototype,"disableScrollEventListener",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"supportComponentResize",void 0);_.S([_.q({value:function(){var V=this;return function(){return V.prevClick_()}}}),
_.p("design:type",Function)],U_.prototype,"boundPrevClick",void 0);_.S([_.q({value:function(){var V=this;return function(){return V.nextClick_()}}}),
_.p("design:type",Function)],U_.prototype,"boundNextClick",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"useFloorScrolling",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"isSearch",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"dragging",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"dragMouseStart",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"dragOffsetStart",void 0);
_.S([_.q(),_.p("design:type",Object)],U_.prototype,"disableWheelScroll",void 0);_.S([_.q(),_.p("design:type",Object)],U_.prototype,"centerListItems",void 0);_.S([_.bU("iron-resize"),_.KI("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U_.prototype,"onIronResize_",null);_.S([_.bU("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],U_.prototype,"onItemsTransitionEnd_",null);
_.S([_.bU("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],U_.prototype,"onChildElementFocus_",null);_.S([_.KI("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U_.prototype,"observeShownItems_",null);_.S([_.Gy()],U_);_.M0.YtdHorizontalListBehavior=[];_.M0.YtdHorizontalListBehavior.push(_.sp,_.U.YtRendererBehavior,_.x$.YtLazyListBehavior,_.CE.YtdGuideStateAwareBehavior,U_.prototype);var b2c=["APP_STATE","PI"];var ChF=_.WV(["about:blank"]),q4P={pushState:window.history.pushState,replaceState:window.history.replaceState};var VK=function(V){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=V;this.internalPushState=V.pushState.bind(V);this.internalReplaceState=V.replaceState.bind(V)};
VK.prototype.init=function(){this.initialized=!0};
VK.prototype.pushState=function(V,D){this.initialized||this.init();this.internalPushState&&this.internalPushState(V,"",D)};
VK.prototype.replaceState=function(V,D){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(V,"",D)};
VK.prototype.getState=function(){return this.history&&this.history.state};var XMr=function(V){var D=function(){var f=V.apply(this,arguments)||this;f.boundHistoryPushState=!1;f.boundHistoryReplaceState=!1;f.debugInfo={};return f};
_.v(D,V);D.prototype.init=function(){var f=_.yh("IFRAME");_.N8(f,_.t4(ChF));f.sandbox="allow-same-origin";f.style.display="none";this.iframe=f;document.body.appendChild(f);this.bindHistoryStateFunctions();V.prototype.init.call(this)};
D.prototype.bindHistoryStateFunctions=function(){var f=this,n=[],t;this.iframe&&((t=this.iframe.contentWindow)==null?0:t.history)&&(t=this.iframe.contentWindow.history)&&(n.push(t),Object.getPrototypeOf(t)&&n.push(Object.getPrototypeOf(t)));window.history&&n.push(window.history);t=window.history;Object.getPrototypeOf(t)&&n.push(Object.getPrototypeOf(t));n.push(q4P);t=function(H){for(var Q=null,T=0;T<n.length;T++){var y=n[T][H];if(typeof y==="function"){Q=y.bind(window.history);f.debugInfo[H]=T;break}}return Q};
if(!this.boundHistoryReplaceState){var J=t("replaceState");J&&(this.internalReplaceState=J,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(t=t("pushState"))&&(this.internalPushState=t,this.boundHistoryPushState=!0)};
return D}(VK),ESV=function(){return XMr.call(this,window.history)||this};
_.v(ESV,XMr);ESV.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var DQ=function(V){this.browserHistory=V;this.initialized=!1};
DQ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
DQ.prototype.pushState=function(V,D){this.initialized||this.init();this.browserHistory.pushState(V,D)};
DQ.prototype.replaceState=function(V,D){this.initialized||this.init();this.browserHistory.replaceState(V,D)};
DQ.prototype.handlePopstate=function(V){return V.state};_.AS6=function(V,D,f,n,t){this.endpoint=V;this.forward=D;this.historyEntry=f;this.JSC$26832_savedComponentState=n;this.legacyBorder=t===void 0?!1:t};var a_V=function(V,D){this.rootData=V;this.scrollTop=D};var Fc=new _.IH("PAGE_REQUEST_TOKEN"),VZr=new _.IH("FETCH_PBJ_TOKEN");_.fC=new _.IH("EPHEMERAL_STORE_TOKEN");_.nC=function(V){this.data=Object.assign({},V);var D;(D=this.data.innertubeResponse)==null||delete D.frameworkUpdates};
_.nC.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.VW)()};
_.PV=function(V){return Object.assign({},V.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Y4l=function(){this.maxSize=100;this.timeToDataCache=new Map};
Y4l.prototype.get=function(V){var D=this.timeToDataCache.get(V);D&&(this.timeToDataCache.delete(V),this.timeToDataCache.set(V,D));if(D&&D.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var f=_.DY().resolve(_.fC),n=$uF(D),t=!!n;if(n){if(n.content){var J=t$(f,n.content);t&&J?D.rootData.response=_.PV(J):t=!1}n.player&&(J=t$(f,n.player),t&&J?D.rootData.playerResponse=_.PV(J):t=!1);n.reelSequence&&(f=t$(f,n.reelSequence),t&&f?D.rootData.reelWatchSequenceResponse=
_.PV(f):t=!1)}t||(this.timeToDataCache.delete(V),D=void 0)}return D};
Y4l.prototype.set=function(V,D){if(D.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var f=$uF(D),n=Object.assign({},D.rootData);f&&(f.content&&D.rootData.response&&(i2F(this,f.content,D.rootData.response),n.response=null),f.player&&D.rootData.playerResponse&&(i2F(this,f.player,D.rootData.playerResponse),n.playerResponse=null),f.reelSequence&&D.rootData.reelWatchSequenceResponse&&(i2F(this,f.reelSequence,D.rootData.reelWatchSequenceResponse),n.reelWatchSequenceResponse=
null));D=new a_V(n,D.scrollTop)}this.timeToDataCache.has(V)?this.timeToDataCache.delete(V):this.timeToDataCache.size>=this.maxSize&&(f=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(f.value));this.maxSize!==0&&this.timeToDataCache.set(V,D)};
Y4l.prototype.clear=function(){this.timeToDataCache.clear()};
var $uF=function(V){var D=_.DY().resolve(_.Vx(Fc)),f;if((f=V.rootData)==null?0:f.endpoint)return D==null?void 0:F_R(D,V.rootData.endpoint);var n;_.zP(new _.cI("History snapshot response data does not contain endpoint",(n=V.rootData)==null?void 0:n.url));return null},i2F=function(V,D,f){if(V.maxSize>0){var n;
(V=(n=f.responseContext)==null?void 0:n.maxAgeSeconds)&&Number(V)>0&&(n=_.DY().resolve(_.fC),f=PW(f,V),n.put(D,new _.nC(f)))}};var S4l=function(V,D,f){this.endpoint=D;this.JSC$26837_savedComponentState=f===void 0?null:f;this.entryTime=V};var Gdn=1;var Pg=function(V){var D=function(){var f=V.apply(this,[].concat(_.sz(_.gQ.apply(0,arguments))))||this;f.historyEntryTime=0;f.historySnapshotCache=f.createHistoryCache();return f};
_.v(D,V);D.prototype.createHistoryCache=function(){return new Y4l};
D.prototype.saveAndReplace=function(f,n,t){var J=window.location.href;var H=H===void 0?{}:H;var Q=(Q=this.browserHistory.getState())&&Q.entryTime?Q.entryTime:eaR();f=this.createNewHistoryEntry(f,H,Q);this.saveSnapshot(Q,n,t);this.replaceState(f,J||window.location.href)};
D.prototype.saveAndPush=function(f,n,t,J,H){H=H===void 0?{}:H;this.saveSnapshot(this.historyEntryTime,t,J);t=this.historySnapshotCache;J=this.historyEntryTime;var Q=t.timeToDataCache.keys();Q=_.r(Q);for(var T=Q.next();!T.done;T=Q.next())T=T.value,T>J&&t.timeToDataCache.delete(T);n=this.createNewHistoryEntry(n,H);this.pushState(n,f)};
D.prototype.saveSnapshot=function(f,n,t){this.historySnapshotCache.set(f,new a_V(n,t))};
D.prototype.createNewHistoryEntry=function(f,n,t){t=t===void 0?eaR():t;return new S4l(t,f,n)};
D.prototype.handlePopstate=function(f){var n=V.prototype.handlePopstate.call(this,f),t=null,J=null,H=!1,Q=null;n&&n.entryTime&&(Q=this.historySnapshotCache.get(n.entryTime)||null,H=n.entryTime>this.historyEntryTime,this.historyEntryTime=n.entryTime,t=n.endpoint,J=n.JSC$26837_savedComponentState);this.handleHistoryCacheLoad(new _.AS6(t,H,Q,J),f);return n};
D.prototype.pushState=function(f,n){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);V.prototype.pushState.call(this,f,n)};
D.prototype.replaceState=function(f,n){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);V.prototype.replaceState.call(this,f,n)};
D.prototype.handleHistoryCacheLoad=function(){};
return D}(DQ),WhH=function(){var V=Pg.call(this,new ESV)||this;
V.dispatchElement=null;V.entryIndex=0;return V};
_.v(WhH,Pg);_.P=WhH.prototype;_.P.init=function(V){V=V===void 0?!0:V;Pg.prototype.init.call(this);this.initialized||(V||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.P.handlePopstate=function(V){var D=null;V.state||(D="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Pg.prototype.handlePopstate.call(this,V);var f=new CustomEvent("yt-history-pop",{cancelable:!0});_.o4(this.dispatchElement,"yt-history-pop",[f,{errorMsg:D}]);_.JR(this.dispatchElement,"yt-close-all-popups-action");if(!f.defaultPrevented){f=_.DY().resolve(_.xl);D=f.getCurrentData();var n=f.getCurrentPage();f=0;n?(n=_.o4(this.dispatchElement,"yt-get-page-offset",
[n]),n.length>0&&(f=n[0])):_.zP(new _.cI("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:D?D.page:"undefined"}));D&&(D.csn=_.Ni());this.saveSnapshot(this.historyEntryTime,D,f)}return Pg.prototype.handlePopstate.call(this,V)};
_.P.handleHistoryCacheLoad=function(V,D){V.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.r(_.JR(this.dispatchElement,"yt-history-will-navigate",[D])).next().value||_.o4(this.dispatchElement,"yt-history-load",[D,V]))};
_.P.pushState=function(V,D){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var f=new _.cI("history.pushState is not a function",this.getDebugString());_.NG(f)}Pg.prototype.pushState.call(this,V,D)};
_.P.replaceState=function(V,D){if(!this.browserHistory.boundHistoryReplaceState){var f=new _.cI("history.replaceState is not a function",this.getDebugString());_.NG(f)}Pg.prototype.replaceState.call(this,V,D)};
_.P.saveAndPush=function(V,D,f,n,t){t=t===void 0?{}:t;f&&(f.csn=_.Ni());Pg.prototype.saveAndPush.call(this,V,D,f,n,t)};
_.P.getDebugString=function(){var V=[];this.initialized&&V.push("i");this.browserHistory.boundHistoryReplaceState&&V.push("bhr");this.browserHistory.boundHistoryPushState&&V.push("bhs");"replaceState"in this.browserHistory.debugInfo&&V.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&V.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&V.push("ei:"+String(this.entryIndex));return V.join(",")};
_.o0=function(V,D){V.init(!0);var f=V.browserHistory.getState();V.replaceState(f,tY(D))};
WhH.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.J$=new _.IH("DESKTOP_HISTORY_MANAGER_TOKEN");var pM6=[10,20,30,40,50,60],rD=function(){this.currentPartitionIndex=0},Lho=function(V){nmF({mainAppWeb:_.Wo(),
survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},I_u=function(V){nmF({mainAppWeb:_.Wo(),
survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},O2o=function(V){return V.currentPartitionIndex>=0&&V.currentPartitionIndex<pM6.length?pM6[V.currentPartitionIndex]:-1},xuL=function(V){return V.currentPartitionIndex>0&&V.currentPartitionIndex-1<pM6.length?pM6[V.currentPartitionIndex-1]:-1};
rD.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var V=xuL(this);V>0&&I_u(V);V=O2o(this);V>0&&Lho(V);M36(this)}};
var M36=function(V){var D=O2o(V);if(D>0){var f=xuL(V);f<0&&(f=0);V.intervalId=_.dm.addJob(function(){var n=xuL(V);n>0&&I_u(n);n=O2o(V);n>0&&Lho(n);M36(V)},3,(D-f)*6E4);
V.currentPartitionIndex+=1}else V.currentPartitionIndex=-1};var hau=function(){this.skipNextNavigation=!1},UuF=function(V,D,f){if(!D)return!1;
if(V.skipNextNavigation)return V.skipNextNavigation=!1;if(_.g(f,_.a2))return!1;var n,t,J;if((n=_.g(f,_.jL))==null?0:(t=n.browseEndpointContextSupportedConfigs)==null?0:(J=t.browseEndpointContextMainConfig)==null?0:J.skipConfirmation)return!1;var H;return((H=_.g(D.commandMetadata,_.he))==null?void 0:H.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
hau.prototype.showConfirmationDialog=function(V,D){this.navigateParams=D;this.customConfirmationCommand?_.DY().resolve(_.fH).resolveCommand(this.customConfirmationCommand):(D={openPopupAction:{popup:{confirmDialogRenderer:{title:_.pA(_.Zl("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.pA(_.Zl("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.pA(_.Zl("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.pA(_.Zl("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Yb.getInstance().triggerAction("yt-open-popup-action",D,V))};
hau.prototype.cancelPendingNavigation=function(){var V;((V=this.navigateParams)==null?void 0:V.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var VuU=function(){},fqu=function(V,D,f,n,t,J,H){f=f===void 0?{}:f;
H=H===void 0?{}:H;var Q=_.lV.instance,T,y=(T=_.g(D,_.a2))==null?void 0:T.url;return y?nMd(Q,y,f,window.location.href,function(Z,l){DxY(V,Z,l,!1,!0,f,J,n)},function(){return!1}):Ax(Q,D,f,window.location.href,co(D),function(Z,l){DxY(V,Z,l,!1,!0,f,J,n)},t,H)},DxY=function(V,D,f,n,t,J,H,Q){if(!V.JSC$12473_chunkHandler)if(f.page==="watch"||f.page==="learning_journey_watch")if(t||n){if(_.c("kevlar_continue_playback_without_player_response")){var T;
var y=(T=_.g(Q,_.pl))==null?void 0:T.videoId}V.JSC$12473_chunkHandler=new kC6(_.hI,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:n,previousVideoId:y},tempData:J},H)}else V.JSC$12473_chunkHandler=new e7U(_.hI);else f.page==="shorts"&&t&&!n?V.JSC$12473_chunkHandler=new vdU(_.hI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:J},H):V.JSC$12473_chunkHandler=new c8Y(H);V.JSC$12473_chunkHandler.processChunk({endpoint:D,data:f});return V.JSC$12473_chunkHandler.kd.promise},
nnF=function(V,D,f,n,t){(f=_.KyP(f))&&DxY(V,D,f,!1,!0,n,void 0,t)};var tuF=function(){this.pendingNavigationPromise=null};
_.P=tuF.prototype;_.P.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.P.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.P.addEventListener=function(){throw Error("Dh");};
_.P.dispatchEvent=function(){throw Error("Dh");};
_.P.removeEventListener=function(){throw Error("Dh");};var PQP=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Hg=function(){_.jT.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];onP(this)};
_.v(Hg,_.jT);Hg.prototype.verifyUser=function(){var V=onP(this),D=V.logout;if(!V.sessionChange)return!0;this.dispatchEvent("ytsessionchange");D&&this.dispatchEvent("ytuserinvalid");return!1};
var onP=function(V){var D=PQP.map(function(t){var J;return(J=_.ZY.get(t))!=null?J:""}),f=D.some(function(t,J){return V.sessionCookies&&V.sessionCookies[J]!==""&&t===""}),n=D.some(function(t,J){return V.sessionCookies&&V.sessionCookies[J]!==t});
V.sessionCookies=D;return{logout:f,sessionChange:n}};
Hg.prototype.clearTimeout=function(){this.scheduledJobId&&(_.dm.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var kdR=new _.IH("POSTMESSAGE_TUNNEL_TOKEN");var FhU=["/parent_tools","/file_download","/artist_roster"],du3=[uqx,NdX,mVX,R$Y,z$X,dVX,CPd,qPU];var Jgu=new _.IH("APP_ROOT");var wD=new _.IH("NAVIGATION_CONFIRMATION_SERVICE");var rgE="/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(" "),HuU=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
QK=function(V,D){this.pendingNavigationPromise=null;this.JSC$12491_clientRoot=V;this.historyManager=D;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 VuU;this.debugString=V.is;V={"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};_.$b(_.Yb.getInstance(),V,this.JSC$12491_clientRoot)},KOH,ygu,Zuo,jwV,buV;
_.v(QK,tuF);QK.prototype.reload=function(){_.SL(window.location.href)};
var jDp=function(V){V.currentEndpoint&&_.g(V.currentEndpoint,_.gU)?V.reload():V.currentEndpoint&&V.navigate(V.currentEndpoint,!0,void 0,{disableCache:!0})};
QK.prototype.navigate=function(V,D,f,n,t,J,H,Q){D=D===void 0?!1:D;f=f===void 0?{}:f;n=n===void 0?{}:n;var T=_.DY().resolve(wD),y;if(!H&&UuF(T,(y=this.currentEndpoint)!=null?y:void 0,V))return T.showConfirmationDialog(this.JSC$12491_clientRoot.parentElement,{endpoint:V,reload:D,params:f,tempData:n,requestType:t,createScreenConfig:J}),!1;var Z=_.C_();_.qP(Z,"eocs")||Z.parkOrScheduleJob(function(){Z.processSignal("eocs")},10,"eor");
H=co(V);T=n.autonav==="1";y=_.Ni();Hg.instance||(Hg.instance=new Hg);var l=Hg.instance.verifyUser(),G;if(_.c("enable_dark_theme_only_on_shorts")){var F=document.documentElement.hasAttribute("dark"),k=_.dU(!0)==="USER_INTERFACE_THEME_DARK";if(H==="shorts"){if(!F)if(_.c("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var d;_.SL((d=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:d.url,void 0,void 0,window.top)}}else{var z;_.SL(_.LZ((z=_.g(V==null?
void 0:V.commandMetadata,_.he))==null?void 0:z.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.c("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!F){var C;_.SL(_.LZ((C=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(k!==F){var A;_.SL(_.LZ((A=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:A.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(H==="watch"){if(w4P(_.DY().resolve(_.qw),
V)&&(l||_.c("fix_miniplayer_navigation_killswitch")))return!1;_.c("block_all_player_prefetch_requests")||(G=ytF(_.nY(_.Gb),V,T))}else{var O,W=(O=_.g(this.currentEndpoint,_.pl))==null?void 0:O.videoId;W&&_.F7.getInstance().then(function(NU){NU&&NU.set("yt-miniplayer-shown-video-id",W)})}G&&(f.frags=G.missingFragments_.join(","));
d=null;var I;z=(I=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:I.ignoreNavigation;if(!z)if(_.c("kevlar_command_url")){var x;d=(x=_.g(V==null?void 0:V.commandMetadata,_.he))==null?void 0:x.url}else d=_.RqF(V,f);if(d&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&d==this.lastNavigationUrl)return _.N1({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Q7(Xw(),"CANCELLED")}d&&(this.lastNavigationUrl=d);f69();_.ql("IS_HOMEPAGE_COLD",
!1);_.ql("IS_RESULTS_PAGE_COLD",!1);_.ql("IS_WATCH_PAGE_COLD",!1);V.loggingUrls&&V.loggingUrls.forEach(function(NU){NU.baseUrl&&_.Ye(NU.baseUrl)});
_.zac(V,J?J.layer:0)&&_.c("kevlar_flush_logs_on_away_navigation")&&_.uN();if(uf9(V))return!1;OvV(H,t);if(!d)return z||_.zP(new _.cI("Can't construct url for endpoint",V)),_.Q7(Xw(),"FAILURE"),!1;_.cSF();I=V&&_.g(V,_.jL)&&_.g(V,_.jL).browseId.startsWith("UC");f=(x=_.c("enable_dark_theme_only_on_shorts")&&H==="shorts"?!1:_.ud()&&document.documentElement.hasAttribute("dark")!==_.Bo())?{themeRefresh:1}:{};x&&!_.lE()&&_.dU()==="USER_INTERFACE_THEME_DARK"&&(f.theme="dark");I=x||QwL(d)&&!I&&!_.c("kevlar_disable_url_allowlist");
l||(I=!0);if(I||_.XB("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var oY;var wZ=(oY=window.top)==null?void 0:oY.location.href}catch(NU){var ZZ;wZ=(ZZ=NU)==null?void 0:ZZ.message}_.zP(new _.cI("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:wZ}))}V=_.c("kevlar_redirect_on_window_killswitch")?window.top:window;id(d);_.SL(_.LZ(d,f),void 0,void 0,V);_.Q7(Xw(),"ABORTED");return!1}_.c("kevlar_early_popup_close")&&_.o4(this.JSC$12491_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12473_chunkHandler=void 0;var sd;wZ=co((sd=this.currentEndpoint)!=null?sd:void 0);(sd=H==="shorts"&&wZ==="shorts")||_.oGd();_.a9(pk9)("nr",void 0);T&&_.N1({webInfo:{navigationReason:"an"}});V.clickTrackingParams&&(n.itct=V.clickTrackingParams,n.csn=y);bEZ(n);n.endpoint=JSON.stringify(V);_.c("enable_unknown_lact_fix_on_html5")&&(_.DY().resolve(_.ue),n.lact=_.Vf());_.sB.isEmpty(n)||_.xo(d,n);!_.c("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(J=Object.assign({},{layer:0},J,{parentLayer:3}));this.pendingNavigationPromise=J=fqu(this.pageFetcher,V,n,this.currentEndpoint,this.JSC$12491_isNetworkPromiseStale.bind(this),J,Q);J=J.then(this.handleNavigateSuccess.bind(this,J,V,G,n),this.handleNavigateFail.bind(this,J,V));_.b$().navigationFinishPromise=J;D={endpoint:V,pageType:H,url:tY(d),reload:!!D,noProgressBar:sd};t&&(D.type=t);this.fireEvent("yt-navigate-start",D);G&&nnF(this.pageFetcher,V,G,n,this.currentEndpoint);
return!0};
QK.prototype.JSC$12491_isNetworkPromiseStale=function(V){return V!=this.pendingNavigationPromise};
var TGF=function(V,D,f,n,t){var J=co(D);D={endpoint:D,pageType:J};t&&(D.errorMessage=t);_.zP(f);D.navigationDoneMs=_.zm("nd");D.navigationErrorReason=n;V.fireEvent("yt-navigate-error",D)};
QK.prototype.handleNavigateFail=function(V,D,f){var n=void 0;f instanceof _.Sb&&(n=f,m3d(f));if(this.JSC$12491_isNetworkPromiseStale(V))return _.Br(n);_.Q7(Xw(),"FAILURE");TGF(this,D,f,"101");return _.Br(f)};
QK.prototype.handleNavigateSuccess=function(V,D,f,n,t){if(this.JSC$12491_isNetworkPromiseStale(V))return _.Qv();this.pendingNavigationPromise=null;if(!t)return D=new _.cI("Missing data in response for navigation endpoint",D),_.Br(D);if(t.reload)return window.location.reload(!0),_.Qv();f&&(V={},_.sB.extend(V,_.KyP(f),t),t=V);var J,H;f=(J=t)==null?void 0:(H=J.timing)==null?void 0:H.responseStart;f!=null&&_.zm("srt",f);_.zm("pdc");var Q,T;J=(Q=t)==null?void 0:(T=Q.timing)==null?void 0:T.info;J!=null&&
(Q=_.a9(_.x7x)(J),_.N1(Q));_.Q7(Xw(),"SUCCESS");buV(this,D,t,1,n);return _.Qv()};
var QwL=function(V){var D=V;_.c("kevlar_no_redirect_to_classic_2_ks")||(D=(new _.Ll(V)).getPath());if(D==="/"||D==="/red")return!1;var f=!0;rgE.forEach(function(n){V.indexOf(n)===0&&(f=!1)});
HuU.forEach(function(n){var t=n.url;_.c(n.expFlag)&&V.indexOf(t)===0&&(f=!1)});
return f};
QK.prototype.publishPageData=function(V){this.fireEvent("yt-page-data-fetched",{pageData:V})};
KOH=function(V,D,f,n,t,J){var H=null;D.page!=="watch"&&D.page!=="learning_journey_watch"||n?D.filler||_.o4(V.JSC$12491_clientRoot,"yt-stop-old-player",[D]):H=DxY(V.pageFetcher,t,D,f,!1,J,void 0,V.currentEndpoint);if(H)return H.then(V.publishPageData.bind(V,D));V.publishPageData(D);return _.Qv()};
ygu=function(V,D,f){var n=null;if(!f)return n=new _.cI("Empty data",V.debugString,D);var t=f.response;if(!t)return n;var J={endpointType:co(D)||"unknown"};t.responseContext?(t=t.responseContext.errors)&&(n=new _.cI("Errors in response context",V.debugString,D,t,J)):n=t.error||t.errorMetadata?new _.cI("Errors in response",V.debugString,D,t.error,t.errorMetadata,J):new _.cI("responseContext missing",V.debugString,D,Object.keys(t).sort().join(","),J);var H,Q,T,y;if(V=f==null?void 0:(H=f.response)==null?
void 0:(Q=H.responseContext)==null?void 0:(T=Q.webResponseContextExtensionData)==null?void 0:(y=T.webResponseContextDebugData)==null?void 0:y.debugErrorMessages)for(H=0;H<V.length;H++);return n};
Zuo=function(V){var D,f,n,t;return V==null?void 0:(D=V.response)==null?void 0:(f=D.responseContext)==null?void 0:(n=f.errors)==null?void 0:(t=n.error)==null?void 0:t["0"]};
jwV=function(V,D){var f;if(f=D.url&&!D.url.startsWith("/clip"))f=D.url,f=!_.c("webfe_parse_debug_param_in_resolveurl_service")&&V.searchDebugUrlMatcher.test(f)||AqZ(f)?!0:!1;if(f)AqZ(D.url)&&_.pZ(window.location.href).themeRefresh?(D=_.Mi(D.url,"themeRefresh"),_.o0(V.historyManager,D)):D.url&&!jsn(D.url)&&_.o0(V.historyManager,D.url);else if(D.endpoint){var n,t,J;(f=(n=D.endpoint)==null?void 0:(t=n.commandMetadata)==null?void 0:(J=t.webCommandMetadata)==null?void 0:J.url)&&!jsn(f)&&_.o0(V.historyManager,
f);f&&D.url&&f!=D.url&&!D.url.match("playnext=1")&&new _.cI("Response url mismatch in response data",V.debugString,f,D.url)}};
_.lqo=function(V,D,f,n,t,J,H,Q){J=J===void 0?!1:J;var T=_.DY().resolve(wD),y;if(!Q&&UuF(T,(y=V.currentEndpoint)!=null?y:void 0,D))return T.showConfirmationDialog(V.JSC$12491_clientRoot.parentElement,{endpoint:D,data:f,navigationType:n,tempData:t,isMiniplayer:J,isForwardHistoryNavigation:H==null?void 0:H.forward}),_.Qv();V.pageFetcher.JSC$12473_chunkHandler=void 0;return buV(V,D,f,n,t,J)};
buV=function(V,D,f,n,t,J){J=J===void 0?!1:J;V.isMiniplayerExpansion=J;var H=n===2;V.currentEndpoint=D;V.numNavigations++;V.numNavigations&&(VnU.navigationCount=V.numNavigations);_.ql("NUM_NAV",V.numNavigations);var Q=ygu(V,D,f);if(Q)return TGF(V,D,Q,"102",Zuo(f)),_.Br(Q);var T,y,Z,l;Q=f.rootVe||(f==null?void 0:(T=f.response)==null?void 0:(y=T.responseContext)==null?void 0:(Z=y.webResponseContextExtensionData)==null?void 0:(l=Z.ytConfigData)==null?void 0:l.rootVisualElementType);!H&&f&&jwV(V,f);var G,
F;T=f==null?void 0:(G=f.response)==null?void 0:(F=G.responseContext)==null?void 0:F.maxAgeSeconds;if(!H&&!isNaN(T)){var k;_.c("kevlar_use_response_ttl_to_invalidate_cache")?k=(0,_.VW)()+1E3*T:_.c("kevlar_always_invalidate_cache")&&(k=0);isNaN(k)||(f.expirationTime=k)}_.nY(_.Gb).prefetchCache_.clear();H||f.page!=="watch"||f.type!=="reduced"&&n!==1?n=KOH(V,f,H,!!J,D,t):(V.publishPageData(f),n=_.Qv());t=n.then(function(){var d=co(D);d={endpoint:D,pageType:d,fromHistory:H,response:f};d.navigationDoneMs=
_.zm("nd");V.fireEvent("yt-navigate-finish",d)});
f.csn&&Q&&f.clientSideGrafts&&n.then(V.attachClientSideGrafts.bind(V,f,_.u8()));return t};
_.P=QK.prototype;_.P.attachClientSideGrafts=function(V,D){V.clientSideGrafts&&D&&V.clientSideGrafts.forEach(function(f){if(D&&f){var n=_.gs(f);_.c("combine_ve_grafts")?_.lS().graftServerVe(f,D):_.Y8(V.csn,D,n)}})};
_.P.handleSignalActionHistoryBack=function(){window.history.back()};
_.P.handleSignalActionCloseWindow=function(){window.close()};
_.P.handleSignalActionReloadPage=function(){this.reload()};
_.P.handleSignalActionSoftReloadPage=function(){jDp(this)};
_.P.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.P.fireEvent=function(V,D){V=new CustomEvent(V,{bubbles:!0,cancelable:!1,composed:!0,detail:D});this.dispatchEvent(V)};
_.P.addEventListener=function(V,D){this.JSC$12491_clientRoot.addEventListener(V,D)};
_.P.dispatchEvent=function(V){return this.JSC$12491_clientRoot.dispatchEvent(V)};
_.P.removeEventListener=function(V,D){this.JSC$12491_clientRoot.removeEventListener(V,D)};
QK[L$]=[Jgu,_.J$];_.JXX=new VP("browse","h8y2qb");_.rXY=new VP("search","JzFVk");_.H7Y=new VP("shorts","xwEKAe");_.wU9=new VP("watchFixie","nmfa2d");_.Qhd=new VP("watchFlexy","CF909");_.Tyd=new VP("watchGrid","Tm0L3c");_.b7U=new VP("watchLearningJourney","L3n37");var GHo;var esV=function(){return _.E.apply(this,arguments)||this};
_.v(esV,_.E);_.IG.Object.defineProperties(esV,{template:{configurable:!0,enumerable:!0,get:function(){if(GHo===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);GHo=V}V=GHo;return V}}});
_.S([_.u(eaE.YtPlayerBehavior),_.p("design:type",Object)],esV.prototype,"ytPlayerBehavior",void 0);_.S([_.a({is:"ytd-player"})],esV);var cgF;var FOo;var gnH;var Ta=function(){var V=_.E.apply(this,arguments)||this;V.forceModernIconButton=!1;V.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return V};
_.v(Ta,_.E);Ta.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]]"}}}}}};
Ta.prototype.handleAccountLinkingStateChangedCommand=function(V){if(V=_.g(V,KjL)){var D,f=(D=this.data)==null?void 0:D.providerKey;D=V.providerKey;f&&D&&f.id===D.id&&f.subject===D.subject&&(V=V.linked,V!==void 0&&(this.set("data.linked",V),this.notifyPath("data.linked"),_.c("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(V)))}};
Ta.prototype.setPlayerAccountLinkState=function(V){var D=new Ju6;ruL(D,PT6(new tNV,V));var f=_.hI();f&&f.getPlayerPromise().then(function(n){n.setAccountLinkState(_.V3(D.JSC$10207_serializeBinary(),4));n.updateAccountLinkingConfig(V)})};
Ta.prototype.handleShowAccountLinkDialog=function(){var V=this.get("button.buttonRenderer.command");V&&_.bC([V],this.hostElement)};
_.IG.Object.defineProperties(Ta.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}}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],Ta.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ta.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ta.prototype,"overrides",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ta.prototype,"forceModernIconButton",void 0);_.S([_.q({value:"bottom"}),_.p("design:type",String)],Ta.prototype,"buttonTooltipPosition",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ta.prototype,"forceIconButton",void 0);_.S([_.q(),_.p("design:type",Boolean)],Ta.prototype,"disableTextTransform",void 0);
_.S([_.R("data","data.linked","data.isWarning"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ta.prototype,"button",null);_.S([_.a({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Ta);
_.Y(Ta,"ytd-account-link-button-renderer",function(){if(gnH!==void 0)return gnH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return gnH=V},{mode:1});var vnl;var kHP=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],bM=function(){return _.E.apply(this,arguments)||this};
_.v(bM,_.E);bM.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
bM.prototype.updateButtonActiveState=function(){var V=this,D=!!kHP.find(function(f){return V.currentState===f});
this.button&&(this.button.isPressed=D)};
_.IG.Object.defineProperties(bM.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.playlistLoopStateEntity)==null?void 0:V.state)||((D=this.data)==null?void 0:D.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var V=void 0,D;if(this.currentState&&((D=this.data)==null?0:D.states)){D=_.r(this.data.states);for(var f=D.next();!f.done;f=D.next()){f=_.g(f.value,_.Rcr);var n=void 0;if(((n=f)==null?void 0:n.state)===this.currentState){V=f;break}}}return V}}});
bM.prototype.updateButtonActiveState=bM.prototype.updateButtonActiveState;_.S([_.u(_.dh),_.p("design:type",Object)],bM.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.a_Y}),_.p("design:type",Object)],bM.prototype,"playlistLoopStateEntity",void 0);_.S([_.q(),_.p("design:type",Object)],bM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],bM.prototype,"forceIconOnly",void 0);_.S([_.Zv("ytd-button-renderer"),_.p("design:type",_.Lt)],bM.prototype,"button",void 0);
_.S([_.R("data","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],bM.prototype,"currentState",null);_.S([_.KI("currentButtonStateRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bM.prototype,"updateButtonActiveState",null);_.S([_.R("currentState"),_.p("design:type",Object),_.p("design:paramtypes",[])],bM.prototype,"currentButtonStateRenderer",null);
_.S([_.a({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],bM);
_.Y(bM,"ytd-playlist-loop-button-renderer",function(){if(vnl!==void 0)return vnl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return vnl=V},
{mode:1});var swL;var BGl=_.Zl("DOWNLOAD",{},"Download"),dxL=_.Zl("DOWNLOADING",{},"Downloading"),uaE=_.Zl("DOWNLOADED",{},"Downloaded"),NGu=_.Zl("RETRY",{},"Retry"),KC=function(){var V=_.E.apply(this,arguments)||this;V.forceIconButton=!1;V.forceIconOnly=!1;V.overrides=!1;V.buttonTooltipPosition=!1;V.styleActionButton=!1;V.disableTextTransform=!1;V.downloadProgress=0;V.isDownloadComplete=!1;V.isHidden=!0;V.transferState="TRANSFER_STATE_UNKNOWN";V.isVideoDeletedByUser=!1;V.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return V};
_.v(KC,_.E);_.P=KC.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var V;(V=this.data)!=null&&V.text||(V=_.CA(_.Ol().getState(),this.videoId),this.updateButtonState(V))};
_.P.computeVideoId=function(V){return V};
_.P.showHideButton=function(){this.updateButtonVisibility()};
_.P.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};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(V){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==dxL||!_.Gq(V))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(V){case "TRANSFER_STATE_UNKNOWN":V=BGl;var D="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":V=NGu;D="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":V=uaE;D="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":V=
dxL;D="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":V=NGu;D="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;default:V=BGl,D="OFFLINE_DOWNLOAD",f="ACTION_ADD"}this.isVideoDeletedByUser&&(V=BGl,D="OFFLINE_DOWNLOAD",f="ACTION_ADD");var n=Object.assign({},this.data);n.text=_.pA(V);n.tooltip=V;n.icon={iconType:D};n.size="SIZE_DEFAULT";n.style="STYLE_DEFAULT";_.g(n.command,_.Q1)&&(_.g(n.command,_.Q1).action=f);this.set("data",n)}};
_.P.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var V="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?V="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?V="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?V="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?V="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?V="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(V="OFFLINE_PIN",this.isDownloadComplete=!0);var D;V!==((D=this.data.icon)==null?void 0:D.iconType)&&(D=Object.assign({},this.data),D.text=_.pA(dxL),D.tooltip=dxL,D.icon={iconType:V},_.g(D.command,_.Q1)&&(_.g(D.command,_.Q1).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",D))}};
KC.prototype.updateProgress=KC.prototype.updateProgress;KC.prototype.onTransferStateChanged=KC.prototype.onTransferStateChanged;KC.prototype.showHideButton=KC.prototype.showHideButton;KC.prototype.dataChanged=KC.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],KC.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"forceIconButton",void 0);
_.S([_.q(),_.p("design:type",Object)],KC.prototype,"forceIconOnly",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"overrides",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"buttonTooltipPosition",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"styleActionButton",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"disableTextTransform",void 0);
_.S([_.q({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.p("design:type",String)],KC.prototype,"videoId",void 0);_.S([_.q(),_.p("design:type",Object)],KC.prototype,"data",void 0);_.S([_.q({selector:XC,selectorArgs:["videoId"]}),_.p("design:type",Object)],KC.prototype,"downloadProgress",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],KC.prototype,"isDownloadComplete",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],KC.prototype,"isHidden",void 0);_.S([_.q({selector:_.CA,selectorArgs:["videoId"]}),_.p("design:type",String)],KC.prototype,"transferState",void 0);_.S([_.q({selector:_.EBY,selectorArgs:["videoId"]}),_.p("design:type",Object)],KC.prototype,"isVideoDeletedByUser",void 0);_.S([_.q({selector:mTY,selectorArgs:["videoId"]}),_.p("design:type",Object)],KC.prototype,"offlineabilityState",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],KC.prototype,"showTooltips",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],KC.prototype,"sendCommandWhenDisabled",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],KC.prototype,"disabled",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KC.prototype,"dataChanged",null);
_.S([_.eY("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KC.prototype,"showHideButton",null);_.S([_.eY("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KC.prototype,"onTransferStateChanged",null);_.S([_.eY("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KC.prototype,"updateProgress",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],KC);
_.Y(KC,"ytd-download-button-renderer",function(){if(swL!==void 0)return swL;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return swL=V},{mode:2});var mxV;var zsF,Rs6=function(){if(zsF!==void 0)return zsF;var V=document.createElement("template");_.B(V,'\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 zsF=V};var CQl=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live"),qKu=_.tU("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,yK=function(){var V=_.E.apply(this,arguments)||this;V.isPressed=!1;V.forceIconButton=!1;V.forceIconOnly=!1;V.forceModernIconButton=!1;V.alignByText=!1;V.isShorts=!1;V.animatedText=!1;V.shouldAnimate=!1;V.JSC$12528_browserSupportsAnimation=_.c("web_supports_animations_api");V.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};V.onTap=function(){var D;if((D=V.data)==null||!D.defaultNavigationEndpoint){var f;D=!((f=V.data)==null?0:f.isToggled);var n;if((n=V.data)==null||!n.preventAutoToggle){V.shouldAnimate=!1;V.disableTextUpdateJobId&&_.dm.cancelJob(V.disableTextUpdateJobId);V.disableTextUpdateJobId=_.dm.addLowPriorityJob(function(){V.disableTextUpdateJobId=void 0},qKu);
var t;V.set("data.isToggled",!((t=V.data)==null?0:t.isToggled));f=V.getInnertubeIcon();n={toggled:D,actions:{}};f&&(n.actions[f.toLowerCase()]=D);_.PA(V.hostElement,"yt-toggle-button",n)}}};
return V};
_.v(yK,_.E);_.P=yK.prototype;_.P.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.dm.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.toggle=function(V){var D;this.set("data.isToggled",V!==void 0?V:!((D=this.data)==null?0:D.isToggled))};
_.P.handleUpdateToggleButtonStateCommand=function(V){if(this.data){V=_.g(V,vNo);var D,f,n,t=(D=this.data)==null?void 0:(f=D.toggleButtonSupportedData)==null?void 0:(n=f.toggleButtonIdData)==null?void 0:n.id;t&&V&&t===(V==null?void 0:V.buttonId)&&this.set("data.isToggled",V.toggled)}};
_.P.handleUpdateToggleButtonTextAction=function(V){if(this.data){V=_.g(V,w5Y);var D,f,n,t=(D=this.data)==null?void 0:(f=D.toggleButtonSupportedData)==null?void 0:(n=f.toggleButtonIdData)==null?void 0:n.id;t&&V&&t===(V==null?void 0:V.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=V.defaultNumericalValue,this.set("data.defaultText",V.defaultText),this.set("data.toggledText",V.toggledText),this.shouldAnimate=!1)}};
_.P.getInnertubeIcon=function(){var V=this.data;if(V){var D,f,n=((D=V.defaultIcon)==null?0:D.iconType)?(f=V.defaultIcon)==null?void 0:f.iconType:null,t,J;D=((t=V.toggledIcon)==null?0:t.iconType)?(J=V.toggledIcon)==null?void 0:J.iconType:n;return V.isToggled?D:n}};
_.P.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.IG.Object.defineProperties(yK.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V={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$12528_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var D=V.renderer;var f=V.element;var n=V.toggled;var t=V.onTapCallback;var J=V.commandClientArgs;var H=V.overrides;var Q=V.forceIcon;var T=V.forceModernIconButton;var y=V.forceDisabled;var Z=V.useAnimatedText;var l=V.animatedTextProps;V=S4Y(D,n);Q=!D.defaultIcon||!Q&&D.defaultText?D.defaultIcon?"leading":void 0:T?"icon-only":"icon-only-40";Q==="icon-only-40"&&(V.type="text");var G;T=Object;var F=T.assign,k;a:switch((k=
D.style)==null?void 0:k.styleType){case "STYLE_COMPACT_GRAY":k={size:"S"};break a;default:k={size:"M"}}var d=!!n;var z=(z=n&&D.toggledText||D.defaultText)?_.zK(z):void 0;Z?(Z=_.LA(n&&D.toggledText||D.defaultText))&&l&&!isNaN(Number(l.numberValue))?(l.numberText=Z,n&&(l.numberValue+=1),Z=l):Z=void 0:Z=void 0;var C,A,O,W;var I=(l=((A=n?D.toggledAccessibilityData||((I=D.toggledText)==null?void 0:I.accessibility):D.accessibilityData||((C=D.defaultText)==null?void 0:C.accessibility))==null?void 0:(O=A.accessibilityData)==
null?void 0:O.label)||((W=D.accessibility)==null?void 0:W.label))?l:_.LA(n&&D.toggledText||D.defaultText);y=y===void 0?D.isDisabled:y;f=i29(D,n,t,f,J);n=$u9(D,n);n!=null&&n.length?(n=_.A2({innertubeCommand:upF(n),forceNewState:!0}),n=a5(n)?n:void 0):n=void 0;D=F.call(T,{},V,k,{iconPosition:Q},H,{focused:!1,toggled:d,toggleable:!0,formattedButtonText:z,animatedTextProps:Z,accessibilityLabel:I,disabled:y,onTap:f,aTagConfig:n},tyF((G=D.colorData)==null?void 0:G.basicColorPaletteData));D.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(D.type="filled");return D}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var V=this.getInnertubeIcon();if(V)return _.Qa(V)}}});
yK.prototype.resetAnimation=yK.prototype.resetAnimation;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],yK.prototype,"isPressed",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"forceIconButton",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"forceIconOnly",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"forceModernIconButton",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"alignByText",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"overrides",void 0);
_.S([_.q(),_.p("design:type",Boolean)],yK.prototype,"disabled",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"isShorts",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"buttonTooltipPosition",void 0);_.S([_.q(),_.p("design:type",Object)],yK.prototype,"animatedText",void 0);_.S([_.q(),_.p("design:type",String)],yK.prototype,"textNumberValue",void 0);_.S([_.q({computed:"computeTooltip(data, data.isToggled)"}),_.p("design:type",Object)],yK.prototype,"tooltip",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yK.prototype,"resetAnimation",null);_.S([_.R("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.p("design:type",Object),_.p("design:paramtypes",[])],yK.prototype,"computedButtonShape",null);_.S([_.R("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],yK.prototype,"computedIcon",null);
_.S([_.a({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],yK);CQl&&_.Y(yK,"ytd-toggle-button-renderer",Rs6,{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var lGd=_.MA(function(V){function D(y){var Z;return _.w(function(l){if(l.nextAddress==1)return(Z=!pM3(y,Q())||!Q().enabled)?l.jumpTo(2):_.b(l,M33(),3);l.nextAddress!=2&&(Z=l.yieldResult);if(Z)return l.return();f();setTimeout(function(){H(!1)},1500);
_.yz(l)})}
function f(){setTimeout(function(){H(!0);var y;(y=n.lottieEl)==null||y.goToAndPlay(0)},150)}
var n=_.HW(),t=_.r(_.HJ(!1,void 0,"JJXzp")),J=t.next().value,H=t.next().value,Q=_.IU(V.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Nl(function(){var y,Z;((y=V.settings)==null?void 0:(Z=y.call(V))==null?void 0:Z.uniqueId)==="this is not intended behavior"&&_.zP(new _.cI("Smartimation Settings is undefined"))});
_.BJ(function(){Q().experimentEnabled&&(Q().enabled?Lhx(D):(H(!1),I_d(D)),_.dc(function(){I_d(D)}))},"FRiAUe");
_.BJ(function(){Q().timings.join("");Q().experimentEnabled&&(O2x(Q()),_.dc(function(){xuU(Q())}))},"VKiJOe");
var T=_.yT(function(){var y=n,Z=Q().uniqueId+"-border",l,G;var F="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((G=(l=_.DY().resolve(_.Vx(_.pm)))==null?void 0:l())!=null&&G?"dark":"light")+"_v2.json";return{animationRef:y,animationConfig:{name:Z,autoplay:!1,loop:!1,path:F}}},void 0,"tgykab");
t={};return _.K("yt-smartimation",{class:_.KT(V.className,"smartimation",(t["smartimation--experiment-enabled"]=function(){return Q().experimentEnabled},t["smartimation--active-border"]=J,t["smartimation--enable-masking"]=had(),t))},_.K(_.e,{cond:function(){return Q().experimentEnabled},
then:function(){return _.K("div",{class:"smartimation__border"},_.K(_.ft,{className:"smartimation__border-gradient",data:T,animationName:function(){return T().animationConfig.name}}))}}),_.K("div",{class:"smartimation__content"},V.children))},"C");
lGd.idomCompat=!0;_.fT(lGd,"yt-smartimation",{props:{className:_.WX,settings:_.WX}});var ZQ=function(){var V=_.E.apply(this,arguments)||this;V.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};V.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};V.shouldEnableSmartimation=!1;return V};
_.v(ZQ,_.E);ZQ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ZQ.prototype.onDataChanged=function(){var V,D;this.shouldEnableSmartimation=(((V=this.data)==null?void 0:(D=V.timedAnimationData)==null?void 0:D.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ZQ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var V=_.g(this.data.likeButton,_.C9),D=_.g(this.data.dislikeButton,_.C9);return!!((V==null?0:V.isToggled)||(D==null?0:D.isToggled))};
ZQ.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]]"}}}}}};
_.IG.Object.defineProperties(ZQ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var V,D,f=((V=this.data)==null?void 0:(D=V.timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:"like-dislike",timings:f,enabled:this.shouldEnableSmartimation,experimentEnabled:f.length>0}}}});
ZQ.prototype.onDataChanged=ZQ.prototype.onDataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZQ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],ZQ.prototype,"likeButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],ZQ.prototype,"dislikeButtonOverride",void 0);
_.S([_.R("shouldEnableSmartimation"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZQ.prototype,"smartimationSettings",null);_.S([_.KI("data"),_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZQ.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],ZQ);
_.Y(ZQ,"ytd-segmented-like-dislike-button-renderer",function(){if(mxV!==void 0)return mxV;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return mxV=V},{mode:1});var X4H;var Enp;(Enp=document.body)==null||Enp.setAttribute("rounded-container","");var Agl={};Agl.YtToggleButtonBehavior=[_.D6.YtActionHandlerBehavior,jH.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 V=this.data.isToggled;if(!this.isModal_(V)){if(!this.data.preventAutoToggle){this.toggle();var D={toggled:this.data.isToggled,actions:{}};D.actions[this.buttonIcon]=this.data.isToggled;_.PA(this.hostElement,"yt-toggle-button",D)}D=this.data.defaultServiceEndpoint||null;var f=this.data.toggledServiceEndpoint||null;if(D&&f||D&&this.data.preventAutoToggle)V=V?f:D,D=this.disableCommandHandlerOverride,_.c("killswitch_toggle_button_behavior_resolve_command")||D?_.HA(this.hostElement,
[V]):_.Km(V,this.hostElement),_.PA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:V})}},
stateChanged_:function(){var V=this.data;if(V){var D=V.isToggled;this._setEndpoint(this.computeEndpoint_(V));this._setServiceEndpoint(this.computeServiceEndpoint_(V));this._setButtonIcon(this.computeButtonIcon_(V,D));this._setButtonText(this.computeButtonText_(V,D));this._setButtonAccessibility(this.computeAccessibility_(V,D));this._setButtonTooltip(this.computeTooltip_(V,D));this._setButtonClass(this.computeButtonClass_(V,D));this._setIconPositionType(this.computeIconPositionType_(V));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=D):this.elements_.button.setAttribute("aria-pressed",D));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=D)}},
shouldSetIconActiveState_:function(){return _.c("kevlar_system_icons")},
toggle:function(V){this.set("data.isToggled",V!==void 0?V:!this.data.isToggled);_.c("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(V){if(V){var D,f;return!!((D=this.data)==null?0:(f=D.toggledServiceEndpoint)==null?0:f.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(V){return V&&V.defaultNavigationEndpoint||null},
computeButtonIcon_:function(V,D){var f=V&&V.defaultIcon?_.Qa(V.defaultIcon.iconType):null;V=V&&V.toggledIcon?_.Qa(V.toggledIcon.iconType):f;return D?V:f},
handleUpdateToggleButtonStateCommand_:function(V){V=V.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==V.buttonId&&this.toggle(V.toggled)},
computeButtonText_:function(V,D){return V?D&&V.toggledText||V.defaultText||null:null},
computeAccessibility_:function(V,D){return V?(D?this.get("toggledAccessibilityData.accessibilityData",V):this.get("accessibilityData.accessibilityData",V))||V.accessibility||null:null},
computeTooltip_:function(V,D){return V?D&&V.toggledTooltip||V.defaultTooltip||null:null},
computeButtonClass_:function(V,D){if(!V)return"";var f="",n=V.toggledStyle||V.style;if(D=D?n:V.style){D.styleType&&(D=D.styleType);try{f+=D.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.R2(t,D,typeof D),_.zP(t)}}if(V=V.size){V.sizeType&&(V=V.sizeType);try{f+=V.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.R2(t,V,typeof V),_.zP(t)}}return f.trim()},
computeIconPositionType_:function(V){return V&&V.iconPosition||null},
computeServiceEndpoint_:function(V){var D=V&&V.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:f&&V.command?V.command:null},
handleUpdateToggleButtonTextAction_:function(V){V=V.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==V.buttonId&&(this.set("data.defaultText",V.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",V.toggledText),this.notifyPath("data.toggledText"))}}];_.zk("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var aqp=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live"),jO=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.roundedContainer=!0;return V};
_.v(jO,_.E);jO.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
jO.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var V=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var D={toggled:!!this.data.isToggled,actions:{}};D.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var f,n;D.actions.playlistId=(f=this.data.defaultServiceEndpoint)==null?void 0:(n=f.playlistEditEndpoint)==null?void 0:n.playlistId;_.PA(this.hostElement,"yt-toggle-button",D)}(V=V?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(V)}};
jO.prototype.onYtNavigate=function(V){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);D&&(V.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(D))};
_.IG.Object.defineProperties(jO,{template:{configurable:!0,enumerable:!0,get:function(){if(X4H===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);X4H=V}V=X4H;return V}}});
jO.prototype.onYtNavigate=jO.prototype.onYtNavigate;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],jO.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],jO.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(Agl.YtToggleButtonBehavior),_.p("design:type",Object)],jO.prototype,"ytToggleButtonBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],jO.prototype,"data",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],jO.prototype,"showTooltips",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jO.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jO.prototype,"roundedContainer",void 0);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jO.prototype,"onYtNavigate",null);
_.S([_.a({is:"ytd-toggle-button-renderer",disableElementRegistration:aqp})],jO);var YKV;_.lM=new _.IH("PANEL_CONTROLLER_TOKEN");_.Ga=new _.IH("SHEET_CONTROLLER_TOKEN");_.eO=new _.IH("DIALOG_CONTROLLER_TOKEN");YKV=new _.IH("DIALOG_CONTAINER_TOKEN");var Jgd=_.Zl("DOWNLOAD",{},"Download"),rgR=_.Zl("DOWNLOADING",{},"Downloading"),HuL=_.Zl("DOWNLOADED",{},"Downloaded"),w4Z=_.Zl("RETRY",{},"Retry");var TG9=[],buY=!1;var $xF=_.MA(function(V){var D=GHx,f=function(){return""},n=ygd(V.data),t=Zux(V.data),J=jwY(V.data),H=lqx(V.data);
D=function(){var Q=V.data(),T=PQZ(Q,n(),t(),J(),H()),y=!!Q.videoId,Z=T.text;return{title:y?Z:void 0,tooltip:y?void 0:Z,accessibilityText:Z,onTap:T.onTap,iconName:T.iconType,style:Q.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:T.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:Q.buttonSize}};
f={};f=_.KT("ytDownloadButtonViewModelHost",(f.ytDownloadButtonViewModelIsHidden=function(){var Q=V.data(),T=H();return Q.playlistId||T()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||T()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},f));
return _.K("download-button-view-model",{class:f},_.K(_.HO,{data:D}))},"D");
$xF.idomCompat=!0;var SKl=_.MA(function(V){var D=V.backgroundLottieRef;var f=V.foregroundLottieRef;var n=V.children;var t=V.wrapperClass;var J=V.disableAnimation;V=function(){return(_.c("web_animated_actions")||_.c("web_animated_actions_v2"))&&!(J==null?0:J())};
return _.K("yt-animated-action",{class:_.KT("animated-action__container",t)},_.K("div",{class:"animated-action__content-with-background"},_.K(_.e,{cond:V,then:function(){return _.K(iuU,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:D==null?void 0:D(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(esY()?"dark":"light")+"_v5.json"}}}})}}),n),_.K(_.e,{cond:V,
then:function(){return _.K(iuU,{lottiePlayerProps:function(){return{animationRef:f==null?void 0:f(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(esY()?"dark":"light")+"_v4.json"}}}})}}))},"E");
SKl.idomCompat=!0;var iuU=_.MA(function(V){var D=V.wrapperClass;var f=V.lottieClass;var n=V.lottiePlayerProps;return _.K("div",{class:_.KT("animated-action__lottie",D),"aria-hidden":"true"},_.K(_.ft,{className:f,data:n,animationName:function(){return n().animationConfig.name}}))},"F");var cg9={isOpen:!1};var gnn={isAllowed:!1};var kHZ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var BG9={isOpen:!1};var uaR={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var WOl={response:void 0};var mxY=function(V,D){V=V===void 0?WOl:V;switch(D.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},V,{response:D.payload});default:return V}};var p4r={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var zsZ=function(V,D){V=V===void 0?p4r:V;switch(D.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},V,{nextDisabled:D.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},V,{nextCommand:D.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},V,{footerSubmissionData:D.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},V,{isImpersonationValid:D.payload});default:return V}};var LOE={reportFormData:void 0,reportDetailsFormData:void 0};var Rs3=function(V,D){V=V===void 0?LOE:V;switch(D.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},V,{reportFormData:D.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},V,{reportDetailsFormData:D.payload});default:return V}};var IqV=void 0;_.c("mweb_enable_redux_store_on_demand")||(IqV=new IW(CQY()));var cg=_.c("enable_web_delhi_icons");var OuP=_.MA(function(V){V=_.Or(V,{themeOverride:void 0,animationRef:{}});var D=V.animatedIconType,f=V.active,n=V.themeOverride,t=V.animationRef;V=V.staticIconFn;var J=_.r(_.HJ(void 0,void 0,"P5a72b")),H=J.next().value,Q=J.next().value,T=function(){a:{var z=D();var C=n==null?void 0:n();var A;C=(C==null?void 0:C.useDarkTheme)||((A=_.DY().resolve(_.Vx(_.pm)))==null?void 0:A());switch(z){case "LIKE":IqV||(IqV=new IW(CQY()));z=(z=E3x(IqV.getState()))&&z.animationLightUrl&&z.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:C?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:C?z.animationDarkUrl:z.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(z){C=z;break a}C="animated_like_icon_"+(C?"dark":"light")+"_"+(cg?"v5":"v4");C={lottiePlayerProps:{animationConfig:{name:C,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+C+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(cg?" animated-like-icon-delhi":"")}}},totalFrames:cg?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":C={lottiePlayerProps:{animationConfig:{name:C?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(C?"dark":"light")+(cg?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(cg?" animated-subscribe-icon-delhi":"")}}},totalFrames:cg?120:79,lazyLoad:!1};break a}C=
void 0}return C},y=function(){var z,C;
return(C=(z=T())==null?void 0:z.lottiePlayerProps.animationConfig.name)!=null?C:""},Z=function(){if(T()){var z=T().lottiePlayerProps.animationConfig.path;
return be.get(z)||H()}};
J=_.r(_.HJ(!1,void 0,"h6xR3c"));var l=J.next().value;J=J.next().value;var G=X4n(J),F=function(){var z=T(),C,A,O;return(O=z==null?void 0:(C=z.lottiePlayerProps.animationConfig)==null?void 0:(A=C.rendererSettings)==null?void 0:A.className)!=null?O:""},k=void 0,d=void 0;
_.BJ(function(){var z=T(),C=y(),A=Z(),O=l(),W=f();if(z&&(d!==C&&(d=C,k=W,C=t(),G.animationConfig=z.lottiePlayerProps.animationConfig,G.animationRef=C,A&&(G.animationConfig.animationData=A,G.animationConfig.path=void 0),C=z.lottiePlayerProps.animationConfig.path,!be.get(C)&&z.lazyLoad&&C&&qKd(C,Q)),!(O||z.lazyLoad&&!A))){if(A=!t().lottieEl)W?(O=z.totalFrames,G.animationConfig.initialSegment=[O-1,O]):G.animationConfig.initialSegment=void 0;if(k!==W&&!A)if(A=t(),W){var I;(I=A.lottieEl)==null||I.playSegments([0,
z.totalFrames],!0)}else{var x;(x=A.lottieEl)==null||x.playSegments([0,1],!0)}k=W}},"YCYOCe");
return _.K("animated-icon",{class:"ytAnimatedIconHost"},_.K(_.e,{cond:function(){var z,C;return!((z=T())==null||!z.lottiePlayerProps.animationConfig.path||((C=T())==null?0:C.lazyLoad)&&!Z()||l())},
then:function(){return _.K(_.ft,{data:G,animationName:y,className:F,animationRef:t})},
else:V}))},"G");_.FH=_.MA(function(V){var D=_.W2("yt-subscribe-button-view-model"),f=_.W2("div"),n=_.W2("div"),t=_.HW(),J=_.HW(),H=_.HW(),Q=_.KX(RaX,function(){return V.data().stateEntityStoreKey}),T=_.KX(ChZ,function(){var Ko,Eu;
return(Eu=(Ko=V.data().notificationStateEntityStoreKeys)==null?void 0:Ko.subsNotificationStateKey)!=null?Eu:""}),y=function(){return!V.data().enableSubscribeButtonPostClickAnimation},Z=_.r(_.HJ(0,void 0,"eTsWvc")),l=Z.next().value,G=Z.next().value;
Z=_.r(_.HJ(0,void 0,"dniDQ"));var F=Z.next().value,k=Z.next().value;Z=_.r(_.HJ(!1,void 0,"EluPic"));var d=Z.next().value,z=Z.next().value;Z=_.r(_.HJ(!1,void 0,"r0jnre"));var C=Z.next().value,A=Z.next().value;Z=_.r(_.HJ(!1,void 0,"KMvoQe"));var O=Z.next().value,W=Z.next().value,I;Z=_.r(_.HJ(!1,void 0,"aSENce"));var x=Z.next().value,oY=Z.next().value,wZ=function(){A(!0);_.lf(_.dm,function(){A(!1)},1500)};
_.BJ(function(){var Ko=C();rc(function(){Ko&&!y()&&Q()&&LOR(t,J,H)})},"LgmX6c");
_.BJ(function(){var Ko=Q();rc(function(){if(!y()&&Ko){var Eu;((Eu=V.animateWidth)==null?0:Eu.call(V))&&p4c(D.value,!!Ko.subscribed,l(),F());var y0,BH;((y0=I)==null?0:y0.subscribed)||!Ko.subscribed||Ko.key!==((BH=I)==null?void 0:BH.key)||wZ();I=Ko}})},"iZzoUb");
Z=_.yT(function(){var Ko,Eu,y0,BH=V.data(),wu=!((Ko=Q())==null||!Ko.subscribed);Ko=!((Eu=V.isOverlay)==null||!Eu.call(V));Eu=d()?D:void 0;var lF=(y0=T())==null?void 0:y0.state;y0=x();WO9(BH,lF);return aqF({model:BH,subscribed:wu,isOverlay:Ko,element:Eu,notificationState:lF,disableTextEllipsis:!0,focused:y0})},void 0,"yGQGue");
var ZZ=function(){var Ko;if(!y()&&((Ko=V.animateWidth)==null?0:Ko.call(V))&&(f==null?0:f.value)&&(n==null?0:n.value)&&!O()){Ko=Q();var Eu=_.r((Ko==null?0:Ko.subscribed)?[f,n]:[n,f]),y0=Eu.next().value;Eu=Eu.next().value;y0=Math.ceil(y0.value.getBoundingClientRect().width);Eu=Math.ceil(Eu.value.getBoundingClientRect().width);G(y0);k(Eu);p4c(D.value,!(Ko==null||!Ko.subscribed),y0,Eu);W(!0)}},sd=_.jl(function(Ko){ZZ();
var Eu=Q();Eu&&(Ko.detail.endpoint.subscribeEndpoint||Ko.detail.endpoint.unsubscribeEndpoint)&&$x9(D.value,!Eu.subscribed,Eu)}),NU=function(){var Ko=_.DY().resolve(_.Vx(_.PO));
Ko&&oY(Ko.isKeyBoardInUse())},Bn=function(){oY(!1)};
_.Se("yt-player-subscribe",function(Ko){var Eu=Q();Eu&&Ko===V.data().channelId&&$x9(D.value,!0,Eu)});
_.Se("yt-player-unsubscribe",function(Ko){var Eu=Q();Eu&&Ko===V.data().channelId&&$x9(D.value,!1,Eu)});
_.Se("yt-update-subscribe-button-action",function(Ko){Ko=_.g(Ko,Hpr);var Eu=Q();Eu&&Ko&&Ko.channelId===V.data().channelId&&$x9(D.value,!!Ko.subscribed,Eu)});
_.Nl(function(){D.value&&(D.value.addEventListener("focusin",NU),D.value.addEventListener("focusout",Bn));var Ko=_.gq(_.dm,function(){ZZ()});
z(!0);_.dc(function(){_.dm.cancelJob(Ko);D.value&&(D.value.removeEventListener("focusin",NU),D.value.removeEventListener("focusout",Bn))})});
var aY=function(){var Ko,Eu,y0;if(y0=!((Ko=Q())==null||!Ko.subscribed))Ko=!!V.data().disableNotificationBell,y0=(Eu=T())==null?void 0:Eu.state,y0=!Ko&&!!y0;return y0},Ed=function(){var Ko;
return!((Ko=Q())==null?0:Ko.subscribed)},V0=function(){var Ko,Eu;
if(Eu=Ed()){Eu=!!V.data().disableNotificationBell;var y0=(Ko=T())==null?void 0:Ko.state;Eu=!Eu&&!!y0}return Eu},kf={},mY={};
return _.K("yt-subscribe-button-view-model",{class:_.KT(V.className,"yt-subscribe-button-view-model-wiz",(kf["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Ko,Eu;return!((Ko=Q())==null||!Ko.subscribed)&&((Eu=V.animateWidth)==null?void 0:Eu.call(V))&&C()},kf["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Ko;
return!((Ko=Q())==null?0:Ko.subscribed)&&V.data().hideWhenUnsubscribed},kf)),
el:D,"on:yt-service-request-sent":sd},_.K(SKl,{backgroundLottieRef:t,foregroundLottieRef:J,wrapperClass:_.KT("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(mY["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Ko;return((Ko=V.animateWidth)==null?void 0:Ko.call(V))&&C()},mY["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Ko;
return!((Ko=V.animateWidth)==null?0:Ko.call(V))},mY)),
disableAnimation:y},_.K("div",{el:f,class:"yt-subscribe-button-view-model-wiz__container"},_.K(xC,{data:Z,icon:function(){return _.K(_.e,{cond:aY,then:function(){var Ko=function(){var Eu;return YKY((Eu=T())==null?void 0:Eu.state)};
return _.K(_.e,{cond:function(){return y()||Ko()!=="NOTIFICATIONS_NONE"},
then:function(){return _.K(_.cj,{icon:Ko})},
else:function(){return _.K(OuP,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:H})}})}})},
secondaryIconName:function(){return aY()?"EXPAND":void 0}}))),_.K("div",{el:n,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.K(_.e,{cond:function(){var Ko;return((Ko=V.animateWidth)==null?void 0:Ko.call(V))&&!y()&&!O()},
then:function(){return _.K(xC,{data:_.yT(function(){var Ko;return aqF({model:V.data(),subscribed:Ed(),isOverlay:!((Ko=V.isOverlay)==null||!Ko.call(V)),element:D,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Ko;return V0()?YKY((Ko=T())==null?void 0:Ko.state):void 0},
secondaryIconName:function(){return V0()?"EXPAND":void 0}})}})))},"H");
_.FH.idomCompat=!0;var IqY=new _.IH("RENDERER_STAMPER_OPTIONS_TOKEN");var xxV=_.MA(function(V){var D=V.data;var f=_.KX(RaX,function(){return D().subscriptionStateEntityKey});
return _.K(_.e,{cond:function(){var n=D(),t=f();return!n.hideWhenUnsubscribed||(t==null?0:t.subscribed)?_.g(D().button,_.cW):void 0},
then:function(n){return _.K("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.K(_.HO,{data:n,buttonOverrides:function(){return{toggled:!0}}}))}})},"I");
xxV.idomCompat=!0;var t7X=_.eK({buttonViewModel:_.HO,subscribeButtonViewModel:_.FH,downloadButtonViewModel:$xF,toggleButtonViewModel:_.FA,subscribePlusButtonViewModel:xxV});_.V$(oY9);var GZ3=new _.IH("RENDERER_LOGGER_TOKEN");var kC;_.vW=new Ixp;kC=new Map;var Z0d="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),lfF=["notificationTextRenderer","notificationMultiActionRenderer"],jrF="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
yox=JoZ(function(V){return _.Nq(V==null?void 0:V.targetId)}).useUpdatableData;var KB9=0;_.BW.debugName="EjJbCe";var Mul=_.MA(function(V){return _.K(_.BW,{data:function(){return V.actionRow().actions}},{buttonViewModel:function(D){var f=D.data;
return _.K(gD,{isRow:V.isRow,isIconOnlyButton:function(){return eZx(f())},
useIntrinsicWidth:V.useIntrinsicWidth},_.K(_.HO,{data:f}))},
subscribeButtonViewModel:function(D){return _.K(gD,{isRow:V.isRow},_.K(_.FH,{data:D.data,isOverlay:!1,animateWidth:function(){return!V.isRow()}}))},
downloadButtonViewModel:function(D){var f=D.data;return _.K(gD,{isRow:V.isRow,isIconOnlyButton:function(){return!!f().playlistId}},_.K($xF,{data:f}))},
toggleButtonViewModel:function(D){var f=D.data;return _.K(gD,{isRow:V.isRow,isIconOnlyButton:function(){var n=f();return eZx(_.g(n.isToggled?n.toggledButtonViewModel:n.defaultButtonViewModel,_.cW))}},_.K(_.FA,{data:f}))},
subscribePlusButtonViewModel:function(D){return _.K(gD,{isRow:V.isRow},_.K(xxV,{data:D.data}))}})},"J"),gD=_.MA(function(V){var D={};
return _.K("div",{class:_.KT("yt-flexible-actions-view-model-wiz__action",(D["yt-flexible-actions-view-model-wiz__action--row-action"]=V.isRow,D["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=V.useIntrinsicWidth,D["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,D["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=V.isIconOnlyButton,D))},V.children)},"K"),hsu=_.MA(function(V){var D=function(){var n;
return((n=V.layout)==null?void 0:n.call(V))===1},f={};
return _.K("yt-flexible-actions-view-model",{class:_.KT("yt-flexible-actions-view-model-wiz",V.className,(f["yt-flexible-actions-view-model-wiz--inline"]=function(){return!D()},f["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return V.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},f))},_.K(_.FB,{each:function(){return V.data().actionsRows||[]}},function(n){return _.K(_.e,{cond:D,
then:function(){return _.K("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.K(Mul,{actionRow:n,isRow:D,useIntrinsicWidth:function(){return!!V.data().respectActionIntrinsicWidth}}))},
else:function(){return _.K(Mul,{actionRow:n,isRow:D})}})}))},"L"),vg=_.c("web_enable_sink_yt_flexible_actions_view_model")?hsu:_.Zn(oY9);
hsu.idomCompat=!0;_.fT(vg,"yt-flexible-actions-view-model",{props:{data:_.WX,layout:_.WX,justifyContentOverride:_.WX,className:_.WX}});_.kE=_.MA(function(V){var D=_.KX(qa,function(){var t;return(t=V.data().dislikeEntityKey)!=null?t:""}),f=_.yT(function(){var t=D();
return t?t.likeStatus==="DISLIKE":_.g(V.data().toggleButtonViewModel,_.FO).isToggled},void 0,"B2tgKf"),n=_.yT(function(){return Object.assign({},_.g(V.data().toggleButtonViewModel,_.FO),{isToggled:f()})},void 0,"otfIbf");
return _.K("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.K(_.FA,{data:n,buttonShapeOverrides:V.buttonShapeOverrideables,onToggle:function(t){var J=D();J&&t!==(J.likeStatus==="DISLIKE")&&J.key&&_.LI(_.XW("likeStatusEntity",J.key,{likeStatus:t?"DISLIKE":"INDIFFERENT",hadUserInteraction:t}))}}))},"M");
_.kE.idomCompat=!0;_.s8=_.MA(function(V){var D=_.c("web_supports_animations_api"),f=Um(function(G){var F=y();if(!G){var k,d;return{numberText:(d=F==null?void 0:(k=F.likeCountIfIndifferent)==null?void 0:k.content)!=null?d:"",numberValue:Number(F==null?void 0:F.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var z;k=(F==null?void 0:(z=F.likeCountIfIndifferent)==null?void 0:z.content)!==G.numberText;if(Q()||!k)return G;var C;return{numberText:(F==null?void 0:(C=F.likeCountIfIndifferent)==null?void 0:C.content)||
"",numberValue:Number(F==null?void 0:F.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!F}}),n=Um(function(G){var F=y();
if(!G){var k,d;return{numberText:(d=F==null?void 0:(k=F.likeCountIfLiked)==null?void 0:k.content)!=null?d:"",numberValue:Number(F==null?void 0:F.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var z;k=(F==null?void 0:(z=F.likeCountIfIndifferent)==null?void 0:z.content)!==G.numberText;if(Q()||!k)return G;var C;return{numberText:(F==null?void 0:(C=F.likeCountIfLiked)==null?void 0:C.content)||"",numberValue:Number(F==null?void 0:F.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!F}}),t=_.r(_.HJ(void 0,
void 0,"xYSlUe")),J=t.next().value,H=t.next().value,Q=J,T=_.KX(qa,function(){var G,F;
return(F=(G=V.data())==null?void 0:G.likeStatusEntityKey)!=null?F:""}),y=_.KX(w3U,function(){var G,F;
return((G=V.likeCountEntity)==null?void 0:(F=G.call(V))==null?void 0:F.key)||""}),Z=_.yT(function(){var G;
return((G=T())==null?void 0:G.likeStatus)==="LIKE"},void 0,"DG5Osd"),l=function(){var G;
return D&&!((G=V.likeCountEntity)==null||!G.call(V))};
return _.K("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.K(_.FA,{data:function(){var G=Object,F=G.assign,k;var d=_.g((k=V.data())==null?void 0:k.toggleButtonViewModel,_.FO);return F.call(G,{},d||{},{isToggled:Z()})},
buttonShapeOverrides:V.buttonShapeOverrideables,animatedTextPropsDefault:function(){return l()?f():void 0},
animatedTextPropsToggled:function(){return l()?n():void 0},
onToggle:function(G){con(G,T(),Q(),H)},
style:function(){var G;return((G=V.disableIconAnimation)==null?0:G.call(V))?void 0:{animateIcon:"true"}}}))},"N");
_.s8.idomCompat=!0;var UxV=_.MA(function(V){var D=function(){return _.g(V.data().likeButtonViewModel,_.d0)},f=function(){var t;
return((t=D())==null?void 0:t.likeStatusEntityKey)||""},n=_.yT(function(){var t,J;
var H=(J=_.KX(qa,f)())!=null?J:(t=D())==null?void 0:t.likeStatusEntity;t=V.data();var Q;t=(t==null?void 0:(Q=t.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:(H==null?void 0:H.likeStatus)==="INDIFFERENT"&&t.length>0,experimentEnabled:t.length>0}},void 0,"hGh9Td");
return _.K("segmented-like-dislike-button-view-model",{class:_.KT("ytSegmentedLikeDislikeButtonViewModelHost",V.className),"button-renderer":!0},_.K(lGd,{settings:n},_.K("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.K(_.e,{cond:D,then:function(t){return _.K(_.s8,{data:t,likeCountEntity:function(){return V.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.K(_.e,{cond:function(){return _.g(V.data().dislikeButtonViewModel,_.Bc)},
then:function(t){return _.K(_.kE,{data:t,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"O");
UxV.idomCompat=!0;_.fT(UxV,"segmented-like-dislike-button-view-model",{props:{data:_.WX,className:_.WX}});var V7Y=_.MA(function(V){var D=V.data;var f=V.className;var n=V.setMinWidth;var t=V.forceIconOnly;var J=_.W2("account-link-button-view-model"),H=_.KX(_.FBR,function(){var G;return(G=D().accountLinkStatusEntityKey)!=null?G:""}),Q=_.KX(_.FBR,function(){var G;
return(G=D().accountLinkStatusSecondaryEntityKey)!=null?G:""}),T=function(){if(!_.c("web_account_link_secondary_killswitch")){var G,F;
return((G=H())==null?void 0:G.linked)||((F=Q())==null?void 0:F.linked)}var k;return(k=H())==null?void 0:k.linked};
_.BJ(function(){var G=H();if(G){var F=ruL(new Ju6,PT6(new tNV,!!G.linked));_.JY().then(function(k){k&&(k.setAccountLinkState(_.V3(F.JSC$10207_serializeBinary(),4)),k.updateAccountLinkingConfig(!!G.linked))})}},"b9pSsf");
var y=function(){return _.g(D().toggleButtonViewModel,_.FO)};
_.Se("yt-signal-action-show-account-link-dialog",function(){if(y()){var G=T()?y().toggledButtonViewModel:y().defaultButtonViewModel;G=_.g(G,_.cW);var F;if((F=H())==null?0:F.isWarning){F=_.g(D().warningButtonViewModel,_.cW);if(!F){_.$w(Error("Fh"));return}G=F}var k;(F=_.Xo((k=G)==null?void 0:k.onTap))&&_.bC([F],J.value)}else _.$w(Error("Gh"))});
var Z=function(){var G=y();return Object.assign({},G,{isToggled:T()})},l=function(){return(t==null?0:t())?{iconPosition:"icon-only"}:{}};
return _.K("account-link-button-view-model",{class:_.KT("ytwAccountLinkButtonViewModelHost",f,function(){return(n==null?0:n())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:J,"button-renderer":!0},_.K("div",null,_.K(_.e,{cond:function(){var G;if((G=H())==null?0:G.isWarning)return(G=_.g(D().warningButtonViewModel,_.cW))||_.$w(Error("Fh")),G},
then:function(G){return _.K(_.HO,{data:G,buttonOverrides:l})},
else:function(){return _.K(_.FA,{data:Z,buttonShapeOverrides:l})}})))},"P");_.fT(V7Y,"account-link-button-view-model",{props:{data:_.WX,className:_.Dn,setMinWidth:_.Dn,forceIconOnly:_.Dn}});_.zk("menuRenderer","menuRenderer","ytd-menu-renderer");
var Dgl={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"}},
ffE=_.c("web_fix_missing_action_buttons")?100:200,Bg=function(){var V=_.E.apply(this,arguments)||this;V.safeArea=!_.c("kevlar_flex_menu_safe_area_killswitch");V.tonalOverride=!1;V.threeDotSize="M";V.isOverlay=!1;V.useOverlayDark=!1;V.topLevelIconsOnly=!1;V.JSC$12662_lastWidth=0;V.maybeUpdateFlexibleMenu=function(){_.c("web_fix_missing_action_buttons")?requestAnimationFrame(V.maybeUpdateFlexibleMenuImpl):V.maybeUpdateFlexibleMenuImpl()};
V.maybeUpdateFlexibleMenuImpl=function(){var D;if((D=V.data)!=null&&D.flexibleItems){V.maybeFlushDebouncer();D=V.hostElement.clientWidth;var f=D>V.JSC$12662_lastWidth,n,t=((n=V.topLevelButtonsContainer)==null?void 0:n.scrollHeight)||0,J;n=((J=V.flexibleItemButtonsContainer)==null?void 0:J.scrollHeight)||0;J=V.hostElement.scrollHeight>Math.max(t,n)+8;f?(V.resetFlexibleItems(),V.JSC$12662_lastWidth=V.hostElement.clientWidth,V.maybeUpdateFlexibleMenu()):J&&(V.shrinkFlexibleMenu(),V.JSC$12662_lastWidth=
D)}};
V.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){V.onOverflowTap()},
iconPosition:"icon-only",style:V.isOverlay?V.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:V.threeDotSize,state:"active",accessibilityLabel:V.computeAccessibilityLabel(V.data)},V.threeDotButtonOverride)};
V.onOverflowTap=function(){if(V.data.fetchMenuCommand)_.DY().resolve(_.fH).resolveCommand(V.data.fetchMenuCommand,{form:{element:V.hostElement}});else if(V.data.isDisabled&&V.data.disabledCommand)_.Km(V.data.disabledCommand,V.hostElement);else{var D=V.createMenuRendererVe(),f={items:V.items};V.data.menuPopupAccessibility&&(f.menuPopupAccessibility=V.data.menuPopupAccessibility);V.data.footer&&(f.footer=V.data.footer);D={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f},veData:D}};
_.DY().resolve(_.Ga).openSheet({openPopupActionCommand:D},V.hostElement)}};
return V};
_.v(Bg,_.E);_.P=Bg.prototype;_.P.updateButtonOverrides=function(){if(!_.c("menu_renderer_label_update_upkillswitch")){var V=_.Pt(this.hostElement).querySelector("yt-button-view-model");V&&(V.buttonOverrides=this.buttonOverrides)}};
_.P.computeHasItems=function(){var V;return((V=this.topLevelButtonData)==null?void 0:V.length)||this.hasFlexibleItems};
_.P.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.P.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.wI(this.hostElement,{"--ytd-menu-renderer-button-color":_.AP(this.data.iconColor)}))};
_.P.onStamperFinished=function(){this.JSC$12662_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.P.setupFlexibleMenu=function(){var V=this,D;(D=this.data)!=null&&D.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.I7(this.maybeUpdateFlexibleMenu,ffE,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){V.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))};
_.P.maybeFlushDebouncer=function(){if(_.c("web_replace_formatted_with_attributed_string")){var V;(V=this.topLevelButtons)==null||V.forEach(function(f){var n;(f=(n=f.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&m6d(f)});
var D;(D=this.flexibleItemButtons)==null||D.forEach(function(f){var n;(f=(n=f.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&m6d(f)})}};
_.P.resetFlexibleItems=function(){var V;if((V=this.data)!=null&&V.flexibleItems){_.c("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var D;this.flexAsTopLevelButtons=(D=this.data.flexibleItems)==null?void 0:D.map(function(f){return _.g(f,_.CyH).topLevelButton});
_.c("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.P.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.P.shrinkFlexibleMenu=function(){var V;(V=this.flexAsTopLevelButtons)!=null&&V.length&&(this.flexAsTopLevelButtons=[].concat(_.sz(this.flexAsTopLevelButtons.slice(0,-1))))};
_.P.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Dgl,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Dgl,events:!0}}};
_.P.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.detached=function(){this.icon="MORE_VERT"};
_.P.computeTopLevelButtonData=function(V){if(!V)return[];var D;V=(D=V==null?void 0:V.topLevelButtons)!=null?D:[];return _.sB.unsafeClone([].concat(_.sz(V)))};
_.P.computeItems=function(V,D){if(!V)return[];var f=[];if(D){var n=(V.flexibleItems||[]).map(function(H){return _.g(H,_.CyH)});
n=_.r(n);for(var t=n.next();!t.done;t=n.next())t=t.value,D.includes(t.topLevelButton)||(t=t.menuItem)&&f.push(t)}var J;V=(J=V==null?void 0:V.items)!=null?J:[];return[].concat(_.sz(f),_.sz(V))};
_.P.computeMenuActive=function(V,D){return V||D};
_.P.onPopupOpened=function(){this.overlayOpen=!0;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.P.onPopupClosed=function(){this.overlayOpen=!1;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.onPopupCanceled=function(){this.overlayOpen=!1;_.PA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.computeAccessibilityLabel=function(V){return this.get("accessibility.accessibilityData.label",V)};
_.P.isHidden=function(V,D){return this.tonalOverride||!V?!0:V.fetchMenuCommand||V.isDisabled&&V.disabledCommand?!1:!(D==null?0:D.length)};
_.P.isModernOverflowHidden=function(V,D){return this.tonalOverride&&V?V.fetchMenuCommand?!1:!(D==null?0:D.length):!0};
_.P.createMenuRendererVe=function(){var V=this.data.trackingParams,D=_.Ni(),f=_.u8();return V&&D&&f?(V=_.gs(V),f=_.Bj(7591),_.c("combine_ve_grafts")?_.oj(_.lS(),f,V):_.Y8(D,V,f),f):null};
_.IG.Object.defineProperties(Bg.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.flexAsTopLevelButtons)==null||!V.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Bg.prototype.onPopupCanceled=Bg.prototype.onPopupCanceled;Bg.prototype.onPopupClosed=Bg.prototype.onPopupClosed;Bg.prototype.onPopupOpened=Bg.prototype.onPopupOpened;Bg.prototype.tonalOverrideChanged=Bg.prototype.tonalOverrideChanged;Bg.prototype.resetFlexibleItems=Bg.prototype.resetFlexibleItems;Bg.prototype.setupFlexibleMenu=Bg.prototype.setupFlexibleMenu;Bg.prototype.iconButtonColorChanged=Bg.prototype.iconButtonColorChanged;Bg.prototype.updateButtonOverrides=Bg.prototype.updateButtonOverrides;
_.S([_.u(_.WO),_.p("design:type",Object)],Bg.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#button-shape"),_.p("design:type",rM)],Bg.prototype,"buttonShape",void 0);_.S([_.Zv("#button"),_.p("design:type",Object)],Bg.prototype,"button",void 0);
_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"data",void 0);_.S([_.q({computed:"computeTopLevelButtonData(data)"}),_.p("design:type",Array)],Bg.prototype,"topLevelButtonData",void 0);_.S([_.q(),_.p("design:type",Array)],Bg.prototype,"flexAsTopLevelButtons",void 0);_.S([_.q({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.p("design:type",Array)],Bg.prototype,"items",void 0);_.S([_.q({value:"MORE_VERT"}),_.p("design:type",String)],Bg.prototype,"icon",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bg.prototype,"safeArea",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.p("design:type",Boolean)],Bg.prototype,"menuActive",void 0);_.S([_.q(),_.p("design:type",Boolean)],Bg.prototype,"menuFocused",void 0);_.S([_.q({value:"bottom"}),_.p("design:type",String)],Bg.prototype,"buttonTooltipPosition",void 0);_.S([_.q(),_.p("design:type",Boolean)],Bg.prototype,"overlayOpen",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],Bg.prototype,"forceIconButton",void 0);_.S([_.q(),_.p("design:type",Boolean)],Bg.prototype,"styleActionButton",void 0);_.S([_.q(),_.p("design:type",Boolean)],Bg.prototype,"disableTextTransformOnButtons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bg.prototype,"tonalOverride",void 0);_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"threeDotSize",void 0);
_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"threeDotButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"isOverlay",void 0);_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"useOverlayDark",void 0);_.S([_.q({computed:"computeButtonOverride(tonalOverride)"}),_.p("design:type",Object)],Bg.prototype,"buttonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bg.prototype,"hasCustomIconColor",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("flexAsTopLevelButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bg.prototype,"hasFlexibleItems",null);_.S([_.q({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.p("design:type",Boolean)],Bg.prototype,"hasItems",void 0);_.S([_.q(),_.p("design:type",Object)],Bg.prototype,"topLevelIconsOnly",void 0);
_.S([_.KI("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"updateButtonOverrides",null);_.S([_.R("topLevelIconsOnly"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bg.prototype,"buttonOverrides",null);_.S([_.Zv("#top-level-buttons-computed"),_.p("design:type",HTMLElement)],Bg.prototype,"topLevelButtonsContainer",void 0);_.S([_.jY(".top-level-buttons > *"),_.p("design:type",Array)],Bg.prototype,"topLevelButtons",void 0);
_.S([_.Zv("#flexible-item-buttons"),_.p("design:type",HTMLElement)],Bg.prototype,"flexibleItemButtonsContainer",void 0);_.S([_.jY("#flexible-item-buttons > *"),_.p("design:type",Array)],Bg.prototype,"flexibleItemButtons",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"iconButtonColorChanged",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"setupFlexibleMenu",null);_.S([_.eY("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"resetFlexibleItems",null);_.S([_.KI("tonalOverride"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"tonalOverrideChanged",null);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"onPopupOpened",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"onPopupClosed",null);_.S([_.bU("yt-popup-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bg.prototype,"onPopupCanceled",null);
_.Y(Bg,"ytd-menu-renderer",function(){if(FOo===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);FOo=V}V=FOo;return V},{mode:_.J2("kevlar_poly_si_batch_j030")?1:2});var nYl;var t7Y;_.dD=_.MA(function(V){var D=V.data;var f=function(){if(D().icon)a:{var n={iconName:D().icon};for(var t=_.DY().resolve(_.TK),J=_.r([12,24]),H=J.next();!H.done;H=J.next()){var Q=H.value;H=Object.assign({},n,{iconStyle:"youtube_fill",iconSize:Q});Q=Object.assign({},n,{iconStyle:"youtube_outline",iconSize:Q});if(t.resolveIcon(H)){n=H;break a}if(t.resolveIcon(Q)){n=Q;break a}}n=void 0}else n=void 0;return n};
V={};return _.K("badge-shape",{class:_.KT("badge-shape-wiz",function(){return dgd(D().type)},(V["badge-shape-wiz--overlay"]=function(){return D().isOverlay},V["badge-shape-wiz--ads-include-dot"]=function(){return D().adsIncludeDot},V["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(D().type){case 16:case 17:case 18:var n=!0;
break a;default:n=!1}return n},V["badge-shape-wiz--status-badge"]=function(){a:switch(D().type){case 11:case 12:case 13:case 14:case 15:var n=!0;
break a;default:n=!1}return n},V["badge-shape-wiz--no-text"]=function(){return!D().text},V["badge-shape-wiz--modern"]=function(){return D().modern||_.c("web_modern_badge_shape")},V)),
style:_.el({"background-color":function(){var n;return(n=D().customColors)==null?void 0:n.backgroundColor}}),
role:function(){return D().accessibilityText?"img":void 0},
"aria-label":function(){return D().accessibilityText}},_.K(_.e,{cond:function(){return D().animation},
then:function(n){return _.K(_.ft,{className:"badge-shape-wiz__icon",data:n,animationName:function(){return n().animationConfig.name||""}})}}),_.K(_.e,{cond:function(){var n;
return f()&&!((n=D())==null?0:n.animation)},
then:function(){return _.K("div",{class:"badge-shape-wiz__icon"},_.K(Ojc,{data:function(){return f()}}))}}),_.K("div",{class:"badge-shape-wiz__text"},function(){var n;
return(n=D())==null?void 0:n.text}))},"Q");
_.dD.idomCompat=!0;_.fT(_.dD,"badge-shape",{props:{data:_.WX}});var uM=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.animated=_.c("animated_live_badge_icon");V.useBadgeShape=_.c("web_badge_shape_defrag");return V};
_.v(uM,_.E);_.P=uM.prototype;_.P.addTooltips=function(){for(var V=_.Pt(this.hostElement).querySelectorAll(".badge"),D=0,f;f=V[D++];){var n=this.repeatElement.itemForElement(f);f=_.Pt(f);f.lastChild&&f.lastChild.is==="tp-yt-paper-tooltip"&&f.removeChild(f.lastChild);if(n=n.metadataBadgeRenderer&&n.metadataBadgeRenderer.tooltip){var t=_.Md("tp-yt-paper-tooltip");(0,_.Ht)(t).textContent=n;t.setAttribute("position","top");t.setAttribute("aria-hidden","true");f.appendChild(t)}}};
_.P.badgesChanged=function(){var V=this;_.C_().parkOrScheduleJob(function(){V.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.P.standaloneRoundedBadgeChanged=function(){var V=this.useRoundedBadge?this.useRoundedBadge:void 0;V&&(this.useRoundedBadge=V)};
_.P.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.computeStyle=function(V){_.c("enable_html5_teal_ad_badge")&&V==="BADGE_STYLE_TYPE_AD"&&(V="badge-style-type-ad-alternate");_.c("kevlar_ytb_live_badges")&&V==="BADGE_STYLE_TYPE_LIVE_NOW"&&(V="badge-style-type-live-now-alternate");return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeRole=function(V){return this.computeAriaLabel(V)?"img":"status"};
_.P.computeAriaLabel=function(V){var D;return(V==null?void 0:(D=V.accessibilityData)==null?void 0:D.label)||(V==null?void 0:V.label)};
_.P.computeBadgeShape=function(V){var D;if(V){var f,n=srF(V.style),t=BnF(V.style),J=V.label,H=((f=V.accessibilityData)==null?void 0:f.label)||V.label;V=(D=V.icon)==null?void 0:D.iconType;D={type:n,brNzRatingBadgeType:t,text:J,accessibilityText:H,icon:V!=="PREMIUM"?V:void 0}}else D={};return D};
_.P.updateComputedBadges=function(V,D,f){var n=this;(D=D?[D]:f?[f]:void 0)?this.computedBadges=D:this.computedBadges=V==null?void 0:V.filter(function(t){var J;if((J=t.metadataBadgeRenderer)==null?0:J.groups){J=!1;t=_.r(t.metadataBadgeRenderer.groups);for(var H=t.next();!H.done;H=t.next()){H=H.value;var Q=void 0;J=J||((Q=n.hiddenBadgeGroups)==null?void 0:Q.includes(H))}return!J}return!0})};
_.P.useFilledIcons=function(V){return _.c("kevlar_system_icons")&&(V==="AUDIO_BADGE"||V==="CHECK_CIRCLE_THICK"||V==="OFFICIAL_ARTIST_BADGE"||V==="SPONSORSHIP_STAR"||V==="PERSON_RADAR_FILLED"||V==="PERSON_RADAR")};
_.P.computeBadgeShapeStyle=function(V){return this.useBadgeShape?V==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||V==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.P.computeIcon=function(V){var D,f;V=V==null?void 0:(D=V.metadataBadgeRenderer)==null?void 0:(f=D.icon)==null?void 0:f.iconType;if(V!=="PREMIUM"&&V)return _.Qa(V)};
_.P.computeStandaloneBadge=function(V){var D;V=V==null?void 0:(D=V.icon)==null?void 0:D.iconType;return V==="PREMIUM_STANDALONE"||V==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
uM.prototype.hiddenBadgeGroupsChanged=uM.prototype.hiddenBadgeGroupsChanged;uM.prototype.standaloneBadgeChanged=uM.prototype.standaloneBadgeChanged;uM.prototype.standaloneRoundedBadgeChanged=uM.prototype.standaloneRoundedBadgeChanged;uM.prototype.badgesChanged=uM.prototype.badgesChanged;_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"hidden",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],uM.prototype,"componentBehavior",void 0);
_.S([_.q(),_.p("design:type",Array)],uM.prototype,"badges",void 0);_.S([_.q(),_.p("design:type",Object)],uM.prototype,"topStandaloneBadge",void 0);_.S([_.q(),_.p("design:type",Object)],uM.prototype,"bottomStandaloneBadge",void 0);_.S([_.q(),_.p("design:type",Object)],uM.prototype,"computedBadges",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"mediumFontAdBadge",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"useRoundedBadge",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"largeFontAdBadge",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"overlayAd",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"overlayPremium",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"noDotAdBadge",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"collectionTruncate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"isThumbnailBadge",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],uM.prototype,"wrapBadges",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uM.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uM.prototype,"animated",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uM.prototype,"useBadgeShape",void 0);_.S([_.q({value:[]}),_.p("design:type",Array)],uM.prototype,"hiddenBadgeGroups",void 0);_.S([_.Zv("#repeat"),_.p("design:type",dI)],uM.prototype,"repeatElement",void 0);_.S([_.eY("badges"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uM.prototype,"badgesChanged",null);
_.S([_.eY("useRoundedBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uM.prototype,"standaloneRoundedBadgeChanged",null);_.S([_.eY("topStandaloneBadge","bottomStandaloneBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uM.prototype,"standaloneBadgeChanged",null);_.S([_.eY("hiddenBadgeGroups"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uM.prototype,"hiddenBadgeGroupsChanged",null);
_.S([_.a({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],uM);
var PAl=_.o5()(uM,"ytd-badge-supported-renderer",function(){if(t7Y===void 0){var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);t7Y=V}V=t7Y;return V},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.J2("kevlar_poly_si_batch_j053")?1:2});var NF=function(){var V=_.E.apply(this,arguments)||this;V.iconType="STAR";V.standardizeIconSize=_.c("kevlar_system_icons");V.mediaHoverOverlayInitialVisibility=_.c("enable_top_landscape_image_button_command_web");V.noBottomMargin=!1;V.thumbnailObjectFit="CONTAIN";V.thumbnailFitHeight=!0;V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.v(NF,_.E);_.P=NF.prototype;
_.P.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"}}}};
_.P.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",NF.JSC$12674_DEFAULT_CLICK_LOCATION_BEHAVIOR,NF.JSC$12674_CLICK_LOCATION_ID_MAP))};
_.P.onTap=function(V){if(!_.c("use_on_click_for_desktop_display_ad"))this.onTapOrClick(V)};
_.P.onClick=function(V){if(_.c("use_on_click_for_desktop_display_ad"))this.onTapOrClick(V)};
_.P.onTapOrClick=function(V){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,V,!1)};
_.P.updateMediaBackgroundImage=function(){var V=this.get("data.image.thumbnail.thumbnails");V&&(V=_.nT(V,0))&&_.wI(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+V+")"})};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var V=0;V<this.data.impressionEndpoints.length;V++){var D=this.data.impressionEndpoints[V];D.clickTrackingParams&&delete D.clickTrackingParams;_.DY().resolve(_.fH).resolveCommand(D,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var f;((f=this.data)==null?0:f.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.P.handleMuteAd=function(){};
_.P.attached=function(){var V=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.IG.Object.defineProperties(NF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.titleText)return"";var D;return _.Zl("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.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 V;return!((V=this.data)==null||!V.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"}}});
NF.prototype.onClick=NF.prototype.onClick;NF.prototype.onTap=NF.prototype.onTap;NF.prototype.dataChanged=NF.prototype.dataChanged;
NF.JSC$12674_CLICK_LOCATION_ID_MAP=_.c("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"]]);
NF.JSC$12674_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.c("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"}];_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.N0),_.p("design:type",Object)],NF.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],NF.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],NF.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],NF.prototype,"ytdActiveViewBehavior",void 0);_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],NF.prototype,"actionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],NF.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],NF.prototype,"clickCommand",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],NF.prototype,"miniMode",void 0);_.S([_.q(),_.p("design:type",String)],NF.prototype,"iconType",void 0);_.S([_.R("data.titleText"),_.p("design:type",String),_.p("design:paramtypes",[])],NF.prototype,"titleAriaLabel",null);
_.S([_.R("data.rating"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"getRating",null);_.S([_.R("data.price"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"getPrice",null);_.S([_.R("data.thirdLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"getThirdLine",null);_.S([_.R("data.fourthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"getFourthLine",null);
_.S([_.R("data.fifthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"getFifthLine",null);_.S([_.R("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computeRatingHidden",null);_.S([_.R("getPrice"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computePriceHidden",null);_.S([_.R("getThirdLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computeThirdLineHidden",null);
_.S([_.R("getFourthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computeFourthLineHidden",null);_.S([_.R("getFifthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computeFifthLineHidden",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.energyIcon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"hasEnergyIcon",null);
_.S([_.R("computePriceHidden","computeRatingHidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"computeSecondaryTextHidden",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],NF.prototype,"standardizeIconSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],NF.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],NF.prototype,"noBottomMargin",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.layout"),_.p("design:type",String),_.p("design:paramtypes",[])],NF.prototype,"layout",null);_.S([_.R("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],NF.prototype,"mediaThumbnailWidth",null);_.S([_.R("layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],NF.prototype,"useRoundedBadge",null);_.S([_.q(),_.p("design:type",String)],NF.prototype,"thumbnailObjectFit",void 0);
_.S([_.q(),_.p("design:type",Object)],NF.prototype,"thumbnailFitHeight",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NF.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],NF.prototype,"onTap",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],NF.prototype,"onClick",null);
_.S([_.a({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],NF);
_.Y(NF,"ytd-display-ad-renderer",function(){if(nYl!==void 0)return nYl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nYl=V},{mode:1});var oYl;var JoF;var roP;var usX=new Map;var H0r=!1;var mc=function(){var V=_.E.apply(this,arguments)||this;V.DEFAULT_TOOLTIP_OFFSET="10";V.TOOLTIP_OFFSET_NO_BANNER="-8";V.badges=null;V.noEndpoints=!1;V.wrapText=!1;V.forceVerified=!1;V.tooltipPosition="top";V.compactStyle=!1;V.height=0;V.lineHeight=0;return V};
_.v(mc,_.E);_.P=mc.prototype;_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.P.attached=function(){var V=this;this.observer=new MutationObserver(function(D,f){V.handleResized();f.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.P.detached=function(){this.observer&&this.observer.disconnect()};
_.P.logTooltipEvent=function(){_.c("kevlar_wiz_tooltip_event_killswitch")||H0r||(_.Nnc("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),H0r=!0)};
_.P.handleWindowResized=function(){this.handleResized()};
_.P.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")))};
_.P.onHeightChanged=function(){if(this.verified){var V=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.XB("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=V:this.textContainerEl.style.marginRight=V}};
_.P.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.XB("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.P.handleResized=function(){var V=this;this.verified&&_.dm.addLowPriorityJob(function(){V.fitBackgroundToText();var D=getComputedStyle(V.hostElement).lineHeight;D&&(D=D.match(/\d+/))&&D.length&&(V.lineHeight=Number(D[0]));V.height=V.lineHeight&&!V.wrapText?V.lineHeight:V.textEl.offsetHeight})};
_.P.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var V=document.createRange(),D=_.Pt(this.textEl).children;D.length>0?V.selectNodeContents(D[0]):V.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(V.getBoundingClientRect().width)+"px"}};
_.P.computeChannelBadgeStyle=function(V){var D;if((V==null?0:(D=V.runs)==null?0:D.length)&&V.runs[0].textColor)return"--ytd-badge-icon-color:"+_.AP(V.runs[0].textColor)+";"};
_.IG.Object.defineProperties(mc.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"?_.pA(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var V=this.get("badges.0.metadataBadgeRenderer.tooltip");if(V)return V}return _.LA(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
mc.prototype.onLineHeightChanged=mc.prototype.onLineHeightChanged;mc.prototype.onHeightChanged=mc.prototype.onHeightChanged;mc.prototype.onChannelNameChanged=mc.prototype.onChannelNameChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mc.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"badges",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"channelName",void 0);
_.S([_.q(),_.p("design:type",Object)],mc.prototype,"noEndpoints",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"wrapText",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"forceVerified",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"tooltipPosition",void 0);_.S([_.q(),_.p("design:type",String)],mc.prototype,"tooltip",void 0);_.S([_.q(),_.p("design:type",Boolean)],mc.prototype,"hasChannelArt",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],mc.prototype,"compactStyle",void 0);_.S([_.Zv("#text-container"),_.p("design:type",HTMLElement)],mc.prototype,"textContainerEl",void 0);_.S([_.Zv("#text"),_.p("design:type",Object)],mc.prototype,"textEl",void 0);_.S([_.Zv("#verified-tooltip"),_.p("design:type",HTMLElement)],mc.prototype,"verifiedTooltip",void 0);_.S([_.q(),_.p("design:type",Object)],mc.prototype,"height",void 0);
_.S([_.q(),_.p("design:type",Object)],mc.prototype,"lineHeight",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("badges","forceVerified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mc.prototype,"verified",null);_.S([_.R("badges","verified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],mc.prototype,"hideBadges",null);_.S([_.R("channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],mc.prototype,"formattedName",null);
_.S([_.R("badges","verified","formattedName"),_.p("design:type",String),_.p("design:paramtypes",[])],mc.prototype,"tooltipText",null);_.S([_.R("hasChannelArt"),_.p("design:type",String),_.p("design:paramtypes",[])],mc.prototype,"tooltipOffset",null);_.S([_.KI("channelName"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mc.prototype,"onChannelNameChanged",null);
_.S([_.KI("height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mc.prototype,"onHeightChanged",null);_.S([_.KI("lineHeight","height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mc.prototype,"onLineHeightChanged",null);_.S([_.a({is:"ytd-channel-name",disableElementRegistration:!0})],mc);
_.Y(mc,"ytd-channel-name",function(){if(roP!==void 0)return roP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return roP=V},{mode:_.J2("kevlar_poly_si_batch_j036")?1:2});var za=function(){var V=_.E.apply(this,arguments)||this;V.standardizeIconSize=_.c("kevlar_system_icons");return V};
_.v(za,_.E);za.prototype.basicPaletteChanged=function(){var V;(V=this.data.color)!=null&&V.basicColorPaletteData&&_.Na(this.hostElement,this.data.color.basicColorPaletteData)};
za.prototype.useFilledIcons=function(V){return _.c("kevlar_system_icons")&&(V==="CHECK_CIRCLE_THICK"||V==="OFFICIAL_ARTIST_BADGE")};
_.IG.Object.defineProperties(za.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return this.data.authorCreator||((V=this.data)==null?void 0:(D=V.color)==null?void 0:(f=D.basicColorPaletteData)==null?void 0:f.backgroundColor)}}});
za.prototype.basicPaletteChanged=za.prototype.basicPaletteChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],za.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],za.prototype,"standardizeIconSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.authorUnifiedVerified"),_.p("design:type",Object),_.p("design:paramtypes",[])],za.prototype,"verified",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],za.prototype,"creator",null);_.S([_.KI("data.color.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],za.prototype,"basicPaletteChanged",null);_.S([_.a({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],za);
_.Y(za,"ytd-author-comment-badge-renderer",function(){if(JoF!==void 0)return JoF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return JoF=V},{mode:1});var wxH;var R0=function(){return _.E.apply(this,arguments)||this};
_.v(R0,_.E);R0.prototype.computeThumbnailWidth=function(V){if(V==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],R0.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],R0.prototype,"icon",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],R0.prototype,"surface",void 0);
_.S([_.q({reflectToAttribute:!0,value:_.c("enable_shrink_image_size_on_web_posts_singleton")}),_.p("design:type",Boolean)],R0.prototype,"searchSxsUx",void 0);_.S([_.a({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],R0);
_.Y(R0,"ytd-backstage-image-renderer",function(){if(wxH!==void 0)return wxH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return wxH=V},{mode:1});var QrF;var CC=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;V.selectedItemIndex=-1;return V};
_.v(CC,_.E);_.P=CC.prototype;_.P.computeIsChannelOwner=function(V){if(!V)return!0;V=V[0];return!(V&&(V.signinEndpoint||V.selectServiceEndpoint))};
_.P.computeIsImagePoll=function(V){return(V==null?void 0:V.type)==="POLL_TYPE_IMAGE"};
_.P.computeIsTotalVotesDisabled=function(V){return!(V==null?0:V.totalVotes)};
_.P.thumbnailSrc=function(V){var D,f,n,t;return(V==null?0:(D=V.thumbnails)==null?0:(f=D[0])==null?0:f.url)?_.cS((n=V.thumbnails)==null?void 0:(t=n[0])==null?void 0:t.url):void 0};
_.P.progressWidth=function(V){return"width:"+(V?V*100:0)+"%;"};
_.P.textAreaWidth=function(V){return this.isImagePoll?null:"width:"+(V?V*100:0)+"%;"};
_.P.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.P.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var V=this.data.choices,D=0;D<V.length;D++)if(V[D].selected){this.selectedItemIndex=D;break}};
_.P.onPopupClosed=function(V,D){V=Number(this.pollVotes.selected);D.confirmed&&(this.selectChoice(V,!1),_.o4(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.P.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.P.onYtCommentPollRevert=function(V,D){D&&(this.selectChoice(D.selectedChoiceIndex,!0),this.set("data.totalVotes",D.totalVotes))};
_.P.onYtServiceRequestSent=function(V,D){if(D.actions)for(V=0;V<D.actions.length;V++){var f=D.actions[V];_.g(f,cc)&&this.set("data.totalVotes",_.g(f,cc).totalVotes)}};
_.P.onYtServiceRequestCompleted=function(V){var D=this.get("detail.data.actionResults.0.feedback",V);V=this.get("detail.data.actionResults.0.status",V);if(D==="FEEDBACK_DESELECT"||D==="FEEDBACK_SELECT")this.isLoading=!1,V==="STATUS_FAILED"?_.PA(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.P.getEndpoint=function(V,D){return D===V?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[V].selectServiceEndpoint||null};
_.P.selectChoice=function(V,D){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var f=0;f<this.data.choices.length;f++){var n;if(V===this.selectedItemIndex){var t=!1;var J=n=null}else n=(t=f===V)?this.data.choices[f].voteRatioIfSelected:this.data.choices[f].voteRatioIfNotSelected,J=t?this.data.choices[f].votePercentageIfSelected:this.data.choices[f].votePercentageIfNotSelected;this.set("data.choices."+f+".voteRatio",n);
this.set("data.choices."+f+".votePercentage",J);this.set("data.choices."+f+".selected",t)}D||(this.isLoading=!0,(D=this.getEndpoint(V,this.selectedItemIndex))&&_.DY().resolve(_.fH).resolveCommand(D,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===V?-1:V};
_.IG.Object.defineProperties(CC.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
CC.prototype.onYtServiceRequestCompleted=CC.prototype.onYtServiceRequestCompleted;CC.prototype.onYtServiceRequestSent=CC.prototype.onYtServiceRequestSent;CC.prototype.onYtCommentPollRevert=CC.prototype.onYtCommentPollRevert;CC.prototype.onPopupClosed=CC.prototype.onPopupClosed;CC.prototype.dataChanged=CC.prototype.dataChanged;_.S([_.u(_.Sa),_.p("design:type",Object)],CC.prototype,"paperItemBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],CC.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],CC.prototype,"isLoading",void 0);_.S([_.q({computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],CC.prototype,"isChannelOwner",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.p("design:type",Boolean)],CC.prototype,"isImagePoll",void 0);_.S([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],CC.prototype,"isTotalVotesDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],CC.prototype,"previousPollInfo",void 0);_.S([_.q(),_.p("design:type",Object)],CC.prototype,"selectedItemIndex",void 0);_.S([_.Zv("#poll-votes"),_.p("design:type",Object)],CC.prototype,"pollVotes",void 0);
_.S([_.R("isChannelOwner"),_.p("design:type",Object),_.p("design:paramtypes",[])],CC.prototype,"endpointStyle",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CC.prototype,"dataChanged",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],CC.prototype,"onPopupClosed",null);
_.S([_.bU("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],CC.prototype,"onYtCommentPollRevert",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],CC.prototype,"onYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],CC.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],CC);
_.Y(CC,"ytd-backstage-poll-renderer",function(){if(QrF!==void 0)return QrF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return QrF=V},{mode:2});var TnL;var b06={autoplay:!1,loop:!1},KBl={simpleText:""},qF=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;V.usesPanelLockup=!1;V.selectedItemIndex=-1;V.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},b06,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});V.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},b06,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});V.correctnessAnimationProps=[];V.correctnessAnimationRefs=[];return V};
_.v(qF,_.E);_.P=qF.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.P.computeIsChannelOwner=function(V){if(!V)return!0;V=V[0];return!(V&&(V.signinEndpoint||V.selectServiceEndpoint))};
_.P.computeIsTotalVotesDisabled=function(V){return!(V==null?0:V.totalVotes)};
_.P.computeIsImageQuiz=function(V){return(V==null?void 0:V.type)==="POLL_TYPE_IMAGE"};
_.P.onExplanationChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var V=this.data.choices;if(V){this.maybeInitializeQuizLotties(V);for(var D=0;D<V.length;D++)if(V[D].isSelected||this.isChannelOwner&&V[D].isCorrect){this.selectedItemIndex=D;return}this.selectedItemIndex=-1}}};
_.P.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var V=this.selectedItemIndex,D=Number(this.quizVotes.selected);this.selectChoice(D);this.sendVoteAction(D,V);this.quizVotes.selected=-1;var f;V=!((f=this.data)==null?0:f.enableAnimation);this.maybePlayAnswerAnimations(V)}};
_.P.onYtCommentPollRevert=function(V,D){D&&(this.selectChoice(D.selectedChoiceIndex),this.set("data.totalVotes",D.totalVotes))};
_.P.onYtServiceRequestSent=function(V,D){if(D.actions)for(V=_.r(D.actions),D=V.next();!D.done;D=V.next())(D=_.g(D.value,cc))&&this.set("data.totalVotes",D.totalVotes)};
_.P.onYtServiceRequestCompleted=function(V){var D=this.get("detail.data.actionResults.0.feedback",V);V=this.get("detail.data.actionResults.0.status",V);if(D==="FEEDBACK_DESELECT"||D==="FEEDBACK_SELECT")this.isLoading=!1,V==="STATUS_FAILED"?_.PA(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.P.getAnimationPropsForChoiceIndex=function(V,D){return D[V]};
_.P.maybePlayAnswerAnimations=function(V){V=V===void 0?!1:V;var D;if((D=this.data)!=null&&D.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){D=_.r(this.correctnessAnimationRefs);for(var f=D.next();!f.done;f=D.next()){var n=void 0,t=void 0;(n=f.value)==null||(t=n.lottieEl)==null||t.stop()}if(!(this.selectedItemIndex<0)){D=0;V&&(D=this.isCorrect?37:25);var J,H;(J=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(H=J.lottieEl)==null||H.goToAndPlay(V?D:0,!0);if(!(this.isCorrect||
(J=this.data.choices.findIndex(function(Z){return Z.isCorrect}),J<0))){var Q,T;
(T=(Q=this.correctnessAnimationRefs[J])==null?void 0:Q.lottieEl)==null||T.goToAndPlay(37,!0);var y;Q=(y=this.fadeContainers)==null?void 0:y.item(J);!V&&Q&&this.fadeIn(Q)}}}};
_.P.thumbnailSrc=function(V){var D,f,n,t;return(V==null?0:(D=V.thumbnails)==null?0:(f=D[0])==null?0:f.url)?_.cS((n=V.thumbnails)==null?void 0:(t=n[0])==null?void 0:t.url):void 0};
_.P.a11yVotedText=function(V,D){var f,n,t=((f=this.data)==null?void 0:(n=f.correctVotedText)==null?void 0:n.simpleText)||"",J,H;f=((J=this.data)==null?void 0:(H=J.votedText)==null?void 0:H.simpleText)||"";if(!D)return"";var Q,T;if((Q=this.data)==null?0:(T=Q.choices)==null?0:T[V].isCorrect)return t;var y,Z;return((y=this.data)==null?0:(Z=y.choices)==null?0:Z[V].isSelected)?f:""};
_.P.getEndpoint=function(V,D){return D===V?this.data.choices[V].deselectServiceEndpoint||null:this.data.choices[V].selectServiceEndpoint||null};
_.P.sendVoteAction=function(V,D){if(V=this.getEndpoint(V,D))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(V)};
_.P.selectChoice=function(V){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var D=0;D<this.data.choices.length;D++)this.set("data.choices."+D+".isSelected",V===this.selectedItemIndex?!1:D===V);this.selectedItemIndex=this.selectedItemIndex===V?-1:V};
_.P.maybeInitializeQuizLotties=function(V){var D=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=V.map(function(f){return{animationConfig:f.isCorrect?D.baseCorrectLottiePlayerAnimationConfig:D.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){D.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(f){return f.animationRef||{}})};
_.P.fadeIn=function(V){V.classList.add("fade-in");_.JI(_.dm,function(){V.classList.remove("fade-in")},900)};
_.IG.Object.defineProperties(qF.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.LA(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 V,D;return((V=this.data)==null?void 0:(D=V.choices)==null?void 0:D.some(function(f){return f.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null||!V.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?KBl:this.data.choices[this.selectedItemIndex].explanation||KBl}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null||!V.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
qF.prototype.onYtServiceRequestCompleted=qF.prototype.onYtServiceRequestCompleted;qF.prototype.onYtServiceRequestSent=qF.prototype.onYtServiceRequestSent;qF.prototype.onYtCommentPollRevert=qF.prototype.onYtCommentPollRevert;qF.prototype.dataChanged=qF.prototype.dataChanged;qF.prototype.onExplanationChanged=qF.prototype.onExplanationChanged;_.S([_.u(_.Sa),_.p("design:type",Object)],qF.prototype,"paperItemBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],qF.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.xm.YtTaskEmitterBehavior),_.p("design:type",Object)],qF.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],qF.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qF.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],qF.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Object)],qF.prototype,"usesPanelLockup",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],qF.prototype,"isChannelOwner",void 0);_.S([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],qF.prototype,"isTotalVotesDisabled",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.p("design:type",Boolean)],qF.prototype,"isImageQuiz",void 0);_.S([_.q(),_.p("design:type",Object)],qF.prototype,"previousQuizInfo",void 0);_.S([_.q(),_.p("design:type",Object)],qF.prototype,"selectedItemIndex",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data","usesPanelLockup"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"shouldUseModernUi",null);
_.S([_.jY(".fade-container"),_.p("design:type",Object)],qF.prototype,"fadeContainers",void 0);_.S([_.q(),_.p("design:type",Array)],qF.prototype,"correctnessAnimationProps",void 0);_.S([_.R("explanation","showCorrectAnswer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"showExplanation",null);_.S([_.R("isChannelOwner","isAttempted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"showCorrectAnswer",null);
_.S([_.R("isChannelOwner","isAttempted","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"isQuizAnsweringDisabled",null);_.S([_.R("isQuizAnsweringDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],qF.prototype,"endpointStyle",null);_.S([_.R("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"isAttempted",null);
_.S([_.R("data","selectedItemIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],qF.prototype,"explanation",null);_.S([_.R("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qF.prototype,"isCorrect",null);_.S([_.Zv("ytd-expander"),_.p("design:type",Object)],qF.prototype,"expander",void 0);_.S([_.Zv("#quiz-votes"),_.p("design:type",Object)],qF.prototype,"quizVotes",void 0);
_.S([_.KI("explanation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qF.prototype,"onExplanationChanged",null);_.S([_.KI("data","isChannelOwner"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qF.prototype,"dataChanged",null);_.S([_.bU("yt-comment-quiz-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qF.prototype,"onYtCommentPollRevert",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],qF.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qF.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],qF);
_.Y(qF,"ytd-backstage-quiz-renderer",function(){if(TnL!==void 0)return TnL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return TnL=V},{mode:1});var yoo;var A$=function(){return _.E.apply(this,arguments)||this};
_.v(A$,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],A$.prototype,"data",void 0);_.S([_.a({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],A$);
_.Y(A$,"ytd-post-uploaded-video-renderer",function(){if(yoo!==void 0)return yoo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return yoo=V},{mode:1});var Z0u;var a0=function(){return _.E.apply(this,arguments)||this};
_.v(a0,_.E);a0.prototype.useFilledIcons=function(V){return V==="SPONSORSHIP_STAR"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],a0.prototype,"data",void 0);_.S([_.a({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],a0);
var jrp=_.o5()(a0,"ytd-sponsors-only-badge-renderer",function(){if(Z0u===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);Z0u=V}V=Z0u;return V},{allowedProps:["data"],
mode:1});var lfp;var YE=function(){return _.E.apply(this,arguments)||this};
_.v(YE,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],YE.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YE.prototype,"data",void 0);_.S([_.a({is:"ytd-child-video-renderer",disableElementRegistration:!0})],YE);
_.Y(YE,"ytd-child-video-renderer",function(){if(lfp!==void 0)return lfp;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lfp=V},{mode:1});var GZ6;var eZo;var $E=function(){var V=_.E.apply(this,arguments)||this;V.size=0;V.enableWebModernCollectionsV2=_.c("web_modern_collections_v2");V.fallbackImageSize={height:void 0,width:9999};V.webModernCollections=!1;return V};
_.v($E,_.E);_.P=$E.prototype;_.P.computeBlurredImageSize=function(V){return V?{height:V*2,width:V*2}:this.fallbackImageSize};
_.P.computeImageSize=function(V){return V?{height:V,width:V}:this.fallbackImageSize};
_.P.computeObjectFit=function(V){return V?"FILL":"CONTAIN"};
_.P.computePreserve=function(V){return V?!0:!1};
_.P.setBackground=function(){var V,D;_.c("web_modern_collections_v2")&&((V=this.data)==null?0:(D=V.thumbnail)==null?0:D.sampledThumbnailColor)&&(V=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+V.red+","+V.green+","+V.blue+",1)")};
$E.prototype.setBackground=$E.prototype.setBackground;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],$E.prototype,"watchFeedThumbnail",void 0);_.S([_.q(),_.p("design:type",Object)],$E.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],$E.prototype,"size",void 0);
_.S([_.q({computed:"computeBlurredImageSize(size)"}),_.p("design:type",Object)],$E.prototype,"blurredImageSize",void 0);_.S([_.q({computed:"computeImageSize(size)"}),_.p("design:type",Object)],$E.prototype,"imageSize",void 0);_.S([_.q({computed:"computePreserve(size)"}),_.p("design:type",String)],$E.prototype,"preserve",void 0);_.S([_.q({computed:"computeObjectFit(size)"}),_.p("design:type",String)],$E.prototype,"objectFit",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],$E.prototype,"enableWebModernCollectionsV2",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$E.prototype,"webModernCollections",void 0);_.S([_.KI("data.thumbnail.sampledThumbnailColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$E.prototype,"setBackground",null);_.S([_.a({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],$E);
_.Y($E,"ytd-playlist-custom-thumbnail-renderer",function(){if(eZo!==void 0)return eZo;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return eZo=V},{mode:1});var coH;var iM=function(){return _.E.apply(this,arguments)||this};
_.v(iM,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],iM.prototype,"width",void 0);_.S([_.a({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],iM);
_.Y(iM,"ytd-playlist-video-thumbnail-renderer",function(){if(coH!==void 0)return coH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return coH=V},{mode:1});var FBE;var SO=function(){return _.E.apply(this,arguments)||this};
_.v(SO,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SO.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],SO.prototype,"width",void 0);_.S([_.a({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],SO);
_.Y(SO,"ytd-show-custom-thumbnail-renderer",function(){if(FBE!==void 0)return FBE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FBE=V},{mode:1});var gYH;var Wg=function(){return _.E.apply(this,arguments)||this};
_.v(Wg,_.E);Wg.prototype.useFilledIcons=function(V){return V==="MUSIC"||V==="COURSE"};
Wg.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Y7(this.overlayColor,"0.8");else if(this.overlayColor){var V=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+V.red+","+V.green+","+V.blue+",0.8)"}};
_.IG.Object.defineProperties(Wg.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)}}});
Wg.prototype.overlayColorChanged=Wg.prototype.overlayColorChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Wg.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Wg.prototype,"overlayColor",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],Wg.prototype,"overlayStyle",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],Wg.prototype,"overlayTextStyle",null);_.S([_.KI("overlayColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wg.prototype,"overlayColorChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Wg);
_.Y(Wg,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(gYH!==void 0)return gYH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return gYH=V},{mode:1});var vYV;var pC=function(){var V=_.E.apply(this,arguments)||this;V.active=!1;return V};
_.v(pC,_.E);pC.prototype.computeIsSpinnerHidden=function(V){return(V==null?void 0:V.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
pC.prototype.computeOverlayIcon=function(V){return(V==null?void 0:V.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(V==null?void 0:V.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],pC.prototype,"active",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],pC);
_.Y(pC,"ytd-thumbnail-overlay-downloading-renderer",function(){if(vYV!==void 0)return vYV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vYV=V},{mode:1});var kZV;var LC=function(){return _.E.apply(this,arguments)||this};
_.v(LC,_.E);_.IG.Object.defineProperties(LC.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LC.prototype,"data",void 0);_.S([_.R("data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],LC.prototype,"text",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],LC);
_.Y(LC,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(kZV!==void 0)return kZV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return kZV=V},{mode:1});var srp,Bnp=function(){if(srp!==void 0)return srp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return srp=V};var I0=function(){return _.E.apply(this,arguments)||this};
_.v(I0,_.E);_.IG.Object.defineProperties(I0,{template:{configurable:!0,enumerable:!0,get:function(){return Bnp()}}});
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],I0.prototype,"animateEqualizer",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],I0);_.o5()(I0,"ytd-thumbnail-overlay-equalizer",function(){return Bnp()},{allowedProps:["animateEqualizer"],
mode:1});var dgu;var O8=function(){var V=_.E.apply(this,arguments)||this;V.nowPlayingBadge=_.c("web_now_playing_badge");V.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return V};
_.v(O8,_.E);O8.prototype.activeChanged=function(){var V=this;_.c("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.pO(this,function(){_.PA(V.hostElement,"yt-playlist-lockup-now-playing-active",V)})};
O8.prototype.onMiniplayerPlayStateChanged=function(V){var D,f=(D=_.g(_.b$().currentEndpoint,_.pl))==null?void 0:D.videoId;this.isVideoPlaying=V&&(_.c("web_limit_now_playing_animation_killswitch")||this.videoId===f)};
O8.prototype.activeChanged=O8.prototype.activeChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],O8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],O8.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],O8.prototype,"isVideoPlaying",void 0);_.S([_.q(),_.p("design:type",String)],O8.prototype,"videoId",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],O8.prototype,"equalizerOnly",void 0);_.S([_.q(),_.p("design:type",Boolean)],O8.prototype,"isActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],O8.prototype,"nowPlayingBadge",void 0);_.S([_.KI("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O8.prototype,"activeChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],O8);
_.Y(O8,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(dgu!==void 0)return dgu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return dgu=V},{mode:1});var usY;var xE=function(){return _.E.apply(this,arguments)||this};
_.v(xE,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xE.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],xE);
_.Y(xE,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(usY!==void 0)return usY;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return usY=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var Nnr;var MF=function(){return _.E.apply(this,arguments)||this};
_.v(MF,_.E);MF.prototype.onDurationChanged=function(){var V,D;_.Pt(this.hostElement).querySelector("#progress").style.width=((D=(V=this.data)==null?void 0:V.percentDurationWatched)!=null?D:0)+"%"};
MF.prototype.onDurationChanged=MF.prototype.onDurationChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],MF.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MF.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],MF.prototype,"isLive",void 0);_.S([_.KI("data.percentDurationWatched"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MF.prototype,"onDurationChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],MF);
_.Y(MF,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Nnr!==void 0)return Nnr;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Nnr=V},{mode:1});var mgF;var h$=function(){var V=_.E.apply(this,arguments)||this;V.bottomPanel=!1;V.richGridOverlay=!1;V.watchFeedOverlay=!1;V.isCompact=!1;return V};
_.v(h$,_.E);h$.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.IG.Object.defineProperties(h$.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.icon)==null?void 0:D.iconType)==="PLAY_ALL"&&_.c("kevlar_system_icons")}}});
h$.prototype.widthChanged=h$.prototype.widthChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],h$.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],h$.prototype,"width",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],h$.prototype,"bottomPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],h$.prototype,"richGridOverlay",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],h$.prototype,"watchFeedOverlay",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],h$.prototype,"isCompact",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h$.prototype,"isIconFilled",null);_.S([_.KI("width","watchFeedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h$.prototype,"widthChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],h$);
_.Y(h$,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(mgF!==void 0)return mgF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return mgF=V},{mode:1});var zZV;var RZF=["CLIP","SHORTS"],U8=function(){var V=_.E.apply(this,arguments)||this;V.animated=_.c("animated_live_badge_icon");V.hasIcon=!1;V.updateTimerIntervalId=0;V.timeSinceLive=0;return V};
_.v(U8,_.E);_.P=U8.prototype;_.P.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.P.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.P.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.P.hasIconOrText=function(){var V,D;return!!(((V=this.data)==null?0:V.icon)||((D=this.data)==null?0:D.text))};
_.P.initializeLiveBadgeTimer=function(){var V=this,D,f=(D=this.liveBadgeData)==null?void 0:D.startTimestampSec;if(f&&this.canShowLiveBadgeTimer()){var n;D=Number((n=this.liveBadgeData)==null?void 0:n.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(f);this.updateTimerIntervalId=_.HI(function(){V.canShowLiveBadgeTimer()?V.timeSinceLive++:(V.timeSinceLive=0,window.clearInterval(V.updateTimerIntervalId))},D)}else this.timeSinceLive=0};
_.P.canShowLiveBadgeTimer=function(){var V=Date.now(),D,f;return V<(Number((D=this.liveBadgeData)==null?void 0:D.endTimestampSec)-1)*1E3&&V>Number((f=this.liveBadgeData)==null?void 0:f.startTimestampSec)*1E3};
_.IG.Object.defineProperties(U8.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data;var D=this.timeSinceLive;var f,n,t,J;a:{var H=V.style;if(H===void 0)H=16;else switch(H){case "LIVE":H=17;break a;default:H=16}}D={type:H,text:D?i93({seconds:D}):_.LA(V.text),accessibilityText:(f=V.text)==null?void 0:(n=f.accessibility)==null?void 0:(t=n.accessibilityData)==null?void 0:t.label,icon:(J=V.icon)==null?void 0:J.iconType}}else D={};return D}},
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 V;return(V=this.data)==null?void 0:V.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 RZF.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
U8.prototype.initializeLiveBadgeTimer=U8.prototype.initializeLiveBadgeTimer;U8.prototype.dataChanged=U8.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],U8.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],U8.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],U8.prototype,"icon",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],U8.prototype,"animated",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.p("design:type",Boolean)],U8.prototype,"hideTimeStatus",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],U8.prototype,"hasIcon",void 0);_.S([_.q(),_.p("design:type",Object)],U8.prototype,"timeSinceLive",void 0);_.S([_.R("data","timeSinceLive"),_.p("design:type",Object),_.p("design:paramtypes",[])],U8.prototype,"badgeShapeData",null);
_.S([_.R("data","overlayType"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],U8.prototype,"hideBadgeShape",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U8.prototype,"dataChanged",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],U8.prototype,"overlayStyle",null);
_.S([_.R("data.liveBadgeData"),_.p("design:type",Object),_.p("design:paramtypes",[])],U8.prototype,"liveBadgeData",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.type"),_.p("design:type",Object),_.p("design:paramtypes",[])],U8.prototype,"overlayType",null);_.S([_.R("overlayType","overlayStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],U8.prototype,"useFilledIcon",null);
_.S([_.eY("liveBadgeData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U8.prototype,"initializeLiveBadgeTimer",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],U8);
_.Y(U8,"ytd-thumbnail-overlay-time-status-renderer",function(){if(zZV!==void 0)return zZV;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return zZV=V},{mode:_.J2("kevlar_poly_si_batch_j035")?1:2});var CAU;var VC=function(){return _.E.apply(this,arguments)||this};
_.v(VC,_.E);VC.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"}}}}};
VC.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(V){if(this.hasPlaybackProgressBar)return{percentDurationWatched:V.percentDurationWatched}};
VC.prototype.computeHasPlaybackProgressBar=function(V){return!!V.percentDurationWatched&&V.percentDurationWatched>0};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VC.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.p("design:type",Boolean)],VC.prototype,"hasPlaybackProgressBar",void 0);
_.S([_.a({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],VC);
_.Y(VC,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(CAU!==void 0)return CAU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CAU=V},{mode:1});var q3H;var Xxo=_.MA(function(V){var D=V.data;var f=V.children;var n=function(){return!!D().doubleStack};
return _.K("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!D().experimentEnabled}},_.K(_.e,{cond:D,
then:function(){return _.K("div",null,_.K(_.e,{cond:n,then:function(){var t={};return _.K("div",{class:_.KT("collections-stack-wiz__collection-stack2",function(){return D().customClassName2ndStack},(t["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return D().enableResponsiveMode},t)),
style:_.el({"background-color":function(){return zZY(D())}})})}}),_.K("div",{class:_.KT("collections-stack-wiz__collection-stack1",function(){return D().customClassName1stStack},function(){return mg9(D().thumbnailSize?D().thumbnailSize:"medium")}),
style:_.el({"background-color":function(){return zZY(D())}})}),f)}}))},"R");_.fT(Xxo,"yt-collections-stack",{props:{data:_.WX}});var Dw=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};V.webModernCollections=!1;V.isSearch=!1;V.isDoubleStack=!1;V.thumbnailSize="medium";V.enableWebModernCollectionsV2=_.c("web_modern_collections_v2");return V};
_.v(Dw,_.E);_.P=Dw.prototype;
_.P.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]]"}}}}}};
_.P.getThumbnailDetails=function(V){if(V!=null&&V.thumbnailRenderer){var D=V.thumbnailRenderer,f;if((f=D.playlistVideoThumbnailRenderer)==null?0:f.thumbnail)return D.playlistVideoThumbnailRenderer.thumbnail;var n;if((n=D.playlistCustomThumbnailRenderer)==null?0:n.thumbnail)return D.playlistCustomThumbnailRenderer.thumbnail;V=V.thumbnailRenderer;var t;if((t=V.showCustomThumbnailRenderer)==null?0:t.thumbnail)return V.showCustomThumbnailRenderer.thumbnail}};
_.P.computeOverlayColor=function(V){var D,f;if((D=this.getThumbnailDetails(V))==null?0:(f=D.darkColorPalette)==null?0:f.section2Color)return this.getThumbnailDetails(V).darkColorPalette.section2Color;var n;return(n=this.getThumbnailDetails(V))==null?void 0:n.sampledThumbnailColor};
_.P.computeWebModernCollections=function(V){if(V==null||!V.thumbnailOverlays)return!1;V=_.r(V.thumbnailOverlays);for(var D=V.next();!D.done;D=V.next()){var f=void 0;if((f=D.value)==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.P.computeNavigationEndpoint=function(V){return pEY(V==null?void 0:V.navigationEndpoint)};
_.IG.Object.defineProperties(Dw.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:V==null?void 0:V.sampledThumbnailColor,vibrantColorPalette:V==null?void 0:V.vibrantColorPalette,darkColorPalette:V==null?void 0:V.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Dw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(LrF),_.p("design:type",Object)],Dw.prototype,"ytdThumbnailBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Dw.prototype,"componentBehavior",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],Dw.prototype,"watchFeedThumbnail",void 0);_.S([_.q(),_.p("design:type",Number)],Dw.prototype,"customThumbnailSize",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Dw.prototype,"hideAria",void 0);_.S([_.q(),_.p("design:type",Object)],Dw.prototype,"data",void 0);_.S([_.q({computed:"computeOverlayColor(data)"}),_.p("design:type",Object)],Dw.prototype,"overlayColor",void 0);
_.S([_.q({computed:"computeWebModernCollections(data)"}),_.p("design:type",Object)],Dw.prototype,"webModernCollections",void 0);_.S([_.q({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],Dw.prototype,"computedNavigationEndpoint",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Dw.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Dw.prototype,"isDoubleStack",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Dw.prototype,"thumbnailSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Dw.prototype,"enableWebModernCollectionsV2",void 0);_.S([_.R("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],Dw.prototype,"collectionStack",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Dw);
_.Y(Dw,"ytd-playlist-thumbnail",function(){if(q3H!==void 0)return q3H;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return q3H=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var EYF;var fa=function(){var V=_.E.apply(this,arguments)||this;V.noEndpoints=!1;V.amsterdamPostMvp=_.c("web_amsterdam_post_mvp_playlists");V.badges=[];V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.v(fa,_.E);_.P=fa.prototype;_.P.getMetadata=function(V){if(!V)return[];var D=[],f=V.shortViewCountText||V.viewCountText;f&&D.push(_.LA(f));V.publishedTimeText&&D.push(_.LA(V.publishedTimeText));V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&D.push(_.da(_.LA(V.upcomingEventData.upcomingEventText),Number(V.upcomingEventData.startTime)));return D};
_.P.observeDataForBylineSeparator=function(){this.data&&_.JA(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.P.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.AP(this.metadataColor)};
_.P.getSimpleString=function(V){return _.LA(V)};
_.P.isBylineHidden=function(V){return this.noByline||!((V==null?0:V.longBylineText)||(V==null?0:V.shortBylineText))};
_.P.isMetadataHidden=function(V){var D;return((D=this.getMetadata(V))==null?void 0:D.length)===0};
_.P.isBylineMetadataSeparatorHidden=function(V){return this.isMetadataHidden(V)||!this.shouldShowVideoInfo};
_.P.isLongByline=function(V,D){return D&&!(V==null||!V.longBylineText)};
_.IG.Object.defineProperties(fa.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var V;return this.amsterdamPostMvp&&!((V=this.data)==null||!V.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 _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
fa.prototype.metadataColorChanged=fa.prototype.metadataColorChanged;fa.prototype.observeDataForBylineSeparator=fa.prototype.observeDataForBylineSeparator;_.S([_.u(_.dh),_.p("design:type",Object)],fa.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fa.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],fa.prototype,"noEndpoints",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"isSlimShort",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"radioMeta",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],fa.prototype,"isGridViewEnabled",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"richMeta",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],fa.prototype,"amsterdamPostMvp",void 0);_.S([_.q(),_.p("design:type",Boolean)],fa.prototype,"noByline",void 0);
_.S([_.q({computed:"isLongByline(data, radioMeta)"}),_.p("design:type",Boolean)],fa.prototype,"longByline",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"truncateMetadataLine",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"miniMode",void 0);_.S([_.q(),_.p("design:type",Number)],fa.prototype,"metadataColor",void 0);_.S([_.q(),_.p("design:type",Array)],fa.prototype,"badges",void 0);
_.S([_.q({selector:_.CA,selectorArgs:["data.videoId"]}),_.p("design:type",String)],fa.prototype,"transferState",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"isDownloading",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fa.prototype,"typographyBump",void 0);_.S([_.Zv("#metadata-line"),_.p("design:type",HTMLElement)],fa.prototype,"metadataLine",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"observeDataForBylineSeparator",null);_.S([_.KI("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"metadataColorChanged",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"shouldShowVideoInfo",null);
_.S([_.R("badges"),_.p("design:type",String),_.p("design:paramtypes",[])],fa.prototype,"inlineBadgeClass",null);_.S([_.R("longByline"),_.p("design:type",String),_.p("design:paramtypes",[])],fa.prototype,"longBylineClass",null);_.S([_.R("data","longByline"),_.p("design:type",Object),_.p("design:paramtypes",[])],fa.prototype,"bylineText",null);_.S([_.R("isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fa.prototype,"watchFeedBigThumbs",null);
_.S([_.a({is:"ytd-video-meta-block",disableElementRegistration:!0})],fa);
_.Y(fa,"ytd-video-meta-block",function(){if(EYF!==void 0)return EYF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return EYF=V},{mode:_.J2("kevlar_poly_si_batch_j080")?1:2});_.zk("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var na=function(){var V=_.E.apply(this,arguments)||this;V.displayItemCount=2;V.isBackstagePlaylist=!1;V.isPostCompactPlaylist=!1;V.shouldShowChannelThumbnail=!1;V.useModernCollectionsV2=_.c("web_modern_collections_v2");return V};
_.v(na,_.E);_.P=na.prototype;_.P.computeFirstVideos=function(V,D){return V===void 0||D===void 0?[]:V.slice(0,D)};
_.P.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var V=this.data.thumbnailRenderer;V.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",V.playlistVideoThumbnailRenderer.thumbnail);V.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",V.playlistCustomThumbnailRenderer.thumbnail)}};
_.P.computeThumbnailHeight=function(V,D,f,n,t){return n?t==="BIG"?280:t==="MASSIVE"?337:234:f?240:D?72:V?118:138};
_.P.computeThumbnailWidth=function(V,D,f,n,t){return n?t==="MEDIUM"?450:t==="BIG"?500:t==="MASSIVE"?600:420:f?360:D?128:V?210:246};
_.P.computeUseBiggerThumbs=function(V){return V&&_.c("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelThumbnail=function(V,D){return V&&!(D==null||!D.channelThumbnail)};
_.IG.Object.defineProperties(na.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
na.prototype.dataChanged=na.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],na.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],na.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],na.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],na.prototype,"displayItemCount",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],na.prototype,"isBackstagePlaylist",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],na.prototype,"isPostCompactPlaylist",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],na.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.p("design:type",Boolean)],na.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],na.prototype,"biggerThumbsStyle",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],na.prototype,"isDownloads",void 0);_.S([_.q({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.p("design:type",Object)],na.prototype,"shouldShowChannelThumbnail",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],na.prototype,"useModernCollectionsV2",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],na.prototype,"dataChanged",null);_.S([_.R("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],na.prototype,"stackThumbnailSize",null);_.S([_.a({is:"ytd-playlist-renderer",disableElementRegistration:!0})],na);
_.Y(na,"ytd-playlist-renderer",function(){if(GZ6===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);GZ6=V}V=GZ6;return V},{mode:1});var Aoo;var afo;var t8=function(){var V=_.E.apply(this,arguments)||this;V.collections=!!_.c("web_modern_collections_v2");V.startX=0;return V};
_.v(t8,_.E);t8.prototype.onEndpointMouseDown=function(V){this.startX=V.clientX};
t8.prototype.onEndpointClick=function(V){this.startX!==V.clientX&&(V.preventDefault(),V.stopPropagation())};
t8.prototype.computeObjectFit=function(V){return V==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||V==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||V==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
t8.prototype.computeCardStyle=function(V){return V?V.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.IG.Object.defineProperties(t8.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var V,D;return this.collections&&((V=this.data)==null?void 0:(D=V.searchRefinementCardRendererStyle)==null?void 0:D.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}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],t8.prototype,"data",void 0);_.S([_.q({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",Number)],t8.prototype,"objectFit",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",String)],t8.prototype,"cardStyle",void 0);
_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],t8.prototype,"roundContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],t8.prototype,"collections",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],t8.prototype,"isAlbumCard",null);_.S([_.R("data","collections","isAlbumCard"),_.p("design:type",Object),_.p("design:paramtypes",[])],t8.prototype,"collectionStack",null);
_.S([_.a({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],t8);
_.Y(t8,"ytd-search-refinement-card-renderer",function(){if(afo!==void 0)return afo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return afo=V},{mode:1});var Y3l;var Pd=function(){var V=_.E.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.v(Pd,_.E);_.S([_.q(),_.p("design:type",Object)],Pd.prototype,"data",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Pd.prototype,"componentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Pd.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Pd.prototype,"isRichGrid",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],Pd.prototype,"miniMode",void 0);
_.S([_.a({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Pd);
_.Y(Pd,"ytd-game-details-renderer",function(){if(Y3l!==void 0)return Y3l;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Y3l=V},{mode:1});var $gl;var i0U;var o1=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return V};
_.v(o1,_.E);_.P=o1.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(V){var D=V||this.data;return D&&D.states&&D.currentStateId!=null?D.states.find(function(f){return f.stateId===D.currentStateId})||null:null};
_.P.currentStateRendererData=function(V){return(V=this.currentStateData(V))&&V.state&&V.state.buttonRenderer?V.state.buttonRenderer:null};
_.P.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())};
_.P.computeButtonIcon=function(V){V=this.currentStateRendererData(V);var D;return(V==null?0:(D=V.icon)==null?0:D.iconType)?V.icon.iconType.toLowerCase():null};
_.P.computeAccessibility=function(V){return(V=this.currentStateRendererData(V))&&V.accessibilityData?V.accessibilityData.accessibilityData||null:null};
_.P.computeButtonClass=function(V){var D=this.currentStateRendererData(V);if(!D)return"";V="";var f=D.style;f&&(V+=f.toLowerCase().replace(/_/g,"-")+" ");(D=D.size)&&(V+=D.toLowerCase().replace(/_/g,"-")+" ");return V.trim()};
_.P.computeServiceEndpoint=function(V){if(!V)return null;var D=V&&V.serviceEndpoint,f=this.get("command.commandMetadata.webCommandMetadata.sendPost",V);return D?D:f&&V.command?V.command:null};
_.P.computeBellMenuItemParams=function(V){var D;V=(D=_.g(V==null?void 0:V.command,_.Tm))==null?void 0:D.commands;if(!V||V.length===0)return null;D=_.g(V[0],_.Fb);var f,n;return(D==null?0:(f=D.popup)==null?0:(n=f.menuPopupRenderer)==null?0:n.items)?D.popup.menuPopupRenderer.items.map(function(t){return t.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(V){var D=V.trackingParams,f=this.computeBellMenuItemParams(this.data);this.data&&D&&f&&f.includes(D)&&this.ytRenderButtonBehavior._setButtonIcon(V.icon.iconType.toLowerCase())};
_.P.onYtServiceRequestCompleted=function(V,D){(V=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",D))&&this.set("data",V)};
_.P.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.P.resetState=function(){this.set("data.currentStateId",3)};
_.P.onYtButtonTapHandler=function(){if(this.data){var V=this.currentStateRendererData(this.data);V&&this.ytRendererBehavior.logExplicitClick(V)}};
o1.prototype.onYtServiceRequestError=o1.prototype.onYtServiceRequestError;o1.prototype.onYtServiceRequestCompleted=o1.prototype.onYtServiceRequestCompleted;o1.prototype.stateChanged=o1.prototype.stateChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],o1.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(jH.YtRenderButtonBehavior),_.p("design:type",Object)],o1.prototype,"ytRenderButtonBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],o1.prototype,"data",void 0);_.S([_.eY("data","data.currentStateId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o1.prototype,"stateChanged",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],o1.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],o1.prototype,"onYtServiceRequestError",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],o1);
_.Y(o1,"ytd-subscription-notification-toggle-button-renderer",function(){if(i0U!==void 0)return i0U;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return i0U=V},{mode:1});var S3F;var J8=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};V.tapHandler=function(){if(V.data){var D=V.currentStateRendererData();D&&V.ytRendererBehavior.logExplicitClick(D)}};
return V};
_.v(J8,_.E);_.P=J8.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(){var V=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(D){return D.stateId===V.data.currentStateId})||null:null};
_.P.currentStateRendererData=function(){var V=this.currentStateData();return V&&V.state&&V.state.buttonRenderer?V.state.buttonRenderer:null};
_.P.computeAccessibilityLabel=function(){var V,D,f;return(V=this.currentStateRendererData())==null?void 0:(D=V.accessibilityData)==null?void 0:(f=D.accessibilityData)==null?void 0:f.label};
_.P.computeBellMenuItemParams=function(){var V,D,f=(D=_.g((V=this.data)==null?void 0:V.command,_.Tm))==null?void 0:D.commands;if(!f||f.length===0)return null;V=_.g(f[0],_.Fb);var n,t;return(V==null?0:(n=V.popup)==null?0:(t=n.menuPopupRenderer)==null?0:t.items)?V.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(V){var D=V.trackingParams,f=this.computeBellMenuItemParams();if(this.data&&D&&f&&f.includes(D)&&(V==null||!V.isDisabled)){var n;((n=_.g(V.serviceEndpoint,_.K6))==null?void 0:n.signal)!=="CLIENT_SIGNAL"&&(this.icon=V.icon.iconType)}};
_.P.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.P.onYtServiceRequestCompleted=function(V,D){if(V=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",D))this.icon=void 0,this.set("data",V)};
_.P.onYtServiceRequestError=function(){this.icon=void 0};
_.IG.Object.defineProperties(J8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data,D=this.textLabel,f=this.hostElement,n=this.computeAccessibilityLabel(),t=this.tapHandler,J=this.isOverlay?"overlay":"mono",H=(V==null?0:V.disableButton)?"disabled":"active";D=D?_.zK(D):void 0;return{style:J,type:"tonal",state:H,size:"M",focused:!1,formattedButtonText:D,iconPosition:"leading-trailing",onTap:q3n(V,t,f),accessibilityLabel:n}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var V=this.currentStateRendererData(),D,f,n=(f=this.icon)!=null?f:V==null?void 0:(D=V.icon)==null?void 0:D.iconType;if(n)return _.Qa(n)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.secondaryIcon)==null?void 0:D.iconType;if(f)return _.Qa(f)}}});
J8.prototype.onYtServiceRequestError=J8.prototype.onYtServiceRequestError;J8.prototype.onYtServiceRequestCompleted=J8.prototype.onYtServiceRequestCompleted;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],J8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],J8.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],J8.prototype,"textLabel",void 0);
_.S([_.q(),_.p("design:type",String)],J8.prototype,"icon",void 0);_.S([_.q(),_.p("design:type",Boolean)],J8.prototype,"isOverlay",void 0);_.S([_.R("data.*","textLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],J8.prototype,"computedButtonShape",null);_.S([_.R("data.*","icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],J8.prototype,"computedIcon",null);_.S([_.R("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],J8.prototype,"computedSecondaryIcon",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],J8.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],J8.prototype,"onYtServiceRequestError",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],J8);
_.Y(J8,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(S3F!==void 0)return S3F;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return S3F=V},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var WBV;_.fT(SKl,"yt-animated-action",{props:{backgroundLottieRef:_.WX,foregroundLottieRef:_.WX,wrapperClass:_.WX,disableAnimation:_.WX},unsafeExternallySettableAttributes:new Set(["key"])});var r5=function(){var V=_.E.apply(this,arguments)||this;V.animatedActionEnabled=_.c("web_animated_actions");V.foregroundLottieRef={};V.backgroundLottieRef={};V.forceIconOnly=!1;V.showTextWhileAnimating=!1;V.keyboardFocused=!1;V.isAnimating=!1;V.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return V};
_.v(r5,_.E);_.P=r5.prototype;_.P.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.P.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]]"}}}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onYtServiceRequestSent=function(V,D){(this.get("endpoint.subscribeEndpoint",D)||this.get("endpoint.unsubscribeEndpoint",D))&&this.updateSubscriptionState(!this.subscribed)};
_.P.onYtServiceRequestCompleted=function(V,D){(V=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",D.data))&&this.bellButton&&(this.bellButton.data=V)};
_.P.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.wI(this.hostElement)};
_.P.onPlayerSubscribe=function(V){this.isCompactRed()||V!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.P.onPlayerUnsubscribe=function(V){this.isCompactRed()||V!==this.data.channelId||this.updateSubscriptionState(!1)};
_.P.handleUpdateSubscribeButtonAction=function(V){V=_.g(V,Hpr);var D;V&&V.channelId===((D=this.data)==null?void 0:D.channelId)&&this.updateSubscriptionState(!!V.subscribed)};
_.P.computeButtonStyle=function(V){return this.get("style.styleType",V)||null};
_.P.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.P.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.P.updateSubscriptionState=function(V){if(V!==this.subscribed){this.set("data.subscribed",V);var D,f=(D=this.data)==null?void 0:D.subscribedEntityKey;f&&this.ytdReduxBehavior.dispatch(_.y1("subscriptionStateEntity",f,{key:f,subscribed:V}));this.isCompactRed()||_.PA(this.hostElement,"yt-subscription-changed",V);V||(_.o4(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!V),V&&this.hasBellButton&&this.startAnimation())}};
_.P.startAnimation=function(){var V=this;if(!this.isAnimating){var D=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var f;(f=this.backgroundLottieRef.lottieEl)==null||f.goToAndPlay(0);var n;(n=this.foregroundLottieRef.lottieEl)==null||n.goToAndPlay(0);_.dm.addJob(function(){V.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.dm.addJob(function(){V.updateContainerToFitContent(!!V.subscribed,!0)},2,1500);
_.dm.addJob(function(){V.isAnimating=!1},2,D)}};
_.P.maybeAnimateBellIcon=function(){var V=_.oU(this.hostElement).querySelector("yt-animated-icon");if(V){var D;(D=V.animationRef.lottieEl)==null||D.goToAndPlay(0)}};
_.P.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.P.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.P.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var V;this.unsubscribedWidth=(V=this.subscribeButtonShape)==null?void 0:V.getBoundingClientRect().width}var D;this.subscribedWidth=(D=this.bellButton)==null?void 0:D.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.P.updateContainerToFitContent=function(V,D){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(V?(V=this.subscribedWidth,D=this.isAnimating&&!D,this.subscribedIconOnlyWidth===void 0||D||(V=this.subscribedIconOnlyWidth),this.hostElement.style.width=V+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.P.clearContainerSize=function(){this.hostElement.style.width=""};
_.P.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.P.maybeSetSubscribedButtonIconOnlyWidth=function(){var V=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 D;V.subscribedIconOnlyWidth=(D=V.bellButton)==null?void 0:D.getBoundingClientRect().width;requestAnimationFrame(function(){if(V.bellButton){var f;V.bellButton.textLabel=
(f=V.data)==null?void 0:f.subscribedButtonText}})})))};
_.IG.Object.defineProperties(r5.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 V;return(V=this.data)==null?void 0:V.subscribedButtonText}var D;return this.forceIconOnly?void 0:(D=this.data)==null?void 0:D.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var V,D,f=((V=this.data)==null?void 0:(D=V.timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:"subscribe",timings:f,enabled:f.length>0&&!this.subscribed,experimentEnabled:f.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!this.subscribed&&((V=this.data)==null?void 0:V.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 V={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var D=V.renderer;var f=V.element;var n=V.subscribed;var t=V.commandController;var J=V.isOverlay;V=V.stopPropagation;var H=afx(D,n);J&&(H.style="overlay");J=Object;var Q=J.assign,T;a:switch((T=D.style)==null?void 0:T.styleType){case "COMPACT_GRAY":case "COMPACT_RED":T={size:"S"};break a;default:T={size:"M"}}var y=Aox(D,
n);var Z=(Z=n?D.subscribedButtonText:D.unsubscribedButtonText)?_.zK(Z):void 0;return Q.call(J,{},H,T,{focused:!1,toggled:n,accessibilityLabel:y,formattedButtonText:Z,onTap:EYZ(D,n,f,t,V)})}}}});
r5.prototype.onMouseDown=r5.prototype.onMouseDown;r5.prototype.onDataChanged=r5.prototype.onDataChanged;r5.prototype.observedSubscribed=r5.prototype.observedSubscribed;r5.prototype.onYtServiceRequestCompleted=r5.prototype.onYtServiceRequestCompleted;r5.prototype.onYtServiceRequestSent=r5.prototype.onYtServiceRequestSent;r5.prototype.maybeUpdateBellButtonText=r5.prototype.maybeUpdateBellButtonText;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],r5.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],r5.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r5.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.subscribedEntityKey"],selector:RaX}),_.p("design:type",Object)],r5.prototype,"subscriptionStateEntity",void 0);_.S([_.q({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.p("design:type",Boolean)],r5.prototype,"subscribed",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],r5.prototype,"branded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r5.prototype,"animatedActionEnabled",void 0);
_.S([_.q(),_.p("design:type",Object)],r5.prototype,"foregroundLottieRef",void 0);_.S([_.q(),_.p("design:type",Object)],r5.prototype,"backgroundLottieRef",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],r5.prototype,"overlayButton",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.p("design:type",Object)],r5.prototype,"buttonStyle",void 0);_.S([_.q(),_.p("design:type",Object)],r5.prototype,"forceIconOnly",void 0);
_.S([_.q(),_.p("design:type",Object)],r5.prototype,"showTextWhileAnimating",void 0);_.S([_.q({value:function(){return!!_.DY().resolve(_.Vx(_.PO))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],r5.prototype,"useKeyboardFocused",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r5.prototype,"keyboardFocused",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r5.prototype,"isAnimating",void 0);_.S([_.R("data.notificationPreferenceButton.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"hasBellButton",null);
_.S([_.KI("subscribedButtonText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r5.prototype,"maybeUpdateBellButtonText",null);_.S([_.R("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"subscribedButtonText",null);_.S([_.R("data.timedAnimationData.animationTiming","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"smartimationSettings",null);
_.S([_.q({reflectToAttribute:!0}),_.R("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"subscribeButtonHidden",null);_.S([_.q({reflectToAttribute:!0}),_.R("subscribed","hasBellButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"subscribeButtonInvisible",null);
_.S([_.q({reflectToAttribute:!0}),_.R("subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"unsubscribeButtonHidden",null);_.S([_.Zv("ytd-subscription-notification-toggle-button-renderer-next"),_.p("design:type",Object)],r5.prototype,"bellButton",void 0);_.S([_.Zv("#subscribe-button-shape"),_.p("design:type",HTMLElement)],r5.prototype,"subscribeButtonShape",void 0);
_.S([_.R("overlayButton","subscribed","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],r5.prototype,"buttonShape",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],r5.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],r5.prototype,"onYtServiceRequestCompleted",null);
_.S([_.KI("subscribed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r5.prototype,"observedSubscribed",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r5.prototype,"onDataChanged",null);_.S([_.bU("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],r5.prototype,"onMouseDown",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],r5);
_.Y(r5,"ytd-subscribe-button-renderer",function(){if(WBV!==void 0)return WBV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WBV=V},{mode:1});var Hd=function(){var V=_.E.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.v(Hd,_.E);Hd.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hd.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hd.prototype,"isRichGrid",void 0);_.S([_.a({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Hd);
_.Y(Hd,"ytd-game-card-renderer",function(){if($gl!==void 0)return $gl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return $gl=V},{mode:1});var w5={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.c("defer_menus")&&!zkE?0:void 0,waitForSignal:"eocs"};var pxL;var LBE;var QC=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return V};
_.v(QC,_.E);_.P=QC.prototype;_.P.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.P.onSeriesReminderStateEntityChange=function(){var V,D,f;((V=this.eventReminderStateEntity)==null?0:V.key)&&((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((f=this.eventReminderStateEntity)==null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.y1("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.P.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.P.onYtServiceRequestError=function(){var V;this.updateReminderStateEntitiesFromButtonState((V=this.data)==null?void 0:V.currentState)};
_.P.handleUpdateUpcomingEventReminderButtonStateCommand=function(V){if(V=_.g(V,dT6)){var D,f=(D=this.data)==null?void 0:D.targetId;f&&V.targetId===f&&_.aU(this.updateReminderStateEntitiesFromButtonState.bind(this,V.state))}};
_.P.getButtonStateFromReminderState=function(){var V;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var D;if(((D=this.eventReminderStateEntity)==null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var f,n;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((n=this.eventReminderStateEntity)==
null?void 0:n.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var t;return(t=this.data)==null?void 0:t.currentState};
_.P.updateReminderStateEntitiesFromButtonState=function(V){if(V){switch(V){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":V="UPCOMING_EVENT_REMINDER_STATE_NONE";var D="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":V="UPCOMING_EVENT_REMINDER_STATE_SINGLE";D="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":V="UPCOMING_EVENT_REMINDER_STATE_NONE";D="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var f;
((f=this.eventReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.y1("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:V})));var n;((n=this.seriesReminderStateEntity)==null?0:n.key)&&this.ytdReduxBehavior.dispatch(_.y1("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:D})))}};
_.IG.Object.defineProperties(QC.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var V=this.getButtonStateFromReminderState(),D,f;if(V&&((D=this.data)==null?0:(f=D.states)==null?0:f.length))for(D=_.r(this.data.states),f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;if(((n=_.g(f,ubr))==null?void 0:n.state)===V)return _.g(f,ubr)}}}});
QC.prototype.onYtServiceRequestError=QC.prototype.onYtServiceRequestError;QC.prototype.onYtServiceRequestCompleted=QC.prototype.onYtServiceRequestCompleted;QC.prototype.onSeriesReminderStateEntityChange=QC.prototype.onSeriesReminderStateEntityChange;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],QC.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],QC.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QC.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:q4Z}),_.p("design:type",Object)],QC.prototype,"eventReminderStateEntity",void 0);
_.S([_.q({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(V,D){return _.wg(V.entities,"sportsSeriesReminderStateEntity",D)}}),
_.p("design:type",Object)],QC.prototype,"seriesReminderStateEntity",void 0);_.S([_.R("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],QC.prototype,"currentButtonStateRenderer",null);_.S([_.KI("seriesReminderStateEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QC.prototype,"onSeriesReminderStateEntityChange",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QC.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QC.prototype,"onYtServiceRequestError",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],QC);
_.Y(QC,"ytd-upcoming-event-reminder-button-renderer",function(){if(LBE!==void 0)return LBE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return LBE=V},{mode:1});var IfE;var TC=function(){return _.E.apply(this,arguments)||this};
_.v(TC,_.E);TC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.IG.Object.defineProperties(TC.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(_.c("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TC.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],TC.prototype,"shelfDismissal",void 0);_.S([_.R("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],TC.prototype,"text",null);
_.S([_.R("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],TC.prototype,"textAriaLabel",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],TC);
_.Y(TC,"ytd-notification-multi-action-renderer",function(){if(IfE!==void 0)return IfE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IfE=V},{mode:1});var O0r;var b1=function(){return _.E.apply(this,arguments)||this};
_.v(b1,_.E);b1.prototype.ready=function(){var V=this;_.Pt(this.hostElement).querySelector("#undo").addEventListener("tap",function(){V.onUndoTap()})};
b1.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],b1.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],b1);
_.Y(b1,"ytd-notification-text-renderer",function(){if(O0r!==void 0)return O0r;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return O0r=V},{mode:1});var xgH;var Ka=function(){var V=_.E.apply(this,arguments)||this;V.mouseOverDelayJobId=0;V.fadeInImageDelayJobId=0;V.startTimeMs=-1;V.loadingStartTimeMs=-1;V.loadingEndTimeMs=-1;V.hasVideoPreview=!1;return V};
_.v(Ka,_.E);_.P=Ka.prototype;_.P.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.P.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.showThumbnail=function(){var V=this;this.csn=_.Ni();_.R4("fmth");_.dm.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.JI(_.dm,function(){V.loadingStartTimeMs=(0,_.VW)();var D=_.Pt(V.hostElement).querySelector("#thumbnail");D.complete?V.displayMouseOverImage():D.addEventListener("load",_.Ty(V,V.displayMouseOverImage))},150):_.JA(_.Pt(this.hostElement).querySelector("#play"),"show",!0)};
_.P.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.P.onTap=function(){this.removeVideoPreview()};
_.P.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var V=this.videoId,D=this.csn,f=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,n=this.startTimeMs,t=this.hasVideoPreview,J=_.gs(this.trackingParams),H={isMovingThumbnail:t};t&&n>0&&(f>0&&(H.movingThumbnailLoadingDurationMs=Math.round(f)),H.durationHoveredMs=Math.round((0,_.VW)()-n));V&&(H.videoId=V);_.L6(D,J,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:H});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.P.removeVideoPreview=function(){_.dm.cancelJob(this.mouseOverDelayJobId);_.dm.cancelJob(this.fadeInImageDelayJobId);var V=_.Pt(this.hostElement).querySelector("#thumbnail");_.JA(V,"fade-in",!1);V.removeEventListener("load",_.Ty(this,this.displayMouseOverImage));V=_.Pt(this.hostElement).querySelector("#play");_.JA(V,"fade-in",!1);_.JA(V,"show",!1)};
_.P.displayMouseOverImage=function(){var V=_.Pt(this.hostElement).querySelector("#thumbnail"),D=_.Pt(this.hostElement).querySelector("#play");this.isImageAvailable(V)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.VW)(),this.startTimeMs=(0,_.VW)(),this.fadeInImageDelayJobId=_.JI(_.dm,function(){_.JA(V,"fade-in",!0)},50)):_.JA(D,"fade-in",!0)};
_.P.computeThumbnail=function(V,D){var f;V&&V.movingThumbnailDetails&&V.movingThumbnailDetails.thumbnails&&D?f=_.nT(V.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):f=D?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(f)return _.cS(f)};
_.P.isImageAvailable=function(V){return!(!V.src||V.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||V.naturalWidth===120)};
Ka.prototype.onTap=Ka.prototype.onTap;Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ka.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ka.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ka.prototype,"csn",void 0);_.S([_.q(),_.p("design:type",Object)],Ka.prototype,"trackingParams",void 0);
_.S([_.q(),_.p("design:type",String)],Ka.prototype,"videoId",void 0);_.S([_.q(),_.p("design:type",Boolean)],Ka.prototype,"isAttachedAndDataSet",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ka.prototype,"dataChanged",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ka.prototype,"onTap",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Ka);
_.Y(Ka,"ytd-moving-thumbnail-renderer",function(){if(xgH!==void 0)return xgH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return xgH=V},{mode:1});var M7o;_.HV=function(V){this.hostElement=V;this.eventSink=null;this.eventList=[]};
_.HV.prototype.shouldForward=function(){var V,D;return(D=(V=this.eventSink)==null?void 0:V.isConnected)!=null?D:document.body.contains(this.eventSink)};
_.HV.prototype.start=function(V,D){this.eventSink&&this.stop();for(var f=0;f<V.length;f++)this.hostElement.addEventListener(V[f],_.Ty(this,this.forwardEvent));var n;this.eventSink=(n=D.hostElement)!=null?n:D;this.eventList=V};
_.HV.prototype.stop=function(){for(var V=0;V<this.eventList.length;V++)this.hostElement.removeEventListener(this.eventList[V],_.Ty(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.HV.prototype.forwardEvent=function(V,D){this.shouldForward()&&(V.stopPropagation(),this.eventSink instanceof Element?_.PA(this.eventSink,V.type,D):_.zP(new _.cI("eventSink is not an element")))};_.yC={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.HV(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(V,D){this.forwarder_.start(V,D)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Zw=function(){return _.E.apply(this,arguments)||this};
_.v(Zw,_.E);_.P=Zw.prototype;_.P.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=_.XB("HTML_DIR")==="rtl"?"right":"left"};
_.P.dataChanged=function(){this.popupOpen=!1};
_.P.computeAriaLabel=function(V){return _.g(V,mwP).label};
_.P.onTap=function(V){V.stopPropagation();V.preventDefault();this.data.command&&_.DY().resolve(_.fH).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Zw.prototype.onPopupClosed=Zw.prototype.onPopupClosed;Zw.prototype.onPopupOpened=Zw.prototype.onPopupOpened;Zw.prototype.onTap=Zw.prototype.onTap;Zw.prototype.dataChanged=Zw.prototype.dataChanged;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Zw.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.dE),_.p("design:type",Object)],Zw.prototype,"ironButtonState",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Zw.prototype,"componentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Zw.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:-1}),_.p("design:type",Number)],Zw.prototype,"tabindex",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.p("design:type",Object)],Zw.prototype,"ariaLabel",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Zw.prototype,"disableTooltips",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Zw.prototype,"popupOpen",void 0);
_.S([_.q(),_.p("design:type",Element)],Zw.prototype,"eventSink",void 0);_.S([_.Zv("#tooltip"),_.p("design:type",Object)],Zw.prototype,"tooltip",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zw.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Zw.prototype,"onTap",null);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zw.prototype,"onPopupOpened",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zw.prototype,"onPopupClosed",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Zw);
_.Y(Zw,"ytd-thumbnail-overlay-button-renderer",function(){if(M7o!==void 0)return M7o;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return M7o=V},{mode:1});var hZP;var jG=function(){return _.E.apply(this,arguments)||this};
_.v(jG,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jG.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jG.prototype,"disableAnimation",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jG.prototype,"rounded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jG.prototype,"transparentBackground",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jG.prototype,"noPadding",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],jG);
_.Y(jG,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(hZP!==void 0)return hZP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return hZP=V},{mode:1});var Ugp;var l1=function(){return _.E.apply(this,arguments)||this};
_.v(l1,_.E);l1.prototype.computeIconPosition=function(V){return this.get("iconPosition",V)||null};
l1.prototype.computeIconStyle=function(V){return this.get("iconStyle",V)||null};
l1.prototype.computeIsIconStyleFilled=function(V){if(!V)return!1;var D;return V.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((D=V.icon)==null?void 0:D.iconType)==="ERROR_BLACK"};
_.S([_.q(),_.p("design:type",Object)],l1.prototype,"data",void 0);_.S([_.q({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.p("design:type",Object)],l1.prototype,"iconPosition",void 0);_.S([_.q({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.p("design:type",Object)],l1.prototype,"iconStyle",void 0);_.S([_.q({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],l1.prototype,"iconStyleFilled",void 0);
_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],l1);
_.Y(l1,"ytd-thumbnail-overlay-icon-renderer",function(){if(Ugp!==void 0)return Ugp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Ugp=V},{mode:1});var V0E;var GC=function(){return _.E.apply(this,arguments)||this};
_.v(GC,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GC.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],GC);
_.Y(GC,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(V0E!==void 0)return V0E;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return V0E=V},{mode:1});var Dnl;var eG=function(){var V=_.E.apply(this,arguments)||this;V.isPreviewLoading=!1;return V};
_.v(eG,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eG.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eG.prototype,"isPreviewLoading",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],eG);
_.Y(eG,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Dnl!==void 0)return Dnl;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Dnl=V},{mode:1});var f2V;var cd=function(){return _.E.apply(this,arguments)||this};
_.v(cd,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cd.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],cd);
_.Y(cd,"ytd-thumbnail-overlay-pinking-renderer",function(){if(f2V!==void 0)return f2V;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return f2V=V},{mode:1});var ngF;var FR=function(){var V=_.E.apply(this,arguments)||this;V.disableTooltips=!1;V.isLoading=!1;V.useExpandableTooltip=!1;V.toggled=!1;V.hovered=!1;V.mouseoverDelayJobId=0;V.toggleDelayJobId=0;V.expandAnimationDelayJobId=0;return V};
_.v(FR,_.E);_.P=FR.prototype;_.P.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");_.Pt(this.hostElement).querySelector("#tooltip").position=_.XB("HTML_DIR")==="rtl"?"right":"left"};
_.P.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.dm.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.dm.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.dm.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.P.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.dm.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.dm.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.dm.cancelJob(this.expandAnimationDelayJobId)};
_.P.computeIcon=function(V,D,f){return(V=f?D:V)&&V.iconType?_.Qa(V.iconType):void 0};
_.P.computeAriaLabel=function(V,D,f){return _.g(f?D:V,mwP).label};
_.P.computeTooltip=function(V,D,f){return f?D:V};
_.P.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.P.computeIconOnHover=function(V,D){if((V==null?0:V.iconType)&&!D)return _.Qa(V.iconType)};
_.P.onTap=function(V){var D=this;V.stopPropagation();V.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(V=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(V),this.useExpandableTooltip&&(this.toggleDelayJobId=_.JI(_.dm,function(){D.hovered=!1;D.data&&!D.data.toggledServiceEndpoint&&(D.expandAnimationDelayJobId=_.JI(_.dm,function(){D.set("data.isToggled",
!1)},200))},2E3))};
_.P.onMouseenter=function(){var V=this;this.mouseoverDelayJobId=_.JI(_.dm,function(){V.hovered=!0},300)};
_.P.onMouseleave=function(){_.dm.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.P.onServiceRequestCompleted=function(V,D){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(D)||this.set("data.isToggled",!this.data.isToggled)};
_.P.serviceRequestWasSuccessful=function(V){return _.g(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.NT)?V.data.status==="STATUS_SUCCEEDED":!0};
FR.prototype.onServiceRequestCompleted=FR.prototype.onServiceRequestCompleted;FR.prototype.onPopupClosed=FR.prototype.onPopupClosed;FR.prototype.onPopupOpened=FR.prototype.onPopupOpened;FR.prototype.onMouseleave=FR.prototype.onMouseleave;FR.prototype.dataChanged=FR.prototype.dataChanged;_.S([_.u(_.dE),_.p("design:type",Object)],FR.prototype,"ironButtonState",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],FR.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],FR.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.p("design:type",Object)],FR.prototype,"ariaLabel",void 0);_.S([_.q(),_.p("design:type",Object)],FR.prototype,"disableTooltips",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],FR.prototype,"popupOpen",void 0);_.S([_.q(),_.p("design:type",Object)],FR.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Element)],FR.prototype,"eventSink",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],FR.prototype,"useExpandableTooltip",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.p("design:type",Object)],FR.prototype,"toggled",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],FR.prototype,"hovered",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.p("design:type",Object)],FR.prototype,"iconOnHover",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FR.prototype,"dataChanged",null);
_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FR.prototype,"onMouseleave",null);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FR.prototype,"onPopupOpened",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FR.prototype,"onPopupClosed",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],FR.prototype,"onServiceRequestCompleted",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],FR);
_.Y(FR,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(ngF!==void 0)return ngF;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ngF=V},{mode:_.J2("kevlar_poly_si_batch_j053")?1:2});var t0Y;var Pul=_.MA(function(V){var D=V.data;var f=V.thumbnailSize;var n=function(){return D().enableSegmentView};
return _.K("yt-thumbnail-overlay-progress-bar-view-model",{class:_.KT("ytThumbnailOverlayProgressBarHost",function(){return Y3Y(f==null?void 0:f())})},_.K(_.e,{cond:n,
then:function(){return _.K("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.K("div",{class:_.y6("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+D().startPercent+"%"}}),_.K("div",{class:_.y6("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+D().segmentDurationPercent+"%"}},_.K("div",{class:_.y6("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.K("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.K("div",null," ",function(){return D().segmentLabel})),_.K("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.K("div",{class:_.y6("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.K(_.e,{cond:function(){return!n()&&D().startPercent},
then:function(){var t={};return _.K("div",{class:_.y6("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(t.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.c("web_enable_modern_progress_bar_overlay"),t))},_.K("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+D().startPercent+"%"}}))}}))},"S");
Pul.idomCompat=!0;var ogp=_.MA(function(V){var D=_.HW(),f=_.CT(function(t){var J,H,Q;a:{var T=(J=V.data())==null?void 0:J.animationActivationTargetId;J=((H=V.data())==null?void 0:H.animationActivationEntityKey)||"";H=(Q=V.data())==null?void 0:Q.animationActivationEntitySelectorType;if(J&&T)switch(H){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":t=_.wg(t.entities,"playerStateEntity",J);Q=_.DY().resolve(_.Vx(_.qw));T=!!(t&&t.videoId===T&&(Q==null?0:Q.isMiniplayerActive()));T={activated:T,playAnimation:T&&
t.playerState==="PLAYER_STATE_PLAYING"};break a}T=void 0}return T});
_.BJ(function(){var t;if((t=f())==null?0:t.activated){var J;if((J=f())==null?0:J.playAnimation){var H;(H=D.lottieEl)==null||H.goToAndPlay(0)}else{var Q;(Q=D.lottieEl)==null||Q.goToAndStop(0)}}},"MDTl2e");
var n=function(){var t,J=!((t=f())==null||!t.activated);if(V.data()){t=V.data();var H=void 0;t.icon&&(H=_.lPY(t.icon),H=k9c(H));var Q=void 0,T;if((T=t.backgroundColor)==null?0:T.lightTheme){var y;Q={backgroundColor:Y7((y=t.backgroundColor)==null?void 0:y.lightTheme,"0.8")}}if(t.text||H||J){if(J&&t.lottieData&&D){y=t.lottieData;var Z,l,G;T={animationConfig:{name:y.url,path:y.url,autoplay:(Z=y.settings)==null?void 0:Z.autoplay,loop:(G=(l=y.settings)==null?void 0:l.loop)!=null?G:!0},animationRef:D}}else T=
void 0;if(J)Z=16;else b:switch(t.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":Z=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":Z=18;break b;default:Z=16}J={type:Z,text:J&&t.animatedText?t.animatedText:t.text,icon:H,customColors:Q,animation:T}}else J=void 0}else J=void 0;return J};
return _.K("yt-thumbnail-badge-view-model",{class:_.KT("yt-thumbnail-badge-view-model-wiz",V.class)},_.K(_.e,{cond:n,then:function(){return _.K(_.dD,{data:function(){return n()}})}}))},"T");var JyL=_.MA(function(V){var D={},f={};return _.K("yt-thumbnail-bottom-overlay-view-model",{class:_.KT("ytThumbnailBottomOverlayViewModelHost",(D.ytThumbnailBottomOverlayViewModelHostBackground=function(){return V.data().enableGradientBackground},D))},_.K(_.BW,{data:function(){return V.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(n){return _.K(Pul,{data:n.data,
thumbnailSize:V.thumbnailSize})}}),_.K("div",{class:_.KT("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var n;
return $gY((n=V.thumbnailSize)==null?void 0:n.call(V))},(f.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var n;
return(n=V.isClip)==null?void 0:n.call(V)},f.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var n;
return!_.c("web_enable_modern_progress_bar_overlay")&&((n=V.thumbnailSize)==null?void 0:n.call(V))==="small"},f))},_.K(_.BW,{data:function(){return V.data().badge}},{thumbnailBadgeViewModel:function(n){return _.K(ogp,{data:n.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.K(_.BW,{data:function(){return V.data().badges}},{thumbnailBadgeViewModel:function(n){return _.K(ogp,{data:n.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"U");
JyL.idomCompat=!0;_.fT(JyL,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Dn,thumbnailSize:_.Dn,isClip:_.Dn}});var hZZ={calledOnce:!1,state:"visible"},UgF={calledOnce:!1,state:"hidden"};var g5=_.MA(function(V){var D=V.data;var f=V.className;V=V.alwaysShow;var n=_.WBY(),t={};return _.K("thumbnail-hover-overlay-view-model",{el:_.h2(_.Ew(function(){return D().rendererContext})),
class:_.KT("ytThumbnailHoverOverlayViewModelHost",f,(t.ytThumbnailHoverOverlayViewModelHostForceHover=V,t)),"aria-label":function(){var J;return(J=_.g(D().rendererContext,_.Z8))==null?void 0:J.label},
role:function(){return _.qs(D().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.qs(D().rendererContext)!==void 0?0:void 0},
"on:keypress":n},_.K("div",{class:_.KT("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(D().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.K(_.e,{cond:function(){return D().icon},
then:function(J){return _.K(_.xt,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.K(_.e,{cond:function(){return D().text},
then:function(J){return _.K(_.Ow,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"V");
g5.idomCompat=!0;var ryl=_.MA(function(V){var D=V.data;return _.K(_.BW,{data:function(){return D==null?void 0:D().overlays}},{thumbnailHoverOverlayViewModel:g5})},"W");
ryl.idomCompat=!0;var HSl={};var wZl=_.MA(function(V){var D=V.data;var f=V.image;var n=V.state;var t=V.iconType;var J=V.overlays;var H=V.isOverlay;var Q=_.py("div");V=_.r(_.HJ(!0,void 0,"sUzEZ"));var T=V.next().value,y=V.next().value,Z=function(){return!!D().onTap},l=_.IU(t,"LIVE");
_.BJ(function(){var F=D();requestAnimationFrame(function(){if(Q.value===null)var k=!0;else{var d=Q.value;k=F.badgeText;var z=f2Y(F.size);k in HSl?d=HSl[k]:(d=d.clientWidth,HSl[k]=d);(k=d>z)?Q.value.style.display="none":Q.value.style.visibility="visible"}y(k)})},"SpVcNb");
var G=function(){var F={};return F["yt-spec-avatar-shape__image"]=!0,F["yt-spec-avatar-shape__image--ads-app"]=D().type===1,F};
return _.K("yt-avatar-shape",null,_.K("div",{el:_.h2(t0X(Z,{keydown:function(F){if(F.key==="Enter"){var k;(k=F.currentTarget)==null||k.click()}},
click:function(F){var k,d;return void((d=(k=D()).onTap)==null?void 0:d.call(k,F))}})),
class:function(){var F={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},k=D();F=(F[k.clusterLayoutConfig?JyU(k.clusterLayoutConfig):ryY(k.size)]=!0,F["yt-spec-avatar-shape__button--tappable"]=Z(),F);(k=D().avatarButtonCustomClassName)&&(F[k]=!0);return _.y6(F)},
"aria-label":function(){return Z()?D().accessibilityText:""},
role:function(){return Z()?"button":void 0},
tabindex:function(){return Z()?0:void 0}},_.K("div",{class:function(){var F,k=D(),d=n==null?void 0:n(),z=H==null?void 0:H(),C=!((F=k.decorations)==null||!F.includes(2)||k.size!=="medium"&&k.size!=="large"),A=k.size==="tiny"||k.size==="extra-small",O,W,I,x,oY={};
F=(oY["yt-spec-avatar-shape--live-ring"]=!!(((O=k.decorations)==null?0:O.includes(0))&&wZY(k.size)),oY["yt-spec-avatar-shape--stories-watched"]=C&&!(d==null||!d.storiesWatched),oY["yt-spec-avatar-shape--stories-unwatched"]=C&&!(d==null?0:d.storiesWatched),oY["yt-spec-avatar-shape--background-border"]=QEd(k.decorations)&&!A,oY["yt-spec-avatar-shape--background-border-thin"]=QEd(k.decorations)&&A,oY["yt-spec-avatar-shape__on-select-border"]=!((W=k.decorations)==null||!W.includes(4)),oY["yt-spec-avatar-shape__white-border"]=
!((I=k.decorations)==null||!I.includes(5)),oY["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((x=k.decorations)==null?0:x.includes(5))&&A),oY["yt-spec-avatar-shape--is-overlay"]=!!z,oY);return _.y6(F)},
style:function(){a:{var F=D().clusterLayoutConfig;if(F){b:{var k=F.numAvatarsInCluster;var d=F.avatarIndex;if(d!==k-1){switch(F.clusterSize){case "small":F="32";break;case "medium":F="36";break;case "40":F="40";break;default:k=void 0;break b}k="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+F+"x"+F+"_avatars_"+k+"_index_"+d+".svg"}else k=void 0}if(k){k=_.el({"-webkit-mask-image":"url("+k+")","mask-image":"url("+k+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}k=void 0}return k}},_.K("div",{class:function(){var F={};
var k=D();F=(F[k.clusterLayoutConfig?PuY(k.clusterLayoutConfig):ogF(k.size)]=!0,F["yt-spec-avatar-shape--no-margin"]=QEd(D().decorations),F);return _.y6(F)}},_.K(_.xt,{data:f,
alt:function(){return!Z()&&D().accessibilityText?D().accessibilityText:""},
targetWidth:function(){return HSY(D().size)},
targetHeight:function(){return HSY(D().size)},
className:function(){return _.y6(G())}}),_.K(_.e,{cond:function(){var F;
return((F=D().decorations)==null?void 0:F.includes(0))&&wZY(D().size)},
then:function(){return _.K("div",{class:function(){var F={};F=(F["yt-spec-avatar-shape__live-badge"]=!0,F["yt-spec-avatar-shape__live-badge--badge-small"]=D().size==="small",F["yt-spec-avatar-shape__live-badge--badge-medium"]=D().size==="medium"||D().size==="48",F["yt-spec-avatar-shape__live-badge--badge-large"]=D().size==="large",F["yt-spec-avatar-shape__live-badge--badge-extra-large"]=D().size==="extra-large"||D().size==="extra-extra-large"||D().size==="giant",F);return _.y6(F)}},_.K(_.e,{cond:function(){return D().badgeText},
then:function(F){return _.K("div",{class:"yt-spec-avatar-shape__badge-text",el:Q},F)}}),_.K(_.e,{cond:T,
then:function(){return _.K("div",{class:"yt-spec-avatar-shape__badge-icon"},_.K(_.cj,{icon:l,size:function(){a:switch(D().size){case "extra-large":var F=16;break a;default:F=13}return F}}))}}))}}),_.K(_.e,{cond:function(){var F,k;
return((F=D().decorations)==null?void 0:F.includes(1))||((k=D().decorations)==null?void 0:k.includes(0))&&!wZY(D().size)},
then:function(){return _.K("div",{class:function(){var F=D(),k,d,z={};var C=(z["yt-spec-avatar-shape__live-dot"]=!((k=F.decorations)==null||!k.includes(0)||wZY(F.size)),z["yt-spec-avatar-shape__new-content"]=!((d=F.decorations)==null||!d.includes(1)),z);return _.y6(C)}})}}),_.K(_.e,{cond:function(){return!!J},
then:function(){return _.K("div",{class:function(){var F={};F=Object.assign((F["yt-spec-avatar-shape__image-overlays"]=!0,F),G());return _.y6(F)}},J==null?void 0:J())}})))))},"X");
wZl.idomCompat={callbacks:{overlays:!0}};_.vd=_.MA(function(V){function D(){f().endpoint&&_.Yt(f().endpoint)}
var f=V.data;var n=V.decorations;var t=V.avatarButtonCustomClassName;var J=V.isOverlay;var H=V.clusterLayoutConfig;return _.K("avatar-view-model",null,_.K(_.e,{cond:function(){return f().image},
then:function(Q){return _.K(wZl,{data:function(){return bSX({data:f(),onTap:f().endpoint?D:void 0,decorations:n==null?void 0:n(),badgeText:void 0,accessibilityText:f().accessibilityText,avatarButtonCustomClassName:t==null?void 0:t(),clusterLayoutConfig:H==null?void 0:H()})},
image:Q,iconType:"RADAR_LIVE",overlays:function(){return _.K(ryl,{data:f})},
isOverlay:J})}}))},"Y");
_.vd.idomCompat=!0;_.kd=_.MA(function(V){var D=V.data;V=V.className;var f=_.py("yt-decorated-avatar-view-model"),n=function(){return _.g(D().avatar,_.AY)},t=_.yT(function(){var J,H=D(),Q=n(),T=_.qs(D().rendererContext),y=(J=f.value)!=null?J:void 0,Z;
if(Q){y={data:H,avatar:Q,onTap:T,element:y};J=y.data;H=y.avatar;Q=y.onTap;T=y.element;y=y.commandController;Q=Q?jEx(Q,T,y):void 0;T=[];J.liveData&&T.push(0);var l;y=(l=J.liveData)==null?void 0:l.liveBadgeText;l=(Z=_.g(J.rendererContext,_.Z8))==null?void 0:Z.label;Z=bSX({data:H,onTap:Q,decorations:T,badgeText:y,accessibilityText:l?l:J.a11yLabel})}else Z={size:"medium"};return Z},void 0,"H8tk9d");
return _.K("yt-decorated-avatar-view-model",{class:_.KT("yt-decorated-avatar-view-model-wiz",V),el:f},_.K(_.e,{cond:function(){var J;return(J=n())==null?void 0:J.image},
then:function(J){return _.K(wZl,{data:t,image:J,iconType:"RADAR_LIVE",overlays:function(){return _.K(ryl,{data:n})}})}}))},"Z");
_.kd.idomCompat=!0;_.s9=_.MA(function(V){var D=function(){var Q;return Object.assign({},V.data(),(Q=V.overrides)==null?void 0:Q.call(V))},f=function(){return _.XO(D().rendererContext)},n=function(){var Q=D().avatars,T,y;
return(y=(T=(Q==null?0:Q[0])?_.g(Q[0],_.AY):void 0)==null?void 0:T.avatarImageSize)!=null?y:"AVATAR_SIZE_UNKNOWN"},t=function(){return ZSL(D())},J=function(){if(D().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Q=void 0;
else if((Q=V.decorations)==null?0:Q.call(V))Q=V.decorations();else{Q=D();var T=0;Q.avatars&&(T+=Q.avatars.length);Q.decoratedText&&(T+=1);Q=T>1?[3]:[]}return Q},H={};
return _.K("yt-avatar-stack-view-model",{el:_.h2(_.Ew(function(){return D().rendererContext})),
class:_.KT("yt-avatar-stack-view-model-wiz",V.className,(H["yt-avatar-stack-view-model-wiz--tappable"]=f,H["yt-avatar-stack-view-model-wiz--is-overlay"]=V.isOverlay,H["yt-avatar-stack-view-model-wiz--medium-text"]=V.useMediumText,H)),tabindex:function(){return f()?0:void 0},
role:function(){return f()?"link":void 0},
"aria-label":function(){var Q,T;return(T=(Q=_.g(D().rendererContext,_.Z8))==null?void 0:Q.label)!=null?T:""}},_.K(_.e,{cond:function(){var Q;
return D().avatars&&!((Q=V.hideAvatar)==null?0:Q.call(V))},
then:function(){return _.K("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.K(_.e,{cond:function(){return D().decoratedText},
then:function(Q){var T={};return _.K("div",{class:_.KT("yt-avatar-stack-view-model-wiz__text-container",(T["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS"},T["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var y;
return((y=V.isOverlay)==null?void 0:y.call(V))&&(n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS")},T)),
style:_.el({width:function(){return t().avatarSizeInPx+"px"},
height:function(){return t().avatarSizeInPx+"px"}})},_.K(_.Ow,{text:Q,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.K("div",{style:function(){return _.el(t().avatarStackStyle)()},
class:function(){return t().avatarStackClass}},_.K(_.BW,{data:function(){return t().avatars.reverse()}},{avatarViewModel:function(Q,T){return _.K("div",{style:function(){var y,Z;
return _.el((Z=(y=t()).avatarStyle)==null?void 0:Z.call(y,T()))()},
class:function(){return t().avatarClass}},_.K(_.vd,{data:Q.data,
decorations:J,avatarButtonCustomClassName:function(){return t().avatarButtonCustomClassName},
isOverlay:V.isOverlay,clusterLayoutConfig:function(){var y,Z;return(Z=(y=t()).clusterLayoutConfig)==null?void 0:Z.call(y,T())}}))},
decoratedAvatarViewModel:function(Q,T){return _.K("div",{style:function(){var y,Z;return _.el((Z=(y=t()).avatarStyle)==null?void 0:Z.call(y,T()))()},
class:function(){return t().avatarClass}},_.K(_.kd,{data:Q.data}))}})))}}),_.K(_.e,{cond:function(){return D().text},
then:function(Q){return _.K(_.Ow,{text:Q,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"$");
_.s9.idomCompat=!0;_.fT(_.MA(function(V){var D=V.data;var f=V.thumbnailSize;return _.K("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.K("div",{class:_.KT("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return l2Y(f==null?void 0:f())})},_.K(_.BW,{data:function(){return D().avatarStack}},{avatarStackViewModel:function(n){return _.K(_.s9,{data:n.data,
decorations:[5]})}})))},"aa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.WX,
thumbnailSize:_.WX}});var QEu=_.MA(function(V){V=_.Or(V,{hidden:!1});var D=V.data;return _.K("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:V.hidden},_.K(_.Ow,{text:function(){return D().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.K(_.e,{cond:function(){return D().subtitle},
then:function(){return _.K(_.Ow,{text:function(){return D().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ba");
QEu.idomCompat=!0;_.fT(QEu,"yt-thumbnail-overlay-title-view-model",{props:{data:_.WX,hidden:_.WX}});var TYr=_.MA(function(V){V=_.Or(V,{isClip:!1});var D=V.data,f=V.thumbnailSize,n={};return _.K("yt-thumbnail-overlay-badge-view-model",{class:_.KT("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(D().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var t="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:t="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return t},function(){return Go9(f==null?void 0:f())},(n["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
V.isClip,n))},_.K(_.BW,{data:function(){return D().thumbnailBadges}},{thumbnailBadgeViewModel:function(t){return _.K(ogp,{data:t.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ca");
TYr.idomCompat=!0;_.fT(TYr,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.WX,thumbnailSize:_.WX,isClip:_.WX}});_.V$(emX);_.wk(emX,"yt-page-indicator-view-model",{propNames:["data"]});var Bd=function(){var V=_.E.apply(this,arguments)||this;V.eventSink=function(){return V};
V.disableInteraction=!1;V.noRoundedCorners=!1;V.isPreviewLoading=!1;V.isOriginalAspectRatio=!1;V.computedObjectFit=!1;V.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return V};
_.v(Bd,_.E);_.P=Bd.prototype;
_.P.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:_.c("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"}}};
_.P.onImageLoaded=function(){this.loaded=!0};
_.P.onImageUnloaded=function(){this.loaded=!1};
_.P.computeRichThumbnail=function(V,D,f,n){if(V&&D&&!n&&!_.c("disable_moving_thumbs_handling")&&!f)return D};
_.P.computeImageWidth=function(V,D){return D||9999};
_.P.computeIsOriginalAspectRatio=function(V){return V};
_.P.computeIsLive=function(V){if(V==null?0:V.badges)for(var D=0;D<V.badges.length;D++){var f=V.badges[D];if(f.metadataBadgeRenderer&&f.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(V==null?0:V.thumbnailOverlays)for(D=0;D<V.thumbnailOverlays.length;D++)if(f=V.thumbnailOverlays[D],f.thumbnailOverlayTimeStatusRenderer&&f.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.P.computeObjectFit=function(V,D){return D||(V?"CONTAIN":"")};
_.P.computeNavigationEndpoint=function(V,D,f){return V?D:f};
_.P.computeHasClip=function(V){V=_.r(V||[]);for(var D=V.next();!D.done;D=V.next())if(D.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.P.computeOverlayColor=function(V){var D;return(V==null?0:(D=V.darkColorPalette)==null?0:D.section2Color)?V.darkColorPalette.section2Color:V==null?void 0:V.sampledThumbnailColor};
_.IG.Object.defineProperties(Bd.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return ShR(this.width)}}});
Bd.prototype.onImageUnloaded=Bd.prototype.onImageUnloaded;Bd.prototype.onImageLoaded=Bd.prototype.onImageLoaded;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Bd.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(LrF),_.p("design:type",Object)],Bd.prototype,"ytdThumbnailBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Bd.prototype,"componentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Bd.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Bd.prototype,"circular",void 0);
_.S([_.q({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.p("design:type",Object)],Bd.prototype,"richThumbnail",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.p("design:type",Boolean)],Bd.prototype,"hasClip",void 0);_.S([_.q(),_.p("design:type",Object)],Bd.prototype,"eventSink",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bd.prototype,"queued",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],Bd.prototype,"richGridThumbnail",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Bd.prototype,"useExpandableTooltip",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Bd.prototype,"useUntranslatedNavigationEndpoint",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bd.prototype,"disableInteraction",void 0);
_.S([_.q({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.p("design:type",Object)],Bd.prototype,"computedNavigationEndpoint",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bd.prototype,"nowPlayingEqualizerOnly",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Bd.prototype,"hidePlaybackStatus",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Bd.prototype,"objectFit",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bd.prototype,"noRoundedCorners",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Bd.prototype,"watchFeedThumbnail",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bd.prototype,"isPreviewLoading",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.p("design:type",Object)],Bd.prototype,"isOriginalAspectRatio",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.p("design:type",Object)],Bd.prototype,"computedObjectFit",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.p("design:type",Boolean)],Bd.prototype,"isLiveVideo",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Bd.prototype,"loaded",void 0);_.S([_.q({computed:"computeOverlayColor(data.thumbnail)"}),_.p("design:type",Object)],Bd.prototype,"overlayColor",void 0);_.S([_.q({selector:_.ePU}),_.p("design:type",Boolean)],Bd.prototype,"inlinePreviewIsEnabled",void 0);_.S([_.q(),_.p("design:type",Number)],Bd.prototype,"width",void 0);
_.S([_.R("inlinePreviewIsEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bd.prototype,"isPreviewDisabled",null);_.S([_.R("width"),_.p("design:type",String),_.p("design:paramtypes",[])],Bd.prototype,"thumbnailSize",null);_.S([_.bU("image-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bd.prototype,"onImageLoaded",null);
_.S([_.bU("image-unloaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bd.prototype,"onImageUnloaded",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-thumbnail"})],Bd);
var bSY=_.o5()(Bd,"ytd-thumbnail",function(){if(t0Y===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);t0Y=V}V=t0Y;return V},{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 vgd=function(V){var D=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12938_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12938_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(f){Kt6(D,f)};
this.onLockupMouseLeaveFn=function(f){f=f.relatedTarget;var n,t;((n=document.getElementsByTagName("ytd-video-preview"))==null?0:(t=n.item(0))==null?0:t.contains(f))||(D.terminateVideoPreview(),d5(D))};
this.onThumbnailMouseDownFn=function(){D.terminateVideoPreview();d5(D)};
this.onTouchStart=function(){D.JSC$12938_touched=!0};
this.mediaRenderer=V.mediaRenderer;this.thumbnailElement=V.thumbnailElement;this.lockupElement=V.lockupElement;this.videoPreviewOptsInput=V.videoPreviewOpts;yy6(this);u1(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)):
_.zP(Error("Hh")):_.zP(Error("Ih")):ZSU(this)},D1=function(V){ZSU(V);
var D;(D=V.lockupElement)==null||D.removeEventListener("mouseenter",V.onMouseMoveFn);var f;(f=V.lockupElement)==null||f.removeEventListener("mouseleave",V.onLockupMouseLeaveFn);var n;(n=V.lockupElement)==null||n.removeEventListener("touchstart",V.onTouchStart);var t;(t=V.thumbnailElement)==null||t.removeEventListener("mousedown",V.onThumbnailMouseDownFn);d5(V)},yy6=function(V){V.inlinePreviewIsEnabledForUser=_.Ol().getState().ui.inlinePreviewIsEnabled;
V.unsubscribeFromInlinePreviewIsEnabled=_.yX(_.Ol(),_.ePU,function(D){(V.inlinePreviewIsEnabledForUser=D)||d5(V)});
V.JSC$12938_unsubscribeFromInlinePreviewIsActive=_.yX(_.Ol(),_.GN9,function(D){(V.inlinePreviewIsActive=D)||d5(V)})},ZSU=function(V){V.unsubscribeFromInlinePreviewIsEnabled();
V.unsubscribeFromInlinePreviewIsEnabled=function(){};
V.JSC$12938_unsubscribeFromInlinePreviewIsActive();V.JSC$12938_unsubscribeFromInlinePreviewIsActive=function(){}},Kt6=function(V,D){D.buttons>0||(D=_.tU("kevlar_lockup_hover_delay",-1),V.JSC$12938_touched&&D>=0?(_.dm.cancelJob(V.videoPreviewJobId),V.videoPreviewJobId=_.JI(_.dm,function(){jEo(V)},D),V.JSC$12938_touched=!1):jEo(V))},seZ=function(V){V.videoPreviewJobId=_.JI(_.dm,function(){var D,f,n,t;
return _.w(function(J){if(J.nextAddress==1){if(!u1(V))return J.return();D=V.getVideoPreviewOpts();if(!D)return J.return();D.isAutoplay=!0;return(n=(f=_.JR(V.mediaRenderer.hostElement,"yt-open-video-preview-action",[D]))&&f[0])?_.b(J,f[0],3):J.jumpTo(2)}J.nextAddress!=2&&(n=J.yieldResult===1);n&&Ft9((t=V.mediaRenderer)==null?void 0:t.data);_.yz(J)})})},jEo=function(V){!V.previewTriggered&&u1(V)&&(V.inlinePreviewIsActive&&V.terminateVideoPreview(),V.previewTriggered=!0,V.mediaRenderer.isInlinePreviewTriggered=
!0,_.dm.cancelJob(V.videoPreviewJobId),V.videoPreviewJobId=_.JI(_.dm,function(){var D,f,n,t;
return _.w(function(J){if(J.nextAddress==1){if(!u1(V))return J.return();D=V.getVideoPreviewOpts();return D?(n=(f=_.JR(V.mediaRenderer.hostElement,"yt-open-video-preview-action",[D]))&&f[0])?_.b(J,f[0],3):J.jumpTo(2):J.return()}J.nextAddress!=2&&(n=J.yieldResult===1);n&&Ft9((t=V.mediaRenderer)==null?void 0:t.data);_.yz(J)})}))};
vgd.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var V,D;if((D=(V=this.videoPreviewOptsInput)==null?void 0:V.videoPreviewData)!=null)V=D;else if(V=this.mediaRenderer.data)if(cyn(V))V={inlinePlaybackEndpoint:_.Xo(V.inlinePlayerData.onVisible),navigationEndpoint:_.Xo(V.onTap),thumbnail:"image"in V?V.image:V.thumbnail,thumbnailOverlays:void 0,accessibilityText:ggZ(V)};else if("multipleInlinePlaybackEndpoint"in V){var f=_.g(_.g(V.multipleInlinePlaybackEndpoint,ipP),SOp);if(f!=
null&&f.playerDescriptors){D=[];f=_.r(f.playerDescriptors);for(var n=f.next();!n.done;n=f.next())n=n.value,D.push({inlinePlaybackEndpoint:n.inlinePlaybackEndpoint,navigationEndpoint:n.navigationEndpoint,thumbnail:n.thumbnail,thumbnailOverlays:n.thumbnailOverlays,accessibilityText:ggZ(V)});V=D}else V=void 0}else V={inlinePlaybackEndpoint:V.inlinePlaybackEndpoint,navigationEndpoint:V.navigationEndpoint,thumbnail:V.thumbnail,thumbnailOverlays:V.thumbnailOverlays,accessibilityText:ggZ(V)};else V=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:V,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var u1=function(V){var D;if(D=V.inlinePreviewIsEnabledForUser)D=(V=V.mediaRenderer.data)?"inlinePlaybackEndpoint"in V&&V.inlinePlaybackEndpoint||cyn(V)&&V.inlinePlayerData||"multipleInlinePlaybackEndpoint"in V&&V.multipleInlinePlaybackEndpoint?!0:!1:!1;return D};
vgd.prototype.terminateVideoPreview=function(){_.o4(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var d5=function(V){_.dm.cancelJob(V.videoPreviewJobId);V.inlinePreviewIsActive=!1;V.previewTriggered=!1;V.mediaRenderer.isInlinePreviewTriggered=!1};var l2V=_.WV(["#"]),Nh=function(){var V=_.E.apply(this,arguments)||this;V.isDisabled=!1;return V};
_.v(Nh,_.E);_.P=Nh.prototype;_.P.configureRendererStamper=function(){return{"data.menu":w5,"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"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.getMetadata=function(V){var D=[];if(V.metadataText&&Object.keys(V.metadataText).length>0){var f=this.ytRendererBehavior.getSimpleString(V.metadataText);V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&(f=_.da(f,Number(V.upcomingEventData.startTime)));D.push(f)}else V.shortViewCountText&&D.push(this.ytRendererBehavior.getSimpleString(V.shortViewCountText)),V.publishedTimeText&&D.push(this.ytRendererBehavior.getSimpleString(V.publishedTimeText)),V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&
(f=this.ytRendererBehavior.getSimpleString(V.upcomingEventData.upcomingEventText),D.push(_.da(f,Number(V.upcomingEventData.startTime))));return D};
_.P.calculateBylineText=function(V){return V.shortBylineText?V.shortBylineText:V.bylineText?V.bylineText:null};
_.P.calculateIsDisabled=function(V){return!!V.isDisabled};
_.P.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V)||_.vS(l2V)};
_.P.onDetailsTap=function(V){var D=this.data&&this.data.navigationEndpoint;D&&!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.c("kevlar_grid_video_renderer_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D))};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12943_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:_.Pt(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Pt(this.hostElement).querySelector("ytd-thumbnail")})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$12943_inlinePreviewHoverListener)==null||D1(V)};
_.P.computeThumbnailWidth=function(V,D){return D&&D>0?D:V?360:210};
_.P.computeShowChannelThumbnail=function(V,D){var f;return D&&!!(V==null?0:(f=V.channelThumbnailSupportedRenderers)==null?0:f.channelThumbnailWithLinkRenderer)};
_.IG.Object.defineProperties(Nh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$12943_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Nh.prototype.dataChanged=Nh.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Nh.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Nh.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.E_),_.p("design:type",Object)],Nh.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Nh.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Nh.prototype,"noEndpoints",void 0);_.S([_.q({computed:"calculateBylineText(data)"}),_.p("design:type",Object)],Nh.prototype,"bylineText",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Nh.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Nh.prototype,"isDownloading",void 0);_.S([_.q({reflectToAttribute:!0,value:0}),_.p("design:type",Number)],Nh.prototype,"width",void 0);_.S([_.q({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.p("design:type",Object)],Nh.prototype,"isDisabled",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nh.prototype,"dataChanged",null);_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Nh.prototype,"isHovered",null);_.S([_.a({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Nh);
_.Y(Nh,"ytd-grid-video-renderer",function(){if(pxL!==void 0)return pxL;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pxL=V},{mode:_.J2("kevlar_poly_si_batch_j047")?1:2});var Gol;var m1=function(){var V=_.E.apply(this,arguments)||this;V.roundedContainer=!0;V.skipRoundingTop=!1;V.disableTopPadding=!1;V.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return V};
_.v(m1,_.E);m1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
m1.prototype.onClick=function(V){var D,f=(D=this.data)==null?void 0:D.sourceEndpoint;!_.It(_.Os(V),this.hostElement,["A".toString()])&&f&&_.PA(this.hostElement,"yt-navigate",{endpoint:f})};
_.IG.Object.defineProperties(m1.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 V;return!((V=this.data)==null||!V.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.data)==null?void 0:V.paragraphMaxLines)!=null?D:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],m1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],m1.prototype,"showVerticalDividers",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],m1.prototype,"roundedContainer",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],m1.prototype,"skipRoundingTop",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],m1.prototype,"disableTopPadding",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],m1.prototype,"amsterdamEnabled",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],m1.prototype,"showMetadataAtTop",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],m1.prototype,"showMetadataBelowTitle",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],m1.prototype,"hasMenu",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.truncateParagraphs"),_.p("design:type",Object),_.p("design:paramtypes",[])],m1.prototype,"truncateParagraphs",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.paragraphMaxLines"),_.p("design:type",Number),_.p("design:paramtypes",[])],m1.prototype,"paragraphMaxLines",null);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],m1.prototype,"background",null);_.S([_.a({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],m1);
_.Y(m1,"ytd-info-panel-content-renderer",function(){if(Gol!==void 0)return Gol;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Gol=V},{mode:_.J2("kevlar_poly_si_batch_j076")?1:2});var emY;var cyH;var FtF;var ggF;var zC=function(){return _.E.apply(this,arguments)||this};
_.v(zC,_.E);zC.prototype.computeStyle=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zC.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],zC.prototype,"style_",void 0);_.S([_.zy({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],zC);
_.Y(zC,"yt-channel-thumbnail-with-link-renderer",function(){if(ggF===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;FtF===void 0&&(FtF=document.createElement("template"));var n=FtF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ggF=V}V=ggF;return V},{mode:2});var R1=function(){var V=_.E.apply(this,arguments)||this;V.modernTypography=_.c("web_modern_typography");return V};
_.v(R1,_.E);R1.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"}}}};
R1.prototype.computeTitleStyle=function(V){return V||null};
R1.prototype.computeAvatarStyle=function(V){return V||null};
R1.prototype.computeShowNavigationButton=function(V,D){return!(V==null||!V.navigationButton||D)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],R1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.p("design:type",String)],R1.prototype,"titleStyle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.p("design:type",String)],R1.prototype,"avatarStyle",void 0);_.S([_.q(),_.p("design:type",Boolean)],R1.prototype,"hideNavigationButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],R1.prototype,"isModernSd",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],R1.prototype,"modernTypography",void 0);
_.S([_.a({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],R1);
_.Y(R1,"ytd-rich-list-header-renderer",function(){if(cyH!==void 0)return cyH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return cyH=V},{mode:_.J2("kevlar_poly_si_batch_j058")?1:2});var Ca=function(){return _.E.apply(this,arguments)||this};
_.v(Ca,_.E);Ca.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]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ca.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ca.prototype,"isSearch",void 0);_.S([_.a({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ca);
_.Y(Ca,"ytd-preview-card-renderer",function(){if(emY!==void 0)return emY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return emY=V},{mode:1});var vgu;var qh=function(){return _.E.apply(this,arguments)||this};
_.v(qh,_.E);qh.prototype.configureRendererStamper=function(){return{"data.menu":w5}};
qh.prototype.dataChanged=function(){var V=this.get("colorExtractionPalette.section1Color",this.data);V=_.AP(V);_.wI(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":V})};
qh.prototype.computeCardStyle=function(V){return this.get("style.value",V)||null};
qh.prototype.dataChanged=qh.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],qh.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qh.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.p("design:type",String)],qh.prototype,"cardStyle",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qh.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],qh);
_.Y(qh,"ytd-compact-channel-recommendation-card-renderer",function(){if(vgu!==void 0)return vgu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return vgu=V},{mode:1});var koP;var sEH;var E9=function(){var V=_.E.apply(this,arguments)||this;V.alignAuto=!1;V.collapsed=!0;V.isToggled=!1;V.alwaysCollapsed=!1;V.canToggle=!0;V.collapsedHeight=80;V.disableToggle=!1;V.alwaysToggleable=!1;V.reversed=!1;V.shouldUseNumberOfLines=!1;V.recomputeOnResize=!1;V.canToggleJobId=0;V.lastReversed=!1;return V};
_.v(E9,_.E);_.P=E9.prototype;_.P.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.P.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.P.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var V=_.Pt(this.hostElement),D=V.childNodes,f=document.createDocumentFragment(),n=V.childNodes.length-1;n>=0;n--)_.Pt(f).appendChild(D[n]);_.c("enable_shadydom_free_scoped_node_methods")?_.oU(this.hostElement).appendChild(f):V.appendChild(f)}};
_.P.ready=function(){var V=this;_.aU(function(){V.initChildrenObserver()},1)};
_.P.detached=function(){this.detachObserver()};
_.P.toggle=function(V,D){this.canToggle&&(this.isToggled=D,_.PA(this.hostElement,"yt-refit"),V&&V.stopPropagation())};
_.P.reset=function(){this.childrenChanged()};
_.P.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.P.computeIsMoreVisible=function(V,D){return V&&!D};
_.P.computeShouldUseNumberOfLines=function(V){try{return!!V&&window.CSS.supports("-webkit-line-clamp","1")}catch(D){}return!1};
_.P.computeIsLessVisible=function(V,D){return V&&D};
_.P.observeCollapsedHeightAndMaxLines=function(){var V=this.collapsedHeight,D=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.wI(this.hostElement,{"--ytd-expander-max-lines":""+D,"--ytd-expander-collapsed-height":""}):_.wI(this.hostElement,{"--ytd-expander-collapsed-height":V+"px","--ytd-expander-max-lines":""})};
_.P.handleMoreTap=function(V){this.disableToggle||(_.PA(this.hostElement,"yt-expander-more-tapped"),this.toggle(V,!0))};
_.P.handleLessTap=function(V){_.PA(this.hostElement,"yt-expander-less-tapped");this.toggle(V,!1)};
_.P.initChildrenObserver=function(){var V=this;this.observer=new MutationObserver(function(){V.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.P.childrenChanged=function(){var V=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){ot(function(){V.canToggleJobId=0;V.calculateCanCollapse()})}))};
_.P.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};
_.P.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.P.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("collapsed-changed",this.collapsed))};
_.P.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("is-toggled-changed",this.isToggled))};
_.P.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("can-toggle-changed",this.canToggle))};
_.IG.Object.defineProperties(E9.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
E9.prototype.canToggleChangedForBinding=E9.prototype.canToggleChangedForBinding;E9.prototype.isToggledChangedForBinding=E9.prototype.isToggledChangedForBinding;E9.prototype.collapsedChangedForBinding=E9.prototype.collapsedChangedForBinding;E9.prototype.observeCollapsedHeightAndMaxLines=E9.prototype.observeCollapsedHeightAndMaxLines;E9.prototype.onIronResize=E9.prototype.onIronResize;E9.prototype.reversedChanged=E9.prototype.reversedChanged;E9.prototype.toggledChanged=E9.prototype.toggledChanged;
E9.prototype.alwaysToggleableChanged=E9.prototype.alwaysToggleableChanged;_.S([_.u(_.sp),_.p("design:type",Object)],E9.prototype,"ironResizableBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],E9.prototype,"alignAuto",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],E9.prototype,"collapsed",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"isToggled",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"alwaysCollapsed",void 0);
_.S([_.q(),_.p("design:type",Object)],E9.prototype,"canToggle",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"collapsedHeight",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"disableToggle",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"alwaysToggleable",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"reversed",void 0);_.S([_.q(),_.p("design:type",Number)],E9.prototype,"maxNumberOfLines",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.p("design:type",Object)],E9.prototype,"shouldUseNumberOfLines",void 0);_.S([_.q(),_.p("design:type",Object)],E9.prototype,"recomputeOnResize",void 0);_.S([_.Zv("#content"),_.p("design:type",HTMLDivElement)],E9.prototype,"content",void 0);_.S([_.eY("alwaysToggleable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"alwaysToggleableChanged",null);
_.S([_.eY("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"toggledChanged",null);_.S([_.R("canToggleJobId"),_.p("design:type",Object),_.p("design:paramtypes",[])],E9.prototype,"isResetting",null);_.S([_.KI("reversed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"reversedChanged",null);
_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"onIronResize",null);_.S([_.KI("maxNumberOfLines","collapsedHeight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"observeCollapsedHeightAndMaxLines",null);_.S([_.KI("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"collapsedChangedForBinding",null);
_.S([_.KI("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"isToggledChangedForBinding",null);_.S([_.KI("canToggle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E9.prototype,"canToggleChangedForBinding",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-expander"})],E9);
_.Y(E9,"ytd-expander",function(){if(sEH!==void 0)return sEH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return sEH=V},{mode:1});var A8=function(){return _.E.apply(this,arguments)||this};
_.v(A8,_.E);A8.prototype.computeIsCarousel=function(V){return!!V.isCarousel};
A8.prototype.observeLightsourcePalette=function(){var V,D=(V=this.data)==null?void 0:V.vibrantsourceColorPaletteData;D&&_.Na(this.hostElement,D)};
A8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
A8.prototype.observeLightsourcePalette=A8.prototype.observeLightsourcePalette;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],A8.prototype,"data",void 0);_.S([_.q({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],A8.prototype,"isCarousel",void 0);
_.S([_.KI("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A8.prototype,"observeLightsourcePalette",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],A8);
_.Y(A8,"ytd-media-upsell-renderer",function(){if(koP!==void 0)return koP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return koP=V},{mode:2});var BYL;var a1=function(){var V=_.E.apply(this,arguments)||this;V.JSC$12971_playerEvents=new Map;V.listeningToPlayer=!1;V.startX=0;V.active=!1;V.shouldShowButtons=_.c("web_buttons_hidden_killswitch");V.isHighlighted=!1;V.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");V.modern=_.c("kevlar_modern_sd");V.enableProblemWalkthrough=_.c("problem_walkthrough_sd");return V};
_.v(a1,_.E);_.P=a1.prototype;
_.P.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}}}}}};
_.P.created=function(){this.JSC$12971_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Ty(this,this.onRepeatButtonToggle));_.c("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Ty(this,this.onActiveUpdate))};
_.P.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Ty(this,this.onRepeatButtonToggle));_.c("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Ty(this,this.onActiveUpdate))};
_.P.onDataChanged=function(){this.removePlayerListeners()};
_.P.onColorPaletteChange=function(){var V={},D;if(_.dU()==="USER_INTERFACE_THEME_DARK"&&((D=this.data)==null?0:D.darkColorPalette)){var f=this.data.darkColorPalette;V["--ytd-macro-markers-list-item-background-color"]=_.aB(this.get("section2Color",f))}else{var n;_.dU()==="USER_INTERFACE_THEME_LIGHT"&&((n=this.data)==null?0:n.lightColorPalette)&&(f=this.data.lightColorPalette,V["--ytd-macro-markers-list-item-background-color"]=_.aB(this.get("section3Color",f)))}f?(V["--ytd-macro-markers-list-item-title-color"]=
_.aB(this.get("primaryTitleColor",f)),V["--ytd-macro-markers-list-item-secondary-color"]=_.aB(this.get("secondaryTitleColor",f)),V["--ytd-macro-markers-list-item-timestamp-background-color"]=_.aB(this.get("section1Color",f)),this.customButtonProperties={customColors:{color:_.aB(this.get("primaryTitleColor",f))}},this.useColorSampling=!0):(V["--ytd-macro-markers-list-item-background-color"]="initial",V["--ytd-macro-markers-list-item-title-color"]="initial",V["--ytd-macro-markers-list-item-secondary-color"]=
"initial",V["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.wI(this.hostElement,V)};
_.P.onEndpointMouseDown=function(V){this.startX=V.clientX};
_.P.onEndpointClick=function(V){var D=this,f,n,t;return _.w(function(J){if(J.nextAddress==1){if(D.startX!==V.clientX)return V.preventDefault(),J.return();D.data&&D.ytRendererBehavior.logExplicitClick(D.data);if(!D.seekWithAnimationOnClick)return J.jumpTo(0);if(V.button!==0||V.shiftKey||V.altKey||V.metaKey||V.ctrlKey||_.It(_.Os(V),D.hostElement,["BUTTON".toString()]))return J.return();V.stopPropagation();V.preventDefault();return D.data?_.b(J,_.Uo().getPlayerPromise(),3):J.return()}f=J.yieldResult;
t=(n=_.g(D.data.onTap,_.pl))==null?void 0:n.startTimeSeconds;t!==void 0&&f.seekToTimeWithAnimation(t*1E3,_.LA(D.data.title));_.yz(J)})};
_.P.computeLayout=function(V){return V};
_.P.computeIsHighlighted=function(V){return!!V};
_.P.computeCarouselType=function(V){return V};
_.P.hideModernCarousel=function(V){return this.modern&&this.hideThumbnail(V)};
_.P.hideThumbnail=function(V){return this.enableProblemWalkthrough&&V!==null&&V==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.P.onRepeatButtonToggle=function(V){var D=this;V.detail.toggled&&_.Uo().getPlayerPromise().then(function(f){D.ytPlayerListenerBehavior.listenToPlayerEvents(f,D.JSC$12971_playerEvents);D.listeningToPlayer=!0})};
_.P.onLoopRangeChange=function(V){var D=_.Pt(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(D){var f=D.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",D.polymerController.data);if(f){var n=Number(f.endTimeMs);if(Number(f.startTimeMs)!==(V==null?void 0:V.startTimeMs)||n!==(V==null?void 0:V.endTimeMs))D.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.P.removePlayerListeners=function(){var V=this;this.listeningToPlayer&&_.Uo().getPlayerPromise().then(function(D){V.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D,V.JSC$12971_playerEvents);V.listeningToPlayer=!1})};
_.P.onActiveUpdate=function(V){this.active=V.detail.active};
a1.prototype.onColorPaletteChange=a1.prototype.onColorPaletteChange;a1.prototype.onDataChanged=a1.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],a1.prototype,"ytPlayerListenerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],a1.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],a1.prototype,"useCustomColors",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],a1.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],a1.prototype,"shouldShowButtons",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.p("design:type",String)],a1.prototype,"layout",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.p("design:type",Object)],a1.prototype,"isHighlighted",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],a1.prototype,"useHighlightStyling",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],a1.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],a1.prototype,"enableProblemWalkthrough",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.p("design:type",String)],a1.prototype,"carouselType",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],a1.prototype,"useColorSampling",void 0);_.S([_.q(),_.p("design:type",Boolean)],a1.prototype,"seekWithAnimationOnClick",void 0);_.S([_.q(),_.p("design:type",Object)],a1.prototype,"customButtonProperties",void 0);
_.S([_.Zv("#repeat-button"),_.p("design:type",HTMLElement)],a1.prototype,"repeatButton",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],a1.prototype,"onDataChanged",null);_.S([_.KI("data.lightColorPalette","data.darkColorPalette"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],a1.prototype,"onColorPaletteChange",null);_.S([_.a({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],a1);
_.Y(a1,"ytd-macro-markers-list-item-renderer",function(){if(BYL!==void 0)return BYL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return BYL=V},{mode:1});var dnY;var uxl;var Yd=function(){var V=_.E.apply(this,arguments)||this;V.modernTypography=_.c("web_modern_typography");return V};
_.v(Yd,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Yd.prototype,"modernTypography",void 0);_.S([_.q(),_.p("design:type",Object)],Yd.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Yd);
_.Y(Yd,"ytd-title-and-button-list-header-renderer",function(){if(uxl!==void 0)return uxl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return uxl=V},{mode:1});var NYp;var mnF=new _.IH("BUTTON_RENDERER_WIZ_TOKEN"),zmP=new _.IH("BUTTON_RENDERER_TOKEN");_.$d=_.MA(function(V){var D=_.DY().resolve(_.Vx(mnF));if(D)return _.K(D,Object.assign({},V));var f=_.DY().resolve(zmP);return f?_.K(GkU,null,function(){return _.K(Ly,null,function(){var n,t,J,H,Q,T,y,Z,l,G,F,k;return void f(V.data(),{onButtonClickCallback:V.onButtonClickCallback,shouldShowIcons:(n=V.shouldShowIcons)==null?void 0:n.call(V),icon:(t=V.icon)==null?void 0:t.call(V),processAllEndpoints:(J=V.processAllEndpoints)==null?void 0:J.call(V),preventDefault:(H=V.preventDefault)==null?void 0:H.call(V),
stopPropagation:(Q=V.stopPropagation)==null?void 0:Q.call(V),disableButtonRendererClickHandling:(T=V.disableButtonRendererClickHandling)==null?void 0:T.call(V),className:(y=V.className)==null?void 0:y.call(V),buttonOverrides:(Z=V.buttonOverrides)==null?void 0:Z.call(V),forceModernIconButton:(l=V.forceModernIconButton)==null?void 0:l.call(V),isSubscribe:(G=V.isSubscribe)==null?void 0:G.call(V),alignByText:(F=V.alignByText)==null?void 0:F.call(V),forceDisabled:(k=V.forceDisabled)==null?void 0:k.call(V)})})}):
_.K(_.th,null)},"da");
_.$d.idomCompat=!0;var RmV=_.MA(function(V){var D=V.data,f=_.IU(V.useSquareAspectRatio,!1);return _.K("dismissed-mini-game-card-view-model",null,_.K(_.e,{cond:function(){var n,t;return(n=D().responseText)==null?void 0:(t=n.runs)==null?void 0:t.length},
then:function(){var n={};return _.K("div",{class:_.KT("yt-mini-game-card-view-model__dismissed-card",(n["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!f()},n["yt-mini-game-card-view-model--dismissed-square-card"]=f,n))},_.K("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.K(_.e,{cond:function(){return D().responseText.runs[0].text},
then:function(t){return _.K("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:t},t)}}),_.K(_.BW,{data:function(){return D().buttons}},{buttonRenderer:_.$d,
buttonViewModel:_.HO})))}}))},"ea");var YAF=_.MA(function(V){V=_.Or(V,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var D=V.data,f=V.useFullWidth,n=V.isDesktopWeb,t=V.addSearchResultTopMargin,J=function(){return D().layout},H=function(){return D().title},Q=function(){return D().metadataText?D().metadataText:D().genre},T=function(){return D().channelName},y=function(){return D().image},Z=function(){return D().colorPalette},l=function(){return D().actionButton},G=function(){return D().overflowButton},
F=function(){return D().avatar},k=function(){var A={};
A=_.KT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(A["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return n()},A));
return _.K("div",{class:A},_.K(Cuu,{imageData:y,colorPalette:Z}),_.K(qAo,{onTap:function(){return D().onTap},
imageData:y,accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.K(_.e,{cond:function(){return!n()},
then:function(){return _.K(_.th,null,_.K(XZ6,{layout:J,colorPalette:Z,isDesktopWeb:n,overflowButton:G,avatar:F,onTap:function(){return D().onTap},
genre:Q,title:H,channelName:T}),_.K(EgU,{actionButton:l}))}}))},d=function(){var A={};
A=_.KT((A["yt-mini-game-card-view-model--search-result-desktop"]=function(){return n()},A["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!n()},A["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return t()},A));
return _.K("div",{class:A},k(),_.K(AyH,{description:function(){return D().description},
isDesktopWeb:n,title:H,genre:Q,onTap:function(){return D().onTap},
actionButton:l,overflowButton:G,avatar:F,channelName:T}))},z=function(){var A={};
A=_.KT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(A["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return n()},A["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return n()&&D().width===135},A["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return n()},A["yt-mini-game-card-view-model--big-metadata-font"]=function(){return D().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},A["yt-mini-game-card-view-model--use-full-width"]=
function(){return f()},A["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!l()},A));
return _.K("div",{class:A},_.K(a2p,{colorPalette:Z,isDesktopWeb:n,onTap:function(){return D().onTap},
accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
actionButton:l,imageData:y}),_.K(XZ6,{layout:J,colorPalette:Z,isDesktopWeb:n,overflowButton:G,avatar:F,onTap:function(){return D().onTap},
genre:Q,title:H,channelName:T}))},C=function(){var A={};
A=_.KT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(A["yt-mini-game-card-view-model--square-card-desktop"]=function(){return n()},A["yt-mini-game-card-view-model--use-full-width"]=function(){return f()},A));
return _.K("div",{class:A},_.K(qAo,{onTap:function(){return D().onTap},
imageData:y,accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.K(XZ6,{layout:J,colorPalette:Z,isDesktopWeb:n,overflowButton:G,avatar:F,onTap:function(){return D().onTap},
genre:Q,title:H,channelName:T}))};
return _.K("mini-game-card-view-model",{class:V.className},_.K(_.kw,null,_.K(_.gj,{when:function(){return J()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return z()}),_.K(_.gj,{when:function(){return J()==="MINI_APP_LAYOUT_SQUARE"}},function(){return C()}),_.K(_.gj,{when:function(){return J()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return d()})))},"fa");
YAF.idomCompat=!0;var EgU=_.MA(function(V){var D=_.IU(V.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.K(_.BW,{data:V.actionButton},{buttonViewModel:function(f){return _.K("div",{class:D},_.K(_.HO,{data:f.data}))}})},"ga"),qAo=_.MA(function(V){var D=V.onTap;
var f=V.imageData;var n=V.accessibilityText;var t=V.overlayBadgeText;var J=V.iconName;var H=V.unplayableInlinePlaybackIconName;V=V.isDesktopWeb;return _.K(_.YC,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:D},_.K(_.xt,{data:f,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(n==null?void 0:n())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.K($nU,{overlayBadgeText:t,iconName:J,unplayableInlinePlaybackIconName:H,isDesktopWeb:V}))},"ha"),$nU=_.MA(function(V){var D=V.overlayBadgeText;
var f=V.iconName;var n=V.unplayableInlinePlaybackIconName;var t=V.isDesktopWeb;return _.K("div",{class:"yt-mini-game-card-view-model__badge-container"},_.K(_.e,{cond:f,then:function(J){return _.K("div",{class:"yt-mini-game-card-view-model__badge"},_.K("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.K(_.cj,{icon:J,className:"yt-mini-game-card-view-model__icon",size:12}),_.K("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},D)))}}),_.K(_.e,{cond:function(){return!f()&&
D()},
then:function(){return _.K("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},D)}}),_.K(_.e,{cond:function(){return n()&&t()},
then:function(){return _.K("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.K(_.cj,{icon:n,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ia"),Cuu=_.MA(function(V){var D=V.colorPalette;
var f=V.imageData;var n=function(){return D().vibrantColorPalette?D().vibrantColorPalette.section2Color:D().sectionTwoColor};
return _.K(_.th,null,_.K("div",{class:"yt-mini-game-card-view-model__background-base",style:_.el({"background-color":function(){return Y7(n(),"1")}})}),_.K("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.el({"background-image":function(){return"url("+f().sources[0].url+")"}})}),_.K("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.el({background:function(){return"linear-gradient(180deg,\n    "+Y7(n(),".8")+" 0%,\n    "+Y7(n(),".4")+" 25%,\n    "+Y7(D().vibrantColorPalette?D().vibrantColorPalette.section4Color:D().sectionFourColor,".8")+" 100%)"}})}))},"ja"),XZ6=_.MA(function(V){var D=V.layout;
var f=V.colorPalette;var n=V.overflowButton;var t=V.avatar;var J=V.onTap;var H=V.title;var Q=V.channelName;var T=V.genre;var y=function(){var Z;return D()!=="MINI_APP_LAYOUT_SQUARE"&&((Z=f())==null?0:Z.textPrimaryColor)?"color: "+Y7(f().textPrimaryColor,".7"):""};
return _.K("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.K(_.e,{cond:t,then:function(){return _.K("div",{class:"yt-mini-game-card-view-model__avatar"},_.K(_.BW,{data:t},{avatarViewModel:_.vd}))}}),_.K(_.YC,{command:J,
className:"yt-mini-game-card-view-model__metadata-details"},_.K("h3",{class:"yt-mini-game-card-view-model__title",title:H},H),_.K(_.e,{cond:t,then:function(){return _.K("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.K("span",{class:"yt-mini-game-card-view-model__genre",title:Q,style:y},Q),_.K("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:y},T))},
else:function(){return _.K("span",{class:"yt-mini-game-card-view-model__genre",title:T},T)}})),_.K("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.K(_.BW,{data:n},{buttonViewModel:function(Z){var l=Z.data;
return _.K(_.HO,{data:function(){return Object.assign({},l(),{customFontColor:D()==="MINI_APP_LAYOUT_SINGLETON"?l().customFontColor:void 0})}})}})))},"ka"),a2p=_.MA(function(V){var D=V.colorPalette;
var f=V.isDesktopWeb;var n=V.onTap;var t=V.accessibilityText;var J=V.overlayBadgeText;var H=V.iconName;var Q=V.unplayableInlinePlaybackIconName;var T=V.actionButton;V=V.imageData;return _.K("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.K(Cuu,{imageData:V,colorPalette:D}),_.K(qAo,{onTap:n,imageData:V,accessibilityText:t,overlayBadgeText:J,iconName:H,unplayableInlinePlaybackIconName:Q,isDesktopWeb:f}),_.K(_.e,{cond:function(){return T==null?void 0:T()},
then:function(){return _.K(EgU,{actionButton:T})}}))},"la"),AyH=_.MA(function(V){var D=V.description;
var f=V.isDesktopWeb;var n=V.title;var t=V.genre;var J=V.onTap;var H=V.actionButton;var Q=V.overflowButton;var T=V.avatar;V=V.channelName;var y={};y=_.KT("yt-mini-game-card-view-model--search-result-metadata-wrapper",(y["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=f,y["yt-mini-game-card-view-model--show-unplayable-on-hover"]=f,y["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!f()},y));
var Z={};Z=_.KT("yt-mini-game-card-view-model__search-result-info-row",(Z["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!f()},Z));
return _.K("div",{class:y},_.K("div",{class:Z},_.K(_.YC,{command:J,className:"yt-mini-game-card-view-model__metadata-details"},_.K("h3",{class:"yt-mini-game-card-view-model__title",title:n},n),_.K("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)),_.K(EgU,{actionButton:H,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.K("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.K(_.BW,{data:Q},{buttonViewModel:_.HO}))),_.K("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.K("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.K("div",{class:"yt-mini-game-card-view-model__avatar"},_.K(_.BW,{data:T},{avatarViewModel:function(l){var G=l.data;return _.K(_.vd,{data:function(){return Object.assign({},G(),{avatarImageSize:f()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.K(_.YC,{command:J,
className:"yt-mini-game-card-view-model__description"},_.K("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},V)),_.K(_.YC,{command:J,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.K("div",null)))),_.K(_.e,{cond:f,then:function(){return _.K(_.YC,{command:J,className:"yt-mini-game-card-view-model__description"},D)}}))},"ma");_.fT(YAF,"mini-game-card-view-model",{props:{data:_.WX,className:_.WX,useFullWidth:_.WX,isDesktopWeb:_.WX,addSearchResultTopMargin:_.WX}});_.fT(RmV,"dismissed-mini-game-card-view-model",{props:{data:_.WX,useSquareAspectRatio:_.WX}});var i1=function(){var V=_.E.apply(this,arguments)||this;V.isSearch=!1;V.isRichGrid=!1;return V};
_.v(i1,_.E);_.P=i1.prototype;_.P.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.P.dismissibleItemOnYtServiceRequestSent=function(V,D){D.actions&&this.dismissibleItemProcessActions(V,D.actions)};
_.P.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.P.dataChanged=function(){this.dismissibleItemReset()};
_.P.dismissibleItemProcessActions=function(V,D){for(var f=0;f<D.length;f++){var n=D[f];_.g(n,_.l7)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.g(n,_.l7)),V.stopPropagation())}};
_.P.dismissibleItemHandleReplaceEnclosingAction=function(V){this.dismissedRenderer=V.item;this.isDismissed=!0};
_.IG.Object.defineProperties(i1.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var V;return!!this.data&&!((V=this.dismissedRenderer)==null?0:V.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.dismissedRenderer)==null||!V.notificationMultiActionRenderer)}}});
i1.prototype.dataChanged=i1.prototype.dataChanged;i1.prototype.dismissibleItemOnRequestSent=i1.prototype.dismissibleItemOnRequestSent;i1.prototype.dismissibleItemOnYtServiceRequestSent=i1.prototype.dismissibleItemOnYtServiceRequestSent;_.S([_.q(),_.p("design:type",Object)],i1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i1.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],i1.prototype,"isDismissed",void 0);
_.S([_.q(),_.p("design:type",Object)],i1.prototype,"dismissedRenderer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i1.prototype,"isRichGrid",void 0);_.S([_.R("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],i1.prototype,"useSquareAspectRatio",null);_.S([_.R("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],i1.prototype,"showCard",null);
_.S([_.R("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],i1.prototype,"showDismissed",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],i1.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],i1.prototype,"dismissibleItemOnRequestSent",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i1.prototype,"dataChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],i1);
_.Y(i1,"ytd-mini-game-card-view-model",function(){if(NYp!==void 0)return NYp;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return NYp=V},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var iSr;var SAF;var SG=function(){return _.xi.apply(this,arguments)||this};
_.v(SG,_.xi);SG.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
SG.prototype.getContinuationUrl=function(V){var D={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(D.itct=this.data.clickTrackingParams);return _.I9(V,D)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SG.prototype,"data",void 0);_.S([_.zy({is:"yt-reload-continuation",noInjection:!0})],SG);var WtP;var pZu;var Wd=function(){var V=_.E.apply(this,arguments)||this;V.notificationData={};return V};
_.v(Wd,_.E);_.P=Wd.prototype;_.P.isMenuExpanded=function(V){return V&&V.length<=1?"undefined":"false"};
_.P.dataChanged_=function(){this.selected=void 0;var V=this.computeSelectedIndex_(this.data);V>=0&&(this.selected=V);V=this.data&&this.data.length>1;_.JA(this.hostElement,"has-items",V);_.Pt(this.hostElement).querySelector("#label").tabIndex=V?0:-1};
_.P.onDropdownOpen=function(){var V=_.Ni();if(this.parentTrackingParams&&this.data){var D=_.gs(this.parentTrackingParams);this.data.forEach(function(f){V&&D&&f.trackingParams&&(f=_.gs(f.trackingParams),_.Y8(V,D,f),_.SJ(V,[f]))})}else this.parentTrackingParams||_.zP(new _.cI("No parent tracking params passed in for yt-dropdown-menu."))};
_.P.hasNotification=function(V){var D;if(V.targetId&&((D=this.notificationData)==null?0:D.targetId)){var f;return V.targetId===((f=this.notificationData)==null?void 0:f.targetId)}};
_.P.computeSelectedIndex_=function(V){if(V)for(var D=0,f=V.length;D<f;D++)if(V[D].selected)return D;return-1};
_.P.computeLabel_=function(V){return this.data&&V!=void 0?this.data[V].title:""};
_.P.computeShowIcon_=function(V,D){return!D&&!!V};
_.P.computeVerticalOffset_=function(V){return V?36:0};
_.P.computeEndpoint_=function(V){return V.endpoint||V.navigationEndpoint};
_.P.onLabelClick_=function(V){this.data&&this.data.length<=1?V.stopPropagation():this.menuExpanded="true"};
_.P.onIronActivate_=function(V){V=V.detail.item;var D=_.Pt(this.hostElement).querySelector("#repeat").itemForElement(V);if(D&&D.trackingParams){var f=_.Ni(),n=_.gs(D.trackingParams);f&&_.p6(f,n)}if(D&&D.serviceEndpoint)_.c("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(D.serviceEndpoint):_.HA(this.hostElement,[D.serviceEndpoint]),_.PA(this.hostElement,"yt-playlist-reloading");else a:{if((D=V.querySelector("yt-supported-renderers"))&&
(D=D.rendererElement)&&D.is=="yt-reload-continuation"){D.trigger();break a}(V=V.querySelector("yt-reload-continuation"))&&V.trigger()}};
_.P.onTap_=function(V){V.preventDefault()};
_.P.onItemTap_=function(V){this.ytEndpointBehavior.onEndpointTap_(V)};
_.P.onLinkFocus_=function(V){try{var D=V.target}catch(n){}if(D){var f=D.querySelector("tp-yt-paper-item");f&&_.Yu(this,"focus",function(){f.focus()})}};
_.P.onMenuClose_=function(){this.menuExpanded="false"};
_.P.isLabelIconActive_=function(V){return V==="true"};
_.P.computeHasSubtitle_=function(V){return!!V};
_.P.computeHrefForItem_=function(V){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(V))};
_.P.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
_.IG.Object.defineProperties(Wd.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Wd.prototype.onMenuClose_=Wd.prototype.onMenuClose_;Wd.prototype.onTap_=Wd.prototype.onTap_;Wd.prototype.onIronActivate_=Wd.prototype.onIronActivate_;Wd.prototype.onDropdownOpen=Wd.prototype.onDropdownOpen;Wd.prototype.dataChanged_=Wd.prototype.dataChanged_;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Wd.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],Wd.prototype,"ytEndpointBehavior",void 0);
_.S([_.q(),_.p("design:type",Array)],Wd.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Wd.prototype,"parentTrackingParams",void 0);_.S([_.q(),_.p("design:type",Object)],Wd.prototype,"selected",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Wd.prototype,"useLabel",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Wd.prototype,"useComputedAriaLabel",void 0);_.S([_.q(),_.p("design:type",String)],Wd.prototype,"icon",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Wd.prototype,"iconLabel",void 0);_.S([_.q(),_.p("design:type",String)],Wd.prototype,"ariaLabel",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wd.prototype,"disabled",void 0);_.S([_.q({computed:"isMenuExpanded(data)"}),_.p("design:type",String)],Wd.prototype,"menuExpanded",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Wd.prototype,"closeOnActivate",void 0);
_.S([_.q({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.p("design:type",Boolean)],Wd.prototype,"modernButtons",void 0);_.S([_.q(),_.p("design:type",Object)],Wd.prototype,"notificationData",void 0);_.S([_.R("ariaLabel, selected"),_.q(),_.p("design:type",String),_.p("design:paramtypes",[])],Wd.prototype,"computedAriaLabel",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wd.prototype,"dataChanged_",null);
_.S([_.bU("paper-dropdown-open"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Wd.prototype,"onDropdownOpen",null);_.S([_.bU("iron-activate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Wd.prototype,"onIronActivate_",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wd.prototype,"onTap_",null);
_.S([_.bU("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Wd.prototype,"onMenuClose_",null);_.S([_.zy({is:"yt-dropdown-menu",disableElementRegistration:!0})],Wd);
_.Y(Wd,"yt-dropdown-menu",function(){if(pZu===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;WtP===void 0&&(WtP=document.createElement("template"));var n=WtP;f.call(D,n.content.cloneNode(!0),V.content.firstChild);pZu=V}V=pZu;return V},{mode:2});var pa=function(){var V=_.E.apply(this,arguments)||this;V.hasNotification=!1;return V};
_.v(pa,_.E);pa.prototype.computeId=function(V){return V};
pa.prototype.computeHorizontalAlign=function(V){return V?"right":"left"};
pa.prototype.computeAccessibilityLabel=function(V){var D,f;return((D=V.accessibility)==null?void 0:(f=D.accessibilityData)==null?void 0:f.label)||null};
pa.prototype.notificationDataChanged=function(){var V;this.hasNotification=!!this.notificationData&&!((V=this.data)==null?0:V.icon)};
pa.prototype.notificationDataChanged=pa.prototype.notificationDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.X_.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],pa.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pa.prototype,"data",void 0);_.S([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],pa.prototype,"id",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],pa.prototype,"isRightAligned",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],pa.prototype,"disabled",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],pa.prototype,"closeOnActivate",void 0);_.S([_.q(),_.p("design:type",Object)],pa.prototype,"notificationData",void 0);_.S([_.q(),_.p("design:type",Object)],pa.prototype,"hasNotification",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],pa.prototype,"useComputedAriaLabel",void 0);_.S([_.KI("notificationData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pa.prototype,"notificationDataChanged",null);_.S([_.zy({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],pa);
_.Y(pa,"yt-sort-filter-sub-menu-renderer",function(){if(SAF===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;iSr===void 0&&(iSr=document.createElement("template"));var n=iSr;f.call(D,n.content.cloneNode(!0),V.content.firstChild);SAF=V}V=SAF;return V},{mode:2});var Ltu=_.Zn(koZ);_.V$(koZ);_.fT(Ltu,"place-data-view-model",{props:{data:_.WX}});var I2H=new _.IH("INLINE_PLAYBACK_HOOK_TOKEN");var OSu=function(V){this.setActiveSlideIndex=V;this.jobIds=[];this.isSlideshowPlaying=!1},hmY=function(V,D){V.isSlideshowPlaying||(V.isSlideshowPlaying=!0,xnV(V),M0F(V,D,0))},xnV=function(V){_.JI(_.dm,function(){V.setActiveSlideIndex(0)},1)},M0F=function(V,D,f){V.jobIds.push(_.JI(_.dm,function(){var n=f<D-1?f+1:0;
V.setActiveSlideIndex(n);M0F(V,D,n)},1800))};var UnF=new _.IH("IMAGE_ON_LOAD_HANDLER_TOKEN");var VrY=_.MA(function(V){return _.K("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.K(_.e,{cond:function(){var D;return(D=V.data())==null?void 0:D.thumbnail},
then:function(D){return _.K(_.xt,{data:D,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"na");_.DSL=_.MA(function(V){var D=V.data;var f=V.lockupExperiments;V={};return _.K("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.K("div",{class:_.KT("ytThumbnailOverlayButtonViewModelButton",(V.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var n;return f&&((n=f())==null?void 0:n.useLegacySizedIconButton)},V))},_.K(_.BW,{data:function(){return D().overlayButton}},{buttonViewModel:function(n){return _.K(_.HO,{data:n.data,
buttonOverrides:function(){var t;return f&&((t=f())==null?0:t.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"oa");
_.DSL.idomCompat=!0;var fjF=_.MA(function(V){return _.K("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.jl(function(D){D.preventDefault();return!1})},_.K(_.BW,{data:function(){return V.data().buttons}},{toggleButtonViewModel:function(D){return _.K("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.K(_.FA,{data:D.data}))}}))},"pa");
fjF.idomCompat=!0;var nUu=_.MA(function(V){var D=function(){var f;return((f=_.g(V.data().rendererContext,_.Z8))==null?void 0:f.label)||""};
return _.K("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.K(_.e,{cond:function(){return V.data().image},
then:function(){return _.K("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.K(_.xt,{data:function(){return V.data().image},
alt:D}))}}),_.K(_.e,{cond:function(){return V.data().text},
then:function(){return _.K("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return V.data().text})}}))},"qa");_.La=_.MA(function(V){var D=[],f=function(){var G,F;return ShR((G=V.width)==null?void 0:G.call(V),(F=V.height)==null?void 0:F.call(V))},n=_.DY().resolve(_.Vx(UnF)),t=_.W2("yt-thumbnail-view-model",function(){D.push("elRef.value set");
var G;(G=V.playbackRef)==null||G.call(V,{thumbnailElRef:t,thumbnail:V.data().image,thumbnailOverlays:V.data().overlays,thumbnailSize:f()})});
_.Nl(function(){D.push("onInit");_.dc(function(){D.push("onCleanup")})});
var J=_.CT(BYU),H=function(){var G,F;return(F=(G=V.aspectRatio)==null?void 0:G.call(V))!=null?F:0},Q=function(){return(V.data().image?_.jv9(V.data().image):H())<=1&&H()===0},T=function(){return Q()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},y=function(){t.value||_.zP(new _.cI("Thumbnail elRef.value is null",D.join("\n")));
n&&t.value&&n(t.value)},Z=function(){var G,F;
return((G=V.hovered)==null?void 0:G.call(V))&&f()!=="large"&&((F=V.data().overlays)==null?void 0:F.some(function(k){return _.g(k,xTP)}))},l={};
return _.K("yt-thumbnail-view-model",{class:_.KT("yt-thumbnail-view-model",V.className,function(){return NYF(H())},function(){var G,F;
a:{var k=f(),d=(G=V.disableRounding)==null?void 0:G.call(V);G=(F=V.isClip)==null?void 0:F.call(V);if(!d&&!G)switch(k){case "large":F="yt-thumbnail-view-model--large";break a;case "small":F="yt-thumbnail-view-model--small";break a;default:F="yt-thumbnail-view-model--medium";break a}F=void 0}return F},(l["yt-thumbnail-view-model--cinematic"]=Q,l)),
style:_.el({"background-color":function(){var G,F=Q()?(G=V.data().backgroundColor)==null?void 0:G.lightTheme:void 0;return F?Y7(F,"1"):void 0}}),
el:t},_.K(_.e,{cond:Q,then:function(){return _.K("div",{class:"yt-thumbnail-view-model__blurred-image"},_.K(_.xt,{data:function(){return V.data().image},
alt:"",contentMode:T,targetWidth:V.width,onload:y}))}}),_.K("div",{class:"yt-thumbnail-view-model__image"},_.K(_.xt,{data:function(){return V.data().image},
alt:"",contentMode:T,targetWidth:V.width,onload:y}),null),_.K(_.BW,{data:function(){return Z()?void 0:V.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:QEu,thumbnailOverlayBadgeViewModel:function(G){return _.K(TYr,{data:G.data,thumbnailSize:f,isClip:V.isClip})},
thumbnailBottomOverlayViewModel:function(G){return _.K(JyL,{data:G.data,thumbnailSize:f,isClip:V.isClip})},
thumbnailOverlayFullViewModel:nUu,thumbnailOverlayButtonViewModel:function(G){return _.K(_.DSL,{data:G.data,lockupExperiments:V.lockupExperiments})}}),_.K(_.BW,{data:function(){var G;
return((G=V.hovered)==null?0:G.call(V))?V.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(G){return _.K(g5,{data:G.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:fjF}),_.K(_.BW,{data:function(){var G;return((G=V.hovered)==null?0:G.call(V))&&J()?V.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:VrY}),_.K(_.e,{cond:V.isClip,then:function(){return _.K("div",{class:"yt-pinking"},_.K("svg",{class:"yt-pinking__pinking-left"},_.K("defs",null,_.K("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.K("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.K("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.K("svg",{class:"yt-pinking__pinking-right"},_.K("defs",null,_.K("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.K("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.K("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ra");
_.La.idomCompat={callbacks:{playbackRef:!0}};var trl=_.MA(function(V){var D=_.r(_.HJ(-1,void 0,"IOLZ0b")),f=D.next().value,n=D.next().value;_.Nl(function(){var t=new OSu(n);hmY(t,V.data().thumbnails.length);_.dc(function(){if(t.isSlideshowPlaying){t.isSlideshowPlaying=!1;for(var J=t.jobIds,H=0,Q=J.length;H<Q;H++)_.dm.cancelJob(J[H]);t.jobIds.length=0}})});
return _.K("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.K(_.BW,{data:function(){return V.data().thumbnails}},{thumbnailViewModel:function(t,J){return _.K("div",{class:function(){var H=!V.data().primaryThumbnail,Q=J(),T=f(),y=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
H&&Q===0&&y.push("yt-collection-thumbnail-slideshow--first-slide");Q<=T&&y.push("yt-collection-thumbnail-slideshow--show-slide");return y.join(" ")}},_.K(_.La,{data:t.data,
disableRounding:V.disableRounding}))}}))},"sa");
trl.idomCompat=!0;var mn9=new _.IH("DWELL_DETECTOR_REGISTRY_TOKEN");var oUV=_.MA(function(V){var D=zmZ(V.triggeringElement),f=function(){return!!V.data().primaryThumbnail};
return _.K("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.K(PZF,{stackEnabled:f,thumbnailSize:function(){var n,t;return ShR((n=V.width)==null?void 0:n.call(V),(t=V.height)==null?void 0:t.call(V))},
doubleStack:V.doubleStack,stackColor:function(){return V.data().stackColor}},_.K("div",null,_.K(_.BW,{data:function(){return V.data().primaryThumbnail}},{thumbnailViewModel:function(n){var t={};
return _.K(_.La,{data:n.data,width:V.width,height:V.height,aspectRatio:V.aspectRatio,disableRounding:V.disableRounding,className:_.KT((t["yt-collection-thumbnail-view-model--has-stacks"]=f,t)),hovered:V.hovered,playbackRef:V.playbackRef})}}),_.K(_.e,{cond:function(){var n;
return D()&&((n=V.data().thumbnails)==null?void 0:n.length)},
then:function(){return _.K("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.K(trl,{data:V.data,disableRounding:function(){return!f()}}))}}))))},"ta");
oUV.idomCompat={callbacks:{playbackRef:!0}};
var PZF=_.MA(function(V){var D=V.children;var f=V.stackEnabled;var n=V.thumbnailSize;var t=V.doubleStack;var J=V.stackColor;var H,Q=(H=_.DY().resolve(_.Vx(_.pm)))==null?void 0:H();return _.K(_.e,{cond:f,then:function(){return _.K(Xxo,{data:function(){var T,y;return{experimentEnabled:!0,thumbnailSize:n(),doubleStack:t==null?void 0:t(),color:Q?J==null?void 0:(T=J())==null?void 0:T.darkTheme:J==null?void 0:(y=J())==null?void 0:y.lightTheme,enableResponsiveMode:!1}}},D)},
else:function(){return D}})},"ua");var JwL=new _.IH("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var O9;_.I1={calledOnce:!0,state:"visible"};O9={calledOnce:!0,state:"hidden"};_.xd=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;var n=V.className;var t=V.delayedClassName;var J=V.animationEntityKey;var H=V.isCompactWidth;var Q=_.W2("ad-button-view-model"),T=_.IU(J,""),y=_.KX(qU3,T),Z=function(){var wZ,ZZ;return(ZZ=(wZ=y())==null?void 0:wZ.value)!=null?ZZ:!1},l=function(){_.LI(_.y1("booleanEntity",T(),{key:T(),
value:!0}));O=void 0};
V=_.r(_.Gk(Z));var G=V.next().value,F=V.next().value;V=_.r(_.Gk(Z));var k=V.next().value,d=V.next().value;V=_.r(_.Gk(function(){var wZ;return Z()?(wZ=D().styleTransitionConfig)==null?void 0:wZ.destinationStyle:void 0}));
var z=V.next().value,C=V.next().value,A=function(){var wZ=Object.assign({},D(),z()&&{style:z()}),ZZ,sd,NU=wZ.label,Bn=(ZZ=wZ.interaction)==null?void 0:(sd=ZZ.accessibility)==null?void 0:sd.label;ZZ=wZ.iconImage?wZ.label&&wZ.label.content?wZ.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:NU,accessibilityLabel:Bn,style:XZ3(wZ.style),type:EgL(wZ.style),state:"active",size:qAx(wZ.size),iconPosition:ZZ,disabled:!1,aTagConfig:Cud(wZ,f)}},O;
_.hk(Q,{visibilityCallback:function(wZ){var ZZ,sd=(ZZ=D().interaction)==null?void 0:ZZ.onFirstVisible;wZ&&sd&&_.Yt(sd)},
showOption:_.I1});var W=function(){return Fh(A(),!!D().iconImage)};
V={};n=_.KT(function(){return"ytwAdButtonViewModelHost"},function(){return D().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var wZ=!!D().delayedAppearanceConfig,ZZ=G();
return wZ?ZZ?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var wZ=!!D().delayedAppearanceConfig,ZZ=k();
return wZ?ZZ?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!D().delayedAppearanceConfig||G()?t==null?void 0:t():""},(V.ytwAdButtonViewModelHostCompactWidth=function(){return H==null?void 0:H()},V),n!=null?n:"");
var I=function(){var wZ,ZZ=(wZ=D().delayedAppearanceConfig)==null?void 0:wZ.delayedInvisibleSeconds;ZZ&&(O=_.lf(_.dm,function(){F(!0);x()},ZZ*1E3))},x=function(){var wZ,ZZ=(wZ=D().delayedAppearanceConfig)==null?void 0:wZ.delayedVisibleSeconds;
ZZ&&(O=_.lf(_.dm,function(){d(!0);oY()},ZZ*1E3))},oY=function(){var wZ,ZZ=(wZ=D().styleTransitionConfig)==null?void 0:wZ.styleTransitionSeconds,sd,NU=(sd=D().styleTransitionConfig)==null?void 0:sd.destinationStyle;
ZZ&&NU?O=_.lf(_.dm,function(){C(NU);l()},ZZ*1E3):l()};
_.Nl(function(){var wZ;((wZ=D().delayedAppearanceConfig)==null?0:wZ.transitionDurationSeconds)&&Q.value.style.setProperty("transition-duration",D().delayedAppearanceConfig.transitionDurationSeconds+"s");I()});
_.dc(function(){O&&_.dm.cancelJob(O)});
return _.K("ad-button-view-model",{class:n,el:Q},_.K(_.e,{cond:A,then:function(){return _.K(xC,{data:A,icon:function(){return _.K(_.e,{cond:function(){return D().iconImage},
then:function(wZ){return _.K(_.xt,{data:wZ,alt:"",targetWidth:W,targetHeight:W,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"va");var rwl=_.MA(function(V){var D=V.data;V=_.W2("ad-button-group-view-model");_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});var f={};return _.K("ad-button-group-view-model",{class:_.KT("ytwAdButtonGroupViewModelHost",(f.ytwAdButtonGroupViewModelHostCompactWidth=function(){return D().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},f)),
el:V},_.K("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.K(_.BW,{data:function(){return D().secondaryAdButton}},{adButtonViewModel:function(n){return _.K(_.xd,{data:n.data})}})),_.K("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.K(_.BW,{data:function(){return D().primaryAdButton}},{adButtonViewModel:function(n){return _.K(_.xd,{data:n.data})}})))},"wa");var HKr=_.MA(function(V){var D=function(){var f;return((f=V.data())==null?void 0:f.answers)||[]};
return _.K("yt-survey-icons",{class:"ytSurveyIconsHost"},_.K("div",{class:"ytSurveyIconsHeader"},_.K("div",{class:"ytSurveyIconsTitle"},function(){var f;return(f=V.data())==null?void 0:f.text}),_.K("div",null,_.K(xC,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var f;(f=V.onDismiss)==null||f.call(V)}}},
iconName:"DISMISSAL"}))),_.K("div",null,_.K("div",{class:"ytSurveyIconsAnswers"},_.K(_.FB,{each:function(){return D()},
keyBy:"INDEX"},function(f,n){return _.K("div",null,_.K(xC,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var t;(t=V.onSelect)==null||t.call(V,f(),n)}}},
icon:function(){return _.K(_.cj,{icon:function(){var t,J;return(t=f())==null?void 0:(J=t.icon)==null?void 0:J.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.K("div",{class:"ytSurveyIconsAnswersText"},_.K("div",null,function(){return D().length?D()[0].text:""}),_.K("div",null,function(){return D().length?D()[D().length-1].text:""}))))},"xa");var waY=_.MA(function(V){var D=_.h2(_.Ew(function(){var T;return(T=V.data())==null?void 0:T.rendererContext},void 0,void 0,void 0,!0)),f=_.r(_.HJ(!1,void 0,"YxWRNc")),n=f.next().value,t=f.next().value,J=_.KX(gYn,function(){var T;
return(T=V.data().keys)==null?void 0:T.surveyEntityKey}),H=_.KX(vYY,function(){var T;
return(T=V.data().keys)==null?void 0:T.surveyStateEntityKey});
_.Se("ytd-slimline-survey-show-action",function(){t(!1)});
var Q=function(){var T,y;var Z=(T=H())==null?void 0:(y=T.questionStack)==null?void 0:y[0];if(Z!==void 0){var l,G;return(l=J())==null?void 0:(G=l.questions)==null?void 0:G[Z]}};
f={};return _.K("yt-slimline-survey-view-model",{el:D,class:_.KT("ytSlimlineSurveyViewModelHost",(f.ytSlimlineSurveyViewModelCollapsed=function(){return n()},f))},_.K("div",{class:"ytSlimlineSurveyViewModelContainer"},_.K(_.e,{cond:function(){var T;
return((T=Q())==null?void 0:T.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.K(HKr,{data:function(){return Q()},
onSelect:function(T,y){var Z,l;return _.w(function(G){t(!0);if(l=(Z=V.data())==null?void 0:Z.onSelectRating)_.Yt(l),_.LI(GaE(y));_.yz(G)})},
onDismiss:function(){t(!0);var T;var y=(T=J())==null?void 0:T.dismissalFeedbackToken;T=y?{feedbackEndpoint:{feedbackToken:y}}:void 0;T&&_.Em(T,{form:{element:D.value}})}})}})))},"ya");var QgL=_.MA(function(V){return _.K("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.K(_.BW,{data:function(){var D;return(D=V.data())==null?void 0:D.attachments}},{flexibleActionsViewModel:function(D){return _.K("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.K(hsu,{data:D.data,
layout:function(){var f;return((f=V.lockupStyle())==null?void 0:f.arrangement)===1?0:1},
justifyContentOverride:function(){var f;return((f=V.lockupStyle())==null?void 0:f.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(D){return _.K("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.K(waY,{data:D.data}))},
expandableMetadataViewModel:function(D){D=D.data;var f;return _.K("div",{class:_.KT("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(f=_.DY().resolve(_.Vx(JwL)))==null?void 0:f({data:D}))},
adButtonGroupViewModel:function(D){return _.K("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.K(rwl,{data:D.data}))},
adButtonViewModel:function(D){return _.K("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.K(_.xd,{data:D.data,isCompactWidth:!0}))}}))},"za");var SAZ=_.tU("rich_grid_min_item_width",310),$nL=_.tU("rich_grid_max_item_width",500);var TB6=_.MA(function(V){var D=V.data;return _.K("br-nz-badge-shape",{class:_.KT(function(){return hmX(D().brNzRatingBadgeType)}),
role:function(){return D().accessibilityText?"img":void 0},
"aria-label":function(){return D().accessibilityText}},function(){var f;
return(f=D())==null?void 0:f.text})},"Aa");_.Mh=_.MA(function(V){var D=function(){var f=V.data(),n,t;if(f){var J=!((n=V.workaroundShortsIsThumbnailBadge)==null||!n.call(V));n=(t=V.modern)==null?void 0:t.call(V);a:switch(f.badgeStyle){case "BADGE_OVERLAY":t=!0;break a;default:t=!1}f={type:J?16:Un9(f.badgeStyle),brNzRatingBadgeType:VrX(f.badgeStyle),text:f.badgeText,icon:f.iconName,isOverlay:t,modern:n||_.c("web_modern_badge_view_model"),accessibilityText:f.accessibilityLabel}}else f=void 0;return f};
return _.K("yt-badge-view-model",{class:_.KT("yt-badge-view-model-wiz",V.class)},_.K(_.kw,null,_.K(_.gj,{when:function(){var f;return!((f=D())==null||!f.brNzRatingBadgeType)}},function(){return _.K(TB6,{data:function(){return D()}})}),_.K(_.gj,{when:function(){return!!D()&&!D().brNzRatingBadgeType}},function(){return _.K(_.dD,{data:function(){return D()}})})))},"Ba");
_.Mh.idomCompat=!0;var fj9,DSU;fj9=16/9;DSU=2/3;_.h8=_.MA(function(V){var D=V.data;var f=V.className;var n=V.imageSizeConfig;var t=V.notifyOnLoaded;var J=function(){return D().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},H=function(){var G;
return _.XO((G=D())==null?void 0:G.rendererContext)};
V={};V=(V["yt-content-preview-image-view-model-wiz"]=!0,V["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return J()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},V["yt-content-preview-image-view-model-wiz--tappable"]=function(){return H()},V);
var Q=function(){var G,F;return(F=(G=_.g(D().rendererContext,_.Z8))==null?void 0:G.label)!=null?F:""},T=function(){return trY(D())},y=function(){var G=nUd(J(),D().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",n==null?void 0:n(),PZ9(T()),D().layoutWidth,D().layoutHeight),F=Object.assign({},G);
G.width&&(F.width=Math.round(G.width));G.height&&(F.height=Math.round(G.height));G.maxWidth&&(F.maxWidth=Math.round(G.maxWidth));G.maxHeight&&(F.maxHeight=Math.round(G.maxHeight));return F},Z=_.yT(function(){return y().height},void 0,"Cn10Ce"),l=_.yT(function(){return y().width},void 0,"laoove");
return _.K("yt-content-preview-image-view-model",{el:_.h2(_.Ew(function(){var G;return(G=D())==null?void 0:G.rendererContext})),
role:function(){return H()?"link":void 0},
tabindex:function(){return H()?0:void 0},
class:_.KT(f,V,function(){var G=J();var F=n==null?void 0:n();G=G==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||G==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(F==null?void 0:F.size)!=null&&F.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(F==null?void 0:F.size)!=null&&F.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return G}),
style:function(){var G=y(),F=[];G.width&&F.push("width: "+G.width+"px");G.height&&F.push("height: "+G.height+"px");G.maxWidth&&F.push("max-width: "+G.maxWidth+"px");G.maxHeight&&F.push("max-height: "+G.maxHeight+"px");G.fullWidth&&F.push("width: 100%");return F.join(";")}},_.K(_.e,{cond:T,
then:function(G){return _.K(_.xt,{data:G,alt:Q,"data-disabled$":function(){return!Q()},
notifyOnLoaded:t,targetWidth:l,targetHeight:Z,preserveWidth:function(){return!!l()},
preserveHeight:function(){return!!Z()}})}}),_.K(_.BW,{data:function(){var G;
return(G=D())==null?void 0:G.overlays}},{thumbnailHoverOverlayViewModel:g5,
thumbnailOverlayButtonViewModel:_.DSL}))},"Ca");
_.h8.idomCompat=!0;var K2E=_.MA(function(V){var D=V.data;var f=V.className;var n=V.useSmallLayout;V=V.useMediumText;var t={};V=(t["yt-attribution-view-model-wiz"]=!0,t["yt-attribution-view-model-wiz--medium-text"]=V,t);return _.K("yt-attribution-view-model",{el:_.h2(_.Ew(function(){var J;return(J=D())==null?void 0:J.rendererContext})),
class:_.KT(f,V)},_.K(_.e,{cond:function(){return _.XO(D().rendererContext)},
then:function(){return _.K("button",{class:"yt-attribution-view-model-wiz--tappable"},_.K(bKH,{data:D,useSmallLayout:n}))},
else:function(){return _.K(bKH,{data:D,useSmallLayout:n})}}))},"Da"),bKH=_.MA(function(V){var D=V.data;
var f=V.useSmallLayout;var n=function(){return{size:(f==null?0:f())?16:24}};
return _.K(_.th,null,_.K(_.BW,{data:function(){return D().contentPreviewImage}},{contentPreviewImageViewModel:function(t){return _.K(_.h8,{data:t.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:n})}}),_.K(_.BW,{data:function(){return D().badge}},{badgeViewModel:function(t){return _.K(_.Mh,{data:t.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.K(_.e,{cond:function(){return D().text},
then:function(){return _.K(_.Ow,{text:function(){return D().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.K(_.e,{cond:function(){return D().suffix},
then:function(){return _.K(_.Ow,{text:function(){return D().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ea");
K2E.idomCompat=!0;var ywY,ZKH,jgF,ljF,GQU;ywY=_.MA(function(V){var D=V.delimiter;var f=V.max;var n=V.index;var t=V.isStandalone;return _.K(_.e,{cond:function(){return f()-1>n()},
then:function(){var J={};return _.K("span",{class:_.KT("yt-content-metadata-view-model-wiz__delimiter",(J["yt-content-metadata-view-model-wiz__delimiter--standalone"]=t,J)),"aria-hidden":!0},D)}})},"Fa");
ZKH=_.MA(function(V){var D=V.metadataPart;var f=V.maxLines;return _.K(_.Ow,{text:function(){return D().text},
linkInheritColor:!0,className:function(){return oUY(f())},
userInput:!0})},"Ga");
jgF=_.MA(function(V){var D=V.metadataPart;var f=V.maxLines;return _.K(_.e,{cond:function(){return D().tooltip},
then:function(n){return _.K("span",{title:n,role:"tooltip"},_.K(ZKH,{metadataPart:D,maxLines:f}))},
else:function(){return _.K(ZKH,{metadataPart:D,maxLines:f})}})},"Ha");
ljF=_.MA(function(V){var D=V.metadataPart;var f=V.isOverlay;var n=V.useMediumText;var t=V.hideAvatar;var J=function(){return D().maxLines!==void 0?D().maxLines:1};
return _.K(_.th,null,_.K(_.BW,{data:function(){return D().avatarStack}},{avatarStackViewModel:function(H){return _.K(_.s9,{data:H.data,
isOverlay:f,useMediumText:n,hideAvatar:t})},
badgeViewModel:_.Mh}),_.K(_.e,{cond:function(){return D().leadingIcon},
then:function(H){return _.K(_.cj,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return H().name},
size:function(){return H().width}})}}),_.K(_.e,{cond:function(){return D().text},
then:function(){return _.K(jgF,{metadataPart:D,maxLines:J})}}),_.K(_.e,{cond:function(){return D().icon},
then:function(H){return _.K(_.cj,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return H().name},
size:function(){return H().width}})}}))},"Ia");
GQU=_.MA(function(V){var D=V.metadataRow;var f=V.isInline;var n=V.delimiter;var t=V.isOverlay;var J=V.useMediumText;var H=V.extensions;var Q=function(){var y,Z=H==null?void 0:(y=H())==null?void 0:y.lockupMetadata;y=D();var l,G;return!!((Z==null?0:(l=Z.byline)==null?0:l.hideAvatar)&&((G=_.g(y,$TU))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},T=function(){return D().metadataParts||[]};
V={};return _.K("div",{class:_.KT("yt-content-metadata-view-model-wiz__metadata-row",(V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=f,V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var y,Z=H==null?void 0:(y=H())==null?void 0:y.lockupMetadata;y=D();var l,G;return!!((Z==null?0:(l=Z.byline)==null?0:l.addPadding)&&((G=_.g(y,$TU))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var y;
return!!(H==null?0:(y=H())==null?0:y.lockupMetadata)&&D().badges&&!D().metadataParts},V))},_.K(_.BW,{data:function(){return D().badges}},{badgeViewModel:function(y){return _.K("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.K(_.Mh,{data:y.data}))}}),_.K(_.FB,{each:T},function(y,Z){return _.K(_.th,null,_.K(ljF,{metadataPart:y,
isOverlay:t,useMediumText:J,hideAvatar:Q}),_.K(ywY,{delimiter:n,max:function(){return T().length},
index:Z,isStandalone:!1}))}),_.K(_.e,{cond:function(){return D().isSpacerRow&&!f()},
then:function(){return _.K("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ja");
_.U9=_.MA(function(V){V=_.Or(V,{layout:0,isOverlay:!1});var D=V.data,f=V.layout,n=V.isOverlay,t=V.useMediumText,J=V.extensions,H=function(){return f()===0},Q=function(){var y;
return((y=D().metadataRows)==null?void 0:y.filter(function(Z){var l,G=J==null?void 0:(l=J())==null?void 0:l.lockupMetadata,F,k;l=!!((G==null?0:(F=G.description)==null?0:F.hideDescription)&&((k=_.g(Z,$TU))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var d,z;return!((G==null?0:(d=G.spacer)==null?0:d.hideSpacer)&&((z=_.g(Z,$TU))==null?void 0:z.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||l)}))||[]},T={};
return _.K("yt-content-metadata-view-model",{class:_.KT(V.className,"yt-content-metadata-view-model-wiz",(T["yt-content-metadata-view-model-wiz--inline"]=H,T["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.XO(D().rendererContext)},T["yt-content-metadata-view-model-wiz--medium-text"]=t,T)),
el:_.h2(_.Ew(function(){return D().rendererContext}))},_.K(_.FB,{each:Q},function(y,Z){return _.K(_.th,null,_.K(GQU,{metadataRow:y,
isInline:H,delimiter:function(){return D().delimiter},
isOverlay:n,useMediumText:t,extensions:J}),_.K(_.e,{cond:function(){return H()&&!y.isSpacerRow},
then:function(){return _.K(ywY,{delimiter:function(){return D().delimiter},
max:function(){return Q().length},
index:Z,isStandalone:!0})}}))}))},"Ka");
_.U9.idomCompat=!0;var eMP=_.MA(function(V){var D={};return _.K("yt-lockup-metadata-view-model",{class:_.KT("yt-lockup-metadata-view-model-wiz",function(){a:{var f=V.lockupStyle();if(f==null?0:f.isOverlay)f="yt-lockup-metadata-view-model-wiz--overlay";else switch(f==null?void 0:f.arrangement){case 1:f="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:f="yt-lockup-metadata-view-model-wiz--vertical"}}return f},function(){a:{var f=V.lockupStyle();
if(f==null?0:f.isTiny)f="yt-lockup-metadata-view-model-wiz--tiny";else switch(f==null?void 0:f.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":f="yt-lockup-metadata-view-model-wiz--compact";break a;default:f="yt-lockup-metadata-view-model-wiz--standard"}}return f},(D["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.isOverlay},D["yt-lockup-metadata-view-model-wiz--card"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.isCard},D["yt-lockup-metadata-view-model-wiz--centered"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.isCentered},D["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.typographyBump},D["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.useLegacyTypography},D["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var f;
return(f=V.lockupStyle())==null?void 0:f.useRichGridLegacyTypography},D))},_.K(_.BW,{data:function(){return V.data().image}},{avatarStackViewModel:function(f){return _.K("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.K(_.s9,{data:f.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(f){return _.K("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.K(_.vd,{data:f.data}))},
decoratedAvatarViewModel:function(f){return _.K("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.K(_.kd,{data:f.data}))}}),_.K("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.K("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var f;return(f=V.data().title)==null?void 0:f.content}},_.K(_.e,{cond:function(){return V.data().title},
then:function(f){return _.K(_.YC,{command:V.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:V.lockupAccessibilityLabel},_.K(_.Ow,{text:f}))}})),_.K("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.K(_.BW,{data:function(){return V.data().metadata}},{contentMetadataViewModel:function(f){return _.K(_.U9,{data:f.data,
layout:1,useMediumText:function(){var n,t;return((n=V.lockupStyle())==null?void 0:n.typographyBump)||((t=V.lockupStyle())==null?void 0:t.useRichGridLegacyTypography)},
extensions:function(){var n,t,J,H;return{lockupMetadata:{byline:{hideAvatar:((n=V.lockupStyle())==null?void 0:n.arrangement)===0,addPadding:((t=V.lockupStyle())==null?void 0:t.arrangement)===1},description:{hideDescription:!((J=V.lockupStyle())==null||!J.compactMetadata)},spacer:{hideSpacer:!((H=V.lockupStyle())==null||!H.compactMetadata)}}}}})}})),_.K(_.BW,{data:function(){return V.data().attribution}},{attributionViewModel:function(f){return _.K("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.K(K2E,{data:f.data,
useSmallLayout:!0}))}})),_.K("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.K(_.BW,{data:function(){return V.data().menuButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
buttonOverrides:function(){var n;return((n=V.lockupStyle())==null?0:n.isOverlay)?{style:"overlay"}:void 0}})}})))},"La");
eMP.idomCompat=!0;var cwH=_.MA(function(V){var D=_.W2("notification-multi-action-renderer");_.B9(function(){requestAnimationFrame(function(){_.Lh(D.value)})});
var f={},n={},t={};return _.K("notification-multi-action-renderer",{class:_.KT("ytNotificationMultiActionRendererHost",(f.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var J;return(J=V.useLegacyShelfStyle)==null?void 0:J.call(V)},f)),
el:D},_.K("span",{"aria-live":"polite",class:_.KT("ytNotificationMultiActionRendererTextContainer",(n.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var J;return(J=V.useLegacyShelfStyle)==null?void 0:J.call(V)},n))},_.K(_.Ow,{text:function(){return V.data().responseText}})),_.K("div",{class:_.KT("ytNotificationMultiActionRendererButtonContainer",(t.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var J;
return(J=V.useLegacyShelfStyle)==null?void 0:J.call(V)},t))},_.K(_.BW,{data:function(){var J;
return(J=V.data().buttons)==null?void 0:J.map(function(H){if(H=H.buttonRenderer){var Q,T=Object,y=T.assign,Z=(Q=H.icon)==null?void 0:Q.iconType;Q=(Q=H.command||H.serviceEndpoint||H.navigationEndpoint)?{innertubeCommand:Q}:void 0;H={buttonViewModel:y.call(T,{},{iconName:Z,onTap:Q,trackingParams:H.trackingParams,titleFormatted:H.text?_.zK(H.text):void 0},JwU(H))}}else H=void 0;return H}).filter(function(H){return!!H})}},{buttonViewModel:function(J,H){return _.K("div",null,_.K(_.HO,{data:J.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var Q;return((Q=V.useModernStyles)==null?0:Q.call(V))?{type:H()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ma");var F2H=_.MA(function(V){var D=_.W2("notification-text-renderer");_.B9(function(){requestAnimationFrame(function(){_.Lh(D.value)})});
return _.K("notification-text-renderer",{el:D,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.K(_.Ow,{text:function(){return V.data().successResponseText}}))},"Na");_.V4=_.MA(function(V){var D=_.KX(Y4Y,function(){var n;return rwY((n=V.contentId)==null?void 0:n.call(V))}),f=function(){var n;
return _.g((n=D())==null?void 0:n.command,_.l7)};
return _.K(_.e,{cond:function(){var n;if(!(n=f())){var t;n=_.g((t=D())==null?void 0:t.command,AxE)}return n},
then:function(){return _.K(_.e,{cond:f,then:function(){var n={};return _.K("div",{class:_.KT("ytDismissibleItemReplacedContent",function(){var t;return HKc((t=V.aspectRatio)==null?void 0:t.call(V))})},_.K("div",{class:_.KT((n.ytDismissibleItemAspectRatioContainer=function(){var t;
return((t=V.aspectRatio)==null?void 0:t.call(V))!==void 0},n))},_.K(_.BW,{data:function(){var t;
return(t=f())==null?void 0:t.item}},{notificationMultiActionRenderer:function(t){return _.K(cwH,{data:t.data,
useModernStyles:V.useModernStyle,useLegacyShelfStyle:V.useLegacyShelfStyle})},
notificationTextRenderer:F2H})))}})},
else:V.children})},"Oa");_.gUP=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;V=_.py("ad-avatar-view-model");var n=function(){var J;return((J=D().interaction)==null?0:J.onTap)?function(H){var Q;RmY(H,(Q=D().interaction)==null?void 0:Q.onTap,f)}:void 0},t=function(){var J,H=D(),Q=n(),T=(J=_.g(D().rendererContext,_.Z8))==null?void 0:J.label;
a:switch(H.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":J=1;break a;default:J=0}return{size:TB3(H.size),type:J,onTap:Q,accessibilityText:T}};
_.hk(V,{visibilityCallback:function(J){var H,Q=(H=D().interaction)==null?void 0:H.onFirstVisible;J&&Q&&_.Yt(Q)},
showOption:_.I1});return _.K("ad-avatar-view-model",{class:function(){var J;return((J=D().interaction)==null?0:J.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:V},_.K(_.e,{cond:function(){return D().image},
then:function(J){return _.K(wZl,{data:t,image:J})}}))},"Pa");_.DS=_.MA(function(V){V=_.Or(V,{hasDot:!1});var D=Object.assign({},V),f=V.data,n=V.hasDot;V=V.customCommandResolver;var t=(delete D.data,delete D.hasDot,delete D.customCommandResolver,D);D=function(){return f().style};
D!==void 0&&D!==null||_.$w(Error("Jh"));D=_.W2("ad-badge-view-model");_.SK(D,function(){return f().interaction},V);
return _.K("ad-badge-view-model",{class:_.KT(function(){var J;return((J=f().interaction)==null?0:J.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var J=t.adRenderingContextType();
f();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:D},_.K(_.dD,{data:function(){var J;f();return{type:2,text:(J=f().label)==null?void 0:J.content,adsIncludeDot:n(),isOverlay:f().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Qa");var vUF;_.fv=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;var n=V.adRenderingContextType;V=_.W2("ad-details-line-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(t){var J,H=(J=D().interaction)==null?void 0:J.onFirstVisible;t&&H&&_.Yt(H)},
showOption:_.I1});return _.K("ad-details-line-view-model",{class:function(){var t;return((t=D().interaction)==null?0:t.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:V},_.K(_.e,{cond:function(){return D().style},
then:function(t){return _.K(_.FB,{each:function(){var J;return((J=D())==null?void 0:J.attributes)||[]},
keyBy:"INDEX"},function(J){return _.K(vUF,{attribute:J,style:t,adRenderingContextType:function(){return n()}})})}}))},"Ra");
vUF=_.MA(function(V){var D=V.attribute;var f=V.style;var n=V.adRenderingContextType;return _.K(_.e,{cond:function(){return D().text},
then:function(t){return _.K(_.Ow,{text:t,className:function(){var J=n();f();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Sa");var kQu=_.MA(function(V){var D=V.data;var f=V.typographyBump;var n=function(){return D().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
V={};return _.K(_.th,null,_.K("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.K(_.Ow,{text:function(){return D().headline},
className:_.KT("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(V.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return n==null?void 0:n()},V.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(f==null?void 0:f())&&!(n==null?0:n())},V)),
linkInheritColor:!0}),_.K(_.e,{cond:function(){return D().description},
then:function(t){var J={};return _.K(_.Ow,{text:t,className:_.KT("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return n==null?void 0:n()},J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(f==null?void 0:f())&&!(n==null?0:n())},J)),
linkInheritColor:!0})}}),_.K(_.e,{cond:function(){return D().secondaryDescription},
then:function(t){var J={};return _.K(_.Ow,{text:t,className:_.KT("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return f==null?void 0:f()},J)),
linkInheritColor:!0})}}),_.K("div",{class:function(){return n()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.K(_.e,{cond:function(){return D().adAvatar},
then:function(){return _.K("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.K(_.BW,{data:function(){return D().adAvatar}},{adAvatarViewModel:_.gUP}))}}),_.K(_.BW,{data:function(){return D().adBadge}},{adBadgeViewModel:function(t){return _.K(_.DS,{data:t.data,
hasDot:function(){return!!D().adDetailsLine},
adRenderingContextType:function(){return D().adRenderingContextType}})}}),_.K(_.BW,{data:function(){return D().adDetailsLine}},{adDetailsLineViewModel:function(t){return _.K(_.fv,{data:t.data,
adRenderingContextType:function(){return D().adRenderingContextType}})}}))),_.K("div",{class:function(){return n()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
buttonOverrides:function(){a:switch(D().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var J="S";break a;default:J="M"}return{size:J}}})}})))},"Ta"),sgu=_.MA(function(V){var D=V.data;
var f=V.noBottomMargin;var n=V.useVideoLockupTopPadding;var t=V.typographyBump;V={};V=_.KT("ytwFeedAdMetadataViewModelHostMetadata",(V.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return f==null?void 0:f()},V.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},V));
var J=function(){return D().adBadge};
J!==void 0&&J!==null||_.$w(Error("Kh"));J={};var H={};return _.K(_.th,null,_.K(_.e,{cond:function(){return D().adAvatar},
then:function(){return _.K("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.K(_.BW,{data:function(){return D().adAvatar}},{adAvatarViewModel:function(Q){return _.K(_.gUP,{data:Q.data})}}))}}),_.K("div",{class:V},_.K("div",{class:_.KT("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return t==null?void 0:t()},J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(t==
null?void 0:t())&&_.c("web_enable_typography_bump_v2")},J))},_.K(_.Ow,{text:function(){return D().headline},
linkInheritColor:!0})),_.K(_.e,{cond:function(){return D().description},
then:function(Q){return _.K(_.Ow,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.K("div",{class:function(){return D().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.c("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.K(_.BW,{data:function(){return D().adBadge}},
{adBadgeViewModel:function(Q){return _.K(_.DS,{data:Q.data,
hasDot:function(){return!!D().adDetailsLine},
adRenderingContextType:function(){return D().adRenderingContextType}})}}),_.K(_.BW,{data:function(){return D().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.K(_.fv,{data:Q.data,
adRenderingContextType:function(){return D().adRenderingContextType}})}})),_.K(_.e,{cond:function(){return D().secondaryDescription},
then:function(Q){return _.K(_.Ow,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.K("div",{class:_.KT("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(H.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},H))},_.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:_.HO})))},"Ua"),BBo=_.MA(function(V){var D=V.data;
var f=V.noBottomMargin;var n=V.listenToTapEvent;var t=V.setTouchEndHandler;var J=V.useVideoLockupTopPadding;var H=V.typographyBump;var Q=_.W2("feed-ad-metadata-view-model");_.SK(Q,function(){return D().interaction},void 0,function(){return n==null?void 0:n()});
V=_.r(_.HJ(!1,void 0,"qjt0Xc"));var T=V.next().value,y=V.next().value;V=_.jl(function(){(t==null?0:t())&&!T()&&(Q.value.click(),y(!0),setTimeout(function(){y(!1)},100));
return!1});
_.hk(Q,{visibilityCallback:function(Z){var l,G=(l=D().interaction)==null?void 0:l.onFirstVisible;Z&&G&&_.Yt(G)},
showOption:_.I1});return _.K("feed-ad-metadata-view-model",{class:function(){var Z;return((Z=D().interaction)==null?0:Z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:Q,"on:touchend":V},_.K(_.kw,null,_.K(_.gj,{when:function(){return D().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.K(kQu,{data:D,
typographyBump:H})}),_.K(_.gj,{when:function(){return D().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.K(sgu,{data:D,
noBottomMargin:f,useVideoLockupTopPadding:J,typographyBump:H})})))},"Va");var dSo;_.nv=_.MA(function(V){return _.K("yt-lockup-view-model",{class:_.KT(V.className)},_.K(_.V4,{contentId:function(){return V.data().contentId},
useModernStyle:!0,aspectRatio:function(){var D,f;return((D=V.containerType)==null?void 0:D.call(V))!==3?xnY(V.data().contentType,(f=V.force16By9ThumbnailAspectRatio)==null?void 0:f.call(V)):void 0}},function(){return _.K(dSo,Object.assign({},V))}))},"Wa");
dSo=_.MA(function(V){V=_.Or(V,{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 D=V.data,f=V.containerLayoutConfig,n=V.containerType,t=V.sizing,J=V.protectBackground,H=V.typographyBump,Q=V.force16By9ThumbnailAspectRatio,T=V.thumbnailFixedWidth,y=V.thumbnailTargetWidth,Z=V.lockupExperiments,l=V.elementsPerRow;
V=_.h2(_.Ew(function(){var Bn;return(Bn=D())==null?void 0:Bn.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var G=_.CT(dnX),F=_.DY().resolve(_.Vx(I2H)),k=F?{}:void 0,d=function(){var Bn,aY,Ed;return(Ed=(aY=_.g((Bn=D())==null?void 0:Bn.rendererContext,_.Z8))==null?void 0:aY.label)!=null?Ed:void 0},z=function(){var Bn=f==null?void 0:f(),aY;
if(Bn==null?0:Bn.containerType){var Ed=(aY=D())==null?void 0:aY.contentType;aY=Z();var V0=H(),kf=y(),mY=J();Bn=Object.assign({},M0Z(Ltd(Bn),WtZ(Bn.responsiveSize),V0,Ed,Bn.force16By9ThumbnailAspectRatio,kf,mY,aY),{thumbnailFixedWidth:Bn.contentPreviewWidth})}else Bn=M0Z(n(),t(),H(),(Ed=D())==null?void 0:Ed.contentType,Q(),y(),J(),Z());return Bn};
F&&k&&F({enabled:function(){return G()},
itemPlaybackModel:function(){return D().itemPlayback},
thumbnailElRef:function(){return k.thumbnailElRef},
containerElRef:V,options:function(){var Bn,aY=(Bn=_.g(D().metadata,i96))==null?void 0:Bn.endorsement;Bn=k.thumbnailOverlays||[];aY&&Bn.push(aY);var Ed,V0;return{thumbnail:k.thumbnail,thumbnailOverlays:Bn,accessibilityText:d(),thumbnailSize:k.thumbnailSize,enableRounding:z().isCollection,containPlayerWithinThumbnail:z().isCollection,trackingParams:(Ed=_.g(D().rendererContext,_.GK))==null?void 0:(V0=Ed.loggingDirectives)==null?void 0:V0.trackingParams}}});
var C=0;F=_.r(_.HJ(!1,void 0,"GH4i8d"));var A=F.next().value,O=F.next().value;F=_.r(_.HJ(!1,void 0,"hS52Ob"));var W=F.next().value,I=F.next().value;F=_.jl(function(){var Bn=G()&&D().itemPlayback;W()?(_.dm.cancelJob(C),C=_.dm.addJob(function(){O(!Bn)},8,32)):O(!Bn);
return!0});
var x=_.jl(function(){C&&(_.dm.cancelJob(C),C=0);O(!1)});
_.dc(function(){C&&(_.dm.cancelJob(C),C=0)});
var oY=QgU(function(){I(!0)}),wZ=oY.touchFeedbackEvents,ZZ=oY.touchFeedbackOnPointerUp,sd=oY.touchFeedbackOnPointerDown;
oY=oY.touchFeedbackOnPointerLeave;var NU={};return _.K("div",{el:V,class:_.KT("yt-lockup-view-model-wiz",function(){a:{var Bn=z();if(Bn.isOverlay)Bn="yt-lockup-view-model-wiz--overlay";else switch(Bn.arrangement){case 1:Bn="yt-lockup-view-model-wiz--horizontal";break a;default:Bn="yt-lockup-view-model-wiz--vertical"}}return Bn},function(){a:{var Bn=z();
if(Bn.isOverlay)Bn="yt-lockup-view-model-wiz--overlay";else{switch(Bn.collectionStackNumber){case 1:Bn="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Bn="yt-lockup-view-model-wiz--collection-stack-2";break a}Bn=void 0}}return Bn},(NU["yt-lockup-view-model-wiz--card"]=function(){return z().isCard},NU["yt-lockup-view-model-wiz--compact"]=function(){return z().isTiny||z().sizing!=="STANDARD"},NU["yt-lockup-view-model-wiz--protect-background"]=J,NU["yt-lockup-view-model-wiz--add-margins"]=
function(){return z().addMarginForFullbleed},NU["yt-lockup-view-model-wiz--centered"]=function(){return z().isCentered},NU["yt-lockup-view-model-wiz--fullbleed"]=function(){return z().fullbleed},NU["yt-lockup-view-model-wiz--single-column-grid"]=function(){return l()===1&&n()===2},NU["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Bn;
return(Bn=Z())==null?void 0:Bn.useRichGridLegacyMargin},NU)),
"on:mousedown":sd,"on:mouseleave":x,"on:mouseup":ZZ,"on:mouseover":F,"on:touchstart":sd,"on:touchend":ZZ,"on:pointerleave":oY},_.K(_.YC,{command:function(){var Bn;return _.qs((Bn=D())==null?void 0:Bn.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return T()&&z().arrangement===1?"width: "+T():""}},_.K(_.BW,{data:function(){var Bn;
return(Bn=D())==null?void 0:Bn.contentImage}},{thumbnailViewModel:function(Bn){return _.K(_.La,{data:Bn.data,
aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:y,hovered:A,isClip:function(){var aY;return((aY=D())==null?void 0:aY.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:sEn(k),lockupExperiments:function(){return Z()}})},
collectionThumbnailViewModel:function(Bn){return _.K(oUV,{data:Bn.data,aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:y,doubleStack:function(){return z().collectionStackNumber===2},
hovered:A,playbackRef:sEn(k)})},
decoratedAvatarViewModel:_.kd})),_.K("div",{class:"yt-lockup-view-model-wiz__metadata"},_.K(_.BW,{data:function(){var Bn;return(Bn=D())==null?void 0:Bn.metadata}},{lockupMetadataViewModel:function(Bn){return _.K(eMP,{data:Bn.data,
lockupStyle:z,lockupCommand:function(){var aY;return _.qs((aY=D())==null?void 0:aY.rendererContext)},
lockupAccessibilityLabel:function(){return d()}})},
feedAdMetadataViewModel:function(Bn){return _.K(BBo,{data:Bn.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:H})}}),_.K(_.BW,{data:function(){var Bn;
return(Bn=D())==null?void 0:Bn.attachmentSlot}},{lockupAttachmentsViewModel:function(Bn){return _.K(QgL,{data:Bn.data,
lockupStyle:z})}})),_.K(_.kl,{model:function(){a:{switch(z().collectionStackNumber){case 1:var Bn=8;
break a;case 2:Bn=12;break a}Bn=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Bn}},
pointerDownEvent:wZ.pointerDownEvent,pointerUpEvent:wZ.pointerUpEvent,pointerLeaveEvent:wZ.pointerLeaveEvent}))},"Xa");
_.nv.idomCompat=!0;_.fT(_.nv,"yt-lockup-view-model",{props:{data:_.WX,containerLayoutConfig:_.WX,containerType:_.WX,sizing:_.WX,protectBackground:_.WX,typographyBump:_.WX,thumbnailFixedWidth:_.WX,thumbnailTargetWidth:_.WX,force16By9ThumbnailAspectRatio:_.WX,className:_.WX,lockupExperiments:_.WX,elementsPerRow:_.WX}});var ZKn;_.V$(cwn);var kQd,u8U=_.MA(function(V){var D=_.Or(V,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),f=D.text,n=D.alwaysShowTruncationText;V=D.truncationText;var t=D.onTextClick,J=D.maxLines,H=D.disableTextMask,Q=D.textStyle,T=D.accessibilityLabel,y=D.textSize,Z=D.alwaysTruncateAtMaxLines,l=D.expandOnClick;D=_.r(_.HJ(!1,void 0,"Qz8MWe"));var G=D.next().value,F=D.next().value;D=_.jl(function(){l()&&F(!G());t==null||t()});
var k=function(){a:switch(y()){case "medium":var x=2;break a;case "large":x=2.2;break a;default:x=1.8}return x},d=u8L(f,function(){return G()?Infinity:J()},k,H,Z),z=d.isTruncated;
f=d.displayText;Z=d.contentRef;var C=d.hiddenRef,A=d.placeholderTruncationTextRef,O=d.hiddenTruncationTextRef;d=d.truncationTextRef;var W={},I={};return _.K("truncated-text",{class:_.KT((W["truncated-text-wiz"]=!0,W["truncated-text-wiz--overlay"]=function(){return Q()==="overlay"},W["truncated-text-wiz--medium-text"]=function(){return y()==="medium"},W["truncated-text-wiz--large-text"]=function(){return y()==="large"},W["truncated-text-wiz--primary-text"]=function(){return Q()==="primary-text"},W)),
"on:click":D,style:function(){return"line-height: "+k()+"rem;"}},_.K("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:Z,style:function(){return G()?"":"max-height: "+J()*k()+"rem;"}},_.K(_.Ow,{text:f}),_.K("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:A,style:function(){return"line-height: "+k()+"rem;"}},_.K(_.Ow,{text:V}))),_.K("truncated-text-content",{class:_.KT("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:C,style:function(){return G()?"":"max-height: "+J()*k()+"rem;"},
"aria-hidden":"true"},_.K(_.Ow,{text:f}),_.K("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:O,style:function(){return"line-height: "+k()+"rem;"}},_.K(_.Ow,{text:V}))),_.K("button",{"aria-label":T,
class:_.KT((I["truncated-text-wiz__absolute-button"]=function(){return!H()},I["truncated-text-wiz__bottom-button"]=function(){return H()},I["truncated-text-wiz--hidden"]=function(){return!(!G()&&(n!=null&&n()||z()))},I)),
el:d,style:function(){return"line-height: "+k()+"rem;"}},_.K(_.Ow,{text:V})))},"Ya"),AwR=_.c("web_enable_sink_truncated_text")?u8U:cwn,NBF=_.c("web_enable_sink_truncated_text")?u8U:_.Zn(AwR,{callbacks:{onTextClick:!0}});
u8U.idomCompat={callbacks:{onTextClick:!0}};_.V$(mSU);
var mSL=_.MA(function(V){var D=V.children;var f=V.className;var n=V.style;var t=V.role;var J=V.ariaSelected;var H=V.ariaLabel;var Q=V.ariaHidden;var T=V.ariaLabelledby;var y=V.ariaDescribedby;var Z=V.command;var l=V.elementsCommand;var G=V.forceNewState;var F=V.tabIdentifier;var k=V.target;var d=V.tabIndex;var z=V.stopPropagation;V=_.yT(function(){var C=_.A2({innertubeCommand:Z==null?void 0:Z(),elementsCommand:l==null?void 0:l(),forceNewState:G==null?void 0:G(),stopPropagation:(z==null?void 0:z())!==
!1});C||(C={});C["aria-hidden$"]=Q==null?void 0:Q();var A;C.tabindex$=(A=d==null?void 0:d())!=null?A:C.tabindex$;var O;C["force-new-state$"]=(O=G==null?void 0:G())!=null?O:C["force-new-state$"];var W;C.role$=(W=t==null?void 0:t())!=null?W:C.role$;var I;C["aria-hidden$"]=(I=Q==null?void 0:Q())!=null?I:C["aria-hidden$"];var x;C.target$=(x=k==null?void 0:k())!=null?x:C.target$;return C},void 0,"SU0Mnc");
return _.K(_.YC,{aTagConfig:V,className:f,style:n,ariaLabel:H,ariaLabelledby:T,ariaDescribedby:y,ariaSelected:J,tabIdentifier:F},D)},"Za");var aj9=_.eK({buttonViewModel:_.HO});_.V$(XaX);_.V$(CZ9);_.V$(qaR);var CZF=_.MA(function(V){var D=V.data;V=V.className;var f=_.yT(function(){return $SY(D())},void 0,"Db3J3e");
return _.K("yt-video-attribute-view-model",{class:V},_.K("div",{class:function(){var n=D();a:switch(n.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var t="yt-video-attribute-view-model--vertical";break a;default:t="yt-video-attribute-view-model--horizontal"}a:switch(n.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var J="yt-video-attribute-view-model--image-small";break a;default:J="yt-video-attribute-view-model--image-large"}a:switch(n.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var H=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":H="yt-video-attribute-view-model--image-avatar";break a;default:H=""}a:switch(n.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Q="yt-video-attribute-view-model--metadata-header";break a;default:Q=""}a:switch(n.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var T="yt-video-attribute-view-model--container-card";break a;default:T=""}return["yt-video-attribute-view-model",t,J,
H,Q,T,$SY(n)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.el({"background-color":function(){var n=D();if(n.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else{t=n.lightColorPalette;n=n.darkColorPalette;var J,H=((J=_.DY().resolve(_.Vx(_.pm)))==null?0:J())&&n?n:t;t=(t=H==null?void 0:H.section2Color)?_.aB(t):""}return t}})},_.K(_.e,{cond:function(){return f()||!_.c("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.K(mSL,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:f,role:"group",ariaLabel:function(){return D().title},
forceNewState:!0},_.K(_.e,{cond:function(){return D().heroText||D().image},
then:function(){return _.K(zMp,{data:D})}}),_.K(RMU,{data:D,
sizeSmall:function(){return D().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.K("div",{class:"yt-video-attribute-view-model__content-container"},_.K(_.e,{cond:function(){return D().heroText||D().image},
then:function(){return _.K(zMp,{data:D})}}),_.K(RMU,{data:D,
sizeSmall:function(){return D().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"$a");
CZF.idomCompat=!0;var qaE=_.c("web_enable_sink_yt_video_attribute_view_model")?CZF:_.Zn(XaX),zMp=_.MA(function(V){var D=V.data;var f,n=(f=_.DY().resolve(_.Vx(_.pm)))==null?void 0:f(),t=function(){return n&&D().darkThemeImage?D().darkThemeImage:D().image},J=_.yT(function(){return iKR(D())},void 0,"MvXudb");
return _.K("div",{class:"yt-video-attribute-view-model__hero-section"},_.K(_.kw,null,_.K(_.gj,{when:t},function(){return _.K(_.xt,{data:function(){return t()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.K(_.gj,{when:function(){return D().heroText}},function(){return _.K("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.K("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return D().heroText}))})),_.K(_.e,{cond:function(){return D().overflowMenuOnTap},
then:function(){return _.K("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.K(xC,{data:J,iconName:"MORE_VERT"}))}}))},"ab");
zMp.idomCompat=!0;var RMU=_.MA(function(V){var D=V.data;V=V.sizeSmall;var f=function(){return D().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},n=_.yT(function(){return a5(_.A2({innertubeCommand:$SY(D())}))?"link":"group"},void 0,"eWUHvb"),t={};
return _.K("div",{class:_.KT("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=V,t)),role:n},_.K("h1",{class:"yt-video-attribute-view-model__title"},function(){return D().title}),_.K(_.e,{cond:function(){return D().subtitle},
then:function(){return _.K("h4",{class:"yt-video-attribute-view-model__subtitle"},_.K(_.e,{cond:f,then:function(){return _.K(NBF,{text:function(){return YaR(D().subtitle)},
truncationText:function(){return YaR(D().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.K("span",null,function(){return D().subtitle})}}))}}),_.K(_.e,{cond:function(){return D().secondarySubtitle},
then:function(J){return _.K("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.K(_.Ow,{text:function(){var H=J();if(H!=null&&H.attachmentRuns){for(var Q=[],T=_.r(H.attachmentRuns),y=T.next();!y.done;y=T.next())y=y.value,y.element&&Q.push(Object.assign({},y,{element:Object.assign({},y.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));H=Object.assign({},H,{attachmentRuns:Q})}return H}}))}}),_.K(_.BW,
{data:function(){return D().buttonViewModel}},{buttonViewModel:function(J){return _.K(_.HO,{data:J.data,
className:"yt-video-attribute-view-model__button"})}}))},"bb");
RMU.idomCompat=!0;_.fT(qaE,"yt-video-attribute-view-model",{props:{data:_.WX,className:_.WX}});var tt=function(){var V=_.E.apply(this,arguments)||this;V.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");V.isSearch=!1;V.JSC$13178_lastScrollContainerWidth=NaN;V.pageLoadingFromNavigation=!1;V.currentIndex=0;V.supportComponentResize=!1;return V};
_.v(tt,_.E);_.P=tt.prototype;
_.P.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}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.Ty(this,this.onPageChange))};
_.P.detached=function(){document.removeEventListener("yt-page-type-changed",_.Ty(this,this.onPageChange))};
_.P.getItemsPath=function(){return"data.cards"};
_.P.onIronResize=function(){this.updateListStyles()};
_.P.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var V;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(V=this.data)==null?void 0:V.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.c("problem_walkthrough_sd")&&!!this.centerItems};
_.P.computeCardListStyle=function(V){return V||null};
_.P.computeEmpty=function(V){return!this.get("cards.length",V)};
_.P.computeThumbnailStyle=function(V){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",V)||null};
_.P.computeHasSubtitle=function(V){return!!this.get("header.richListHeaderRenderer.subtitle",V)};
_.P.computeInitialCountNumber=function(V){return this.hasSquareMiniApp&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.P.computeUseFloorScrolling=function(V){return V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.P.computeHasGameCard=function(V){return(V=this.get("cards",V))?V.some(function(D){return D.gameCardRenderer}):!1};
_.P.computeCenterHeaderTitle=function(V){return!(V==null||!V.centerHeaderTitle)};
_.P.computeHasPortraitMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.P.computeHasSquareMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.P.computeHasSkinnyWidthPortraitMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.width===135}):!1};
_.P.computeCenterItems=function(V){return!!V};
_.P.computeHasInfoPanel=function(V){var D;return V==null?void 0:(D=V.cards)==null?void 0:D.some(function(f){return f.infoPanelContentRenderer})};
_.P.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.P.getItemByIndex=function(V){var D=this.items.children;return D&&D.length>V?D[V]:void 0};
_.P.onPageChange=function(){var V=this;this.pageLoadingFromNavigation=!0;_.dm.addJob(function(){V.pageLoadingFromNavigation=!1;_.JR(V.hostElement,"yt-terminate-video-preview-action")},8)};
_.P.updateListStyles=function(){if(_.c("problem_walkthrough_sd")&&this.JSC$13178_scrollContainer!==void 0){var V=this.JSC$13178_scrollContainer.clientWidth;V!==this.JSC$13178_lastScrollContainerWidth&&(this.JSC$13178_lastScrollContainerWidth=V,_.wI(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(V*.8,415)+"px"}),_.PA(this.hostElement,"iron-resize"))}};
_.IG.Object.defineProperties(tt.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.c("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.cards)==null?0:(f=D[0])==null?0:f.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.cards)==null?0:(f=D[0])==null?0:f.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return _.c("enable_desktop_amsterdam_info_panels")&&!!((V=this.data)==null?0:(D=V.cards)==null?0:(f=D[0])==null?0:f.infoPanelContentRenderer)}}});
tt.prototype.dataChanged=tt.prototype.dataChanged;tt.prototype.onIronResize=tt.prototype.onIronResize;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],tt.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.u(_.N0),_.p("design:type",Object)],tt.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tt.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],tt.prototype,"useCustomColors",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],tt.prototype,"useHighlightStyling",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.p("design:type",Object)],tt.prototype,"cardListStyle",void 0);_.S([_.q({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.p("design:type",Boolean)],tt.prototype,"empty",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasSubtitle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.p("design:type",Boolean)],tt.prototype,"thumbnailStyle",void 0);_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasGameCard",void 0);_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.p("design:type",Boolean)],tt.prototype,"centerHeaderTitle",void 0);
_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasPortraitMiniApp",void 0);_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasSquareMiniApp",void 0);_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.S([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.p("design:type",Boolean)],tt.prototype,"hasInfoPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],tt.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],tt.prototype,"inlineStructuredDescription",void 0);_.S([_.Zv("#scroll-container"),_.p("design:type",HTMLDivElement)],tt.prototype,"JSC$13178_scrollContainer",void 0);
_.S([_.q({computed:"computeInitialCountNumber(data.style.type)"}),_.p("design:type",Number)],tt.prototype,"initialCount",void 0);_.S([_.q({computed:"computeUseFloorScrolling(data.style.type)"}),_.p("design:type",Boolean)],tt.prototype,"useFloorScrolling",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.p("design:type",Boolean)],tt.prototype,"centerItems",void 0);_.S([_.q(),_.p("design:type",Object)],tt.prototype,"pageLoadingFromNavigation",void 0);
_.S([_.q(),_.p("design:type",Object)],tt.prototype,"currentIndex",void 0);_.S([_.q(),_.p("design:type",Number)],tt.prototype,"scrollCount",void 0);_.S([_.q(),_.p("design:type",Object)],tt.prototype,"supportComponentResize",void 0);_.S([_.Zv("#items"),_.p("design:type",HTMLDivElement)],tt.prototype,"items",void 0);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tt.prototype,"onIronResize",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tt.prototype,"dataChanged",null);_.S([_.q({reflectToAttribute:!0}),_.R("inlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tt.prototype,"hideNavigationButton",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tt.prototype,"modernChapters",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tt.prototype,"hasVideoAttributeViewModels",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tt.prototype,"modernInfoPanels",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],tt);
_.Y(tt,"ytd-horizontal-card-list-renderer",function(){if(dnY!==void 0)return dnY;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return dnY=V},{mode:_.J2("kevlar_poly_si_batch_j072")?1:2});var XaY=_.MA(function(V){var D=V.data;var f={};return _.K("video-summary-content-view-model",{class:_.KT("video-summary-content-view-model-wiz",V.className,(f["video-summary-content-view-model-wiz--is-search"]=V.isSearch,f))},_.K(_.FB,{each:function(){var n=[],t=D().paragraphs;if(t==null||!t.length)return[];for(var J=0;J<t.length;J++){var H=_.g(t[J],L6l),Q=void 0;J>0&&(Q=_.g(t[J-1],L6l));Q&&!!Q.marker===!!H.marker?n[n.length-1].paragraphs.push(H):n.push({isList:!!H.marker,paragraphs:[H]})}return n},
keyBy:"INDEX"},function(n){return _.K(_.e,{cond:function(){return n().isList},
then:function(){return _.K("ul",{class:"video-summary-content-view-model-wiz__list"},_.K(_.FB,{each:function(){return n().paragraphs},
keyBy:"INDEX"},function(t){return _.K("li",{class:"video-summary-content-view-model-wiz__list-item"},_.K(_.Ow,{text:function(){return t().text}}))}))},
else:function(){return _.K(_.FB,{each:function(){return n().paragraphs},
keyBy:"INDEX"},function(t){return _.K("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.K(_.Ow,{text:function(){return t().text}}))})}})}),_.K(_.e,{cond:function(){return!!_.g(D().likeButtonViewModel,_.d0)&&!!_.g(D().dislikeButtonViewModel,_.Bc)},
then:function(){return _.K("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.K("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.K(_.s8,{data:function(){return _.g(D().likeButtonViewModel,_.d0)},
disableIconAnimation:!0})),_.K(_.kE,{data:function(){return _.g(D().dislikeButtonViewModel,_.Bc)}}))}}))},"cb");
XaY.idomCompat=!0;_.fT(XaY,"video-summary-content-view-model",{props:{data:_.WX,isSearch:_.WX,className:_.WX}});var PG=function(){var V=_.E.apply(this,arguments)||this;var D,f;V.isExpanded=(f=(D=V.data)==null?void 0:D.isExpanded)!=null?f:!1;V.disableExpand=!1;V.showProminentLabel=!1;V.showRightSideLabel=!0;V.toggleExpandableContent=function(n){V.disableExpand||(n.stopPropagation(),_.Oo(_.Os(n),V.hostElement,["info","expanded-subtitle"])||(V.isExpanded=!V.isExpanded,V.ytRendererBehavior.logExplicitClick(V.data),V.JSC$13189_cardList&&!_.c("expandable_metadata_a11y_fix_ks")&&_.pO(V,function(){_.ph(V.hostElement)})))};
V.useSquareThumbnail=!1;V.contentHiddenWithDisplayNone=_.c("web_expandable_metadata_content_hidden_with_display_none");V.startX=0;return V};
_.v(PG,_.E);_.P=PG.prototype;_.P.computeUseSquareThumbnail=function(){var V;return(V=this.data)==null?void 0:V.useSquareThumbnail};
_.P.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"}}}}};
_.P.dataChanged=function(){if(this.data){var V,D;this.isExpanded=(D=(V=this.data)==null?void 0:V.isExpanded)!=null?D:!1;var f,n,t,J;if(V=this.isDarkTheme()?(f=this.data)==null?void 0:(n=f.colorData)==null?void 0:n.darkColorPalette:(t=this.data)==null?void 0:(J=t.colorData)==null?void 0:J.lightColorPalette){var H,Q;if((H=this.data)==null?0:(Q=H.colorData)==null?0:Q.vibrantColorPalette)V.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Na(this.hostElement,V)}}};
_.P.isExpandedChanged=function(){this.isExpanded&&this.JSC$13189_cardList&&_.PA(this.JSC$13189_cardList,"iron-resize")};
_.P.computeIsExpanded=function(V){return!!V.isExpanded};
_.P.computeShowProminentLabel=function(V,D){var f;return!!(V==null?0:(f=V.header)==null?0:f.showLeadingCollapsedLabel)&&!D};
_.P.computeShowRightSideLabel=function(V,D){var f;return!(V==null?0:(f=V.header)==null?0:f.showLeadingCollapsedLabel)&&!D};
_.P.captureContentClick=function(V){if(!this.disableExpand)if(_.c("expandable_metadata_fix_killswitch")){var D=V.target;_.elV(D,"ytd-macro-markers-list-item-renderer")||V.stopPropagation();(D==null?void 0:D.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Oo(_.Os(V),this.hostElement,["items"])||_.It(_.Os(V),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.P.timestampClick=function(V){V.stopPropagation();var D,f;(V=(D=this.data)==null?void 0:(f=D.header)==null?void 0:f.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(V)};
_.P.onDown=function(V){V.stopPropagation();this.startX=V.detail?V.detail.x:0};
_.P.onUp=function(V){this.skipKeyInteraction(V)&&V.stopPropagation()};
_.P.skipKeyInteraction=function(V){var D=V.target;if((D==null?void 0:D.id)==="scroll-container"||(D==null?void 0:D.id)==="items"||V.detail&&V.detail.x!==this.startX)return!0;V=_.Os(V);V=_.r(V);for(D=V.next();!D.done;D=V.next()){D=D.value;if(D===this.hostElement)break;if(D.hasAttribute&&D.hasAttribute("skip-key-interaction"))return!0}return!1};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.IG.Object.defineProperties(PG.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.g((V=this.data)==null?void 0:V.expandedContent,pkF)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.g((V=this.data)==null?void 0:V.expandedContent,_.SCE)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.useCustomColors)&&!((D=this.data)==null||!D.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!((V=this.data)==null?0:(D=V.header)==null?0:D.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!((V=this.data)==null?0:(D=V.header)==null?0:D.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!((V=this.data)==null?0:(D=V.header)==null?0:D.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.c("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
PG.prototype.onUp=PG.prototype.onUp;PG.prototype.onDown=PG.prototype.onDown;PG.prototype.isExpandedChanged=PG.prototype.isExpandedChanged;PG.prototype.dataChanged=PG.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],PG.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],PG.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],PG.prototype,"isExpanded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],PG.prototype,"disableExpand",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],PG.prototype,"isSearch",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],PG.prototype,"isWatch",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.p("design:type",Object)],PG.prototype,"showProminentLabel",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.p("design:type",Object)],PG.prototype,"showRightSideLabel",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"hasVideoSummary",null);_.S([_.q({value:!1,reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"hasLockupViewModel",null);_.S([_.q({reflectToAttribute:!0}),_.R("data","isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"useCustomColors",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"showInfoButton",null);_.S([_.R("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"showTimestamp",null);_.S([_.R("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"showExpandedSubtitle",null);
_.S([_.R("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"showThumbnail",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],PG.prototype,"useVppShoppingDestinationStyle",null);_.S([_.q(),_.p("design:type",Object)],PG.prototype,"toggleExpandableContent",void 0);_.S([_.Zv("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],PG.prototype,"JSC$13189_cardList",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.p("design:type",Object)],PG.prototype,"useSquareThumbnail",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],PG.prototype,"contentHiddenWithDisplayNone",void 0);_.S([_.R("isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PG.prototype,"contentHidden",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PG.prototype,"dataChanged",null);_.S([_.KI("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PG.prototype,"isExpandedChanged",null);_.S([_.bU("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],PG.prototype,"onDown",null);
_.S([_.bU("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],PG.prototype,"onUp",null);_.S([_.a({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],PG);
_.Y(PG,"ytd-expandable-metadata-renderer",function(){if(Aoo!==void 0)return Aoo;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" 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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Aoo=V},{mode:1});var EUY,AwE=function(){if(EUY!==void 0)return EUY;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return EUY=V};_.fT(_.s9,"yt-avatar-stack-view-model",{props:{className:_.WX,data:_.WX,overrides:_.WX,isOverlay:_.WX,useMediumText:_.WX,decorations:_.WX,hideAvatar:_.WX}});_.zk("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Q4=function(){var V=_.E.apply(this,arguments)||this;V.disableExpand=!1;V.shouldShowChannelInfo=!1;V.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return V};
_.v(Q4,_.E);_.P=Q4.prototype;_.P.computeUseSearchUi=function(){var V,D;return this.isSearch||((V=this.data)==null?void 0:(D=V.style)==null?void 0:D.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.computeUseThreeLineTitle=function(){var V;return((V=this.data)==null?void 0:V.maxTitleLines)===3};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.c("polymer_video_renderer_defer_menu")&&!zkE?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"}}}};
_.P.attached=function(){_.JA(this.hostElement,"blue-links",_.c("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.rI(_.Pt(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var V=this.get("data.buttons.buttonRenderer.serviceEndpoint"),D;V&&((D=_.g(V.commandMetadata,_.g0))==null?0:D.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(V);this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13194_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.JSC$13194_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13194_inlinePreviewHoverListener)==null||D1(V)};
_.P.onTextWrapperClick=function(V){var D,f,n=this.hideTranslation?(D=this.data)==null?void 0:D.untranslatedNavigationEndpoint:(f=this.data)==null?void 0:f.navigationEndpoint;D=_.Oo(_.Os(V),this.hostElement,["expandable-metadata"]);!n||D&&!_.c("expandable_metadata_fix_killswitch")||_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.PA(this.hostElement,"yt-navigate",{endpoint:n})};
_.P.computeThumbnailWidth=function(V,D,f,n,t){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:n?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:f?360:D?128:V?210:246};
_.P.computeUseBiggerThumbs=function(V){return V&&_.c("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.P.computeVideoStyle=function(){if(_.c("enable_video_style")){var V,D;return(V=this.data)==null?void 0:(D=V.style)==null?void 0:D.value}};
_.P.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.handleHideItemSectionVideosByIdCommand=function(V){var D;V=(D=_.g(V,K6F))==null?void 0:D.videoId;this.data&&this.data.videoId===V&&(this.isHidden=!0)};
_.P.getMetadataSnippetContainerClass=function(V){return V?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.P.computeTitleText=function(V,D,f){return V?f:D};
_.P.computeDescriptionSnippet=function(V,D,f){return V?f:D};
_.P.computeSnippetText=function(V,D,f){return V?f:D};
_.P.computeNavigationEndpoint=function(V,D){return V?D==null?void 0:D.untranslatedNavigationEndpoint:D==null?void 0:D.navigationEndpoint};
_.P.hideInlineTitleIcon=function(V,D){return V||!D};
_.IG.Object.defineProperties(Q4.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 V;return(V=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?V:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!(this==null?0:(V=this.data)==null?0:(D=V.channelThumbnailSupportedRenderers)==null?0:(f=D.channelThumbnailWithLinkRenderer)==null?0:f.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.g((V=this.data)==null?void 0:V.avatar,WJY)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13194_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.IG.Object.defineProperties(Q4,{template:{configurable:!0,enumerable:!0,get:function(){return AwE()}}});
Q4.prototype.dataChanged=Q4.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Q4.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Q4.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.E_),_.p("design:type",Object)],Q4.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Q4.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Q4.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Q4.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q4.prototype,"isBackstageVideo",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q4.prototype,"isPostCompactVideo",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Q4.prototype,"isHistory",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q4.prototype,"isRichGridVideoPost",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q4.prototype,"isHidden",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Q4.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.p("design:type",Boolean)],Q4.prototype,"useSearchUi",void 0);_.S([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.p("design:type",Boolean)],Q4.prototype,"useThreeLineTitle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.p("design:type",Boolean)],Q4.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.p("design:type",Object)],Q4.prototype,"videoStyle",void 0);_.S([_.q({computed:"computeDisableExpand(videoStyle)"}),_.p("design:type",Object)],Q4.prototype,"disableExpand",void 0);
_.S([_.q({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.p("design:type",Object)],Q4.prototype,"shouldShowChannelInfo",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],Q4.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.p("design:type",String)],Q4.prototype,"inlineTitleIcon",void 0);_.S([_.q({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.p("design:type",Object)],Q4.prototype,"computedNavigationEndpoint",void 0);_.S([_.q({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(V,D){return _.wg(V.entities,"searchVideoResultEntity",D)}}),
_.p("design:type",Object)],Q4.prototype,"searchVideoResultEntity",void 0);_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],Q4.prototype,"thumbnail",void 0);_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],Q4.prototype,"JSC$13194_dismissibleMedia",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Q4.prototype,"dataChanged",null);
_.S([_.R("searchVideoResultEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q4.prototype,"hideTranslation",null);_.S([_.R("searchVideoResultEntity"),_.p("design:type",Array),_.p("design:paramtypes",[])],Q4.prototype,"hiddenBadgeGroups",null);_.S([_.R("data","useAvatar"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q4.prototype,"shouldShowChannelThumbnail",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q4.prototype,"useAvatar",null);
_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Q4.prototype,"isHovered",null);_.S([_.a({is:"ytd-video-renderer",disableElementRegistration:!0})],Q4);_.Y(Q4,"ytd-video-renderer",function(){return AwE()},{mode:_.J2("kevlar_poly_si_batch_j047")?1:2});var T1=function(){var V=_.E.apply(this,arguments)||this;V.editDialog=null;V.roundedContainer=!0;V.isLoading=!1;V.isRichGrid=!1;V.isRichGridRepost=!1;V.reduceSidePaddings=_.c("reduce_side_paddings_in_shelf");V.JSC$13201_spinnerEl=null;return V};
_.v(T1,_.E);_.P=T1.prototype;
_.P.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"}}}};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){var V=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var D=0,f=this.data.actions&&this.data.actions.length;D<f;D++)this.openEditDialog(_.g(this.data.actions[D],uXU));if((D=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(D=this.get("buttonRenderer.hint.hintRenderer.hintId",D))&&D.startsWith("share-post-hint")){var n=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(n){_.MP.getInstance();var t=h6(_.pA(_.Zl("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.dm.addLowPriorityJob(function(){_.wN(V.hostElement,t,n)})}}}};
_.P.updatePoll=function(V){V>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13201_spinnerEl||(this.JSC$13201_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Pt(this.hostElement).appendChild(this.JSC$13201_spinnerEl));this.JSC$13201_spinnerEl&&(this.JSC$13201_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(V){var D=this.get("updateCommentDialogEndpoint",V.detail.endpoint);D&&(this.openEditDialog(D),V.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(V,D){D&&this.updatePoll(D.selectedChoiceIndex)};
_.P.onYtServiceRequestSent=function(V,D){var f;D.endpoint&&(_.g(D.endpoint,oBP)||_.g(D.endpoint,P7u)&&((f=_.g(D.endpoint,P7u))==null||!f.clientActions))&&(this.isLoading=!0);if(D.actions)for(V=0;V<D.actions.length;V++)f=D.actions[V],_.g(f,cc)&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f==void 0&&(f=-1),this.updatePoll(f))};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.editDialogEl.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.P.computeIsPostHidden=function(V,D){return!!V||D};
_.P.computeSurfaceType=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeUsesCompactLockup=function(V){return V==="BACKSTAGE_SURFACE_TYPE_HOME"||V==="BACKSTAGE_SURFACE_TYPE_SEARCH"||V==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||V==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||V==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||V==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeShowWithoutToolbar=function(V){return!V.actionButtons&&!V.actionMenu};
_.P.computePostAttachment=function(V){if(V.backstageAttachment){if(_.g(V.backstageAttachment,qDY))return"poll";if(_.g(V.backstageAttachment,GzF))return"quiz";if(_.g(V.backstageAttachment,_.qT))return"video";if(_.g(V.backstageAttachment,eNo))return"uploaded-videos";if(_.g(V.backstageAttachment,VPE))return V.contentText?"image":"image-only";if(_.g(V.backstageAttachment,ybu))return"playlist"}return"none"};
_.P.computePostTabIndex=function(V){return V?0:-1};
_.P.computeButtonTooltipPosition=function(V){return this.computeUsesCompactLockup(V)?"top":"bottom"};
_.P.computeHasText=function(V){return!(V==null||!V.contentText)};
_.P.onTap=function(V){var D,f;if(((D=this.data)==null?0:D.navigationEndpoint)&&((f=this.data)==null?void 0:f.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var n;((n=this.data)==null?0:n.navigationEndpoint)&&!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.IG.Object.defineProperties(T1.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pA("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,qDY))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,eNo))}}});
T1.prototype.onYtServiceRequestCompleted=T1.prototype.onYtServiceRequestCompleted;T1.prototype.onYtServiceRequestSent=T1.prototype.onYtServiceRequestSent;T1.prototype.onYtCommentPollRevert=T1.prototype.onYtCommentPollRevert;T1.prototype.onYtCommentboxDismiss=T1.prototype.onYtCommentboxDismiss;T1.prototype.onYtNavigate=T1.prototype.onYtNavigate;T1.prototype.isLoadingChanged=T1.prototype.isLoadingChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;T1.prototype.contentTextChanged=T1.prototype.contentTextChanged;
_.S([_.u(_.N0),_.p("design:type",Object)],T1.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],T1.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],T1.prototype,"editDialog",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],T1.prototype,"roundedContainer",void 0);_.S([_.q(),_.p("design:type",Object)],T1.prototype,"isLoading",void 0);_.S([_.q({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.p("design:type",String)],T1.prototype,"surface",void 0);
_.S([_.q({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.p("design:type",Boolean)],T1.prototype,"usesCompactLockup",void 0);_.S([_.q({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],T1.prototype,"showWithoutToolbar",void 0);_.S([_.q({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.p("design:type",String)],T1.prototype,"attachment",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],T1.prototype,"isRichGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],T1.prototype,"isRichGridRepost",void 0);_.S([_.q({reflectToAttribute:!0,value:_.c("use_better_post_dismissals")}),_.p("design:type",Boolean)],T1.prototype,"useBetterPostDismissals",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],T1.prototype,"reduceSidePaddings",void 0);
_.S([_.q({computed:"computeHasText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],T1.prototype,"hasText",void 0);_.S([_.Zv("#expander"),_.p("design:type",Object)],T1.prototype,"expander",void 0);_.S([_.Zv("#action-buttons"),_.p("design:type",Object)],T1.prototype,"actionButtons",void 0);_.S([_.Zv("#edit-dialog"),_.p("design:type",HTMLElement)],T1.prototype,"editDialogEl",void 0);
_.S([_.KI("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T1.prototype,"contentTextChanged",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T1.prototype,"dataChanged",null);_.S([_.KI("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T1.prototype,"isLoadingChanged",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],T1.prototype,"onYtNavigate",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T1.prototype,"onYtCommentboxDismiss",null);_.S([_.bU("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],T1.prototype,"onYtCommentPollRevert",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],T1.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],T1.prototype,"onYtServiceRequestCompleted",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],T1.prototype,"voteCount",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],T1.prototype,"commentCount",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T1.prototype,"hasPoll",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T1.prototype,"hasUploadedVideo",null);_.S([_.a({is:"ytd-post-renderer",disableElementRegistration:!0})],T1);
_.Y(T1,"ytd-post-renderer",function(){if(oYl!==void 0)return oYl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return oYl=V},{mode:1});var ajl;var YaE;var bq=function(){return _.E.apply(this,arguments)||this};
_.v(bq,_.E);bq.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],bq.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],bq.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bq.prototype,"data",void 0);
_.S([_.q({value:"$.items.children"}),_.p("design:type",String)],bq.prototype,"itemsPath",void 0);_.S([_.q({value:1}),_.p("design:type",Number)],bq.prototype,"initialCount",void 0);_.S([_.q(),_.p("design:type",String)],bq.prototype,"surface",void 0);_.S([_.a({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],bq);
_.Y(bq,"ytd-post-multi-image-renderer",function(){if(YaE!==void 0)return YaE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return YaE=V},{mode:_.J2("kevlar_poly_si_batch_j079")?1:2});var $Sl={"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"}}},Kv=function(){var V=_.E.apply(this,arguments)||this;V.hasInlineCommentSection=!1;V.editDialog=null;V.isLoading=!1;V.shouldHideAuthor=!1;V.shouldShowVideoTime=!1;
V.isInEngagementPanel=!1;V.hideBorder=!1;V.usesFullLockup=!1;V.shouldShowMenuInCompactView=!1;V.JSC$13217_spinnerEl=null;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.v(Kv,_.E);_.P=Kv.prototype;_.P.configureRendererStamper=function(){return $Sl};
_.P.computeIsPollHeaderEnabled=function(V){return(V==null?void 0:V.pollMetadataIcon)!=null};
_.P.getPublishTimeStampString=function(V,D){D=new Date((Number(D)-60*((new Date).getTimezoneOffset()-(new Date(Number(D)*1E3)).getTimezoneOffset()))*1E3);D=(new Ss(10)).format(D);if(V&&V.runs&&V.runs.length)for(var f=0;f<V.runs.length;f++)V.runs[f].text&&(V.runs[f].text=V.runs[f].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",D));return V};
_.P.created=function(){this.JSC$13217_spinnerEl=null};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var V;if((V=this.data)==null?0:V.actions){V=_.r(this.data.actions);for(var D=V.next();!D.done;D=V.next())this.openEditDialog(_.g(D.value,uXU))}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){_.Pt(this.hostElement).querySelector("#action-buttons").reply()};
_.P.updatePoll=function(V,D){D&&this.set("data.pollMetadataVoteCountText",D);this.hasInlineCommentSection&&(V=V>=0,D=_.Pt(this.hostElement).querySelector("#action-buttons"),V?D.reply():D.hideReplyDialog())};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13217_spinnerEl||(this.JSC$13217_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Pt(this.hostElement).appendChild(this.JSC$13217_spinnerEl));this.JSC$13217_spinnerEl&&(this.JSC$13217_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(V){var D=this.get("updateCommentDialogEndpoint",V.detail.endpoint);D&&(this.openEditDialog(D),V.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(V,D){D&&this.updatePoll(D.selectedChoiceIndex,D.totalVotes)};
_.P.onYtServiceRequestSent=function(V,D){V.stopPropagation();V=_.g(D.endpoint,P7u);if(_.g(D.endpoint,oBP)||V&&!V.clientActions)this.isLoading=!0;if(D.actions)for(V=0;V<D.actions.length;V++){var f=D.actions[V],n=_.g(f,cc);n&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f===void 0&&(f=-1),this.updatePoll(f,n.totalVotes))}};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.editDialogElement.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.P.computeIsBodyHidden=function(V,D){return!!V||D};
_.IG.Object.defineProperties(Kv.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var V,D;if((V=this.data)==null?0:(D=V.pollMetadataIcon)==null?0:D.iconType)return _.Qa(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pA("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,qDY))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,GzF))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,eNo))}}});
Kv.prototype.onYtServiceRequestCompleted=Kv.prototype.onYtServiceRequestCompleted;Kv.prototype.onYtServiceRequestSent=Kv.prototype.onYtServiceRequestSent;Kv.prototype.onYtCommentPollRevert=Kv.prototype.onYtCommentPollRevert;Kv.prototype.onYtCommentboxDismiss=Kv.prototype.onYtCommentboxDismiss;Kv.prototype.onYtNavigate=Kv.prototype.onYtNavigate;Kv.prototype.isLoadingChanged=Kv.prototype.isLoadingChanged;Kv.prototype.dataChanged=Kv.prototype.dataChanged;Kv.prototype.contentTextChanged=Kv.prototype.contentTextChanged;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Kv.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Kv.prototype,"rendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Kv.prototype,"rendererstamperBehavior",void 0);_.S([_.Zv("#contentTextExpander"),_.p("design:type",Object)],Kv.prototype,"expander",void 0);
_.S([_.Zv("#edit-dialog"),_.p("design:type",Element)],Kv.prototype,"editDialogElement",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"hasInlineCommentSection",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"editDialog",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"isLoading",void 0);
_.S([_.q({computed:"computeIsPollHeaderEnabled(data)"}),_.p("design:type",Boolean)],Kv.prototype,"isPollHeaderEnabled",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"shouldHideAuthor",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"shouldShowVideoTime",void 0);_.S([_.q(),_.p("design:type",Object)],Kv.prototype,"isInEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Kv.prototype,"hideBorder",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Kv.prototype,"usesFullLockup",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Kv.prototype,"shouldShowMenuInCompactView",void 0);_.S([_.R("isInEngagementPanel"),_.p("design:type",Number),_.p("design:paramtypes",[])],Kv.prototype,"postTextMaxLines",null);_.S([_.R("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],Kv.prototype,"pollIcon",null);
_.S([_.KI("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kv.prototype,"contentTextChanged",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kv.prototype,"dataChanged",null);_.S([_.KI("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kv.prototype,"isLoadingChanged",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Kv.prototype,"onYtNavigate",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kv.prototype,"onYtCommentboxDismiss",null);_.S([_.bU("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Kv.prototype,"onYtCommentPollRevert",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],Kv.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Kv.prototype,"onYtServiceRequestCompleted",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Kv.prototype,"voteCount",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Kv.prototype,"commentCount",null);_.S([_.R("data.backstageAttachment"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kv.prototype,"hasPoll",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kv.prototype,"hasQuiz",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kv.prototype,"hasUploadedVideo",null);
_.S([_.a({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Kv);
_.Y(Kv,"ytd-backstage-post-renderer",function(){if(ajl!==void 0)return ajl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ajl=V},{mode:1});var iKE;var y4=function(){var V=_.E.apply(this,arguments)||this;V.editDialog=null;V.showExpandButton=!1;V.isRichGrid=!1;V.usesFullLockup=!1;return V};
_.v(y4,_.E);_.P=y4.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.P.computeShowExpandButton=function(V){return this.usesCompactLockup||V&&V.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.P.computeUsesCompactLockup=function(V){return!!V.condensedContent};
_.P.computeShowFullContentText=function(V){return!V};
_.P.onYtNavigate=function(V){V=this.get("updateCommentDialogEndpoint",V.detail.endpoint);this.openEditDialog(V)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.repostEditDialogEl.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.P.onTap=function(V){if(this.data){var D=null;this.usesCompactLockup&&!_.It(_.Os(V)||[],this.hostElement,["YT-IMG-SHADOW"])?D=this.get("navigationEndpoint",this.data):V.target===this.moreButtonEl&&(D=this.get("navigationEndpoint",V.target.data));D&&_.PA(this.hostElement,"yt-navigate",{endpoint:D})}};
y4.prototype.onYtCommentboxDismiss=y4.prototype.onYtCommentboxDismiss;y4.prototype.onYtNavigate=y4.prototype.onYtNavigate;y4.prototype.dataChanged=y4.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],y4.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],y4.prototype,"editDialog",void 0);_.S([_.q({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],y4.prototype,"usesCompactLockup",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],y4.prototype,"showExpandButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],y4.prototype,"isRichGrid",void 0);
_.S([_.q({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.p("design:type",Boolean)],y4.prototype,"showFullContentText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],y4.prototype,"usesFullLockup",void 0);_.S([_.Zv("#more"),_.p("design:type",Object)],y4.prototype,"moreButtonEl",void 0);_.S([_.Zv("#repost-content-text"),_.p("design:type",HTMLElement)],y4.prototype,"repostContentTextEl",void 0);
_.S([_.Zv("#repost-edit-dialog"),_.p("design:type",HTMLElement)],y4.prototype,"repostEditDialogEl",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],y4.prototype,"dataChanged",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],y4.prototype,"onYtNavigate",null);
_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],y4.prototype,"onYtCommentboxDismiss",null);_.S([_.a({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],y4);
_.Y(y4,"ytd-shared-post-renderer",function(){if(iKE!==void 0)return iKE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iKE=V},{mode:1});var Sal;var W2u;var ZS=function(){return _.E.apply(this,arguments)||this};
_.v(ZS,_.E);ZS.prototype.attached=function(){var V=this;this.networkStatusManager||(this.networkStatusManager=new _.ik,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){V.onlineHandler()}))};
ZS.prototype.detached=function(){var V=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){V.onlineHandler()}),delete this.networkStatusManager)};
ZS.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ZS.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZS.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],ZS);
_.Y(ZS,"ytd-reload-page-button-renderer",function(){if(W2u!==void 0)return W2u;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return W2u=V},{mode:1});var pal={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"},jZ=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(jZ,_.E);_.P=jZ.prototype;_.P.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P.computeHasBodyText=function(V){return!!V.bodyText};
_.P.computeButtons=function(V){var D=[];V.ctaButton&&D.push(V.ctaButton);V.secondaryButton&&D.push(V.secondaryButton);return D};
_.P.computeRendererStyle=function(V){return V.style?V.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():V.icon?"":"no-icon"};
_.P.getIconName=function(V,D){D=D===void 0?!1:D;if(V===void 0)return"";V=this.get("icon.iconType",V);var f;_.c("enable_hlp_client_icon_pick")?f=this.getThemedIcon(V,D):f=V;(D=pal[f])||(D="yt-icons");return[D,f].join(":")};
_.P.getThemedIcon=function(V,D){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(V)?D?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(V)?D?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":V};
_.P.isThumbnail=function(V){return!!V.thumbnail};
_.P.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jZ.prototype,"data",void 0);
_.S([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],jZ.prototype,"rendererStyle",void 0);_.S([_.q({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.p("design:type",String)],jZ.prototype,"iconName",void 0);_.S([_.q({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],jZ.prototype,"thumbnail",void 0);_.S([_.q({computed:"computeButtons(data)"}),_.p("design:type",Array)],jZ.prototype,"buttons",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jZ.prototype,"isDarkTheme",void 0);_.S([_.q({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],jZ.prototype,"hasBodyText",void 0);_.S([_.a({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],jZ);
_.Y(jZ,"ytd-background-promo-renderer",function(){if(Sal!==void 0)return Sal;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Sal=V},{mode:1});var L2l;var lq=function(){var V=_.E.apply(this,arguments)||this;V.collections=_.c("web_modern_collections_v2");return V};
_.v(lq,_.E);_.IG.Object.defineProperties(lq.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(D=V.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(n=f.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(J=t.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lq.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],lq.prototype,"collections",void 0);_.S([_.R("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],lq.prototype,"collectionStack",null);_.S([_.a({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],lq);
_.Y(lq,"ytd-compact-station-renderer",function(){if(L2l!==void 0)return L2l;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return L2l=V},{mode:1});var Ijr;var G1=function(){var V=_.E.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.v(G1,_.E);G1.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]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],G1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],G1.prototype,"isRichGrid",void 0);_.S([_.a({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],G1);
_.Y(G1,"ytd-grid-channel-renderer",function(){if(Ijr!==void 0)return Ijr;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Ijr=V},{mode:1});var OKo;var eZ=function(){return _.E.apply(this,arguments)||this};
_.v(eZ,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eZ.prototype,"data",void 0);_.S([_.a({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],eZ);
_.Y(eZ,"ytd-grid-movie-playlist-renderer",function(){if(OKo!==void 0)return OKo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OKo=V},{mode:1});var xSE;var cG=function(){var V=_.E.apply(this,arguments)||this;V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.modernButtons=_.c("web_modern_buttons");V.useModernCollectionsV2=_.c("web_modern_collections_v2");return V};
_.v(cG,_.E);cG.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
cG.prototype.configureRendererStamper=function(){return{"data.menu":w5}};
cG.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
cG.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.c("woffle_playlist_renderer_killswitch")){var V,D=K5R(this.entityInfo,this.transferState,this.downloadProgress,(V=this.data)==null?void 0:V.playlistId,this.isOnline);V=D.viewPlaylistText;var f=D.badges;D=D.thumbnailOverlays;this.isDownloads=!!V||!!f;this.set("data.viewPlaylistText",V);f&&f.length>0&&this.set("data.badges",f);D&&D.length>0&&this.set("data.thumbnailOverlays",
D)}};
_.IG.Object.defineProperties(cG.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 V;return!((V=this.data)==null?0:V.menu)}}});
cG.prototype.transferStateChanged=cG.prototype.transferStateChanged;cG.prototype.dataChanged=cG.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],cG.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],cG.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q({selector:_.dT3,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],cG.prototype,"downloadProgress",void 0);_.S([_.q({selector:_.q_,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],cG.prototype,"transferState",void 0);_.S([_.q({selector:B0Y,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],cG.prototype,"entityInfo",void 0);_.S([_.q({selector:_.RW}),_.p("design:type",Boolean)],cG.prototype,"isOnline",void 0);
_.S([_.q(),_.p("design:type",Object)],cG.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],cG.prototype,"downloadRenderData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],cG.prototype,"modernButtons",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],cG.prototype,"isDownloads",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cG.prototype,"useModernCollectionsV2",void 0);
_.S([_.R("transferState"),_.q({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],cG.prototype,"downloadState",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cG.prototype,"menuHidden",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cG.prototype,"dataChanged",null);
_.S([_.eY("transferState","downloadProgress","isOnline"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cG.prototype,"transferStateChanged",null);_.S([_.a({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],cG);
_.Y(cG,"ytd-grid-playlist-renderer",function(){if(xSE!==void 0)return xSE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return xSE=V},{mode:1});var MrL;var FN=function(){var V=_.E.apply(this,arguments)||this;V.collections=_.c("web_modern_collections_v2");return V};
_.v(FN,_.E);FN.prototype.configureRendererStamper=function(){return{"data.menu":w5,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.IG.Object.defineProperties(FN.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(D=V.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(n=f.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(J=t.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],FN.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],FN.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],FN.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],FN.prototype,"collections",void 0);_.S([_.R("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],FN.prototype,"collectionStack",null);_.S([_.a({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],FN);
_.Y(FN,"ytd-grid-radio-renderer",function(){if(MrL!==void 0)return MrL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return MrL=V},{mode:1});var hML;var gb=function(){var V=_.E.apply(this,arguments)||this;V.useModernCollectionsV2=_.c("web_modern_collections_v2");return V};
_.v(gb,_.E);gb.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
gb.prototype.computeNavigationEndpoint=function(V){return pEY(V==null?void 0:V.navigationEndpoint)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],gb.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gb.prototype,"data",void 0);_.S([_.q({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],gb.prototype,"computedNavigationEndpoint",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gb.prototype,"useModernCollectionsV2",void 0);_.S([_.a({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],gb);
_.Y(gb,"ytd-grid-show-renderer",function(){if(hML!==void 0)return hML;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return hML=V},{mode:1});var USF;_.vG=function(V){this.playerClient=V};
_.VgL=function(V,D,f){f=f===void 0?{}:f;return V.playerClient.setOption("ad",D,f)};
_.vG.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.vG.prototype.executeCommand=function(V,D){this.getOptions().includes("executeCommand")?_.VgL(this,"executeCommand",{command:V,layoutId:D}):_.hY("Calling executeCommand when adModule is not loaded")};var kD=function(){return _.E.apply(this,arguments)||this};
_.v(kD,_.E);kD.prototype.getLayoutId=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
kD.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var V=_.hI(),D=this.getLayoutId(),f=this.data.clickthroughEndpoint;V&&D&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(n){(new _.vG(n)).executeCommand(f,D)}):_.PA(this.hostElement,"yt-navigate",{endpoint:f})}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kD.prototype,"data",void 0);_.S([_.a({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],kD);
_.Y(kD,"ytd-shopping-companion-item-renderer",function(){if(USF!==void 0)return USF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return USF=V},{mode:1});var Dyr;var sQ=function(){var V=_.E.apply(this,arguments)||this;V.isExpandableContent=!1;return V};
_.v(sQ,_.E);_.IG.Object.defineProperties(sQ.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?void 0:V.price)||((D=this.data)==null?void 0:(f=D.dealsData)==null?void 0:f.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var V,D;if((V=this.data)!=null&&V.dealsData&&((D=this.data)==null||!D.priceReplacementText)){V=this.data.dealsData;var f,n,t;return((f=V.salesData)==null?void 0:f.originalPrice)||((n=V.priceDropData)==null?void 0:n.referencePrice)||((t=V.promotionData)==null?void 0:t.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var V,D;return(V=this.data)==null?void 0:(D=V.dealsData)==null?void 0:D.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],sQ.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sQ.prototype,"isExpandableContent",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"showCta",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"ctaText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"hasPriceTopPosition",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"hasPriceBottomPosition",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"useNewStyle",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"showPriceReplacementText",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"priceValue",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"showDeal",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"showAffiliateDisclaimer",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"useSaleStyle",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"useFromBrandCtaStyle",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"useFromVendorCtaStyle",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sQ.prototype,"useShoppingCollectionCtaStyle",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],sQ);
_.Y(sQ,"ytd-vertical-product-card-renderer",function(){if(Dyr!==void 0)return Dyr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Dyr=V},{mode:1});var far;var BG=function(){return _.E.apply(this,arguments)||this};
_.v(BG,_.E);BG.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],BG.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BG.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],BG);
_.Y(BG,"ytd-grid-movie-renderer",function(){if(far!==void 0)return far;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return far=V},{mode:1});var nOl;var db=function(){var V=_.E.apply(this,arguments)||this;V.rounded=!0;V.itemStyle="small-item";return V};
_.v(db,_.E);db.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var V,D,f,n,t=(D=_.g((V=this.data)==null?void 0:V.buttonCommand,_.jt))==null?void 0:(f=D.item)==null?void 0:(n=f.notificationTextRenderer)==null?void 0:n.successResponseText;t&&_.Sa9(this.hostElement,t)}};
_.IG.Object.defineProperties(db.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.isProductPlaceholder)!==void 0&&((D=this.data)==null?void 0:D.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.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}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],db.prototype,"rounded",void 0);_.S([_.q(),_.p("design:type",Object)],db.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],db.prototype,"itemStyle",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"hasPrice",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"hasPriceReplacementText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"hasAdditionalFeesText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"hasAffiliateDisclaimer",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"isProductPlaceholder",null);
_.S([_.q(),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"hideOpenInNewIcon",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"ariaLabel",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],db);
_.Y(db,"ytd-merch-shelf-item-renderer",function(){if(nOl!==void 0)return nOl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nOl=V},{mode:1});var tgF=_.MA(function(V){return _.K("button-card-view-model",{el:_.h2(_.Ew(function(){return V.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return V.data().title},
role:"button"},_.K(_.kl,{model:{}}),_.K("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.K("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.K(_.e,{cond:function(){return V.data().image},
then:function(D){return _.K(_.xt,{data:D,alt:function(){var f;return(f=V.data().title)!=null?f:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.K("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return V.data().title})))},"db");_.c("web_button_view_model_wcw_registration_killswitch")||_.fT(tgF,"button-card-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){V=_.Or(V,{className:void 0});var D=V.data;V=V.className;var f=_.yT(function(){return D().onTapCommand},void 0,"NprDr");
return _.K("ytd-shopping-item-card",{class:_.KT("ytdShoppingItemCardHost",V)},_.K(_.YC,{command:f,className:"ytdShoppingItemCardHostLink"},_.K("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.K(_.BW,{data:function(){return D().thumbnailViewModel}},{thumbnailViewModel:function(n){return _.K(_.La,{data:n.data,
aspectRatio:3})}})),_.K("div",null,_.K("p",{class:"ytdShoppingItemCardHostItemTitle"},_.K(_.Ow,{text:function(){return D().itemTitle}})),_.K("p",{class:"ytdShoppingItemCardHostPrice"},_.K(_.Ow,{text:function(){return D().priceOrStatus}})))))},"eb"),"ytd-shopping-item-card",{props:{data:_.WX,
className:_.WX}});var PoF={isAdsVideo:!0},oO6={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},JWL={showPlayerControls:!1,videoPreviewDurationMs:15E3},rWY={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.c("web_shorts_imp_fullwidth_killswitch")};var Vw=null,W2d={};var Ijc="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(" "),uq={},OKx=(uq.FEwhat_to_watch="home",uq.FEhashtag="hashtag",uq.FEtrending="trending",uq.FEhistory="history",uq.SPunlimited="premium",uq.FEmemberships_and_purchases="paid_memberships",uq.SPredeem_code="redeem",uq.SPverify_location="locate",uq.SPminor_moment="minor_moment",
uq.FEmini_app_container="mini_app",uq.FEnews_destination="news",uq.SPopen_in_app="open_in_app",uq.FEexplore="explore",uq.FEsubscriptions="subscriptions",uq.FEsfv_audio_pivot="sfv_audio_pivot",uq.FEplaylist_aggregation="playlist_aggregation",uq);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");_.Qv("init");var HMo=function(){},bMP=_.MA(function(V){var D=V.data;
var f=V.inlineMetadata;var n=V.aspectRatio;var t=V.scrimStyle;var J=V.className;var H=V.useDefaultStyle;var Q=new HMo,T=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",y=_.yT(function(){return(H==null?0:H())?T==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),Z=_.yT(function(){return _.Nq(f)||y()||!1},void 0,"x8cr8b"),l=function(){return(t==null?void 0:t())!==void 0?t==null?void 0:t():1},G=_.yT(function(){return D().belowThumbnailMetadata||
!Z()},void 0,"Q84Mmb");
V=_.MG({visibilityCallback:function(I){var x=D().onFirstVisible;I&&x&&_.Yt(x)},
showOption:{calledOnce:!0,state:"visible"}});var F=_.h2(),k={};k=_.KT(function(){return y(),"shortsLockupViewModelHostThumbnailContainer"},(k.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Nq(n)===1},k.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Nq(n)===2},k.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!y()},k.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.c("web_shorts_2_by_3_lockups_study")&&
!_.c("desktop_search_enable_two_by_three_shorts_aspect_ratio")},k));
var d,z=function(){if(Q){var I;(I=d)==null||D1(I);var x;Q.hostElement&&((x=Q.data)==null?0:x.inlinePlayerData)&&(d=a7({mediaRenderer:Q,lockupElement:Q.hostElement,thumbnailElement:F.value,videoPreviewOpts:rWY}))}};
_.BJ(function(){Q&&(Q.data=D(),z())},"RII9Hf");
var C=_.yT(function(){return D().thumbnail},void 0,"QlEII"),A=_.yT(function(){return D().badge},void 0,"ODd68c"),O=_.yT(function(){return D().onTap},void 0,"lgNBIc"),W={};
return _.K("ytm-shorts-lockup-view-model",{el:_.h2(function(I){Q&&(Q.hostElement=I)},z,V),
class:_.KT("shortsLockupViewModelHost",J)},_.K(_.th,null,_.K(_.YC,{command:O,className:_.KT("shortsLockupViewModelHostEndpoint",(W.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!G()},W),"reel-item-endpoint",""),
ariaHidden:function(){return!Z()},
tabIndex:function(){return Z()?0:-1}},_.K("div",{el:F,
class:k},_.K(_.e,{cond:C,then:function(){return _.K(_.xt,{data:function(){var I;return(I=C==null?void 0:C())!=null?I:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.K(_.e,{cond:Z,
then:function(){return _.K(wmP,{data:D,scrimStyle:l,useDefaultStyle:H})}}),_.K(_.BW,{data:A},{badgeViewModel:function(I){return _.K(_.Mh,{data:I.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.K(_.e,{cond:function(){return Z()&&D().menuOnTap},
then:function(){return _.K(QLr,{data:D,inlineMetadata:!0})}}),_.K(_.e,{cond:G,
then:function(){return _.K(TzP,{data:D,useDefaultStyle:H,inlineMetadata:Z})}})))},"fb"),wmP=_.MA(function(V){var D=V.data;
var f=V.scrimStyle;var n=V.useDefaultStyle;var t=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=n&&_.c("web_hide_primary_text_for_pivot_panel"),H=_.yT(function(){return(n==null?0:n())?t==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
V={};V=_.KT("shortsLockupViewModelHostInlineMetadata",(V.shortsLockupViewModelHostMetadataRounded=function(){return!H()},V.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(f==null?void 0:f())===3&&!_.c("enable_shorts_lockup_new_scrim")},V.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(f==null?void 0:f())===3&&_.c("enable_shorts_lockup_new_scrim")},V.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(f==null?void 0:f())===2||(f==null?void 0:
f())===4},V.shortsLockupViewModelHostShowOverPlayer=function(){return!0},V),"image-overlay-text");
var Q={};return _.K("div",{class:V},_.K("h3",{class:_.KT("shortsLockupViewModelHostMetadataTitle",(Q.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(f==null?void 0:f())===4},Q)),
"aria-label":function(){return D().accessibilityText}},_.K(_.e,{cond:function(){var T;
return!((T=D().overlayMetadata)==null||!T.primaryText)&&!J},
then:function(){return _.K(_.Ow,{text:function(){var T;return(T=D().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.K(_.e,{cond:function(){var T;
return(T=D().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.K(Kbu,{data:D,scrimStyle:f,className:void 0})}}))},"gb"),TzP=_.MA(function(V){var D=V.data;
var f=V.useDefaultStyle;var n=V.inlineMetadata;var t=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.yT(function(){return(f==null?0:f())?t==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KburAe");
V=_.KT(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var H=_.h2(),Q,T=_.jl(function(k){if(_.CX(_.R7(k),H.value,["AVATAR-VIEW-MODEL"]))return!1;var d;(d=Q)==null||d.click();return!1}),y=_.yT(function(){return D().belowThumbnailMetadata||D().overlayMetadata},void 0,"c3tkld"),Z=function(){return D().menuOnTap&&!n()},l=function(){var k;
return(k=y())==null?void 0:k.avatar},G={},F={};
return _.K("div",{class:_.KT(V,(G.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!l()},G.shortsLockupViewModelHostOutsideMetadataHasMenu=Z,G)),
"on:click":T,el:H},_.K(_.BW,{data:l},{avatarViewModel:function(k){return _.K("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.K(_.vd,{data:k.data}))}}),_.K("div",null,_.K("h3",{class:_.KT("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(F.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var k,d;
return!((k=y())==null?0:(d=k.primaryText)==null?0:d.content)},F)),
"aria-label":function(){return D().accessibilityText}},_.K(_.YC,{ref:function(k){return void(Q=k)},
command:function(){return D().onTap},
className:_.KT("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var k,d;return(k=y())==null?void 0:(d=k.primaryText)==null?void 0:d.content}},_.K(_.e,{cond:function(){var k;
return(k=y())==null?void 0:k.primaryText},
then:function(k){return _.K(_.Ow,{text:k,noEndpoints:!0,noStyleRuns:!0})}}))),_.K(_.e,{cond:function(){var k;
return(k=y())==null?void 0:k.secondaryText},
then:function(k){return _.K("div",{class:_.KT("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.K(_.Ow,{text:k,noStyleRuns:!0}))}})),_.K(_.e,{cond:Z,
then:function(){return _.K(QLr,{data:D,inlineMetadata:!1})}}))},"hb"),Kbu=_.MA(function(V){var D=V.data;
var f=V.scrimStyle;V=V.className;var n={};return _.K("div",{class:_.KT((n.shortsLockupViewModelHostMetadataSubhead=function(){return(f==null?void 0:f())!==4},n.shortsLockupViewModelHostMetadataSubheadNew=_.c("enable_shorts_lockup_new_scrim"),n.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(f==null?void 0:f())===4},n),V),
"aria-hidden":"true"},_.K(_.Ow,{text:function(){var t;return(t=D().overlayMetadata)==null?void 0:t.secondaryText},
noStyleRuns:!0}))},"ib"),QLr=_.MA(function(V){var D=V.data;
var f=V.inlineMetadata;V={};V=_.KT((V.shortsLockupViewModelHostInlineMetadataMenu=function(){return f()},V.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!f()},V.shortsLockupViewModelHostShowOverPlayer=function(){return!0},V),"image-overlay-text");
return _.K("div",{class:V},_.K(xC,{data:function(){return{style:f()?"overlay":"mono",accessibilityLabel:D().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(n){n.preventDefault();n.stopPropagation();var t=_.A2({elementsCommand:D().menuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(n)}}},
iconName:"MORE_VERT"}))},"jb");var yWl=_.MA(function(V){var D=V.data;var f=V.inlineMetadata;var n=V.aspectRatio;var t=V.scrimStyle;var J=V.className;var H=V.useDefaultStyle;V=_.yT(function(){var Q=D().entityId;return Q?Q.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.K("ytm-shorts-lockup-view-model-v2",{class:_.KT("shortsLockupViewModelHost",J)},_.K(_.V4,{contentId:V,aspectRatio:function(){return(n==null?void 0:n())===1?1:(n==null?void 0:n())===2?2:4}},function(){return _.K(bMP,{data:D,
inlineMetadata:f,aspectRatio:n,scrimStyle:t,className:J,useDefaultStyle:H})}))},"kb");_.fT(yWl,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Dn,inlineMetadata:_.Dn,aspectRatio:_.Dn,scrimStyle:_.Dn,className:_.Dn,useDefaultStyle:_.Dn}});var ZMV=16/9*210,N6=function(){var V=_.E.apply(this,arguments)||this;V.isExpandableContent=!1;V.hideShelfHeader=!1;V.engagementPanel=!1;V.buttonClasses=["arrow"];V.isSearch=!1;V.disableScrollEventListener=!1;V.containsLockup=!1;V.overrideArrowPositionForProductCard=!1;V.overrideArrowPositionForShoppingItemCard=!1;V.overrideArrowPositionForReelItems=!1;V.overrideArrowPositionForGridMovie=!1;V.overrideArrowPositionToCenter=!1;V.isSearchPostShelf=!1;V.overrideArrowPositionForMixedShelf=!1;V.overrideArrowPositionForMixedShelfShortsOnly=
!1;V.hasBigThumbsReelItems=!1;V.shouldUseMixedListHeight=!1;V.shouldUseShortsListHeight=!1;V.gridVideoWidth=0;V.isSearchVodShelf=!1;V.disableWheelScroll=!1;V.sizing="COMPACT";V.shortsLockupAspectRatio=0;return V};
_.v(N6,_.E);_.P=N6.prototype;
_.P.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]]"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.c("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.P.computeInitialCountNumber=function(V){if(!V)return 6;var D=V.items.some(function(J){return!!J.topicRecommendationsChipRenderer}),f=V.items.some(function(J){return!!J.displayAdRenderer}),n=this.computeShouldListItemsHaveEqualHeight(V),t=V.items.some(function(J){return!!J.gridPlaylistRenderer});
V=V.items.some(function(J){return!!J.shoppingItemCardViewModel});
return D?9:f?8:t||n?10:V?7:6};
_.P.computeContainsPost=function(V){return!!V&&!!V.items&&V.items.some(function(D){return!!D.postRenderer})};
_.P.computeContainsLockup=function(){if(_.c("web_horizontal_list_lockup_arrow_killswitch"))return!1;var V,D;return(V=this.data)==null?void 0:(D=V.items)==null?void 0:D.some(function(f){return!!f.lockupViewModel})};
_.P.maybeUpdateLockupAspectRatio=function(){var V,D;if(this.computeContainsLockup()&&((V=this.data)==null?0:(D=V.items)==null?0:D.length)){var f;V=xnY((f=this.data.items[0].lockupViewModel)==null?void 0:f.contentType,this.data.force16By9ThumbnailAspectRatio);f=Wr9(V);f=this.computeLockupWidth()/f;_.wI(this.hostElement,{"--yt-horizontal-list-content-height":f+"px"})}};
_.P.computeOverrideArrowPositionForProductCard=function(V){if(this.isExpandableContent)return!1;var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){return!!f.verticalProductCardRenderer}))};
_.P.computeOverrideArrowPositionForShoppingItemCard=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){return!!f.shoppingItemCardViewModel}))};
_.P.computeOverrideArrowPositionForReelItemRenderer=function(V){return this.containsReelItemRenderer(V)};
_.P.computeHasBigThumbsReelItems=function(V,D){return V&&this.containsReelItemRenderer(D)};
_.P.computeShouldListItemsHaveEqualHeight=function(V){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(V==null?void 0:V.itemSizeConstraint)};
_.P.computeShouldListItemsHaveShortsHeight=function(V){return this.computeShouldListItemsHaveEqualHeight(V)&&!this.containsGridVideoRenderer(V)};
_.P.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.P.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.P.containsReelItemRenderer=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){return!(!f.reelItemRenderer&&!f.shortsLockupViewModel)}))};
_.P.containsGridVideoRenderer=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){return!!f.gridVideoRenderer||!!f.lockupViewModel}))};
_.P.computeContainsGridMovieRenderer=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){return!!f.gridMovieRenderer}))};
_.P.computeOverrideArrowPositionToCenter=function(V){return this.computeIsSearchPostShelf(V)};
_.P.computeIsSearchPostShelf=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){var n,t;return((t=(n=f.postRenderer)==null?void 0:n.surface)!=null?t:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.P.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(V){var D;return!!(V==null?0:(D=V.items)==null?0:D.some(function(f){var n,t,J;return((J=(n=f.backgroundPromoRenderer)==null?void 0:(t=n.style)==null?void 0:t.value)!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.P.computeIsSearchVodShelf=function(V,D){return V&&this.containsGridVideoRenderer(D)};
_.P.computeDisableWheelScroll=function(V,D){return this.computeIsSearchVodShelf(V,D)};
_.P.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.P.computeShortsLockupAspectRatio=function(){return 1};
_.P.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.wI(this.hostElement,{"--ytd-reel-item-thumbnail-height":ZMV+"px"})};
N6.prototype.dataChanged=N6.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],N6.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],N6.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],N6.prototype,"isExpandableContent",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"hideShelfHeader",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Array)],N6.prototype,"buttonClasses",void 0);_.S([_.q(),_.p("design:type",Object)],N6.prototype,"isSearch",void 0);
_.S([_.q(),_.p("design:type",Object)],N6.prototype,"disableScrollEventListener",void 0);_.S([_.q({computed:"computeInitialCountNumber(data)"}),_.p("design:type",Number)],N6.prototype,"initialCount",void 0);_.S([_.q({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],N6.prototype,"supportComponentResize",void 0);_.S([_.q({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],N6.prototype,"containsPost",void 0);
_.S([_.q({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"containsLockup",void 0);_.S([_.q({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],N6.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.S([_.q({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForProductCard",void 0);_.S([_.q({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.S([_.q({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForReelItems",void 0);_.S([_.q({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForGridMovie",void 0);
_.S([_.q({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionToCenter",void 0);_.S([_.q({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"isSearchPostShelf",void 0);_.S([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.S([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.S([_.q({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"hasBigThumbsReelItems",void 0);
_.S([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"shouldUseMixedListHeight",void 0);_.S([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"shouldUseShortsListHeight",void 0);_.S([_.q({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"gridVideoWidth",void 0);
_.S([_.q({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"isSearchVodShelf",void 0);_.S([_.q({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],N6.prototype,"disableWheelScroll",void 0);_.S([_.q({computed:"computeSizing(isSearch)"}),_.p("design:type",Object)],N6.prototype,"sizing",void 0);
_.S([_.q({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.p("design:type",Object)],N6.prototype,"shortsLockupAspectRatio",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N6.prototype,"dataChanged",null);
_.Y(N6,"yt-horizontal-list-renderer",function(){if(cgF===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);cgF=V}V=cgF;return V},{mode:1});var jLV;var laY=[10,12,14,16,18,20,24,28,32,36],GDU=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],my=function(){var V=_.E.apply(this,arguments)||this;V.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";V.hideOverflow=!1;V.useRoboto=!1;V.fontClass="";V.overflown=!1;V.actionMap={"yt-window-resized":"resize"};return V};
_.v(my,_.E);_.P=my.prototype;
_.P.attached=function(){var V=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();_.pO(this,function(){V.resize()});
if(!_.JF){var D,f,n;(D=document)==null||(f=D.fonts)==null||(n=f.ready)==null||n.then(function(){V.resize()})}};
_.P.dataChanged=function(){this.resize()};
_.P.guideIsExpandedChanged=function(){this.resize()};
_.P.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 V=this.getMaxNumLines(),D=this.getMinFont(),f=this.getMaxFont(),n=this.useRoboto?laY:GDU;for(n=n.filter(function(J){return J<=f&&J>=D});n.length>1;){var t=Math.floor(n.length/2);
this.updateFontSize(n[t]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=V)n=n.slice(t,n.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>V)n=n.slice(0,t);else break}this.updateFontSize(n[n.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(V)}};
_.P.handleOverflow=function(V){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>V&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",V.toString()))};
_.P.updateFontSize=function(V){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+V;this.textNode.classList.add(this.fontClass)};
_.P.getMaxFont=function(){var V=this.useRoboto?laY:GDU;V=V[V.length-1];return this.maxFontSize&&this.maxFontSize<=V?this.maxFontSize:V};
_.P.getMinFont=function(){var V=(this.useRoboto?laY:GDU)[0];return this.minFontSize&&this.minFontSize>=V?this.minFontSize:V};
_.P.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.P.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.P.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.LA(this.text).split("\n").length-1:Infinity};
_.P.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("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
my.prototype.guideIsExpandedChanged=my.prototype.guideIsExpandedChanged;my.prototype.dataChanged=my.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],my.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],my.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],my.prototype,"text",void 0);
_.S([_.q(),_.p("design:type",String)],my.prototype,"fontFamily",void 0);_.S([_.q(),_.p("design:type",Number)],my.prototype,"maxWidth",void 0);_.S([_.q(),_.p("design:type",Number)],my.prototype,"maxHeight",void 0);_.S([_.q(),_.p("design:type",Number)],my.prototype,"maxFontSize",void 0);_.S([_.q(),_.p("design:type",Number)],my.prototype,"minFontSize",void 0);_.S([_.q(),_.p("design:type",Number)],my.prototype,"maxLines",void 0);_.S([_.q(),_.p("design:type",Object)],my.prototype,"hideOverflow",void 0);
_.S([_.q({selector:_.Z9X}),_.p("design:type",Boolean)],my.prototype,"guideIsExpanded",void 0);_.S([_.Zv("#container"),_.p("design:type",HTMLElement)],my.prototype,"containerNode",void 0);_.S([_.Zv("#text"),_.p("design:type",HTMLElement)],my.prototype,"textNode",void 0);_.S([_.eY("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],my.prototype,"dataChanged",null);
_.S([_.eY("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],my.prototype,"guideIsExpandedChanged",null);_.S([_.a({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],my);
_.Y(my,"yt-dynamic-sizing-formatted-string",function(){if(jLV!==void 0)return jLV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jLV=V},{mode:1});var eHF;_.cWV=function(V){_.VY.call(this,V)};
_.v(_.cWV,_.VY);var FbU=function(V){_.VY.call(this,V)};
_.v(FbU,_.cWV);var z1=function(){return _.E.apply(this,arguments)||this};
_.v(z1,_.E);z1.prototype.onTapSuspendedChannel=function(){var V;if((V=this.data)!=null&&V.serviceEndpoint){var D,f;(V=(f=_.g((D=this.data)==null?void 0:D.serviceEndpoint,_.a2))==null?void 0:f.url)?_.SL(V,void 0,void 0,window.top):(D=new FbU("Did not handle suspended account tap. No appealUrl."),_.NG(D))}else D=new FbU("Did not handle suspended account tap. No serviceEndpoint."),_.NG(D)};
z1.prototype.onTap=function(){var V=this,D=_.lS(),f,n=(f=_.jD(D,{veType:7116}))!=null?f:void 0;_.at(D,{visualElement:n});_.$7();this.saveRoleText();var t;if((t=this.data)==null?0:t.youtubeSuspended)this.onTapSuspendedChannel();else{var J=!1,H,Q;(D=(Q=_.g((H=this.data)==null?void 0:H.serviceEndpoint,_.T0E))==null?void 0:Q.supportedTokens)&&D.forEach(function(T){if(T.accountSigninToken)if(J=!0,V.onAccountItemTap)V.onAccountItemTap(T.accountSigninToken.signinUrl);else _.SL(T.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!J){if(H=this.get("serviceEndpoint",this.data))J=!0,this.ytComponentBehavior.resolveCommand(H);J||_.mw(new FbU("Did not handle account switch tap. No token."))}}};
z1.prototype.saveRoleText=function(){if(this.data){var V=this.data,D=V.channelDelegationRole;if(D){var f,n=(f=_.g(V==null?void 0:V.serviceEndpoint,_.T0E))==null?void 0:f.supportedTokens;if(!n){var t,J,H,Q;n=(t=_.g(V==null?void 0:V.serviceEndpoint,_.Fb))==null?void 0:(J=t.popup)==null?void 0:(H=J.confirmDialogRenderer)==null?void 0:(Q=H.confirmButton)==null?void 0:Q.buttonRenderer;var T;n=(T=_.g(n==null?void 0:n.command,_.Tm))==null?void 0:T.commands;if(!n)return;var y;n=(y=_.g(n[1],_.T0E))==null?
void 0:y.supportedTokens}if(n){T=void 0;y=_.r(n);for(n=y.next();!n.done;n=y.next())if(n=n.value,n.datasyncIdToken){T=n.datasyncIdToken.datasyncIdToken;break}if(T){var Z;a:{if(_.o$R()&&(y=_.GRY(T+"::pom"))){y=new gC(y);break a}y=void 0}(Z=y)==null||Z.set("role_text",D);if((Gnd?Gnd:window.location).href.indexOf("studio")!==-1&&(Z=JfL())){y=Z.src?(new URL(Z.src)).origin:"*";var l;(l=Z.contentWindow)==null||l.postMessage({action:"save_pom_role",datasyncId:T,roleText:D},y)}}}}}};
_.IG.Object.defineProperties(z1.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.accountPhoto)==null?void 0:D.thumbnails;return f&&f.length>0&&(f[0].height===36||f[0].height===48)?f[0].height:40}}});
z1.prototype.onTap=z1.prototype.onTap;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],z1.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],z1.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Function)],z1.prototype,"onAccountItemTap",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z1.prototype,"enableRingForActiveAccount",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],z1.prototype,"thumbnailSize",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z1.prototype,"onTap",null);_.S([_.a({is:"ytd-account-item-renderer",disableElementRegistration:!0})],z1);
_.Y(z1,"ytd-account-item-renderer",function(){if(eHF!==void 0)return eHF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return eHF=V},{mode:1});var gOl;var RD=function(){return _.E.apply(this,arguments)||this};
_.v(RD,_.E);RD.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.DY().resolve(_.fH).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],RD.prototype,"data",void 0);_.S([_.a({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],RD);
_.Y(RD,"ytd-identity-chip-renderer",function(){if(gOl!==void 0)return gOl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gOl=V},{mode:1});var vOp;var kDL;var sLU;var Bzr;var Cv=function(){var V=_.E.apply(this,arguments)||this;V.richItemMinWidth=_.tU("wn_grid_min_item_width",310);V.isShorts=!1;V.isWatchNext=!1;V.isExploreHub=!1;return V};
_.v(Cv,_.E);_.IG.Object.defineProperties(Cv.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var V=[],D=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.wI(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var f;if(((f=this.data)==null?0:f.rows)&&D)for(D*=this.data.rows,f=0;f<D;f++)V.push({});return V}}});
_.S([_.u(_.dh),_.p("design:type",Object)],Cv.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Cv.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.N_,value:3}),_.p("design:type",Number)],Cv.prototype,"itemsPerRow",void 0);_.S([_.q({selector:_.yTF,value:6}),_.p("design:type",Number)],Cv.prototype,"slimItemsPerRow",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Number)],Cv.prototype,"richItemMinWidth",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],Cv.prototype,"miniMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cv.prototype,"isShorts",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cv.prototype,"isWatchNext",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cv.prototype,"isExploreHub",void 0);
_.S([_.R("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.p("design:type",Array),_.p("design:paramtypes",[])],Cv.prototype,"cardItems",null);_.S([_.a({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Cv);
_.dyL=_.o5()(Cv,"ytd-ghost-grid-renderer",function(){if(Bzr===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);Bzr=V}V=Bzr;return V},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.fT(_.MA(function(V){var D=_.Or(V,{numberOfComments:3}).numberOfComments,f=_.Or(V,{isInitialLoad:!1}).isInitialLoad,n=_.Or(V,{engagementPanel:!1}).engagementPanel,t=function(){return Math.min(Number(D==null?void 0:D())||20,20)};
return _.K("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.K(_.e,{cond:function(){return!(n==null?0:n())&&(f==null?void 0:f())},
then:function(){return _.K("div",{class:"ytGhostCommentsComments"},_.K("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.K("div",{class:_.KT("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.K("div",{class:_.KT("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.K("div",{class:"ytGhostCommentsGhostCard"},_.K("div",{class:"ytGhostCommentsAvatar"},_.K("div",{class:"ytGhostCommentsCircle"})),_.K("div",{class:"ytGhostCommentsComments"},_.K("div",{class:"ytGhostCommentsMeta"},
_.K("div",{class:_.KT("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.K("div",{class:_.KT("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.K("div",{class:"ytGhostCommentsComments"},_.K(_.FB,{each:function(){return Array((t==null?void 0:t())||3)}},function(){return _.K("div",{class:"ytGhostCommentsGhostCard"},_.K("div",{class:"ytGhostCommentsAvatar"},_.K("div",{class:"ytGhostCommentsCircle"})),_.K("div",{class:"ytGhostCommentsHost"},_.K("div",{class:"ytGhostCommentsMeta"},
_.K("div",{class:_.KT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.K("div",{class:_.KT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.K("div",{class:_.KT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.K("div",{class:"ytGhostCommentsGhostLikeDislike"},_.K("div",{class:_.KT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.K("div",{class:_.KT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"lb"),"yt-ghost-comments",{props:{numberOfComments:_.WX,
isInitialLoad:_.WX,engagementPanel:_.WX}});_.zk("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var q6=function(){var V=_.E.apply(this,arguments)||this;V.isOverridable=!1;V.spinnerActive=!1;V.showButton=!1;V.isCommentsSection=!1;V.engagementPanel=!0;V.isShortsGrid=!1;V.isShortsPage=!1;V.isWatchPage=!1;V.ghostCardExperimentEnabled=_.c("show_ghost_comments_shorts_watch")||_.c("show_ghost_comments_desktop_watch");V.originalShowButton=!1;V.endOfList=!1;return V};
_.v(q6,_.E);_.P=q6.prototype;_.P.resetIntersectionObserver=function(){var V;(V=this.observer)==null||V.disconnect();this.observer=void 0};
_.P.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var V,D;((V=this.data)==null?void 0:V.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((D=this.data)==null?0:D.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.P.initializeIntersectionObserver=function(){var V=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(D){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f.value.isIntersecting&&(V.triggerContinuation(),V.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.P.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]]"}}}}}};
_.P.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var V;((V=this.data)==null?0:V.continuationEndpoint)&&(V=_.g(this.data.continuationEndpoint,_.Xh))&&this.ytdReduxBehavior.dispatch(_.nA({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:V}}))};
_.P.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.P.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.P.onServiceRequestCompleted=function(V,D){if(!_.c("kevlar_hide_spinner_on_empty_continuation_killswitch")){var f;(f=D.actions)!=null&&f.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.P.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.P.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.P.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.P.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var V=3;if(this.engagementPanel){var D,f,n;V=Math.floor(((((D=this.hostElement)==null?void 0:(f=D.parentElement)==null?void 0:(n=f.parentElement)==null?void 0:n.scrollHeight)||108)-108)/108);V=this.isInitialLoad?Math.max(V,3):3}D=[].concat(_.sz(this.hostElement.querySelectorAll("yt-ghost-comments")));D=_.r(D);for(f=D.next();!f.done;f=D.next())f=f.value,f.numberOfComments=V,f.isInitialLoad=this.isInitialLoad,f.engagementPanel=
this.engagementPanel}};
_.P.detached=function(){this.resetIntersectionObserver()};
_.IG.Object.defineProperties(q6.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.c("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.c("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
q6.prototype.numberOfGhostCommentsChanged=q6.prototype.numberOfGhostCommentsChanged;q6.prototype.continuationTriggerOffsetChanged=q6.prototype.continuationTriggerOffsetChanged;q6.prototype.showButtonChanged=q6.prototype.showButtonChanged;q6.prototype.onYtServiceRequestCompletedForButtonRenderer=q6.prototype.onYtServiceRequestCompletedForButtonRenderer;q6.prototype.onServiceRequestCompleted=q6.prototype.onServiceRequestCompleted;q6.prototype.onYtServiceRequestSentForButtonRenderer=q6.prototype.onYtServiceRequestSentForButtonRenderer;
q6.prototype.observeData=q6.prototype.observeData;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],q6.prototype,"ytVisibilityBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],q6.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"isOverridable",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"spinnerActive",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"showButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],q6.prototype,"isCommentsSection",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],q6.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"isShortsGrid",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.l8x}),_.p("design:type",Object)],q6.prototype,"isShortsPage",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.zq}),_.p("design:type",Object)],q6.prototype,"isWatchPage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],q6.prototype,"ghostCardExperimentEnabled",void 0);
_.S([_.q(),_.p("design:type",Number)],q6.prototype,"continuationTriggerOffset",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"endOfList",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],q6.prototype,"isInitialLoad",void 0);_.S([_.Zv("ytd-button-renderer"),_.p("design:type",_.Lt)],q6.prototype,"buttonRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],q6.prototype,"buttonOverrides",void 0);
_.S([_.q(),_.R("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"isShortsCommentsSection",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"observeData",null);
_.S([_.bU("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],q6.prototype,"onServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-completed-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.S([_.eY("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"showButtonChanged",null);
_.S([_.eY("continuationTriggerOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"continuationTriggerOffsetChanged",null);_.S([_.KI("isInitialLoad","engagementPanel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"numberOfGhostCommentsChanged",null);_.S([_.a({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],q6);
_.Y(q6,"ytd-continuation-item-renderer",function(){if(sLU!==void 0)return sLU;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return sLU=V},{mode:1});var urV;var XN=function(){var V=_.E.apply(this,arguments)||this;V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.downloadState="DOWNLOAD_STATE_UNKNOWN";V.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";V.offlineVideoPolicyExpirationTimestamp=0;V.downloadedVideoPlaybackPosition=0;return V};
_.v(XN,_.E);XN.prototype.dataChanged=function(){var V;this.videoData=_.g((V=this.data)==null?void 0:V.renderer,YDH);this.transferStateChanged()};
XN.prototype.downloadProgressChanged=function(){if(this.entityInfo){var V=Object.assign({},this.videoData),D=y6n(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),f=D.publishedTimeText,n=D.badges;V.shortViewCountText=D.shortViewCountText;V.publishedTimeText=f;V.badges=n;this.set("videoData",V)}};
XN.prototype.transferStateChanged=function(){if(this.entityInfo){var V=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",D=_.Gq(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!lR(this.entityInfo.policyEntity),f=Object.assign({},this.videoData),n=y6n(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=n.publishedTimeText,J=n.badges;f.shortViewCountText=
n.shortViewCountText;f.publishedTimeText=t;f.badges=J;f.isDisabled=D;f.isWatched=this.downloadedVideoPlaybackPosition>0;f.navigationEndpoint=D?void 0:SjR(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var H;V&&((H=this.videoData)==null?0:H.videoId)&&!_.c("dl_resume_click_killswitch")&&(f.isDisabled=!1,f.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});f.thumbnailOverlays=b_Y(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",f)}};
XN.prototype.transferStateChanged=XN.prototype.transferStateChanged;XN.prototype.downloadProgressChanged=XN.prototype.downloadProgressChanged;XN.prototype.dataChanged=XN.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],XN.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],XN.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],XN.prototype,"videoData",void 0);_.S([_.q({selector:XC,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"downloadProgress",void 0);_.S([_.q(),_.p("design:type",Number)],XN.prototype,"relativeDateReference",void 0);_.S([_.q({selector:_.CA,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"transferState",void 0);
_.S([_.q({selector:ATn,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"downloadState",void 0);_.S([_.q({selector:gBZ,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"offlinePolicyAction",void 0);_.S([_.q({selector:vBF,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.S([_.q({selector:El,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"downloadedVideoPlaybackPosition",void 0);_.S([_.q({selector:sI9,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],XN.prototype,"entityInfo",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],XN.prototype,"isDownloading",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XN.prototype,"dataChanged",null);
_.S([_.eY("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XN.prototype,"downloadProgressChanged",null);_.S([_.eY("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XN.prototype,"transferStateChanged",null);
_.S([_.a({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],XN);
_.Y(XN,"ytd-downloaded-video-grid-video-renderer",function(){if(urV!==void 0)return urV;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return urV=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var NzP;var EQ=function(){};
EQ.prototype.resolve=function(V,D){var f=this;return _.w(function(n){return _.b(n,f.resolveCommand(V,D),0)})};var myl,At;myl=JoZ(function(V){return V.targetId},{shouldPersist:!1});
At=myl.updateData;_.zHr=myl.useUpdatableData;var RHr,Cor;RHr=JoZ(function(V){return V.targetId});
Cor=RHr.updateData;_.qTY=RHr.useUpdatableData;var Xmo=hMU.bind(null,At),EOF=hMU.bind(null,Cor);(function(V,D,f){var n=_.g(f==null?void 0:f.updatedRenderer,_.ZNE);return n?V({targetId:D},function(){return n}):!1}).bind(null,At);var aD=function(){};
_.v(aD,EQ);aD.prototype.resolveCommand=function(V){var D;return _.w(function(f){D=_.g(V,_.RwU);if(!D)return f.return();Xmo(D.targetId,D);_.yz(f)})};var YD=function(){var V=_.lU.apply(this,arguments)||this;V.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return V};
_.v(YD,_.lU);_.P=YD.prototype;_.P.configureContinuationPathMap=function(){return{}};
_.P.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.P.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.P.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.P.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.P.handleAppendContinuationItemsAction=function(V){var D=_.g(V,_.WzU);if(this.data&&this.data.targetId&&D&&this.continuationPathMap&&D.targetId===this.data.targetId){var f=EtY(V),n=f&&this.continuationPathMap[f];if(n&&f)if(V=this.get(n,this.data)){a:{for(f=0;f<V.length;f++){var t=V[f],J=void 0,H=!!_.g((J=_.g(t,uPP))==null?void 0:J.content,_.XyE);if(_.g(t,_.fY)||H)break a}f=V.length}n="data."+n;D.continuationItems?f===V.length-1?(this.pop(n),this.push.apply(this,[n].concat(_.sz(D.continuationItems)))):
f===V.length?this.push.apply(this,[n].concat(_.sz(D.continuationItems))):this.splice.apply(this,[n,f,1].concat(_.sz(D.continuationItems))):this.splice(n,f,1);(_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation"))&&_.PA(this.hostElement,"yt-append-continuation-items-action-finished");_.PA(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.zP(new _.cI("append continuation items does not exist",f));else _.zP(new _.cI("append continuation path does not exist",
f))}};
_.P.handleReloadContinuationItemsCommand=function(V){var D=_.g(V,_.RwU);if(this.data&&D){if(_.c("web_explore_hub")||_.c("web_client_explore_hub")||_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))try{_.DY().resolve(aD).resolveCommand(V)}catch(J){}if(this.data.targetId&&this.continuationPathMap&&D.targetId===this.data.targetId&&(!_.c("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||D.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var f,n=
(f=D.slot)==null?void 0:f.replace("RELOAD_CONTINUATION_SLOT_","");f=(V=EtY(V)+"-"+(n==null?void 0:n.toLowerCase()))&&this.continuationPathMap[V];if(!f||!V||!n)_.zP(new _.cI("reload continuation path does not exist",V));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(D)){if(D.replaceWithFirstItem){var t;this.set("data."+f,((t=D.continuationItems)==null?0:t.length)?D.continuationItems[0]:{})}else this.set("data."+f,D.continuationItems?D.continuationItems:
[]);this.continuationIsReloading=!1;_.PA(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.P.handleShowReloadUiCommand=function(V){V=_.g(V,oNL);var D;((D=this.data)==null?0:D.targetId)&&(V==null?0:V.targetId)&&V.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
YD.prototype.observeData=YD.prototype.observeData;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],YD.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],YD.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YD.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],YD.prototype,"continuationIsReloading",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YD.prototype,"observeData",null);_.S([_.Gy()],YD);_.$D=[_.EY.YtComponentBehavior,_.D6.YtActionHandlerBehavior,YD.prototype];_.iq={};_.iq.YtNextContinuationBehavior=[_.xm.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",_.Ty(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Ty(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(V,D){V.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,D,{}):(V={locationRetrieved:function(f){this.makeNextContinuationRequest_(f,D,{})}.bind(this)},_.PA(this.hostElement,"yt-retrieve-location",V))},
makeNextContinuationRequest_:function(V,D,f){_.R4("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();V=D(V);var n;this.canUseContextualNetworkManager_()&&(n=this.getNetworkManager());n||(n=_.DY().resolve(_.RB));D=_.Yl.instance;if(_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&D){n=_.xy([V.startsWith("/")?V.substr(1):V]);var t,J;f=_.m5(D,{},n,f==null?void 0:(t=f.context)==null?void 0:(J=t.clickTracking)==null?void 0:J.clickTrackingParams).then(function(H){return{response:H}})}else f=
this.nextContinuation.usePost?n.postData(V,f):n.fetchData(V);
f.then(this.updateNextContinuationData_.bind(this,V));this.pendingContinuationRequest_=f;this.startListeningForNavigate_()},
updateNextContinuationData_:function(V,D){var f=this;_.R4("ncl");this.pendingContinuationRequest_=void 0;if(D){var n={};this.nextContinuation&&(n=this.nextContinuation);if(D.response&&D.response.continuationContents&&D.response.continuationContents[n.continuationType]){V=D.response.continuationContents[n.continuationType];var t=n.header||"data.header",J=V[n.responseHeaderKey||"header"];J&&this.set(t,J);t=n.contentsArray||"data.contents";J=this.getContents_(V,n.responseContentsKey||"contents")||[];
this.pathExists_(t)?(J.unshift(t),this.push.apply(this,J)):this.set(t,J);J&&(US9(_.lS(),D.response,this.hostElement,function(H){_.o4(f.hostElement,"yt-store-grafted-ve-action",[H])}),_.PA(this.hostElement,"yt-next-continuation-data-updated",{continuationData:D,
page:this,contentsArray:t}));this.set(n.continuationsArray||"data.continuations",V[n.responseContinuationsKey||"continuations"]||[])}else D.reload?_.zP(new _.cI("Reloading from continuation is unsupported")):D.responseContext&&D.responseContext.errors||(delete D.xsrf_token,delete D.timing,delete D.endpoint,delete D.csn,D.responseContext&&delete D.responseContext.serviceTrackingParams,t={request:_.LZ(V,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(D).sort()},D.response&&(t.responseContentKeys=
Object.keys(D.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(t.continuationType=this.nextContinuation.continuationType.substr(0,256)),D=new _.cI("Malformed continuation",t),V.indexOf("/comment_service_ajax")==0?_.zP(D):_.NG(D)),this.set(n.continuationsArray||"data.continuations",[])}else _.mw(new _.cI("Missing continuation response",V))},
getContents_:function(V,D){D=D.split(".");return _.sB.getValueByKeys(V,D)},
pathExists_:function(V){var D=this;V=V.toString().split(".");for(var f=0;f<V.length;f++)if(D=D[V[f]],D===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var AWF;var aa6;var SZ=function(){var V=_.E.apply(this,arguments)||this;V.triggered_=!1;return V};
_.v(SZ,_.E);_.P=SZ.prototype;_.P.attached=function(){this.maybeTriggerAutoload()};
_.P.detached=function(){this.hasBeenTriggered_=!1};
_.P.onPrescanVisible=function(){this.onShow()};
_.P.onShow=function(){this.showButton||this.trigger()};
_.P.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.PA(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.P.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.P.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.P.computeLabel_=function(V,D){return V===void 0?null:V.label||!D?V.label:this.showMoreText_};
_.P.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.P.getContinuationUrl=function(V){var D={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(D.itct=this.data.clickTrackingParams);return _.I9(V,D)};
_.P.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
SZ.prototype.showButtonChanged_=SZ.prototype.showButtonChanged_;SZ.prototype.observeData_=SZ.prototype.observeData_;_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],SZ.prototype,"ytVisibilityBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SZ.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],SZ.prototype,"showButton",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],SZ.prototype,"showIcon",void 0);_.S([_.q({computed:"computeLabel_(data, showButton)"}),_.p("design:type",Object)],SZ.prototype,"label",void 0);_.S([_.q({value:_.pA(_.Zl("SHOW_MORE",void 0,"Show More"))}),_.p("design:type",Object)],SZ.prototype,"showMoreText_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],SZ.prototype,"spinnerActive_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],SZ.prototype,"hasBeenTriggered_",void 0);
_.S([_.q({value:void 0}),_.p("design:type",String)],SZ.prototype,"observeVisibleOption",void 0);_.S([_.q({value:void 0}),_.p("design:type",String)],SZ.prototype,"observeHiddenOption",void 0);_.S([_.q({value:"observe_once"}),_.p("design:type",Object)],SZ.prototype,"observePrescanOption",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SZ.prototype,"observeData_",null);
_.S([_.KI("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SZ.prototype,"showButtonChanged_",null);_.S([_.zy({is:"yt-next-continuation",disableElementRegistration:!0})],SZ);
_.Y(SZ,"yt-next-continuation",function(){if(aa6===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;AWF===void 0&&(AWF=document.createElement("template"));var n=AWF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);aa6=V}V=aa6;return V},{mode:2});var YTE;var $yY;var WG=function(){return _.E.apply(this,arguments)||this};
_.v(WG,_.E);WG.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WG.prototype,"data",void 0);_.S([_.zy({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],WG);
_.Y(WG,"yt-music-pass-small-feature-info-renderer",function(){if($yY===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;YTE===void 0&&(YTE=document.createElement("template"));var n=YTE;f.call(D,n.content.cloneNode(!0),V.content.firstChild);$yY=V}V=$yY;return V},{mode:2});_.zk("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var pv=function(){var V=_.E.apply(this,arguments)||this;V.isCollapsible=!1;V.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return V};
_.v(pv,_.E);_.P=pv.prototype;_.P.computeIsCollapsible=function(V){return!!(((V==null?0:V.showMoreText)||(V==null?0:V.visibleRowCount))&&(V==null?0:V.isCollapsible))};
_.P.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"}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.P.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.P.onIronResize=function(){var V=this;_.Yu(this,"updateGridInitItems",function(){V.maybeUpdateInitialItemsDisplayed()})};
_.P.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var V=this.getVisibleWidth();V!==0&&(V=Math.floor(V/214)*(this.data.visibleRowCount||2),V!==this.initialCount&&(this.initialCount=V,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.P.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.P.computeExpandVisible=function(V,D,f,n){return V&&D&&f&&!!n&&!!n.showMoreText};
_.P.computeShowMoreButton=function(V){return{text:V,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.P.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.P.initCollapsed=function(){var V=this;this.ytLazyListBehavior.canShowMore=!1;var D;(this.collapsed=!((D=this.data)==null||!D.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.pO(this,function(){_.JR(V.hostElement,"yt-refit-popups-action")})};
_.P.fillRestIfNotCollapsible=function(){var V=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!V||this.ytLazyListBehavior.fillRemainingListItems()};
_.P.computeViewAllHidden=function(V,D){return V||!D.viewAllEndpoint};
pv.prototype.fillRestIfNotCollapsible=pv.prototype.fillRestIfNotCollapsible;pv.prototype.initCollapsed=pv.prototype.initCollapsed;pv.prototype.onIronResize=pv.prototype.onIronResize;pv.prototype.persistentGuideChanged=pv.prototype.persistentGuideChanged;_.S([_.u(_.sp),_.p("design:type",Object)],pv.prototype,"ironResizableBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],pv.prototype,"ytLazyListBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],pv.prototype,"ytNextContinuationBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],pv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.u(_.$D),_.p("design:type",Object)],pv.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pv.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],pv.prototype,"collapsed",void 0);_.S([_.q(),_.p("design:type",Number)],pv.prototype,"initialCount",void 0);_.S([_.q({computed:"computeShowMoreButton(data.showMoreText)"}),_.p("design:type",Object)],pv.prototype,"showMoreButton",void 0);
_.S([_.q({computed:"computeIsCollapsible(data)"}),_.p("design:type",Object)],pv.prototype,"isCollapsible",void 0);_.S([_.Zv("#items"),_.p("design:type",HTMLElement)],pv.prototype,"items",void 0);_.S([_.eY("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pv.prototype,"persistentGuideChanged",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pv.prototype,"onIronResize",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pv.prototype,"initCollapsed",null);_.S([_.eY("canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pv.prototype,"fillRestIfNotCollapsible",null);_.S([_.a({is:"ytd-grid-renderer",disableElementRegistration:!0})],pv);
_.Y(pv,"ytd-grid-renderer",function(){if(NzP!==void 0)return NzP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return NzP=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var Lv=function(){return _.E.apply(this,arguments)||this};
_.v(Lv,_.E);
Lv.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"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Lv.prototype,"data",void 0);_.S([_.a({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Lv);
_.Y(Lv,"ytd-carousel-ad-renderer",function(){if(kDL!==void 0)return kDL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kDL=V},{mode:1});var iM6;var ID=function(){return _.E.apply(this,arguments)||this};
_.v(ID,_.E);_.P=ID.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ID.JSC$13391_CLICK_LOCATION_ID_MAP))};
_.P.onSitelinkTap=function(V){V.stopPropagation();var D,f,n=V==null?void 0:(D=V.model)==null?void 0:(f=D.item)==null?void 0:f.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,V,!1)};
_.P.onTap=function(V){var D=this.data&&this.data.content&&this.data.content.navigationEndpoint;D&&this.ytSparklesClickLocationBehavior.handleClick(D,V,!1)};
_.P.sendImpression=function(){if(this.data&&this.data.content)for(var V=_.r(this.data.content.impressionEndpoints||[]),D=V.next();!D.done;D=V.next()){D=_.r(D.value.loggingUrls||[]);for(var f=D.next();!f.done;f=D.next())f=f.value,f.baseUrl&&$e(f.baseUrl,f.attributionSrcMode)}};
ID.prototype.onTap=ID.prototype.onTap;ID.prototype.dataChanged=ID.prototype.dataChanged;ID.JSC$13391_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"]]);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],ID.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ID.prototype,"data",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ID.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ID.prototype,"onTap",null);_.S([_.a({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],ID);
_.Y(ID,"ytd-promoted-sparkles-text-search-renderer",function(){if(iM6!==void 0)return iM6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return iM6=V},{mode:1});var STP;var OQ=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.v(OQ,_.E);_.P=OQ.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.c("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]]"}}}}}};
_.P.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.P.computeHasAdBadge=function(V){return!(V==null||!V.adBadge)};
_.P.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",OQ.JSC$13400_DEFAULT_AD_BADGE_RENDERER),_.JA(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,OQ.JSC$13400_CLICK_LOCATION_ID_MAP))};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var V;(((V=this.data)==null?void 0:V.impressionCommands)||[]).forEach(function(D){D=_.r(D.loggingUrls||[]);for(var f=D.next();!f.done;f=D.next())f=f.value,f.baseUrl&&$e(f.baseUrl,f.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.P.onTap=function(V){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint,n;(D=(n=this.data)==null?void 0:n.thumbnailNavigationEndpoint)&&_.Oo(_.Os(V),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(D,V,!1):f&&this.ytSparklesClickLocationBehavior.handleClick(f,V,!1)};
_.P.handleMuteAd=function(){this.collapsed=!0};
_.P.attached=function(){var V=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.IG.Object.defineProperties(OQ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var V;return!(((V=this.data)==null?void 0:V.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var V;return!(((V=this.data)==null?void 0:V.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.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}}});
OQ.prototype.dataChanged=OQ.prototype.dataChanged;
OQ.JSC$13400_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"]]);
OQ.JSC$13400_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],OQ.prototype,"ytdActiveViewBehavior",void 0);
_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],OQ.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],OQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OQ.prototype,"collapsed",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],OQ.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],OQ.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.p("design:type",Boolean)],OQ.prototype,"fixAlignmentSmallScreens",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs_square")}}),
_.p("design:type",Boolean)],OQ.prototype,"useBiggerThumbsSquare",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.mediaHoverOverlay"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"hideHoverOverlay",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"webSearchLayout",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"webSearchLayoutLandscape",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"webSearchLayoutSquare",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"sparklesCtaNoBackground",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.actionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"hideActionButton",null);_.S([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],OQ.prototype,"buttonOverride",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.p("design:type",Boolean)],OQ.prototype,"hasNewAdBadge",void 0);_.S([_.R("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OQ.prototype,"useRoundedBadge",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OQ.prototype,"dataChanged",null);_.S([_.a({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],OQ);
_.Y(OQ,"ytd-promoted-sparkles-web-renderer",function(){if(STP!==void 0)return STP;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return STP=V},{mode:1});var Wbl;var xD=function(){var V=_.E.apply(this,arguments)||this;V.isInlinePreviewTriggered=!1;V.enableMonoStyle=_.c("enable_default_mono_cta_migration_web_client");return V};
_.v(xD,_.E);_.P=xD.prototype;_.P.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]]"}}}}}};
_.P.computeShowCta=function(V){return!(V==null||!V.ctaRenderer)};
_.P.onCtaClick=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.ctaRenderer)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.P.onWatchButtonClick=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.watchButtonRenderer)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.P.onTap=function(){};
_.P.dataChanged=function(){if(this.data){var V;_.c("enable_inline_muted_playback_on_web_search")&&((V=this.data)==null?0:V.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",xD.JSC$13404_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",xD.JSC$13404_DEFAULT_CLICK_LOCATION_BEHAVIOR,xD.JSC$13404_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href"))}};
_.P.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var V=_.r(this.data.impressionUrls),D=V.next();!D.done;D=V.next())D=D.value,cPL(D,g73(D));this.data.impressionsFired=!0}};
_.P.maybeComputeHref=function(){return null};
_.P.computeIsShortDR=function(V){return!(V==null||!V.watchButtonRenderer)&&!(V==null||!V.ctaRenderer)&&!!this.enableShortDR};
_.P.computeIsNewUiOrShortDr=function(V){return!!this.enableUiUpdate||this.computeIsShortDR(V)};
_.P.computeIsNewUiAndNotShortDr=function(V){return!!this.enableUiUpdate&&!this.computeIsShortDR(V)};
_.P.computeHideAvatar=function(V){return!((V==null?0:V.channelThumbnail)&&this.computeIsNewUiOrShortDr(V))};
_.P.onClick=function(V){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;if(this.enableShortDR&&f&&(_.g(f,_.pl)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(f,V,!!_.g(f,_.pl)),V.stopPropagation();else if(f&&_.g(f,_.pl))this.ytSparklesClickLocationBehavior.handleClick(f,V,!0),V.stopPropagation();else if(f){var n,t;((n=this.data)==null?0:n.navigationEndpoint)&&((t=this.data)==null?0:t.adPlaybackContextParams)&&QH9(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(f)}};
_.P.computeButtonOverride=function(V){if(this.computeIsNewUiOrShortDr(V))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.P.onThumbnailContainerClick=function(V){this.onClick(V)};
_.P.computeThumbnailWidth=function(V,D){return V?D==="MASSIVE"?600:D==="BIG"?500:D==="MEDIUM"?450:420:360};
_.P.attached=function(){var V=this,D;_.c("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){var V;_.c("enable_inline_muted_playback_on_web_search")&&((V=this.data)==null?0:V.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13405_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:PoF})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13405_inlinePreviewHoverListener)==null||D1(V)};
xD.prototype.dataChanged=xD.prototype.dataChanged;xD.prototype.onTap=xD.prototype.onTap;xD.JSC$13404_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};xD.JSC$13404_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
xD.JSC$13404_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"}];_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],xD.prototype,"ytdActiveViewBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],xD.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],xD.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.Zv("#main-container"),_.p("design:type",HTMLElement)],xD.prototype,"mainContainer",void 0);_.S([_.q(),_.p("design:type",Object)],xD.prototype,"isInlinePreviewTriggered",void 0);_.S([_.q(),_.p("design:type",Object)],xD.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],xD.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_video_display_compact_button_group_for_desktop_search")}}),
_.p("design:type",Boolean)],xD.prototype,"enableShortDR",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_vac_ui_update_for_desktop_search")}}),
_.p("design:type",Boolean)],xD.prototype,"enableUiUpdate",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],xD.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.p("design:type",Boolean)],xD.prototype,"showCta",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.p("design:type",Boolean)],xD.prototype,"isShortDr",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.p("design:type",Boolean)],xD.prototype,"isShortDrOrNewUi",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.p("design:type",Boolean)],xD.prototype,"isNewUiAndNotShortDr",void 0);_.S([_.q({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],xD.prototype,"buttonOverride",void 0);_.S([_.q({computed:"computeSecondaryButtonOverride(data)"}),_.p("design:type",Object)],xD.prototype,"secondaryButtonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xD.prototype,"enableMonoStyle",void 0);
_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],xD.prototype,"thumbnail",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xD.prototype,"onTap",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xD.prototype,"dataChanged",null);_.S([_.a({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],xD);
_.Y(xD,"ytd-promoted-video-renderer",function(){if(Wbl!==void 0)return Wbl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Wbl=V},{mode:1});var pmF;var M6=function(){var V=_.E.apply(this,arguments)||this;V.useRoundedBadge=!0;V.sitelinkIds=[];return V};
_.v(M6,_.E);_.P=M6.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.c("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]]"}}}}}};
_.P.dataChanged=function(){var V;(V=this.data)!=null&&V.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,M6.JSC$13410_CLICK_LOCATION_ID_MAP)};
_.P.onTap=function(V){var D,f=(D=this.data)==null?void 0:D.navigationCommand;f&&!_.Oo(_.Os(V),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(f,V,!1)};
_.P.onSitelinkTap=function(V){var D,f,n=V==null?void 0:(D=V.model)==null?void 0:(f=D.item)==null?void 0:f.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,V,!1)};
_.P.configureSitelinkClickTargets=function(){var V=this,D,f,n=(D=this.data)==null?void 0:(f=D.clickLocationTargets)==null?void 0:f.find(function(t){return t.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
n&&_.Pt(this.hostElement).querySelectorAll(".sitelink").forEach(function(t){_.JA(t,"yt-simple-endpoint",!0);V.sitelinkIds.push(t.id);var J,H;(J=V.ytSparklesClickLocationBehavior)==null||(H=J.clickTargetMap)==null||H.set(t.id,n)})};
_.P.sendImpression=function(){var V,D,f=((V=this.data)==null?void 0:(D=V.impressionCommand)==null?void 0:D.loggingUrls)||[];V=_.r(f);for(D=V.next();!D.done;D=V.next())D=D.value,D.baseUrl&&$e(D.baseUrl,D.attributionSrcMode)};
_.P.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.IG.Object.defineProperties(M6.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
M6.prototype.onTap=M6.prototype.onTap;M6.prototype.dataChanged=M6.prototype.dataChanged;M6.JSC$13410_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"]]);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],M6.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],M6.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M6.prototype,"showFavicon",null);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],M6.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],M6.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.p("design:type",Boolean)],M6.prototype,"enableThumbnailScalingFix",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M6.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],M6.prototype,"onTap",null);_.S([_.a({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],M6);
_.Y(M6,"ytd-text-image-no-button-layout-renderer",function(){if(pmF!==void 0)return pmF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return pmF=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var Lbu;var ht=function(){var V=_.E.apply(this,arguments)||this;V.isInlinePlaybackState=!1;V.uiUpdate=_.c("web_modern_buttons");V.hideCta=_.c("hide_cta_for_home_web_video_ads");V.noBottomMargin=!1;V.animateInTimeStamp=_.tU("hide_cta_for_home_web_video_ads_animate_in_time");V.animateInCta=!1;V.isHovered=!1;V.enableMonoStyle=_.c("enable_default_mono_cta_migration_web_client");V.player=null;V.JSC$13417_playerEvents=new Map;V.JSC$13417_preventProgressSaveTimer=null;V.delayedCtaJobId=null;return V};
_.v(ht,_.E);_.P=ht.prototype;_.P.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]]"}}}}}};
_.P.attached=function(){this.JSC$13417_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13417_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.c("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.P.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13417_playerEvents)};
_.P.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",ht.JSC$13416_DEFAULT_CLICK_LOCATION_BEHAVIOR,ht.JSC$13416_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.P.hoverChanged=function(){var V=this;this.delayedCtaJobId&&(_.dm.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.c("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.lf(_.dm,function(){V.buttonContainer.classList.add("show-delayed-buttons")},_.tU("delayed_cta_on_web_delay_milliseconds")))};
_.P.setPlayer=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return(D=_.JR(V.hostElement,"yt-get-inline-preview-player-action"))&&D[0]?_.b(f,D[0].getPlayerPromise(),3):f.jumpTo(0);V.player=f.yieldResult;V.ytPlayerListenerBehavior.listenToPlayerEvents(V.player,V.JSC$13417_playerEvents);_.yz(f)})};
_.P.onPlaybackStart=function(){var V=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13417_preventProgressSaveTimer=_.JI(_.dm,function(){V.JSC$13417_preventProgressSaveTimer=null},1E4))};
_.P.onVideoProgress=function(V){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&V>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.P.resetPreventProgressSaveTimer=function(){_.dm.cancelJob(this.JSC$13417_preventProgressSaveTimer);this.JSC$13417_preventProgressSaveTimer=null};
_.P.getSimpleString=function(V){return _.LA(V)};
_.P.onClick=function(V){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint,n;D=(n=this.data)==null?void 0:n.channelEndpoint;var t,J;(n=(J=_.g((t=this.data)==null?void 0:t.adCtaButton,_.RI))==null?void 0:J.command)&&_.Oo(_.Os(V),this.hostElement,["call-to-action"])?_.c("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(n,V,!1):D&&_.Oo(_.Os(V),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(D,V,!1):!_.Oo(_.Os(V),this.hostElement,["secondary-button"])&&f&&(_.c("enable_short_dr_for_desktop_launchable")?(t=!!_.g(f,_.pl),this.isInlinePlaybackState&&t&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,V,t)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,V,!0)))}};
_.P.updateWatchEndpointStartTime=function(){var V,D;this.player&&((V=this.data)==null?0:V.inlinePlaybackEndpoint)&&((D=this.data)==null?0:D.navigationEndpoint)&&!this.JSC$13417_preventProgressSaveTimer&&(V=Math.floor(this.player.getCurrentTime()),_.g(this.data.navigationEndpoint,_.pl).startTimeSeconds=V,_.g(this.data.inlinePlaybackEndpoint,_.pl).startTimeSeconds=V)};
_.P.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.IG.Object.defineProperties(ht.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.watchButton)&&!((D=this.data)==null||!D.adCtaButton)}}});
ht.prototype.hoverChanged=ht.prototype.hoverChanged;ht.prototype.dataChanged=ht.prototype.dataChanged;
ht.JSC$13416_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"]]);
ht.JSC$13416_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"}];
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],ht.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],ht.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],ht.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ht.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"isInlinePlaybackState",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],ht.prototype,"miniMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"uiUpdate",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"hideCta",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"noBottomMargin",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"animateInCta",void 0);_.S([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],ht.prototype,"buttonOverride",void 0);
_.S([_.q({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.p("design:type",Object)],ht.prototype,"secondaryButtonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"isHovered",void 0);_.S([_.Zv("#button-container"),_.p("design:type",HTMLElement)],ht.prototype,"buttonContainer",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],ht.prototype,"typographyBump",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ht.prototype,"typographyBumpV2",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ht.prototype,"enableMonoStyle",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ht.prototype,"dataChanged",null);
_.S([_.KI("isHovered"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ht.prototype,"hoverChanged",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ht.prototype,"isButtonGroup",null);_.S([_.a({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],ht);
_.Y(ht,"ytd-ad-inline-playback-meta-block",function(){if(Lbu!==void 0)return Lbu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Lbu=V},{mode:_.J2("kevlar_poly_si_batch_j065")?1:2});var Iap;var UQ=function(){var V=_.E.apply(this,arguments)||this;V.noBottomMargin=!1;V.isInlinePreviewTriggered=!1;V.JSC$13422_activeViewMeasurementDataResolver=_.Sl();return V};
_.v(UQ,_.E);_.P=UQ.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var V=this;this.updateInlinePreviewHoverListeners();this.JSC$13422_activeViewMeasurementDataResolver.promise.then(function(D){V.ytdActiveViewBehavior.enableActiveViewMeasurement(D,15)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13422_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.JSC$13422_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PoF})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13422_inlinePreviewHoverListener)==null||D1(V)};
_.P.onDataChanged=function(){var V;((V=this.data)==null?0:V.activeView)&&this.JSC$13422_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",UQ.JSC$13421_DEFAULT_CLICK_LOCATION_BEHAVIOR,UQ.JSC$13421_CLICK_LOCATION_ID_MAP);this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href"));var D;if((D=this.data)==
null?0:D.forceImpAutoplay){var f;(f=this.JSC$13422_inlinePreviewHoverListener)==null||seZ(f)}};
_.P.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.P.onThumbnailContainerClick=function(V){if(this.data&&this.data.navigationEndpoint){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,V,!!_.g(f,_.pl));V.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var V=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var D,f,n=(f=_.g((D=this.data)==null?void 0:D.onImpression,_.Tm))==null?void 0:f.commands;n&&(n.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;V.ytComponentBehavior.resolveCommand(t)}),this.data.impressionsFired=!0)}};
_.IG.Object.defineProperties(UQ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13422_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
UQ.prototype.onTypographyBumpChanged=UQ.prototype.onTypographyBumpChanged;UQ.prototype.onDataChanged=UQ.prototype.onDataChanged;UQ.JSC$13421_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);UQ.JSC$13421_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"}];
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],UQ.prototype,"ytdActiveViewBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],UQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.E_),_.p("design:type",Object)],UQ.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],UQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UQ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],UQ.prototype,"noBottomMargin",void 0);
_.S([_.q(),_.p("design:type",Object)],UQ.prototype,"isInlinePreviewTriggered",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],UQ.prototype,"miniMode",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],UQ.prototype,"typographyBump",void 0);_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],UQ.prototype,"thumbnail",void 0);_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],UQ.prototype,"JSC$13422_dismissibleMedia",void 0);
_.S([_.Zv("ytd-ad-inline-playback-meta-block"),_.p("design:type",HTMLElement)],UQ.prototype,"adInlinePlaybackMetaBlock",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UQ.prototype,"onDataChanged",null);_.S([_.eY("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UQ.prototype,"onTypographyBumpChanged",null);
_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UQ.prototype,"isHovered",null);_.S([_.a({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],UQ);
_.Y(UQ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Iap!==void 0)return Iap;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Iap=V},{mode:1});var OMV;var VB=function(){var V=_.E.apply(this,arguments)||this;V.isInlinePreviewTriggered=!1;V.JSC$13425_activeViewMeasurementDataResolver=_.Sl();return V};
_.v(VB,_.E);_.P=VB.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var V=this;this.updateInlinePreviewHoverListeners();this.JSC$13425_activeViewMeasurementDataResolver.promise.then(function(D){V.ytdActiveViewBehavior.enableActiveViewMeasurement(D,15)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13425_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.JSC$13425_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PoF})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13425_inlinePreviewHoverListener)==null||D1(V)};
_.P.onDataChanged=function(){var V;((V=this.data)==null?0:V.activeView)&&this.JSC$13425_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",VB.JSC$13424_DEFAULT_CLICK_LOCATION_BEHAVIOR,VB.JSC$13424_CLICK_LOCATION_ID_MAP);this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href"))};
_.P.onThumbnailContainerClick=function(V){if(this.data&&this.data.navigationEndpoint){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,V,!0);V.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var V=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var D,f,n=(f=_.g((D=this.data)==null?void 0:D.onImpression,_.Tm))==null?void 0:f.commands;n&&(n.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.DY().resolve(_.fH).resolveCommand(t,{form:{element:V.hostElement}})}),this.data.impressionsFired=!0)}};
_.IG.Object.defineProperties(VB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13425_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
VB.prototype.onDataChanged=VB.prototype.onDataChanged;VB.JSC$13424_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);VB.JSC$13424_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"}];_.S([_.u(B$),_.p("design:type",Object)],VB.prototype,"ytdActiveViewBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],VB.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],VB.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);
_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],VB.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VB.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],VB.prototype,"isInlinePreviewTriggered",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],VB.prototype,"miniMode",void 0);_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],VB.prototype,"thumbnail",void 0);
_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],VB.prototype,"JSC$13425_dismissibleMedia",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VB.prototype,"onDataChanged",null);_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VB.prototype,"isHovered",null);_.S([_.a({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],VB);
_.Y(VB,"ytd-video-display-full-buttoned-renderer",function(){if(OMV!==void 0)return OMV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return OMV=V},{mode:1});var JE=function(V,D,f,n){n=n===void 0?!1:n;_.VY.call(this,V);this.adsClientErrorMessage=f;this.aggressivelySample=n;this.args=[];D&&this.args.push(D)};
_.v(JE,_.VY);var PC=function(V,D,f,n){n=n===void 0?!1:n;_.VY.call(this,V);this.adsClientErrorMessage=f;this.aggressivelySample=n;this.args=[];D&&this.args.push(D)};
_.v(PC,_.VY);var xyl=function(V){_.cq.call(this);var D=this;this.initializationFunction=V;this.instance=null;this.addOnDisposeCallback(function(){_.Mr(D.instance);D.instance=null})};
_.v(xyl,_.cq);xyl.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.hY("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var JWU=function(){var V=new Map;[].forEach(function(D){V.set(D.JSC$27144_getType(),D)})};new Promise(function(){});var fac=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"]]),VgU=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"}]]),Mgl=function(V){this.experimentApiProvider=V;V=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=V<.1};var DO=function(V,D,f,n){_.cq.call(this);this.adsControlFlowEventListeners=D;this.adEventLogger=f;this.experimentApiProvider=n;this.adsControlFlowManagerHelper=V(this,this,this,this,this);_.wX(this,this.adsControlFlowManagerHelper);V=_.r(D);for(D=V.next();!D.done;D=V.next())_.wX(this,D.value)};
_.v(DO,_.cq);var hHY=function(V,D,f,n){fz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",D,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n);V=_.r(V.adsControlFlowEventListeners);for(n=V.next();!n.done;n=V.next())hHY(n.value,D,f)};
_.P=DO.prototype;_.P.onOpportunityProcessedExternallyManaged=function(V,D,f,n){fz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",V,f,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n)};
_.P.onSlotReceivedExternallyManaged=function(V,D){nz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V,D)};
_.P.onSlotEntered=function(V){if(t7(this.adsControlFlowManagerHelper,V)!=null){nz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",V);this.adsControlFlowManagerHelper.onSlotEntered(V);for(var D=_.r(this.adsControlFlowEventListeners),f=D.next();!f.done;f=D.next())f.value.onSlotEntered(V);if(t7(this.adsControlFlowManagerHelper,V)!=null&&t7(this.adsControlFlowManagerHelper,V).isOccupyingSlotType()&&P_(this.adsControlFlowManagerHelper,V)&&!UyU(this.adsControlFlowManagerHelper,V)){var n;op(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",V,(n=P_(this.adsControlFlowManagerHelper,V))!=null?n:void 0);V=t7(this.adsControlFlowManagerHelper,V);V.slotLifecycleStage!=="entered"&&J7(V.slot,V.slotLifecycleStage,"enterLayoutForSlot");V.slotLifecycleStage="rendering";V.registeredLayoutRenderingAdapter.startRendering(V.layout)}}};
_.P.onSlotExited=function(V){if(t7(this.adsControlFlowManagerHelper,V)!=null){nz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",V);this.adsControlFlowManagerHelper.onSlotExited(V);for(var D=_.r(this.adsControlFlowEventListeners),f=D.next();!f.done;f=D.next())f.value.onSlotExited(V);t7(this.adsControlFlowManagerHelper,V)!=null&&t7(this.adsControlFlowManagerHelper,V).markedForUnscheduleAfterOutboundAdapterRequests&&VXp(this,V)}};
_.P.onLayoutReceivedExternallyManaged=function(V,D,f){V.managerLayer!=="core"&&op(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",V,D,f)};
var DbV=function(V,D,f){if(t7(V.adsControlFlowManagerHelper,D)!=null){op(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",D,f);V=_.r(V.adsControlFlowEventListeners);for(var n=V.next();!n.done;n=V.next())DbV(n.value,D,f)}};
DO.prototype.onLayoutExited=function(V,D,f){if(t7(this.adsControlFlowManagerHelper,V)!=null){op(this.adEventLogger,Dyc(f),V,D);this.adsControlFlowManagerHelper.onLayoutExited(V,D);for(var n=_.r(this.adsControlFlowEventListeners),t=n.next();!t.done;t=n.next())t.value.onLayoutExited(V,D,f);(f=P_(this.adsControlFlowManagerHelper,V))&&D.layoutId===f.layoutId&&nWp(this,V)}};
DO.prototype.disposeInternal=function(){var V=tXE(this.adsControlFlowManagerHelper);V=_.r(V);for(var D=V.next();!D.done;D=V.next())VXp(this,D.value);_.cq.prototype.disposeInternal.call(this)};
var VXp=function(V,D){if(t7(V.adsControlFlowManagerHelper,D)!=null)if(t7(V.adsControlFlowManagerHelper,D).JSC$27175_isSlotExitRequested()||t7(V.adsControlFlowManagerHelper,D).JSC$27175_isLayoutExitRequested())t7(V.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(t7(V.adsControlFlowManagerHelper,D).isOccupyingSlotType())t7(V.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests=!0,nWp(V,D);else if(t7(V.adsControlFlowManagerHelper,D).JSC$27175_isSlotFillRequested())t7(V.adsControlFlowManagerHelper,
D).markedForUnscheduleAfterOutboundAdapterRequests=!0,t7(V.adsControlFlowManagerHelper,D)!=null&&(nz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",D),D=t7(V.adsControlFlowManagerHelper,D),D.fulfillmentLifecycleStage="fill_cancel_requested",D.registeredFulfillmentAdapter.cancelSlotFilling());else{var f=P_(V.adsControlFlowManagerHelper,D),n;V.experimentApiProvider.get();(n=_.c("h5_enable_layout_unscheduling_events"))&&(f?P0o(V,D,f):_.hY(Error("Nh"),D,f,void 0,!1));nz(V.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",D);var t=t7(V.adsControlFlowManagerHelper,D),J=D.slotEntryTrigger,H=t.registeredSlotEntryTriggerAdapters.get(J.triggerId);H&&(H.unregisterTrigger(J),t.registeredSlotEntryTriggerAdapters.delete(J.triggerId));J=_.r(D.slotFulfillmentTriggers);for(H=J.next();!H.done;H=J.next()){H=H.value;var Q=t.registeredFulfillmentTriggerAdapters.get(H.triggerId);Q&&(Q.unregisterTrigger(H),t.registeredFulfillmentTriggerAdapters.delete(H.triggerId))}J=_.r(D.slotExpirationTriggers);
for(H=J.next();!H.done;H=J.next())if(H=H.value,Q=t.registeredExpirationTriggerAdapters.get(H.triggerId))Q.unregisterTrigger(H),t.registeredExpirationTriggerAdapters.delete(H.triggerId);t.hasLayout()&&(J=t.layout,rt(t,J.layoutExitNormalTriggers),rt(t,J.layoutExitSkipTriggers),rt(t,J.layoutExitMuteTriggers),rt(t,J.layoutExitUserInputSubmittedTriggers),rt(t,J.layoutExitUserCancelledTriggers));t.registeredFulfillmentAdapter=void 0;t.registeredSlotAdapter!=null&&(t.registeredSlotAdapter.release(),t.registeredSlotAdapter=
void 0);t.registeredLayoutRenderingAdapter!=null&&(t.registeredLayoutRenderingAdapter.release(),t.registeredLayoutRenderingAdapter=void 0);t=V.adsControlFlowManagerHelper;t7(t,D)&&(t=oWp(t,D.slotType+"_"+D.slotPhysicalPosition))&&t.delete(D.slotId);nz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",D);V=_.r(V.adsControlFlowEventListeners);for(t=V.next();!t.done;t=V.next())t=t.value,t.onSlotUnscheduled(D),f&&!n&&P0o(t,D,f)}},P0o=function(V,D,f){op(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
D,f);
op(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",D,f);V=_.r(V.adsControlFlowEventListeners);for(var n=V.next();!n.done;n=V.next())n=n.value,f&&P0o(n,D,f)},nWp=function(V,D){if(t7(V.adsControlFlowManagerHelper,D)!=null&&t7(V.adsControlFlowManagerHelper,D).isOccupyingSlotType()){var f=P_(V.adsControlFlowManagerHelper,D);
if(f&&UyU(V.adsControlFlowManagerHelper,D)){if(t7(V.adsControlFlowManagerHelper,D)!=null){var n=V.adEventLogger,t;var J=((t=VgU.get("abandoned"))==null?void 0:t.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";op(n,J,D,f);V=t7(V.adsControlFlowManagerHelper,D);V.slotLifecycleStage!=="rendering"&&J7(V.slot,V.slotLifecycleStage,"exitLayout");V.slotLifecycleStage="rendering_stop_requested";V.registeredLayoutRenderingAdapter.stopRendering(f,"abandoned")}}else{nz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
D);try{n=t7(V.adsControlFlowManagerHelper,D);if(!n)throw new PC("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");n.slotLifecycleStage!=="enter_requested"&&n.slotLifecycleStage!=="entered"&&n.slotLifecycleStage!=="rendering"&&J7(n.slot,n.slotLifecycleStage,"exitSlot");n.slotLifecycleStage="exit_requested";if(n.registeredSlotAdapter===void 0)throw n.slotLifecycleStage="scheduled",new PC("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
n.registeredSlotAdapter.exit()}catch(H){H instanceof PC&&H.adsClientErrorMessage?(J1H(V.adEventLogger,H.adsClientErrorMessage,D),_.hY(H,D,void 0,void 0,H.aggressivelySample)):(J1H(V.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",D),_.hY(H,D))}}}};var H_=function(V,D,f,n,t,J){_.cq.call(this);this.registry=V;this.experimentApiProvider=J;this.slotMap=new Map};
_.v(H_,_.cq);var oWp=function(V,D){return(V=V.slotMap.get(D))?V:new Map},t7=function(V,D){return oWp(V,D.slotType+"_"+D.slotPhysicalPosition).get(D.slotId)},tXE=function(V){var D=[];
V.slotMap.forEach(function(f){f=_.r(f.values());for(var n=f.next();!n.done;n=f.next())D.push(n.value.slot)});
return D};
H_.prototype.onSlotEntered=function(V){V=t7(this,V);V.slotLifecycleStage!=="enter_requested"&&J7(V.slot,V.slotLifecycleStage,"onSlotEntered");V.slotLifecycleStage="entered"};
var UyU=function(V,D){V=t7(V,D);return V.hasLayout()&&V.isRendering()},P_=function(V,D){(V=t7(V,D))?V.hasLayout()&&!V.layout&&_.hY("Unexpected empty layout",D):_.hY("Unexpected undefined slotState",D);
return(V==null?void 0:V.layout)||null};
H_.prototype.onSlotExited=function(V){V=t7(this,V);V.slotLifecycleStage!=="exit_requested"&&J7(V.slot,V.slotLifecycleStage,"onSlotExited");V.slotLifecycleStage="scheduled"};
H_.prototype.onLayoutExited=function(V,D){V=t7(this,V);V.isPrimaryLayout(D)&&(V.slotLifecycleStage!=="rendering_stop_requested"&&J7(V.slot,V.slotLifecycleStage,"onLayoutExited"),V.slotLifecycleStage="entered")};
var rt=function(V,D){D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=V.registeredLayoutExitTriggerAdapters.get(f.triggerId);n&&(n.unregisterTrigger(f),V.registeredLayoutExitTriggerAdapters.delete(f.triggerId))}},J7=function(V,D,f){_.hY("Slot stage was "+D+" when calling method "+f,V)};var Hd6=function(V){_.cq.call(this);this.deps=V;this.JSC$13474_adsControlFlowManager=r1P(this)};
_.v(Hd6,_.cq);var r1P=function(V){var D=new DO(function(f,n,t,J){return new H_(V.deps.registry,f,n,t,J,V.deps.experimentApiProvider)},new Set(oO3(V.deps.registry).concat(V.deps.listeners)),V.deps.adEventLogger,V.deps.experimentApiProvider);
_.wX(V,D);return D};var whE=function(V,D){_.cq.call(this);this.experimentApiProvider=V;this.eventLoggingSettingsProvider=D;this.eventCount=0};
_.v(whE,_.cq);whE.prototype.logEvent=function(V){fz(this,V)};
var nz=function(V,D,f,n){fz(V,D,void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,void 0,n)},op=function(V,D,f,n,t){fz(V,D,void 0,void 0,void 0,f,n?n:void 0,void 0,void 0,f.adSlotLoggingData,n?n.adLayoutLoggingData:void 0,void 0,t)},J1H=function(V,D,f){fz(V,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:D})},fz=function(V,D,f,n,t,J,H,Q,T,y,Z,l,G){G=G===void 0?0:G;
QyE(V.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+D,"slot:",J,"layout:",H,"ping:",Q,"Opportunity:",{opportunityType:f,associatedSlotId:n,slotsFromOpportunity:t,triggerBundle:T,adSlotLoggingData:y,adLayoutLoggingData:Z});try{var F=function(){V.experimentApiProvider.get();if(D!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){D||_.hY("Empty PACF event type",J,H);var k=V.eventLoggingSettingsProvider.get();var d;(d=k.alwaysIncludeDebugData)||(k.experimentApiProvider.get(),d=
!1);k=d;d={eventType:D,eventOrder:++V.eventCount};var z={};J&&(z.slotData=tg9(k,J));if(H){var C={type:H.layoutType,controlFlowManagerLayer:fac.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k&&(C.debugData={layoutId:H.layoutId});z.layoutData=C}Q&&(z.pingData={pingDispatchStatus:Q.dispatchStatus,serializedAdPingMetadata:Q.ping.serializedAdPingMetadata,pingIndex:Q.index});T&&(z.triggerData=nO9(T.trigger,T.category));f&&(z.opportunityData=Po9(k,f,n,t));d.adClientData=z;y&&(d.serializedSlotAdServingData=
y.serializedSlotAdServingDataEntry);Z&&(d.serializedAdServingData=Z.serializedAdServingDataEntry);l&&(d.errorInfo=l);_.dq("adsClientStateChange",{adsClientEvent:d})}};
G&&G>0?_.gq(_.kv(),function(){return F()},G):F()}catch(k){QyE(V.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.gq(_.kv(),function(){_.hY(k instanceof Error?k:String(k),J,H,{pacf_message:"exception during pacf logging"})})}};var TpU=function(V,D){whE.call(this,V,D)};
_.v(TpU,whE);var bdV=function(){},QyE=function(V,D){return _.c(D)};var y1F=function(){var V=new KxE;this.JSC$13493_adsControlFlowManager=(new Hd6(V)).JSC$13474_adsControlFlowManager},KxE=function(){_.cq.call(this);
var V=this;this.experimentApiProvider=new xyl(function(){return new bdV});
var D=new xyl(function(){return new Mgl(V.experimentApiProvider)});
this.adEventLogger=new TpU(this.experimentApiProvider,D);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.v(KxE,_.cq);var ZdP=function(){},jyU,wt=function(){jyU||(jyU=new ZdP);
return jyU},QB=function(V){if(!V.JSC$13504_externallyManagedSlotAdapterCallback){var D=(new y1F).JSC$13493_adsControlFlowManager;
V.JSC$13504_externallyManagedSlotAdapterCallback=D}return V.JSC$13504_externallyManagedSlotAdapterCallback},loV=function(V,D,f){var n=D.opportunityType,t=Error("Oh");
if(n!==void 0){var J=QB(V);hHY(J,n,void 0,f)}else _.hY(t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});J=[];if(D.adSlotAndLayoutMetadata!==void 0){D=_.r(D.adSlotAndLayoutMetadata);for(var H=D.next();!H.done;H=D.next()){var Q=H.value;if(H=Q.adSlotMetadata)if(J.push(H),V.onSlotReceivedExternallyManaged(H,f),Q.adLayoutMetadata){Q=_.r(Q.adLayoutMetadata);for(var T=Q.next();!T.done;T=Q.next())V.onLayoutReceivedExternallyManaged(H,T.value,f)}else f>0&&_.hY("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else f>0&&_.hY("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else f>0&&_.hY("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(n!==void 0)V.onOpportunityProcessedExternallyManaged(n,J,void 0,f);else _.hY(t,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
ZdP.prototype.onSlotReceivedExternallyManaged=function(V,D){V=om(V);if(V instanceof PC)_.hY(V,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else QB(this).onSlotReceivedExternallyManaged(V,D)};
ZdP.prototype.onLayoutReceivedExternallyManaged=function(V,D,f){V=om(V);D=rWX(D);if(V instanceof PC)_.hY(V,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(D instanceof JE)_.hY(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else QB(this).onLayoutReceivedExternallyManaged(V,D,f)};
ZdP.prototype.onOpportunityProcessedExternallyManaged=function(V,D,f,n){var t=[];D=_.r(D);for(var J=D.next();!J.done;J=D.next())J=om(J.value),J instanceof PC?_.hY(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):t.push(J);QB(this).onOpportunityProcessedExternallyManaged(V,t,f,n)};
var GhL=function(V,D){D=om(D);if(D instanceof PC)_.hY(D,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var f=QB(V);nz(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",D);f=_.r(f.adsControlFlowEventListeners);for(var n=f.next();!n.done;n=f.next())n=t7(n.value,D),n.slotLifecycleStage!=="not_scheduled"&&J7(n.slot,n.slotLifecycleStage,"onSlotScheduled"),n.slotLifecycleStage="scheduled";V=QB(V);nz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);V=_.r(V.adsControlFlowEventListeners);
for(f=V.next();!f.done;f=V.next())f.value.onSlotEntered(D)}},ezu=function(V,D){D=om(D);
if(D instanceof PC)_.hY(D,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var f=QB(V);nz(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);f=_.r(f.adsControlFlowEventListeners);for(var n=f.next();!n.done;n=f.next())n.value.onSlotExited(D);V=QB(V);nz(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",D);V=_.r(V.adsControlFlowEventListeners);for(f=V.next();!f.done;f=V.next())f.value.onSlotUnscheduled(D)}},c1l=function(V,D,f){D=om(D);
f=rWX(f);if(D instanceof PC)_.hY(D,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(f instanceof JE)_.hY(f,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var n=QB(V);op(n.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",D,f);n=_.r(n.adsControlFlowEventListeners);for(var t=n.next();!t.done;t=n.next())t.value.onLayoutScheduled(D,f);V=QB(V);op(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",D,f);V=_.r(V.adsControlFlowEventListeners);
for(n=V.next();!n.done;n=V.next())DbV(n.value,D,f)}},Tu=function(V,D,f){D=om(D);
f=rWX(f);if(D instanceof PC)_.hY(D,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(f instanceof JE)_.hY(f,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var n=QB(V);op(n.adEventLogger,Dyc("normal"),D,f);n=_.r(n.adsControlFlowEventListeners);for(var t=n.next();!t.done;t=n.next())t.value.onLayoutExited(D,f,"normal");V=QB(V);V=_.r(V.adsControlFlowEventListeners);for(n=V.next();!n.done;n=V.next())P0o(n.value,D,f)}};_.b9=_.MA(function(V){var D=_.Or(V,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});V=Object.assign({},D);var f=D.data;D=D.customCommandResolver;var n=(delete V.data,delete V.customCommandResolver,V),t=_.W2("ad-image-view-model");_.SK(t,function(){return f().interaction},D,function(){var Q;
return(Q=n.listenToTapEvent)==null?void 0:Q.call(n)});
_.hk(t,{visibilityCallback:function(Q){var T,y=(T=f().interaction)==null?void 0:T.onFirstVisible;Q&&(y&&_.Yt(y),n.setOnErrorHandler()&&HMx(t))},
showOption:_.I1});V=_.r(_.HJ(!1,void 0,"eiYvIe"));var J=V.next().value,H=V.next().value;return _.K("ad-image-view-model",{class:function(){var Q,T=[((Q=f().interaction)==null?0:Q.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],y;((y=n.isGridViewEnabled)==null?0:y.call(n))&&T.push("ytwAdImageViewModelHostInGridView");return T.join(" ")},
el:t,"on:touchend":_.jl(function(){var Q;((Q=n.setTouchEndHandler)==null?0:Q.call(n))&&!J()&&(t.value.click(),H(!0),setTimeout(function(){H(!1)},100));
return!1})},_.K("div",{class:"ytwAdImageViewModelHostImageContainer"},_.K(_.xt,{data:function(){var Q;
return{sources:f().imageSources,contentMode:(Q=f().imageProperties)==null?void 0:Q.contentMode}},
alt:function(){var Q,T;return((Q=f().interaction)==null?void 0:(T=Q.accessibility)==null?void 0:T.label)||""},
targetHeight:n.targetHeight,targetWidth:n.targetWidth,preserveHeight:n.preserveHeight,preserveWidth:n.preserveWidth,useWidth:n.useWidth,style:function(){var Q,T;return"vertical-align: bottom;"+(((Q=f().background)==null?0:Q.color)?"background-color:"+_.AP((T=f().background)==null?void 0:T.color)+";":"")},
className:function(){return n.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var Q,T;return(T=(Q=n.setDraggable)==null?void 0:Q.call(n))!=null?T:void 0}})))},"mb");var FxF=_.MA(function(V){var D=V.data,f=V.listenToTapEvent,n=_.W2("ad-button-hover-overlay-view-model");_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.SK(n,function(){return D().interaction},void 0,function(){return f==null?void 0:f()});
_.hk(n,{visibilityCallback:function(J){var H,Q=(H=D().interaction)==null?void 0:H.onFirstVisible;J&&Q&&_.Yt(Q)},
showOption:_.I1});var t=function(){};
return _.K("ad-button-hover-overlay-view-model",{"on:click":_.jl(function(){if(_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")){var J,H=(J=D().interaction)==null?void 0:J.onTap;H&&_.PA(n.value,"yt-navigate",{endpoint:_.Xo(H)})}}),
class:function(){var J;return((J=D().interaction)==null?0:J.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:n},function(){return _.c("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.K(_.BW,{data:function(){return D().button}},{adButtonViewModel:function(J){return _.K(_.xd,{data:J.data,
customCommandResolver:t})}}):_.K(_.BW,{data:function(){return D().button}},{adButtonViewModel:_.xd})}())},"nb");var r3;_.fT(_.MA(function(V){var D=V.data;var f=_.W2("compact-landscape-no-button-layout-view-model");_.c("stop_av_measurement_on_detach")&&_.dc(function(){w3(f)});
_.SK(f,function(){return D().interaction},void 0,function(){return!0});
_.hk(f,{visibilityCallback:function(J){if(J){var H;(J=(H=D().interaction)==null?void 0:H.onFirstVisible)&&_.Yt(J);var Q;if(H=(Q=D().adLayoutData)==null?void 0:Q.activeViewData)HC(f,H),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&w3(f)})}else _.c("stop_av_measurement_on_detach")&&w3(f)},
showOption:_.I1,hideOption:O9});V=_.r(_.HJ(!1,void 0,"yzu6qe"));var n=V.next().value,t=V.next().value;return _.K("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:f,"on:mouseenter":_.jl(function(){t(!0)}),
"on:mouseleave":_.jl(function(){t(!1)})},_.K("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.el({"max-width":function(){return _.c("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.K("div",{class:function(){var J;
a:{var H;switch((J=_.g(D().thumbnailImage,xwp))==null?void 0:(H=J.imageProperties)==null?void 0:H.renderingAspect){case "RENDERING_ASPECT_SQUARE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}J=void 0}return J}},_.K(_.BW,{data:function(){return D().thumbnailImage}},{adImageViewModel:function(J){return _.K(_.b9,
{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})),_.K("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.K(_.e,{cond:function(){var J,H,Q;
return(J=_.g(D().thumbnailImage,xwp))==null?void 0:(H=J.imageProperties)==null?void 0:(Q=H.overlayIcon)==null?void 0:Q.iconImage},
then:function(J){return _.K(_.xt,{data:J,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.K("div",{class:function(){return n()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.K(_.BW,{data:function(){return D().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(J){return _.K(FxF,
{data:J.data,
listenToTapEvent:!0})}}))),_.K("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.K(_.BW,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.K(BBo,{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ob"),"compact-landscape-no-button-layout-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=_.W2("square-image-layout-view-model");_.c("stop_av_measurement_on_detach")&&_.dc(function(){w3(f)});
var n=_.CT(_.mf);_.SK(f,function(){return D().interaction});
_.hk(f,{visibilityCallback:function(H){if(H){var Q;(H=(Q=D().interaction)==null?void 0:Q.onFirstVisible)&&_.Yt(H);var T;if(Q=(T=D().adLayoutData)==null?void 0:T.activeViewData)HC(f,Q),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&w3(f)})}else _.c("stop_av_measurement_on_detach")&&w3(f)},
showOption:_.I1,hideOption:O9});V={};var t={},J={};return _.K("square-image-layout-view-model",{class:_.KT("ytwSquareImageLayoutViewModelHost",(V.ytwSquareImageLayoutViewModelHostColumn=n,V)),el:f},_.K("div",{class:_.KT("ytwSquareImageLayoutViewModelHostImage",(t.ytwSquareImageLayoutViewModelHostColumnImage=n,t))},function(){return _.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(H){return _.K(_.b9,{data:H.data,
isGridViewEnabled:n,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.K("div",{class:_.KT("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(J.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=n,J))},_.K(_.BW,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:BBo}),function(){return _.K(_.BW,{data:function(){return D().adButton}},{adButtonViewModel:function(H){var Q={};
return _.K(_.xd,{data:H.data,className:_.KT((Q.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=n,Q))})}})}()))},"pb"),"square-image-layout-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=V.noBottomMargin;var n=V.typographyBump;var t=_.W2("top-landscape-image-layout-view-model");_.c("stop_av_measurement_on_detach")&&_.dc(function(){w3(t)});
_.c("enable_web_home_top_landscape_image_layout_level_click")&&_.SK(t,function(){return D().interaction},void 0,function(){return!0});
V=function(){return D().interaction};
V!==void 0&&V!==null||_.$w(Error("Ph"));_.hk(t,{visibilityCallback:function(y){if(y){var Z;(y=(Z=D().interaction)==null?void 0:Z.onFirstVisible)&&_.Yt(y);var l;if(Z=(l=D().adLayoutData)==null?void 0:l.activeViewData)HC(t,Z),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&w3(t)})}else _.c("stop_av_measurement_on_detach")&&w3(t)},
showOption:_.I1,hideOption:O9});var J=function(){var y,Z,l;return(y=_.g(D().thumbnailImage,xwp))==null?void 0:(Z=y.background)==null?void 0:(l=Z.backgroundImageSource)==null?void 0:l.imageSources};
V=_.r(_.HJ(!1,void 0,"GIwTMc"));var H=V.next().value,Q=V.next().value,T=function(){return H()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.K("top-landscape-image-layout-view-model",{class:function(){var y;return((y=D().interaction)==null?0:y.onTap)&&_.c("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:t,"on:mouseenter":_.jl(function(){Q(!0)}),
"on:mouseleave":_.jl(function(){Q(!1)})},_.K("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.K(_.e,{cond:function(){return J()&&J().length>0},
then:function(){return _.K("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.el({top:"0","background-image":function(){return"url("+String(J()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.K(_.e,{cond:function(){return!!D().adButtonHoverOverlay},
then:function(){return _.K("div",{class:T},_.K(_.BW,{data:function(){return D().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:FxF}))}}),_.K("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.K(_.BW,{data:function(){return D().thumbnailImage}},{adImageViewModel:function(y){return _.K(_.b9,{data:y.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.c("enable_web_home_top_landscape_image_layout_level_click")})}})),_.K("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.K(_.xt,{data:{sources:[{clientResource:{imageName:_.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.K("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.K(_.BW,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.K(BBo,{data:y.data,
noBottomMargin:function(){return f==null?void 0:f()},
listenToTapEvent:function(){return _.c("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return n==null?void 0:n()}})}})))},"qb"),"top-landscape-image-layout-view-model",{props:{data:_.WX,
noBottomMargin:_.WX,typographyBump:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=V.typographyBump;var n=_.W2("video-display-button-group-layout-view-model");_.hk(n,{visibilityCallback:function(t){if(t){var J;(t=(J=D().interaction)==null?void 0:J.onFirstVisible)&&_.Yt(t);var H;J=(H=D().adLayoutData)==null?void 0:H.activeViewData;!_.c("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&J&&HC(n,J)}},
showOption:_.I1,hideOption:O9});return _.K("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:n},_.K("div",null,_.K(_.BW,{data:function(){return D().videoLockup}},{lockupViewModel:function(t){return _.K(_.nv,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"rb"),"video-display-button-group-layout-view-model",{props:{data:_.WX,
noBottomMargin:_.WX,typographyBump:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=V.className;var n=V.typographyBump;var t=_.W2("video-display-compact-button-group-layout-view-model");_.hk(t,{visibilityCallback:function(J){if(J){var H;(J=(H=D().interaction)==null?void 0:H.onFirstVisible)&&_.Yt(J);var Q;(H=(Q=D().adLayoutData)==null?void 0:Q.activeViewData)&&HC(t,H)}},
showOption:_.I1});return _.K("video-display-compact-button-group-layout-view-model",{el:t,class:_.KT("videoDisplayCompactButtonGroupLayoutViewModelHost",f)},_.K(_.BW,{data:function(){return D().videoLockup}},{lockupViewModel:function(J){return _.K(_.nv,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:n})}}))},"sb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.WX,
className:_.WX,typographyBump:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=V.typographyBump;var n=_.W2("video-display-full-layout-view-model");_.hk(n,{visibilityCallback:function(t){if(t){var J;(t=(J=D().interaction)==null?void 0:J.onFirstVisible)&&_.Yt(t);var H;J=(H=D().adLayoutData)==null?void 0:H.activeViewData;!_.c("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&J&&HC(n,J)}},
showOption:_.I1,hideOption:O9});return _.K("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:n},_.K("div",null,_.K(_.BW,{data:function(){return D().videoLockup}},{lockupViewModel:function(t){return _.K(_.nv,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"tb"),"video-display-full-layout-view-model",{props:{data:_.WX,
noBottomMargin:_.WX,typographyBump:_.WX}});_.gWo=_.MA(function(V){var D=V.data;V=_.W2("ad-card-badge-view-model");return _.K("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:V},_.K(_.e,{cond:function(){return D().imageBadge},
then:function(f){return _.K(_.xt,{data:f,alt:""})}}))},"ub");var vWF=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;V=_.W2("carousel-ad-card-image-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});return _.K("carousel-ad-card-image-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:V,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.K(_.b9,{data:n.data,
customCommandResolver:f})}}),_.K("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.K(_.BW,{data:function(){return D().badge}},{adCardBadgeViewModel:_.gWo})),_.K(_.kl,{model:{color:4}}))},"vb");var khY=_.MA(function(V){var D=_.r(_.HJ(0,void 0,"o9Bzd")),f=D.next().value;D.next();var n=D.next().value,t=_.r(_.HJ(!1,void 0,"KLdzYe"));D=t.next().value;var J=t.next().value,H;_.dc(function(){clearTimeout(H)});
t=_.jl(function(){var y;((y=V.animate)==null?0:y.call(V))?(J(!0),H=setTimeout(function(){J(!1);Q()},200)):Q();
return!1});
var Q=function(){n(function(y){return(y+V.numShownItems())%V.data().length})},T={};
return _.K("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.K("div",{class:_.KT("ytwHorizontalCarouselCarouselWrapper")},_.K("div",{class:_.KT("ytwHorizontalCarouselCarouselInnerWrapper",(T.ytwHorizontalCarouselAnimating=D,T))},_.K(_.FB,{each:V.data,keyBy:"INDEX"},function(y,Z){return _.K("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.el({"flex-basis":function(){return"calc((100% - (8px * "+(V.numShownItems()-1)+")) / "+V.numShownItems()+")"},
order:function(){var l=Z-f();l<0&&(l+=V.data().length);return l}})},V.children(y,Z))}))),_.K("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":t},V.nextButton()))},"wb");var syP=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;var n=V.expansive;V=_.W2("carousel-ad-card-collection-view-model");_.hk(V,{visibilityCallback:function(t){var J,H=(J=D().interaction)==null?void 0:J.onFirstVisible;t&&H&&_.Yt(H)},
showOption:_.I1});return _.K("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:V},_.K(khY,{data:function(){var t;return((t=D())==null?void 0:t.carouselAdCards)||[]},
nextButton:function(){return _.K(_.BW,{data:function(){return D().nextButton}},{buttonViewModel:function(t){var J=t.data;
return _.K(_.HO,{data:function(){return(n==null?0:n())?Object.assign({},J(),{style:"mono"}):J()},
className:_.c("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(t){return _.K(_.BW,{data:t},{carouselAdCardImageViewModel:function(J){return _.K(vWF,{data:J.data,customCommandResolver:f})}})}))},"xb");var Bpo=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;var n=V.className;var t=V.buttonClassName;var J=V.animationEntityKey;var H=V.expansive;return _.K("carousel-button-view-model",{class:_.KT("ytwCarouselButtonViewModelHost",n)},_.K(_.BW,{data:function(){return D().carousel}},{carouselAdCardCollectionViewModel:function(Q){return _.K(syP,{data:Q.data,
customCommandResolver:f,expansive:H})}}),_.K(_.BW,{data:function(){return D().button}},{adButtonViewModel:function(Q){var T=Q.data;
return _.K(_.xd,{data:function(){return(H==null?0:H())?Object.assign({},T(),{style:"AD_BUTTON_STYLE_TONAL"}):T()},
className:t,customCommandResolver:f,animationEntityKey:J})}}))},"yb");_.dbY=_.MA(function(V){var D=V.data;V=V.className;var f=_.W2("pivot-button-view-model");_.Nl(function(){var n;((n=D())==null?0:n.backgroundColor)&&f.value.setAttribute("data-background-color",String(D().backgroundColor))});
return _.K("pivot-button-view-model",{el:f,class:_.KT("ytwPivotButtonViewModelHost",V)},_.K(_.YC,{command:function(){var n=D();n=n.onClickCommand?_.Xo(n.onClickCommand):n.contentDescription?_.hO(n.contentDescription):void 0;return n},
ariaLabel:function(){return D().contentDescription}},_.K(_.e,{cond:function(){return D().thumbnail},
then:function(n){return _.K(_.xt,{data:n,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.K(_.e,{cond:function(){return D().icon},
then:function(n){return _.K(_.cj,{icon:function(){return n().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"zb");_.uyL=_.MA(function(V){var D=V.data;var f=V.buttonShapeOverrideables;return _.K("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.K(_.BW,{data:function(){return D().buttonViewModels}},{buttonViewModel:function(n){return _.K(_.HO,{data:n.data,
buttonOverrides:f})},
likeButtonViewModel:function(n){return _.K(_.s8,{data:n.data,buttonShapeOverrideables:f})},
dislikeButtonViewModel:function(n){return _.K(_.kE,{data:n.data,buttonShapeOverrideables:f})},
toggleButtonViewModel:function(n){return _.K(_.FA,{data:n.data,buttonShapeOverrides:f})}}))},"Ab");var NpV=_.MA(function(V){var D=V.avatar;var f=V.headline;var n=V.badge;var t=V.description;var J=V.expansive;V={};return _.K("yt-ad-metadata-shape",{class:_.KT("ytAdMetadataShapeHost",(V.ytAdMetadataShapeHostLarge=J,V))},_.K("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.K(_.e,{cond:D,then:function(H){return _.K(_.gUP,{data:function(){return(J==null?0:J())?Object.assign({},H(),{size:"AD_AVATAR_SIZE_MPLUS"}):H()}})}}),_.K("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.K(_.Ow,{text:f,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.K(_.e,{cond:n,then:function(H){return _.K(_.DS,{data:function(){return(J==null?0:J())?Object.assign({},H(),{style:"AD_BADGE_STYLE_STARK"}):H()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.K("h2",{class:"ytAdMetadataShapeHostDescription"},_.K(_.Ow,{text:t,
linkInheritColor:!0})))},"Bb");var mbl=_.MA(function(V){var D=V.data;var f=V.onShow;var n=V.expansive;V=_.W2("reels-ad-card-buttoned-view-model");_.SK(V,function(){return D().interaction});
_.Nl(function(){var J,H=(J=D().animatedRenderingConfig)==null?void 0:J.delayedSecondsToVisible;if(H){var Q=setTimeout(f,H*1E3);_.dc(function(){clearTimeout(Q)})}});
var t={};return _.K("reels-ad-card-buttoned-view-model",{class:_.KT(function(){var J;return((J=D().interaction)==null?0:J.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(t.ytwReelsAdCardButtonedViewModelHostExpansive=n,t)),
el:V},_.K(NpV,{avatar:function(){return _.g(D().avatar,I1r)},
headline:function(){return D().headline},
badge:function(){return _.g(D().adBadge,OYV)},
description:function(){return D().description},
expansive:n}),_.K(_.BW,{data:function(){return D().ctaButton}},{adButtonViewModel:function(J){var H=J.data;
return _.K(_.xd,{data:function(){return(n==null?0:n())?Object.assign({},H(),{style:"AD_BUTTON_STYLE_FILLED"}):H()}})}}))},"Cb");var zzr=_.MA(function(V){var D=V.data;V=V.expansive;var f=_.W2("reels-ad-metadata-view-model");_.c("web_ad_metadata_clickable")&&_.SK(f,function(){return D().interaction});
var n={};n=_.y6("ytwReelsAdMetadataViewModelHost",(n.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.c("web_ad_metadata_clickable"),n));return _.K("reels-ad-metadata-view-model",{class:n,el:f},_.K(NpV,{avatar:function(){return _.g(D().avatar,I1r)},
headline:function(){return D().headline},
badge:function(){return _.g(D().adBadge,OYV)},
description:function(){return D().description},
expansive:V}))},"Db");var Rzu={iconPosition:"icon-with-label",size:"L"},C06=_.MA(function(V){var D=V.data;var f=V.overlayDensity;V=_.W2("reels-player-overlay-layout-view-model");var n=_.IU(f,0),t=function(){var l;return(l=D().reelsAdCardButtonedEntityKey)!=null?l:""},J=function(){return t()+"/ad_button"},H=_.KX(qU3,t),Q=function(){var l,G;
return(G=(l=H())==null?void 0:l.value)!=null?G:!1},T=_.CT(ZMY),y=function(){return Object.assign({},Rzu,(T()||n()===2)&&{style:"overlay-dark"})};
f={};var Z={};return _.K("reels-player-overlay-layout-view-model",{class:_.KT("ytwReelsPlayerOverlayLayoutViewModelHost",(f.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!D().extension},f.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},f)),
"overlay-density":function(){return String(n())},
el:V},_.K("div",{class:_.KT("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(Z.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},Z))},_.K("div",{"aria-hidden":function(){return Q()},
class:_.KT("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Q()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.el({"transition-duration":function(){return eH9(D())}})},_.K(_.BW,{data:function(){return D().adMetadata}},{reelsAdMetadataViewModel:function(l){return _.K(zzr,{data:l.data,
expansive:function(){return n()===1}})}}),_.K(_.e,{cond:function(){return D().extension},
then:function(l){return _.K("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.K(_.BW,{data:l},{adButtonViewModel:function(G){return _.K(_.xd,{data:G.data,animationEntityKey:J,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(G){return _.K(Bpo,{data:G.data,animationEntityKey:J,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return n()===1}})}}))}})),_.K("div",{"aria-hidden":function(){return!Q()},
class:_.KT("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Q()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.el({"transition-duration":function(){return eH9(D())}})},_.K(_.BW,{data:function(){return D().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(l){return _.K(mbl,{data:l.data,
onShow:function(){_.LI(_.y1("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){return n()===1}})}}))),_.K("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.K(_.BW,{data:function(){return D().actions}},{reelActionBarViewModel:function(l){return _.K(_.uyL,{data:l.data,
buttonShapeOverrideables:y})}}),_.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:function(l){return _.K(_.HO,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},y(),{type:"tonal"})}})}}),_.K(_.BW,{data:function(){return D().pivotButton}},{pivotButtonViewModel:function(l){return _.K(_.dbY,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Eb");_.fT(C06,"reels-player-overlay-layout-view-model",{props:{data:_.WX,overlayDensity:_.WX}});var Kz=function(){var V=_.E.apply(this,arguments)||this;V.noBottomMargin=!1;V.overlayDensity=0;return V};
_.v(Kz,_.E);_.P=Kz.prototype;
_.P.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:_.c("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]]"}}}}}};
_.P.ready=function(){var V=this;QsX(function(){V.isAttached&&nL(V.JSC$13547_storedAdSlotMetadata,V.JSC$13547_storedAdLayoutMetadata,V.adSlotMetadata,V.adLayoutMetadata)&&Tu(wt(),V.JSC$13547_storedAdSlotMetadata,V.JSC$13547_storedAdLayoutMetadata)})};
_.P.attached=function(){nL(this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&c1l(wt(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata)};
_.P.detached=function(){nL(this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Tu(wt(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata)};
_.P.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13547_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13547_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13547_storedAdLayoutMetadata!==void 0&&this.JSC$13547_storedAdSlotMetadata!==void 0&&Tu(wt(),this.JSC$13547_storedAdSlotMetadata,this.JSC$13547_storedAdLayoutMetadata),c1l(wt(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13547_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13547_storedAdSlotMetadata=this.adSlotMetadata)};
_.IG.Object.defineProperties(Kz.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.adLayoutMetadata}}});
Kz.prototype.onAdMetadataChanged=Kz.prototype.onAdMetadataChanged;Kz.prototype.onTypographyBumpChanged=Kz.prototype.onTypographyBumpChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Kz.prototype,"rendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Kz.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Kz.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Kz.prototype,"noBottomMargin",void 0);_.S([_.q(),_.p("design:type",Object)],Kz.prototype,"overlayDensity",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Kz.prototype,"typographyBump",void 0);_.S([_.R("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Kz.prototype,"adLayoutMetadata",null);_.S([_.q(),_.p("design:type",Object)],Kz.prototype,"adSlotMetadata",void 0);
_.S([_.Zv("ytd-video-display-full-buttoned-and-button-group-renderer"),_.p("design:type",HTMLElement)],Kz.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.S([_.KI("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kz.prototype,"onTypographyBumpChanged",null);_.S([_.KI("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Kz.prototype,"onAdMetadataChanged",null);
_.S([_.a({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Kz);
_.Y(Kz,"ytd-in-feed-ad-layout-renderer",function(){if(vOp!==void 0)return vOp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return vOp=V},
{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var qxF;var XhY;var yB=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return V};
_.v(yB,_.E);_.P=yB.prototype;_.P.computeHasLiveDescription=function(V){return!(V==null||!V.liveDescription)};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.P.onYtToggleButton=function(V){var D,f=(D=this.data)==null?void 0:D.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.y1("upcomingEventReminderStateEntity",f,{key:f,state:V.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.P.attached=function(){this.updateChannelBanner()};
_.P.dataChanged=function(){this.updateChannelBanner()};
_.P.videoReminderStateChanged=function(){var V;this.videoReminderState&&_.g((V=this.data)==null?void 0:V.cta,_.C9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.P.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var V=_.nT(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);V&&(V.startsWith("//")&&(V="https:"+V),this.hostElement.classList.add("channel-banner"),_.wI(this.hostElement,{"--ytvmh-channel-banner":"url("+V+")"}))}else _.c("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.P.onPlayerReady=function(){this.onIronResize()};
_.P.maybeFlushDebouncer=function(){_.c("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(V){var D;V=(D=V.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0];m6d(V==null?void 0:V.polymerController)})};
_.P.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var V=_.Pt(this.hostElement).querySelector("#live-description"),D;V&&((D=this.data)==null?0:D.shortLiveDescription)&&V.clientWidth<V.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
yB.prototype.onIronResize=yB.prototype.onIronResize;yB.prototype.videoReminderStateChanged=yB.prototype.videoReminderStateChanged;yB.prototype.dataChanged=yB.prototype.dataChanged;yB.prototype.onYtToggleButton=yB.prototype.onYtToggleButton;_.S([_.u(_.sp),_.p("design:type",Object)],yB.prototype,"ironResizableBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],yB.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yB.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:q4Z}),_.p("design:type",Object)],yB.prototype,"videoReminderState",void 0);
_.S([_.q({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.p("design:type",Boolean)],yB.prototype,"rounded",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.p("design:type",Boolean)],yB.prototype,"hasLiveDescription",void 0);_.S([_.q({reflectToAttribute:!0,value:_.c("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.p("design:type",Boolean)],yB.prototype,"resizableAdBannerSafariFix",void 0);
_.S([_.q({reflectToAttribute:!0,value:_.c("align_three_dot_menu_with_title_description")}),_.p("design:type",Boolean)],yB.prototype,"menuFix",void 0);_.S([_.jY("yt-formatted-string"),_.p("design:type",Array)],yB.prototype,"formattedStrings",void 0);_.S([_.Zv("#cta-button"),_.p("design:type",HTMLElement)],yB.prototype,"ctaButton",void 0);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yB.prototype,"onYtToggleButton",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yB.prototype,"dataChanged",null);_.S([_.KI("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yB.prototype,"videoReminderStateChanged",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yB.prototype,"onIronResize",null);
_.S([_.a({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],yB);
_.Y(yB,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(XhY!==void 0)return XhY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return XhY=V},{mode:1});var EWH;var ZO=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};V.isLocked=!1;return V};
_.v(ZO,_.E);_.P=ZO.prototype;_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded&&_.JR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(V){V!==this&&(this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(V){this.isLocked=!0;V!==this&&(this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
ZO.prototype.onTap=ZO.prototype.onTap;ZO.prototype.onMouseOver=ZO.prototype.onMouseOver;ZO.prototype.onExpandedChanged=ZO.prototype.onExpandedChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZO.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZO.prototype,"expanded",void 0);_.S([_.eY("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZO.prototype,"onExpandedChanged",null);_.S([_.bU("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZO.prototype,"onMouseOver",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZO.prototype,"onTap",null);
_.S([_.a({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],ZO);
_.Y(ZO,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(EWH!==void 0)return EWH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return EWH=V},{mode:1});var A1F;var jc=function(){var V=_.E.apply(this,arguments)||this;V.buttonOverrides={style:"overlay"};V.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");V.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};V.playbackFinished=!1;V.JSC$13559_playerManager=null;V.JSC$13559_mastheadCounter=new IWF;return V};
_.v(jc,_.E);_.P=jc.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$13559_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13559_playerManager=new vX)};
_.P.ready=function(){var V=this;this.JSC$13559_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var D=_.Pt(this.hostElement).querySelector("#player");this.useYtdPlayer?D.style.display="none":(this.ytdPlayer.style.display="none",pGF(this.JSC$13559_playerManager,D,function(){V.onPlaybackEnded()}),_.Pt(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var f;
((f=V.data)==null?0:f.navigationEndpoint)&&_.PA(V.hostElement,"yt-navigate",{endpoint:V.data.navigationEndpoint})}))};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13559_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.P.attached=function(){var V=this;_.aU(function(){V.maybePlayVideo()})};
_.P.maybePlayVideo=function(){var V=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$13559_playerManager.playVideo(),this.getPlayerPromise().then(function(){V.JSC$13559_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.P.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13559_playerManager.stopVideo()};
_.P.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var V,D={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((V=this.data.playbackStartMs)!=null?V:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(D);this.setupYtdPlayer()}else ISp(this.JSC$13559_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Lyr(this.JSC$13559_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.P.getPlayerPromise=function(){return this.JSC$13559_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(V){this.useYtdPlayer?this.toggleMute(V.detail.toggled):V.detail.toggled?this.JSC$13559_playerManager.mute():this.JSC$13559_playerManager.unMute()};
_.P.onYtNavigate=function(V){var D=FmX(V.detail.endpoint),f=g$X(this.data.clickthroughReportingData);D&&f&&(V.detail.endpoint.watchEndpoint?V.detail.tempData=f:_.xo(D,f,30))};
_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded?(_.JR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(V){V!==this&&(this.stopVideo(),this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(V){V!==this&&(this.isLocked=!0,this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
_.P.lockAndCollapseExpandableTiles=function(){_.o4(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.P.unlockExpandableTiles=function(){_.o4(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.P.setupYtdPlayer=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.ytdPlayer.getPlayerPromise(),2);D=f.yieldResult;D.addEventListener("onStateChange",function(n){V.onPlayerStateChange(n)});
D.addEventListener("onCueRangeExit",function(n){V.onCueRangeExit(n)});
_.yz(f)})};
_.P.onPlayerStateChange=function(V){if(V===1&&(V=this.ytdPlayer.getPlayer())){var D=V.getCurrentTime(),f,n,t=D+((n=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?n:0)/1E3;V.addCueRange("playback",D,t);this.JSC$13559_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.P.onCueRangeExit=function(V){V==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.ytdPlayer.getPlayerPromise(),2);f=n.yieldResult;V?f.mute():f.unMute();_.yz(n)})};
jc.prototype.onTap=jc.prototype.onTap;jc.prototype.onMouseOver=jc.prototype.onMouseOver;jc.prototype.onExpandedChanged=jc.prototype.onExpandedChanged;jc.prototype.onYtNavigate=jc.prototype.onYtNavigate;jc.prototype.onYtToggleButton=jc.prototype.onYtToggleButton;jc.prototype.dataChanged=jc.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jc.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jc.prototype,"expanded",void 0);_.S([_.q(),_.p("design:type",Object)],jc.prototype,"buttonOverrides",void 0);
_.S([_.q(),_.p("design:type",Object)],jc.prototype,"useYtdPlayer",void 0);_.S([_.Zv("#ytd-player"),_.p("design:type",Object)],jc.prototype,"ytdPlayer",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jc.prototype,"dataChanged",null);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jc.prototype,"onYtToggleButton",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jc.prototype,"onYtNavigate",null);_.S([_.eY("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jc.prototype,"onExpandedChanged",null);_.S([_.bU("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jc.prototype,"onMouseOver",null);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jc.prototype,"onTap",null);_.S([_.a({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],jc);
_.Y(jc,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(A1F!==void 0)return A1F;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return A1F=V},{mode:1});var aoE;var l9=function(){return _.E.apply(this,arguments)||this};
_.v(l9,_.E);l9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
l9.prototype.onShow=function(){var V=_.Pt(this.hostElement).querySelector("#live-description"),D;V&&((D=this.data)==null?0:D.shortLiveDescription)&&V.clientWidth<V.scrollWidth&&this.hostElement.classList.add("short-live-description")};
l9.prototype.onYtToggleButton=function(V){var D,f=(D=this.data)==null?void 0:D.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.y1("upcomingEventReminderStateEntity",f,{key:f,state:V.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
l9.prototype.videoReminderStateChanged=function(){var V;this.videoReminderState&&_.g((V=this.data)==null?void 0:V.cta,_.C9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
l9.prototype.videoReminderStateChanged=l9.prototype.videoReminderStateChanged;l9.prototype.onYtToggleButton=l9.prototype.onYtToggleButton;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],l9.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],l9.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:q4Z}),_.p("design:type",Object)],l9.prototype,"videoReminderState",void 0);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],l9.prototype,"onYtToggleButton",null);_.S([_.KI("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l9.prototype,"videoReminderStateChanged",null);
_.S([_.a({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],l9);
_.Y(l9,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(aoE!==void 0)return aoE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return aoE=V},{mode:_.J2("kevlar_poly_si_batch_j065")?1:2});var YxP;var Gu=function(){var V=_.E.apply(this,arguments)||this;V.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");V.buttonOverrides={style:"overlay"};V.JSC$13567_playerManager=null;V.JSC$13567_mastheadCounter=new IWF;V.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return V};
_.v(Gu,_.E);_.P=Gu.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$13567_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13567_playerManager=new vX)};
_.P.ready=function(){var V=this;this.JSC$13567_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var D;(D=this.embeddedPlayer)==null||D.remove()}else{var f;(f=this.ytdPlayer)==null||f.remove();pGF(this.JSC$13567_playerManager,this.embeddedPlayer,function(){V.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){V.data&&V.data.navigationEndpoint&&_.PA(V.hostElement,"yt-navigate",{endpoint:V.data.navigationEndpoint})})}};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13567_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.P.dataChanged=function(){var V=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var D=!this.data.disableAutoPlayback,f,n={autoplay:D,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((f=this.data.playbackStartMs)!=null?f:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(D?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(n);this.setupYtdPlayer()}else ISp(this.JSC$13567_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Lyr(this.JSC$13567_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13567_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.o4(V.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");V.JSC$13567_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.P.getPlayerPromise=function(){return this.JSC$13567_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(V){this.useYtdPlayer?this.toggleMute(V.detail.toggled):V.detail.toggled?this.JSC$13567_playerManager.mute():this.JSC$13567_playerManager.unMute()};
_.P.onYtNavigate=function(V){var D=FmX(V.detail.endpoint),f=g$X(this.data.clickthroughReportingData);D&&f&&(V.detail.endpoint.watchEndpoint?V.detail.tempData=f:_.xo(D,f,30))};
_.P.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13567_playerManager.stopVideo()};
_.P.setupYtdPlayer=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.ytdPlayer.getPlayerPromise(),2);D=f.yieldResult;D.addEventListener("onStateChange",function(n){V.onPlayerStateChange(n)});
D.addEventListener("onCueRangeExit",function(n){V.onCueRangeExit(n)});
_.yz(f)})};
_.P.onPlayerStateChange=function(V){if(V===1&&(V=this.ytdPlayer.getPlayer())){var D=V.getCurrentTime(),f,n,t=D+((n=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?n:0)/1E3;V.addCueRange("playback",D,t);_.o4(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13567_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.P.onCueRangeExit=function(V){V==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.ytdPlayer.getPlayerPromise(),2);f=n.yieldResult;V?f.mute():f.unMute();_.yz(n)})};
_.IG.Object.defineProperties(Gu.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V,D;if(!((V=this.data)==null?0:(D=V.accessibilityData)==null?0:D.label))return"Ad primary link";var f,n;return _.Zl("AD_TITLE",{title:(f=this.data)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label})}}});
Gu.prototype.onYtMastheadHidden=Gu.prototype.onYtMastheadHidden;Gu.prototype.onYtNavigate=Gu.prototype.onYtNavigate;Gu.prototype.onYtToggleButton=Gu.prototype.onYtToggleButton;Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Gu.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Gu.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Gu.prototype,"useYtdPlayer",void 0);_.S([_.Zv("ytd-toggle-button-renderer"),_.p("design:type",Object)],Gu.prototype,"muteButton",void 0);_.S([_.q(),_.p("design:type",Object)],Gu.prototype,"buttonOverrides",void 0);
_.S([_.R("data.accessibilityData.label"),_.p("design:type",String),_.p("design:paramtypes",[])],Gu.prototype,"titleAriaLabel",null);_.S([_.Zv("#replay-button"),_.p("design:type",Object)],Gu.prototype,"replayButton",void 0);_.S([_.Zv("#player-container"),_.p("design:type",Object)],Gu.prototype,"playerContainer",void 0);_.S([_.Zv("#player"),_.p("design:type",Object)],Gu.prototype,"embeddedPlayer",void 0);_.S([_.Zv("#ytd-player"),_.p("design:type",Object)],Gu.prototype,"ytdPlayer",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gu.prototype,"dataChanged",null);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Gu.prototype,"onYtToggleButton",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Gu.prototype,"onYtNavigate",null);
_.S([_.bU("yt-masthead-hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gu.prototype,"onYtMastheadHidden",null);_.S([_.a({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Gu);
_.Y(Gu,"ytd-video-masthead-ad-primary-video-renderer",function(){if(YxP!==void 0)return YxP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return YxP=V},{mode:2});var $bH;var ec=function(){var V=_.E.apply(this,arguments)||this;V.collapsed=!1;V.impressionResolver=_.Sl();V.JSC$13571_activeViewMeasurementDataResolver=_.Sl();V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.v(ec,_.E);_.P=ec.prototype;_.P.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"}}}};
_.P.ready=function(){var V=this;_.Pt(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){V.expandAd()});
this.hostElement.addEventListener("yt-action",function(D){if(D.detail.actionName==="yt-service-request"){var f=D.detail.args[1];f.videoMastheadAdMuteCommand&&(V.collapseAd(f.videoMastheadAdMuteCommand.encryptedMastheadId),D.stopPropagation())}})};
_.P.attached=function(){var V=this;_.aU(function(){V.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(D){if(!V.collapsed){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,$e(f.baseUrl,f.attributionSrcMode);V.data.impressionCommand=void 0}});
this.JSC$13571_activeViewMeasurementDataResolver.promise.then(function(D){V.ytdActiveViewBehavior.enableActiveViewMeasurement(D,15)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.dataChanged=function(){var V;((V=this.data.impressionCommand)==null?0:V.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var D;((D=this.data)==null?0:D.activeView)&&this.JSC$13571_activeViewMeasurementDataResolver.resolve(this.data.activeView);(V=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(V.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.P.computeWidescreen=function(V){var D;return!!(V&&((D=_.g(V,iYH))==null?0:D.isWidescreen))};
_.P.computeExpandable=function(V){return!!(V&&V.length>0)};
_.P.onIronResize=function(){if(this.expandable){var V=_.Pt(this.hostElement).querySelector("#expandable-tile-container :first-child");V&&!V.expanded&&(V.expanded=!0)}};
_.P.handleMuteAd=function(){this.collapseAd(null)};
_.P.restoreCollapsedState=function(V){this.collapsed=_.Gm().get("HIDDEN_MASTHEAD_ID")===V};
_.P.collapseAd=function(V){if(V){var D=_.Gm();D.set("HIDDEN_MASTHEAD_ID",V);D.save()}(V=_.Pt(this.hostElement).querySelector("#video"))&&_.PA(V,"yt-masthead-hidden");this.collapsed=!0};
_.P.expandAd=function(){var V=_.Gm();V.set("HIDDEN_MASTHEAD_ID",!1);V.save();location.reload()};
_.P.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
ec.prototype.onIronResize=ec.prototype.onIronResize;ec.prototype.dataChanged=ec.prototype.dataChanged;_.S([_.u(_.sp),_.p("design:type",Object)],ec.prototype,"ironResizableBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],ec.prototype,"ytdActiveViewBehavior",void 0);_.S([_.u(_.zn),_.p("design:type",Object)],ec.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ec.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ec.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.p("design:type",Boolean)],ec.prototype,"widescreen",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.p("design:type",Boolean)],ec.prototype,"expandable",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ec.prototype,"collapsed",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ec.prototype,"dataChanged",null);
_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ec.prototype,"onIronResize",null);_.S([_.a({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ec);
_.Y(ec,"ytd-video-masthead-ad-v3-renderer",function(){if($bH!==void 0)return $bH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return $bH=V},{mode:2});var c_=function(){return _.E.apply(this,arguments)||this};
_.v(c_,_.E);_.P=c_.prototype;_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.P.ready=function(){var V=this;QsX(function(){V.isAttached&&nL(V.JSC$13576_storedAdSlotMetadata,V.JSC$13576_storedAdLayoutMetadata,V.adSlotMetadata,V.adLayoutMetadata)&&Tu(wt(),V.JSC$13576_storedAdSlotMetadata,V.JSC$13576_storedAdLayoutMetadata)})};
_.P.attached=function(){nL(this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&c1l(wt(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata)};
_.P.detached=function(){nL(this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Tu(wt(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13576_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13576_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13576_storedAdLayoutMetadata!==void 0&&this.JSC$13576_storedAdSlotMetadata!==void 0&&Tu(wt(),this.JSC$13576_storedAdSlotMetadata,this.JSC$13576_storedAdLayoutMetadata),c1l(wt(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13576_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13576_storedAdSlotMetadata=this.adSlotMetadata)};
_.IG.Object.defineProperties(c_.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.adLayoutMetadata}}});
c_.prototype.onAdMetadataChanged=c_.prototype.onAdMetadataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],c_.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],c_.prototype,"data",void 0);_.S([_.R("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],c_.prototype,"adLayoutMetadata",null);
_.S([_.q(),_.p("design:type",Object)],c_.prototype,"adSlotMetadata",void 0);_.S([_.KI("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],c_.prototype,"onAdMetadataChanged",null);_.S([_.a({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],c_);
_.Y(c_,"ytd-page-top-ad-layout-renderer",function(){if(qxF!==void 0)return qxF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return qxF=
V},{mode:_.J2("kevlar_poly_si_batch_j070")?1:2});var ido;var Fe=function(){var V=_.E.apply(this,arguments)||this;V.noBottomMargin=!1;V.overlayDensity=0;V.typographyBump=!1;return V};
_.v(Fe,_.E);_.P=Fe.prototype;
_.P.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]]"}}}}}};
_.P.ready=function(){var V=this;QsX(function(){V.isAttached&&V.adSlotMetadata&&ezu(wt(),V.adSlotMetadata)})};
_.P.attached=function(){if(this.adSlotMetadata){var V;if(this.adSlotMetadata===((V=this.data)==null?void 0:V.adSlotMetadata))GhL(wt(),this.adSlotMetadata);else{var D;_.zP(Error("Qh`"+this.adSlotMetadata+"`"+((D=this.data)==null?void 0:D.adSlotMetadata)))}}};
_.P.detached=function(){this.adSlotMetadata&&ezu(wt(),this.adSlotMetadata)};
_.P.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.P.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&ezu(wt(),this.adSlotMetadata),GhL(wt(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.IG.Object.defineProperties(Fe.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.fulfillmentContent)==null?void 0:D.fulfilledLayout,_.W$V),n;return(V=(n=_.g(f==null?void 0:f.renderingContent,S5p))==null?void 0:n.layout)?V.toLowerCase().replace(/_/g,"-"):""}}});
Fe.prototype.onAdSlotMetadataChanged=Fe.prototype.onAdSlotMetadataChanged;Fe.prototype.onTypographyBumpChanged=Fe.prototype.onTypographyBumpChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Fe.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fe.prototype,"rendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Fe.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Fe.prototype,"noBottomMargin",void 0);_.S([_.q(),_.p("design:type",Object)],Fe.prototype,"overlayDensity",void 0);_.S([_.q(),_.p("design:type",Object)],Fe.prototype,"typographyBump",void 0);_.S([_.Zv("ytd-in-feed-ad-layout-renderer"),_.p("design:type",HTMLElement)],Fe.prototype,"inFeedAdLayoutRenderer",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],Fe.prototype,"layout",null);_.S([_.KI("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fe.prototype,"onTypographyBumpChanged",null);_.S([_.KI("data.adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fe.prototype,"onAdSlotMetadataChanged",null);
_.S([_.a({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Fe);
_.Y(Fe,"ytd-ad-slot-renderer",function(){if(ido!==void 0)return ido;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ido=V},{mode:_.J2("kevlar_poly_si_batch_j077")?
1:2});var SxL;var gt=function(){return _.E.apply(this,arguments)||this};
_.v(gt,_.E);_.P=gt.prototype;_.P.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"}}}};
_.P.maybeComputeHref=function(V){return _.c("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(V)};
_.P.onTap=function(){_.c("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&QH9(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.P.onThumbnailContainerClick=function(V){this.onClick(V)};
_.P.onClick=function(V){if(_.c("enable_handle_watch_endpoint_click_for_vdc")){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;f&&_.g(f,_.pl)&&(this.ytSparklesClickLocationBehavior.handleClick(f,V,!1),V.stopPropagation())}};
_.P.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var V=_.r(this.data.impressionUrls),D=V.next();!D.done;D=V.next())D=D.value,cPL(D,g73(D));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.c("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",gt.JSC$13584_DEFAULT_CLICK_LOCATION_BEHAVIOR,gt.JSC$13584_CLICK_LOCATION_ID_MAP),this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),
V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href")))}};
_.P.attached=function(){var V=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.IG.Object.defineProperties(gt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
gt.prototype.dataChanged=gt.prototype.dataChanged;gt.prototype.onTap=gt.prototype.onTap;gt.JSC$13584_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
gt.JSC$13584_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"}];_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.S([_.u(B$),_.p("design:type",Object)],gt.prototype,"ytdActiveViewBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],gt.prototype,"ytSparklesClickLocationBehavior",void 0);
_.S([_.q({selector:_.mf}),_.p("design:type",Object)],gt.prototype,"isGridViewEnabled",void 0);_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gt.prototype,"watchFeedBigThumbs",null);_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],gt.prototype,"thumbnailWidth",null);_.S([_.q(),_.p("design:type",Object)],gt.prototype,"data",void 0);
_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],gt.prototype,"thumbnail",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"onTap",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"dataChanged",null);_.S([_.a({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],gt);
_.Y(gt,"ytd-compact-promoted-video-renderer",function(){if(SxL!==void 0)return SxL;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return SxL=V},{mode:1});var WxF;_.zk("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var v_=function(){return _.E.apply(this,arguments)||this};
_.v(v_,_.E);v_.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],v_.prototype,"data",void 0);_.S([_.a({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],v_);
_.Y(v_,"ytd-search-pyv-renderer",function(){if(WxF!==void 0)return WxF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return WxF=V},{mode:1});var pho;_.zk("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var k5=function(){var V=_.E.apply(this,arguments)||this;V.roundedContainer=!0;V.JSC$13592_handleOpenPostCommentDialogActionAfterStamp=!1;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.v(k5,_.E);_.P=k5.prototype;
_.P.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}}};
_.P.onStampFinished=function(){this.JSC$13592_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var V=_.Pt(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");V?V.openDialog():this.JSC$13592_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.P.computeHideBorder=function(){return this.isInEngagementPanel};
_.P.computeIsCompact=function(){return this.isInEngagementPanel};
_.P.computeUsesCompactLockup=function(V){return V==="BACKSTAGE_SURFACE_TYPE_HOME"||V==="BACKSTAGE_SURFACE_TYPE_SEARCH"||V==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||V==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||V==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||V==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeUsesFullLockup=function(){var V,D=(V=this.data)==null?void 0:V.post,f;V=(f=_.g(D,DkH))==null?void 0:f.surface;var n;f=(n=_.g(D,tPE))==null?void 0:n.originalPost;var t;if(n=V||((t=_.g(f,DkH))==null?void 0:t.surface))return!this.computeUsesCompactLockup(n)&&this.useUpdatedRepostUi;var J;return((J=_.g(D,tPE))==null?void 0:J.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.IG.Object.defineProperties(k5.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var V,D;return((D=_.g((V=this.data)==null?void 0:V.post,DkH))==null?void 0:D.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.useUpdatedRepostUi}}});
k5.prototype.onYtCommentModerationPanelEmpty=k5.prototype.onYtCommentModerationPanelEmpty;k5.prototype.onStampFinished=k5.prototype.onStampFinished;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],k5.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],k5.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],k5.prototype,"roundedContainer",void 0);_.S([_.q({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],k5.prototype,"hideBorder",void 0);_.S([_.q({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],k5.prototype,"isCompact",void 0);
_.S([_.q({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.p("design:type",Boolean)],k5.prototype,"usesFullLockup",void 0);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k5.prototype,"onStampFinished",null);
_.S([_.bU("ytd-comment-moderation-panel-empty"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],k5.prototype,"onYtCommentModerationPanelEmpty",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],k5.prototype,"isInEngagementPanel",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],k5.prototype,"useUpdatedRepostUi",null);
_.S([_.a({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],k5);
_.Y(k5,"ytd-backstage-post-thread-renderer",function(){if(pho!==void 0)return pho;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pho=V},{mode:1});var LxL;var st=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(st,_.E);st.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
st.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var V=this.data.thumbnail.thumbnails;this.isDarkTheme&&(V=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(V=_.nT(V,24,void 0,"height"))?V:void 0}};
st.prototype.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
st.prototype.computeHasText=function(){var V;return!((V=this.data)==null||!V.text)};
_.IG.Object.defineProperties(st.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.cS(this.bannerImageUrl))+'");'}}});
st.prototype.computeHasText=st.prototype.computeHasText;st.prototype.computeBannerImageUrl=st.prototype.computeBannerImageUrl;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],st.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],st.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],st.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],st.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",String)],st.prototype,"bannerImageUrl",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.p("design:type",Boolean)],st.prototype,"hasText",void 0);_.S([_.KI("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],st.prototype,"computeBannerImageUrl",null);
_.S([_.KI("data.text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],st.prototype,"computeHasText",null);_.S([_.R("bannerImageUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],st.prototype,"bannerStyle",null);_.S([_.a({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],st);
_.Y(st,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(LxL!==void 0)return LxL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return LxL=V},{mode:1});var IoU;var B_=function(){return _.E.apply(this,arguments)||this};
_.v(B_,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],B_.prototype,"data",void 0);_.S([_.a({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],B_);
_.Y(B_,"ytd-backstage-zero-state-renderer",function(){if(IoU!==void 0)return IoU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IoU=V},{mode:1});var OdF;var dt=function(){return _.E.apply(this,arguments)||this};
_.v(dt,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],dt.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],dt.prototype,"icon",void 0);_.S([_.a({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],dt);
_.Y(dt,"ytd-post-filter-zero-state-renderer",function(){if(OdF!==void 0)return OdF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OdF=V},{mode:1});var xbV;var MXY={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},u9=function(){return _.E.apply(this,arguments)||this};
_.v(u9,_.E);u9.prototype.configureRendererStamper=function(){return MXY};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],u9.prototype,"rendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],u9.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],u9.prototype,"icon",void 0);_.S([_.a({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],u9);
_.Y(u9,"ytd-post-scheduling-zero-state-renderer",function(){if(xbV!==void 0)return xbV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return xbV=V},{mode:1});var hzV;var NJ=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return V};
_.v(NJ,_.E);NJ.prototype.onTabsActivate=function(V){this.data&&this.data.tabs&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[V.detail.selected].navigationEndpoint})};
NJ.prototype.shouldShowTotalCount=function(V){return V&&V.totalCount!==void 0};
NJ.prototype.handleUpdatePostsTotalCountAction=function(V){var D=this.get(["data.tabs",1,"totalCount"]),f=this.get("updatePostsTotalCountAction.updateType",V);V=this.get("updatePostsTotalCountAction.number",V);D!==void 0&&f!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&V&&(f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(D)+V):f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(D)-V))};
_.IG.Object.defineProperties(NJ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var V=0,D=this.data.tabs.length;V<D;V++)if(this.data.tabs[V].selected)return V;return 0}}});
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],NJ.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],NJ.prototype,"rendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],NJ.prototype,"data",void 0);_.S([_.R("data.tabs"),_.p("design:type",Number),_.p("design:paramtypes",[])],NJ.prototype,"selected",null);_.S([_.a({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],NJ);
_.Y(NJ,"ytd-post-stream-filter-renderer",function(){if(hzV!==void 0)return hzV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hzV=V},{mode:1});var UbY;var ms=function(){return _.E.apply(this,arguments)||this};
_.v(ms,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ms.prototype,"kevlarBehaviors",void 0);_.S([_.q(),_.p("design:type",Object)],ms.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ms);
_.Y(ms,"ytd-channel-age-gate-renderer",function(){if(UbY!==void 0)return UbY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return UbY=V},{mode:1});var Vwl;_.zk("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var zu=function(){var V=_.E.apply(this,arguments)||this;V.data=null;return V};
_.v(zu,_.E);zu.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.IG.Object.defineProperties(zu.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?0:(D=V.title)==null?0:(f=D.runs)==null?0:f.length)?147:160}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zu.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],zu.prototype,"imageSizePx",null);_.S([_.a({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],zu);
_.Y(zu,"ytd-channel-owner-empty-state-renderer",function(){if(Vwl!==void 0)return Vwl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Vwl=V},{mode:1});var DDH;var fVl;var Rp=function(){var V=_.E.apply(this,arguments)||this;V.boundSubmitSearch=function(){V.submitSearch()};
V.boundClearSearch=function(){V.clearSearch()};
return V};
_.v(Rp,_.E);_.P=Rp.prototype;_.P.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]]"}}}}}};
_.P.toggleClearButton=function(){this.hideClearButton=N_9||!this.input.value};
_.P.submitOnEnterKeyUp=function(V){V.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.P.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.P.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.P.submit=function(){_.PA(this.hostElement,"search-query-changed",this.input.value)};
Rp.prototype.toggleClearButton=Rp.prototype.toggleClearButton;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Rp.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Rp.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Rp.prototype,"hideClearButton",void 0);_.S([_.q(),_.p("design:type",Object)],Rp.prototype,"boundSubmitSearch",void 0);_.S([_.q(),_.p("design:type",Object)],Rp.prototype,"boundClearSearch",void 0);_.S([_.Zv("#input"),_.p("design:type",Object)],Rp.prototype,"input",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rp.prototype,"toggleClearButton",null);
_.S([_.a({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Rp);
_.Y(Rp,"ytd-channel-switcher-search-box-renderer",function(){if(fVl!==void 0)return fVl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fVl=V},{mode:1});var n6F;var Cz=function(){var V=_.E.apply(this,arguments)||this;V.boundSubmit=function(){V.submit()};
return V};
_.v(Cz,_.E);_.P=Cz.prototype;_.P.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"}}}}};
_.P.ready=function(){var V=this;this.form.addEventListener("submit",function(D){return V.onSubmit(D)})};
_.P.onSubmit=function(V){V.preventDefault();return!1};
_.P.toggleClearButton=function(){this.hideClearButton=N_9||!this.input.value};
_.P.submitOnEnterKeyUp=function(V){V.keyCode===13&&this.submit()};
_.P.submit=function(){var V=this.data.endpoint,D=(0,_.sB.unsafeClone)(V);_.g(D,_.jL)?_.g(D,_.jL).query=this.input.value:_.g(D,_.ld)&&(_.g(D,_.ld).query=this.input.value);var f=_.g(D.commandMetadata,_.he);(f==null?0:f.url)?(f.url=_.qG(f.url,"query",this.input.value),_.PA(this.hostElement,"yt-navigate",{endpoint:D})):_.g(D,Evl)?(_.g(D,Evl).channelSwitcherQuery=this.input.value,_.DY().resolve(_.fH).resolveCommand(D,{form:{element:this.hostElement}})):(V=Error("Rh`"+JSON.stringify(V)),_.NG(V))};
_.P.getUrl=function(V){return this.get("commandMetadata.webCommandMetadata.url",V)};
Cz.prototype.toggleClearButton=Cz.prototype.toggleClearButton;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Cz.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Cz.prototype,"hideClearButton",void 0);
_.S([_.q(),_.p("design:type",Object)],Cz.prototype,"boundSubmit",void 0);_.S([_.Zv("#form"),_.p("design:type",HTMLFormElement)],Cz.prototype,"form",void 0);_.S([_.Zv("#input"),_.p("design:type",Object)],Cz.prototype,"input",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cz.prototype,"toggleClearButton",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Cz);
_.Y(Cz,"ytd-search-box-renderer",function(){if(n6F!==void 0)return n6F;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return n6F=V},{mode:2});var qJ=function(){var V=_.E.apply(this,arguments)||this;V.showSearchBox=!0;return V};
_.v(qJ,_.E);qJ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qJ.prototype,"showSearchBox",void 0);_.S([_.a({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],qJ);
_.Y(qJ,"ytd-channel-switcher-header-renderer",function(){if(DDH!==void 0)return DDH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return DDH=V},{mode:1});var twl;var P56;var Xe=function(){var V=_.E.apply(this,arguments)||this;V.isDisplayed=!0;return V};
_.v(Xe,_.E);_.P=Xe.prototype;_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.isDisplayed=!0};
_.P.computeType=function(V){return V||"UNKNOWN"};
_.P.onYtServiceRequestCompleted=function(V){V.stopPropagation();this.isDisplayed=!1};
_.P.onClose=function(){this.isDisplayed=!1};
Xe.prototype.onYtServiceRequestCompleted=Xe.prototype.onYtServiceRequestCompleted;Xe.prototype.dataChanged=Xe.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xe.prototype,"data",void 0);
_.S([_.q({computed:"computeType(data.type)",reflectToAttribute:!0}),_.p("design:type",String)],Xe.prototype,"type",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Xe.prototype,"isDisplayed",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xe.prototype,"dataChanged",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Xe.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Xe);
_.Y(Xe,"ytd-alert-with-button-renderer",function(){if(P56!==void 0)return P56;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return P56=V},{mode:1});var Et=function(){var V=_.E.apply(this,arguments)||this;V.noResult=!1;V.enableAlertBanner=!1;V.dismissedAlertBanner=!1;V.hideCreateChannelButton=!1;V.boundDismissAlertBanner=function(){V.dismissAlertBanner()};
V.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return V};
_.v(Et,_.E);_.P=Et.prototype;_.P.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.P.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.P.updateChannelSwitcherAction=function(V){var D;V=(D=_.g(V,dMo))==null?void 0:D.page;_.g(V,BTo)!==void 0&&(this.data=_.g(V,BTo))};
_.P.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]]"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.searchQueryChanged=function(V,D){if(this.data&&this.data.contents&&this.data.contents.length){V=[];var f=[];this.hideCreateChannelButton=this.noResult=!1;for(var n=document.querySelectorAll("ytd-account-item-renderer"),t=_.r(n),J=t.next();!J.done;J=t.next())J=J.value,f.push(J),J.style.display="block";this.resetRightBorder(f);if(D){this.hideCreateChannelButton=!0;for(f=1;f<this.data.contents.length;f++)if(J=this.data.contents[f],_.g(J,CYr)){var H=void 0,Q=void 0;t=(H=_.g(J,CYr))==null?void 0:(Q=
H.accountName)==null?void 0:Q.simpleText;Q=H=void 0;J=(H=_.g(J,CYr))==null?void 0:(Q=H.channelHandle)==null?void 0:Q.simpleText;(H=n[f-1])&&t&&_.TL(t,D)?V.push(H):_.c("enable_handle_search_on_channel_switcher")&&H&&J&&_.TL(J.toString(),D.toString())?V.push(H):H.style.display="none"}V.length===0&&(this.noResult=!0);this.resetRightBorder(V)}}};
_.P.resetRightBorder=function(V){for(var D=0;D<V.length;D++)V[D].style.borderRight=!this.hideCreateChannelButton&&(D+2)%3===0||this.hideCreateChannelButton&&(D+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.P.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.P.setShowSearchBox=function(V){if(V&&V.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var D=0;D<V.contents.length;D++)_.g(V.contents[D],_.fY)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.P.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.IG.Object.defineProperties(Et.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null?0:V.contents)}}});
Et.prototype.onContinuationItemsUpdated=Et.prototype.onContinuationItemsUpdated;Et.prototype.searchQueryChanged=Et.prototype.searchQueryChanged;Et.prototype.onDataChanged=Et.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Et.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],Et.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Et.prototype,"data",void 0);_.S([_.Zv("ytd-channel-switcher-header-renderer"),_.p("design:type",Object)],Et.prototype,"channelSwitcherHeaderRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],Et.prototype,"noResult",void 0);
_.S([_.q(),_.p("design:type",Object)],Et.prototype,"enableAlertBanner",void 0);_.S([_.q(),_.p("design:type",Object)],Et.prototype,"dismissedAlertBanner",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Et.prototype,"hideCreateChannelButton",void 0);_.S([_.R("data.contents"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Et.prototype,"isLoading",null);_.S([_.q(),_.p("design:type",Object)],Et.prototype,"boundDismissAlertBanner",void 0);
_.S([_.q({computed:"computeButtonOverride()"}),_.p("design:type",Object)],Et.prototype,"buttonOverride",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Et.prototype,"onDataChanged",null);_.S([_.bU("search-query-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],Et.prototype,"searchQueryChanged",null);
_.S([_.bU("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Et.prototype,"onContinuationItemsUpdated",null);_.S([_.a({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Et);
_.Y(Et,"ytd-channel-switcher-page-renderer",function(){if(twl!==void 0)return twl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return twl=V},{mode:1});var o6u;var JG6;var A7=function(){var V=_.E.apply(this,arguments)||this;V.images=[];V.selectedImageIndex=0;return V};
_.v(A7,_.E);_.P=A7.prototype;
_.P.ready=function(){_.kt(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.kt(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.kt(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.kt(this.JSC$13637_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.P.onThumbnailClick=function(V){if(V=V.event_.detail)this.selectedImageIndex=this.images.indexOf(V)};
_.P.updateImageThumbnails=function(V){V=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:V.event_.detail});this.images.splice(this.selectedImageIndex,1,V);this.images=[].concat(_.sz(this.images))};
_.P.cancelImageRepositions=function(){this.selectedImageIndex=0;_.PA(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.P.saveImageRepositions=function(){this.selectedImageIndex=0;_.PA(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.IG.Object.defineProperties(A7.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var V=this;return(this.images||[]).map(function(D,f){return{image:D,selected:f===V.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("ytd-backstage-image-preview-renderer"),_.p("design:type",Object)],A7.prototype,"JSC$13637_imagePreviewContainer",void 0);_.S([_.Zv(".thumbnail-images-container"),_.p("design:type",HTMLElement)],A7.prototype,"thumbnailImagesContainer",void 0);_.S([_.q(),_.p("design:type",Array)],A7.prototype,"images",void 0);
_.S([_.q(),_.p("design:type",Object)],A7.prototype,"repositionInstructions",void 0);_.S([_.q(),_.p("design:type",Object)],A7.prototype,"selectedImageIndex",void 0);_.S([_.R("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],A7.prototype,"thumbnailRendererDatas",null);_.S([_.R("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],A7.prototype,"selectedImageData",null);
_.S([_.a({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],A7);
_.Y(A7,"ytd-backstage-multi-image-reposition-renderer",function(){if(JG6!==void 0)return JG6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return JG6=V},{mode:1});var ap=function(V,D){_.jT.call(this);this.uploadUrl=V;this.channelId=D;this.imagesUploadData=[]};
_.v(ap,_.jT);ap.prototype.getAllUploadStatuses=function(){var V=this,D,f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,rGp(V),2);D=t.yieldResult;f=D.get("succeed");n=D.get("failed");return t.return(f.concat(n))})};
var wQP=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,rGp(V),2);D=n.yieldResult;f=D.get("failed");f.length>0&&HeE(V,f);return n.return(V.getAllUploadStatuses())})},rGp=function(V){var D,f,n,t,J,H,Q;
return _.w(function(T){if(T.nextAddress==1)return D=new Map,_.b(T,Promise.allSettled(V.imagesUploadData.map(function(y){return y.uploadPromise})),2);
f=T.yieldResult;n=[];t=_.r(f);for(J=t.next();!J.done;J=t.next())H=J.value,H.status==="fulfilled"&&n.push(H.value);Q=V.imagesUploadData.map(function(y){return y.image}).filter(function(y){return n.every(function(Z){return Z.id!==y.id})});
D.set("succeed",n);D.set("failed",Q);return T.return(D)})},HeE=function(V,D){D=_.r(D);
for(var f=D.next();!f.done;f=D.next()){var n=V;f=f.value;QZF(n,f.id)>=0&&n.cancel(f.id);var t=new T6F(f),J=_.F$6(n.uploadUrl,{"X-YouTube-ChannelId":n.channelId},f.imageBlob);t.transfer=J;t.uploadPromise=beP(J,f);n.imagesUploadData.push(t);J.run()}};
ap.prototype.cancel=function(V){var D=QZF(this,V);D!==-1&&((D=this.imagesUploadData[D].transfer)&&D.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(f){return f.image.id!==V}))};
var QZF=function(V,D){return V.imagesUploadData.findIndex(function(f){return f.image.id===D})},beP=function(V,D){return new Promise(function(f,n){V.listen("l",function(){var t=V.getResponseText();
t?(t=JSON.parse(t).encryptedBlobId,D.encryptedBlobId=t,f(D)):n("upload failed")});
V.listen("n",function(){n("upload failed")})})},T6F=function(V){this.image=V};var cWY=function(V,D,f,n,t){this.id=V;this.imageBlob=D;this.localImageSrc=f;this.naturalWidth=n;this.naturalHeight=t;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 KuV=[".jpeg",".jpg",".png"],Y5=function(){var V=_.E.apply(this,arguments)||this;V.showImagesPreview=!1;V.pollOptions=[];V.errorMessage="";V.optionPlaceholderText="";V.optionDefaultText="";V.JSC$13648_imageId=0;V.maxFileSizeMb=0;V.maxAspectRatio=0;V.invalidFileSizeError="";V.invalidAspectRatioError="";V.invalidFileTypeError="";V.imageSelector=new r0(null,"single_file",KuV);return V};
_.v(Y5,_.E);_.P=Y5.prototype;_.P.ready=function(){_.kt(this.imageSelector,"j",this.onImageSelect,!1,this);_.kt(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.kt(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.P.dataChanged=function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.cellTemplate)==null?void 0:D.onEmptyCellTap,ukF);if(f&&f.uploadUrl&&f.channelId){var n;this.maxFileSizeMb=((n=f.imageValidationInfo)==null?void 0:n.maxFileSizeMb)||0;var t;this.maxAspectRatio=((t=f.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0;var J;this.invalidFileSizeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileSizeError);var H;this.invalidAspectRatioError=this.getSimpleString((H=this.data)==
null?void 0:H.invalidAspectRatioError);var Q;this.invalidFileTypeError=this.getSimpleString((Q=this.data)==null?void 0:Q.invalidFileTypeError);this.uploadManager=new ap(f.uploadUrl,f.channelId)}};
_.P.onEditorInfoChange=function(){this.optionPlaceholderText=_.LA(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.LA(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.P.observeAddImageError=function(){this.errorMessage!==""&&_.PA(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.P.onPollOptionsChange=function(){for(var V=!1,D=[],f=0;f<this.pollOptions.length;f++){var n=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(f+1);this.pollOptions[f].placeholderText!==n?(V=!0,D.push(Object.assign({},this.pollOptions[f],{placeholderText:n}))):D.push(this.pollOptions[f])}V&&(this.pollOptions=D);this.isValid()?_.PA(this.hostElement,"yt-commentbox-post-enable"):_.PA(this.hostElement,"yt-commentbox-post-disable")};
_.P.createPollOptions=function(V){var D=[],f;V=(f=V==null?void 0:V.minPollOptions)!=null?f:0;for(f=0;f<V;f++)D.push(this.createPollOption());return D};
_.P.onImageSelect=function(V){var D=this,f,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1){if(D.selectedImageIndex===void 0)return T.jumpTo(0);f=V.files[0];D.errorMessage="";n=D.validateImage(f);if(n!=="")return D.errorMessage=n,T.return();t=new St(D.maxAspectRatio,!1,!0);return _.b(T,t.transform(f),3)}if(T.nextAddress!=4)return J=T.yieldResult,J.transformedData?J.invalidAspectRatio?(D.errorMessage=D.invalidAspectRatioError,T.return()):_.b(T,FbL(D.JSC$13648_imageId,V.files[0],J.transformedData),
4):(D.errorMessage=D.invalidFileTypeError,T.return());H=T.yieldResult;D.JSC$13648_imageId++;HeE(D.uploadManager,[H]);Q=Object.assign({},D.pollOptions[D.selectedImageIndex],{image:H});D.pollOptions.splice(D.selectedImageIndex,1,Q);D.refreshPollOptions();_.PA(D.hostElement,"yt-backstage-poll-image-select");_.yz(T)})};
_.P.validateImage=function(V){return V.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.P.refreshPollOptions=function(){this.pollOptions=[].concat(_.sz(this.pollOptions))};
_.P.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.sz(this.pollOptions),[this.createPollOption()]))};
_.P.onRemovePollOption=function(V){var D=this.pollOptions[V.model.index];D&&D.image&&this.uploadManager.cancel(D.image.id);this.pollOptions.splice(V.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.PA(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.P.onTextInput=function(){this.refreshPollOptions()};
_.P.onImageButtonClick=function(V){this.selectedImageIndex=V.model.index;this.imageSelector.click()};
_.P.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.P.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.P.saveImageRepositions=function(V){V=V.event_.detail;for(var D=0,f=[],n=_.r(this.pollOptions),t=n.next();!t.done;t=n.next())t=t.value,t.image!==void 0?(t=Object.assign({},t,{image:V[D]}),f.push(t),D++):f.push(t);this.showImagesPreview=!1;this.pollOptions=[].concat(_.sz(f))};
_.P.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 V=0,D=_.r(this.pollOptions),f=D.next();!f.done;f=D.next())if(f=f.value,f.optionText.trim()!==""||f.image!==void 0){if(!f.image||this.hasCustomOptionText&&f.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;V++}return V>=Number(this.editorInfo.minPollOptions)};
_.P.getAllUploadStatuses=function(){var V=this,D,f,n,t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,V.uploadManager.getAllUploadStatuses(),2);D=J.yieldResult;f=_.r(D);for(n=f.next();!n.done;n=f.next())if(t=n.value,t.encryptedBlobId===void 0)return J.return(wQP(V.uploadManager));return J.return(D)})};
_.P.getPostCreateOptions=function(){for(var V=[],D=_.r(this.pollOptions),f=D.next();!f.done;f=D.next())f=f.value,f.image!==void 0&&V.push({text:this.hasCustomOptionText?f.optionText:f.placeholderText,image:f.image});return V};
_.P.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.P.createButtonRenderer=function(V,D){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleString(V)}},isDisabled:D}};
_.P.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.P.computeThumbnailRendererData=function(V){return V?{image:V,selected:!1}:void 0};
_.P.getSimpleString=function(V){return _.LA(V)};
_.P.updateOptionTextFromBinding=function(V){if(V.target){var D=Array.from(_.Pt(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(V.target);if(D>=0){var f;this.pollOptions[D].optionText=(f=V.detail.value)!=null?f:""}}};
_.IG.Object.defineProperties(Y5.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var V,D;return this.pollOptions.length<((D=(V=this.editorInfo)==null?void 0:V.maxPollOptions)!=null?D:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(V){return V.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(V){return V.image}).map(function(V){return V.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(V){return V.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.data)==null?void 0:V.addOptionButtonText;return D?this.createButtonRenderer(D,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.data)==null?void 0:V.repositionImagesButtonLabel;return D?this.createButtonRenderer(D,!this.hasImages):void 0}}});
Y5.prototype.onPollOptionsChange=Y5.prototype.onPollOptionsChange;Y5.prototype.observeAddImageError=Y5.prototype.observeAddImageError;Y5.prototype.onEditorInfoChange=Y5.prototype.onEditorInfoChange;Y5.prototype.dataChanged=Y5.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("ytd-backstage-multi-image-reposition-renderer"),_.p("design:type",Object)],Y5.prototype,"imageRepositionContainer",void 0);
_.S([_.q(),_.p("design:type",Object)],Y5.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Y5.prototype,"editorInfo",void 0);_.S([_.q(),_.p("design:type",ap)],Y5.prototype,"uploadManager",void 0);_.S([_.q(),_.p("design:type",Object)],Y5.prototype,"showImagesPreview",void 0);_.S([_.q(),_.p("design:type",Array)],Y5.prototype,"pollOptions",void 0);_.S([_.q(),_.p("design:type",Object)],Y5.prototype,"errorMessage",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y5.prototype,"dataChanged",null);_.S([_.eY("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y5.prototype,"onEditorInfoChange",null);_.S([_.KI("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y5.prototype,"observeAddImageError",null);
_.S([_.eY("pollOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y5.prototype,"onPollOptionsChange",null);_.S([_.R("pollOptions","editorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"isAllowedToAddOption",null);_.S([_.R("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"hasImages",null);
_.S([_.R("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"imagesToReposition",null);_.S([_.R("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"hasCustomOptionText",null);_.S([_.R("data","isAllowedToAddOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"addOptionButton",null);_.S([_.R("data","hasImages"),_.p("design:type",Object),_.p("design:paramtypes",[])],Y5.prototype,"repositionImagesButton",null);
_.S([_.a({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Y5);
_.Y(Y5,"ytd-backstage-image-poll-editor-renderer",function(){if(o6u!==void 0)return o6u;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return o6u=V},{mode:2});var yGl={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 Zeu;var $5=function(){var V=_.E.apply(this,arguments)||this;V.a11yConfig=yGl;V.imageDisplayOffsetTop=0;V.imageDisplayOffsetLeft=0;V.pickerDisplayOffsetTop=0;V.pickerDisplayOffsetLeft=0;V.showPreviewContainer=!0;V.startPicker=!1;V.repositionOptional=!1;V.editOnlyMode=!1;V.savedImageDisplayOffsetTop=0;V.savedImageDisplayOffsetLeft=0;return V};
_.v($5,_.E);_.P=$5.prototype;_.P.created=function(){_.qH.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(V){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){V.detail.keyboardEvent.preventDefault();var D=0,f=0,n="";switch(V.detail.keyboardEvent.key){case "ArrowUp":gOY(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:D=this.imageHeight*.05*-1;break;case "ArrowDown":gOY(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
D=this.imageHeight*.05;break;case "ArrowLeft":gOY(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":gOY(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}n&&_.Zl(n)&&_.PA(this.hostElement,"iron-announce",{text:_.Zl(n)});if(f||D)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+D)),V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),V=_.Zl(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),V=_.Zl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})),V&&_.PA(this.hostElement,"iron-announce",{text:V})}};
_.P.getPreviewPosition=function(V,D,f,n){return Math.round(100*(V+D*.5-f)/n)};
_.P.calculateDisplayPosition=function(){var V=this.imageData.naturalWidth,D=this.imageData.naturalHeight;this.displayScale=Math.max(200/V,200/D);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var f=V*this.displayScale*this.imageData.previewCoordinates.left,n=D*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=D>V?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-f;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=V>D?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-n;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=V*this.displayScale;this.imageHeight=D*this.displayScale};
_.P.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.P.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.P.getSignedPosition=function(V,D,f){return D==="X"&&_.XB("HTML_DIR")==="rtl"?f==="-"?V+"px":V*-1+"px":f==="-"?V*-1+"px":V+"px"};
_.P.pickerMove=function(V){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var D=this.pickerOffsetX-V.clientX,f=this.pickerOffsetY-V.clientY;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-D))}};
_.P.pickerMoveStart=function(V){this.startPicker=!0;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var V=this.generateCropPreview();V&&_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-update",V)};
_.P.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.P.deleteImage=function(){_.PA(this.hostElement,"ytd-backstage-image-preview-delete")};
_.P.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.P.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var V=this.generateCropPreview();V&&_.PA(this.hostElement,"ytd-backstage-image-preview-coordinates-save",V)};
_.P.getPreviewOffset=function(V,D,f){return D&&V?(f==="X"&&_.XB("HTML_DIR")==="rtl"?300/D*V:300/D*V*-1)+"px":"0px"};
_.P.getSimpleText=function(V){return V?_.LA(V):""};
_.P.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}};
_.IG.Object.defineProperties($5.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Zl(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.Zl(this.a11yConfig.verticalRepositionInstruction)}V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Zl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.Zl(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 V,D,f=(V=this.instruction)==null?void 0:(D=V.previewInstruction)==null?void 0:D.editButtonLabel;return f?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t=this.editOnlyMode?(V=this.instruction)==null?void 0:(D=V.editInstruction)==null?void 0:D.saveImagesButtonLabel:(f=this.instruction)==null?void 0:(n=f.editInstruction)==null?void 0:n.saveButtonLabel;return t?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.instruction)==null?void 0:(D=V.previewInstruction)==null?void 0:D.deleteButtonLabel;return f?{size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.instruction)==null?void 0:(D=V.editInstruction)==null?void 0:D.cancelButtonLabel;V=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return f?{style:V,size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}: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"}}});
$5.prototype.onEditOnlyModeUpdate=$5.prototype.onEditOnlyModeUpdate;$5.prototype.onImageChange=$5.prototype.onImageChange;_.S([_.q(),_.p("design:type",cWY)],$5.prototype,"imageData",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"instruction",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"a11yConfig",void 0);_.S([_.q(),_.p("design:type",Number)],$5.prototype,"imageWidth",void 0);_.S([_.q(),_.p("design:type",Number)],$5.prototype,"imageHeight",void 0);
_.S([_.q(),_.p("design:type",Number)],$5.prototype,"displayScale",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"imageDisplayOffsetTop",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"imageDisplayOffsetLeft",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"pickerDisplayOffsetTop",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"pickerDisplayOffsetLeft",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"showPreviewContainer",void 0);
_.S([_.q(),_.p("design:type",Object)],$5.prototype,"startPicker",void 0);_.S([_.q(),_.p("design:type",Number)],$5.prototype,"pickerOffsetX",void 0);_.S([_.q(),_.p("design:type",Number)],$5.prototype,"pickerOffsetY",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"repositionOptional",void 0);_.S([_.q(),_.p("design:type",Object)],$5.prototype,"editOnlyMode",void 0);_.S([_.Zv("#picker-container"),_.p("design:type",HTMLElement)],$5.prototype,"JSC$13661_pickerContainer",void 0);
_.S([_.Zv("#picker"),_.p("design:type",HTMLElement)],$5.prototype,"picker",void 0);_.S([_.Zv("#preview-clipper"),_.p("design:type",HTMLElement)],$5.prototype,"previewClipper",void 0);_.S([_.Zv("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],$5.prototype,"JSC$13661_imageInBackground",void 0);_.S([_.Zv("#image-in-picker"),_.p("design:type",HTMLImageElement)],$5.prototype,"JSC$13661_imageInPicker",void 0);
_.S([_.Zv("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],$5.prototype,"JSC$13661_imageInPreviewClipper",void 0);_.S([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"altLabelForImage",null);_.S([_.R("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],$5.prototype,"pickerSize",null);
_.S([_.R("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],$5.prototype,"imageOrientationStyle",null);_.S([_.R("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],$5.prototype,"editButton",null);_.S([_.R("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],$5.prototype,"saveButton",null);_.S([_.R("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],$5.prototype,"deleteButton",null);
_.S([_.R("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],$5.prototype,"cancelButton",null);_.S([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],$5.prototype,"cropOffsetTop",null);_.S([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],$5.prototype,"cropOffsetLeft",null);
_.S([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"pickerBackgroundStyle",null);_.S([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"pickerDisplayStyle",null);_.S([_.R("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"imageInPickerStyle",null);
_.S([_.R("cropOffsetLeft","cropOffsetTop","pickerSize"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"previewClipperStyle",null);_.S([_.eY("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$5.prototype,"onImageChange",null);_.S([_.eY("editOnlyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$5.prototype,"onEditOnlyModeUpdate",null);
_.S([_.R("showPreviewContainer"),_.p("design:type",String),_.p("design:paramtypes",[])],$5.prototype,"pickerModeStyle",null);_.S([_.a({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],$5);
_.Y($5,"ytd-backstage-image-preview-renderer",function(){if(Zeu!==void 0)return Zeu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Zeu=V},{mode:1});var jZV;var lVu={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 GfE;var eWu;var i9=function(){var V=_.E.apply(this,arguments)||this;V.a11yConfig=lVu;V.imageDisplayOffsetTop=0;V.imageDisplayOffsetLeft=0;V.pickerDisplayOffsetTop=0;V.pickerDisplayOffsetLeft=0;V.cropCoordinatesSaved=!1;V.previewSize=0;V.startPicker=!1;V.repositionOptional=!1;return V};
_.v(i9,_.E);_.P=i9.prototype;_.P.created=function(){_.qH.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(V){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){V.detail.keyboardEvent.preventDefault();var D=0,f=0,n="";switch(V.detail.keyboardEvent.key){case "ArrowUp":vOF(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:D=this.imageHeight*.05*-1;break;case "ArrowDown":vOF(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
D=this.imageHeight*.05;break;case "ArrowLeft":vOF(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":vOF(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}n&&_.Zl(n)&&_.PA(this.hostElement,"iron-announce",{text:_.Zl(n)});if(f||D)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+D)),V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),V=_.Zl(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),V=_.Zl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})),V&&_.PA(this.hostElement,"iron-announce",{text:V})}};
_.P.getPreviewPosition=function(V,D,f,n){return Math.round(100*(V+D*.5-f)/n)};
_.P.displayImage=function(){var V=this.JSC$13672_pickerContainer.getBoundingClientRect().width,D=this.JSC$13672_pickerContainer.getBoundingClientRect().height,f=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),n=this.JSC$13672_imageInBackground.naturalWidth,t=this.JSC$13672_imageInBackground.naturalHeight;this.displayScale=Math.max(f/n,f/t);this.imageWidth=n*this.displayScale;this.imageHeight=t*this.displayScale;this.pickerDisplayOffsetLeft=(V-f)/2;this.pickerDisplayOffsetTop=
(D-f)/2;this.imageDisplayOffsetLeft=t>n?this.pickerDisplayOffsetLeft:(V-this.imageWidth)/2;this.imageDisplayOffsetTop=n>t?this.pickerDisplayOffsetTop:(D-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.P.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13672_imageInBackground.src=this.imageData.toString(),this.JSC$13672_imageInPicker.src=this.imageData.toString(),this.JSC$13672_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.P.getSignedPosition=function(V,D,f){return D==="X"&&_.XB("HTML_DIR")==="rtl"?f==="-"?V+"px":V*-1+"px":f==="-"?V*-1+"px":V+"px"};
_.P.pickerMove=function(V){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var D=this.pickerOffsetX-V.clientX,f=this.pickerOffsetY-V.clientY;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-D))}};
_.P.pickerMoveStart=function(V){this.startPicker=!0;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.P.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.PA(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.P.getPreviewOffset=function(V,D,f,n){return D&&V&&f?(n==="X"&&_.XB("HTML_DIR")==="rtl"?f/D*V:f/D*V*-1)+"px":"0px"};
_.P.getSimpleText=function(V){return V?_.LA(V):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var V=this.cropOffsetTop/this.imageHeight,D=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,f=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,n=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Pt(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.PA(this.hostElement,"yt-img-crop-coordinates-update",{top:V,right:D,bottom:f,left:n})}};
_.IG.Object.defineProperties(i9.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Zl(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.Zl(this.a11yConfig.verticalRepositionInstruction)}V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Zl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.Zl(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 V,D=(V=this.learnMore.runs[0])==null?void 0:V.navigationEndpoint,f;return((f=_.g(D,_.a2))==null?void 0:f.url)||void 0}}}});
i9.prototype.onImageDataChange=i9.prototype.onImageDataChange;_.S([_.q(),_.p("design:type",Object)],i9.prototype,"imageData",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"instruction",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"a11yConfig",void 0);_.S([_.q(),_.p("design:type",Number)],i9.prototype,"imageWidth",void 0);_.S([_.q(),_.p("design:type",Number)],i9.prototype,"imageHeight",void 0);_.S([_.q(),_.p("design:type",Number)],i9.prototype,"displayScale",void 0);
_.S([_.q(),_.p("design:type",Object)],i9.prototype,"imageDisplayOffsetTop",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"imageDisplayOffsetLeft",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"pickerDisplayOffsetTop",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"pickerDisplayOffsetLeft",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"cropCoordinatesSaved",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"previewSize",void 0);
_.S([_.q(),_.p("design:type",Object)],i9.prototype,"startPicker",void 0);_.S([_.q(),_.p("design:type",Number)],i9.prototype,"pickerOffsetX",void 0);_.S([_.q(),_.p("design:type",Number)],i9.prototype,"pickerOffsetY",void 0);_.S([_.q(),_.p("design:type",Object)],i9.prototype,"repositionOptional",void 0);_.S([_.Zv("#picker-container"),_.p("design:type",HTMLElement)],i9.prototype,"JSC$13672_pickerContainer",void 0);_.S([_.Zv("#picker"),_.p("design:type",HTMLElement)],i9.prototype,"picker",void 0);
_.S([_.Zv("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],i9.prototype,"JSC$13672_imageInBackground",void 0);_.S([_.Zv("#image-in-picker"),_.p("design:type",HTMLImageElement)],i9.prototype,"JSC$13672_imageInPicker",void 0);_.S([_.Zv("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],i9.prototype,"JSC$13672_imageInPreviewClipper",void 0);_.S([_.Zv("#full-image-as-preview"),_.p("design:type",HTMLImageElement)],i9.prototype,"imageAsPreview",void 0);
_.S([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"altLabelForImage",null);_.S([_.R("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],i9.prototype,"pickerSize",null);_.S([_.R("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],i9.prototype,"imageOrientationStyle",null);
_.S([_.R("instruction.previewInstruction.editButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],i9.prototype,"editButton",null);_.S([_.R("instruction.editInstruction.saveButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],i9.prototype,"saveButton",null);_.S([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],i9.prototype,"cropOffsetTop",null);
_.S([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],i9.prototype,"cropOffsetLeft",null);_.S([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"pickerBackgroundStyle",null);_.S([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"pickerDisplayStyle",null);
_.S([_.R("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"imageInPickerStyle",null);_.S([_.R("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"previewClipperStyle",null);_.S([_.KI("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i9.prototype,"onImageDataChange",null);
_.S([_.R("cropCoordinatesSaved"),_.p("design:type",String),_.p("design:paramtypes",[])],i9.prototype,"pickerModeStyle",null);_.S([_.R("instruction.editInstruction.learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],i9.prototype,"learnMore",null);_.S([_.R("learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],i9.prototype,"learnMoreUrl",null);_.S([_.zy({is:"yt-img-crop-picker",disableElementRegistration:!0})],i9);
_.Y(i9,"yt-img-crop-picker",function(){if(eWu===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;GfE===void 0&&(GfE=document.createElement("template"));var n=GfE;f.call(D,n.content.cloneNode(!0),V.content.firstChild);eWu=V}V=eWu;return V},{mode:2});var Sc=function(){var V=_.E.apply(this,arguments)||this;V.errorMessage="";V.hasPreview=!1;V.isBackstagePost=!1;V.dismissButtonOverrides={size:"XS"};return V};
_.v(Sc,_.E);_.P=Sc.prototype;_.P.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"}}}};
_.P.detached=function(){this.removeOverlay()};
_.P.setPreview=function(V){_.Pt(this.hostElement).querySelector("#preview-picker").imageData=V;this.hasPreview=!0;_.PA(this.hostElement,"yt-backstage-image-select-preview")};
_.P.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var V=_.Pt(this.hostElement).querySelector("#dropzone");V.classList.remove("dragover");V.classList.remove("error");_.PA(this.hostElement,"yt-backstage-image-select-cancel")};
_.P.setupOverlay=function(){var V=this.imageUploadEndpoint;this.removeOverlay();if(V&&V.imageValidationInfo){var D=_.Pt(this.hostElement).querySelector("#dropzone"),f=_.Pt(this.hostElement).querySelector("#select");this.overlay=new p9(V.uploadUrl,V.channelId,V.imageValidationInfo.maxFileSizeMb,V.imageValidationInfo.allowedMaxAspectRatio,D,f,!0);_.kt(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.kt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.kt(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.kt(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.kt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.P.removeOverlay=function(){this.overlay&&(_.ZU(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.ZU(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.ZU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.ZU(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.ZU(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.P.onDragOver=function(V){var D=_.Pt(this.hostElement).querySelector("#dropzone");_.JA(D,"dragover",V.value)};
_.P.onPreview=function(V){this.setPreview(V.value)};
_.P.onImageError=function(V){if(V.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var D;V=(D=this.data)==null?void 0:D.fileSizeError}else if(V.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var f;V=(f=this.data)==null?void 0:f.invalidError}else if(V.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var n;V=(n=this.data)==null?void 0:n.invalidAspectRatioError}else return;this.errorMessage=_.LA(V);_.Pt(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.P.onImageAlert=function(V){this.onImageError(V)};
_.P.uploadPromise=function(){var V=this,D=this.overlay&&this.overlay.uploadPromise();if(D)return D.catch(function(){throw Error(V.data?_.LA(V.data.uploadFailureError):"");})};
_.IG.Object.defineProperties(Sc.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var V,D;if((V=this.data)==null?0:(D=V.icon)==null?0:D.iconType)return _.Qa(this.data.icon.iconType)}}});
Sc.prototype.setupOverlay=Sc.prototype.setupOverlay;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Sc.prototype,"rendererStamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sc.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Sc.prototype,"imageUploadEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],Sc.prototype,"errorMessage",void 0);
_.S([_.q(),_.p("design:type",p9)],Sc.prototype,"overlay",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Sc.prototype,"hasPreview",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Sc.prototype,"isBackstagePost",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sc.prototype,"selectionCancel",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sc.prototype,"previewCancel",null);
_.S([_.R("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sc.prototype,"icon",null);_.S([_.q(),_.p("design:type",Object)],Sc.prototype,"dismissButtonOverrides",void 0);_.S([_.KI("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sc.prototype,"setupOverlay",null);_.S([_.a({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Sc);
_.Y(Sc,"ytd-backstage-image-select-renderer",function(){if(jZV!==void 0)return jZV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return jZV=V},{mode:1});var cGl;var Ful;var W_=function(){var V=_.E.apply(this,arguments)||this;V.selected=!1;return V};
_.v(W_,_.E);_.P=W_.prototype;_.P.computeSelected=function(V){return V==null?void 0:V.selected};
_.P.computeTransform=function(V,D,f){var n,t,J=(t=(n=this.imageContainer)==null?void 0:n.getBoundingClientRect())!=null?t:{width:0,height:0};n=Math.max(J.width/D,J.height/f);f=f*n*V.top;return"translateX("+this.getSignedPosition(D*n*V.left,"X","-")+") translateY("+this.getSignedPosition(f,"Y","-")+")"};
_.P.getSignedPosition=function(V,D,f){return D==="X"&&_.XB("HTML_DIR")==="rtl"?f==="-"?V+"px":V*-1+"px":f==="-"?V*-1+"px":V+"px"};
_.P.onClick=function(){var V;_.PA(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(V=this.data)==null?void 0:V.image)};
_.P.onKeyPress=function(V){if(V.keyCode===13)this.onClick()};
_.IG.Object.defineProperties(W_.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.image)==null?void 0:D.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.image){var D;V=(D=this.data)==null?void 0:D.image;return V.previewCoordinates.top!==0||V.previewCoordinates.left!==0?(D=this.computeTransform(V.previewCoordinates,V.naturalWidth,V.naturalHeight),V.naturalHeight>=V.naturalWidth?"width:inherit;transform:"+D+";":"height:inherit;transform:"+D+";"):V.naturalHeight>=V.naturalWidth?"width:inherit;":"height:inherit;"}}}});
W_.prototype.onKeyPress=W_.prototype.onKeyPress;_.S([_.Zv(".image-container"),_.p("design:type",HTMLElement)],W_.prototype,"imageContainer",void 0);_.S([_.q(),_.p("design:type",Object)],W_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.p("design:type",Object)],W_.prototype,"selected",void 0);_.S([_.R("data.image"),_.p("design:type",Object),_.p("design:paramtypes",[])],W_.prototype,"thumbnailUrl",null);
_.S([_.R("data.image","data.image.previewCoordinates"),_.p("design:type",Object),_.p("design:paramtypes",[])],W_.prototype,"thumbnailStyle",null);_.S([_.bU("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],W_.prototype,"onKeyPress",null);_.S([_.a({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],W_);
_.Y(W_,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Ful!==void 0)return Ful;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Ful=V},{mode:2});var pz=function(V,D,f){f=f===void 0?!1:f;_.jT.call(this);var n=this;this.dropZoneOverlay=new JT(V);this.selectOverlay=f?new r0(D,"multiple_file",["image/*"]):new r0(D,"single_file",["image/*"]);this.handler=new _.fl(this);_.wX(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(D,"click",function(){n.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.v(pz,_.jT);pz.prototype.onChange=function(V){var D;(D=V.files)!=null&&D.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:V.files}))};var Lz=function(){var V=_.E.apply(this,arguments)||this;V.addImageErrorMessage="";V.errorMessage="";V.images=[];V.selectedImageIndex=0;V.modern=_.c("web_modern_buttons");V.maxNumImagesPerPost=_.tU("max_num_images_per_post_web_ui");V.JSC$13687_imageId=0;return V};
_.v(Lz,_.E);_.P=Lz.prototype;_.P.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.PA(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.P.observeDragToReorder=function(){var V=this;if(this.showImagesPreview){var D,f=q9F(_.MP.getInstance(),(D=this.data)==null?void 0:D.dragToReorderTooltip);_.dm.addLowPriorityJob(function(){_.wN(V.hostElement,f,V.thumbnailDragDropArea)})}};
_.P.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}}};
_.P.computeThumbnail=function(V){return(V==null?void 0:V.localImageSrc)||void 0};
_.P.onRendererstamperFinished=function(){_.vSo(this.ytReorderableBehavior,_.Pt(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Pt(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.P.handleDrop=function(V){var D=V.currDragItem;if(D!=null&&D.data){V=this.images[this.selectedImageIndex];var f=D.data.image,n=this.images.indexOf(f)||0;D=_.$F(D.parentNode.children,D);this.images.splice(n,1);this.images.splice(D,0,f);this.images=[].concat(_.sz(this.images));this.selectedImageIndex=this.images.indexOf(V)}};
_.P.setUpImagePicker=function(){var V=this.imageUploadEndpoint;V&&V.imageValidationInfo&&(this.uploadManager=new ap(V.uploadUrl,V.channelId),this.initialPicker||(this.initialPicker=new pz(this.dropzone,this.selectLink,!0),_.kt(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new pz(this.addImageButtonContainer,this.addImageSelectButton),_.kt(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.kt(this.JSC$13687_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.kt(this.JSC$13687_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.kt(_.Pt(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.P.detached=function(){this.initialPicker&&(_.ZU(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.ZU(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.P.onInitialSelectImages=function(V){var D=this;return _.w(function(f){return _.b(f,D.onSelectImages(V,!1),0)})};
_.P.onAddImage=function(V){var D=this;return _.w(function(f){return _.b(f,D.onSelectImages(V,!0),0)})};
_.P.onSelectImages=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x;return _.w(function(oY){switch(oY.nextAddress){case 1:D?f.addImageErrorMessage="":(f.images=[],f.errorMessage="");n=V.detail;t=f.validateImages([].concat(_.sz(n)));if(t!=="")return D?f.addImageErrorMessage=t:f.errorMessage=t,oY.return();J=[].concat(_.sz(n)).map(function(wZ){return(new St(f.maxAspectRatio,!1,!0)).transform(wZ)});
return _.b(oY,Promise.allSettled(J),2);case 2:H=oY.yieldResult,Q=_.r(H.entries()),T=Q.next();case 3:if(T.done){oY.jumpTo(5);break}y=T.value;Z=_.r(y);l=Z.next().value;G=Z.next().value;F=l;k=G;if(k.status!=="fulfilled"){C=z=d=void 0;D?f.addImageErrorMessage=_.LA((d=f.data)==null?void 0:d.invalidError):f.errorMessage=f.errorMessage===""?_.LA((z=f.data)==null?void 0:z.invalidError):_.LA((C=f.data)==null?void 0:C.multiFileError);oY.jumpTo(4);break}A=k.value;A.cropped&&_.PA(f.hostElement,"yt-backstage-multi-image-cropped");
if(A.invalidAspectRatio){I=W=O=void 0;D?f.addImageErrorMessage=_.LA((O=f.data)==null?void 0:O.invalidAspectRatioError):f.errorMessage=f.errorMessage===""?_.LA((W=f.data)==null?void 0:W.invalidAspectRatioError):_.LA((I=f.data)==null?void 0:I.multiFileError);oY.jumpTo(4);break}return _.b(oY,FbL(f.JSC$13687_imageId,V.detail[F],A.transformedData),8);case 8:x=oY.yieldResult,f.images.push(x),f.JSC$13687_imageId++;case 4:T=Q.next();oY.jumpTo(3);break;case 5:if(f.errorMessage!==""||f.addImageErrorMessage!==
"")return oY.return();D?HeE(f.uploadManager,[f.images[f.images.length-1]]):HeE(f.uploadManager,f.images);f.images=[].concat(_.sz(f.images));f.selectedImageIndex=D?Math.max(f.images.length-1,0):0;_.PA(f.hostElement,"yt-backstage-multi-image-select");_.yz(oY)}})};
_.P.onThumbnailClick=function(V){if(V=V.event_.detail)this.selectedImageIndex=this.images.indexOf(V)};
_.P.validateImages=function(V){if(V.length>this.maxNumImagesPerPost){var D;return _.LA((D=this.data)==null?void 0:D.multiImageExceedMaxImageCountError)}var f=1048576*this.maxFileSizeMb;V=V.filter(function(J){return J.size>f}).length;
if(V===0)return"";var n,t;V=V>1?(n=this.data)==null?void 0:n.multiFileError:(t=this.data)==null?void 0:t.fileSizeError;return _.LA(V)};
_.P.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.sz(this.images));this.selectedImageIndex=0};
_.P.repositionImage=function(V){this.images[this.selectedImageIndex].previewCoordinates=V.event_.detail;this.images=[].concat(_.sz(this.images))};
_.P.getAllUploadStatuses=function(){var V=this,D,f,n,t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,V.uploadManager.getAllUploadStatuses(),2);D=J.yieldResult;f=_.r(D);for(n=f.next();!n.done;n=f.next())if(t=n.value,t.encryptedBlobId===void 0)return J.return(wQP(V.uploadManager));return J.return(D)})};
_.P.hasImages=function(){return this.images.length>0};
_.P.cancel=function(){for(var V=this.uploadManager,D=_.r(V.imagesUploadData),f=D.next();!f.done;f=D.next())V.cancel(f.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.PA(this.hostElement,"yt-backstage-multi-image-cancel")};
_.IG.Object.defineProperties(Lz.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.imageUploadEndpoint)==null?void 0:(D=V.imageValidationInfo)==null?void 0:D.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.imageUploadEndpoint)==null?void 0:(D=V.imageValidationInfo)==null?void 0:D.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var V,D;if((V=this.data)==null?0:(D=V.icon)==null?0:D.iconType)return _.Qa(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.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 V=this;return(this.images||[]).map(function(D,f){return{renderer:{image:D,selected:f===V.selectedImageIndex}}})}}});
Lz.prototype.setUpImagePicker=Lz.prototype.setUpImagePicker;Lz.prototype.onRendererstamperFinished=Lz.prototype.onRendererstamperFinished;Lz.prototype.observeDragToReorder=Lz.prototype.observeDragToReorder;Lz.prototype.observeAddImageError=Lz.prototype.observeAddImageError;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Lz.prototype,"rendererStamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.kdE),_.p("design:type",Object)],Lz.prototype,"ytReorderableBehavior",void 0);_.S([_.Zv("#dropzone"),_.p("design:type",HTMLElement)],Lz.prototype,"dropzone",void 0);_.S([_.Zv("#select-link"),_.p("design:type",HTMLElement)],Lz.prototype,"selectLink",void 0);_.S([_.Zv("#thumbnail-drag-drop-area"),_.p("design:type",HTMLElement)],Lz.prototype,"thumbnailDragDropArea",void 0);_.S([_.Zv("#add-image-button-container"),_.p("design:type",HTMLElement)],Lz.prototype,"addImageButtonContainer",void 0);
_.S([_.Zv("#add-image-button"),_.p("design:type",HTMLElement)],Lz.prototype,"addImageSelectButton",void 0);_.S([_.Zv("#image-preview-container"),_.p("design:type",Object)],Lz.prototype,"JSC$13687_imagePreviewContainer",void 0);_.S([_.q(),_.p("design:type",Object)],Lz.prototype,"addImageErrorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],Lz.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Lz.prototype,"errorMessage",void 0);
_.S([_.q(),_.p("design:type",Object)],Lz.prototype,"imageUploadEndpoint",void 0);_.S([_.q(),_.p("design:type",Array)],Lz.prototype,"images",void 0);_.S([_.q(),_.p("design:type",pz)],Lz.prototype,"initialPicker",void 0);_.S([_.q(),_.p("design:type",pz)],Lz.prototype,"addImagePicker",void 0);_.S([_.q(),_.p("design:type",ap)],Lz.prototype,"uploadManager",void 0);_.S([_.q(),_.p("design:type",Object)],Lz.prototype,"selectedImageIndex",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lz.prototype,"maxNumImagesPerPost",void 0);_.S([_.R("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],Lz.prototype,"maxAspectRatio",null);_.S([_.R("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],Lz.prototype,"maxFileSizeMb",null);
_.S([_.R("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"dropIcon",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"selectionCancel",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"previewCancel",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"dataForAddImageButton",null);
_.S([_.R("errorMessage"),_.p("design:type",String),_.p("design:paramtypes",[])],Lz.prototype,"dropzoneClass",null);_.S([_.R("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lz.prototype,"showImagesPreview",null);_.S([_.R("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lz.prototype,"containMaxImages",null);_.S([_.KI("addImageErrorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"observeAddImageError",null);
_.S([_.KI("showImagesPreview"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"observeDragToReorder",null);_.S([_.R("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lz.prototype,"selectedImageData",null);_.S([_.R("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],Lz.prototype,"thumbnailRenderers",null);
_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"onRendererstamperFinished",null);_.S([_.KI("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lz.prototype,"setUpImagePicker",null);_.S([_.a({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Lz);
_.Y(Lz,"ytd-backstage-multi-image-select-renderer",function(){if(cGl!==void 0)return cGl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return cGl=V},{mode:1});var g6E;var v6Y;var kfu;var Ip=function(){var V=_.E.apply(this,arguments)||this;V.boundCaptureFocus=function(D){V.onCaptureFocus(D)};
return V};
_.v(Ip,_.E);_.P=Ip.prototype;_.P.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.P.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.P.onCaptureFocus=function(V){_.Os(V).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.P.getIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
_.P.onSelect=function(){var V;if((V=this.data)==null?0:V.onSelectCommand)if(_.c("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var D;((D=_.g(this.data.onSelectCommand.commandMetadata,_.he))==null?0:D.url)?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.DY().resolve(_.fH).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.IG.Object.defineProperties(Ip.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.LA(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}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ip.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ip.prototype,"data",void 0);_.S([_.Zv("#item"),_.p("design:type",HTMLElement)],Ip.prototype,"item",void 0);_.S([_.R("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],Ip.prototype,"label",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ip.prototype,"value",null);_.S([_.a({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Ip);
_.Y(Ip,"ytd-privacy-dropdown-item-renderer",function(){if(kfu!==void 0)return kfu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kfu=V},{mode:1});var Ot=function(){var V=_.E.apply(this,arguments)||this;V.value="";V.label="";V.disabled=!1;return V};
_.v(Ot,_.E);_.P=Ot.prototype;_.P.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"}}}};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.P.dataChanged=function(){this.reset()};
_.P.valueChanged=function(){var V;if(this.value&&(V=this.data)!=null&&V.entries){V=_.r(this.data.entries);for(var D=V.next();!D.done;D=V.next())if((D=this.getRendererForEntry(D.value))&&this.getItemRendererValue(D)===this.value){this.label=this.ytComponentBehavior.getSimpleString(D.label);break}}};
_.P.setInitialLabel=function(){if(this.data&&this.data.entries)for(var V=_.r(this.data.entries),D=V.next();!D.done;D=V.next())if(D=this.getRendererForEntry(D.value)){if(D.isSelected){this.label=this.ytComponentBehavior.getSimpleString(D.label);break}this.data.label&&(this.label=this.data.label)}};
_.P.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var V=_.r(this.data.entries),D=V.next();!D.done;D=V.next()){D=this.getRendererForEntry(D.value);var f=void 0;if((f=D)==null?0:f.isSelected)return this.getItemRendererValue(D)||-1}return-1};
_.P.getItemRendererValue=function(V){return"stringValue"in V||"int32Value"in V?V.stringValue||V.int32Value||null:null};
_.P.getRendererForEntry=function(V){return V.dropdownItemRenderer||V.privacyDropdownItemRenderer||V.navigationDropdownItemRenderer||null};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("value-changed",this.value))};
_.P.updateValueFromBinding=function(V){this.value=V.detail.value};
Ot.prototype.valueChangedForBinding=Ot.prototype.valueChangedForBinding;Ot.prototype.valueChanged=Ot.prototype.valueChanged;Ot.prototype.dataChanged=Ot.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ot.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Ot.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ot.prototype,"value",void 0);_.S([_.q(),_.p("design:type",Object)],Ot.prototype,"label",void 0);_.S([_.Zv("#entries"),_.p("design:type",Object)],Ot.prototype,"entries",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ot.prototype,"disabled",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ot.prototype,"dataChanged",null);
_.S([_.eY("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ot.prototype,"valueChanged",null);_.S([_.KI("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ot.prototype,"valueChangedForBinding",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Ot);
_.Y(Ot,"ytd-flat-dropdown-renderer",function(){if(v6Y!==void 0)return v6Y;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return v6Y=V},{mode:1});var sZ6;var x5=function(){var V=_.E.apply(this,arguments)||this;V.quizOptions=[];V.explanationPlaceholderText="";V.optionPlaceholderText="";V.correctAnswerIndex=-1;V.isMarkAnswerTooltipShown=!1;V.timer=0;return V};
_.v(x5,_.E);_.P=x5.prototype;_.P.dataChanged=function(){this.optionPlaceholderText=_.LA(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.LA(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.P.onMarkCorrectAnswer=function(V){var D,f=((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[V.model.index]=Object.assign({},this.quizOptions[V.model.index],{explanationText:f,isCorrect:!0});this.correctAnswerIndex=V.model.index;this.quizOptions=[].concat(_.sz(this.quizOptions))};
_.P.updatePlaceholderTexts=function(){for(var V=!1,D=[],f=0;f<this.quizOptions.length;f++){var n=this.optionPlaceholderText+" "+(f+1),t=void 0;((t=this.quizOptions[f])==null?void 0:t.placeholderText)!==n?(V=!0,D.push(Object.assign({},this.quizOptions[f],{placeholderText:n}))):D.push(this.quizOptions[f])}V&&(this.quizOptions=D);this.isValid()?_.PA(this.hostElement,"yt-commentbox-post-enable"):_.PA(this.hostElement,"yt-commentbox-post-disable")};
_.P.getSimpleString=function(V){return _.LA(V)};
_.P.createQuizOptions=function(V){var D=[],f;V=(f=V==null?void 0:V.minQuizOptions)!=null?f:0;for(f=0;f<V;f++)D.push(this.createQuizOption());return D};
_.P.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.sz(this.quizOptions),[this.createQuizOption()]))};
_.P.onInput=function(){this.quizOptions=[].concat(_.sz(this.quizOptions))};
_.P.onExplanationInput=function(){_.PA(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.P.onRemoveQuizOption=function(V){this.quizOptions.splice(V.model.index,1);V.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:V.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.sz(this.quizOptions));this.quizOptions.length===0&&_.PA(this.hostElement,"yt-quiz-attachment-dismiss")};
_.P.updateHintRenderer=function(){var V=this;clearTimeout(this.timer);this.timer=setTimeout(function(){V.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.P.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var V=0,D=0,f=_.r(this.quizOptions),n=f.next();!n.done;n=f.next()){n=n.value;var t=void 0;if(((t=n.optionText)==null?void 0:t.trim())!==""||n.isCorrect){n.isCorrect&&D++;t=void 0;if(this.hasCustomOptionText&&((t=n.optionText)==null?void 0:t.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;V++}}return V>=
Number(this.editorInfo.minQuizOptions)&&D===1};
_.P.getPostCreateOptions=function(){for(var V=[],D=_.r(this.quizOptions),f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;((n=f.optionText)==null?void 0:n.trim())!==""&&V.push({pollOption:{text:f.optionText,explanation:f.explanationText},isCorrect:f.isCorrect})}return V};
_.P.getExplanationText=function(){var V;return((V=this.quizOptions[this.correctAnswerIndex])==null?void 0:V.explanationText)||""};
_.P.maybeDisplayMarkAnswerEduToolTip=function(){var V,D,f,n,t,J,H;this.shouldShowMarkAnswerTooltip()&&((V=this.editorInfo)==null?0:(D=V.markAnswerButton)==null?0:(f=D.buttonRenderer)==null?0:(n=f.hint)==null?0:(t=n.hintRenderer)==null?0:(J=t.content)==null?0:(H=J.bubbleHintRenderer)==null?0:H.text)&&(_.MP.getInstance(),V=h6(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,(V==null?void 0:V.length)>0&&this.optionSelectors&&_.Km(V[0],this.optionSelectors[0]))};
_.P.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var V=0,D=_.r(this.quizOptions),f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;((n=f.optionText)==null?void 0:n.trim())!==""&&V++;if(f.isCorrect)return!1}return V<2?!1:!0};
_.P.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.P.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.P.updateOptionTextFromBinding=function(V){if(V.target){var D=Array.from(_.Pt(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(V.target);if(D>=0){var f;this.quizOptions[D].optionText=(f=V.detail.value)!=null?f:""}}};
_.IG.Object.defineProperties(x5.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.editorInfo)==null?void 0:(D=V.addOptionButton)==null?void 0:D.buttonRenderer;f&&(f.style="STYLE_SUGGESTIVE",f.size="SIZE_SMALL",f.isDisabled=!this.isAllowedToAddOption);return(f==null?0:f.text)?f:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var V,D;return this.quizOptions.length<((D=(V=this.editorInfo)==null?void 0:V.maxQuizOptions)!=null?D:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(V){var D;return(D=V.optionText)==null?void 0:D.trim()})}}});
x5.prototype.updatePlaceholderTexts=x5.prototype.updatePlaceholderTexts;x5.prototype.dataChanged=x5.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],x5.prototype,"editorInfo",void 0);_.S([_.q(),_.p("design:type",Array)],x5.prototype,"quizOptions",void 0);_.S([_.q(),_.p("design:type",Object)],x5.prototype,"explanationPlaceholderText",void 0);_.S([_.jY(".option-selector-button"),_.p("design:type",Array)],x5.prototype,"optionSelectors",void 0);
_.S([_.eY("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x5.prototype,"dataChanged",null);_.S([_.R("editorInfo","isAllowedToAddOption","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],x5.prototype,"addAnswerButton",null);_.S([_.R("editorInfo","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],x5.prototype,"isAllowedToAddOption",null);
_.S([_.eY("quizOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x5.prototype,"updatePlaceholderTexts",null);_.S([_.R("quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],x5.prototype,"hasCustomOptionText",null);_.S([_.a({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],x5);
_.Y(x5,"ytd-backstage-quiz-editor-renderer",function(){if(sZ6!==void 0)return sZ6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return sZ6=V},{mode:2});var B6F;var dDU=(vC.FIRSTDAYOFWEEK+1)%7;var uUL;var N6u=[],mDF=0,zWF=0;mDF=0;zWF=24;if(.25*(zWF-mDF)<0)uUL=[];else{for(var RWP=mDF;RWP<zWF;RWP+=.25)N6u.push(RWP);uUL=N6u}var C5P=uUL.map(function(V){V=V*60*60;return{secondsSinceMidnight:V,text:(new Ss(7)).format(new Date(0,0,0,0,0,V))}});var qJp;var MJ=function(){var V=_.E.apply(this,arguments)||this;V.skipNextOpenDialog=!1;V.errorMessage="";return V};
_.v(MJ,_.E);_.P=MJ.prototype;_.P.attached=function(){var V=this,D=new MutationObserver(function(){V.JSC$13730_calendarMain.scrollHeight>0&&(D.disconnect(),V.calendarConfig&&V.calendarConfig.selectedDate&&V.scrollToDate())});
D.observe(this.JSC$13730_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){D.disconnect()},1E3)};
_.P.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.P.onDateTextChange=function(){if(this.calendarConfig){var V=this.validateDateText();V.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(V.details)):this.textbox.setAttribute("invalid","")}};
_.P.handleDayClick=function(V){V.model.day.date&&(this.commitDate(V.model.day.date),this.dialog.close())};
_.P.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var V=RHc(this.calendarConfig.selectedDate,this.renderData);V!==void 0&&this.JSC$13730_calendarMain.scrollToIndex(V)}};
_.P.scrollToNextMonth=function(){this.JSC$13730_calendarMain.scrollToIndex(this.JSC$13730_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$13730_calendarMain.firstVisibleIndex===0&&this.JSC$13730_calendarMain.scrollTo(0,0);this.JSC$13730_calendarMain.scrollToIndex(this.JSC$13730_calendarMain.firstVisibleIndex-1)};
_.P.onFormSubmit=function(V){V.preventDefault();this.calendarConfig&&(V=this.validateDateText(),V.isValid&&(this.commitDate(V.details),this.dialog.close()))};
_.P.onEscOrClickingOutside=function(V){V=V.detail.path&&!!V.detail.path.length&&V.detail.path[0];if(V.classList.contains("ytd-calendar-date-picker")){V===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var D=0;D<this.dropdownButton.children.length;D++)this.dropdownButton.children[D]===V&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}V=this.textbox.value!==this.dateText;D=this.validateDateText();V&&D.isValid&&this.commitDate(D.details);this.dialog.close();this.textbox.value=
this.dateText};
_.P.commitDate=function(V){this.calendarConfig&&(this.set("calendarConfig.selectedDate",V),_.PA(this.hostElement,"ytd-calendar-date-selected",V))};
_.P.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var V=this.textbox.value;var D=new Date;V=(new UyL(2)).parse(V,D,{validate:!0})===V.length?my9(D):void 0;if(!V)return this.errorMessage=_.Zl("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};D=this.calendarConfig.start;var f=this.calendarConfig.end;if(sLL(V,D))return this.errorMessage=_.Zl("ENTER_DATE_OR_LATER",{allowed_date:NzZ(D)}),{isValid:!1,details:void 0};if(sLL(f,V))return this.errorMessage=
_.Zl("ENTER_DATE_OR_EARLIER",{allowed_date:NzZ(f)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:V}};
_.IG.Object.defineProperties(MJ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?NzZ(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var V=this.calendarConfig,D=[],f=0;f<7;f++)D.push(vC.NARROWWEEKDAYS[(f+dDU)%7]);f=[];for(var n=new Date(V.start.year,V.start.month);n.getFullYear()<V.end.year||n.getFullYear()===V.end.year&&n.getMonth()<=V.end.month;){var t=f,J=t.push,H=n.getFullYear(),Q=n.getMonth(),T=V,y=void 0,Z=[],l=Object.freeze({extraCssClass:"invisible",debugClass:""}),G=new Date(H,Q),F=my9(G);G=G.getDay();for(var k=my9(new Date);F.month===
Q;){G!==dDU&&y||(y=Array.from({length:7}).fill(l),Z.push(y));var d={date:{year:H,month:Q,day:F.day},extraCssClass:"",debugClass:""};T.selectedDate&&d.date&&kDU(d.date,T.selectedDate)&&(d.extraCssClass+=" selected");if(sLL(F,T.start)||sLL(T.end,F))d.extraCssClass+=" disabled";kDU(F,k)&&(d.extraCssClass+=" today");d.extraCssClass=d.extraCssClass.trim();y[(G-dDU+7)%7]=d;F=dyU(F);G=(G+1)%7}J.call(t,{weeks:Z,monthLabel:vC.SHORTMONTHS[Q]+" "+H,year:H,month:Q,monthLabelExtraCssClass:Z[0][2]===l?"shift-down-label":
""});n.setMonth(n.getMonth()+1)}return{months:f,daysOfWeekLabel:D}}}}});
MJ.prototype.onEscOrClickingOutside=MJ.prototype.onEscOrClickingOutside;MJ.prototype.scrollToDate=MJ.prototype.scrollToDate;_.S([_.q(),_.p("design:type",Object)],MJ.prototype,"calendarConfig",void 0);_.S([_.q(),_.p("design:type",Object)],MJ.prototype,"skipNextOpenDialog",void 0);_.S([_.q(),_.p("design:type",Object)],MJ.prototype,"errorMessage",void 0);_.S([_.Zv("#textbox"),_.p("design:type",HTMLInputElement)],MJ.prototype,"textbox",void 0);
_.S([_.Zv("#calendar-dialog"),_.p("design:type",Object)],MJ.prototype,"dialog",void 0);_.S([_.Zv("#calendar-main"),_.p("design:type",Object)],MJ.prototype,"JSC$13730_calendarMain",void 0);_.S([_.Zv("#date-picker"),_.p("design:type",HTMLElement)],MJ.prototype,"dropdownButton",void 0);_.S([_.R("calendarConfig.selectedDate"),_.p("design:type",String),_.p("design:paramtypes",[])],MJ.prototype,"dateText",null);
_.S([_.R("calendarConfig","calendarConfig.selectedDate"),_.p("design:type",Object),_.p("design:paramtypes",[])],MJ.prototype,"renderData",null);_.S([_.KI("renderData","calendarConfig.selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MJ.prototype,"scrollToDate",null);_.S([_.bU("iron-overlay-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],MJ.prototype,"onEscOrClickingOutside",null);
_.S([_.zy({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],MJ);
_.Y(MJ,"ytd-calendar-date-picker",function(){if(qJp!==void 0)return qJp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qJp=V},{mode:2});var XQ6=_.Zl("UTC_OFFSET_FORMAT",{utc_offset:(new Ss("Z")).format(new Date)}),E6r=(new Date).getTimezoneOffset()*-60,AGF=new Date,aVl,YJU=iR(AGF.getTimezoneOffset());aVl=d_l(Ngu(YJU,AGF));var $DF=_.Zl("LOCAL_TIME_GMT_LABEL",{gmt_text:aVl.replace("+0","+").replace("-0","-").replace(":00","")}),h7=function(){var V=_.E.apply(this,arguments)||this;V.selectedTimeIndex=0;V.selectedTimezoneIndex=0;V.timeOfDayOptions=C5P;return V};
_.v(h7,_.E);_.P=h7.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var V=urY();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=V,this.selectedTimeIndex=0;else{var D=zHc(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},V,{selectedDate:D.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(f){return f.secondsSinceMidnight===D.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.P.onDatePicked=function(V){this.selectedDate=V.detail};
_.P.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.PA(this.hostElement,"ytd-date-time-selection-cancelled")};
_.P.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var V=this.selectedDate;V=new Date(V.year,V.month,V.day);_.PA(this.hostElement,"ytd-date-time-selection-update",Math.floor(V.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+V.getTimezoneOffset()*60))}};
_.P.getTimezoneFormat=function(V){return V.localizedDisplayText?V.localizedDisplayText:_.Zl("TIMEZONE_FORMAT",{utc_offset_text:""+V.localizedUtcOffset,city_name:""+V.localizedName})};
_.P.updateSelectedTimeIndexFromBinding=function(V){this.selectedTimeIndex=V.detail.value};
_.P.updateSelectedTimezoneIndexFromBinding=function(V){this.selectedTimezoneIndex=V.detail.value};
_.IG.Object.defineProperties(h7.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data.timezoneOptions;var D={name:"Etc/Unknown",localizedName:_.Zl("LOCAL_TIME_LABEL"),localizedUtcOffset:XQ6,utcOffsetSec:""+E6r,localizedDisplayText:$DF};V?V.length&&V[0].name!==D.name&&(V[0].localizedDisplayText||(D.localizedDisplayText=""),V.unshift(D)):V=[D];return V}}},
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]}}});
h7.prototype.onDateTimeTimezoneChange=h7.prototype.onDateTimeTimezoneChange;h7.prototype.onDatePicked=h7.prototype.onDatePicked;h7.prototype.updateDefaultSelectedValue=h7.prototype.updateDefaultSelectedValue;_.S([_.q(),_.p("design:type",Object)],h7.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],h7.prototype,"calendarConfig",void 0);_.S([_.q(),_.p("design:type",Object)],h7.prototype,"selectedDate",void 0);_.S([_.q(),_.p("design:type",Object)],h7.prototype,"selectedTimeIndex",void 0);
_.S([_.q(),_.p("design:type",Object)],h7.prototype,"selectedTimezoneIndex",void 0);_.S([_.Zv("#time-listbox"),_.p("design:type",Object)],h7.prototype,"timeListBox",void 0);_.S([_.Zv("#timezone-listbox"),_.p("design:type",Object)],h7.prototype,"timezoneListBox",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],h7.prototype,"rendererStamperBehavior",void 0);_.S([_.R("data.timezoneOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],h7.prototype,"timeZones",null);
_.S([_.eY("data","timeZones"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h7.prototype,"updateDefaultSelectedValue",null);_.S([_.R("selectedTimezoneIndex","timeZones"),_.p("design:type",Object),_.p("design:paramtypes",[])],h7.prototype,"selectedTimezone",null);_.S([_.R("selectedTimeIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],h7.prototype,"selectedTime",null);
_.S([_.bU("ytd-calendar-date-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],h7.prototype,"onDatePicked",null);_.S([_.KI("selectedTimezone","selectedTime","selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h7.prototype,"onDateTimeTimezoneChange",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],h7);
_.Y(h7,"ytd-date-time-picker-renderer",function(){if(B6F!==void 0)return B6F;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return B6F=V},{mode:1});var ieL;var Ut=function(){var V=_.E.apply(this,arguments)||this;V.boundOnTapDismissButton=function(){V.dismissTapHandler()};
V.dismissButtonOverrides={size:"XS"};return V};
_.v(Ut,_.E);Ut.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}}}}}};
Ut.prototype.dismissTapHandler=function(){_.PA(this.hostElement,"yt-backstage-attachment-dismissed")};
Ut.prototype.computeAttachmentType=function(V){return V?V.backstageImageRenderer?"image":V.videoRenderer?"video":"none":"none"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ut.prototype,"attachmentPreview",void 0);_.S([_.q(),_.p("design:type",Object)],Ut.prototype,"dismissButton",void 0);_.S([_.q(),_.p("design:type",Object)],Ut.prototype,"boundOnTapDismissButton",void 0);
_.S([_.q(),_.p("design:type",Object)],Ut.prototype,"dismissButtonOverrides",void 0);_.S([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.p("design:type",String)],Ut.prototype,"attachmentType",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Ut);
_.Y(Ut,"ytd-backstage-dismissable-attachment",function(){if(ieL!==void 0)return ieL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ieL=V},{mode:1});var SJH;var V_=function(){var V=_.E.apply(this,arguments)||this;V.selectedVideoId=void 0;V.picker=void 0;V.dismissButtonOverrides={size:"XS"};V.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return V};
_.v(V_,_.E);_.P=V_.prototype;_.P.onServiceRequestCompleted=function(V){V.stopPropagation()};
_.P.handleAddVideoPreviewAction=function(V){V=this.get("addVideoPreviewAction",V);this.onGetVideoPreviewSuccess(V)};
_.P.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}}}}}};
_.P.onLaunchVideoPicker=function(V){var D=this,f=_.LA(this.get("addVideoLinkAction.title",V)),n=this.get("addVideoLinkAction.onePickHostId",V);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",V);n&&(this.picker||(f=_.gKo(_.k0Y(n).setTitle(f).addView(G4Y()).addView(lJp()),function(t){D.onPickVideo(t)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",V)||f.addView("youtube"),this.picker=f.build()),this.picker.setVisible(!0))};
_.P.onPickVideo=function(V){if(V)if(V.action==="cancel")_.PA(this.hostElement,"yt-video-link-button-cancel");else if(V.action==="picked"){V=V.docs;if(!V||V.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(V=(V==null?0:V.length)?V[0]:void 0)?V.id:void 0;this.setVideoPreview()}};
_.P.setVideoPreview=function(){var V=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){V.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.P.onGetVideoPreviewSuccess=function(V){if(V&&V.videoPreview&&V.cancelButton)this.videoPreview=V.videoPreview,this.cancelButton=V.cancelButton,_.PA(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.P.onGetVideoPreviewError=function(){this.cancel()};
_.P.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.PA(this.hostElement,"yt-video-link-cancel")};
_.P.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
V_.prototype.onServiceRequestCompleted=V_.prototype.onServiceRequestCompleted;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],V_.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],V_.prototype,"videoPreview",void 0);_.S([_.q(),_.p("design:type",Object)],V_.prototype,"cancelButton",void 0);_.S([_.q(),_.p("design:type",Object)],V_.prototype,"getVideoPreviewCommand",void 0);_.S([_.q(),_.p("design:type",Object)],V_.prototype,"dismissButtonOverrides",void 0);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],V_.prototype,"onServiceRequestCompleted",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],V_);
_.Y(V_,"ytd-backstage-video-link-attachment",function(){if(SJH!==void 0)return SJH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return SJH=V},{mode:1});var WuH;var pQV;var LuF;var Dh=function(){return _.E.apply(this,arguments)||this};
_.v(Dh,_.E);Dh.prototype.dataChanged=function(){this.active=!1};
Dh.prototype.onTap=function(){_.PA(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Dh.prototype.identity=function(V){return V};
_.IG.Object.defineProperties(Dh.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;if((V=this.data)==null?0:(D=V.image)==null?0:(f=D.thumbnails)==null?0:(n=f[0])==null?0:n.url)return V=this.data.image.thumbnails[0].url,V.startsWith("data:image/svg+xml")?bv(V):_.cS(V)}}});
Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],Dh.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Dh.prototype,"active",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dh.prototype,"dataChanged",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Dh.prototype,"imageSrc",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Dh);
_.Y(Dh,"ytd-emoji-suggestion",function(){if(LuF!==void 0)return LuF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LuF=V},{mode:1});var IVu=/.*([:@#].*?)$/,f5=function(){var V=_.E.apply(this,arguments)||this;V.suggestions=[];V.suggestionIndex=-1;V.JSC$13758_lastSuggestionRange=null;return V};
_.v(f5,_.E);_.P=f5.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.P.getSuggestions=function(V){var D=[],f=sJF(this.emojiManager,V.substr(0,3));if(f)for(var n in f)if(n.toLocaleLowerCase().indexOf(V)===0){var t=f[n];if(t&&t.emojiId){t=RK(this.emojiManager,t.emojiId);var J=void 0,H=void 0,Q=void 0,T=void 0,y=((J=t)==null?0:J.isCustomEmoji)?(H=t)==null?void 0:(Q=H.shortcuts)==null?void 0:Q[0]:(T=t)==null?void 0:T.emojiId;J=void 0;D.push({suggestion:{image:(J=t)==null?void 0:J.image,alt:y,text:n}});if(D.length>=64)break}}return D?D.sort(function(Z,l){return l.suggestion.text<
Z.suggestion.text?-1:l.suggestion.text===Z.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(V){_.PA(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13758_lastSuggestionRange,text:V.alt});this.dropdown.opened=!1};
_.P.updateSuggestionsAtCaret=function(V){this.updateSuggestions(V,this.retrieveTextBeforeRange(V))};
_.P.offsetStartOfRangeBy=function(V,D){V.startOffset>=D&&V.setStart(V.startContainer,V.startOffset-D)};
_.P.updateSuggestions=function(V,D){var f=this;this.JSC$13758_lastSuggestionRange&&(this.JSC$13758_lastSuggestionRange.detach(),this.JSC$13758_lastSuggestionRange=null);if((D=IVu.exec(D))&&D.length&&(D=D[D.length-1].toLocaleLowerCase(),D.length>2||D===":_")&&(this.offsetStartOfRangeBy(V,D.length),this.JSC$13758_lastSuggestionRange=V,(V=this.getSuggestions(D))&&V.length)){this.suggestions=V;_.pO(this,function(){f.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(V.length-1);return}this.dropdown.opened=!1};
_.P.onKeyDown=function(V){if(this.dropdown.opened)switch(V.key){case "Escape":this.dropdown.opened=!1;V.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);V.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);V.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),V.preventDefault()}};
_.P.onKeyUp=function(V,D){switch(V.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(D);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(D)}};
_.P.onKeyPress=function(V){V.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),V.preventDefault())};
_.P.changeSuggestionIndex=function(V){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(V+this.suggestions.length)%this.suggestions.length,V=this.dropdownContent.children[this.suggestionIndex],V.active=!0,this.dropdownContent.scrollTop=V.offsetTop)};
_.P.retrieveTextBeforeRange=function(V){var D=V.startContainer;return D&&D.nodeType===Node.TEXT_NODE?D.textContent.substr(0,V.startOffset):""};
f5.prototype.onKeyPress=f5.prototype.onKeyPress;f5.prototype.onKeyUp=f5.prototype.onKeyUp;f5.prototype.onKeyDown=f5.prototype.onKeyDown;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Array)],f5.prototype,"suggestions",void 0);_.S([_.q(),_.p("design:type",_.m9)],f5.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Number)],f5.prototype,"verticalSuggestionsOffset",void 0);
_.S([_.Zv("#dropdown"),_.p("design:type",Object)],f5.prototype,"dropdown",void 0);_.S([_.Zv("#dropdown-content"),_.p("design:type",HTMLDivElement)],f5.prototype,"dropdownContent",void 0);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],f5.prototype,"onKeyDown",null);_.S([_.bU("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent,Range]),_.p("design:returntype")],f5.prototype,"onKeyUp",null);
_.S([_.bU("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],f5.prototype,"onKeyPress",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-emoji-input"})],f5);
_.Y(f5,"ytd-emoji-input",function(){if(pQV!==void 0)return pQV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pQV=V},{mode:2});var OeL;var n5=function(){var V=_.E.apply(this,arguments)||this;V.hasMaxOptions=!1;return V};
_.v(n5,_.E);_.P=n5.prototype;_.P.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.P.setPrefilledChoices=function(V){var D=this;this.set("pollOptions",[]);var f;for(f=0;f<Math.min(V.length,this.data.maxPollOptions);f++)this.push("pollOptions",V[f].substring(0,this.data.maxPollOptionChars));for(;f<this.data.minPollOptions;f++)this.push("pollOptions","");this.hasMaxOptions=f>=this.data.maxPollOptions;_.pO(this,function(){for(var n=D.pollOptions,t=_.Pt(D.hostElement).querySelectorAll(".poll-option-input"),J=0;J<t.length;J++)t[J].value=n[J]})};
_.P.focusChanged=function(){_.wI(this.hostElement)};
_.P.onInput=function(){var V=this;_.Yu(this,"onInput",function(){V.isValid()?_.PA(V.hostElement,"yt-commentbox-post-enable"):_.PA(V.hostElement,"yt-commentbox-post-disable")},300)};
_.P.setPollOptions=function(){var V=[],D,f=((D=this.data)==null?0:D.minPollOptions)?this.data.minPollOptions:0;for(D=0;D<f;D++)V.push("");return V};
_.P.addPollOption=function(){var V=this;_.PA(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.dm.addLowPriorityJob(function(){var D;(D=_.Pt(V.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||D.focus()})};
_.P.onRemovePollOption=function(V){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.PA(this.hostElement,"yt-poll-attachment-dismiss")):(V=this.repeat.indexForElement(V.target.parentNode),V!==null&&(this.splice("pollOptions",V,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.PA(this.hostElement,"yt-commentbox-post-enable"))))};
_.P.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.P.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var V=0,D=this.pollOptions.length;V<D;V++)if(this.pollOptions[V].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.P.getPollOptions=function(){return this.pollOptions};
_.P.setPollOptionsFromInputs=function(){for(var V=_.Pt(this.hostElement).querySelectorAll(".poll-option-input"),D=0;D<V.length;D++)this.pollOptions[D]=V[D].value.trim()};
_.P.clearPollOptions=function(){var V=_.Pt(this.hostElement).querySelectorAll(".poll-option-input");V=_.r(V);for(var D=V.next();!D.done;D=V.next())D.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.P.getSimpleString=function(V){return _.LA(V)};
_.P.updateValueFromBinding=function(V){if(V.target&&this.pollOptions){var D=Array.from(_.Pt(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(V.target);if(D>=0){var f;this.pollOptions[D]=(f=V.detail.value)!=null?f:"";this.notifyPath("pollOptions."+D)}}};
n5.prototype.dataChanged=n5.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],n5.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],n5.prototype,"pollOptions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],n5.prototype,"hasMaxOptions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],n5.prototype,"enableCreationBox",void 0);
_.S([_.Zv("#repeat"),_.p("design:type",dI)],n5.prototype,"repeat",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n5.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-poll-attachment"})],n5);
_.Y(n5,"ytd-poll-attachment",function(){if(OeL!==void 0)return OeL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OeL=V},{mode:2});var xDH;var MwF;var hWU;var UDp;var t0=function(){return _.E.apply(this,arguments)||this};
_.v(t0,_.E);_.IG.Object.defineProperties(t0.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],t0.prototype,"rendererBehaviors",void 0);_.S([_.q(),_.p("design:type",Object)],t0.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],t0.prototype,"focused",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("focused"),_.p("design:type",Object),_.p("design:paramtypes",[])],t0.prototype,"ariaSelected",null);_.S([_.zy({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],t0);
_.Y(t0,"yt-user-mention-suggestion-renderer",function(){if(UDp===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;hWU===void 0&&(hWU=document.createElement("template"));var n=hWU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);UDp=V}V=UDp;return V},{mode:2});var ViU;var DKV;var Pv=function(){var V=_.E.apply(this,arguments)||this;V.focusedSuggestionIndex=-1;return V};
_.v(Pv,_.E);_.P=Pv.prototype;_.P.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.P.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.P.setFocusedSuggestionIndex=function(V){!this.data||!this.data.suggestions||V<0||V>=this.data.suggestions.length||(this.focusedSuggestionIndex=V,V=this.getSuggestionId(V),this._setFocusedSuggestionId(V))};
_.P.advanceSuggestion=function(V){this.focusedSuggestionIndex===-1||V!==-1&&V!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+V),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.P.ensureSuggestionVisible=function(V){V=this.getSuggestionId(V);V=_.Pt(this.hostElement).querySelector("[id="+V+"]");V!=null&&(V.offsetTop<this.hostElement.scrollTop?V.scrollIntoView(!0):V.offsetTop+V.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&V.scrollIntoView(!1))};
_.P.getSuggestionId=function(V){return"user-mention-suggestion-"+V};
_.P.onSuggestionTap=function(V){var D=_.g(V.model.item,vBp);this.ytRendererBehavior.logExplicitClick(D);_.PA(this.hostElement,"yt-user-mention-suggestion-selected",{data:D,index:V.model.index})};
_.P.onSuggestionMouseMove=function(V){V.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(V.model.index)};
_.P.isSuggestionFocused=function(V,D){return V===D};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("focused-suggestion-id-changed",this.focusedSuggestionId))};
Pv.prototype.focusedSuggestionIdChangedForBinding=Pv.prototype.focusedSuggestionIdChangedForBinding;Pv.prototype.onDomChange=Pv.prototype.onDomChange;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Pv.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Pv.prototype,"focusedSuggestionIndex",void 0);_.S([_.q({readOnly:!0}),_.p("design:type",String)],Pv.prototype,"focusedSuggestionId",void 0);
_.S([_.bU("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Pv.prototype,"onDomChange",null);_.S([_.KI("focusedSuggestionId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pv.prototype,"focusedSuggestionIdChangedForBinding",null);_.S([_.zy({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Pv);
_.Y(Pv,"yt-user-mention-suggestions-dropdown",function(){if(DKV===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;ViU===void 0&&(ViU=document.createElement("template"));var n=ViU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);DKV=V}V=DKV;return V},{mode:2});var ou=function(){var V=_.E.apply(this,arguments)||this;V.suggestionsResponse=null;V.activeMention=null;V.selectionChangeListener=V.onSelectionChange.bind(V);V.handlesEnabled=_.c("enable_handles_in_mention_suggest_posts");V.handlesInMentionSuggestionsEnabled=_.c("handles_in_mention_suggest_posts");V.zeroPrefixMentionSuggestionEnabled=_.c("enable_zero_prefix_mention_suggestion_web");V.pendingQuery=null;V.flowNonce=null;return V};
_.v(ou,_.E);_.P=ou.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.P.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.P.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.P.hasSuggestions=function(V){return!!(V&&V.suggestions&&V.suggestions.length>0)};
_.P.onInput=function(){var V=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var D=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),f=this.activeMention.JSC$9384_getText().slice(-1)===" ",n=this.activeMention.JSC$9384_getText().slice(-2,-1)===" ",t="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9384_getText().slice(-2,-1))>=
0;t=this.zeroPrefixMentionSuggestionEnabled&&t;if(this.activeMention.isCollapsed()||(D||n||t)&&f)this.cancelActiveMention();else{var J=this.activeMention.JSC$9384_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Yu(this,"requestSuggestions",function(){V.requestSuggestions(J)},100)}}}};
_.P.onServiceRequestSent=function(V){V.stopPropagation()};
_.P.onServiceRequestCompleted=function(V){V.stopPropagation();V=V.detail.data;V.query&&(!this.pendingQuery||this.pendingQuery!==V.query)||!this.zeroPrefixMentionSuggestionEnabled&&V.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=V,this.hasSuggestions(V)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.P.onServiceRequestError=function(V){V.stopPropagation()};
_.P.onUserMentionSuggestionSelected=function(V){this.selectSuggestion(V.detail.data,V.detail.index)};
_.P.onSelectionChange=function(){if(this.activeMention){var V=_.GS(),D=this.activeMention.JSC$9384_containsRange(V);V=V&&this.containsHelper(this.dropdown,V.getContainer());D||V||this.cancelActiveMention()}};
_.P.containsHelper=function(V,D){var f;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)===!0)return V.contains(D);for(;D;){if(D===V)return!0;D=D instanceof ShadowRoot?D.host:D.parentNode}return!1};
_.P.maybeStartSuggest=function(){var V=_.GS();if(V&&V.isCollapsed()){var D=V.JSC$9384_getStartNode(),f=V.JSC$9384_getStartOffset();if(D instanceof Text&&!(f<1)){var n=D.textContent;!(n=n&&n.charAt(f-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(n)<0||(this.activeMention=_.m4(D,f-1,V.JSC$9384_getEndNode(),V.JSC$9384_getEndOffset()),this.flowNonce=B8(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.P.updateActiveMention=function(){if(this.activeMention){var V=_.GS();V&&V.isCollapsed()&&(this.activeMention=_.m4(this.activeMention.JSC$9384_getStartNode(),this.activeMention.JSC$9384_getStartOffset(),V.JSC$9384_getEndNode(),V.JSC$9384_getEndOffset()))}};
_.P.requestSuggestions=function(V){if(this.activeMention){var D={suggestions_query:V};this.pendingQuery=V;_.HA(this.hostElement,[this.suggestionsEndpoint,D])}};
_.P.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()};
_.P.focusPreviousSuggestion=function(V){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),V.preventDefault())};
_.P.focusNextSuggestion=function(V){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),V.preventDefault())};
_.P.selectFocusedSuggestion=function(V){if(this.hasSuggestions(this.suggestionsResponse)){var D=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.g(D,vBp)&&(this.selectSuggestion(_.g(D,vBp),this.dropdown.focusedSuggestionIndex),V.preventDefault())}};
_.P.selectSuggestion=function(V,D){if(V){var f=this.activeMention;if(f){var n=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&V.handle?_.ug(n,"\u00a0\u2068@"+V.handle+"\u2069\u00a0"):this.handlesEnabled?_.ug(n,"\u00a0"+V.displayName+"\u00a0"):_.ug(n,"\u00a0@"+V.displayName+"\u00a0");se(n,"/channel/"+V.channelId);n.classList.add("yt-formatted-string","yt-simple-endpoint");n.setAttribute("spellcheck","false");f.isCollapsed()||f.JSC$9384_removeContents();f.insertNode(n,!0);V=document.createTextNode(" ");
n.parentNode.insertBefore(V,n.nextSibling);window.getSelection().collapse(V,1);D={suggestionSelected:{suggestionIndex:D}};if(this.zeroPrefixMentionSuggestionEnabled){var t;D.suggestionSelected.isZeroPrefix=((t=this.suggestionsResponse)==null?void 0:t.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",D);this.cancelActiveMention();_.PA(this.hostElement,"yt-mention-inserted")}}};
_.P.getPositionTarget=function(V){return V&&V.getBrowserRangeObject()};
_.P.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.P.onFocusedSuggestionIdChanged=function(V){var D=_.uH9(this.hostElement)[0];D&&(V.detail.value?D.setAttribute("aria-activedescendant",V.detail.value):D.removeAttribute("aria-activedescendant"))};
_.P.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.P.logGELEvent=function(V,D){V={eventType:V,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};D&&(V=Object.assign(V,D));_.dq("userMentionAutoCompleteBoxEvent",V)};
ou.prototype.onDomChange=ou.prototype.onDomChange;ou.prototype.onUserMentionSuggestionSelected=ou.prototype.onUserMentionSuggestionSelected;ou.prototype.onServiceRequestError=ou.prototype.onServiceRequestError;ou.prototype.onServiceRequestCompleted=ou.prototype.onServiceRequestCompleted;ou.prototype.onServiceRequestSent=ou.prototype.onServiceRequestSent;ou.prototype.onInput=ou.prototype.onInput;_.S([_.u(_.ja),_.p("design:type",Object)],ou.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],ou.prototype,"suggestionsEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],ou.prototype,"suggestionsResponse",void 0);_.S([_.q(),_.p("design:type",Object)],ou.prototype,"activeMention",void 0);_.S([_.Zv("#dropdown"),_.p("design:type",Object)],ou.prototype,"dropdown",void 0);_.S([_.Zv("#iron-dropdown"),_.p("design:type",Object)],ou.prototype,"ironDropdown",void 0);
_.S([_.bU("input"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ou.prototype,"onInput",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ou.prototype,"onServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ou.prototype,"onServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ou.prototype,"onServiceRequestError",null);_.S([_.bU("yt-user-mention-suggestion-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ou.prototype,"onUserMentionSuggestionSelected",null);
_.S([_.bU("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ou.prototype,"onDomChange",null);_.S([_.zy({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],ou);
_.Y(ou,"yt-user-mention-autosuggest-input",function(){if(MwF===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;xDH===void 0&&(xDH=document.createElement("template"));var n=xDH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);MwF=V}V=MwF;return V},{mode:2});var J0=null;
_.Bt({is:"ytd-commentbox",_template:function(){if(WuH!==void 0)return WuH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WuH=V},
behaviors:[_.J8Y.YtHostElementBehavior,_.ja,_.D6.YtActionHandlerBehavior,_.EY.YtComponentBehavior,_.V8.YtRendererstamperBehavior,_.p3l.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(V,D){return _.wg(V.entities,"aadcGuidelinesStateEntityPayload",D)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(V,D){return _.wg(V.entities,"commentboxStateEntity",D)},
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 _.Ct}},
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:_.c("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.c("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",_.Ty(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(V){this.fire(V?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(V){this.set("submitButtonDisabled",void 0);this.clear();V&&this.computeIsEmojiButtonDisplayed_(V)&&(V=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&V.updateEmojiCategories()},
observePrefilledImage_:function(V,D,f){this.isValidPrefilledImage_(V,D,f)&&(this.prefilledAttachment_="image",this.prefilledImageData_=D,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(V,D){this.isValidPrefilledVideo_(V,D)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(V){V&&V.pollData&&V.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(V.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.oa();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ty(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(V){V=V.detail;V=V.isCustomEmoji?V.shortcuts[0]:V.emojiId;var D=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(D,V);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var V=_.GS();if(V){V=V.getBrowserRangeObject();for(var D=V.commonAncestorContainer;D;){if(D===this.getEditableTextArea_())return V;D=D.parentNode}}V=this.getEditableTextArea_();V=_.NW(V,V.childNodes.length);V.select();return V.getBrowserRangeObject()},
insertTextWithEmojis_:function(V,D,f){(D=this.emojiManager.createDocumentFragment(D,!0,!1,f===void 0?!0:f))&&D.childNodes.length!==0&&(V.collapsed||V.deleteContents(),f=D.lastChild,V.insertNode(D),_.x1E(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var V=_.GS();if(V){var D=V.JSC$9384_getStartNode(),f=V.JSC$9384_getEndNode();if(Coc(D)&&Coc(f)){var n=V.JSC$9384_getStartOffset(),t;if(_.Qd&&D.nodeType===Node.ELEMENT_NODE&&(t=_.MRo(D)))_.NW(t,0).select();else{t=Zr(D)?D:_.qr(D,Zr);var J=Zr(f)?f:_.qr(f,Zr);if(t||J)if(V.isCollapsed()){if(D.nodeType===Node.TEXT_NODE){V=!0;n===D.length&&(V=!1);if(J0==="end"||J0==="right")V=!1;D=D.parentNode;V=[].concat(_.sz(D.parentNode.childNodes)).indexOf(D)+(V?0:1);_.NW(D.parentNode,V).select()}}else t?
t.previousSibling&&t.previousSibling.length>0?_.m4(f,V.JSC$9384_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(D=document.createTextNode("\u200b"),t.parentNode.insertBefore(D,t),_.m4(f,V.JSC$9384_getEndOffset(),D,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.m4(D,V.JSC$9384_getStartOffset(),J.nextSibling,1).select():(f=document.createTextNode("\u200b"),J.parentNode.insertBefore(f,J.nextSibling),_.m4(D,V.JSC$9384_getStartOffset(),f,f.length).select()));J0=null}}else J0=
null}else J0=null},
leftKeyPressed_:function(){J0="left"},
rightKeyPressed_:function(){J0="right"},
endKeyPressed_:function(){J0="end"},
maybeDeleteChip_:function(){var V=YTR(!0);if(V){var D=_.GS(),f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();_.vy(f,D,V,V.childNodes.length).select()}},
maybeBackspaceChip_:function(){var V=YTR(!1);if(V){var D=_.GS(),f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();_.vy(f,D,V,0).select()}},
maybeBackspaceChipWordMode_:function(V){var D=_.GS();if(D.isCollapsed()){var f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();var n=$yX(f,D,!0);n&&(_.vy(f,D,n,0).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(V){var D=_.GS();if(D.isCollapsed()){var f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();var n=$yX(f,D,!1);n&&(_.vy(f,D,n,n.childNodes.length).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
onTap_:function(V){if(!V.defaultPrevented&&(V.currentTarget.tagName==="YTD-COMMENTBOX"&&Zr(V.target)&&V.preventDefault(),this.isEmojiPickerDisplayed)){var D=this.$$("#emojis"),f=this.$$("#emoji-button"),n=this.getEditableTextArea_();if((V=V.path?V.path:V.composedPath&&V.composedPath())&&!V.includes(D)&&!V.includes(n)&&!V.includes(f))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(V,D,f){return V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&D!==void 0&&D.encryptedBlobId!==null&&D.sourceExternalVideoId!==null&&f!==void 0&&f.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(V,D){return V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!D&&!!D.videoRenderer&&!!D.videoRenderer.videoId},
isValidPrefilledAttachment_:function(V,D,f){return this.isValidPrefilledImage_(V,D,f)||this.isValidPrefilledVideo_(V,f)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.c("enable_multi_image_post_creation")){var V=this.$$("ytd-backstage-multi-image-select-renderer");V&&V.hasImages()&&V.cancel()}else(V=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&V.cancel();(V=this.$["poll-attachment"])&&this.hasPoll_&&V.clearPollOptions();(V=this.$["image-poll-attachment"])&&this.hasImagePoll_&&V.resetPollOptions();(V=this.$["quiz-attachment"])&&this.hasQuiz_&&V.resetQuizOptions();
(V=this.$["video-link-attachment"])&&this.hasVideo_&&V.cancel();(V=this.$["access-restrictions-selector"].firstElementChild)&&V.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 _.Pt(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Pt(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(V,D){V=Xmx(V,this.emojiManager,D).cloneNode(!0);for(D=V.firstChild;D;)if(D.nodeType!==1)D=D.nextSibling;else switch(D.tagName){case "BR":var f=_.gT();_.P6Y(f,D);D=f.nextSibling;break;case "DIV":(f=D.lastChild)&&D.nextSibling&&_.BN(_.gT(),f);D.previousSibling&&(D.previousSibling.nodeType===1||D.previousSibling.nodeType===3&&!D.previousSibling.textContent.endsWith("\n"))&&_.sO(_.gT(),D);f&&f.nodeName==="BR"&&_.ZC(f);f=D;D.hasChildNodes()?(D=D.firstChild,
_.opE(f)):(D=D.nextSibling,_.ZC(f));break;default:D=D.nextSibling}return iM3(V)},
onAddImageError_:function(V){V.stopPropagation();this.errorMessage_=_.pA(V.detail)},
setTextAreaValue_:function(V){V||(V="");var D=this.getEditableFormattedString_();D.text="";this.getEditableTextArea_().innerText="";typeof V==="string"&&(V={runs:[{text:V}]});D.text=V},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();J0=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var V=this.getEditableTextArea_();V&&(_.NW(V,V.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.XB("HTML_DIR")==="rtl"){var V=this.getEditableTextArea_(),D=this.getTextAreaValue()!==""?"auto":"rtl";V.setAttribute("dir",D)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var V;return KjU((V=this.$["quiz-attachment"])==null?void 0:V.getExplanationText())||KjU(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var V=null;if(this.isEmojiButtonDisplayed){var D=this.getInputRange_();D&&(V=this.emojiInput.retrieveTextBeforeRange(D))}this.insertText_(V,!0);this.updateCharCount_();this.setSubmitButton_();V=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=V.scrollHeight>V.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var V=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:V})},
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(V){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(V)},
onPasteEmoji_:function(V){V.preventDefault();V.stopImmediatePropagation();V=V.clipboardData.getData("text/plain");this.insertText_(V,!1,!1)},
insertText_:function(V,D,f){D=D===void 0?!1:D;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&V){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(D&&this.emojiInput.offsetStartOfRangeBy(n,V.length),this.insertTextWithEmojis_(n,V,f),qTX(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,V),this.updateSuggestionOffset_(n)))}},
setSubmitButton_:function(){if(this.data){var V=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",D=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(V||D){var f=this.getTextAreaValue().trim();D=f===this.previousText_;f=!f||this.aboveCharLimit_;V&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=this.aboveCharLimit_);this.submitButtonDisabled=
D||f||!this.getTextLength();V&&_.c("enable_post_scheduling")&&(this.submitButtonDisabled=D&&!this.scheduledPublishTimeSec_||f)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.LA,computeCreationBoxClass_:function(V){return V?"focused":"not-focused"},
computeFooterMessageClass_:function(V,D){return D?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(V,D){return D?D:V},
computeFooterMessageHidden_:function(V,D){return!D&&!V},
computePlaceholderText_:function(V,D,f){return(f==="video"||f==="image")&&(V==null?0:V.prefilledPlaceholderText)?V==null?void 0:V.prefilledPlaceholderText:D==="poll"||D==="image-poll"?V==null?void 0:V.pollPostPlaceholderText:D==="quiz"?V==null?void 0:V.quizPostPlaceholderText:D==="image"?V==null?void 0:V.imagePostPlaceholderText:V==null?void 0:V.placeholderText},
computeHideAttachmentButtons_:function(V,D,f,n){return V===void 0?!1:n&&this.getSimpleString(n)===this.getSimpleString(V.rateLimitErrorMessage)?!0:D!=="none"||f!=="none"||!V.videoLinkButton&&!V.pollButton&&!V.imagePollButton&&!V.quizButton&&!V.imageButton},
computeHideDismissableAttachment_:function(V){return V!=="image"&&V!=="video"},
computeHasVideo_:function(V){return V==="video"},
computeHasImage_:function(V){return V==="image"},
computeHasPoll_:function(V){return V==="poll"},
computeHasImagePoll_:function(V){return V==="image-poll"},
computeHasQuiz_:function(V){return V==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(V){return V&&V.backstageAttachment?V.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!V.backstageAttachment.quizRenderer&&!V.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(V){if(this.isValidPrefilledAttachment_(V.purpose,V.prefilledImageData,V.backstageAttachment))return V.backstageAttachment},
computeEditAttachment_:function(V){if(this.computePrefilledContent_(V)===void 0)return V.backstageAttachment},
computeAuthorThumbnailDimension_:function(V,D){return V&&!D?24:40},
computeImageUploadEndpoint_:function(V){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",V)},
computeRateLimitErrorCommands_:function(V){var D,f;return V==null?void 0:(D=V.advancedTierFeatures)==null?void 0:(f=D.rateLimit)==null?void 0:f.rateLimitCommands},
computeIsBackstageComment_:function(V){return!(!V||V!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(V){return this.get("submitButton.buttonRenderer.serviceEndpoint",V)||this.get("replyButton.buttonRenderer.serviceEndpoint",V)||this.get("postButton.buttonRenderer.serviceEndpoint",V)},
computeSubmitButtonOverride:function(){if(_.c("web_modern_buttons")){var V,D;return{segmentedPosition:this.dropdownSchedulePanel_||!((V=this.data)==null?0:(D=V.postOptionsMenu)==null?0:D.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.c("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(V,D){V=this.get("submitButton.buttonRenderer",V)||this.get("replyButton.buttonRenderer",V)||this.get("postButton.buttonRenderer",V);D&&(V=D);V&&(V=Object.assign({},V),V.serviceEndpoint=void 0,V.isDisabled=this.submitButtonDisabled);return V},
computeHasExternalLinksAccess_:function(V){if(_.c("enable_rfa_external_links")){var D,f,n;return(n=V==null?void 0:(D=V.advancedTierFeatures)==null?void 0:(f=D.externalLinks)==null?void 0:f.allowExternalLinks)!=null?n:!0}return!0},
computeIsEmojiButtonDisplayed_:function(V){return V.emojiButton&&V.emojiPicker&&V.emojiPicker.emojiPickerRenderer&&V.emojiPicker.emojiPickerRenderer.categories?V.emojiPicker.emojiPickerRenderer.categories.find(function(D){return D.emojiPickerCategoryRenderer?D.emojiPickerCategoryRenderer.emojiIds&&D.emojiPickerCategoryRenderer.emojiIds.length>0:D.emojiPickerUpsellCategoryRenderer?D.emojiPickerUpsellCategoryRenderer.emojis&&D.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(V){return V.charLimit?V.charLimit:null},
computeDropdownSchedulingPanel_:function(V,D){if(V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&D)return D},
computeInlineSchedulingPanel_:function(V,D){if(V==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&D)return D},
computeHideAuthorThumbnail_:function(V,D){return V||this.computeUseIdentityChip_(D)},
computeHideIdentityChipRenderer_:function(V,D){return V||!this.computeUseIdentityChip_(D)},
computeUseIdentityChip_:function(V){return!!V&&!!V.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(V){var D,f,n,t;(V==null?0:(D=V.detail)==null?0:(f=D.endpoint)==null?0:f.ypcGetOffersEndpoint)||(V==null?0:(n=V.detail)==null?0:(t=n.endpoint)==null?0:t.ypcOffersEndpoint)?(V.stopPropagation(),_.HA(this,[V.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",V)&&(V.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(V){this.addedAttachment="video";this.selectedVideoId_=V.detail.videoId},
commentboxStateEntityChanged_:function(V){var D=this;(V==null?void 0:V.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(V==null?void 0:V.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){D.focus()})},
onYtServiceRequestSent_:function(V,D){if(D.actions)for(V=_.r(D.actions),D=V.next();!D.done;D=V.next())D.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(V){this.isLoading=!1;var D=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",V),f,n,t,J=V==null?void 0:(f=V.detail)==null?void 0:(n=f.data)==null?void 0:(t=n.actionResult)==null?void 0:t.commentboxStateEntityKey;if(D)this.errorMessage_=D;else if(J){var H;this.dismissData_=V==null?void 0:(H=V.detail)==null?void 0:H.data;this.commentboxStateKey_=J}else{this.clear();var Q;this.fire("yt-commentbox-dismiss",V==null?void 0:(Q=V.detail)==
null?void 0:Q.data)}},
onYtServiceRequestError_:function(V){V.stopPropagation();this.isLoading=!1;var D,f;if(((D=this.data)==null?void 0:D.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((f=this.data)==null?void 0:f.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(D=this.get("detail.error.args",V)||[],D.length>1&&D[1].message){this.handlePostsServiceRequestError_(D[1].message);return}(V=this.get("detail.error.message",V))?this.errorMessage_=this.data.errorMessage||_.pA(V):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(V){if(_.c("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var D=_.r(this.rateLimitErrorCommands),f=D.next();!f.done;f=D.next())if(f=f.value,f.errorLabel===V){_.Km(f.command,this.hostElement);return}this.errorMessage_=_.pA(V)},
submitIfNotBackstagePost_:function(V){if(!this.isBackstagePost)this.onSubmit_(V)},
onSubmit_:function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z;return _.w(function(C){switch(C.nextAddress){case 1:V.stopPropagation();if(!D.serviceEndpoint||!D.isValidInput_())return C.return();if(D.shouldShowPostAadcNotice_())return D.showPostAadcNotice_(),C.return();if(D.shouldShowCommentAadcNotice_())return D.showCommentAadcNotice_(),C.return();if(!(D.$$("ytd-backstage-multi-image-select-renderer")&&D.hasImage_&&_.c("enable_multi_image_post_creation"))){C.jumpTo(2);break}f=D.$$("ytd-backstage-multi-image-select-renderer");
return _.b(C,f.getAllUploadStatuses(),3);case 3:n=C.yieldResult;if(!n)return C.return();t=_.r(n);for(J=t.next();!J.done;J=t.next())if(H=J.value,H.encryptedBlobId===void 0)return D.isLoading=!1,T=Q=void 0,D.errorMessage_=(T=(Q=D.imageUploadEndpoint_)==null?void 0:Q.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?T:null,C.return();return C.return(D.submitForm_(void 0,void 0,void 0,void 0,f.images,D.taggedVideoId_));case 2:if(!D.hasImagePoll_||!D.$["image-poll-attachment"]){C.jumpTo(4);
break}return _.b(C,D.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:y=C.yieldResult;if(!y)return C.return();Z=_.r(y);for(l=Z.next();!l.done;l=Z.next())if(G=l.value,!G.encryptedBlobId)return D.isLoading=!1,F=void 0,D.errorMessage_=(F=D.data.errorMessage)!=null?F:null,C.return();case 4:d=(k=D.$$("ytd-backstage-image-select-renderer"))&&k.uploadPromise(),z=D.getSharedPostId_(),d?d.then(function(){D.submitForm_.apply(D,_.sz(_.gQ.apply(0,arguments)))}).catch(function(A){D.isLoading=!1;
D.errorMessage_=_.pA(A.message)}):D.selectedVideoId_?D.submitForm_(void 0,D.selectedVideoId_):D.prefilledAttachment_==="image"?D.submitForm_(D.prefilledImageData_.encryptedBlobId,void 0,void 0,D.prefilledImageData_.sourceExternalVideoId,void 0,D.taggedVideoId_):D.prefilledAttachment_==="video"?D.submitForm_(void 0,D.data.backstageAttachment.videoRenderer.videoId):z?D.submitForm_(void 0,void 0,z):D.taggedVideoId_!==void 0?D.submitForm_(void 0,void 0,void 0,void 0,void 0,D.taggedVideoId_):D.submitForm_(),
_.yz(C)}})},
openSchedulingPanel:function(V){V&&V.scheduleButton&&V.scheduleButton.buttonRenderer&&(this.scheduleButton_=V.scheduleButton.buttonRenderer);V&&V.dateTimePicker&&this.set("data.schedulingDateTimePicker",V.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(V){V.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(V){V.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(V){V.stopPropagation();V.detail.alertMessage&&(this.alertMessage_=V.detail.alertMessage)},
onImageSelected_:function(V){V.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(V){V.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(V){V.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(V.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(V){V.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(V){var D=this.$["video-link-attachment"];D&&D.onLaunchVideoPicker(V)},
onAttachmentDismiss_:function(V){V.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"&&_.c("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.c("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 V;if(this.addedAttachment==="image-poll"&&((V=this.$["image-poll-attachment"])==null||!V.isValid()))return!1;var D;if(this.addedAttachment==="quiz"&&((D=this.$["quiz-attachment"])==null||!D.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;V=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")V=!0;return V||!!this.getTextAreaValue().trim()},
submitForm_:function(V,D,f,n,t,J){var H=this.getTextAreaValue().trim(),Q={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H===this.previousText_&&(H=void 0);H!==void 0&&(Q.comment_text=H);this.isLoading=!0;J!=void 0&&(Q.tagged_video_id=J);V?(Q.image_blob_id=V,this.imagePreviewCoordinates_&&(Q.image_preview_coordinates=this.imagePreviewCoordinates_)):D?Q.attached_video_id=D:f?Q.shared_post_id=f:t&&t.length>0&&(Q.images_data=t.map(function(T){return{encryptedBlobId:T.encryptedBlobId,
previewCoordinates:T.previewCoordinates}}));
n&&(Q.source_video_id=n);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(Q.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(Q.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(Q.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.c("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(Q.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.c("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(Q.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.HA(this,[this.serviceEndpoint,Q])},
onIsInputFocusChanged_:function(V,D){V?this.fire("yt-autonav-pause-focus"):D!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(V){var D=this.getEditableTextArea_();[].concat(_.sz(V.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(n){D.appendChild(document.createTextNode(n))})});
V.preventDefault()},
preventDefault_:function(V){V.preventDefault()},
onSuggestionInsert_:function(V){this.insertTextWithEmojis_(V.detail.range,V.detail.text)},
onEmojiSuggestionClick_:function(V){this.emojiInput.insertSuggestion(V.detail)},
computeSubmitButtonClass_:function(V,D){return!D||V?"":"with-options"},
updateSuggestionOffset_:function(V){if(this.emojiInput&&_.Pt(this.emojiInput).querySelector("#dropdown")){var D=this.getEditableTextArea_().getBoundingClientRect().bottom,f=V.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(D-f)+5;D=this.getEditableTextArea_().getBoundingClientRect().left;V=V.getBoundingClientRect().left-D;_.Pt(this.emojiInput).querySelector("#dropdown").style.marginLeft=V+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(V){if(_.c("enable_post_scheduling")&&this.data&&this.data.purpose){V=V.detail;if(Math.floor(Date.now()/1E3)>=V)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var D=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(D)||D!==V?this.scheduledPublishTimeSec_=V:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=V;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var V=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&V.push("quiz-button");_.c("auto_convert_posts_video_tag")||V.push("video-link-button");return V},
getButtonRenderer:function(V,D){if(V)switch(D){case "video-link-button":var f;return((f=V.videoLinkButton)==null?void 0:f.buttonRenderer)||void 0;case "image-button":var n;return((n=V.imageButton)==null?void 0:n.buttonRenderer)||void 0;case "poll-button":var t;return((t=V.pollButton)==null?void 0:t.buttonRenderer)||void 0;case "image-poll-button":var J;return((J=V.imagePollButton)==null?void 0:J.buttonRenderer)||void 0;case "quiz-button":var H;return((H=V.quizButton)==null?void 0:H.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var V;return(V=this.data)==null||!V.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var V,D;return!((V=this.data)==null||!V.openAadcDialog)&&!((D=this.aadcGuidelinesState_)==null||!D.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.XB("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var V;((V=this.data)==null?0:V.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qY("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(V){V.clickTrackingParams&&_.lS().clickCommand(V);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.o4(this,"yt-close-popup-action")},
onHideIdentityChip:function(V){var D;this.set("data.placeholderText",(D=V.hideIdentityChipAction)==null?void 0:D.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var rS=function(){var V=_.E.apply(this,arguments)||this;V.isOpen=!1;V.modern=_.c("web_modern_buttons");V.roundedContainer=!0;V.dropdownButtonOverride=_.c("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;V.inPopupContainer=!1;V.isCommentboxLoading=!1;var D=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&D.push("quiz-button");_.c("auto_convert_posts_video_tag")||D.push("video-link-button");V.attachmentButtonIds=D;V.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 V};
_.v(rS,_.E);_.P=rS.prototype;_.P.computeButtonOverride=function(){var V;return((V=this.data)==null?0:V.postOptionsMenu)&&_.c("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.P.configureRendererStamper=function(){var V={"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]]"}}}}};_.c("auto_convert_posts_video_tag")||(V["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return V};
_.P.ready=function(){var V=this,D=_.Pt(this.hostElement).querySelector("#placeholder-area"),f=function(n){V.onOpen(n)};
D.addEventListener("tap",f);D.addEventListener("keypress",f)};
_.P.showButtonEduTooltip=function(){var V,D,f,n,t,J,H;if(_.c("enable_quiz_creation")&&((V=this.data)==null?0:(D=V.quizButton)==null?0:(f=D.buttonRenderer)==null?0:(n=f.hint)==null?0:(t=n.hintRenderer)==null?0:(J=t.content)==null?0:(H=J.bubbleHintRenderer)==null?0:H.text)&&(_.MP.getInstance(),V=h6(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(V==null?void 0:
V.length)>0)){this.ytComponentBehavior.resolveCommand(V[0],{form:{element:this.quizButton}});return}var Q;if((Q=this.data)==null?0:Q.imagePollButtonTooltip)if(_.MP.getInstance(),Q=h6(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(Q==null?void 0:Q.length)>0){this.ytComponentBehavior.resolveCommand(Q[0],{form:{element:this.imagePollButton}});return}var T;_.c("enable_multi_image_post_creation")&&
((T=this.data)==null?0:T.multiImageButtonTooltip)&&(_.MP.getInstance(),T=h6(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(T==null?void 0:T.length)>0&&this.ytComponentBehavior.resolveCommand(T[0],{form:{element:this.imageButton}}))};
_.P.onCreatePollAction=function(V){_.g(V,Bfp)&&(this.JSC$13813_commentbox.addedAttachment="poll",this.openDialog())};
_.P.onAddVideoLinkAction=function(V){if(_.g(V,gsY))this.JSC$13813_commentbox.onAddVideoLink(V)};
_.P.onShowSchedulingPanelCommand=function(V){(V=_.g(V,hRV))&&this.openSchedulingPanel(V)};
_.P.onCreateImagePollCommand=function(V){_.g(V,jaF)&&(this.JSC$13813_commentbox.openImagePollComponent(),this.openDialog())};
_.P.onCreateQuizCommand=function(V){_.g(V,lAo)&&(this.JSC$13813_commentbox.openQuizComponent(),this.openDialog())};
_.P.openSchedulingPanel=function(V){_.c("enable_post_scheduling")&&(this.openDialog(),this.JSC$13813_commentbox.openSchedulingPanel(V))};
_.P.onCreateCommentAction=function(V){this.get("createCommentAction.contents",V)&&(this.JSC$13813_commentbox.clear(),this.closeDialog())};
_.P.onOpen=function(V){V instanceof KeyboardEvent&&V.type==="keypress"&&V.keyCode!==13&&V.keyCode!==32||(this.data.prepareAccountEndpoint?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.closeDialog()};
_.P.onYtCommentboxLoadingStart=function(V){V.stopPropagation();this.isCommentboxLoading=!0};
_.P.onYtCommentboxLoadingEnd=function(V){V.stopPropagation();this.isCommentboxLoading=!1};
_.P.onYtVideoLinkButtonCancel=function(V){V.stopPropagation();this.onOpen(V)};
_.P.onYtVideoLinkSelected=function(V){V.stopPropagation();this.onOpen(V)};
_.P.onIronSelect=function(V){V.stopPropagation();V.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=V.detail.item.value&&(this.accessRestriction?(this.accessRestriction=V.detail.item.value,this.onOpen(V)):this.accessRestriction=V.detail.item.value)};
_.P.onYtNavigate=function(V){this.get("detail.endpoint.backstageImageUploadEndpoint",V)&&(this.JSC$13813_commentbox.addedAttachment="image",this.JSC$13813_commentbox.submitButtonDisabled=!0,this.onOpen(V))};
_.P.onRequestSent=function(V){if(_.c("web_button_rework"))for(var D=_.r(V.detail),f=D.next();!f.done;f=D.next())_.g(f.value,ukF)&&(this.JSC$13813_commentbox.addedAttachment="image",this.JSC$13813_commentbox.submitButtonDisabled=!0,this.onOpen(V))};
_.P.openDialog=function(){this.JSC$13813_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13813_commentbox.focus()};
_.P.onPopupClosed=function(){_.MP.getInstance()};
_.P.computeCreationDisabled=function(V){return!!V};
_.P.computeIsCreationDialog=function(V){return!!V&&V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.P.computeDisabledPostButton=function(V){if(!V)return null;V.isDisabled=!0;return V};
_.P.computeIsCreationDialogWithHeader=function(V){return!this.inPopupContainer&&!!V&&!!V.authorText&&V.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.P.computeIsHeaderHidden=function(V,D){return!V||D};
_.P.computeDropdownRendererClasses=function(V){return V?["text-secondary-style"]:[]};
_.P.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var V=_.Pt(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;V&&V.reset()};
rS.prototype.onPopupClosed=rS.prototype.onPopupClosed;rS.prototype.onRequestSent=rS.prototype.onRequestSent;rS.prototype.onYtNavigate=rS.prototype.onYtNavigate;rS.prototype.onIronSelect=rS.prototype.onIronSelect;rS.prototype.onYtVideoLinkSelected=rS.prototype.onYtVideoLinkSelected;rS.prototype.onYtVideoLinkButtonCancel=rS.prototype.onYtVideoLinkButtonCancel;rS.prototype.onYtCommentboxLoadingEnd=rS.prototype.onYtCommentboxLoadingEnd;rS.prototype.onYtCommentboxLoadingStart=rS.prototype.onYtCommentboxLoadingStart;
rS.prototype.onYtCommentboxDismiss=rS.prototype.onYtCommentboxDismiss;rS.prototype.showButtonEduTooltip=rS.prototype.showButtonEduTooltip;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],rS.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],rS.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rS.prototype,"isOpen",void 0);_.S([_.q({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],rS.prototype,"buttonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rS.prototype,"modern",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rS.prototype,"roundedContainer",void 0);_.S([_.q(),_.p("design:type",Object)],rS.prototype,"dropdownButtonOverride",void 0);_.S([_.q({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.p("design:type",Boolean)],rS.prototype,"creationDisabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],rS.prototype,"enableCreationBox",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.p("design:type",Boolean)],rS.prototype,"isCreationDialog",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rS.prototype,"inPopupContainer",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.p("design:type",Boolean)],rS.prototype,"isCreationDialogWithHeader",void 0);_.S([_.q(),_.p("design:type",Object)],rS.prototype,"accessRestriction",void 0);
_.S([_.q({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.p("design:type",Array)],rS.prototype,"dropdownRendererClasses",void 0);_.S([_.q(),_.p("design:type",Object)],rS.prototype,"isCommentboxLoading",void 0);_.S([_.q(),_.p("design:type",Array)],rS.prototype,"attachmentButtonIds",void 0);_.S([_.Zv("#image-button"),_.p("design:type",HTMLElement)],rS.prototype,"imageButton",void 0);
_.S([_.Zv("#image-poll-button"),_.p("design:type",HTMLElement)],rS.prototype,"imagePollButton",void 0);_.S([_.Zv("#quiz-button"),_.p("design:type",HTMLElement)],rS.prototype,"quizButton",void 0);_.S([_.Zv("#commentbox"),_.p("design:type",Object)],rS.prototype,"JSC$13813_commentbox",void 0);_.S([_.KI("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rS.prototype,"showButtonEduTooltip",null);
_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtCommentboxDismiss",null);_.S([_.bU("yt-commentbox-loading-start"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtCommentboxLoadingStart",null);
_.S([_.bU("yt-commentbox-loading-end"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtCommentboxLoadingEnd",null);_.S([_.bU("yt-video-link-button-cancel"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtVideoLinkButtonCancel",null);
_.S([_.bU("yt-video-link-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtVideoLinkSelected",null);_.S([_.bU("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onIronSelect",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onYtNavigate",null);
_.S([_.bU("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rS.prototype,"onRequestSent",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rS.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],rS);
_.Y(rS,"ytd-backstage-post-dialog-renderer",function(){if(g6E!==void 0)return g6E;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return g6E=V},{mode:1});var fGY;var n_V;var Hv=function(){return _.E.apply(this,arguments)||this};
_.v(Hv,_.E);_.P=Hv.prototype;_.P.computeHeartButtonStyle=function(V){return(V==null?0:V.styleType)?V.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onYtButtonTap=function(){if(this.data.isEnabled){var V=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(V=this.getEndpoint(V))&&_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})}else(V=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(V)};
_.P.toggle=function(V){this.set("data.isHearted",V!==void 0?V:!this.data.isHearted)};
_.P.getEndpoint=function(V){var D,f=(D=this.data)==null?void 0:D.heartEndpoint,n;D=(n=this.data)==null?void 0:n.unheartEndpoint;if(f&&D)return V?D:f};
_.P.computeButtonAccessibility=function(V,D){var f,n,t=V==null?void 0:(f=V.heartedAccessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label,J,H;V=V==null?void 0:(J=V.unheartedAccessibility)==null?void 0:(H=J.accessibilityData)==null?void 0:H.label;return D?t:V};
_.IG.Object.defineProperties(Hv.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 V;return _.c("kevlar_system_icons")&&!((V=this.data)==null||!V.isHearted)}}});
Hv.prototype.onYtButtonTap=Hv.prototype.onYtButtonTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],Hv.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hv.prototype,"data",void 0);_.S([_.R("data.isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hv.prototype,"heartTooltip",null);
_.S([_.R("data.isHearted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Hv.prototype,"iconFilled",null);_.S([_.q({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.p("design:type",String)],Hv.prototype,"buttonAccessibility",void 0);_.S([_.q({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],Hv.prototype,"heartButtonStyle",void 0);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hv.prototype,"onYtButtonTap",null);_.S([_.a({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Hv);
_.Y(Hv,"ytd-creator-heart-renderer",function(){if(n_V!==void 0)return n_V;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return n_V=V},{mode:1});var wS=function(){var V=_.E.apply(this,arguments)||this;V.hasCreatorReply=!1;V.buttonOverrides={size:"S",iconPosition:"icon-only"};V.replyButtonOverrides={size:"S",type:"text"};V.forceIconButton=!_.c("web_modern_buttons");V.modern=_.c("web_modern_buttons");V.buttonTooltipPosition="bottom";V.systemIcons=_.c("kevlar_system_icons");V.replyDialog=null;return V};
_.v(wS,_.E);_.P=wS.prototype;
_.P.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]]"}}}}}};
_.P.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.P.dataChange=function(){this.replyDialog&&_.Pt(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var V,D,f;this.isLiked=this.systemIcons&&!!((V=this.data)==null?0:(D=V.likeButton)==null?0:(f=D.toggleButtonRenderer)==null?0:f.isToggled)};
_.P.computeShowVoteCountBeginning=function(V,D){return V===void 0||D===void 0?!0:V.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.P.computeShowVoteCountEnd=function(V,D){return V===void 0||D===void 0?!0:V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.P.computeShowCommentCount=function(V,D){return V===void 0||D===void 0?!0:V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.P.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.P.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.P.showReplyDialog=function(V){V&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Pt(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=V,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.P.onRequestSent=function(V){if(_.c("web_button_rework")){V=_.r(V.detail);for(var D=V.next();!D.done;D=V.next())(D=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",D.value))&&this.showReplyDialog(D)}};
_.P.onYtNavigate=function(V){var D,f;(V=(D=_.g(V.detail.endpoint,_.mQY))==null?void 0:(f=D.dialog)==null?void 0:f.commentReplyDialogRenderer)&&this.showReplyDialog(V)};
_.P.onYtServiceRequestSent=function(V,D){V.stopPropagation();if(D.actions)for(V=0;V<D.actions.length;V++){var f=_.g(D.actions[V],RKu);f&&this.handleUpdateCommentVoteAction(f)}};
_.P.handleUpdateCommentVoteAction=function(V){this.voteCount=V.voteCount||_.pA("0");V.voteStatus==="LIKE"?this.JSC$13824_ytdDislikeToggleButtonRenderer.toggle(!1):V.voteStatus==="DISLIKE"?this.JSC$13824_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13824_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13824_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.P.computeReplyButtonHidden=function(V){return V};
_.P.computeReplyButtonBeginning=function(V){return(V==null?0:V.replyButton)&&V.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?V.replyButton:void 0};
_.P.computeReplyButtonEnd=function(V){return(V==null?0:V.replyButton)&&V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?V.replyButton:void 0};
_.P.computeActionButtonStyle=function(V){return(V==null?0:V.style)?V.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.P.onYtToggleButton=function(V){var D,f;this.isLiked=this.systemIcons&&!!((D=V.detail)==null?0:(f=D.actions)==null?0:f.like)};
wS.prototype.onYtToggleButton=wS.prototype.onYtToggleButton;wS.prototype.onButtonTooltipPositionChanged=wS.prototype.onButtonTooltipPositionChanged;wS.prototype.onYtServiceRequestSent=wS.prototype.onYtServiceRequestSent;wS.prototype.onYtNavigate=wS.prototype.onYtNavigate;wS.prototype.onRequestSent=wS.prototype.onRequestSent;wS.prototype.onYtCommentboxDismiss=wS.prototype.onYtCommentboxDismiss;wS.prototype.dataChange=wS.prototype.dataChange;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"voteCount",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"commentCount",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"replyThumbnail",void 0);
_.S([_.q(),_.p("design:type",Object)],wS.prototype,"hasCreatorReply",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],wS.prototype,"enableCreationBox",void 0);_.S([_.q({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],wS.prototype,"actionButtonsStyle",void 0);_.S([_.q({computed:"computeReplyButtonBeginning(data)"}),_.p("design:type",Object)],wS.prototype,"replyButtonBeginning",void 0);
_.S([_.q({computed:"computeReplyButtonEnd(data)"}),_.p("design:type",Object)],wS.prototype,"replyButtonEnd",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"buttonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"replyButtonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"forceIconButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],wS.prototype,"useCommentIcon",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],wS.prototype,"modern",void 0);_.S([_.q(),_.p("design:type",Object)],wS.prototype,"buttonTooltipPosition",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],wS.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],wS.prototype,"isLiked",void 0);_.S([_.Zv("ytd-button-renderer"),_.p("design:type",Object)],wS.prototype,"ytdReplyButtonRenderer",void 0);
_.S([_.Zv("#like-button"),_.p("design:type",Object)],wS.prototype,"JSC$13824_ytdLikeToggleButtonRenderer",void 0);_.S([_.Zv("#dislike-button"),_.p("design:type",Object)],wS.prototype,"JSC$13824_ytdDislikeToggleButtonRenderer",void 0);_.S([_.Zv("#reply-dialog"),_.p("design:type",HTMLElement)],wS.prototype,"replyDialogElement",void 0);_.S([_.Zv("#reply-button"),_.p("design:type",HTMLElement)],wS.prototype,"replyButtonElement",void 0);
_.S([_.Zv("#reply-button-end"),_.p("design:type",HTMLElement)],wS.prototype,"replyButtonEndElement",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wS.prototype,"dataChange",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wS.prototype,"onYtCommentboxDismiss",null);
_.S([_.bU("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wS.prototype,"onRequestSent",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wS.prototype,"onYtNavigate",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],wS.prototype,"onYtServiceRequestSent",null);_.S([_.KI("buttonTooltipPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wS.prototype,"onButtonTooltipPositionChanged",null);
_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],wS.prototype,"onYtToggleButton",null);_.S([_.a({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],wS);
_.Y(wS,"ytd-comment-action-buttons-renderer",function(){if(fGY!==void 0)return fGY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fGY=V},{mode:1});var tiY;var Q_=function(){return _.E.apply(this,arguments)||this};
_.v(Q_,_.E);Q_.prototype.focus=function(){_.Pt(this.hostElement).querySelector("#commentbox").focus()};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Q_.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Q_.prototype,"zeroStepChannelCreationRenderer",void 0);_.S([_.a({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Q_);
_.Y(Q_,"ytd-comment-dialog-renderer",function(){if(tiY!==void 0)return tiY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return tiY=V},{mode:1});var Pw6;var T7=function(){var V=_.E.apply(this,arguments)||this;V.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.c("enable_web_delhi_icons")};V.replyButtonOverrides={size:"S",type:"text"};return V};
_.v(T7,_.E);_.P=T7.prototype;_.P.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.P.detached=function(){this.replyBox&&this.replyBox.remove()};
_.P.showReplyDialog=function(V){if(V){var D=this.replyBox;D||(D=document.createElement("ytd-comment-reply-dialog-renderer"),D.id="replybox",_.Pt(this.replyDialogDiv).appendChild(D));D.data=V;this.replyDialogDiv.hidden=!1;D.openDialog()}};
_.P.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.P.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var V,D=_.g((V=this.toolbarSurface)==null?void 0:V.subscribersOnlyDisclaimerSnackbarCommand,_.q3);D&&_.PA(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:D})}};
_.P.onYtServiceRequestSent=function(V,D){V.stopPropagation();if(D.actions)for(var f=0;f<D.actions.length;f++){var n=_.g(D.actions[f],RKu);n?this.handleUpdateCommentVoteAction(n):V.target===this.heartButton&&this.toggleHeartState()}};
_.P.handleUpdateCommentVoteAction=function(V){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.XW("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:V.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":V.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.P.toggleHeartState=function(){var V;(V=this.toolbarState)!=null&&V.key&&this.ytdReduxBehavior.dispatch(_.XW("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.IG.Object.defineProperties(T7.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return(((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(D=this.toolbarData)==null?void 0:D.likeCountLiked:(f=this.toolbarData)==null?void 0:f.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand)!==void 0&&!_.c("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D=_.g((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand,_.q3),f,n,t,J,H,Q,T,y,Z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:D!=null?D:_.g((t=this.toolbarSurface)==null?void 0:t.likeCommand,_.q3),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.g((J=this.toolbarSurface)==null?void 0:J.unlikeCommand,_.q3),defaultCommand:this.isVisiblyDisabled?_.g((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand,_.q3):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.likeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:T.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(y=this.toolbarData)==null?void 0:y.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D=_.g((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand,_.q3),f,n,t,J,H,Q,T,y,Z,l;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.g((t=this.toolbarSurface)==null?void 0:t.dislikeCommand,_.q3),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.g((J=this.toolbarSurface)==null?void 0:J.undislikeCommand,_.q3),defaultCommand:this.isVisiblyDisabled?_.g((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand,_.q3):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.dislikeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:
T.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(y=this.toolbarSharedData)==null?void 0:y.dislikeReplyButtonA11y:(Z=this.toolbarSharedData)==null?void 0:Z.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D,f;if(((V=this.toolbarState)==null?void 0:V.heartState)!==void 0&&((D=this.toolbarState)==null?void 0:D.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((f=this.toolbarState)==null?void 0:f.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var n,t,J,H,Q,T,y,Z,l,G,F,k,d,z;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(n=this.toolbarData)==null?void 0:n.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((H=this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.g((T=this.toolbarSurface)==null?void 0:T.heartCommand,
_.q3),unheartEndpoint:this.isVisiblyDisabled?void 0:_.g((y=this.toolbarSurface)==null?void 0:y.unheartCommand,_.q3),disabledEndpoint:this.isVisiblyDisabled?_.g((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.q3):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(l=this.toolbarData)==null?void 0:l.heartActiveTooltip,unheartedTooltip:(G=this.toolbarData)==null?void 0:G.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((F=
this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(k=this.toolbarSharedData)==null?void 0:k.unheartButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.toolbarSurface)==null||!V.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(V=this.commentStrings)==null?void 0:V.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.g((D=this.toolbarSurface)==null?void 0:D.replyCommand,_.q3),command:this.isVisiblyDisabled?_.g((f=this.toolbarSurface)==null?
void 0:f.commentDisabledActionCommand,_.q3):this.isSubsOnlyCommentsIneligibleUser?_.g((n=this.toolbarSurface)==null?void 0:n.subscribersOnlySnackbarCommand,_.q3):void 0}}}});
T7.prototype.onYtServiceRequestSent=T7.prototype.onYtServiceRequestSent;T7.prototype.hideReplyDialogDiv=T7.prototype.hideReplyDialogDiv;_.S([_.q(),_.p("design:type",Object)],T7.prototype,"commentStrings",void 0);_.S([_.q(),_.p("design:type",Boolean)],T7.prototype,"isReply",void 0);_.S([_.q(),_.p("design:type",Object)],T7.prototype,"toolbarData",void 0);_.S([_.q(),_.p("design:type",Object)],T7.prototype,"toolbarSharedData",void 0);
_.S([_.q(),_.p("design:type",String)],T7.prototype,"toolbarStateKey",void 0);_.S([_.q(),_.p("design:type",String)],T7.prototype,"toolbarSurfaceKey",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],T7.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.WO),_.p("design:type",Object)],T7.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.Zv("#reply-dialog"),_.p("design:type",HTMLElement)],T7.prototype,"replyDialogDiv",void 0);_.S([_.Zv("#replybox"),_.p("design:type",Object)],T7.prototype,"replyBox",void 0);_.S([_.Zv("ytd-creator-heart-renderer"),_.p("design:type",Object)],T7.prototype,"heartButton",void 0);_.S([_.q({selector:function(V,D){return _.wg(V.entities,"engagementToolbarStateEntityPayload",D)},
selectorArgs:["toolbarStateKey"]}),_.p("design:type",Object)],T7.prototype,"toolbarState",void 0);_.S([_.q({selector:XMc,selectorArgs:["toolbarSurfaceKey"]}),_.p("design:type",Object)],T7.prototype,"toolbarSurface",void 0);_.S([_.q(),_.p("design:type",Object)],T7.prototype,"buttonOverrides",void 0);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T7.prototype,"hideReplyDialogDiv",null);
_.S([_.R("toolbarData","toolbarState"),_.p("design:type",String),_.p("design:paramtypes",[])],T7.prototype,"likeCount",null);_.S([_.R("likeCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"showLikeCount",null);_.S([_.R("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"isVisiblyDisabled",null);_.S([_.R("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.S([_.R("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"isSubsOnlyCommentsEligibleUser",null);_.S([_.R("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"hasPrepareAccountCommand",null);_.S([_.R("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],T7.prototype,"likeToggleButtonRenderer",null);
_.S([_.R("isReply","toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],T7.prototype,"dislikeToggleButtonRenderer",null);_.S([_.R("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],T7.prototype,"creatorHeartSupportedRenderer",null);_.S([_.R("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],T7.prototype,"hasReplyCommand",null);
_.S([_.R("toolbarSurface","commentStrings","isVisiblyDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],T7.prototype,"replyButtonRenderer",null);_.S([_.q(),_.p("design:type",Object)],T7.prototype,"replyButtonOverrides",void 0);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],T7.prototype,"onYtServiceRequestSent",null);_.S([_.a({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],T7);
_.Y(T7,"ytd-comment-engagement-bar",function(){if(Pw6!==void 0)return Pw6;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Pw6=V},{mode:1});var o_F;var bI=function(){return _.E.apply(this,arguments)||this};
_.v(bI,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bI.prototype,"data",void 0);_.S([_.a({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],bI);
_.Y(bI,"ytd-comment-inline-thumbnail-renderer",function(){if(o_F!==void 0)return o_F;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return o_F=V},{mode:1});var JpE;var K5=function(){return _.E.apply(this,arguments)||this};
_.v(K5,_.E);K5.prototype.onMessageTap=function(){if(this.onTapCommand){var V=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);V&&this.ytdOpenPopupBehavior.openPopup(V)}};
_.IG.Object.defineProperties(K5.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return(V=this.data)==null?void 0:(D=V.button)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.command}}});
_.S([_.u(_.WO),_.p("design:type",Object)],K5.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],K5.prototype,"data",void 0);_.S([_.R("data.button.buttonRenderer.command"),_.p("design:type",Object),_.p("design:paramtypes",[])],K5.prototype,"onTapCommand",null);_.S([_.a({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],K5);
_.Y(K5,"ytd-comment-pause-composer-renderer",function(){if(JpE!==void 0)return JpE;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return JpE=V},{mode:1});var rpo;var HBu;var y_=function(){var V=_.E.apply(this,arguments)||this;V.isOpen=!1;return V};
_.v(y_,_.E);_.P=y_.prototype;_.P.dataChanged=function(){this.isOpen=!1};
_.P.onTap=function(){this.data&&(this.data.navigationEndpoint?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.P.focus=function(){this.JSC$13854_commentbox.focus()};
_.P.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.P.openDialog=function(){this.isOpen=!0;this.JSC$13854_commentbox.focus();this.JSC$13854_commentbox.maybeHeightChanged()};
y_.prototype.onYtCommentboxDismiss=y_.prototype.onYtCommentboxDismiss;y_.prototype.dataChanged=y_.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],y_.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],y_.prototype,"isOpen",void 0);_.S([_.Zv("#commentbox"),_.p("design:type",Object)],y_.prototype,"JSC$13854_commentbox",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],y_.prototype,"dataChanged",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],y_.prototype,"onYtCommentboxDismiss",null);_.S([_.a({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],y_);
_.Y(y_,"ytd-comment-reply-dialog-renderer",function(){if(HBu!==void 0)return HBu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return HBu=V},{mode:1});var wsr;var Zh=function(){return _.E.apply(this,arguments)||this};
_.v(Zh,_.E);_.IG.Object.defineProperties(Zh.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.icon)==null?void 0:D.iconType;return f?"yt-icons:"+f.toLowerCase():null}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Zh.prototype,"data",void 0);_.S([_.q(),_.R("data.icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],Zh.prototype,"icon",null);_.S([_.a({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Zh);
_.Y(Zh,"ytd-pinned-comment-badge-renderer",function(){if(wsr!==void 0)return wsr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return wsr=V},{mode:1});var QfF;var T$U={},bB6={input:!0,meta:!0,br:!0,link:!0,img:!0},j4=null;T$U.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(){j4==null&&(j4=document.createElement("tp-yt-paper-tooltip"),j4.offset=8,j4.fitToVisibleBounds=!0)},
onMouseOver_:function(V){if(V=_.qr(V.target,function(t){return t==this||t.getAttribute&&t.getAttribute("shared-tooltip-text")}.bind(this),!0)){var D=V.getAttribute("shared-tooltip-text");
if(D){var f=this,n=null;V!=this&&(V.tagName.toLowerCase()in bB6?f=V.parentElement:f=V,V.id&&(n=V.id));this.polymerController.createTooltipIfRequired_();if(j4.parentElement!=f||j4.for!=n)(0,_.Ht)(j4).textContent=D,_.Pt(f).appendChild(j4),j4.for=n,j4.animationDelay=this.polymerController.sharedTooltipAnimationDelay,j4.position=this.polymerController.sharedTooltipPosition}}}};var lI=function(){return _.E.apply(this,arguments)||this};
_.v(lI,_.E);lI.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]]"}}}}}};
lI.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
lI.prototype.colorChanged=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.color)==null?void 0:(f=D.basicColorPaletteData)==null?void 0:f.foregroundBodyColor;n&&(this.rgbBadgeColor=_.AP(n));_.Pt(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
lI.prototype.tooltipChanged=function(){var V;((V=this.data)==null?0:V.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
lI.prototype.tooltipChanged=lI.prototype.tooltipChanged;lI.prototype.colorChanged=lI.prototype.colorChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(T$U.YtSharedTooltipBehavior),_.p("design:type",Object)],lI.prototype,"ytSharedTooltipBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lI.prototype,"data",void 0);
_.S([_.q({value:"#4285F4"}),_.p("design:type",String)],lI.prototype,"rgbBadgeColor",void 0);_.S([_.KI("data.color"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"colorChanged",null);_.S([_.KI("data.tooltip"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"tooltipChanged",null);_.S([_.a({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],lI);
_.Y(lI,"ytd-sponsor-comment-badge-renderer",function(){if(QfF!==void 0)return QfF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return QfF=V},{mode:1});var Kno;var ypU;var G7=function(){return _.E.apply(this,arguments)||this};
_.v(G7,_.E);G7.prototype.computeState=function(V){switch(V==null?void 0:V.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"}};
G7.prototype.updateStateIdentifier=function(V){if(this.viewModel.triStateKey){var D=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.XW("triStateButtonStateEntityPayload",D,{key:D,stateIdentifier:V}))}};
G7.prototype.onClick=function(){var V=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(){V.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){V.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.IG.Object.defineProperties(G7.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 V;return((V=this.data)==null?void 0:V.buttonText)||""}}});
_.S([_.q(),_.p("design:type",Object)],G7.prototype,"viewModel",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],G7.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],G7.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.S([_.q({selector:ESY,selectorArgs:["viewModel.triStateKey"]}),_.p("design:type",Object)],G7.prototype,"triStateButtonStateEntity",void 0);
_.S([_.q({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.p("design:type",String)],G7.prototype,"state",void 0);_.S([_.R("viewModel","state"),_.p("design:type",Object),_.p("design:paramtypes",[])],G7.prototype,"data",null);_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],G7.prototype,"buttonText",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],G7);
_.Y(G7,"ytd-tri-state-button-view-model",function(){if(ypU!==void 0)return ypU;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ypU=V},{mode:1});var ZBV;var jfu;var e4=function(){var V=_.E.apply(this,arguments)||this;V.defaultIconToFilled=!_.c("kevlar_fill_comment_chip_icon_killswitch");return V};
_.v(e4,_.E);e4.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
e4.prototype.dataChanged=function(){if(this.data){var V,D;((V=this.data.chipColorPalette)==null?0:V.backgroundColor)&&((D=this.data.chipColorPalette)==null?0:D.foregroundTitleColor)&&_.wI(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.aB(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.aB(this.data.chipColorPalette.foregroundTitleColor)});var f;((f=this.data)==null?0:f.command)?(_.wI(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.wI(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}};
e4.prototype.onTap=function(){var V;if(this.data&&(V=this.data)!=null&&V.command){var D;this.ytComponentBehavior.resolveCommand((D=this.data)==null?void 0:D.command)}};
e4.prototype.getIconSize=function(){return _.c("kevlar_fill_comment_chip_icon_killswitch")?24:12};
e4.prototype.onTap=e4.prototype.onTap;e4.prototype.dataChanged=e4.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.ja),_.p("design:type",Object)],e4.prototype,"ironA11yKeysBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],e4.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],e4.prototype,"basePriceText",void 0);_.S([_.q(),_.p("design:type",Object)],e4.prototype,"chipIcon",void 0);_.S([_.q(),_.p("design:type",Object)],e4.prototype,"defaultIconToFilled",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e4.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e4.prototype,"onTap",null);
_.S([_.zy({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],e4);
_.Y(e4,"yt-pdg-comment-chip-renderer",function(){if(jfu===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;ZBV===void 0&&(ZBV=document.createElement("template"));var n=ZBV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);jfu=V}V=jfu;return V},{mode:2});var cv=function(){var V=_.E.apply(this,arguments)||this;V.useSmallAvatars=_.c("small_avatars_for_comments");V.webWatchCompactComments=_.c("web_watch_compact_comments");V.editDialog=null;return V};
_.v(cv,_.E);_.P=cv.prototype;_.P.onShow=function(){_.R4("cmv",void 0,"wn_comments")};
_.P.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"}}}};
_.P.detached=function(){this.editDialog=null;this.expander.reset()};
_.P.updateBackgroundColor=function(){if(this.backgroundColor){var V={"--ytd-comment-paid-background-color":_.aB(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.wI(this.hostElement,V)}else _.wI(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.P.resetExpander=function(){var V;(V=this.expander)==null||V.reset()};
_.P.openEditDialog=function(V){V.dialog&&(this.editDialog=V.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.P.onYtNavigate=function(V){var D=V.detail.endpoint;if(D=_.g(D,_.zYr)||_.g(D,_.RYu))V.stopPropagation(),this.openEditDialog(D)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null;_.wI(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.P.onAuthorThumbnailClicked=function(){var V=this;_.c("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(D,f){V.onAuthorThumbnailEndpointSuccess(f)},
onServerError:function(D,f){_.zP(new _.cI("Failed to resolve the command",f))}}})};
_.P.onAuthorThumbnailEndpointSuccess=function(V){if((V=V==null?void 0:V.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(V,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();V=V==null?void 0:V.clickTrackingParams;var D=_.u8();V&&D&&_.lS().graftServerVe(V,D)}};
_.P.logScreenVe=function(){_.P5(_.lS(),66557)};
_.P.onYtCommentboxResize=function(V){var D;(V==null?0:(D=V.detail)==null?0:D.height)&&_.wI(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":V.detail.height+"px"})};
_.IG.Object.defineProperties(cv.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 V,D=(V=this.commentEntity)==null?void 0:V.author;return D&&(D.isCreator||D.isVerified||D.isArtist)?{renderer:{authorEndpoint:D.channelPageEndpoint?_.g(D.channelPageEndpoint,_.q3):_.g(D.channelCommand,_.q3),authorText:{runs:[{text:D.displayName}]},color:D.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:D.isArtist?{iconType:"AUDIO_BADGE"}:
D.isVerified?{iconType:D.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:D.isArtist||D.isVerified?D.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.commentEntity)==null?void 0:V.author;return D!=null&&D.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:D.sponsorBadgeUrl}]},tooltip:D.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return _.g((V=this.commentSurfaceEntity)==null?void 0:V.pdgCommentChip,_.rbL)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var V;return this.voiceReplyContainerViewModel&&((V=this.voiceReplyContainerViewModel)==null?void 0:V.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return _.g((V=this.commentSurfaceEntity)==null?void 0:V.voiceReplyContainerViewModel,igo)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var V;return this.voiceReplyContainerViewModel&&(V=this.voiceReplyContainerViewModel)!=null&&V.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.commentSurfaceEntity)==null?void 0:V.commentBackgroundColor)!=null?D:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var V,D;return(((V=this.commentEntity)==null?void 0:(D=V.properties)==null?void 0:D.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var V,D;if(_.c("enable_profile_cards_on_comments")&&((V=this.commentEntity)==null?0:(D=V.author)==null?0:D.profileCardEndpoint)&&this.viewModel.allowProfileCard){var f,n;return _.g((f=this.commentEntity)==null?void 0:(n=f.author)==null?void 0:n.profileCardEndpoint,_.q3)}var t,J;return _.g((t=this.commentEntity)==null?void 0:(J=t.avatar)==null?void 0:J.endpoint,_.q3)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var V,D;if(_.c("enable_profile_cards_on_comments")&&((V=this.commentEntity)==null?0:(D=V.author)==null?0:D.channelPageEndpoint)){var f,n;return _.g((f=this.commentEntity)==null?void 0:(n=f.author)==null?void 0:n.channelPageEndpoint,_.q3)}var t,J;return _.g((t=this.commentEntity)==null?void 0:(J=t.avatar)==null?void 0:J.endpoint,_.q3)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t=(V=this.commentEntity)==null?void 0:(D=V.avatar)==null?void 0:(f=D.image)==null?void 0:(n=f.sources)==null?void 0:n[0];return t?{thumbnails:[{url:t.url,width:t.width,height:t.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.commentEntity)==null?0:(D=V.author)==null?0:D.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.commentEntity)==null?void 0:(D=V.author)==null?void 0:D.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.commentEntity)==null?void 0:(D=V.properties)==null?void 0:D.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var V;return _.g((V=this.commentSurfaceEntity)==null?void 0:V.publishedTimeCommand,_.q3)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var V,D;if(((V=this.commentEntity)==null?0:V.translatedContent)&&((D=this.translateButtonState)==null?void 0:D.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var f;if((f=this.voiceReplyContainerViewModel)==null?0:f.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var n,t;return((n=this.commentEntity)==null?void 0:(t=n.properties)==null?void 0:t.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.commentSharedEntity)==null?void 0:(D=V.strings)==null?void 0:D.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.commentSharedEntity)==null?void 0:(D=V.strings)==null?void 0:D.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.commentEntity)==null||!V.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var V,D,f=(D=_.g((V=this.viewModel)==null?void 0:V.translateButton,$kU))!=null?D:{},n,t,J,H,Q,T,y,Z,l,G,F;return Object.assign({},f,{untoggledStateData:Object.assign({},f.untoggledStateData,{buttonText:(n=this.commentEntity)==null?void 0:(t=n.translateData)==null?void 0:t.text}),togglingStateData:Object.assign({},f.togglingStateData,{buttonText:(J=this.commentSharedEntity)==null?
void 0:(H=J.strings)==null?void 0:H.translatingText}),toggledStateData:Object.assign({},f.toggledStateData,{buttonText:(Q=this.commentSharedEntity)==null?void 0:(T=Q.strings)==null?void 0:T.seeOriginalText}),transitionCommand:((y=this.commentEntity)==null?0:y.translatedContent)?void 0:_.g((Z=this.commentEntity)==null?void 0:(l=Z.translateData)==null?void 0:l.translateComment,_.q3),triStateKey:(G=this.commentEntity)==null?void 0:(F=G.properties)==null?void 0:F.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((D=_.g(_.g((V=this.toolbarSurface)==null?void 0:V.menuCommand,_.q3),CiU))==null?void 0:(f=D.menu)==null?void 0:f.menuRenderer)||null}}});
cv.prototype.onYtCommentboxResize=cv.prototype.onYtCommentboxResize;cv.prototype.onYtCommentboxDismiss=cv.prototype.onYtCommentboxDismiss;cv.prototype.onYtNavigate=cv.prototype.onYtNavigate;cv.prototype.resetExpander=cv.prototype.resetExpander;cv.prototype.updateBackgroundColor=cv.prototype.updateBackgroundColor;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#author-thumbnail > button"),_.p("design:type",HTMLElement)],cv.prototype,"authorThumbnailAnchor",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cv.prototype,"linked",null);
_.S([_.R("viewModel","linked"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"linkedCommentBadge",null);_.S([_.q({reflectToAttribute:!0}),_.R("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cv.prototype,"pinned",null);_.S([_.R("viewModel","pinned"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"pinnedCommentBadge",null);
_.S([_.R("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"authorCommentBadge",null);_.S([_.q({reflectToAttribute:!0}),_.R("authorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"hasAuthorBadge",null);_.S([_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"sponsorCommentBadge",null);
_.S([_.q({reflectToAttribute:!0}),_.R("sponsorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"hasSponsorBadge",null);_.S([_.R("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"pdgCommentChipRenderer",null);_.S([_.q({reflectToAttribute:!0}),_.R("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"hasVoiceReply",null);
_.S([_.R("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"voiceReplyContainerViewModel",null);_.S([_.R("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"voiceReplyUnavailableText",null);_.S([_.q(),_.p("design:type",Object)],cv.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"viewModel",null);
_.S([_.q({selector:function(V,D){return _.wg(V.entities,"commentSharedEntityPayload",D)},
selectorArgs:["viewModel.sharedKey"]}),_.p("design:type",Object)],cv.prototype,"commentSharedEntity",void 0);_.S([_.q({selector:function(V,D){return _.wg(V.entities,"commentEntityPayload",D)},
selectorArgs:["viewModel.commentKey"]}),_.p("design:type",Object)],cv.prototype,"commentEntity",void 0);_.S([_.q({selector:function(V,D){return _.wg(V.entities,"commentSurfaceEntityPayload",D)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.p("design:type",Object)],cv.prototype,"commentSurfaceEntity",void 0);_.S([_.q({selector:XMc,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.p("design:type",Object)],cv.prototype,"toolbarSurface",void 0);_.S([_.q({selector:ESY,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.p("design:type",Object)],cv.prototype,"translateButtonState",void 0);
_.S([_.R("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"backgroundColor",null);_.S([_.q({reflectToAttribute:!0}),_.R("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cv.prototype,"optimalReadingWidthComments",null);_.S([_.Zv("ytd-expander"),_.p("design:type",Object)],cv.prototype,"expander",void 0);
_.S([_.KI("backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cv.prototype,"updateBackgroundColor",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cv.prototype,"useSmallAvatars",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cv.prototype,"webWatchCompactComments",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"isReply",null);
_.S([_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"authorThumbnailEndpoint",null);_.S([_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"authorNameEndpoint",null);_.S([_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"authorThumbnail",null);_.S([_.R("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],cv.prototype,"authorTextClass",null);
_.S([_.R("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],cv.prototype,"authorChannelName",null);_.S([_.R("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"publishedTime",null);_.S([_.R("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"publishedTimeCommand",null);
_.S([_.R("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"contentText",null);_.S([_.KI("contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cv.prototype,"resetExpander",null);_.S([_.R("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cv.prototype,"shouldShowReadMoreInitially",null);
_.S([_.R("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],cv.prototype,"expandText",null);_.S([_.R("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],cv.prototype,"collapseText",null);_.S([_.R("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cv.prototype,"shouldShowTranslateButton",null);
_.S([_.R("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"translateButton",null);_.S([_.R("toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],cv.prototype,"overflowMenuRenderer",null);_.S([_.q(),_.p("design:type",Object)],cv.prototype,"editDialog",void 0);_.S([_.Zv("ytd-comment-dialog-renderer"),_.p("design:type",Object)],cv.prototype,"editCommentDialogContainer",void 0);
_.S([_.Zv("ytd-comment-reply-dialog-renderer"),_.p("design:type",Object)],cv.prototype,"editReplyDialogContainer",void 0);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cv.prototype,"onYtNavigate",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cv.prototype,"onYtCommentboxDismiss",null);
_.S([_.bU("yt-commentbox-resize"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cv.prototype,"onYtCommentboxResize",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-comment-view-model"})],cv);
_.Y(cv,"ytd-comment-view-model",function(){if(Kno!==void 0)return Kno;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Kno=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var F0=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_modern_buttons");V.commentThreadingEnabled=_.c("web_delhi_comment_threads");V.isWatchGrid=_.c("kevlar_watch_grid");V.buttonOverrides=V.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};V.JSC$13901_spinnerEl=null;return V};
_.v(F0,_.E);_.P=F0.prototype;_.P.configureContinuationPathMap=function(){return _.c("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.computeThreadRenderer=function(V){return _.g(V,C4u)};
_.P.computeIsContinuationItem=function(V){return!!this.computeContinuationItemRenderer(V)};
_.P.computeContinuationItemRenderer=function(V){return _.g(V,_.fY)};
_.P.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]]"}}}}}};
_.P.attached=function(){this.isShowRepliesVisible=!0};
_.P.dataChanged=function(){var V=this.expanderContents;V&&(V.hidden=!0);this.isLoading=!1};
_.P.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.P.isLoadingChanged=function(){this.isLoading&&!this.JSC$13901_spinnerEl&&(this.JSC$13901_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Pt(this.expanderContents).appendChild(this.JSC$13901_spinnerEl));this.JSC$13901_spinnerEl&&(this.JSC$13901_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var V;(V=this.contents)==null||V.classList.remove("reloading")}};
_.P.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var V=_.g(this.data.viewReplies,_.RI);V&&this.ytRendererBehavior.logExplicitClick(V)};
_.P.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var V=_.g(this.data.hideReplies,_.RI);V&&this.ytRendererBehavior.logExplicitClick(V)};
_.P.isShowMoreChanged=function(){var V=_.Pt(this.hostElement).querySelector("#expander-contents");V&&(V.hidden=this.isShowRepliesVisible)};
_.P.computeAlign=function(){if(this.modern){var V;return!((V=this.data)==null?0:V.viewRepliesCreatorThumbnail)}};
_.IG.Object.defineProperties(F0.prototype,{shouldHideExpander:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.data)==null?void 0:V.contents,f,n,t;return!(D&&D.length>0&&D[D.length-1].continuationItemRenderer)||((t=(f=this.data)==null?void 0:(n=f.subThreads)==null?void 0:n.length)!=null?t:0)>0}}});
F0.prototype.isShowMoreChanged=F0.prototype.isShowMoreChanged;F0.prototype.isLoadingChanged=F0.prototype.isLoadingChanged;F0.prototype.triggerFirstContinuation=F0.prototype.triggerFirstContinuation;F0.prototype.dataChanged=F0.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.$D),_.p("design:type",Object)],F0.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],F0.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],F0.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],F0.prototype,"commentThreadingEnabled",void 0);_.S([_.q(),_.p("design:type",Boolean)],F0.prototype,"isLoading",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],F0.prototype,"isShowRepliesVisible",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],F0.prototype,"useNewFormatting",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],F0.prototype,"isWatchGrid",void 0);_.S([_.q(),_.p("design:type",Object)],F0.prototype,"buttonOverrides",void 0);_.S([_.Zv("#expander-contents"),_.p("design:type",HTMLElement)],F0.prototype,"expanderContents",void 0);
_.S([_.Zv("ytd-continuation-item-renderer"),_.p("design:type",Object)],F0.prototype,"continuationItemRenderer",void 0);_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],F0.prototype,"contents",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"dataChanged",null);_.S([_.R("data.contents","data.subThreads"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],F0.prototype,"shouldHideExpander",null);
_.S([_.bU("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"triggerFirstContinuation",null);_.S([_.KI("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"isLoadingChanged",null);_.S([_.KI("isShowRepliesVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"isShowMoreChanged",null);
_.S([_.a({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],F0);
_.Y(F0,"ytd-comment-replies-renderer",function(){if(rpo!==void 0)return rpo;var V=document.createElement("template");_.B(V,'\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="[[shouldHideExpander]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="sub-threads" hidden="[[!data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-continuation-item$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return rpo=V},{mode:1});var lGu;var gS=function(){var V=_.E.apply(this,arguments)||this;V.isOpen=!1;V.commentDialog=null;V.useSmallAvatars=_.c("small_avatars_for_comments");V.useSmallAvatarsEngagementPanelOnly=_.c("small_avatars_for_comments_ep");V.placeholderFocusListener=null;V.hasOpenedDialog=!1;V.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return V};
_.v(gS,_.E);_.P=gS.prototype;_.P.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]]"}}}}}};
_.P.ready=function(){var V=this,D=_.Pt(this.hostElement).querySelector("#placeholder-area"),f=_.Pt(this.hostElement).querySelector("#simplebox-placeholder"),n=function(t){t.stopPropagation();t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||V.openDialog()};
this.placeholderFocusListener=n;f.addEventListener("focus",this.placeholderFocusListener);D.addEventListener("tap",n);D.addEventListener("keypress",n)};
_.P.maybeRemoveFocusEventListener=function(){var V;(V=this.data)!=null&&V.prepareAccountEndpoint&&!_.c("web_comments_simplebox_modal_focus_on_tap_ks")&&(V=_.Pt(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(V.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.P.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.P.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.c("web_comment_simplebox_resolve_polymer_command_ks")?_.bS.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Km(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var V=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);V&&this.ytdOpenPopupBehavior.openPopup(V);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Pt(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.P.onYtCommentboxDismiss=function(V){V.stopPropagation();this.isOpen=!1};
_.P.onCreateCommentAction=function(V){this.get("createCommentAction.contents",V)&&(this.isOpen=!1)};
_.P.computeCommentDialog=function(V){return{placeholderText:V.placeholderText,authorThumbnail:V.authorThumbnail,submitButton:V.submitButton,imageButton:V.imageButton,cancelButton:V.cancelButton,emojiButton:V.emojiButton,emojis:V.emojis,emojiPicker:V.emojiPicker,aadcGuidelinesStateEntityKey:V.aadcGuidelinesStateEntityKey,openAadcDialog:V.openAadcDialog,unicodeEmojisUrl:V.unicodeEmojisUrl}};
_.P.onHideIdentityChip=function(V){_.g(V,dko)&&this.set("data.placeholderText",_.g(V,dko).placeholderText)};
gS.prototype.onYtCommentboxDismiss=gS.prototype.onYtCommentboxDismiss;gS.prototype.dataChanged=gS.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],gS.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],gS.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gS.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],gS.prototype,"isOpen",void 0);_.S([_.q(),_.p("design:type",Object)],gS.prototype,"commentDialog",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],gS.prototype,"engagementPanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gS.prototype,"useSmallAvatars",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gS.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],gS.prototype,"enableCreationBox",void 0);_.S([_.q(),_.p("design:type",Boolean)],gS.prototype,"showCreateDialog",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gS.prototype,"dataChanged",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],gS.prototype,"onYtCommentboxDismiss",null);_.S([_.a({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],gS);
_.Y(gS,"ytd-comment-simplebox-renderer",function(){if(lGu!==void 0)return lGu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return lGu=V},{mode:1});var GpU;_.zk("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var vv=function(){var V=_.E.apply(this,arguments)||this;V.addHoverEffect=_.c("swatcheroo_comments_hover_effect");return V};
_.v(vv,_.E);vv.prototype.onTap=function(V){if(this.addHoverEffect&&!this.engagementPanel&&!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||_.Km({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
vv.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.IG.Object.defineProperties(vv.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.commentViewModel)return _.g(this.data.commentViewModel,YkY)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return _.c("web_delhi_comment_threads")&&!!((V=this.data)==null?0:(D=V.replies)==null?0:(f=D.commentRepliesRenderer)==null?0:f.subThreads)}}});
vv.prototype.onTap=vv.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vv.prototype,"addHoverEffect",void 0);_.S([_.q(),_.p("design:type",Object)],vv.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],vv.prototype,"isSubThread",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"commentViewModel",null);_.S([_.R("data.replies"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vv.prototype,"hasSubThreading",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],vv.prototype,"engagementPanel",void 0);
_.S([_.bU("tap"),_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],vv.prototype,"onTap",null);_.S([_.a({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],vv);
_.Y(vv,"ytd-comment-thread-renderer",function(){if(GpU!==void 0)return GpU;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return GpU=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var epH;var k2=function(){var V=_.E.apply(this,arguments)||this;V.modernTypography=_.c("web_modern_typography");V.compactHeader=_.c("web_watch_compact_comments_header");V.hidePanelButton=!1;V.isPostSchedulingEnabled=_.c("enable_post_scheduling");V.hasFinishedStamping=!1;V.JSC$13920_handleOpenPostCommentDialogActionAfterStamp=!1;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.v(k2,_.E);_.P=k2.prototype;
_.P.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"}}}};
_.P.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.P.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13920_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.onYtServiceRequestSent=function(V,D){if(!_.c("kevlar_command_handler")&&D.actions)for(V=0;V<D.actions.length;V++){var f=D.actions[V];_.g(f,hRV)&&_.Pt(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.g(f,hRV))}};
_.P.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var V;if(this.getPrefilledBackstagePostDialog((V=this.data)==null?void 0:V.actions)){_.Pt(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var D=_.Pt(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;D&&_.pO(this,function(){D.focus();D.openDialog&&D.openDialog()})}}else this.hasActionsChange=!0};
_.P.computeIsBackstage=function(V){return V};
_.P.onYtCommentboxDismiss=function(){_.Pt(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.P.removePrefilledDialog=function(V){if(V==null?0:V.actions){for(var D=V.actions.length-1;D>=0;D--){var f=void 0;((f=_.g(V.actions[D],NlF))==null?0:f.dialog)&&delete V.actions[D]}this.set("data",void 0);this.set("data",V)}};
_.P.getPrefilledBackstagePostDialog=function(V){if(V)for(var D=0;D<V.length;D++){var f=V[D],n=void 0;if((n=_.g(f,NlF))==null?0:n.dialog)return _.g(f,NlF).dialog}return null};
_.P.computeBackstagePostDialog=function(V){return V&&(this.getPrefilledBackstagePostDialog(V.actions)||V.createRenderer)};
_.P.dataChanged=function(){if(this.data){var V=this.data.customEmojis,D=this.data.unicodeEmojisUrl;_.Ct.clear();D&&_.cMF(_.Ct,D);V&&_.Ct.load(V)}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var V=_.Pt(this.hostElement).querySelector("ytd-comment-simplebox-renderer");V?V.openDialog():this.JSC$13920_handleOpenPostCommentDialogActionAfterStamp=!0};
_.IG.Object.defineProperties(k2.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.c("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J,H;return!this.hidePanelButton&&_.c("kevlar_watch_comments_panel_button")&&((H=_.g((V=this.data)==null?void 0:(D=V.sortMenu)==null?void 0:(f=D.sortFilterSubMenuRenderer)==null?void 0:(n=f.subMenuItems)==null?void 0:(t=n[0])==null?void 0:(J=t.serviceEndpoint)==null?void 0:J.commandMetadata,_.he))==null?void 0:H.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Zl("MINIPLAYER_EXPAND_LABEL"),text:_.pA(_.Zl("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
k2.prototype.dataChanged=k2.prototype.dataChanged;k2.prototype.onYtCommentboxDismiss=k2.prototype.onYtCommentboxDismiss;k2.prototype.observePrefilledBackstagePostDialog=k2.prototype.observePrefilledBackstagePostDialog;k2.prototype.onYtServiceRequestSent=k2.prototype.onYtServiceRequestSent;k2.prototype.onStampFinished=k2.prototype.onStampFinished;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],k2.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],k2.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],k2.prototype,"modernTypography",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],k2.prototype,"compactHeader",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],k2.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Object)],k2.prototype,"hidePanelButton",void 0);_.S([_.q({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.p("design:type",Boolean)],k2.prototype,"isBackstage",void 0);_.S([_.q({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.p("design:type",Object)],k2.prototype,"backstagePostDialog",void 0);
_.S([_.q(),_.p("design:type",Object)],k2.prototype,"isPostSchedulingEnabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],k2.prototype,"useSpaceBetween",null);_.S([_.q({reflectToAttribute:!0}),_.R("data","hidePanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],k2.prototype,"showCommentsPanelButton",null);
_.S([_.R("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],k2.prototype,"commentsPanelButtonData",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k2.prototype,"onStampFinished",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],k2.prototype,"onYtServiceRequestSent",null);
_.S([_.KI("data.actions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k2.prototype,"observePrefilledBackstagePostDialog",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],k2.prototype,"onYtCommentboxDismiss",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k2.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],k2);
_.Y(k2,"ytd-comments-header-renderer",function(){if(epH!==void 0)return epH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return epH=V},{mode:1});var cpo;var sS=function(){return _.E.apply(this,arguments)||this};
_.v(sS,_.E);_.S([_.q(),_.p("design:type",Object)],sS.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.S([_.a({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],sS);
_.Y(sS,"ytd-destination-button-renderer",function(){if(cpo!==void 0)return cpo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return cpo=V},{mode:1});var FnH;var Bv=function(){var V=_.E.apply(this,arguments)||this;V.isRichGrid=!1;V.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};V.modernTypography=_.c("web_modern_typography");return V};
_.v(Bv,_.E);_.P=Bv.prototype;_.P.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.P.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.P.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var V;if((V=this.data)==null||!V.isExpanded){V=this.hostElement.clientWidth;var D;if(V&&(D=this.data)!=null&&D.destinationButtons){D=Math.floor((V+4)/214);V=this.data.destinationButtons.length;var f=Math.ceil(V/D);this.fullyVisibleRows=V%D===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}}}};
_.P.updateRichGridDestinationButtonsVisibility=function(){var V,D;if(this.isRichGrid&&((V=this.data)==null||!V.isExpanded)&&(D=this.data)!=null&&D.destinationButtons){V=this.richGridItemsPerRow+1;D=this.data.destinationButtons.length;var f=Math.ceil(D/V);this.fullyVisibleRows=D%V===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
_.P.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Bv.prototype.updateRichGridDestinationButtonsVisibility=Bv.prototype.updateRichGridDestinationButtonsVisibility;_.S([_.q(),_.p("design:type",Object)],Bv.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Number)],Bv.prototype,"fullyVisibleRows",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Bv.prototype,"isShowMoreVisible",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bv.prototype,"isRichGrid",void 0);
_.S([_.q({selector:_.N_,value:0}),_.p("design:type",Number)],Bv.prototype,"richGridItemsPerRow",void 0);_.S([_.q(),_.p("design:type",Object)],Bv.prototype,"gridStateActionMap",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Bv.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Bv.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bv.prototype,"modernTypography",void 0);_.S([_.KI("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bv.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.S([_.a({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Bv);
_.Y(Bv,"ytd-destination-shelf-renderer",function(){if(FnH!==void 0)return FnH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FnH=V},{mode:1});var g_F;var dS=function(){return _.E.apply(this,arguments)||this};
_.v(dS,_.E);dS.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],dS.prototype,"data",void 0);_.S([_.a({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],dS);
_.Y(dS,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(g_F!==void 0)return g_F;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return g_F=V},{mode:1});var v_F;var uI=function(){var V=_.E.apply(this,arguments)||this;V.disableAnimation=!1;V.isSlimlineSurvey=!1;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;return V};
_.v(uI,_.E);uI.prototype.onTap=function(V){V.preventDefault();this.data&&_.PA(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.IG.Object.defineProperties(uI.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 V,D,f,n,t;return((V=this.data)==null?0:V.checked)?(D=this.data)==null?void 0:(f=D.onStateIcon)==null?void 0:f.iconType:(n=this.data)==null?void 0:(t=n.defaultStateIcon)==null?void 0:t.iconType}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uI.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],uI.prototype,"disableAnimation",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uI.prototype,"isSlimlineSurvey",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uI.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],uI.prototype,"isShortsStyle",void 0);_.S([_.R("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uI.prototype,"isAnimatedIcon",null);
_.S([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Number),_.p("design:paramtypes",[])],uI.prototype,"iconSize",null);_.S([_.R("isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uI.prototype,"isDarkTheme",null);_.S([_.R("data.checked"),_.p("design:type",Object),_.p("design:paramtypes",[])],uI.prototype,"icon",null);_.S([_.a({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],uI);
_.Y(uI,"ytd-rating-survey-option-renderer",function(){if(v_F!==void 0)return v_F;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return v_F=V},{mode:2});var kpL;var Nz=function(){var V=_.E.apply(this,arguments)||this;V.firstResponseText=null;V.lastResponseText=null;V.selectedNonStarOption=null;V.hideOptions=!1;V.hideUndoButton=!0;V.disableAnimation=!1;V.showResponseRangeText=!1;V.selectedRatingIndex=-1;V.isSlimlineSurvey=!1;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;V.slimlineSurveyRatingSelectedIndex=-1;return V};
_.v(Nz,_.E);_.P=Nz.prototype;_.P.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.P.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.P.onOptionChange=function(V,D){var f=this;V=D.onStateIcon&&D.defaultStateIcon&&D.onStateIcon.iconType===D.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(H,Q){H.responseText===D.responseText?f.isSlimlineSurvey?(f.selectedRatingIndex=Q,f.ytdReduxBehavior.dispatch(GaE(Q))):(f.setSurveyOptionValue(Q,!0,"checked"),f.setSurveyOptionValue(Q,!0,"selected")):(f.setSurveyOptionValue(Q,!1,"checked"),f.setSurveyOptionValue(Q,
!1,"selected"))});
else if(V)this.selectedNonStarOption=D,this.hideOptions=!0;else{var n=this.ytRendererBehavior.getSimpleString(D.responseText),t=!0;this.getOptionRenderers().forEach(function(H,Q){f.setSurveyOptionValue(Q,t,"checked");f.setSurveyOptionValue(Q,!1,"selected");f.ytRendererBehavior.getSimpleString(H.responseText)===n&&(t=!1,f.setSurveyOptionValue(Q,!0,"selected"))})}V=D.responseEndpoint;
var J;D.followUpCommand&&(J=_.g(D.followUpCommand,fUU));this.isSlimlineSurvey?(this.resetComponent(),_.o4(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.o4(this.hostElement,"ytd-inline-survey-rating-select-action",[V,J])};
_.P.showSelectedOption=function(){var V=this;_.dm.addJob(function(){var D=V.getOptionRenderers()[V.slimlineSurveyRatingSelectedIndex];V.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),D)},8,100)};
_.P.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(V){var D;return(D=_.g(V,tTu))!=null?D:{}}):[]};
_.P.onUndoClick=function(){this.resetComponent();_.o4(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.P.setSurveyOptionValue=function(V,D,f){this.notifyPath("data.ratings."+V+".ratingSurveyOptionRenderer."+f);this.set("data.ratings."+V+".ratingSurveyOptionRenderer."+f,D)};
_.P.resetComponent=function(){var V=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var D=this.getOptionRenderers(),f,n;this.firstResponseText=(n=(f=D[0])==null?void 0:f.responseText)!=null?n:null;var t,J;this.lastResponseText=(J=(t=D[D.length-1])==null?void 0:t.responseText)!=null?J:null;D.forEach(function(H,Q){V.setSurveyOptionValue(Q,!1,"checked");V.setSurveyOptionValue(Q,!1,"selected")})};
_.IG.Object.defineProperties(Nz.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Nz.prototype.onOptionChange=Nz.prototype.onOptionChange;Nz.prototype.dataChanged=Nz.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Nz.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"firstResponseText",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"lastResponseText",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"selectedNonStarOption",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"hideOptions",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"hideUndoButton",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"disableAnimation",void 0);
_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"showResponseRangeText",void 0);_.S([_.q(),_.p("design:type",Object)],Nz.prototype,"selectedRatingIndex",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Nz.prototype,"isSlimlineSurvey",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Nz.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Nz.prototype,"isShortsStyle",void 0);_.S([_.q({selector:function(V){return V.ui.slimlineSurveyRatingSelectedIndex}}),
_.p("design:type",Object)],Nz.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.S([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Nz.prototype,"isSingleSelect",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nz.prototype,"dataChanged",null);
_.S([_.bU("ytd-rating-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Nz.prototype,"onOptionChange",null);_.S([_.a({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Nz);
_.Y(Nz,"ytd-rating-survey-renderer",function(){if(kpL!==void 0)return kpL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kpL=V},{mode:1});var sfp;var B$6;var dKU;var xyY=(vC.FIRSTDAYOFWEEK+1)%7,uiV=function(V,D,f,n){var t="";if(n.selection&&pm9(n.selection))cC(V,n.selection)&&(t+=" selected");else if(n.selection&&Lbd(n.selection)){var J=n.selection.selectionState||"START_DATE";cC(V,n.selection.start)&&(t+=" period-start ",J==="START_DATE"&&(t+="selected"));cC(V,n.selection.end)&&(t+=" period-end ",J==="END_DATE"&&(t+="selected"));FW(V,n.selection.start)||FW(n.selection.end,V)||(t+=" highlighted")}if(FW(D,n.start)||FW(n.end,D))t+=" disabled";n.circleToday&&
cC(D,f)&&(t+=" today");return t};var mN=function(){return _.E.apply(this,arguments)||this};
_.v(mN,_.E);_.P=mN.prototype;_.P.attached=function(){var V=this;_.pO(this,function(){V.JSC$13954_calendarMain.scrollHeight>0&&(V.calendarConfig.selection?V.scrollToDate(IaF(V.calendarConfig.selection)):V.scrollToDate(V.calendarConfig.end))})};
_.P.updateSelection=function(V){V=Mg9(Object.assign({},this.calendarConfig,{selection:V}),uiV);this.splice.apply(this,["renderData.months",0,V.length].concat(_.sz(V)))};
_.P.scrollToDate=function(V){this.renderData&&(V=hHX(V,this.renderData),V!==void 0&&this.JSC$13954_calendarMain.scrollToIndex(V))};
_.P.scrollToNextMonth=function(){this.JSC$13954_calendarMain.scrollToIndex(this.JSC$13954_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$13954_calendarMain.firstVisibleIndex===0&&this.JSC$13954_calendarMain.scrollTo(0,0);this.JSC$13954_calendarMain.scrollToIndex(this.JSC$13954_calendarMain.firstVisibleIndex-1)};
_.P.handleDayClick=function(V){_.o4(this.hostElement,"ytd-calendar-date-clicked",[V.model.day.date])};
_.P.handleDayMouseDown=function(V){V.preventDefault();_.o4(this.hostElement,"ytd-calendar-date-mousedown",[V.model.day.date])};
_.P.handleDayMouseUp=function(V){_.o4(this.hostElement,"ytd-calendar-date-mouseup",[V.model.day.date])};
_.P.handleDayMouseEnter=function(V){V.preventDefault();_.o4(this.hostElement,"ytd-calendar-date-mouseenter",[V.model.day.date])};
_.P.handleDayMouseLeave=function(V){_.o4(this.hostElement,"ytd-calendar-date-mouseleave",[V.model.day.date])};
_.IG.Object.defineProperties(mN.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var V=this.calendarConfig,D=uiV;D=D===void 0?uiV:D;for(var f=[],n=0;n<7;n++)f.push(vC.NARROWWEEKDAYS[(n+xyY)%7]);return{months:Mg9(V,D),daysOfWeekLabel:f}}}});
_.S([_.q(),_.p("design:type",Object)],mN.prototype,"calendarConfig",void 0);_.S([_.Zv("#calendar-main"),_.p("design:type",Object)],mN.prototype,"JSC$13954_calendarMain",void 0);_.S([_.R("calendarConfig"),_.p("design:type",Object),_.p("design:paramtypes",[])],mN.prototype,"renderData",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],mN);
_.Y(mN,"ytd-scrollable-calendar",function(){if(dKU!==void 0)return dKU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return dKU=V},{mode:2});var N$u;var mKl;var z7=function(){var V=_.E.apply(this,arguments)||this;V.hideCharCounter=!1;V.hideLabel=!1;V.noLabelFloat=!1;V.autoValidate=!0;V.invalid=!1;V.disabled=!1;V.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return V};
_.v(z7,_.E);_.P=z7.prototype;_.P.reset=function(V){this.value=V&&this.data?this.data.value=V:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.P.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.P.focusTextInput=function(){this.input.focus()};
_.P.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()};
_.P.valueChanged=function(){var V,D;if(((V=this.data)==null?0:V.value)||((D=this.data)==null?void 0:D.value)==="")this.value=this.data.value;else{var f;((f=this.data)==null?void 0:f.value)!==void 0||this.value||(this.value="")}};
_.P.computeLabel=function(V,D){return D?"":_.LA(V)};
_.P.computeAriaLabel=function(V,D){return D?_.LA(V):""};
_.P.computeErrorMessage=function(V,D,f,n){!V&&D?V=f||this.strings.REQUIRED_LABEL:(V=_.LA(n),V=_.QY(V,"&")?"document"in _.fx?iUx(V):SP9(V):V);return V};
_.P.computeType=function(V){return V==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.P.onTextValueChanged=function(V){this.value=V.detail.value;var D;(D=this.onValueChanged)==null||D.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.P.handleUpdateTextInputFormFieldRendererCommand=function(V){(V=_.g(V,gNP))&&this.data&&this.data.id===V.id&&(V.invalid!==void 0&&(this.invalid=V.invalid),V.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",V.invalidValueErrorMessage))};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("value-changed",this.value))};
_.P.updateInvalidFromBinding=function(V){this.invalid=V.detail.value};
_.IG.Object.defineProperties(z7.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var V;return!((V=this.data)==null||!V.isMultiline)}}});
z7.prototype.valueChangedForBinding=z7.prototype.valueChangedForBinding;z7.prototype.valueChanged=z7.prototype.valueChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],z7.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],z7.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],z7.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],z7.prototype,"value",void 0);_.S([_.q(),_.p("design:type",String)],z7.prototype,"pattern",void 0);_.S([_.q(),_.p("design:type",String)],z7.prototype,"errorMessage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],z7.prototype,"componentStyle",void 0);_.S([_.q(),_.p("design:type",Object)],z7.prototype,"hideCharCounter",void 0);
_.S([_.q(),_.p("design:type",Object)],z7.prototype,"hideLabel",void 0);_.S([_.q(),_.p("design:type",Object)],z7.prototype,"noLabelFloat",void 0);_.S([_.q(),_.p("design:type",Function)],z7.prototype,"onValueChanged",void 0);_.S([_.q(),_.p("design:type",Boolean)],z7.prototype,"isMultilineOverride",void 0);_.S([_.q(),_.p("design:type",Object)],z7.prototype,"autoValidate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z7.prototype,"invalid",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z7.prototype,"disabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],z7.prototype,"enableOverlayTheme",void 0);_.S([_.q({value:{REQUIRED_LABEL:_.Zl("REQUIRED_LABEL",void 0,"Required")}}),_.p("design:type",Object)],z7.prototype,"strings",void 0);_.S([_.Zv("#input"),_.p("design:type",Object)],z7.prototype,"input",void 0);
_.S([_.R("data","isMultilineOverride"),_.p("design:type",Object),_.p("design:paramtypes",[])],z7.prototype,"isMultiline",null);_.S([_.eY("data.value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z7.prototype,"valueChanged",null);_.S([_.KI("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z7.prototype,"valueChangedForBinding",null);_.S([_.zy({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],z7);
_.Y(z7,"yt-text-input-form-field-renderer",function(){if(mKl===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;N$u===void 0&&(N$u=document.createElement("template"));var n=N$u;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mKl=V}V=mKl;return V},{mode:2});var Ru=function(){var V=_.E.apply(this,arguments)||this;V.data=void 0;V.selectionState="START_DATE";V.isStartDateInvalid=!1;V.isEndDateInvalid=!1;V.autoapply=!1;V.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 V};
_.v(Ru,_.E);_.P=Ru.prototype;_.P.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"}}}}};
_.P.focus=function(){this.startDateInput.focus()};
_.P.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:g3(this.data.selection.start),end:g3(this.data.selection.end)})};
_.P.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.JZ(this.selectionState)}};
_.P.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.P.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.P.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var V=this.calendar.calendarConfig,D=V.end;V=VXF({start:V.start,end:this.endDate||D},this.startDateInput.value||"");this.isStartDateInvalid=!V.isValid;V.isValid&&(V=V.value,this.selection=this.endDate?{start:V,end:this.endDate}:V,this.calendar.scrollToDate(V));this.updateInvalidState()}};
_.P.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var V=this.calendar.calendarConfig,D=V.start;V=VXF({start:this.startDate||D,end:V.end},this.endDateInput.value||"");this.isEndDateInvalid=!V.isValid;V.isValid&&(V=V.value,this.selection={start:this.startDate,end:V},this.calendar.scrollToDate(V));this.updateInvalidState()}};
_.P.handleCalendarDateClicked=function(V){var D=this.selection&&IaF(this.selection),f=this.selection&&OMY(this.selection);D&&!FW(V,D)&&this.selectionState==="END_DATE"?(this.selection={start:D,end:V},this.selectionState="START_DATE"):(f&&!FW(f,V)?this.selection={start:V,end:f}:this.selection=V,this.selectionState="END_DATE")};
_.P.handleCalendarDateMouseDown=function(V){this.selection&&!pm9(this.selection)&&(this.dragPivot=cC(V,this.selection.start)?this.selection.end:cC(V,this.selection.end)?this.selection.start:V)};
_.P.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.P.handleCalendarDateMouseEnter=function(V){this.dragPivot&&(this.selection={start:function(D,f){return FW(D,f)?D:f}(this.dragPivot,V),
end:function(D,f){return FW(D,f)?f:D}(this.dragPivot,V)},this.dragPivot||(this.selectionState="START_DATE"))};
_.P.handleCalendarDateMouseLeave=function(){};
_.P.handleCalendarSubmitDateRange=function(){this.selection&&!pm9(this.selection)&&_.o4(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.P.updateInvalidState=function(){var V=function(D,f){f?D.setAttribute("invalid",""):D.removeAttribute("invalid")};
V(this.startDateInput,this.isStartDateInvalid);V(this.endDateInput,this.isEndDateInvalid)};
_.P.updateDateStrings=function(){this.selection&&(pm9(this.selection)?Wb9(this.selection):(Wb9(this.selection.start),Wb9(this.selection.end)))};
_.P.updateCalendarSelection=function(V){this.calendar.updateSelection(Object.assign({},V,{selectionState:this.selectionState}))};
_.P.updateIsStartDateInvalidFromBinding=function(V){this.isStartDateInvalid=V.detail.value};
_.P.updateIsEndDateInvalidFromBinding=function(V){this.isEndDateInvalid=V.detail.value};
_.P.updateStartDateStringFromBinding=function(){};
_.P.updateEndDateStringFromBinding=function(){};
_.IG.Object.defineProperties(Ru.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:g3(this.data.dateRangeStart),end:g3(this.data.dateRangeEnd),selection:{start:g3(this.data.selection.start),end:g3(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&IaF(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&OMY(this.selection)}}});
Ru.prototype.resetTextboxes=Ru.prototype.resetTextboxes;Ru.prototype.observeSelection=Ru.prototype.observeSelection;Ru.prototype.dataChanged=Ru.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Ru.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#calendar"),_.p("design:type",Object)],Ru.prototype,"calendar",void 0);
_.S([_.Zv("#start-date"),_.p("design:type",Object)],Ru.prototype,"startDateInput",void 0);_.S([_.Zv("#end-date"),_.p("design:type",Object)],Ru.prototype,"endDateInput",void 0);_.S([_.q(),_.p("design:type",Object)],Ru.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ru.prototype,"selection",void 0);_.S([_.q(),_.p("design:type",String)],Ru.prototype,"selectionState",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ru.prototype,"calendarConfig",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ru.prototype,"errorMessage",null);_.S([_.R("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ru.prototype,"startDate",null);_.S([_.R("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ru.prototype,"endDate",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ru.prototype,"dataChanged",null);
_.S([_.KI("selection","selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ru.prototype,"observeSelection",null);_.S([_.KI("selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ru.prototype,"resetTextboxes",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Ru);
_.Y(Ru,"ytd-date-period-picker-renderer",function(){if(B$6!==void 0)return B$6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return B$6=V},{mode:1});var C5=function(){var V=_.E.apply(this,arguments)||this;var D={};V.actionMap=(D["ytd-date-period-picker-apply"]="handleDateRangeUpdated",D);return V};
_.v(C5,_.E);C5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
C5.prototype.handleDateRangeUpdated=function(){};
_.S([_.q(),_.p("design:type",Object)],C5.prototype,"data",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],C5.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],C5.prototype,"rendererstamperBehavior",void 0);_.S([_.a({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],C5);
_.Y(C5,"ytd-report-history-section-header-renderer",function(){if(sfp!==void 0)return sfp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return sfp=V},{mode:1});var zpr;var RpE;var CwE;var qz=function(){return _.E.apply(this,arguments)||this};
_.v(qz,_.E);_.IG.Object.defineProperties(qz.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?0:(D=V.icon)==null?0:D.iconType)?_.Qa(this.data.icon.iconType):""}}});
_.S([_.q(),_.p("design:type",Object)],qz.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],qz.prototype,"icon",null);_.S([_.a({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],qz);
_.Y(qz,"ytd-report-history-table-text-cell-renderer",function(){if(CwE!==void 0)return CwE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CwE=V},{mode:1});var X0=function(){return _.E.apply(this,arguments)||this};
_.v(X0,_.E);X0.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],X0.prototype,"data",void 0);_.S([_.a({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],X0);
_.Y(X0,"ytd-report-history-table-reason-cell-renderer",function(){if(RpE!==void 0)return RpE;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return RpE=V},{mode:1});var ES=function(){return _.E.apply(this,arguments)||this};
_.v(ES,_.E);ES.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"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ES.prototype,"rendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ES.prototype,"data",void 0);_.S([_.a({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],ES);
_.Y(ES,"ytd-report-history-table-cell-renderer",function(){if(zpr!==void 0)return zpr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return zpr=V},{mode:1});var qVH;var A0=function(){var V=_.E.apply(this,arguments)||this;V.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 V};
_.v(A0,_.E);A0.prototype.onDataChanged=function(){var V;if((V=this.data)==null?0:V.style)this.componentStyle=this.getStyleName(this.data.style)};
A0.prototype.getCellForColumn=function(V){return this.cells.find(function(D){var f;return((f=_.g(D==null?void 0:D.cell,JiH)||_.g(D==null?void 0:D.cell,oqF))==null?void 0:f.columnId)===V.type})};
A0.prototype.getClassForColumn=function(V){switch(V){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
A0.prototype.getStyleName=function(V){switch(V){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.IG.Object.defineProperties(A0.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.cells)||[]).map(function(D){return _.g(D,PG6)})}}});
A0.prototype.onDataChanged=A0.prototype.onDataChanged;_.S([_.q(),_.p("design:type",Object)],A0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],A0.prototype,"columnRenderData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],A0.prototype,"componentStyle",void 0);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],A0.prototype,"cells",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A0.prototype,"onDataChanged",null);_.S([_.a({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],A0);
_.Y(A0,"ytd-report-history-table-row-renderer",function(){if(qVH!==void 0)return qVH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qVH=V},{mode:1});var XsL;var E_E;var DbY={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},foc={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var au=function(){return _.E.apply(this,arguments)||this};
_.v(au,_.E);au.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"}}}}}};
au.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.IG.Object.defineProperties(au.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.columns)?J1n(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return P0x(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var V=this.tableSpec,D=DbY;D=D===void 0?foc:D;D=oWF(V.columnDimensions,V.columnsToShow||[],D);V=0;D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,V+=f.minWidth+f.paddingLeft+f.paddingRight;return V}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.S([_.u(_.$D),_.p("design:type",Object)],au.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],au.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],au.prototype,"tableSpec",null);_.S([_.R("tableSpec"),_.p("design:type",Array),_.p("design:paramtypes",[])],au.prototype,"columnRenderData",null);
_.S([_.R("tableSpec"),_.p("design:type",Number),_.p("design:paramtypes",[])],au.prototype,"totalMinWidth",null);_.S([_.R("totalMinWidth"),_.p("design:type",String),_.p("design:paramtypes",[])],au.prototype,"tableWidthStyle",null);_.S([_.a({is:"ytd-table-renderer",disableElementRegistration:!0})],au);
_.Y(au,"ytd-table-renderer",function(){if(E_E!==void 0)return E_E;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return E_E=V},{mode:1});var Y2=function(){return _.E.apply(this,arguments)||this};
_.v(Y2,_.E);Y2.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}}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Y2.prototype,"data",void 0);_.S([_.a({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Y2);
_.Y(Y2,"ytd-report-reason-history-modal-renderer",function(){if(XsL!==void 0)return XsL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return XsL=V},{mode:1});var ApV;var aGF;var YVY;var $2=function(){return _.E.apply(this,arguments)||this};
_.v($2,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$2.prototype,"data",void 0);_.S([_.a({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],$2);
_.Y($2,"ytd-profile-column-stats-entry-renderer",function(){if(YVY!==void 0)return YVY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return YVY=V},{mode:1});var $Kp;var iI=function(){return _.E.apply(this,arguments)||this};
_.v(iI,_.E);iI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iI.prototype,"data",void 0);_.S([_.a({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],iI);
_.Y(iI,"ytd-profile-column-stats-renderer",function(){if($Kp!==void 0)return $Kp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return $Kp=V},{mode:1});var iBY;var S4=function(){return _.E.apply(this,arguments)||this};
_.v(S4,_.E);_.IG.Object.defineProperties(S4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.useThumbnailSize)return 80;var D,f;V=(D=this.data)==null?void 0:(f=D.thumbnail)==null?void 0:f.thumbnails;var n;return V&&((n=V[0])==null?void 0:n.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.useThumbnailSize)return 80;var D,f;V=(D=this.data)==null?void 0:(f=D.thumbnail)==null?void 0:f.thumbnails;var n;return V&&((n=V[0])==null?void 0:n.height)||80}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],S4.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],S4.prototype,"componentStyle",void 0);_.S([_.R("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],S4.prototype,"thumbnailWidth",null);
_.S([_.R("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],S4.prototype,"thumbnailHeight",null);_.S([_.a({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],S4);
_.Y(S4,"ytd-profile-column-user-info-renderer",function(){if(iBY!==void 0)return iBY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iBY=V},{mode:1});var Wv=function(){return _.E.apply(this,arguments)||this};
_.v(Wv,_.E);Wv.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]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Wv.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Wv.prototype,"componentStyle",void 0);_.S([_.a({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Wv);
_.Y(Wv,"ytd-profile-column-renderer",function(){if(aGF!==void 0)return aGF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return aGF=V},{mode:1});var p5=function(){var V=_.E.apply(this,arguments)||this;V.componentStyle="NON_CENTERED_PROFILE";return V};
_.v(p5,_.E);p5.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
p5.prototype.getIcon=function(V){return V?"settings:"+V.toLowerCase():null};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],p5.prototype,"data",void 0);_.S([_.a({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],p5);
_.Y(p5,"ytd-page-introduction-renderer",function(){if(ApV!==void 0)return ApV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ApV=V},{mode:1});var SVF;var L5=function(){return _.E.apply(this,arguments)||this};
_.v(L5,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],L5.prototype,"data",void 0);_.S([_.a({is:"ytd-report-description-renderer",disableElementRegistration:!0})],L5);
_.Y(L5,"ytd-report-description-renderer",function(){if(SVF!==void 0)return SVF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return SVF=V},{mode:1});var Wnu;var psP;var Iu=function(){return _.E.apply(this,arguments)||this};
_.v(Iu,_.E);Iu.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Iu.prototype,"data",void 0);_.S([_.a({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Iu);
_.Y(Iu,"ytd-video-report-renderer",function(){if(psP!==void 0)return psP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return psP=V},{mode:1});var LnL;_.zk("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.zk("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var OS=function(){return _.E.apply(this,arguments)||this};
_.v(OS,_.E);OS.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]]"}}}}}};
OS.prototype.computeMessageStyle=function(V){return V};
OS.prototype.computeButtonOverride=function(V){var D;if((V==null?0:(D=V.style)==null?0:D.value)&&V.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OS.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OS.prototype,"shelf",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OS.prototype,"panel",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.p("design:type",Boolean)],OS.prototype,"componentStyle",void 0);_.S([_.q({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],OS.prototype,"buttonOverride",void 0);_.S([_.a({is:"ytd-message-renderer",disableElementRegistration:!0})],OS);
_.Y(OS,"ytd-message-renderer",function(){if(LnL!==void 0)return LnL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LnL=V},{mode:1});var x2=function(){return _.E.apply(this,arguments)||this};
_.v(x2,_.E);x2.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"}}}};
x2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
x2.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.IG.Object.defineProperties(x2.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!(((V=this.data)==null?0:V.header)&&((D=this.data)==null?0:D.table))}}});
x2.prototype.onRequestError=x2.prototype.onRequestError;_.S([_.u(_.$D),_.p("design:type",Object)],x2.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],x2.prototype,"data",void 0);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],x2.prototype,"isUnifiedReportHistory",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x2.prototype,"onRequestError",null);_.S([_.a({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],x2);
_.Y(x2,"ytd-report-history-section-renderer",function(){if(Wnu!==void 0)return Wnu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Wnu=V},{mode:1});var IGu;var Mz=function(){var V=_.E.apply(this,arguments)||this;V.answerExpanded=!1;return V};
_.v(Mz,_.E);Mz.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mz.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Mz.prototype,"answerExpanded",void 0);_.S([_.a({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Mz);
_.Y(Mz,"ytd-handles-claiming-faq-renderer",function(){if(IGu!==void 0)return IGu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return IGu=V},{mode:1});var OBl;var xKF=function(){return _.E.apply(this,arguments)||this};
_.v(xKF,_.E);_.S([_.q(),_.p("design:type",Object)],xKF.prototype,"data",void 0);_.S([_.a({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],xKF);
_.Y(xKF,"ytd-handles-claiming-faq-section-renderer",function(){if(OBl!==void 0)return OBl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OBl=V},{mode:1});var MiL;var h0=function(){var V=_.E.apply(this,arguments)||this;V.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";V.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";V.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";V.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";V.leftSquiggly=V.leftSquigglyLight;V.rightSquiggly=V.rightSquigglyLight;
V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return V};
_.v(h0,_.E);_.P=h0.prototype;_.P.updateLeftSquigglyStyle=function(){_.wI(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.P.updateRightSquigglyStyle=function(){_.wI(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.P.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),V?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
h0.prototype.updateRightSquigglyStyle=h0.prototype.updateRightSquigglyStyle;h0.prototype.updateLeftSquigglyStyle=h0.prototype.updateLeftSquigglyStyle;_.S([_.q(),_.p("design:type",Object)],h0.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],h0.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",String)],h0.prototype,"leftSquiggly",void 0);_.S([_.q(),_.p("design:type",String)],h0.prototype,"rightSquiggly",void 0);
_.S([_.KI("leftSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h0.prototype,"updateLeftSquigglyStyle",null);_.S([_.KI("rightSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h0.prototype,"updateRightSquigglyStyle",null);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],h0.prototype,"actionButtonOverride",void 0);_.S([_.a({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],h0);
_.Y(h0,"ytd-handles-claiming-header-renderer",function(){if(MiL!==void 0)return MiL;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return MiL=V},{mode:1});var hpY;var US=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";V.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";V.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";V.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
V.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";V.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";V.image0SquigglyBackground=V.image0LightSquigglyBackground;V.image1SquigglyBackground=V.image1LightSquigglyBackground;V.image3SquigglyBackground=V.image3LightSquigglyBackground;return V};
_.v(US,_.E);_.P=US.prototype;_.P.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.P.onDataChanged=function(){this.updateTitleAndImages()};
_.P.onThemeChanged=function(){this.updateTitleAndImages()};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
_.P.updateImage0SquigglyBackground=function(){_.wI(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.P.updateImage1SquigglyBackground=function(){_.wI(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.P.updateImage3SquigglyBackground=function(){_.wI(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.P.updateTitleAndImages=function(){var V,D;((V=this.data)==null?void 0:(D=V.titleImages)==null?void 0:D.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))};
US.prototype.updateImage3SquigglyBackground=US.prototype.updateImage3SquigglyBackground;US.prototype.updateImage1SquigglyBackground=US.prototype.updateImage1SquigglyBackground;US.prototype.updateImage0SquigglyBackground=US.prototype.updateImage0SquigglyBackground;US.prototype.onThemeChanged=US.prototype.onThemeChanged;US.prototype.onDataChanged=US.prototype.onDataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],US.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"title0",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"title1",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"title2",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"title3",void 0);
_.S([_.q(),_.p("design:type",Object)],US.prototype,"title4",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"image0",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"image1",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"image2",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"image3",void 0);_.S([_.q(),_.p("design:type",Object)],US.prototype,"image4",void 0);_.S([_.q(),_.p("design:type",String)],US.prototype,"image0SquigglyBackground",void 0);
_.S([_.q(),_.p("design:type",String)],US.prototype,"image1SquigglyBackground",void 0);_.S([_.q(),_.p("design:type",String)],US.prototype,"image3SquigglyBackground",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"onDataChanged",null);_.S([_.KI("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"onThemeChanged",null);
_.S([_.KI("image0SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"updateImage0SquigglyBackground",null);_.S([_.KI("image1SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"updateImage1SquigglyBackground",null);
_.S([_.KI("image3SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"updateImage3SquigglyBackground",null);_.S([_.a({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],US);
_.Y(US,"ytd-handles-claiming-title-images-section-renderer",function(){if(hpY!==void 0)return hpY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return hpY=V},{mode:1});var UK6;var Vk=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(Vk,_.E);Vk.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
Vk.prototype.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V)};
Vk.prototype.onCopyButtonClick=function(){var V=this,D,f,n;return _.w(function(t){return(D=V.data)!=null&&D.primaryChannelUrl?_.b(t,navigator.clipboard.writeText(((f=V.data)==null?0:f.encodedChannelUrl)?V.data.encodedChannelUrl:"https://"+_.LA((n=V.data)==null?void 0:n.primaryChannelUrl)),0):t.jumpTo(0)})};
_.S([_.q(),_.p("design:type",Object)],Vk.prototype,"data",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Vk.prototype,"isDarkTheme",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Vk.prototype,"ytActionHandlerBehavior",void 0);_.S([_.a({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Vk);
_.Y(Vk,"ytd-handles-claiming-update-social-renderer",function(){if(UK6!==void 0)return UK6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return UK6=V},{mode:1});var VxU;var DE=function(){var V=_.E.apply(this,arguments)||this;V.JSC$14048_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";V.JSC$14048_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.squigglyBackground=V.JSC$14048_squigglyBackgroundLight;return V};
_.v(DE,_.E);DE.prototype.updateSquigglyBackgroundStyle=function(){_.wI(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
DE.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.squigglyBackground=V?this.JSC$14048_squigglyBackgroundDark:this.JSC$14048_squigglyBackgroundLight};
DE.prototype.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),this.squigglyBackground=V?this.JSC$14048_squigglyBackgroundDark:this.JSC$14048_squigglyBackgroundLight)};
DE.prototype.updateSquigglyBackgroundStyle=DE.prototype.updateSquigglyBackgroundStyle;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],DE.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],DE.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],DE.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",String)],DE.prototype,"squigglyBackground",void 0);_.S([_.KI("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DE.prototype,"updateSquigglyBackgroundStyle",null);_.S([_.a({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],DE);
_.Y(DE,"ytd-handles-claiming-vanity-info-renderer",function(){if(VxU!==void 0)return VxU;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return VxU=V},{mode:1});var D$P;var fF=function(){var V=_.E.apply(this,arguments)||this;V.JSC$14051_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";V.JSC$14051_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";V.squigglyBackground=V.JSC$14051_squigglyBackgroundLight;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(fF,_.E);_.P=fF.prototype;_.P.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),this.squigglyBackground=V?this.JSC$14051_squigglyBackgroundDark:this.JSC$14051_squigglyBackgroundLight)};
_.P.updateSquigglyBackgroundStyle=function(){_.wI(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.P.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.P.detached=function(){this.stop()};
_.P.stop=function(){this.playerElement.stop()};
_.P.setupVideoPlayer=function(){var V=this,D,f;return _.w(function(n){D=V.data.videoId;f="http://i1.ytimg.com/vi/"+D+"/maxresdefault.jpg";V.playerElement.loadVideoWithPlayerVars({video_id:D,iurlhq:f});_.yz(n)})};
fF.prototype.onDataChanged=fF.prototype.onDataChanged;fF.prototype.updateSquigglyBackgroundStyle=fF.prototype.updateSquigglyBackgroundStyle;_.S([_.q({value:!1}),_.p("design:type",Boolean)],fF.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",String)],fF.prototype,"squigglyBackground",void 0);_.S([_.Zv("#player"),_.p("design:type",Object)],fF.prototype,"playerElement",void 0);_.S([_.q(),_.p("design:type",Object)],fF.prototype,"data",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],fF.prototype,"ytActionHandlerBehavior",void 0);_.S([_.KI("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fF.prototype,"updateSquigglyBackgroundStyle",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fF.prototype,"onDataChanged",null);
_.S([_.a({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],fF);
_.Y(fF,"ytd-handles-claiming-video-item-renderer",function(){if(D$P!==void 0)return D$P;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return D$P=V},{mode:1});var fzl;var td=function(){var V=_.lU.apply(this,arguments)||this;V.dragging=!1;V.dragMouseStart=0;V.dragOffsetStart=0;V.containerWidthDiff=0;V.boundPrevClick=function(){V.set("offset",nF(V,V.offset-(V.scrollDistance||320)))};
V.boundNextClick=function(){V.set("offset",nF(V,V.offset+(V.scrollDistance||320)))};
V.boundScrollContainerMouseDown=function(D){V.dragMouseStart=D.clientX;V.dragOffsetStart=V.offset;V.dragging=!0};
V.boundScrollContainerDrag=function(D){V.dragging&&V.set("offset",nF(V,V.dragOffsetStart-(D.clientX-V.dragMouseStart)))};
V.boundMouseUp=function(){V.onMouseUp()};
V.boundWheelScroll=function(D){var f=0;Math.abs(D.deltaX)>=Math.abs(D.deltaY)?f=D.deltaX:D.shiftKey&&(f=D.deltaY);f!==0&&(V.offset+=f,D.stopPropagation(),D.preventDefault())};
V.boundChipCloudChipScrollIntoView=function(D){(D=D.detail)&&V.scrollChipIntoView(D)};
return V};
_.v(td,_.lU);td.prototype.attached=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container");V.addEventListener("wheel",this.boundWheelScroll);V.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);V.style.touchAction="pan-y";V.addEventListener("pointerdown",this.boundScrollContainerMouseDown);V.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
td.prototype.detached=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container");V.removeEventListener("wheel",this.boundWheelScroll);V.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);V.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);V.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
td.prototype.reset=function(){this.set("offset",0);_.pO(this,this.setContainerWidthDiff);Pp(this)};
var nF=function(V,D){return Math.min(Math.max(D,0),V.containerWidthDiff)};
td.prototype.onMouseUp=function(){this.dragging=!1};
td.prototype.transformContainer=function(){this.offset=nF(this,this.offset);var V=_.XB("HTML_DIR")==="rtl"?"":"-";_.Pt(this.hostElement).querySelector("#chips").style.transform="translateX("+V+this.offset+"px)";Pp(this)};
var Pp=function(V){_.pO(V,V.setButtonsState)};
td.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=nF(this,this.offset));this.atStart=this.offset<=0};
td.prototype.setContainerWidthDiff=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container"),D=_.Pt(this.hostElement).querySelector("#chips");V&&D&&(this.containerWidthDiff=D.clientWidth-V.clientWidth)};
td.prototype.scrollChipIntoView=function(V){var D=_.Pt(this.hostElement).querySelector("#scroll-container");if(D){var f=this.atStart?0:106,n=this.atEnd?0:106;V.offsetLeft<this.offset+f?this.offset=nF(this,V.offsetLeft-f):V.offsetLeft+V.clientWidth>this.offset+D.clientWidth-n&&(this.offset=nF(this,V.offsetLeft+V.clientWidth+n-D.clientWidth))}};
td.prototype.transformContainer=td.prototype.transformContainer;_.S([_.q({value:0}),_.p("design:type",Number)],td.prototype,"offset",void 0);_.S([_.q({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],td.prototype,"atStart",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],td.prototype,"atEnd",void 0);_.S([_.q(),_.p("design:type",Number)],td.prototype,"scrollDistance",void 0);
_.S([_.KI("offset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],td.prototype,"transformContainer",null);_.S([_.Gy()],td);var nQu;var txV;var Jm6=_.MA(function(V){var D=V.data;V=_.r(_.HJ(!1,void 0,"icHmSe"));var f=V.next().value,n=V.next().value;V={};V=_.KT("ytChipShapeChip",function(){a:switch(D==null?void 0:D().state){case 0:var J="ytChipShapeActive";break a;case 1:J="ytChipShapeDisabled";break a;default:J="ytChipShapeInactive"}return J},function(){var J=D().type===1||D().type===2,H=D();
return J||H!=null&&H.startIcon?H==null||!H.startIcon||H!=null&&H.text?J?"ytChipShapeEndIconPadding":(H==null?0:H.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(V.ytChipShapeFocused=function(){var J;
return f()&&((J=D())==null?void 0:J.state)!==1},V));
var t=function(J){if((D==null?void 0:D().state)!==1){var H,Q;(Q=(H=D()).onTap)==null||Q.call(H,J)}};
return _.K("chip-shape",{class:"ytChipShapeHost","on:focusin":_.jl(function(){var J=_.DY().resolve(_.Vx(_.PO));if(J){n(J.isKeyBoardInUse());var H,Q;(Q=(H=D()).onFocusIn)==null||Q.call(H)}return!1}),
"on:focusout":_.jl(function(){n(!1);return!1})},_.K(PDL,{shouldWrapInButton:function(){return D().type!==2},
selected:function(){return D().state===0},
onClick:t,isDropdown:function(){return D().type===1},
accessibilityLabel:function(){return D().accessibilityLabel}},_.K("div",{class:V},_.K(_.e,{cond:function(){return D().startIcon},
then:function(){return _.K(_.cj,{icon:function(){var J;return(J=D())==null?void 0:J.startIcon},
className:function(){return D().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return D().text},_.K(oQp,{shape:D,
onClick:t}))))},"Fb");
Jm6.idomCompat=!0;var PDL=_.MA(function(V){var D=_.jl(function(f){V.onClick(f);return!1});
return _.K(_.e,{cond:V.shouldWrapInButton,then:function(){return _.K("button",{class:"ytChipShapeButtonReset","on:click":D,role:function(){return V.isDropdown()?"combobox":"tab"},
"aria-label":V.accessibilityLabel,"aria-selected":V.selected},V.children)},
else:function(){return V.children}})},"Gb"),oQp=_.MA(function(V){var D=V.shape;
var f=V.onClick;var n=_.jl(function(t){f(t);return!1});
return _.K(_.kw,null,_.K(_.gj,{when:function(){return D().type===1}},function(){return _.K(_.cj,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.K(_.gj,{when:function(){return D().type===2}},function(){return _.K("button",{class:"ytChipShapeButtonReset",
"on:click":n},_.K(_.cj,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.K(_.gj,{when:function(){return D().type===0}},function(){return _.K(_.th,null)}))},"Hb");_.fT(Jm6,"chip-shape",{props:{data:_.WX}});var o_=function(){var V=_.E.apply(this,arguments)||this;V.disableDeselectEvent=!1;V.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return V};
_.v(o_,_.E);_.P=o_.prototype;_.P.onSelectChipCommand=function(V){if(!this.selected&&this.data&&(V=_.g(V,Kv6),V.targetId&&V.targetId===this.data.targetId))this.onTap()};
_.P.onFilterChipTransformCommand=function(V){if(!this.selected&&this.data){var D;(V=(D=_.g(V,rFo))==null?void 0:D.chipUniqueId)&&V===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.P.dataChanged=function(){var V=this;_.pO(this,function(){V.data&&V.data.isSelected&&!V.selected&&(V.scrollChipIntoView(),V.onTap())})};
_.P.computeChipStyle=function(V){return V!=null?V:"STYLE_DEFAULT"};
_.P.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.o4(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.o4(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.P.onFocus=function(){var V=_.DY().resolve(_.Vx(_.PO));V&&V.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.P.scrollChipIntoView=function(){_.PA(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.IG.Object.defineProperties(o_.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return bdY({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
o_.prototype.onFocus=o_.prototype.onFocus;o_.prototype.onTap=o_.prototype.onTap;o_.prototype.dataChanged=o_.prototype.dataChanged;_.S([_.u(_.ea),_.p("design:type",Object)],o_.prototype,"ironButtonState",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],o_.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],o_.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.ja),_.p("design:type",Object)],o_.prototype,"ironA11yKeysBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],o_.prototype,"disableDeselectEvent",void 0);_.S([_.q(),_.p("design:type",Object)],o_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.icon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],o_.prototype,"hasIcon",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.uniqueId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],o_.prototype,"isGnomeChip",null);_.S([_.q({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.p("design:type",String)],o_.prototype,"chipStyle",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],o_.prototype,"selected",void 0);
_.S([_.R("data","selected"),_.p("design:type",Object),_.p("design:paramtypes",[])],o_.prototype,"chipShapeData",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o_.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o_.prototype,"onTap",null);
_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o_.prototype,"onFocus",null);_.S([_.zy({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],o_);
_.Y(o_,"yt-chip-cloud-chip-renderer",function(){if(txV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;nQu===void 0&&(nQu=document.createElement("template"));var n=nQu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);txV=V}V=txV;return V},{mode:2});var Jd=function(){var V=_.E.apply(this,arguments)||this;V.isDarkTheme=!1;V.notSticky=!1;V.transparentBackground=!1;V.shouldHide=!1;V.disableSticky=!1;V.fluidWidth=!1;V.isClipList=!1;V.defaultChipIndex=0;V.isPlaylist=!1;V.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");V.toolbarHeight=0;V.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return V};
_.v(Jd,_.E);_.P=Jd.prototype;
_.P.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}}}}}};
_.P.attached=function(){var V=this;document.addEventListener("scroll",_.Ty(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var D;this.toolbarHeight=((D=document.querySelector("ytd-masthead"))==null?void 0:D.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(f){V.handleIntersect(f)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){V.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){var V;(V=this.intersectionObserver)==null||V.disconnect();var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("scroll",_.Ty(this,this.updateChipBarWidthAndTop))};
_.P.dataChanged=function(){var V=this,D,f,n;((n=_.g((D=this.data)==null?void 0:(f=D.contents)==null?void 0:f[0],AbY))==null?void 0:n.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var t=this.findSelectedChipIndex();this.selectedIndex!==t&&(this.selectedIndex=-1);_.pO(this,function(){V.selectedIndex=t;V.updating=!1;V.ytScrollableChipCloudBehavior.reset()})};
_.P.findSelectedChipIndex=function(){var V;if((V=this.data)==null||!V.contents)return 0;V=this.data.contents;for(var D=0;D<V.length;D++){var f=void 0;if((f=_.g(V[D],AbY))==null?0:f.isSelected)return D}return 0};
_.P.computeStyle=function(V){return V};
_.P.handleChipCloudChipSelectAction=function(V){V=this.JSC$14071_chipsSelector.indexOf(V);V>-1&&this.JSC$14071_chipsSelector.selectIndex(V)};
_.P.handleChipCloudChipDeselectAction=function(){if(_.c("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],AbY))==null?void 0:f.navigationEndpoint;n&&_.o4(this.hostElement,"yt-browse-section-list-reload-endpoint",[n]);this.JSC$14071_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.P.onGuideIsExpandedChanged=function(){var V=this.ytScrollableChipCloudBehavior;_.pO(V,V.setContainerWidthDiff);Pp(this.ytScrollableChipCloudBehavior)};
_.P.onResize=function(){var V=this.ytScrollableChipCloudBehavior;_.pO(V,V.setContainerWidthDiff);Pp(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.P.handleIntersect=function(V){this.notSticky=this.isChannelPageGrid||this.disableSticky||V[0].intersectionRatio===1};
_.P.updateDimensions=function(){var V=this.ytRendererBehavior.parentComponent;if(V){var D,f=(D=V.headerElement)!=null?D:V;_.wI(this.hostElement,{"--ytd-rich-grid-chips-bar-width":f.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.P.updateSelectedIndexFromBinding=function(V){this.selectedIndex=V.detail.value};
_.P.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var V;(V=this.sortFilterHeaderRendererElement)==null||V.setAttribute("is-playlist-page-with-filters","")}};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FcU(!this.notSticky))};
_.IG.Object.defineProperties(Jd.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 V,D,f=(V=this.data)==null?void 0:(D=V.contents)==null?void 0:D.find(function(n){return _.g(n,SDY)});
return{sortFilterHeaderRenderer:_.g(f,SDY)}}}});
Jd.prototype.dispatchChipBarIsSticky=Jd.prototype.dispatchChipBarIsSticky;Jd.prototype.isPlaylistPageChanged=Jd.prototype.isPlaylistPageChanged;Jd.prototype.updateChipBarWidthAndTop=Jd.prototype.updateChipBarWidthAndTop;Jd.prototype.onResize=Jd.prototype.onResize;Jd.prototype.onGuideIsExpandedChanged=Jd.prototype.onGuideIsExpandedChanged;Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Jd.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],Jd.prototype,"ironResizableBehavior",void 0);_.S([_.u(),_.p("design:type",td)],Jd.prototype,"ytScrollableChipCloudBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Jd.prototype,"data",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Jd.prototype,"selectedIndex",void 0);_.S([_.q({value:320}),_.p("design:type",Number)],Jd.prototype,"scrollDistance",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"notSticky",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"transparentBackground",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.p("design:type",String)],Jd.prototype,"componentStyle",void 0);_.S([_.q({selector:_.Z9X}),_.p("design:type",Boolean)],Jd.prototype,"guideIsExpanded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"shouldHide",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"disableSticky",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"fluidWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"isClipList",void 0);_.S([_.q(),_.p("design:type",Object)],Jd.prototype,"defaultChipIndex",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jd.prototype,"isPlaylist",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jd.prototype,"playlistVotingAnimationEnabled",void 0);_.S([_.Zv("#chips"),_.p("design:type",Object)],Jd.prototype,"JSC$14071_chipsSelector",void 0);_.S([_.Zv("ytd-sort-filter-header-renderer"),_.p("design:type",HTMLElement)],Jd.prototype,"sortFilterHeaderRendererElement",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Jd.prototype,"updating",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"dataChanged",null);_.S([_.KI("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"onGuideIsExpandedChanged",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"onResize",null);
_.S([_.eY("isChannelPageGrid","disableSticky","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"updateChipBarWidthAndTop",null);_.S([_.R("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jd.prototype,"isChannelPageGrid",null);_.S([_.R("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jd.prototype,"isHashtagLandingPage",null);
_.S([_.KI("isPlaylistPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"isPlaylistPageChanged",null);_.S([_.R("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jd.prototype,"isPlaylistPage",null);_.S([_.R("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jd.prototype,"isDisableDeselectEvent",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jd.prototype,"sortFilterHeaderRendererData",null);_.S([_.q({reflectToAttribute:!0,selector:_.FJd}),_.p("design:type",String)],Jd.prototype,"frostedGlassMode",void 0);_.S([_.KI("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jd.prototype,"dispatchChipBarIsSticky",null);_.S([_.a({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Jd);
_.Y(Jd,"ytd-feed-filter-chip-bar-renderer",function(){if(fzl!==void 0)return fzl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return fzl=V},{mode:1});var rml;var HsF=_.MA(function(V){var D=V.data;var f=V.buttonIndex;var n=V.selectedIndex;var t=V.onSelect;var J=function(){return f()===n()},H=function(){var Q,T;
return(T=(Q=D().text)==null?void 0:Q.content)!=null?T:""};
V=_.S3Z();return _.K("yt-toggleable-image-button-view-model",{class:function(){var Q={};Q=(Q["toggleable-image-button-view-model-wiz"]=!0,Q[""]=!0,Q["toggleable-image-button-view-model-wiz__semi-transparent"]=n()!==-1&&!J(),Q);return _.y6(Q)},
tabindex:0,"aria-label":H,"aria-pressed":J,role:"button","on:keydown":V,"on:click":_.jl(function(){t(D().onSubmitCommand);return!1})},_.K(_.e,{cond:function(){return D().logo},
then:function(Q){return _.K(_.xt,{data:Q,className:function(){var T={};T=(T["toggleable-image-button-view-model-wiz__image"]=!0,T["toggleable-image-button-view-model-wiz__circular-radius"]=!(!D().backgroundColor||!D().backgroundColorDarkMode),T["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(J()&&D().backgroundColor&&D().backgroundColorDarkMode),T);return _.y6(T)},
alt:H,useWidth:!1,style:function(){if(J()&&D().backgroundColor&&D().backgroundColorDarkMode){var T=Y7(Number(D().backgroundColorDarkMode),"1");var y=Y7(Number(D().backgroundColor),"1");T="background: linear-gradient(180deg,"+T+","+y+") border-box;"}else T="";return T}})}}),_.K(_.kl,{model:{borderRadius:"16px"}}),_.K("p",{class:function(){var Q={};
Q=(Q["toggleable-image-button-view-model-wiz__label"]=!0,Q["toggleable-image-button-view-model-wiz__bold-text"]=J(),Q);return _.y6(Q)}},_.K(_.Ow,{text:function(){return D().text}})))},"Ib");
HsF.idomCompat=!0;var QeL=_.MA(function(V){var D=V.data;V=_.r(_.HJ({index:-1,command:{}},void 0,"Zcqtsb"));var f=V.next().value,n=V.next().value;return _.K("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.K("div",{class:"nudge-form-view-model-wiz__form-options"},_.K(_.BW,{data:function(){return D().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(t,J){return _.K(HsF,{data:t.data,buttonIndex:J,selectedIndex:function(){return f().index},
onSelect:function(H){n({index:J(),command:H})}})}})),_.K(_.Ow,{text:function(){return D().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.K("div",{class:"nudge-form-view-model-wiz__submit"},_.K(_.BW,{data:function(){return D().submitButton}},{buttonViewModel:function(t){return _.K(w0U,{data:t.data,
isDisabled:function(){return f().index===-1},
onClick:function(){_.Yt(f().command)}})}})))},"Jb");
QeL.idomCompat=!0;var w0U=_.MA(function(V){var D=_.yT(function(){return Object.assign({},V.data(),{state:V.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.K(_.HO,{data:D,onClick:V.onClick})},"Kb");_.fT(QeL,"yt-nudge-form-view-model",{props:{data:_.WX}});var rJ=function(){var V=_.E.apply(this,arguments)||this;V.roundedContainer=!0;V.buttonUpdate=_.c("web_modern_buttons");V.isDarkMode=!1;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return V};
_.v(rJ,_.E);_.P=rJ.prototype;_.P.computeNudgeStyle=function(V){return V?"modernized-nudge":""};
_.P.handleDarkModeToggledAction=function(V){this.isDarkMode=V};
_.P.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.P.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"}}}};
_.P.computeIsHorizontalButtons=function(V){return V?!!V.applyModernizedStyle&&!!V.enableHorizontalButtons&&!!V.secondaryButton:!1};
_.IG.Object.defineProperties(rJ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.data)==null?void 0:V.backgroundStyle)!=null?D:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.data)==null?void 0:V.contentsLocation)!=null?D:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null?0:V.lightIconImage)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],rJ.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],rJ.prototype,"actionHandlerBehavior",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("isHideEnclosingAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rJ.prototype,"isHidden",null);_.S([_.q(),_.p("design:type",Object)],rJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rJ.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],rJ.prototype,"buttonUpdate",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.p("design:type",String)],rJ.prototype,"nudgeStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.trimStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],rJ.prototype,"trimStyle",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.backgroundStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],rJ.prototype,"backgroundStyle",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.contentsLocation"),_.p("design:type",String),_.p("design:paramtypes",[])],rJ.prototype,"contentsLocation",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.disableDropShadow"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rJ.prototype,"noShadow",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.lightIconImage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rJ.prototype,"noIcon",null);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.p("design:type",Boolean)],rJ.prototype,"isHorizontalButtons",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],rJ.prototype,"isDarkMode",void 0);_.S([_.a({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],rJ);
_.Y(rJ,"ytd-feed-nudge-renderer",function(){if(rml!==void 0)return rml;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return rml=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var T8F;var bso;var Hp=function(){var V=_.E.apply(this,arguments)||this;V.collapsed=!1;V.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return V};
_.v(Hp,_.E);Hp.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"}}}};
Hp.prototype.handleRatingSelect=function(){var V;((V=this.data)==null?0:V.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Hp.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Hp.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Hp.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.N0),_.p("design:type",Object)],Hp.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hp.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hp.prototype,"collapsed",void 0);_.S([_.a({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Hp);
_.Y(Hp,"ytd-slimline-survey-renderer",function(){if(bso!==void 0)return bso;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return bso=V},{mode:1});var Kdp;var wJ=function(){return _.E.apply(this,arguments)||this};
_.v(wJ,_.E);wJ.prototype.maybeGetBackgroundColor=function(V){return this.isDarkMode?V.section2Color:V.section3Color};
wJ.prototype.colorPaletteChanged=function(){var V=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;V&&(V==null?0:V.secondaryTitleColor)&&this.maybeGetBackgroundColor(V)?(this.hostElement.style.backgroundColor=_.AP(this.maybeGetBackgroundColor(V)),this.hostElement.style.color=_.AP(V.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
wJ.prototype.colorPaletteChanged=wJ.prototype.colorPaletteChanged;_.S([_.u(_.dh),_.p("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],wJ.prototype,"data",void 0);_.S([_.q({selector:function(V){return V.ui.darkModeIsEnabled}}),
_.p("design:type",Boolean)],wJ.prototype,"isDarkMode",void 0);_.S([_.q(),_.p("design:type",Object)],wJ.prototype,"lightColorPalette",void 0);_.S([_.q(),_.p("design:type",Object)],wJ.prototype,"darkColorPalette",void 0);_.S([_.KI("darkColorPalette","lightColorPalette","data","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wJ.prototype,"colorPaletteChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],wJ);
_.Y(wJ,"ytd-endorsement-header-renderer",function(){if(Kdp!==void 0)return Kdp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Kdp=V},{mode:1});_.fT(_.kd,"yt-decorated-avatar-view-model",{props:{data:_.WX,className:_.WX}});var Qk=function(){var V=_.E.apply(this,arguments)||this;V.fullHeight=_.c("web_rich_grid_media_full_height");V.showChannelAvatar=!0;V.hasPlaylistThumbnail=!1;V.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};V.prepareThumbnailForPageTransition=function(){_.c("web_thumbnail_to_watch_transition")&&(V.thumbnail.style.viewTransitionName="thumbnail-to-watch",V.cleanupThumbnailAfterPageTransition(V.thumbnail))};
return V};
_.v(Qk,_.E);_.P=Qk.prototype;
_.P.configureRendererStamper=function(){return{lazyLoadMenu:w5,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"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.shouldLazyLoadMenu=function(){var V=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.c("kevlar_modern_downloads_page")||!V};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14097_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.JSC$14097_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.P.getVideoPreviewOpts=function(){var V={},D;if((D=this.data)==null?0:D.multipleInlinePlaybackEndpoint)V=JWL;this.isRadio&&(V=oO6);return _.c("web_thumbnail_to_watch_transition")?Object.assign({},V,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):V};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$14097_inlinePreviewHoverListener)==null||D1(V)};
_.P.getOwner=function(){var V,D,f;return((V=this.data)==null?void 0:(D=V.channelThumbnailSupportedRenderers)==null?void 0:D.channelThumbnailWithLinkRenderer)||_.g((f=this.data)==null?void 0:f.showProviderChannelThumbnail,Glo)};
_.P.updateLockupSize=function(){var V;((V=this.getOwner())==null?0:V.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.P.getFeedbackEndpoint=function(V){if(_.g(V,_.uY))return V;var D,f;V=(f=(D=_.g(V,_.Tm))==null?void 0:D.commands)!=null?f:[];D=_.r(V);for(f=D.next();!f.done;f=D.next())if(f=this.getFeedbackEndpoint(f.value))return f;return null};
_.P.computeNavigationEndpoint=function(V){return pEY(V==null?void 0:V.navigationEndpoint)};
_.P.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var V=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(V)!==JSON.stringify(this.data)&&this.set("data",V)}};
_.P.onDataChanged=function(){var V=this,D=this.getOwner();if(D){this.set("data.owner",D);var f,n,t,J,H,Q=((f=this.data)==null?void 0:(n=f.shortBylineText)==null?void 0:(t=n.runs)==null?void 0:(J=t[0])==null?void 0:J.text)||((H=D.name)==null?void 0:H.simpleText);this.set("data.owner.title",Q)}var T,y,Z,l,G,F;D=((T=this.data)==null?void 0:(y=T.thumbnailRenderer)==null?void 0:y.playlistVideoThumbnailRenderer)||((Z=this.data)==null?void 0:(l=Z.thumbnailRenderer)==null?void 0:l.playlistCustomThumbnailRenderer)||
((G=this.data)==null?void 0:(F=G.thumbnailRenderer)==null?void 0:F.showCustomThumbnailRenderer);var k;((k=this.data)==null?0:k.thumbnail)||!D||this.set("data.thumbnail",D.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){V.updateLockupSize()});
var d;if(T=((d=this.data)==null?void 0:d.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(T);var z;((z=this.dismissActionToReplayEntity)==null?0:z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.P.onHiddenChanged=function(){this.updateLockupSize()};
_.P.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.o4(this.hostElement,"yt-terminate-video-preview-action");else{var V;(V=this.videoTitleLink)==null||V.focus()}};
_.P.metadataColorChanged=function(){var V;if(this.metadataColor&&((V=this.videoTitle)==null?0:V.style))this.videoTitle.style.color=_.AP(this.metadataColor);else{var D,f;!this.metadataColor&&((D=this.videoTitle)==null?0:(f=D.style)==null?0:f.color)&&(this.videoTitle.style.color="")}};
_.P.onDetailsClick=function(V){var D=this.computedNavigationEndpoint;D&&(_.It(_.Os(V),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.PA(this.hostElement,"yt-navigate",{endpoint:D}))};
_.P.cleanupThumbnailAfterPageTransition=function(V){_.LRF(document,"yt-page-type-changed",function(){V.style.viewTransitionName=""})};
_.P.onRendererTap=function(){this.prepareThumbnailForPageTransition();var V,D,f=((V=this.data)==null?void 0:V.serviceEndpoint)||this.getFeedbackEndpoint((D=this.data)==null?void 0:D.navigationEndpoint);f&&_.g(f,_.uY)&&this.ytComponentBehavior.resolveCommand(f)};
_.P.onMouseDown=function(V){var D=V.target,f=this.computedNavigationEndpoint,n;V=D.href||((n=_.g(f==null?void 0:f.commandMetadata,_.he))==null?void 0:n.url);n=D.data||f;V&&n&&UEd(V,n)};
_.P.computeVideoTitleText=function(){var V;if((V=this.data)==null?0:V.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.P.computeHasPlaylistThumbnail=function(V){var D,f,n,t,J;if((((D=V.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((f=V.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer)||((n=V.thumbnailRenderer)==null?0:n.showCustomThumbnailRenderer)||((t=V.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((J=V.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&V.thumbnailOverlays)for(D=0;D<V.thumbnailOverlays.length;D++)if(f=void 0,(f=V.thumbnailOverlays[D])==
null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.IG.Object.defineProperties(Qk.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var V;return(V=this.data)==null?void 0:V.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var V;return(V=this.data)==null?void 0:V.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$14097_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.yu(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.videoId)||((D=this.data)==null?void 0:D.playlistId)||""}}});
Qk.prototype.onMouseDown=Qk.prototype.onMouseDown;Qk.prototype.metadataColorChanged=Qk.prototype.metadataColorChanged;Qk.prototype.onIsDismissedChanged=Qk.prototype.onIsDismissedChanged;Qk.prototype.onHiddenChanged=Qk.prototype.onHiddenChanged;Qk.prototype.onDataChanged=Qk.prototype.onDataChanged;Qk.prototype.handleReloadDownloadsInfo=Qk.prototype.handleReloadDownloadsInfo;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Qk.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],Qk.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Qk.prototype,"ytdReduxBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Qk.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],Qk.prototype,"entitySelectorType",void 0);_.S([_.q(),_.p("design:type",Boolean)],Qk.prototype,"noEndpoints",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Qk.prototype,"isRadio",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],Qk.prototype,"miniMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qk.prototype,"fullHeight",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Qk.prototype,"showDarkVideoMetadata",void 0);_.S([_.q(),_.p("design:type",Boolean)],Qk.prototype,"showLightVideoMetadata",void 0);_.S([_.q(),_.p("design:type",Number)],Qk.prototype,"metadataColor",void 0);_.S([_.q(),_.p("design:type",Object)],Qk.prototype,"showChannelAvatar",void 0);_.S([_.q(),_.p("design:type",Boolean)],Qk.prototype,"hidden",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Qk.prototype,"showYtInteraction",void 0);
_.S([_.q(),_.p("design:type",String)],Qk.prototype,"dismissedContentId",void 0);_.S([_.q({selectorArgs:["dismissedContentId"],selector:Y4Y}),_.p("design:type",Object)],Qk.prototype,"dismissActionToReplayEntity",void 0);
_.S([_.q({selectorArgs:["entitySelectorType","mediaId"],selector:function(V,D,f){if(_.c("kevlar_modern_downloads_page")&&f&&D&&D!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(D){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var n=sI9(V,f);if(n){D=_.CA(V,f);var t=XC(V,f),J=ATn(V,f);V=El(V,f);var H=y6n(n,D,t,J);t=H.shortViewCountText;var Q=H.publishedTimeText;H=H.badges;var T=V>0;J=b_Y(n,D,J,V);n=_.Gq(D)||D==="TRANSFER_STATE_FAILED"||D==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!lR(n.policyEntity)?
void 0:SjR(f,V,n.videoEntity.lengthSeconds);D==="TRANSFER_STATE_PAUSED_BY_USER"&&f&&!_.c("dl_resume_click_killswitch")&&(n={offlineVideoEndpoint:{videoId:f,action:"ACTION_RESUME"}});f={shortViewCountText:t,publishedTimeText:Q,badges:H,isWatched:T,navigationEndpoint:n,thumbnailOverlays:J}}else f=void 0;return f;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(D=B0Y(V,f))if(n=_.q_(V,f),J=_.dT3(V,f),n!=="TRANSFER_STATE_UNKNOWN"){f=K5R(D,n,J,f,_.RW(V));break a}f=void 0}return f;default:_.zP(new _.cI("Error: entitySelectorType defined but not matched in selector.",
V,D))}}}),
_.p("design:type",Object)],Qk.prototype,"entityDrivenState",void 0);_.S([_.q({computed:"computeVideoTitleText(data)"}),_.p("design:type",Object)],Qk.prototype,"videoTitleText",void 0);_.S([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],Qk.prototype,"hasPlaylistThumbnail",void 0);_.S([_.q({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],Qk.prototype,"computedNavigationEndpoint",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Qk.prototype,"typographyBump",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qk.prototype,"typographyBumpV2",null);_.S([_.Zv("#video-title"),_.p("design:type",HTMLElement)],Qk.prototype,"videoTitle",void 0);_.S([_.Zv("#video-title-link"),_.p("design:type",HTMLElement)],Qk.prototype,"videoTitleLink",void 0);
_.S([_.Zv("#thumbnail"),_.p("design:type",HTMLElement)],Qk.prototype,"thumbnail",void 0);_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],Qk.prototype,"JSC$14097_dismissibleMedia",void 0);_.S([_.R("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qk.prototype,"lazyLoadMenu",null);_.S([_.R("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qk.prototype,"immediateLoadMenu",null);
_.S([_.eY("entityDrivenState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qk.prototype,"handleReloadDownloadsInfo",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qk.prototype,"onDataChanged",null);_.S([_.eY("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qk.prototype,"onHiddenChanged",null);
_.S([_.KI("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qk.prototype,"onIsDismissedChanged",null);_.S([_.KI("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qk.prototype,"metadataColorChanged",null);_.S([_.bU("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Qk.prototype,"onMouseDown",null);
_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qk.prototype,"isHovered",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qk.prototype,"useAvatar",null);_.S([_.R("data","entitySelectorType"),_.p("design:type",String),_.p("design:paramtypes",[])],Qk.prototype,"mediaId",null);_.S([_.a({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Qk);
var ymL=_.o5()(Qk,"ytd-rich-grid-media",function(){if(T8F!==void 0)return T8F;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return T8F=V},{mode:_.J2("kevlar_poly_si_batch_j072")?1:2});var ZsP;var Ti=function(){var V=_.E.apply(this,arguments)||this;V.removeMaxWidth=!0;V.insetMetadata=!1;return V};
_.v(Ti,_.E);_.P=Ti.prototype;_.P.configureRendererStamper=function(){return{innerMenu:w5,outerMenu:Object.assign({},w5,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onDataChanged=function(){var V,D=((V=this.data)==null?void 0:V.trackingParams)||"";D&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(D));var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14102_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.JSC$14102_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rWY})};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$14102_inlinePreviewHoverListener)==null||D1(V)};
_.P.onRendererTap=function(){var V,D,f=(V=this.data)==null?void 0:(D=V.serviceEndpoints)==null?void 0:D[0];_.g(f,_.uY)&&this.componentBehavior.resolveCommand(f)};
_.P.onDetailsClick=function(V){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;f&&(_.It(_.Os(V),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(f))};
_.P.onShow=function(){var V=this.data;V.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(V.onFirstVisibleCommand),delete V.onFirstVisibleCommand)};
_.IG.Object.defineProperties(Ti.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var V;return this.insetMetadata?void 0:(V=this.data)==null?void 0:V.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var V;return this.insetMetadata?(V=this.data)==null?void 0:V.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var V=this.data;if(V!=null&&V.badge&&(V=_.g(V.badge,mWV))){var D,f,n;return[{metadataBadgeRenderer:{label:((D=V.label)==null?void 0:(f=D.runs)==null?void 0:f[0].text)||((n=V.label)==null?void 0:n.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var V=this.data;return Object.assign({},V.headline,{accessibility:V.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return this.isSlimShort?(V=this.computedTitle)==null?void 0:(D=V.accessibility)==null?void 0:(f=D.accessibilityData)==null?void 0:f.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.c("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$14102_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ti.prototype.onDataChanged=Ti.prototype.onDataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ti.prototype,"componentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],Ti.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.N0),_.p("design:type",Object)],Ti.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],Ti.prototype,"thumbnail",void 0);_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],Ti.prototype,"JSC$14102_dismissibleMedia",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ti.prototype,"removeMaxWidth",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ti.prototype,"insetMetadata",void 0);_.S([_.q(),_.p("design:type",String)],Ti.prototype,"dismissedContentId",void 0);_.S([_.q({selectorArgs:["dismissedContentId"],selector:Y4Y}),_.p("design:type",Object)],Ti.prototype,"dismissActionToReplayEntity",void 0);_.S([_.R("insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"thumbnailObjectFit",null);
_.S([_.R("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"innerMenu",null);_.S([_.R("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"outerMenu",null);_.S([_.q(),_.p("design:type",Object)],Ti.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],Ti.prototype,"miniMode",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ti.prototype,"onDataChanged",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"shortsBadges",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ti.prototype,"isShort",null);
_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ti.prototype,"isSlimShort",null);_.S([_.R("data","isShort"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"computedTitle",null);_.S([_.R("isSlimShort","computedTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ti.prototype,"computedAccessibilityLabel",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ti.prototype,"shouldForce2By3",null);_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ti.prototype,"isHovered",null);_.S([_.a({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Ti);
_.Y(Ti,"ytd-rich-grid-slim-media",function(){if(ZsP!==void 0)return ZsP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZsP=V},{mode:_.J2("kevlar_poly_si_batch_j063")?1:2});var je6;var lzU;var br=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(br,_.E);br.prototype.computeIcon=function(V){return V&&V.iconType?"yt-sys-icons:"+V.iconType.toLowerCase():""};
br.prototype.onMouseEnter=function(){this.isHovered=!0};
br.prototype.onMouseLeave=function(){this.isHovered=!1};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],br.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],br.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],br.prototype,"isHovered",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],br.prototype,"darkerDarkTheme",void 0);_.S([_.a({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],br);
_.Y(br,"ytd-expand-on-hover-card-renderer",function(){if(lzU!==void 0)return lzU;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lzU=V},{mode:1});var Gxo,ebP=function(){if(Gxo!==void 0)return Gxo;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Gxo=V};_.zk("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var KF=function(){var V=_.E.apply(this,arguments)||this;V.compactStyle=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(KF,_.E);_.P=KF.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.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"}}}};
_.P.computeHideDot=function(V){return!(V&&V.subscriberCountText&&V.videoCountText)||this.compactStyle};
_.P.hasDualButtons=function(V){return V&&V.purchaseButton&&V.subscribeButton};
_.P.backgroundColorChanged=function(){if(this.data!==void 0){var V=this.data.backgroundColor;this.isDarkTheme&&(V=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=V!=null?_.AP(V):"transparent"}};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.onTap=function(V){var D,f,n=((D=this.data)==null?void 0:D.navigationEndpoint)||((f=this.data)==null?void 0:f.serviceEndpoint);_.g(n,_.fL)&&(n&&_.DY().resolve(_.fH).resolveCommand(n,{form:{element:this.hostElement}}),V.preventDefault())};
_.P.computeChannelEndpoint=function(V){return _.g(V,_.fL)?null:V};
_.P.computeHrefEndpoint=function(V){return _.g(V,_.fL)?null:this.componentBehavior.computeHref_(V)};
_.P.computeChannelRendererStyle=function(V){return V};
_.P.computeIconSize=function(V){return V?108:136};
_.IG.Object.defineProperties(KF,{template:{configurable:!0,enumerable:!0,get:function(){return ebP()}}});
KF.prototype.backgroundColorChanged=KF.prototype.backgroundColorChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],KF.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],KF.prototype,"componentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],KF.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],KF.prototype,"isDarkTheme",void 0);_.S([_.q({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.p("design:type",String)],KF.prototype,"channelRendererStyle",void 0);_.S([_.q({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],KF.prototype,"dualButtons",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],KF.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],KF.prototype,"biggerThumbStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],KF.prototype,"compactStyle",void 0);_.S([_.KI("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KF.prototype,"backgroundColorChanged",null);_.S([_.a({is:"ytd-channel-renderer",disableElementRegistration:!0})],KF);_.Y(KF,"ytd-channel-renderer",function(){return ebP()},{mode:1});var cmU;var FdH;_.zk("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var yk=function(){var V=_.E.apply(this,arguments)||this;V.displayItemCount=2;V.collections=_.c("web_modern_collections_v2");V.hasPlaylistThumbnail=!1;V.stackThumbnailSize="large";return V};
_.v(yk,_.E);_.P=yk.prototype;_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.computeFirstVideos=function(V,D){return V&&D?V.slice(0,D):[]};
_.P.computeThumbnailWidth=function(V,D){return V?D==="BIG"?500:D==="MASSIVE"?600:D==="MEDIUM"?450:420:360};
_.P.computeThumbnailHeight=function(V,D){return V?D==="BIG"?280:D==="MASSIVE"?337:234:202};
_.P.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$14115_inlinePreviewHoverListener)==null||D1(V)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14115_inlinePreviewHoverListener=a7({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:JWL,thumbnailElement:this.thumbnail})};
_.P.computeHasPlaylistThumbnail=function(V){var D,f;if((((D=V.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((f=V.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&V.thumbnailOverlays)for(D=0;D<V.thumbnailOverlays.length;D++)if(f=void 0,(f=V.thumbnailOverlays[D])==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.IG.Object.defineProperties(yk.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$14115_inlinePreviewHoverListener)==null?0:u1(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
yk.prototype.dataChanged=yk.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],yk.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yk.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],yk.prototype,"displayItemCount",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],yk.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],yk.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],yk.prototype,"collections",void 0);_.S([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],yk.prototype,"hasPlaylistThumbnail",void 0);_.S([_.q(),_.p("design:type",String)],yk.prototype,"stackThumbnailSize",void 0);_.S([_.Zv("ytd-thumbnail"),_.p("design:type",HTMLElement)],yk.prototype,"thumbnail",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yk.prototype,"dataChanged",null);_.S([_.R("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yk.prototype,"isHovered",null);_.S([_.a({is:"ytd-radio-renderer",disableElementRegistration:!0})],yk);
_.Y(yk,"ytd-radio-renderer",function(){if(FdH!==void 0)return FdH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FdH=V},{mode:_.J2("kevlar_poly_si_batch_j058")?1:2});var gQu;_.zk("itemSectionRenderer","showRenderer","ytd-show-renderer");var ZE=function(){return _.E.apply(this,arguments)||this};
_.v(ZE,_.E);ZE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ZE.prototype.computeThumbnailWidth=function(V){return V?360:246};
ZE.prototype.computeUseProminentThumbs=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZE.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],ZE.prototype,"isSearch",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.p("design:type",Boolean)],ZE.prototype,"useProminentThumbs",void 0);_.S([_.a({is:"ytd-show-renderer",disableElementRegistration:!0})],ZE);
_.Y(ZE,"ytd-show-renderer",function(){if(gQu!==void 0)return gQu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gQu=V},{mode:1});_.zk("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var jf=function(){var V=_.E.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.v(jf,_.E);jf.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"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jf.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jf.prototype,"isRichGrid",void 0);_.S([_.a({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],jf);
_.Y(jf,"ytd-feed-entry-renderer",function(){if(cmU!==void 0)return cmU;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return cmU=V},{mode:1});var vQl;var lr=function(){return _.E.apply(this,arguments)||this};
_.v(lr,_.E);lr.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.S([_.u(_.dh),_.p("design:type",Object)],lr.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],lr.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lr.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.N_,value:3}),_.p("design:type",Number)],lr.prototype,"itemsPerRow",void 0);
_.S([_.a({is:"ytd-link-card-renderer",disableElementRegistration:!0})],lr);
_.Y(lr,"ytd-link-card-renderer",function(){if(vQl!==void 0)return vQl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vQl=V},{mode:1});var kxF;var Gi=function(){return _.E.apply(this,arguments)||this};
_.v(Gi,_.E);_.P=Gi.prototype;_.P.configureRendererStamper=function(){return{"data.menu":w5,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onRendererTap=function(V){if(!this.ytdDismissibleItemBehavior.isDismissed){var D,f=(D=this.data)==null?void 0:D.navigationEndpoint;f&&!_.It(_.Os(V),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(f)?_.It(_.Os(V),this.hostElement,["A"])||_.PA(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f,{}))}};
_.P.maybeComputeHref=function(V){return this.ytComponentBehavior.computeHref_(V,!0)};
_.P.getNavigationCommand=function(V){return this.isNavigationCommand(V)?V:null};
_.P.isNavigationCommand=function(V){return V?_.g(V,_.jL)||_.g(V,_.pl)||_.g(V,_.a2)?!0:!1:!1};
Gi.prototype.onRendererTap=Gi.prototype.onRendererTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Gi.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Gi.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Gi.prototype,"data",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Gi.prototype,"onRendererTap",null);_.S([_.a({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Gi);
_.Y(Gi,"ytd-lumiere-promo-item-image-renderer",function(){if(kxF!==void 0)return kxF;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kxF=V},{mode:1});var seF;var ef=function(){return _.E.apply(this,arguments)||this};
_.v(ef,_.E);ef.prototype.computeLandscapeThumbnail=function(){var V;return((V=this.data)==null?void 0:V.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],ef.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ef.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],ef.prototype,"miniMode",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.N_}),_.p("design:type",Number)],ef.prototype,"itemsPerRow",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.p("design:type",Boolean)],ef.prototype,"landscapeThumbnail",void 0);_.S([_.a({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ef);
_.Y(ef,"ytd-lumiere-shelf-details-renderer",function(){if(seF!==void 0)return seF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return seF=V},{mode:_.J2("kevlar_poly_si_batch_j076")?1:2});var B8L;var cp=function(){return _.E.apply(this,arguments)||this};
_.v(cp,_.E);cp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cp.prototype,"data",void 0);_.S([_.a({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],cp);
_.Y(cp,"ytd-primetime-promo-details-renderer",function(){if(B8L!==void 0)return B8L;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return B8L=V},{mode:1});var d$Y;var Fp=function(){return _.E.apply(this,arguments)||this};
_.v(Fp,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Fp.prototype,"data",void 0);_.S([_.a({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Fp);
_.Y(Fp,"ytd-panel-show-style-metadata-renderer",function(){if(d$Y!==void 0)return d$Y;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return d$Y=V},{mode:1});var unE;var gJ=function(){return _.E.apply(this,arguments)||this};
_.v(gJ,_.E);_.P=gJ.prototype;_.P.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.P.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.P.computeThumbnail=function(V){if(V)return V.smallFormFactorBackgroundThumbnail||V.largeFormFactorBackgroundThumbnail};
_.P.maybeComputeHref=function(V){return this.ytComponentBehavior.computeHref_(V,!0)};
_.P.isNavigationCommand=function(V){return V?_.g(V,_.jL)||_.g(V,_.pl)||_.g(V,_.a2)?!0:!1:!1};
_.P.getNavigationCommand=function(V){return this.isNavigationCommand(V)?V:null};
gJ.prototype.onPanelTap=gJ.prototype.onPanelTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],gJ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gJ.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],gJ.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.p("design:type",Boolean)],gJ.prototype,"modernButtons",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gJ.prototype,"onPanelTap",null);_.S([_.a({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],gJ);
_.Y(gJ,"ytd-primetime-promo-panel-renderer",function(){if(unE!==void 0)return unE;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return unE=V},{mode:1});_.fT(_.MA(function(V){V=_.Or(V,{data:{},useFullWidth:!1});var D=V.data,f=V.useFullWidth;V={};return _.K("teaser-card-view-model",{class:_.KT("ytTeaserCardViewModelHost",(V.ytTeaserCardViewModelUseFullWidth=function(){return f()},V))},_.K(_.e,{cond:function(){return D().onTap},
then:function(n){return _.K(_.YC,{className:"ytTeaserCardViewModelLink",command:n},_.K("div",{class:"ytTeaserCardViewModelImageContainer"},_.K(_.e,{cond:function(){return D().image},
then:function(t){return _.K(_.xt,{data:t,className:"ytTeaserCardViewModelImage",alt:""})}})),_.K("p",{class:"ytTeaserCardViewModelCaption"},function(){return D().caption}))}}))},"Lb"),"teaser-card-view-model",{props:{data:_.WX,
useFullWidth:_.WX}});var N8H=new _.IH("RICH_GRID_VIDEO_RENDERER_TOKEN");_.fT(_.MA(function(V){var D=V.data;var f=V.showYtInteractionInContent;var n=function(){return!!D().selectableFeedback};
V=_.r(_.HJ(!1,void 0,"nblDw"));var t=V.next().value,J=V.next().value;_.Nl(function(){var G=_.g(D().primaryButton,_.FO);(G==null?0:G.isToggled)&&J(G.isToggled)});
V=_.jl(function(G){if(!n())return!1;if(t()){var F;var k=(F=D().selectableFeedback)==null?void 0:F.onDeselect}else{var d;k=(d=D().selectableFeedback)==null?void 0:d.onSelect}k&&_.Yt(k,{form:{element:G.target}});J(!t());if(G=_.g(D().primaryButton,_.FO))G.isToggled=t();return!1});
var H=function(){if(!n()){var G,F=(G=D().loggingDirectives)==null?void 0:G.trackingParams;F&&_.H5(_.DY().resolve(_.cO),F)}},Q=_.WBY(),T=function(){var G;
return n()?(G=D().selectableFeedback)==null?void 0:G.a11yLabel:void 0},y=function(){return n()?{toggled:t()}:{}},Z=_.DY().resolve(_.Vx(N8H)),l={};
return _.K("yt-feedback-item-renderer",{class:_.KT("ytFeedbackItemRendererHost",(l.ytFeedbackItemRendererSelectableFeedback=n,l)),"on:click":V,"on:keydown":Q,title:T,"aria-label":T,"aria-pressed":function(){return n()?t():void 0},
tabindex:function(){return n()?0:void 0},
role:function(){return n()?"button":void 0}},_.K("div",{class:"ytFeedbackItemRendererContentContainer"},_.K(_.BW,{data:function(){return D().content}},{videoRenderer:function(G){return _.K(Z,{data:G.data,
showYtInteraction:f})},
lockupViewModel:function(G){return _.K(_.nv,{data:G.data,containerType:2})}})),_.K("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.K(_.BW,{data:function(){return D().primaryButton}},{toggleButtonViewModel:function(G){return _.K(_.FA,{data:G.data,
buttonShapeOverrides:y,disableExplicitClickLogging:!0,onToggle:H})}})))},"Mb"),"yt-feedback-item-renderer",{props:{data:_.WX,
showYtInteractionInContent:_.WX}});var vp=function(){var V=_.E.apply(this,arguments)||this;V.isShortsGrid=!1;V.isCompactGrid=!1;V.isShortsPanelGrid=!1;V.renderedFromRichGrid=!1;V.isInFirstColumn=!1;V.noGutterMargins=!1;V.isInlineGroupItem=!1;V.insetMetadata=!1;V.noBottomMarginInAds=_.c("web_no_bottom_margin_for_home_ad_buttons");V.force16By9ThumbnailAspectRatio=!1;V.useCompactList=!1;V.containerType=2;V.thumbnailTargetWidth=9999;V.isResponsiveGrid=!1;V.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};V.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};V.hoverListener=V.hover.bind(V);V.leaveListener=V.leave.bind(V);V.highlighted=!1;V.JSC$14150_unsubscribeFromInlinePreviewIsActive=function(){};
return V};
_.v(vp,_.E);_.P=vp.prototype;_.P.computeContainerType=function(){return this.useCompactList?3:2};
_.P.computeThumbnailTargetWidth=function(){var V;return(V=this.itemWidth)!=null?V:9999};
_.P.updateIsInFirstColumn=function(){var V;this.isInFirstColumn=((V=this.data)==null?void 0:V.colIndex)===0};
_.P.observerContainerType=function(){if(this.lockup){var V=this.lockup;V.containerType=this.containerType;V.sizing=this.sizing;V.typographyBump=this.typographyBump;V.itemWidth=this.itemWidth}this.richGridMedia&&_.c("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.c("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.P.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]]"}}}}}};
_.P.leave=function(V){V=V.relatedTarget;var D=document.querySelector("ytd-video-preview");V&&D&&_.oU(D).contains(V)||this.removeAndCleanupHighlight()};
_.P.hover=function(){var V;if(!this.highlighted&&(!_.c("web_enable_rich_item_on_focus_effect")||(V=this.data)!=null&&V.onFocusEffect)){var D,f;((D=this.data)==null?void 0:(f=D.onFocusEffect)==null?void 0:f.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(V=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:V,boxShadow:"0 0 0 10px "+V}));var n,t;((n=this.data)==null?void 0:(t=n.onFocusEffect)==null?void 0:
t.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.P.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};
_.P.registerHoverHighlightListeners=function(){var V=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14150_unsubscribeFromInlinePreviewIsActive=_.yX(_.Ol(),_.GN9,function(D){V.highlighted&&!D&&V.removeAndCleanupHighlight()})};
_.P.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14150_unsubscribeFromInlinePreviewIsActive()};
_.P.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.P.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.P.getBackgroundColor=function(){var V,D,f=(V=this.data)==null?void 0:(D=V.onFocusEffect)==null?void 0:D.onFocusColor;if(f){if(document.documentElement.hasAttribute("dark")&&(f==null?0:f.darkTheme))return _.AP(f==null?void 0:f.darkTheme);if(f==null?0:f.lightTheme)return _.AP(f==null?void 0:f.lightTheme)}};
_.P.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var V=_.Ni(),D,f,n;V&&((D=this.data)==null?0:D.trackingParams)&&((f=this.data)==null?void 0:f.colIndex)!=null&&((n=this.data)==null?void 0:n.rowIndex)!=null&&_.I4(V,_.gs(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.P.isSlimMediaRenderer=function(V){return!!_.g(V==null?void 0:V.content,_.r_V)||!!_.g(V==null?void 0:V.content,J_p)||!!_.g(V==null?void 0:V.content,_.zN)||!!_.g(V==null?void 0:V.content,dWl)};
_.P.isPostRenderer=function(){var V,D;return!!_.g((V=this.data)==null?void 0:V.content,nsU)||!!_.g((D=this.data)==null?void 0:D.content,tPE)};
_.P.computeIsGameCardShelf=function(){var V;return!!_.g((V=this.data)==null?void 0:V.content,b8U)};
_.P.computeIsMiniGameCardShelf=function(){var V,D;return!!_.g((V=this.data)==null?void 0:V.content,BHF)||!!_.g((D=this.data)==null?void 0:D.content,dmF)};
_.P.computeIsTeaserCard=function(){var V;return!!_.g((V=this.data)==null?void 0:V.content,dmF)};
_.P.computeIsSelectableFeedbackItem=function(){var V,D;return!((D=_.g((V=this.data)==null?void 0:V.content,_.NHl))==null||!D.selectableFeedback)};
_.P.computeContainsLumierePosters=function(){var V,D;return((D=_.g((V=this.data)==null?void 0:V.content,Kzl))==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.computeIsExpandOnHoverCardShelf=function(){var V;return!!_.g((V=this.data)==null?void 0:V.content,bgL)};
_.P.computeIsLinkCardShelf=function(){var V;return!!_.g((V=this.data)==null?void 0:V.content,Ecl)};
_.P.computeIsReelItemStyleAvatarCircle=function(V){var D;return((D=_.g(V==null?void 0:V.content,_.zN))==null?void 0:D.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.P.computeIsLinkCardFullWidth=function(V,D){var f;return((f=_.g(V==null?void 0:V.content,Ecl))==null?void 0:f.useFullWidth)||D<=2};
_.IG.Object.defineProperties(vp.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&&_.c("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.c("web_enable_rich_item_on_focus_effect")||_.c("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
vp.prototype.richGridHoverHighlightChanged=vp.prototype.richGridHoverHighlightChanged;vp.prototype.observerContainerType=vp.prototype.observerContainerType;vp.prototype.updateIsInFirstColumn=vp.prototype.updateIsInFirstColumn;_.S([_.u(_.dh),_.p("design:type",Object)],vp.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],vp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],vp.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vp.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.p("design:type",Boolean)],vp.prototype,"isPost",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.p("design:type",Boolean)],vp.prototype,"containsLumierePosters",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.p("design:type",Boolean)],vp.prototype,"isSlimMedia",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.p("design:type",Boolean)],vp.prototype,"isGameCardShelf",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.p("design:type",Boolean)],vp.prototype,"isMiniGameCardShelf",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.p("design:type",Boolean)],vp.prototype,"isTeaserCard",void 0);_.S([_.q({computed:"computeIsSelectableFeedbackItem(data)"}),_.p("design:type",Boolean)],vp.prototype,"isSelectableFeedbackItem",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isShortsGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],vp.prototype,"isSlimGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isCompactGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isShortsPanelGrid",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.p("design:type",Boolean)],vp.prototype,"isExpandOnHoverCardShelf",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.p("design:type",Boolean)],vp.prototype,"isLinkCardShelf",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.N_,value:3}),_.p("design:type",Number)],vp.prototype,"itemsPerRow",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"renderedFromRichGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isInFirstColumn",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"noGutterMargins",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isInlineGroupItem",void 0);_.S([_.q(),_.p("design:type",Object)],vp.prototype,"insetMetadata",void 0);
_.S([_.q(),_.p("design:type",Object)],vp.prototype,"noBottomMarginInAds",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],vp.prototype,"isShelfItem",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.p("design:type",Boolean)],vp.prototype,"isReelItemStyleAvatarCircle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.p("design:type",Boolean)],vp.prototype,"isLinkCardFullWidth",void 0);
_.S([_.q(),_.p("design:type",Object)],vp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"useCompactList",void 0);_.S([_.q(),_.p("design:type",String)],vp.prototype,"sizing",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],vp.prototype,"typographyBump",void 0);_.S([_.q(),_.p("design:type",Number)],vp.prototype,"itemWidth",void 0);_.S([_.q(),_.p("design:type",Boolean)],vp.prototype,"isHomeShelf",void 0);
_.S([_.q(),_.p("design:type",Boolean)],vp.prototype,"isHomeGrid",void 0);_.S([_.Zv("yt-lockup-view-model"),_.p("design:type",HTMLElement)],vp.prototype,"lockup",void 0);_.S([_.Zv("ytd-rich-grid-media"),_.p("design:type",HTMLElement)],vp.prototype,"richGridMedia",void 0);_.S([_.Zv("ytd-ad-slot-renderer"),_.p("design:type",HTMLElement)],vp.prototype,"adSlotRenderer",void 0);_.S([_.q({computed:"computeContainerType(useCompactList)"}),_.p("design:type",Object)],vp.prototype,"containerType",void 0);
_.S([_.q({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.p("design:type",Object)],vp.prototype,"thumbnailTargetWidth",void 0);_.S([_.R("showYtInteractionOnRichItem"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vp.prototype,"showYtInteractionOnRichGridMedia",null);_.S([_.R("isSelectableFeedbackItem","richGridHoverHighlight"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vp.prototype,"showYtInteractionOnRichItem",null);
_.S([_.R("typographyBump","isHomeGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vp.prototype,"richTypographyBump",null);_.S([_.q({reflectToAttribute:!0}),_.R("isShortsGrid","isCompactGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vp.prototype,"richGridHoverHighlight",null);_.S([_.R("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],vp.prototype,"shortsLockupViewModelAspectRatio",null);
_.S([_.R("isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],vp.prototype,"shortsLockupViewModelScrimStyle",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vp.prototype,"updateIsInFirstColumn",null);_.S([_.KI("containerType","sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vp.prototype,"observerContainerType",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vp.prototype,"isResponsiveGrid",void 0);_.S([_.q(),_.p("design:type",Object)],vp.prototype,"lockupExperiments",void 0);_.S([_.KI("richGridHoverHighlight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vp.prototype,"richGridHoverHighlightChanged",null);_.S([_.a({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],vp);
_.m$Y=_.o5()(vp,"ytd-rich-item-renderer",function(){if(je6===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);je6=V}V=je6;return V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var c1Y={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var C03=_.pA(_.Zl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var gWx={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},khX={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},syZ={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var zbP;var kX=function(){var V=_.E.apply(this,arguments)||this;V.useResponsiveGrid=!1;V.hidden=!1;V.standardShelfMargins=_.c("web_rich_grid_standard_shelf_margins");V.isShowMoreHidden=!1;V.isExpanded=!1;V.isInnerShelf=!1;V.allVideosCount=0;V.allPlaylistCount=0;V.haveSmartDownloadsCompleted=!1;V.isShowLessHidden=!0;V.restrictContentsOverflow=!1;V.firstShownIndex=0;V.horizontalOffset=0;V.atEnd=!0;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};V.nextClick=function(){var D;(D=V.data)!=null&&D.contents&&(V.firstShownIndex+=V.currentElementsPerRow,V.updateHorizontalOffset(),V.updateHorizontalItemVisibility())};
V.previousClick=function(){var D;(D=V.data)!=null&&D.contents&&(V.firstShownIndex-=V.currentElementsPerRow,V.updateHorizontalOffset(),V.updateHorizontalItemVisibility())};
return V};
_.v(kX,_.E);_.P=kX.prototype;
_.P.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:_.XB("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){this.requestElementsPerRow()};
_.P.refreshGridLayoutNew=function(){var V;if((V=this.data)!=null&&V.contents&&this.containerWidth){var D;((D=this.data.responsiveContainerConfiguration)==null?0:D.responsiveSize)?(V=_.EWn(this.data.responsiveContainerConfiguration,this.containerWidth),V=_.WW(Object.assign({},V,{standardUnitMinWidth:this.standardUnitMinWidth}))):V=_.WW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=V.typographyBump;if(this.elementsPerRow!==
V.numItems||this.gutter!==V.gutter)this.elementsPerRow=V.numItems,this.gutter=V.gutter,this.itemWidth=V.itemWidth,_.wI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":V.gutter+"px"})}};
_.P.computeSizing=function(){if(!this.isLumiere){var V=_.pZd(this.data);if(V)return V;if(_.c("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.P.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.P.computeButton=function(V){var D=_.g(V,_.RI);V=Object.assign({},_.g(V,_.RI));return D?(V.text||(V.text={simpleText:V.tooltip}),V.style="STYLE_MONO_OUTLINE",V.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",V):D};
_.P.onRowIndexChange=function(){var V=_.Ni(),D,f;((D=this.data)==null?0:D.trackingParams)&&((f=this.data)==null?void 0:f.rowIndex)!=null&&V&&_.I4(V,_.gs(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.P.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var V,D=((V=this.getRichItemRenderers()[0])==null?void 0:V.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*D;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.P.onUpdateElementsPerRowAction=function(V,D,f,n,t,J){if(this.containerWidth!==J&&(this.containerWidth=J,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&V&&D&&f&&n&&t&&(this.elementsPerRow!==V||this.postsPerRow!==D||this.slimItemsPerRow!==f||this.gameCardsPerRow!==n||this.miniGameCardsPerRow!==t)&&(this.elementsPerRow=V,this.postsPerRow=D,this.slimItemsPerRow=f,this.gameCardsPerRow=n,this.miniGameCardsPerRow=t,this.updateItemVisibility())};
_.P.getRichItemRenderers=function(){return _.Pt(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.P.updateItemVisibility=function(){var V=this;if(this.data&&this.data.contents){var D=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(n,t){var J;((J=V.data)==null?0:J.isExpanded)?(n.hidden=t>D-1,n.ytRendererBehavior.markDirty()):n.hidden=t>V.currentElementsPerRow-1||t>D-1});
var f=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||f||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||f||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.P.setHeightToSingleRow=function(){var V=this.getRichItemRenderers(),D=Number.parseInt(getComputedStyle(V[0]).marginBottom,10)||0;V=V.slice(0,this.currentElementsPerRow).reduce(function(f,n){return Math.max(f,n.getBoundingClientRect().height+D)},0);
this.contents.style.height=V+"px"};
_.P.focusNextExpandedItem=function(){var V;((V=this.data)==null?0:V.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.P.focusItem=function(V,D){var f=this.getRichItemRenderers();if(f[V]&&(V=f[V].querySelector(".focus-on-expand"))){if(D){var n;(n=f[this.currentElementsPerRow])==null||n.scrollIntoView({behavior:"smooth",block:"center"})}V.focus({preventScroll:!0})}};
_.P.onDataChange=function(){var V=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var D;if((D=this.data)==null?0:D.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.pO(this,function(){V.updateItemVisibility()});
var f;if((f=this.data)==null?0:f.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.wI(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),D=0;D<this.data.contents.length;D++)f=_.g(this.data.contents[D],_.vc)||{},f.colIndex=D,f.rowIndex=this.data.rowIndex};
_.P.handleRerenderDownloadsData=function(){_.c("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())};
_.P.blockInlinePreview=function(V){var D=this,f;return _.w(function(n){(f=D.inlinePreviewIsEnabled)&&D.ytdReduxBehavior.dispatch(_.c$o(!1));return n.return(new Promise(function(t){V(function(){f&&D.ytdReduxBehavior.dispatch(_.c$o(!0));t()})}))})};
_.P.expandShelf=function(){var V=this;if(this.data){var D,f=(D=_.g(this.data.showMoreButton,_.RI))==null?void 0:D.trackingParams;f&&_.H5(_.lS(),f);this.data.isExpanded=!0;this.blockInlinePreview(function(n){V.setHeightToSingleRow();V.updateItemVisibility();V.contents.style.height=V.contents.scrollHeight+"px";_.dm.addJob(function(){V.contents.style.height="auto";V.focusNextExpandedItem();n()},2,200)})}};
_.P.collapseShelf=function(){var V=this;return _.w(function(D){if(D.nextAddress==1){if(!V.data)return D.return();V.data.isExpanded=!1;return _.b(D,V.blockInlinePreview(function(f){V.contents.style.height=V.contents.scrollHeight+"px";V.setHeightToSingleRow();_.dm.addJob(function(){V.updateItemVisibility();V.contents.style.height="auto";f()},2,200)}),2)}_.PA(V.hostElement,"yt-rich-shelf-renderer-collapse",V.data.trackingParams);
V.focusItem(0,!1);_.yz(D)})};
_.P.updateArrowButtonStatus=function(){var V=this.getRichItemRenderers().length;if(!_.c("web_rich_shelf_renderer_use_data_contents_killswitch")){var D,f;V=((D=this.data)==null?void 0:(f=D.contents)==null?void 0:f.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=V};
_.P.onChildElementFocus=function(V){this.hasChevronButtons&&(V=V.target.closest("#contents > *"),this.contents.contains(V)&&(V.offsetLeft<this.horizontalOffset?this.previousClick():V.offsetLeft+V.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.P.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.XB("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.P.updateHorizontalOffset=function(){var V=this.getRichItemRenderers(),D=V.length;if(!_.c("web_rich_shelf_renderer_use_data_contents_killswitch")){var f,n;D=((f=this.data)==null?void 0:(n=f.contents)==null?void 0:n.length)||0}var t;V=((t=V[0])==null?void 0:t.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>D?this.firstShownIndex=D-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*V};
_.P.isSlimMediaShelfRenderer=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!(_.g(n,_.r_V)||_.g(n,J_p)||_.g(n,_.zN)||_.g(n,dWl))};
_.P.isGameCardShelf=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!_.g(n,b8U)};
_.P.isGnomeShelf=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!_.g(n,_.NHl)};
_.P.isMiniGameCardShelf=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!_.g(n,BHF)||!!_.g(n,dmF)};
_.P.hasGameBoxArtAvatarStyle=function(){var V;return((V=this.data)==null?void 0:V.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.P.hasRoundedGameBoxArtAvatarStyle=function(){var V;return((V=this.data)==null?void 0:V.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.P.isShortsShelf=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!_.g(n,_.zN)||!!_.g(n,dWl)};
_.P.isPostShelfRenderer=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!(!_.g(n,nsU)&&!_.g(n,tPE))};
_.P.isLumiereShelf=function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc);return!!_.g(f==null?void 0:f.content,Kzl)};
_.P.isLumiereShelfWithPosters=function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc),n;return((n=_.g(f==null?void 0:f.content,Kzl))==null?void 0:n.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.isExpandOnHoverCardShelf=function(){var V,D,f,n=(f=_.g((V=this.data)==null?void 0:(D=V.contents)==null?void 0:D[0],_.vc))==null?void 0:f.content;return!!_.g(n,bgL)};
_.P.computeHasFeaturedBadge=function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.badges)==null?void 0:D[0],_.mMr);return f?f.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHasPaygatedFeaturedBadge=function(){var V,D,f=_.g((V=this.data)==null?void 0:(D=V.badges)==null?void 0:D[0],_.mMr);return f?(f==null?void 0:f.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHeaderHidden=function(){var V,D,f,n,t,J;return!((V=this.data)==null?0:V.icon)&&!((D=this.data)==null?0:D.title)&&!((f=this.data)==null?0:f.subtitle)&&!((n=this.data)==null?0:n.thumbnail)&&!((t=this.data)==null?0:t.badges)&&!((J=this.data)==null?0:J.menu)};
_.P.showCtaButton=function(){var V;return!((V=this.data)==null||!V.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.P.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.P.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.P.computeForce16By9ThumbnailAspectRatio=function(){var V,D;return((V=this.data)==null?void 0:(D=V.responsiveContainerConfiguration)==null?void 0:D.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.P.onSectionReactiveDismissal=function(V,D,f){var n,t;var J=(n=this.data)==null?void 0:(t=n.targetingContext)==null?void 0:t.targetGroupId;this&&J&&D.targetGroupId&&J.includes(D.targetGroupId)?(n=this.rowIndex,V=n===void 0?!1:!(D.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&n<=V)):V=!1;V&&(this.hidden=f)};
_.IG.Object.defineProperties(kX.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var V=this.elementsPerRow;this.isPostShelfRenderer()?V=this.postsPerRow:this.isSlimMediaShelfRenderer()?V=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?V=this.slimItemsPerRow-1:this.isGameCardShelf()?V=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(V=this.miniGameCardsPerRow);return V}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.c("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.previousButton)&&!((D=this.data)==null||!D.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 V;return((V=_.DY().resolve(_.xl).getCurrentPage())==null?void 0:V.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return!((V=this.data)==null?0:(D=V.thumbnail)==null?0:(f=D.accessibility)==null?0:(n=f.accessibilityData)==null?0:n.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
kX.prototype.onChildElementFocus=kX.prototype.onChildElementFocus;kX.prototype.handleRerenderDownloadsData=kX.prototype.handleRerenderDownloadsData;kX.prototype.onDataChange=kX.prototype.onDataChange;kX.prototype.onRowIndexChange=kX.prototype.onRowIndexChange;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.N0),_.p("design:type",Object)],kX.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],kX.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],kX.prototype,"ytdReduxBehavior",void 0);_.S([_.q({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.p("design:type",Object)],kX.prototype,"useResponsiveGrid",void 0);_.S([_.q(),_.p("design:type",Object)],kX.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Number)],kX.prototype,"standardUnitMinWidth",void 0);_.S([_.q({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],kX.prototype,"elementsPerRow",void 0);_.S([_.q({value:3}),_.p("design:type",Number)],kX.prototype,"postsPerRow",void 0);_.S([_.q({value:6}),_.p("design:type",Number)],kX.prototype,"slimItemsPerRow",void 0);_.S([_.q({value:6}),_.p("design:type",Number)],kX.prototype,"gameCardsPerRow",void 0);
_.S([_.q({value:6}),_.p("design:type",Number)],kX.prototype,"miniGameCardsPerRow",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"standardShelfMargins",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"isShowMoreHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"isExpanded",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"isInnerShelf",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.p("design:type",Boolean)],kX.prototype,"isShorts",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.p("design:type",Boolean)],kX.prototype,"isLumiere",void 0);_.S([_.q({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],kX.prototype,"hasBoxArtThumbnailStyle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],kX.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.p("design:type",Boolean)],kX.prototype,"hasFeaturedBadge",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.p("design:type",Boolean)],kX.prototype,"hasPaygatedFeaturedBadge",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.p("design:type",Boolean)],kX.prototype,"isHeaderHidden",void 0);_.S([_.q({selector:_.kNY}),_.p("design:type",Object)],kX.prototype,"allVideosCount",void 0);_.S([_.q({selector:XhX}),_.p("design:type",Object)],kX.prototype,"allPlaylistCount",void 0);_.S([_.q({selector:qCZ}),_.p("design:type",Object)],kX.prototype,"haveSmartDownloadsCompleted",void 0);
_.S([_.q({selectorArgs:["entitySelectorType"],selector:function(V,D){if(_.c("kevlar_modern_downloads_page")&&D&&D!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var f=V.entities;switch(D){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":D=_.sl(f);V=s1(D);var n=_.es(D);f=_.dg(f);f=_.Vc(dbX(n,f,D.length));return{contents:V,subtitle:f};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return f=_.sl(f),{contents:s1(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return f=
_.BR(f),{contents:s1(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return f=_.nBY(f),{contents:s1(f)};default:_.zP(new _.cI("Error: entitySelectorType defined but not matched in selector.",V,D))}}}}),
_.p("design:type",Object)],kX.prototype,"entityDrivenRichShelfData",void 0);_.S([_.q({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],kX.prototype,"hasTopCtaButton",void 0);_.S([_.q({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],kX.prototype,"hasBottomCtaButton",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.p("design:type",Boolean)],kX.prototype,"force16By9ThumbnailAspectRatio",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"isShowLessHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kX.prototype,"restrictContentsOverflow",void 0);_.S([_.q({selector:_.ePU}),_.p("design:type",Boolean)],kX.prototype,"inlinePreviewIsEnabled",void 0);
_.S([_.q({computed:"computeSizing(data)"}),_.p("design:type",String)],kX.prototype,"sizing",void 0);_.S([_.q(),_.p("design:type",Boolean)],kX.prototype,"typographyBump",void 0);_.S([_.q(),_.p("design:type",Number)],kX.prototype,"itemWidth",void 0);_.S([_.q(),_.p("design:type",Object)],kX.prototype,"firstShownIndex",void 0);_.S([_.q(),_.p("design:type",Object)],kX.prototype,"horizontalOffset",void 0);_.S([_.q(),_.p("design:type",Object)],kX.prototype,"atEnd",void 0);
_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],kX.prototype,"contents",void 0);_.S([_.KI("data.rowIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kX.prototype,"onRowIndexChange",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kX.prototype,"onDataChange",null);
_.S([_.KI("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kX.prototype,"handleRerenderDownloadsData",null);_.S([_.bU("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],kX.prototype,"onChildElementFocus",null);_.S([_.q({reflectToAttribute:!0}),_.R("data","isHomePage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kX.prototype,"isTruncated",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kX.prototype,"hideBottomDivider",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],kX.prototype,"hasChevronButtons",null);_.S([_.R("firstShownIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],kX.prototype,"previousButtonOverride",null);
_.S([_.R("atEnd"),_.p("design:type",Object),_.p("design:paramtypes",[])],kX.prototype,"nextButtonOverride",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kX.prototype,"isHomePage",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kX.prototype,"thumbnailAriaHidden",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kX.prototype,"initiallyIsExpanded",null);
_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],kX.prototype,"entitySelectorType",null);_.S([_.a({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],kX);
_.Rb6=_.o5()(kX,"ytd-rich-shelf-renderer",function(){if(zbP===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);zbP=V}V=zbP;return V},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var CDP;_.fT(waY,"yt-slimline-survey-view-model",{props:{data:_.WX}});var s$=function(){var V=_.E.apply(this,arguments)||this;V.tileLottieAnimationRef={};V.backgroundLottieAnimationRef={};V.isOnHoverBehaviorForLottieEnabled=!0;V.useBiggerShowcaseImage=_.c("enable_desktop_search_bigger_thumbs");V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return V};
_.v(s$,_.E);_.P=s$.prototype;_.P.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.P.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"}}}};
_.P.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var V=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);V!==this.hasTile&&this.set("hasTile",V);V=this.hasLogo(this.data)||!!this.data.badgeText;V!==this.hasMetadata&&this.set("hasMetadata",V);V=this.data.overflowButton?!1:V;V!==this.showLogoImage&&this.set("showLogoImage",V);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.P.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.P.currentColorChanged=function(){this.updateButtonPalette()};
_.P.computeBackgroundStyle=function(V){if(V&&this.data){var D=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.tI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&D.push('background-image: url("'+f+'");')}var n;((n=V.basicColorData)==null?void 0:n.backgroundColor)!==void 0&&D.push("background-color: "+_.aB(V.basicColorData.backgroundColor)+";");return D.join("")}};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V)};
_.P.getCurrentLogo=function(V,D){if(V)return D?V.darkLogoImage:V.lightLogoImage};
_.P.getCurrentStaticTileImage=function(V,D){if(this.hasStaticTile(V))return V.darkTileImage?D?V.darkTileImage:V.tileImage:V.tileImage};
_.P.computeTitleStyle=function(V){if(this.data&&this.data.title&&V&&V.basicColorData&&V.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.AP(V.basicColorData.foregroundTitleColor)+";"};
_.P.computeSubtitleStyle=function(V){if(this.data&&this.data.subtitle&&V&&V.basicColorData&&V.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.AP(V.basicColorData.foregroundBodyColor)+";"};
_.P.computeSupplementalStyle=function(V){if(this.data&&this.data.supplementalText&&V&&V.supplementalTextColor!==void 0)return V=_.AP(V.supplementalTextColor),"color:"+V+";--yt-endpoint-color:"+V+";--yt-endpoint-hover-color:"+V+";--yt-endpoint-visited-color:"+V+";--yt-formatted-string-bold-font-weight:700;"};
_.P.computeBadgeStyle=function(V){if(this.data&&this.data.badgeText&&V&&V.basicColorData&&V.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.AP(V.basicColorData.foregroundActivatedColor)+";"};
_.P.computeDismissIconStyle=function(V){var D,f;if((V==null?0:(D=V.dismissButtonColorData)==null?0:D.foregroundTitleColor)&&(V==null?0:(f=V.dismissButtonColorData)==null?0:f.backgroundColor))return"--yt-button-color:"+_.aB(V.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aB(V.dismissButtonColorData.backgroundColor)+";"};
_.P.computeOverflowIconStyle=function(V){var D,f;if((V==null?0:(D=V.dismissButtonColorData)==null?0:D.foregroundTitleColor)&&(V==null?0:(f=V.dismissButtonColorData)==null?0:f.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.aB(V.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aB(V.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.aB(V.dismissButtonColorData.foregroundTitleColor)+";"};
_.P.computeBannerStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeLocation=function(V){switch(V==null?void 0:V.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.P.shouldShowTileSection=function(V,D,f){return!this.shouldExpandLogo(V,D,f)&&D};
_.P.shouldShowExpandedLogoSection=function(V,D,f){return this.shouldExpandLogo(V,D,f)&&V!==void 0&&this.hasLogo(V)};
_.P.shouldExpandLogo=function(V,D,f){return V&&D?!1:f>=2};
_.P.hasStaticTile=function(V){return!(V==null||!V.tileImage)};
_.P.hasTileLottie=function(V){var D;return!!(V==null?0:(D=V.tileLottie)==null?0:D.url)};
_.P.hasLogo=function(V){return this.getCurrentLogo(V,this.isDarkTheme)!==void 0};
_.P.getLogoHeight=function(V){return this.logoWithPadding(V)?"26":"20"};
_.P.getExpandedLogoHeight=function(V){return this.logoWithPadding(V)?"31":"24"};
_.P.getLogoImageId=function(V){return this.logoWithPadding(V)?"logo-image-with-padding":"logo-image"};
_.P.hasBackgroundLottie=function(V){var D;return!!(V==null?0:(D=V.backgroundLottie)==null?0:D.url)};
_.P.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var V,D;(V=this.tileLottieAnimationRef)==null||(D=V.lottieEl)==null||D.play();var f,n;(f=this.backgroundLottieAnimationRef)==null||(n=f.lottieEl)==null||n.play()}};
_.P.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var V,D;(V=this.tileLottieAnimationRef)==null||(D=V.lottieEl)==null||D.pause();var f,n;(f=this.backgroundLottieAnimationRef)==null||(n=f.lottieEl)==null||n.pause()}};
_.P.pauseLottie=function(){var V,D;(V=this.tileLottieAnimationRef)==null||(D=V.lottieEl)==null||D.pause();var f,n;(f=this.backgroundLottieAnimationRef)==null||(n=f.lottieEl)==null||n.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.P.performPrimaryButtonAction=function(){var V,D,f;((V=this.data)==null?0:(D=V.primaryButton)==null?0:(f=D.buttonRenderer)==null?0:f.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.P.updateButtonPalette=function(){if(this.data&&this.currentColorData){var V;((V=this.data.dismissButton)==null?0:V.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 D;if((D=this.data.primaryButton)==null?0:D.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 f;if((f=this.data.secondaryButton)==
null?0:f.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 n;((n=this.data.primaryButton)==null?0:n.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var t;((t=this.data.secondaryButton)==null?0:t.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.P.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var V=this.getTileLottieDataBasedOnTheme(),D,f;if(V.url!==((D=this.tileLottiePlayerProps)==null?void 0:(f=D.animationConfig)==null?void 0:f.path)){var n,t;(n=this.tileLottieAnimationRef)==null||(t=n.lottieEl)==null||t.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=V.settings)==null?0:J.autoplay);var H,Q;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(Q=(H=V.settings)==null?void 0:H.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(V.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof V.url==="string"?this.tileLottiePlayerProps.animationConfig.path=V.url:this.tileLottiePlayerProps.animationConfig.animationData=V.url}}};
_.P.getOverflowButton=function(V){return _.g(V.overflowButton,RNU)};
_.P.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var V=this.getBackgroundLottieDataBasedOnTheme(),D,f;if(V.url!==((D=this.backgroundLottiePlayerProps)==null?void 0:(f=D.animationConfig)==null?void 0:f.path)){var n,t;(n=this.backgroundLottieAnimationRef)==null||(t=n.lottieEl)==null||t.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=V.settings)==null?0:J.autoplay);var H,Q;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(Q=(H=V.settings)==null?void 0:H.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(V.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof V.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=V.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
V.url}}};
_.P.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var V;((V=this.tileLottieAnimationRef)==null?void 0:V.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var D;((D=this.backgroundLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.P.getTileLottieDataBasedOnTheme=function(){var V;if(this.isDarkTheme&&((V=this.data)==null?0:V.darkThemeTileLottie))return this.data.darkThemeTileLottie;var D;return((D=this.data)==null?0:D.tileLottie)?this.data.tileLottie:{}};
_.P.getBackgroundLottieDataBasedOnTheme=function(){var V;if(this.isDarkTheme&&((V=this.data)==null?0:V.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var D;return((D=this.data)==null?0:D.backgroundLottie)?this.data.backgroundLottie:{}};
_.P.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
_.P.getLottieLoopValue=function(V){return V?V.loop!==void 0?V.loop:V.loopCount?V.loopCount-1:!0:!0};
_.P.logoWithPadding=function(V){var D,f,n;return(V=(D=this.getCurrentLogo(V,this.isDarkTheme))==null?void 0:(f=D.thumbnails)==null?void 0:(n=f[0])==null?void 0:n.height)&&V%31===0?!0:!1};
s$.prototype.currentColorChanged=s$.prototype.currentColorChanged;s$.prototype.themeChanged=s$.prototype.themeChanged;s$.prototype.dataChanged=s$.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],s$.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],s$.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],s$.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"primaryButton",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"secondaryButton",void 0);
_.S([_.q({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],s$.prototype,"elementsPerRow",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],s$.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],s$.prototype,"hasTile",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],s$.prototype,"hasMetadata",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],s$.prototype,"showLogoImage",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"currentColorData",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.p("design:type",String)],s$.prototype,"bannerStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.p("design:type",String)],s$.prototype,"location",void 0);
_.S([_.q(),_.p("design:type",Object)],s$.prototype,"tileLottiePlayerProps",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"tileLottieAnimationRef",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"backgroundLottiePlayerProps",void 0);_.S([_.q(),_.p("design:type",Object)],s$.prototype,"backgroundLottieAnimationRef",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],s$.prototype,"useBiggerShowcaseImage",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],s$.prototype,"isHideEnclosingAction",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s$.prototype,"dataChanged",null);_.S([_.eY("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s$.prototype,"themeChanged",null);
_.S([_.eY("currentColorData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s$.prototype,"currentColorChanged",null);_.S([_.a({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],s$);
_.Y(s$,"ytd-statement-banner-renderer",function(){if(CDP!==void 0)return CDP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CDP=V},{mode:1});var qvl;var Bp=function(){var V=_.E.apply(this,arguments)||this;V.isSearch=!1;V.hideShelfHeader=!1;V.engagementPanel=!1;V.disableMouseScroll=!0;V.useFloorScrolling=!0;V.modernTypography=_.c("web_modern_typography");return V};
_.v(Bp,_.E);Bp.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Zl("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Zl("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Bp.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Bp.prototype.onDataChanged=Bp.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Bp.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bp.prototype,"hideShelfHeader",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bp.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Object)],Bp.prototype,"disableMouseScroll",void 0);_.S([_.q(),_.p("design:type",Object)],Bp.prototype,"useFloorScrolling",void 0);_.S([_.q(),_.p("design:type",Object)],Bp.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Bp.prototype,"modernTypography",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bp.prototype,"onDataChanged",null);_.S([_.a({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Bp);
_.Y(Bp,"ytd-reel-shelf-renderer",function(){if(qvl!==void 0)return qvl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qvl=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var X0o;var EQl=_.MA(function(V){var D=V.data;V=V.useSmallFont;var f={},n={};return _.K("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.K(_.e,{cond:function(){return D().favicon},
then:function(t){return _.K(_.xt,{data:t,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.K("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.K(_.Ow,{text:function(){return D().title},
className:_.KT("yt-channel-external-link-view-model-wiz__title",(f["yt-channel-external-link-view-model-wiz__title--title-small-font"]=V,f)),ellipsisTruncate:!0,userInput:!0}),_.K(_.Ow,{text:function(){return D().link},
className:_.KT("yt-channel-external-link-view-model-wiz__link",(n["yt-channel-external-link-view-model-wiz__link--link-small-font"]=V,n)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Nb");
EQl.idomCompat=!0;_.fT(EQl,"yt-channel-external-link-view-model",{props:{data:_.WX,useSmallFont:_.WX}});_.zk("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var dJ=function(){var V=_.E.apply(this,arguments)||this;V.revealButtonClass="button";V.businessEmailDisplayState="HIDE_SECTION";return V};
_.v(dJ,_.E);_.P=dJ.prototype;_.P.refit=function(){var V=this;_.aU(function(){_.JR(V.hostElement,"yt-refit-popups-action")});
_.pO(this,function(){_.JR(V.hostElement,"yt-refit-popups-action")})};
_.P.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.EX("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.P.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"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.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"}}}};
_.P.computeEmailHref=function(V){return"mailto:"+V};
_.P.computeSafeUrl=function(V){if(V)return _.cS(V)};
_.P.linkEndpoint=function(V){return _.g(V.onTap,_.q3)};
_.P.linkEndpointToHref=function(V){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(V))};
_.P.onYtServiceRequestCompleted=function(V){var D;if((D=V.detail.data)==null?0:D.businessEmail)this.businessEmail=V.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=V.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=V.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var V=this.JSC$14261_captchaTextarea.value;if(V){V={recaptcha_response_token:V,channel_id:this.metadata.channelId};var D=_.g(this.metadata.onBusinessEmailRevealClickCommand,_.q3);D&&this.ytComponentBehavior.resolveCommand(D,{form:V})}}};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.IG.Object.defineProperties(dJ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var V;return _.g((V=this.data)==null?void 0:V.metadata,lXP)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.businessEmailRevealButton,_.cW)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var V=new URL(this.metadata.canonicalChannelUrl);return V.host+V.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.learnMoreOnTap,_.q3)}}});
dJ.prototype.onYtServiceRequestCompleted=dJ.prototype.onYtServiceRequestCompleted;dJ.prototype.businessEmailMetadataChanged=dJ.prototype.businessEmailMetadataChanged;dJ.prototype.refit=dJ.prototype.refit;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],dJ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],dJ.prototype,"JSC$14261_captchaTextarea",void 0);_.S([_.q(),_.p("design:type",Object)],dJ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],dJ.prototype,"revealButtonClass",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],dJ.prototype,"metadata",null);
_.S([_.R("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],dJ.prototype,"revealButton",null);_.S([_.R("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],dJ.prototype,"channelDisplayUrl",null);_.S([_.eY("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dJ.prototype,"refit",null);_.S([_.R("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],dJ.prototype,"formattedDescription",null);
_.S([_.R("metadata","learnMoreCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dJ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.S([_.R("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],dJ.prototype,"learnMoreCommand",null);_.S([_.q(),_.p("design:type",String)],dJ.prototype,"businessEmailDisplayState",void 0);_.S([_.q(),_.p("design:type",String)],dJ.prototype,"businessEmail",void 0);
_.S([_.q(),_.p("design:type",String)],dJ.prototype,"businessEmailErrorMessage",void 0);_.S([_.eY("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dJ.prototype,"businessEmailMetadataChanged",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dJ.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],dJ);
_.Y(dJ,"ytd-about-channel-renderer",function(){if(X0o!==void 0)return X0o;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return X0o=V},{mode:1});var Amo;var ur=function(){return _.E.apply(this,arguments)||this};
_.v(ur,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ur.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],ur);
_.Y(ur,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Amo!==void 0)return Amo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Amo=V},{mode:1});var azl;var NO=function(){return _.E.apply(this,arguments)||this};
_.v(NO,_.E);NO.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],NO.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],NO.prototype,"aligment",void 0);_.S([_.a({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],NO);
_.Y(NO,"ytd-channel-list-sub-menu-renderer",function(){if(azl!==void 0)return azl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return azl=
V},{mode:1});var Yvo;var mZ=function(){return _.E.apply(this,arguments)||this};
_.v(mZ,_.E);mZ.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mZ.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],mZ);
_.Y(mZ,"ytd-channel-sub-menu-renderer",function(){if(Yvo!==void 0)return Yvo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Yvo=V},{mode:1});var $$p;var isH;var zi=function(){var V=_.E.apply(this,arguments)||this;V.isCompact=!1;return V};
_.v(zi,_.E);_.IG.Object.defineProperties(zi.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var V,D;return((D=_.g((V=this.data)==null?void 0:V.endpoint,_.a2))==null?void 0:D.target)==="TARGET_NEW_WINDOW"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],zi.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zi.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],zi.prototype,"isCompact",void 0);_.S([_.R("isCompact"),_.p("design:type",Number),_.p("design:paramtypes",[])],zi.prototype,"thumbnailWidth",null);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zi.prototype,"openNewWindow",null);_.S([_.a({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],zi);
_.Y(zi,"ytd-media-lockup-renderer",function(){if(isH!==void 0)return isH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return isH=V},{mode:1});var SvH;var R_=function(){return _.E.apply(this,arguments)||this};
_.v(R_,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],R_.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],R_.prototype,"data",void 0);_.S([_.a({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],R_);
_.Y(R_,"ytd-structured-description-channel-lockup-renderer",function(){if(SvH!==void 0)return SvH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return SvH=V},{mode:1});var Wdr;var CF=function(){var V=_.E.apply(this,arguments)||this;V.isCompact=!1;V.collections=_.c("web_modern_collections_v2");V.collectionsStackColor=_.c("modernize_structured_description_playlist_lockups_v2");return V};
_.v(CF,_.E);CF.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:_.c("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.IG.Object.defineProperties(CF.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(V=this.data)==null?void 0:(D=V.thumbnail)==null?void 0:D.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(f=this.data)==null?void 0:(n=f.thumbnail)==null?void 0:n.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(J=t.thumbnail)==
null?void 0:J.vibrantColorPalette:void 0}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],CF.prototype,"componentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CF.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],CF.prototype,"showSidePanelThumbnailOverlay",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],CF.prototype,"isCompact",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],CF.prototype,"collections",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],CF.prototype,"collectionsStackColor",void 0);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],CF.prototype,"twoLineTitle",null);
_.S([_.R("data","collections","collectionsStackColor"),_.p("design:type",Object),_.p("design:paramtypes",[])],CF.prototype,"collectionStack",null);_.S([_.a({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],CF);
_.Y(CF,"ytd-structured-description-playlist-lockup-renderer",function(){if(Wdr!==void 0)return Wdr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Wdr=V},{mode:1});var p0U;var qO=function(){return _.E.apply(this,arguments)||this};
_.v(qO,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],qO.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qO.prototype,"data",void 0);_.S([_.a({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],qO);
_.Y(qO,"ytd-structured-description-video-lockup-renderer",function(){if(p0U!==void 0)return p0U;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return p0U=V},{mode:2});var Xp=function(){return _.E.apply(this,arguments)||this};
_.v(Xp,_.E);
Xp.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xp.prototype,"data",void 0);_.S([_.a({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Xp);
_.Y(Xp,"ytd-compact-infocard-renderer",function(){if($$p!==void 0)return $$p;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return $$p=V},{mode:1});var Ld6;var E$=function(){var V=_.E.apply(this,arguments)||this;V.useModernCollectionsV2=_.c("web_modern_collections_v2");return V};
_.v(E$,_.E);E$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.IG.Object.defineProperties(E$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],E$.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],E$.prototype,"ytdReduxBehavior",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],E$.prototype,"isGridViewEnabled",void 0);
_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],E$.prototype,"watchFeedBigThumbs",null);_.S([_.R("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"168"}),_.p("design:type",String),_.p("design:paramtypes",[])],E$.prototype,"thumbnailWidth",null);_.S([_.R("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"94"}),_.p("design:type",String),_.p("design:paramtypes",[])],E$.prototype,"customThumbnailSize",null);
_.S([_.q(),_.p("design:type",Object)],E$.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],E$.prototype,"useModernCollectionsV2",void 0);_.S([_.a({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],E$);
_.Y(E$,"ytd-compact-playlist-renderer",function(){if(Ld6!==void 0)return Ld6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Ld6=V},{mode:1});var IzU;var Ad=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.roundedContainer=!0;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return V};
_.v(Ad,_.E);_.P=Ad.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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"}}}};
_.P.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.P.computeViewStyle=function(V){return V.style?V.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.P.onUpdateElementsPerRowAction=function(V){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&V===1};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
Ad.prototype.dataChanged=Ad.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Ad.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Ad.prototype,"actionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Ad.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ad.prototype,"hideThumbnail",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.p("design:type",String)],Ad.prototype,"viewStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ad.prototype,"darkerDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ad.prototype,"roundedContainer",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ad.prototype,"dataChanged",null);_.S([_.a({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Ad);
_.Y(Ad,"ytd-compact-promoted-item-renderer",function(){if(IzU!==void 0)return IzU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IzU=V},{mode:1});var Osr;var a_=function(){var V=_.E.apply(this,arguments)||this;V.collections=_.c("web_modern_collections_v2");return V};
_.v(a_,_.E);a_.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
a_.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
a_.prototype.onYtNavigate=function(V,D){var f=this;if(D.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",D)){var n=this.get("watchEndpoint.videoId",D.endpoint),t=_.JR(this.hostElement,"yt-get-current-video-id-action")[0];_.c("kevlar_mix_handle_first_endpoint_different")&&n&&t&&n!==t||(V.stopPropagation(),_.Uo().getPlayerPromise().then(function(J){if(J.getPlayerState()===0&&f.data.secondaryNavigationEndpoint)var H=f.data.secondaryNavigationEndpoint;else{H=
Object.assign({},D.endpoint);var Q=_.g(H.commandMetadata,_.he);Q&&(J=Math.floor(J.getCurrentTime()),Q.url=_.I9(Q.url,{t:J}),!_.c("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(Q=_.g(H,_.pl)))&&(Q.startTimeSeconds=J)}_.PA(f.hostElement,"yt-navigate",{endpoint:H})}))}};
_.IG.Object.defineProperties(a_.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(D=V.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(n=f.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(J=t.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
a_.prototype.onYtNavigate=a_.prototype.onYtNavigate;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],a_.prototype,"ytEndpointBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],a_.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.E_),_.p("design:type",Object)],a_.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],a_.prototype,"isGridViewEnabled",void 0);_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],a_.prototype,"watchFeedBigThumbs",null);
_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],a_.prototype,"thumbnailWidth",null);_.S([_.q(),_.p("design:type",Object)],a_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],a_.prototype,"collections",void 0);_.S([_.R("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],a_.prototype,"collectionStack",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],a_.prototype,"onYtNavigate",null);_.S([_.a({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],a_);
_.Y(a_,"ytd-compact-radio-renderer",function(){if(Osr!==void 0)return Osr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Osr=V},{mode:1});var x$H;var YX=function(){return _.E.apply(this,arguments)||this};
_.v(YX,_.E);YX.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
YX.prototype.computeRendererStyle=function(V){return V.style?V.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.S([_.q(),_.p("design:type",Object)],YX.prototype,"data",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],YX.prototype,"rendererBehavior",void 0);_.S([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],YX.prototype,"rendererStyle",void 0);_.S([_.a({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],YX);
_.Y(YX,"ytd-compact-text-promo-renderer",function(){if(x$H!==void 0)return x$H;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return x$H=V},{mode:1});var MxY;var $X=function(){var V=_.E.apply(this,arguments)||this;V.isShortsStyle=!1;return V};
_.v($X,_.E);_.P=$X.prototype;_.P.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"}}}};
_.P.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.PA(this.hostElement,"yt-disable-lockup-interaction"):_.PA(this.hostElement,"yt-enable-lockup-interaction"))};
_.P.isMetaBlockEmpty=function(V){return!V||!V.longBylineText&&!V.shortBylineText&&!V.shortViewCountText&&!V.viewCountText};
_.P.computeHasOneLineTitle=function(V){return this.forceOneLineTitle||!(V==null||!V.buttons)};
_.P.computeDisableInteraction=function(){var V;return!((V=this.data)==null?0:V.navigationEndpoint)};
_.P.hasSingularTopStandaloneBadge=function(){var V;return!((V=this.data)==null||!V.topStandaloneBadge)};
_.IG.Object.defineProperties($X.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("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 V;return this.hasSingularTopStandaloneBadge()?[(V=this.data)==null?void 0:V.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var V;return this.shouldShowTopBadges?((V=this.data)==null?void 0:V.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
$X.prototype.disableInteractionChanged=$X.prototype.disableInteractionChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],$X.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],$X.prototype,"ytdLockupBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.p("design:type",Boolean)],$X.prototype,"metaBlockEmpty",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],$X.prototype,"isGridViewEnabled",void 0);_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$X.prototype,"watchFeedBigThumbs",null);
_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],$X.prototype,"thumbnailWidth",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$X.prototype,"isShortsStyle",void 0);_.S([_.q(),_.p("design:type",Object)],$X.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.p("design:type",Boolean)],$X.prototype,"hasOneLineTitle",void 0);
_.S([_.q(),_.p("design:type",Boolean)],$X.prototype,"hideThumbnail",void 0);_.S([_.q(),_.p("design:type",Boolean)],$X.prototype,"forceOneLineTitle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.p("design:type",Boolean)],$X.prototype,"disableInteraction",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],$X.prototype,"musicMetadataVideoLockup",void 0);
_.S([_.KI("disableInteraction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$X.prototype,"disableInteractionChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$X.prototype,"shouldShowTopBadges",null);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],$X.prototype,"topBadges",null);
_.S([_.R("shouldShowTopBadges","data"),_.p("design:type",Array),_.p("design:paramtypes",[])],$X.prototype,"inlineMetadataBadges",null);_.S([_.R("shouldShowTopBadges"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],$X.prototype,"shouldShowBadgesBelowMetadata",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$X.prototype,"compactTitleClass",null);_.S([_.a({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],$X);
_.Y($X,"ytd-compact-video-renderer",function(){if(MxY!==void 0)return MxY;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return MxY=V},{mode:_.J2("kevlar_poly_si_batch_j067")?1:2});var hbV;_.zk("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var ir=function(){return _.E.apply(this,arguments)||this};
_.v(ir,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ir.prototype,"data",void 0);_.S([_.a({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],ir);
_.Y(ir,"ytd-counterfactual-renderer",function(){if(hbV!==void 0)return hbV;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hbV=V},{mode:1});var U$E;var Sf=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;return V};
_.v(Sf,_.E);Sf.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.DY().resolve(_.fH).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Sf.prototype.computeHidden=function(V){return!!V};
_.IG.Object.defineProperties(Sf.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}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sf.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.p("design:type",Object)],Sf.prototype,"hidden",void 0);_.S([_.R("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],Sf.prototype,"label",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sf.prototype,"value",null);
_.S([_.a({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Sf);
_.Y(Sf,"ytd-dropdown-item-renderer",function(){if(U$E!==void 0)return U$E;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return U$E=V},{mode:1});var VVF;var Djp;var Wp=function(){return _.E.apply(this,arguments)||this};
_.v(Wp,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Wp.prototype,"data",void 0);_.S([_.q({computed:"getSimpleString(data.label)"}),_.p("design:type",String)],Wp.prototype,"label",void 0);_.S([_.a({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Wp);
_.Y(Wp,"ytd-navigation-dropdown-item-renderer",function(){if(Djp!==void 0)return Djp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Djp=V},{mode:1});var pF=function(){var V=_.E.apply(this,arguments)||this;V.disabled=!1;V.value="";V.noLabelFloat=!1;V.noUnderline=!1;V.usePrimaryColor=!1;V.hasBackground=!1;V.verticalAlign="top";V.autosize=!1;V.minAutosizeWidth=100;V.autosizeFont="14px Roboto";return V};
_.v(pF,_.E);_.P=pF.prototype;_.P.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"}}}};
_.P.open=function(){this.inputEl.open()};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.P.dataChanged=function(){this.reset()};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("value-changed",this.value))};
_.P.stopPropagation=function(V){V.stopPropagation()};
_.P.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var V=this.canvas.getContext("2d");V&&(V.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(V.measureText(this.inputEl.value).width)+24)+"px")}};
_.P.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var V=0,D=this.data.entries.length;V<D;V++){var f=this.data.entries[V],n;for(n in f)if(f.hasOwnProperty(n)){var t=f[n];if("isSelected"in t&&t.isSelected)return"stringValue"in t?t.stringValue||"":"int32Value"in t?t.int32Value||0:0}}return null};
_.P.updateValueFromBinding=function(V){this.value=V.detail.value};
_.IG.Object.defineProperties(pF.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 V=0,D=this.data.entries.length;V<D;V++){var f=this.data.entries[V],n;for(n in f)if(f.hasOwnProperty(n)){var t=f[n];if("isSelected"in t&&t.isSelected&&"label"in t)return this.ytRendererBehavior.getSimpleString(t.label)}}return null}}});
pF.prototype.autoSizeLabel=pF.prototype.autoSizeLabel;pF.prototype.stopPropagation=pF.prototype.stopPropagation;pF.prototype.valueChangedForBinding=pF.prototype.valueChangedForBinding;pF.prototype.dataChanged=pF.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pF.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],pF.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pF.prototype,"disabled",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"value",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"noLabelFloat",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pF.prototype,"noUnderline",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],pF.prototype,"theme",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pF.prototype,"usePrimaryColor",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pF.prototype,"hasBackground",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"verticalAlign",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"autosize",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"minAutosizeWidth",void 0);_.S([_.q(),_.p("design:type",Object)],pF.prototype,"autosizeFont",void 0);
_.S([_.Zv("#entries"),_.p("design:type",Object)],pF.prototype,"entries",void 0);_.S([_.Zv("#input"),_.p("design:type",Object)],pF.prototype,"inputEl",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pF.prototype,"dataChanged",null);_.S([_.eY("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pF.prototype,"valueChangedForBinding",null);
_.S([_.bU("iron-overlay-opened"),_.bU("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pF.prototype,"stopPropagation",null);_.S([_.bU("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pF.prototype,"autoSizeLabel",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],pF.prototype,"label",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],pF);
_.Y(pF,"ytd-dropdown-renderer",function(){if(VVF!==void 0)return VVF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VVF=V},{mode:1});var fKL;var LF=function(){var V=_.E.apply(this,arguments)||this;V.isConstrainedList=!1;return V};
_.v(LF,_.E);LF.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"}}}};
LF.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
LF.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
LF.prototype.computeViewAllHidden=function(V,D){return V||!D.viewAllEndpoint};
LF.prototype.fillRestIfNoShowMore=LF.prototype.fillRestIfNoShowMore;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],LF.prototype,"ytLazyListBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LF.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LF.prototype,"isConstrainedList",void 0);_.S([_.eY("data","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LF.prototype,"fillRestIfNoShowMore",null);_.S([_.a({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],LF);
_.Y(LF,"ytd-expanded-shelf-contents-renderer",function(){if(fKL!==void 0)return fKL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fKL=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var nZF;var I_=function(){return _.E.apply(this,arguments)||this};
_.v(I_,_.E);I_.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],I_.prototype,"data",void 0);_.S([_.a({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],I_);
_.Y(I_,"ytd-feed-channel-filter-header-renderer",function(){if(nZF!==void 0)return nZF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return nZF=V},{mode:1});var tVl;var PxY;var oZF;var O$=function(){return _.E.apply(this,arguments)||this};
_.v(O$,_.E);_.P=O$.prototype;_.P.onClick=function(V){var D,f=(D=this.data)==null?void 0:D.sectionEndpoint;!_.It(_.Os(V),this.hostElement,["A".toString()])&&f&&_.PA(this.hostElement,"yt-navigate",{endpoint:f})};
_.P.computeHasSectionEndpoint=function(V){return(V==null?void 0:V.sectionEndpoint)!==void 0};
_.P.computeShowHeaderAsLink=function(V){return(V==null?void 0:V.header)!==void 0&&(V==null?void 0:V.sectionEndpoint)!==void 0};
_.P.computeShowSubheaderAsLink=function(V){return(V==null?void 0:V.subheader)!==void 0&&(V==null?void 0:V.sectionEndpoint)!==void 0&&(V==null?void 0:V.header)===void 0};
_.P.getHeaderAsLinkClass=function(V){var D=[],f;(V==null?0:(f=V.headerIcon)==null?0:f.iconType)&&D.push("header-link-active");return D.join(" ")};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],O$.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],O$.prototype,"data",void 0);
_.S([_.q({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],O$.prototype,"hasSectionEndpoint",void 0);_.S([_.q({computed:"computeShowHeaderAsLink(data)"}),_.p("design:type",Boolean)],O$.prototype,"showHeaderAsLink",void 0);_.S([_.q({computed:"computeShowSubheaderAsLink(data)"}),_.p("design:type",Boolean)],O$.prototype,"showSubheaderAsLink",void 0);_.S([_.a({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],O$);
_.Y(O$,"ytd-medical-panel-section-renderer",function(){if(oZF!==void 0)return oZF;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return oZF=V},{mode:1});var xX=function(){var V=_.E.apply(this,arguments)||this;V.isExpanded=!1;V.roundedContainer=!0;V.skipRoundingTop=!1;V.toggleExpandableSection=function(){V.isExpanded=!V.isExpanded};
return V};
_.v(xX,_.E);
xX.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]]"}}}}}};
xX.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
xX.prototype.dataChanged=xX.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xX.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],xX.prototype,"isExpanded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xX.prototype,"roundedContainer",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xX.prototype,"skipRoundingTop",void 0);_.S([_.q(),_.p("design:type",Object)],xX.prototype,"toggleExpandableSection",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xX.prototype,"dataChanged",null);_.S([_.a({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],xX);
_.Y(xX,"ytd-medical-panel-content-renderer",function(){if(PxY!==void 0)return PxY;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return PxY=V},{mode:1});_.zk("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var MO=function(){var V=_.E.apply(this,arguments)||this;V.roundedContainer=!0;V.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");V.hasTitle=!1;V.linkIcon="OPEN_IN_NEW";V.isDismissed=!1;return V};
_.v(MO,_.E);
MO.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"}}}};
MO.prototype.computeHasTitle=function(V){return!(V==null||!V.title)};
MO.prototype.onClick=function(V){var D,f=(D=this.data)==null?void 0:D.headerEndpoint;!_.It(_.Os(V),this.hostElement,["BUTTON".toString()])&&f&&this.ytComponentBehavior.resolveCommand(f)};
_.IG.Object.defineProperties(MO.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 V;return((V=this.data)==null?void 0:V.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.disableBottomDivider)||!((D=this.data)==null?0:D.title)}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],MO.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],MO.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MO.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MO.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],MO.prototype,"amsterdamEnabled",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Object)],MO.prototype,"hasTitle",void 0);
_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],MO.prototype,"background",null);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],MO.prototype,"titleStyle",null);
_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],MO.prototype,"showLinkIcon",null);_.S([_.q(),_.p("design:type",String)],MO.prototype,"linkIcon",void 0);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],MO.prototype,"hideDivider",null);
_.S([_.q({selectorArgs:["data.dismissStateEntityKey"],selector:function(V,D){V=_.wg(V.entities,"dismissState",D);return(V==null?void 0:V.isDismissed)||(V==null?void 0:V.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(V==null?void 0:V.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.p("design:type",Object)],MO.prototype,"isDismissed",void 0);_.S([_.a({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],MO);
_.Y(MO,"ytd-info-panel-container-renderer",function(){if(tVl!==void 0)return tVl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return tVl=V},{mode:1});var Jjp;_.zk("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var hd=function(){var V=_.E.apply(this,arguments)||this;V.modernTypography=_.c("web_modern_typography");return V};
_.v(hd,_.E);hd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hd.prototype.computeStyle=function(V){return V?V:""};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hd.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.p("design:type",String)],hd.prototype,"titleStyle",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hd.prototype,"modernTypography",void 0);_.S([_.a({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],hd);
_.Y(hd,"ytd-item-section-header-renderer",function(){if(Jjp!==void 0)return Jjp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Jjp=V},{mode:1});var rjV;var HPU,wPF=function(){return HPU!==void 0?HPU:HPU=document.createElement("template")};
document.head.appendChild(wPF().content);var QS6;_.U$=new _.IH("VOTING_ANIMATION_CONTROLLER_TOKEN");var bPY=_.MA(function(V){var D=V.data;var f=_.W2("div"),n=_.W2("div");V=_.r(_.HJ("VOTE_STATUS_NONE",void 0,"FVF7mc"));var t=V.next().value,J=V.next().value,H=_.KX(A1Z,function(){var G;return(G=D())==null?void 0:G.entityKey}),Q=_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation");
_.Nl(function(){var G;((G=D().initialState)==null?0:G.status)&&J(D().initialState.status)});
var T=function(){var G,F,k=(F=(G=D().initialState)==null?void 0:G.votes)!=null?F:0,d;G=(d=D().initialState)==null?void 0:d.status;return G==="VOTE_STATUS_UPVOTED"?k-1:G==="VOTE_STATUS_DOWNVOTED"?k+1:k},y=function(){return t()==="VOTE_STATUS_UPVOTED"?T()+1:t()==="VOTE_STATUS_DOWNVOTED"?T()-1:T()},Z=function(G){var F=G?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
J(F);var k=y(),d=_.DY().resolve(_.Vx(_.U$)),z=H();z&&(G&&(z==null?0:z.upvoteDefaultButtonOnTap)?_.Yt(z.upvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(z==null?0:z.upvoteToggledButtonOnTap)&&_.Yt(z.upvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var C;G=(C=z==null?void 0:z.enableOptimisticReordering)!=null?C:D().enableOptimisticReordering;Q&&d&&D().itemId&&G&&T9u(d,D().itemId,k,F)},l=function(G){var F=G?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
J(F);var k=y(),d=_.DY().resolve(_.Vx(_.U$)),z=H();z&&(G&&(z==null?0:z.downvoteDefaultButtonOnTap)?_.Yt(z.downvoteDefaultButtonOnTap,{form:{element:n.value},disableClickTracking:!0}):(z==null?0:z.downvoteToggledButtonOnTap)&&_.Yt(z.downvoteToggledButtonOnTap,{form:{element:n.value},disableClickTracking:!0}));var C;G=(C=z==null?void 0:z.enableOptimisticReordering)!=null?C:D().enableOptimisticReordering;Q&&d&&D().itemId&&G&&T9u(d,D().itemId,k,F)};
V={};V=_.KT("ytVotingViewModelVoteCount",(V.ytVotingViewModelVoteCountDisabled=function(){return D().isDisabled},V));
return _.K("voting-view-model",{class:"ytVotingViewModelHost"},_.K("div",{el:f},_.K(_.BW,{data:function(){var G=_.g(D().upvoteButton,_.FO);return{toggleButtonViewModel:Object.assign({},G,{isToggled:t()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(G){return _.K(_.FA,{data:G.data,
onToggle:Z})}})),_.K("div",{class:V},function(){var G,F,k;
return t()==="VOTE_STATUS_UPVOTED"?(G=D().initialState)==null?void 0:G.compactVotesUpvoted:t()==="VOTE_STATUS_DOWNVOTED"?(F=D().initialState)==null?void 0:F.compactVotesDownvoted:(k=D().initialState)==null?void 0:k.compactVotes}),_.K("div",{el:n},_.K(_.BW,{data:function(){var G=_.g(D().downvoteButton,_.FO);
return{toggleButtonViewModel:Object.assign({},G,{isToggled:t()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(G){return _.K(_.FA,{data:G.data,
onToggle:l})}})))},"Ob");_.fT(_.MA(function(V){var D=V.data;return _.K("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.K("div",{class:_.KT("ytEngagementBarViewModelEngagementBarWrapper",V.className)},_.K(_.BW,{data:function(){return D().actions}},{votingViewModel:bPY})))},"Pb"),"engagement-bar-view-model",{props:{data:_.WX,
className:_.WX}});var VH=function(){var V=_.E.apply(this,arguments)||this;V.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.downloadState="DOWNLOAD_STATE_UNKNOWN";V.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";V.offlineVideoPolicyExpirationTimestamp=0;return V};
_.v(VH,_.E);_.P=VH.prototype;_.P.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"}}}};
_.P.canReorderChanged=function(){this.persistentDragHandle=_.c("kevlar_playlist_drag_handles")&&this.canReorder};
_.P.onDrag=function(){if(this.thumbnail){var V=_.Pt(this.thumbnail).querySelector("yt-image");V&&(V.shouldRenderLazy=!1)}};
_.P.onMenuOverlayChanged=function(V,D){this.menuOpened=D};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.P.onContentsTap=function(V){var D,f=(D=this.data)==null?void 0:D.serviceEndpoints;if(f&&f.length===1&&_.g(f[0],xSR)&&!_.It(_.Os(V),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(f[0]);else{var n;(D=(n=this.data)==null?void 0:n.navigationEndpoint)&&_.c("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?KVV(_.DY().resolve(_.qw),D):(_.b$().playlistSuggestionsShelfActivation=
!0,_.yjV(_.DY().resolve(_.qw),D)):D&&!_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.c("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D))}};
_.P.computeStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(V){return V==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.P.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=y6n(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))}};
_.P.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.dataChanged=function(){if(this.data){var V,D,f,n=((V=this.downloadRenderData)==null?void 0:V.badges)&&((D=this.downloadRenderData)==null?void 0:D.badges)!==((f=this.data)==null?void 0:f.badges),t,J,H;V=((t=this.downloadRenderData)==null?void 0:t.thumbnailOverlays)&&((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)!==((H=this.data)==null?void 0:H.thumbnailOverlays);(!this.downloadRenderData||n||V)&&this.downloadStateChanged()}};
_.P.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var V,D,f=(V=this.data.menu)==null?void 0:(D=V.menuRenderer)==null?void 0:D.items;if(f)for(V=_.r(f),D=V.next();!D.done;D=V.next())if(D=D.value,f=void 0,_.g((f=D.menuServiceItemRenderer)==null?void 0:f.serviceEndpoint,_.NT)){var n=f=void 0,t=void 0;D=(f=D)==null?void 0:(n=f.menuServiceItemRenderer)==null?void 0:(t=n.serviceEndpoint)==null?void 0:t.playlistEditEndpoint;t=n=void 0;if(f=(n=D)==null?void 0:(t=n.actions)==null?void 0:
t[0])n=void 0,f.setVideoId=(n=this.data)==null?void 0:n.setVideoId;t=n=f=void 0;if(D=(f=D)==null?void 0:(n=f.clientActions)==null?void 0:(t=n[0])==null?void 0:t.playlistRemoveVideosAction)f=void 0,D.setVideoIds=[(f=this.data)==null?void 0:f.setVideoId]}}};
_.IG.Object.defineProperties(VH.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
VH.prototype.setVideoIdChanged=VH.prototype.setVideoIdChanged;VH.prototype.dataChanged=VH.prototype.dataChanged;VH.prototype.downloadStateChanged=VH.prototype.downloadStateChanged;VH.prototype.onMenuOverlayChanged=VH.prototype.onMenuOverlayChanged;VH.prototype.canReorderChanged=VH.prototype.canReorderChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],VH.prototype,"ytdReduxBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],VH.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],VH.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VH.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"canReorder",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"menuOpened",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"handleIsHovered",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"persistentDragHandle",void 0);_.S([_.q(),_.p("design:type",Object)],VH.prototype,"downloadRenderData",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],VH.prototype,"styleType",void 0);_.S([_.q({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],VH.prototype,"thumbnailWidth",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"isDownloads",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],VH.prototype,"playlistVotingAnimationEnabled",void 0);
_.S([_.q({selector:XC,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"downloadProgress",void 0);_.S([_.q(),_.p("design:type",Number)],VH.prototype,"relativeDateReference",void 0);_.S([_.q({selector:_.CA,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"transferState",void 0);_.S([_.q({selector:ATn,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"downloadState",void 0);
_.S([_.q({selector:gBZ,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"offlinePolicyAction",void 0);_.S([_.q({selector:vBF,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.S([_.q({selector:sI9,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],VH.prototype,"entityInfo",void 0);_.S([_.q({selector:_.mq}),_.p("design:type",Boolean)],VH.prototype,"miniplayerIsActive",void 0);
_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],VH.prototype,"playlistVideoId",null);_.S([_.Zv("#thumbnail"),_.p("design:type",Object)],VH.prototype,"thumbnail",void 0);_.S([_.eY("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VH.prototype,"canReorderChanged",null);
_.S([_.bU("yt-menu-overlay-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Boolean]),_.p("design:returntype")],VH.prototype,"onMenuOverlayChanged",null);_.S([_.eY("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VH.prototype,"downloadStateChanged",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VH.prototype,"dataChanged",null);_.S([_.eY("data.setVideoId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VH.prototype,"setVideoIdChanged",null);_.S([_.a({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],VH);
_.Y(VH,"ytd-playlist-video-renderer",function(){if(QS6!==void 0)return QS6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);V.content.insertBefore(wPF().content.cloneNode(!0),V.content.firstChild);return QS6=V},{mode:1});var ZPV;var DP=function(){return _.E.apply(this,arguments)||this};
_.v(DP,_.E);_.S([_.q(),_.p("design:type",Object)],DP.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],DP.prototype,"rendererBehavior",void 0);_.S([_.a({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],DP);
_.Y(DP,"ytd-premium-browse-footer-renderer",function(){if(ZPV!==void 0)return ZPV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZPV=V},{mode:1});var jSH;var fQ=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return V};
_.v(fQ,_.E);_.P=fQ.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.handleDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.computeHeaderLogoThumbnail=function(V,D){if(V)return D?V.darkLogo:V.lightLogo};
_.P.computeHeaderLogoHeight=function(V,D){var f,n,t;return(V=(f=this.computeHeaderLogoThumbnail(V,D))==null?void 0:(n=f.thumbnails)==null?void 0:(t=n[0])==null?void 0:t.height)&&V%31===0?"31":"24"};
_.P.computeHeaderLogoMarginBottom=function(V,D){return this.computeHeaderLogoHeight(V,D)==="24"?"0":"-7"};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],fQ.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fQ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],fQ.prototype,"isDarkTheme",void 0);_.S([_.q({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.p("design:type",Object)],fQ.prototype,"themeLogo",void 0);
_.S([_.q({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.p("design:type",String)],fQ.prototype,"logoHeight",void 0);_.S([_.q({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.p("design:type",String)],fQ.prototype,"logoMarginBottom",void 0);_.S([_.a({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],fQ);
_.Y(fQ,"ytd-primetime-promo-header-renderer",function(){if(jSH!==void 0)return jSH;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jSH=V},{mode:1});var lKP;var e1l=_.MA(function(V){var D=_.jl(function(t){var J;(J=V.onClick)==null||J.call(V,t)}),f={},n={};
return _.K("yt-shelf-header-layout",{class:_.KT("shelf-header-layout-wiz",(f["shelf-header-layout-wiz--disable-horizontal-padding"]=V.disableHorizontalPadding,f["shelf-header-layout-wiz--disable-vertical-padding"]=V.disableVerticalPadding,f["shelf-header-layout-wiz--responsive"]=V.useResponsiveLayout,f["shelf-header-layout-wiz--narrow"]=function(){var t,J;return((t=V.useResponsiveLayout)==null?void 0:t.call(V))&&((J=V.forceSmallLayout)==null?void 0:J.call(V))},f["shelf-header-layout-wiz--is-overlay"]=
V.isOverlay,f["shelf-header-layout-wiz--tappable"]=!!V.onClick,f)),
"on:click":D,tabindex:function(){var t;return((t=V.isInteractive)==null?0:t.call(V))?0:void 0}},_.K(_.e,{cond:V.leadingIcon,
then:function(t){return _.K("div",{class:"shelf-header-layout-wiz__leading-icon"},_.K(_.cj,{icon:t}))},
else:function(){return _.K(_.e,{cond:V.hasLeadingImage,then:function(){var t,J={};return _.K("div",{class:_.KT("shelf-header-layout-wiz__leading-image",(J["shelf-header-layout-wiz__leading-image--circular-image"]=V.circularImage,J))},(t=V.leadingImage)==null?void 0:t.call(V))}})}}),_.K("div",{class:"shelf-header-layout-wiz__label-container"},_.K(_.e,{cond:V.hasSuperlabel,
then:function(){var t;return _.K("div",{class:"shelf-header-layout-wiz__superlabel"},(t=V.superlabel)==null?void 0:t.call(V))}}),_.K("div",{class:"shelf-header-layout-wiz__title-row"},_.K(GBU,{text:V.title,
className:_.KT("shelf-header-layout-wiz__title",(n["shelf-header-layout-wiz__title--small-title"]=V.forceSmallLayout,n)),tagLevel:V.tagLevel}),_.K(_.e,{cond:V.hasDetail,then:function(){var t;return _.K("div",{class:"shelf-header-layout-wiz__detail"},(t=V.detail)==null?void 0:t.call(V))}})),_.K(_.e,{cond:V.hasSublabel,
then:function(){var t;return _.K("div",{class:"shelf-header-layout-wiz__sublabel"},(t=V.sublabel)==null?void 0:t.call(V))}})),_.K(_.e,{cond:V.hasTrailingActions,
then:function(){var t;return _.K("div",{class:"shelf-header-layout-wiz__trailing-actions"},(t=V.trailingActions)==null?void 0:t.call(V))}}))},"Qb");
e1l.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var GBU=_.MA(function(V){var D=V.text;var f=V.className;var n=V.tagLevel;return _.K(_.kw,null,_.K(_.gj,{when:function(){return(n==null?void 0:n())===0}},function(){return _.K("h2",{class:f},D())}),_.K(_.gj,{when:function(){return(n==null?void 0:n())===1}},function(){return _.K("h3",{class:f},D())}),_.K(_.gj,{when:function(){return(n==null?void 0:n())===2}},function(){return _.K("h4",{class:f},D())}),_.K(_.v9,null,function(){return _.K("h2",{class:f},D())}))},"Rb");var gZP,cj6,FVE;_.nQ=_.MA(function(V){var D=V.className;var f=V.data;var n=V.disableHorizontalPadding;var t=V.disableVerticalPadding;var J=V.forceSmallLayout;var H=V.useResponsiveLayout;V=V.isOverlay;return _.K("yt-section-header-view-model",{class:_.KT("ytSectionHeaderViewModelHost",D),style:_.el({"background-color":function(){return aoR(f().backgroundColor)?_.aB(aoR(f().backgroundColor)):void 0}})},_.K(e1l,{hasDetail:!1,
title:function(){return _.K(_.Ow,{text:function(){return f().headline}})},
hasTitle:!0,sublabel:function(){return _.K(cj6,{data:f})},
hasSublabel:function(){return!!f().sublabel||!!f().bottomBadge},
superlabel:function(){return _.K(FVE,{data:f})},
hasSuperlabel:function(){return!!f().superlabel||!!f().topBadge},
leadingImage:function(){return _.K(gZP,{leadingAccessory:function(){return f().leadingAccessory}})},
hasLeadingImage:function(){return!!f().leadingAccessory},
trailingActions:function(){return _.K(_.BW,{data:function(){return f().trailingActions}},{flexibleActionsViewModel:vg})},
hasTrailingActions:function(){return!!f().trailingActions},
disableHorizontalPadding:n,disableVerticalPadding:t,forceSmallLayout:J,useResponsiveLayout:H,isOverlay:V,isInteractive:function(){return!!_.qs(f().rendererContext)},
onClick:function(Q){if(_.XO(f().rendererContext)){var T=_.qs(f().rendererContext);T&&_.Em(T,{form:{element:Q.target,event:Q}})}}}))},"Sb");
gZP=_.MA(function(V){var D=V.leadingAccessory;return _.K(_.th,null,_.K(_.e,{cond:function(){var f;return(f=D().image)!=null?f:_.pX(D().themedImage)},
then:function(f){return _.K(_.xt,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.K(_.e,{cond:function(){return _.g(D().avatar,_.AY)},
then:function(f){return _.K(_.vd,{data:f})}}))},"Tb");
cj6=_.MA(function(V){var D=V.data;return _.K(_.th,null,_.K(_.e,{cond:function(){return _.g(D().bottomBadge,EBl)},
then:function(f){var n={};return _.K(_.Mh,{data:f,class:_.KT((n.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!D().sublabel},n))})}}),_.K(_.e,{cond:function(){return D().sublabel},
then:function(f){return _.K(_.Ow,{text:f})}}))},"Ub");
FVE=_.MA(function(V){var D=V.data;return _.K(_.th,null,_.K(_.e,{cond:function(){return _.g(D().topBadge,EBl)},
then:function(f){var n={};return _.K(_.Mh,{data:f,class:_.KT((n.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!D().superlabel},n))})}}),_.K(_.e,{cond:function(){return D().superlabel},
then:function(f){return _.K(_.Ow,{text:f})}}))},"Vb");_.fT(_.nQ,"yt-section-header-view-model",{props:{data:_.WX,className:_.WX,disableHorizontalPadding:_.WX,disableVerticalPadding:_.WX,forceSmallLayout:_.WX,useResponsiveLayout:_.WX,isOverlay:_.WX}});_.zk("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var ts=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return V};
_.v(ts,_.E);_.P=ts.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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"}}}};
_.P.onDataChange=function(){var V=this;_.pO(this,function(){V.updateItemVisibility()})};
_.P.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V,this.updateItemVisibility())};
_.P.updateItemVisibility=function(){var V=this;this.data&&this.data.panels&&_.Pt(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(D,f){D.hidden=f>V.elementsPerRow-1})};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
ts.prototype.onDataChange=ts.prototype.onDataChange;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],ts.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ts.prototype,"actionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],ts.prototype,"data",void 0);_.S([_.q({value:3}),_.p("design:type",Number)],ts.prototype,"elementsPerRow",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ts.prototype,"onDataChange",null);_.S([_.a({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ts);
_.Y(ts,"ytd-primetime-promo-renderer",function(){if(lKP!==void 0)return lKP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lKP=V},{mode:1});var vZl;var Pi=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return V};
_.v(Pi,_.E);Pi.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Pi.prototype.handleButtonRefreshAction=function(V){if(V=_.g(V,a1E))this.set("data.button",V.membershipButton),this.notifyPath("data.button")};
_.IG.Object.defineProperties(Pi.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.avatars)==null?void 0:D.slice(0,8))||[]}}});
_.S([_.q(),_.p("design:type",Object)],Pi.prototype,"data",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Pi.prototype,"rendererBehavior",void 0);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Pi.prototype,"avatars",null);
_.S([_.a({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Pi);
_.Y(Pi,"ytd-recognition-shelf-renderer",function(){if(vZl!==void 0)return vZl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vZl=V},{mode:1});var kBF;var sSu;var ov=function(){var V=_.E.apply(this,arguments)||this;V.modernButtons=_.c("web_modern_buttons");return V};
_.v(ov,_.E);_.P=ov.prototype;
_.P.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]]"}}}}}};
_.P.dataChanged=function(){this.collapsed=!0};
_.P.computeVisibleItems=function(V,D){return V!==void 0&&V.items?D?V.items.slice(0,this.data.collapsedItemCount):V.items:[]};
_.P.computeHideShowMore=function(V,D,f){return V>=D||!f};
_.P.computeHideShowAll=function(V,D,f){return!(V&&D)||f};
_.P.onMoreClick=function(){this.collapsed=!1};
_.IG.Object.defineProperties(ov.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.PI("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.c("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
ov.prototype.dataChanged=ov.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ov.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],ov.prototype,"isSearch",void 0);
_.S([_.q({computed:"computeVisibleItems(data,collapsed)"}),_.p("design:type",Array)],ov.prototype,"visibleItems",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],ov.prototype,"collapsed",void 0);_.S([_.q({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.p("design:type",Boolean)],ov.prototype,"hideShowMore",void 0);
_.S([_.q({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.p("design:type",Boolean)],ov.prototype,"hideShowAll",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],ov.prototype,"modernButtons",void 0);_.S([_.R("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ov.prototype,"typographyBump",null);
_.S([_.R("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],ov.prototype,"lockupExperiments",null);_.S([_.R("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],ov.prototype,"thumbnailWidth",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ov.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ov);
_.Y(ov,"ytd-vertical-list-renderer",function(){if(sSu!==void 0)return sSu;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return sSu=V},{mode:1});var B9U=_.WV(["#"]);_.zk("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Js=function(){var V=_.E.apply(this,arguments)||this;V.isConstrainedList=!1;V.modernTypography=_.c("web_modern_typography");return V};
_.v(Js,_.E);_.P=Js.prototype;
_.P.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"}}}};
_.P.computeThumbnailStyle=function(V){return V||""};
_.P.computePlaceAnnotationUnderTitle=function(){var V;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((V=this.data)==null?void 0:V.thumbnailStyle)||"")};
_.P.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V)||_.vS(B9U)};
_.P.computeIsPromoShelf=function(V){var D;return(V=V==null?void 0:(D=V[0])==null?void 0:D.metadataBadgeRenderer)?V.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.P.computePlaceBadgeBesideTitle=function(V){var D;return(V==null?0:(D=V[0])==null?0:D.metadataBadgeRenderer)?!this.computeIsPromoShelf(V):!1};
_.P.computeMenuIcon=function(V){return this.computeIsPromoShelf(V)?"yt-icons:more_vert":"yt-icons:more"};
_.P.onDataChange=function(){var V,D;((V=this.data)==null?0:(D=V.content)==null?0:D.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.P.onLockupRequested=function(V){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&V.detail&&V.detail.videoIds){for(var D=this.data.content.gridRenderer.items,f=new Set,n=_.r(V.detail.videoIds),t=n.next();!t.done;t=n.next())f.add(t.value);V.detail.returnValue=D.filter(function(J){return J.gridVideoRenderer&&J.gridVideoRenderer.videoId&&f.has(J.gridVideoRenderer.videoId)}).map(function(J){return J.gridVideoRenderer})}};
_.P.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Js.prototype.onLockupRequested=Js.prototype.onLockupRequested;Js.prototype.onDataChange=Js.prototype.onDataChange;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Js.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],Js.prototype,"ironResizableBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Js.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Js.prototype,"isSearch",void 0);_.S([_.q(),_.p("design:type",Object)],Js.prototype,"isConstrainedList",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("kevlar_fluid_dismiss")}}),
_.p("design:type",Boolean)],Js.prototype,"enableFluidDismiss",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.p("design:type",String)],Js.prototype,"thumbnailStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Js.prototype,"modernTypography",void 0);_.S([_.q({computed:"computeMenuIcon(data.badges)"}),_.p("design:type",String)],Js.prototype,"menuIcon",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Js.prototype,"onDataChange",null);_.S([_.bU("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Js.prototype,"onLockupRequested",null);_.S([_.a({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Js);
_.Y(Js,"ytd-shelf-renderer",function(){if(kBF!==void 0)return kBF;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kBF=V},{mode:1});var djP;var ri=function(){return _.E.apply(this,arguments)||this};
_.v(ri,_.E);ri.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.IG.Object.defineProperties(ri.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ri.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ri.prototype,"isPlaylist",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ri.prototype,"isClipList",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ri.prototype,"isPlaylistPageWithFilters",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ri.prototype,"hasTitle",null);_.S([_.q(),_.R("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.p("design:type",Object),_.p("design:paramtypes",[])],ri.prototype,"isRightAligned",null);
_.S([_.a({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ri);
_.Y(ri,"ytd-sort-filter-header-renderer",function(){if(djP!==void 0)return djP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return djP=V},{mode:1});var uMH;var Hi=function(){var V=_.E.apply(this,arguments)||this;V.enableRightArrowHidden=_.c("channel_details_shelf_resize_observer");return V};
_.v(Hi,_.E);Hi.prototype.attached=function(){var V=this;this.enableRightArrowHidden&&(this.JSC$14392_throttledOnResize=new _.I7(function(){var D;(D=V.ytdHorizontalListBehavior)==null||D.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var D;
(D=V.JSC$14392_throttledOnResize)==null||D.fire()}),this.resizeObserver.observe(this.hostElement))};
Hi.prototype.detached=function(){if(this.enableRightArrowHidden){var V;(V=this.resizeObserver)==null||V.disconnect();var D;(D=this.JSC$14392_throttledOnResize)==null||D.dispose()}};
Hi.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]]"}}}}}};
Hi.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.IG.Object.defineProperties(Hi.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.c("enable_creator_details_shelf_m2")){var V=[],D;((D=this.data)==null?0:D.creatorVideosButton)&&V.push(this.data.creatorVideosButton);var f;((f=this.data)==null?0:f.creatorAboutButton)&&V.push(this.data.creatorAboutButton);D=_.r(this.data.creatorCustomUrlButtons||[]);for(f=D.next();!f.done;f=D.next())V.push(f.value);return V}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.c("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],Hi.prototype,"ytdHorizontalListBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hi.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hi.prototype,"engagementPanel",void 0);
_.S([_.q(),_.p("design:type",Object)],Hi.prototype,"enableRightArrowHidden",void 0);_.S([_.R("enableRightArrowHidden","atEnd"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Hi.prototype,"hideRightArrow",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hi.prototype,"creatorCustomUrlButtons",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data","creatorCustomUrlButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Hi.prototype,"showCreatorCustomUrlButtons",null);_.S([_.R("showCreatorCustomUrlButtons"),_.p("design:type",Number),_.p("design:paramtypes",[])],Hi.prototype,"channelAvatarSize",null);_.S([_.a({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Hi);
_.Y(Hi,"ytd-video-description-infocards-section-renderer",function(){if(uMH!==void 0)return uMH;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return uMH=V},{mode:_.J2("kevlar_poly_si_batch_j067")?1:2});var N9l;var wi=function(){return _.E.apply(this,arguments)||this};
_.v(wi,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],wi.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],wi.prototype,"infoIcon",void 0);_.S([_.a({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],wi);
_.Y(wi,"ytd-eom-settings-disclaimer-renderer",function(){if(N9l!==void 0)return N9l;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return N9l=V},{mode:1});var mjo;var QH=function(){return _.E.apply(this,arguments)||this};
_.v(QH,_.E);_.IG.Object.defineProperties(QH.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.suppressPaddingDisclaimer)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],QH.prototype,"componentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QH.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],QH.prototype,"suppressPaddingDisclaimer",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],QH);
_.Y(QH,"ytd-product-list-header-renderer",function(){if(mjo!==void 0)return mjo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return mjo=V},{mode:1});var z1o;var T9=function(){return _.E.apply(this,arguments)||this};
_.v(T9,_.E);T9.prototype.computeThumbnailStyle=function(V){if(V&&(V=_.AP(V)))return"background-color:"+V+";"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],T9.prototype,"rendererBehaviors",void 0);_.S([_.q(),_.p("design:type",Object)],T9.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],T9);
_.Y(T9,"ytd-hashtag-tile-renderer",function(){if(z1o!==void 0)return z1o;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return z1o=V},{mode:1});var R1H;var bj=function(){return _.E.apply(this,arguments)||this};
_.v(bj,_.E);bj.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bj.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],bj);
_.Y(bj,"ytd-sponsorships-alert-renderer",function(){if(R1H!==void 0)return R1H;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return R1H=V},{mode:1});var Cxl;var KQ=function(){return _.E.apply(this,arguments)||this};
_.v(KQ,_.E);KQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.IG.Object.defineProperties(KQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.S([_.u(_.N0),_.p("design:type",Object)],KQ.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],KQ.prototype,"ytdLockupBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],KQ.prototype,"isGridViewEnabled",void 0);
_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KQ.prototype,"watchFeedBigThumbs",null);_.S([_.R("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],KQ.prototype,"thumbnailWidth",null);_.S([_.q(),_.p("design:type",Object)],KQ.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],KQ);
_.Y(KQ,"ytd-compact-movie-renderer",function(){if(Cxl!==void 0)return Cxl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Cxl=V},{mode:1});var qMl;var XPr;var EZV=_.XB("HTML_DIR")==="rtl",yH=function(){var V=_.E.apply(this,arguments)||this;V.engagementPanel=!1;V.maxLines=2;V.expandButtonOffset=0;V.showExpandButton=!1;V.isTruncated=!1;V.isExpanded=!1;V.currentSnippetType=2;V.alwaysShowExpandButton=!1;V.JSC$14409_lastWidth=NaN;V.observer=null;V.left=0;V.right=0;V.mid=0;V.longestSnippetLength=0;V.isFinalSnippet=!1;V.isFirstMutation=!1;V.isResetMutation=!1;V.OVERFLOW_THRESHOLD=5;return V};
_.v(yH,_.E);_.P=yH.prototype;_.P.onClick=function(V){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;if((D=window.getSelection())==null||!D.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.P.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.P.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.P.updateTextOnSnippetTypeChange=function(){_.c("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.P.setUpBinarySearch=function(V){V=V*this.maxLines/8;this.left=0;var D,f;this.right=Math.min(V*2,(f=(D=this.simpleText)==null?void 0:D.length)!=null?f:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.P.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.P.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.zP(new _.cI("AttributedSnippet is empty when the description is not empty",this.text))};
_.P.mutationCallback=function(){if(this.observer!=null){var V=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var D=Math.floor(V*this.maxLines/8);this.setSnippetText(this.text,D);D!==0||this.attributedTextIsEmpty()||_.zP(new _.cI("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;V=V*this.maxLines/8;this.left=0;var f;this.right=Math.min(V*2,(f=(D=this.simpleText)==null?void 0:D.length)!=null?f: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)}}};
_.P.mutationObserve=function(V){var D=this;this.observer||(this.observer=new MutationObserver(function(){D.mutationCallback()}));
this.observer.observe(V,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.P.attached=function(){var V=this;_.pO(this,function(){V.resize()})};
_.P.isExpandedChanged=function(){_.PA(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.P.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)};
_.P.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var V="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((EZV?"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",V);this.snippetContainer.style.setProperty("mask-image",
V)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(EZV?"right":"left",this.expandButtonOffset+"px")};
_.P.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.P.setSnippetText=function(V,D){V||(V={});if(_.Lm(V)){var f=Wr(V,D);f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.alignment||f.lineBreakMode?this.attributedSnippetTextEl?(_.c("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Wr(V,D),this.attributedSnippetTextEl.headerRuns=IE9(D,this.headerRuns)):this.attributedSnippetText={data:Wr(V,D),headerRuns:IE9(D,this.headerRuns)},this.currentSnippetType=0):_.zP(new _.cI("Tried to set snippet text when HTML element was null",
V)):(this.plainSnippetText.textContent=iS(V.content||"",D),this.currentSnippetType=2)}else{a:{f=YxZ(V,D);if(f.runs){f=_.r(f.runs);for(var n=f.next();!n.done;n=f.next())if(n=n.value,n.bold||n.deemphasize||n.italics||n.strikethrough||n.textColor||n.navigationEndpoint||_.g(n,R5)){f=!0;break a}}f=!1}f?this.formattedSnippetText?(this.formattedSnippetText.text=YxZ(V,D),this.currentSnippetType=1):_.zP(new _.cI("Tried to set snippet text when HTML element was null",V)):(this.plainSnippetText.textContent=
iS(_.LA(V),D),this.currentSnippetType=2)}};
_.P.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.P.attributedTextIsEmpty=function(){var V=this.text;if(!_.Lm(V))return!0;var D;return((D=V.content)==null?void 0:D.length)===0?!0:!1};
_.P.resize=function(V){if(this.snippetText){if(V===void 0?0:V)this.JSC$14409_lastWidth=NaN;var D=this.hostElement.offsetWidth;if(D!==this.JSC$14409_lastWidth&&!this.isExpanded)if(this.JSC$14409_lastWidth=D,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;V=0;var f,n;D=Math.min(D*this.maxLines/8*2,(n=(f=this.simpleText)==null?void 0:f.length)!=null?n:0)-1;for(f=0;V<=D;)n=Math.floor(V+(D-V)/2),this.setSnippetText(this.text,n),this.isOverflowing()?D=n-1:(V=n+1,f=n);this.setSnippetText(this.text,f);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.P.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.P.onExpandClick=function(){var V=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.c("inline_expander_reset_focus_killswitch")||_.pO(this,function(){var D;((D=_.DY().resolve(_.Vx(_.PO)))==null?0:D.isKeyBoardInUse())&&_.ph(V.hostElement)});
_.PA(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.P.onCollapseClick=function(){this.collapse();_.PA(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.P.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.P.computeExpandButtonOffset=function(){var V=this.expandSizer;return V?EZV?V.offsetParent?V.offsetParent.offsetWidth-V.offsetWidth-V.offsetLeft:0:V.offsetLeft:0};
_.IG.Object.defineProperties(yH.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Lm(this.text)?this.text.content||"":_.LA(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 _.Lm(this.text)?!0:this.text&&_.c("web_replace_formatted_with_attributed_string")&&ZFx(this.text)?(this.text=_.zK(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}}});
yH.prototype.onTextChanged=yH.prototype.onTextChanged;yH.prototype.updateMaskAndExpandButtonOffset=yH.prototype.updateMaskAndExpandButtonOffset;yH.prototype.updateSnippetContainerMaxHeight=yH.prototype.updateSnippetContainerMaxHeight;yH.prototype.isExpandedChanged=yH.prototype.isExpandedChanged;yH.prototype.updateTextOnSnippetTypeChange=yH.prototype.updateTextOnSnippetTypeChange;yH.prototype.updateIsFormattedExpanded=yH.prototype.updateIsFormattedExpanded;yH.prototype.updateIsAttributedExpanded=yH.prototype.updateIsAttributedExpanded;
yH.prototype.onClick=yH.prototype.onClick;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],yH.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"text",void 0);_.S([_.q(),_.p("design:type",Array)],yH.prototype,"headerRuns",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yH.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"maxLines",void 0);
_.S([_.q(),_.p("design:type",String)],yH.prototype,"expandLabel",void 0);_.S([_.q(),_.p("design:type",String)],yH.prototype,"collapseLabel",void 0);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"expandCommand",void 0);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"expandButtonOffset",void 0);_.S([_.R("text"),_.p("design:type",String),_.p("design:paramtypes",[])],yH.prototype,"simpleText",null);
_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yH.prototype,"onClick",null);_.S([_.R("text","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"expandedText",null);_.S([_.R("headerRuns","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"expandedHeaderRuns",null);
_.S([_.R("text"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yH.prototype,"hasAttributedStringText",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yH.prototype,"showExpandButton",void 0);_.S([_.R("collapseLabel","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"showCollapseButton",null);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"isTruncated",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yH.prototype,"isExpanded",void 0);_.S([_.q(),_.p("design:type",Boolean)],yH.prototype,"isAttributedExpanded",void 0);_.S([_.KI("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"updateIsAttributedExpanded",null);_.S([_.q(),_.p("design:type",Boolean)],yH.prototype,"isFormattedExpanded",void 0);
_.S([_.KI("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"updateIsFormattedExpanded",null);_.S([_.q(),_.p("design:type",Number)],yH.prototype,"currentSnippetType",void 0);_.S([_.R("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"useAttributedSnippet",null);
_.S([_.R("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"useFormattedSnippet",null);_.S([_.R("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],yH.prototype,"usePlainSnippet",null);_.S([_.q(),_.p("design:type",Object)],yH.prototype,"alwaysShowExpandButton",void 0);_.S([_.KI("currentSnippetType"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"updateTextOnSnippetTypeChange",null);
_.S([_.q(),_.p("design:type",Object)],yH.prototype,"attributedSnippetText",void 0);_.S([_.Zv("#snippet"),_.p("design:type",HTMLElement)],yH.prototype,"snippetContainer",void 0);_.S([_.Zv("#snippet-text"),_.p("design:type",HTMLElement)],yH.prototype,"snippetText",void 0);_.S([_.Zv("#plain-snippet-text"),_.p("design:type",HTMLElement)],yH.prototype,"plainSnippetText",void 0);_.S([_.Zv("#formatted-snippet-text"),_.p("design:type",Object)],yH.prototype,"formattedSnippetText",void 0);
_.S([_.Zv("#attributed-snippet-text"),_.p("design:type",Object)],yH.prototype,"attributedSnippetTextEl",void 0);_.S([_.Zv("#expand"),_.p("design:type",HTMLElement)],yH.prototype,"expandButton",void 0);_.S([_.Zv("#expand-sizer"),_.p("design:type",HTMLElement)],yH.prototype,"expandSizer",void 0);_.S([_.eY("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"isExpandedChanged",null);
_.S([_.KI("isExpanded","maxLines"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"updateSnippetContainerMaxHeight",null);_.S([_.KI("isTruncated","showExpandButton","expandButtonOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"updateMaskAndExpandButtonOffset",null);
_.S([_.eY("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yH.prototype,"onTextChanged",null);_.S([_.a({is:"ytd-text-inline-expander",disableElementRegistration:!0})],yH);
_.Y(yH,"ytd-text-inline-expander",function(){if(XPr===void 0){var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);XPr=V}V=XPr;return V},{mode:2});var ZP=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return V};
_.v(ZP,_.E);ZP.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
ZP.prototype.handleUpdateDescriptionAction=function(V){if(V=_.g(V,_.H_E))if(V.attributedDescription)this.set("data.attributedDescriptionBodyText",V.attributedDescription);else if(V.description){var D;((D=this.data)==null?0:D.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.zK(V.description)):this.set("data.descriptionBodyText",V.description)}};
_.IG.Object.defineProperties(ZP.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.attributedDescriptionBodyText)||!((D=this.data)==null||!D.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.collapsedLineCount){var D;return(D=this.data)==null?void 0:D.collapsedLineCount}V=_.tU("web_watch_description_collapsed_default_lines",12);if(_.c("ww_desc_line_page_size_ks"))return V;D=Math.round(_.FS().height*_.tU("web_watch_description_screen_height_percentage",.5)/20);return Math.max(D,V)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return(f=(V=this.data)==null?void 0:V.descriptionBodyText)!=null?f:(D=this.data)==null?void 0:D.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.sourceAttributions}}});
ZP.prototype.panelContentVisibleChanged=ZP.prototype.panelContentVisibleChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ZP.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZP.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Boolean)],ZP.prototype,"panelContentVisible",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZP.prototype,"engagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],ZP.prototype,"shortsPanel",void 0);_.S([_.Zv("#inline-expander"),_.p("design:type",Object)],ZP.prototype,"inlineExpander",void 0);
_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZP.prototype,"panelContentVisibleChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ZP.prototype,"hasDescriptionText",null);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],ZP.prototype,"collapsedLines",null);
_.S([_.R("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZP.prototype,"descriptionText",null);_.S([_.R("data","data.headerRuns"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZP.prototype,"headerRuns",null);_.S([_.R("data","data.sourceAttributions"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZP.prototype,"sourceAttributions",null);
_.S([_.a({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],ZP);
_.Y(ZP,"ytd-expandable-video-description-body-renderer",function(){if(qMl!==void 0)return qMl;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qMl=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var Ajl;var aKE=_.MA(function(V){var D=V.data;return _.K("factoid-renderer",{class:"ytwFactoidRendererHost"},_.K("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return D().accessibilityText}},_.K("span",{class:"ytwFactoidRendererValue"},_.K(_.Ow,{text:function(){return D().value}})),_.K("span",{class:"ytwFactoidRendererLabel"},_.K(_.Ow,{text:function(){return D().label}}))))},"Wb");_.fT(aKE,"factoid-renderer",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;return _.K("upload-time-factoid-renderer",null,_.K(_.BW,{data:function(){return D().factoid}},{factoidRenderer:aKE}))},"Xb"),"upload-time-factoid-renderer",{props:{data:_.Dn}});_.fT(_.MA(function(V){var D=V.data;return _.K("view-count-factoid-renderer",null,_.K(_.BW,{data:function(){return D().factoid}},{factoidRenderer:aKE}))},"Yb"),"view-count-factoid-renderer",{props:{data:_.Dn}});var jU=function(){var V=_.E.apply(this,arguments)||this;V.shortsPanel=!1;V.engagementPanel=!1;V.watchWhileSdp=_.c("shorts_desktop_watch_while_sdp");return V};
_.v(jU,_.E);jU.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"}}}}};
_.IG.Object.defineProperties(jU.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var V;return(V=this.data)==null?void 0:V.channel}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],jU.prototype,"componentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jU.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jU.prototype,"shortsPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jU.prototype,"engagementPanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jU.prototype,"watchWhileSdp",void 0);_.S([_.R("shortsPanel","engagementPanel","data.channel"),_.p("design:type",Object),_.p("design:paramtypes",[])],jU.prototype,"showChannelInfo",null);_.S([_.a({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],jU);
_.Y(jU,"ytd-video-description-header-renderer",function(){if(Ajl!==void 0)return Ajl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Ajl=V},{mode:1});var YM6;var lj=function(){return _.E.apply(this,arguments)||this};
_.v(lj,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],lj.prototype,"noPadding",void 0);_.S([_.q(),_.p("design:type",Object)],lj.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],lj);
_.Y(lj,"ytd-list-item-view-model",function(){if(YM6!==void 0)return YM6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return YM6=V},{mode:1});var $jH;var iPY;var SMY;var WVP;var G9=function(){var V=_.E.apply(this,arguments)||this;V.adaptiveFullWidth=!1;V.modernButtons=_.c("web_modern_buttons");V.buttonOverrides={style:"call-to-action",type:"filled"};V.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return V};
_.v(G9,_.E);G9.prototype.handleSetTimestamp_=function(V){this.data&&this.data.shortUrl&&(_.Pt(this.hostElement).querySelector("#share-url").value=V.isSet?_.EO(this.data.shortUrl,"t",V.timestamp):this.data.shortUrl)};
G9.prototype.handleSignalActionCopyShareUrl_=function(V,D){(_.c("killswitch_copy_link_target_check")||_.Pt(this.hostElement).querySelector("#copy-button")===D)&&this.copyUrlToClipboard()};
G9.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Pt(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
G9.prototype.computeStyle_=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],G9.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.p("design:type",String)],G9.prototype,"rendererStyle",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],G9.prototype,"adaptiveFullWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],G9.prototype,"modernButtons",void 0);_.S([_.q(),_.p("design:type",Object)],G9.prototype,"buttonOverrides",void 0);_.S([_.zy({is:"yt-copy-link-renderer",disableElementRegistration:!0})],G9);
_.Y(G9,"yt-copy-link-renderer",function(){if(WVP===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;SMY===void 0&&(SMY=document.createElement("template"));var n=SMY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);WVP=V}V=WVP;return V},{mode:2});_.zk("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var eU=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return V};
_.v(eU,_.E);_.P=eU.prototype;_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var V=_.DY().resolve(_.Vx(_.PO));V&&(this.keyboardFocused=V.isKeyBoardInUse())}};
_.P.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.P.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}};
_.P.onChange_=function(){if(this.data){var V=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;V&&this.ytComponentBehavior.resolveCommand(V);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.P.handleUpdateToggleAction_=function(V){(V=_.g(V,wNp))&&this.data&&V.targetId==this.data.targetId&&this.set("data.toggled",V.toggled)};
_.P.toBoolean_=function(V){return!!V};
_.P.reset=function(){};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("data-changed",this.data))};
_.P.updateDataToggledFromBinding=function(V){this.set("data.toggled",V.detail.value)};
eU.prototype.dataChangedForBinding=eU.prototype.dataChangedForBinding;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],eU.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],eU.prototype,"data",void 0);_.S([_.q({computed:"computeDescription_(data.*)"}),_.p("design:type",Object)],eU.prototype,"description_",void 0);_.S([_.q({value:function(){return!!_.DY().resolve(_.Vx(_.PO))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],eU.prototype,"useKeyboardFocused",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],eU.prototype,"keyboardFocused",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eU.prototype,"dataChangedForBinding",null);_.S([_.zy({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],eU);
_.Y(eU,"yt-toggle-form-field-renderer",function(){if(iPY===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;$jH===void 0&&($jH=document.createElement("template"));var n=$jH;f.call(D,n.content.cloneNode(!0),V.content.firstChild);iPY=V}V=iPY;return V},{mode:2});var pPV;var LVF;var ci=function(){var V=_.E.apply(this,arguments)||this;V.isDarkTheme=!1;V.isSearch=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.noTopMargin=_.c("kevlar_watch_no_top_margin");V.maskFade=_.c("web_watch_chips_mask_fade");V.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 V};
_.v(ci,_.E);_.P=ci.prototype;_.P.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}}}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.P.dataChanged=function(){var V=this.getSelectedIndex();if(V>0)this.selected=V;else{this.selected=0;var D,f;(D=this.ytScrollableChipCloudBehavior)==null||(f=D.reset)==null||f.call(D)}};
_.P.getSelectedIndex=function(){var V;if((V=this.data)==null||!V.chips)return-1;V=-1;for(var D,f=0;f<((D=this.data)==null?void 0:D.chips.length);f++){var n=void 0,t=void 0;if((n=this.data)==null?0:(t=n.chips[f].chipCloudChipRenderer)==null?0:t.isSelected){V=f;break}}return V};
_.P.onResize=function(){var V=this.ytScrollableChipCloudBehavior;_.pO(V,V.setContainerWidthDiff);Pp(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.handleRelatedChipCommand=function(V,D){V=this.JSC$14436_chipsSelector.indexOf(D);V!==-1&&this.JSC$14436_chipsSelector.selectIndex(V)};
_.P.handleChipCloudChipSelectAction=function(V){V=this.JSC$14436_chipsSelector.indexOf(V);V>-1&&this.JSC$14436_chipsSelector.selectIndex(V)};
_.P.handleChipCloudChipDeselectAction=function(){var V=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14436_chipsSelector&&((V==null?0:V.continuationCommand)?_.HA(this.hostElement,[V]):(V==null?0:V.searchEndpoint)?this.ytComponentBehavior.resolveCommand(V):V&&_.wN(this.hostElement,[V],this.hostElement),this.JSC$14436_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.P.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
ci.prototype.onResize=ci.prototype.onResize;ci.prototype.dataChanged=ci.prototype.dataChanged;ci.prototype.isSearchChanged=ci.prototype.isSearchChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ci.prototype,"actionHandlerBehavior",void 0);
_.S([_.u(_.sp),_.p("design:type",Object)],ci.prototype,"ironResizableBehavior",void 0);_.S([_.u(),_.p("design:type",td)],ci.prototype,"ytScrollableChipCloudBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ci.prototype,"data",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],ci.prototype,"selected",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"isDarkTheme",void 0);_.S([_.q({value:160}),_.p("design:type",Number)],ci.prototype,"scrollDistance",void 0);_.S([_.q(),_.p("design:type",Object)],ci.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"darkerDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"noTopMargin",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"maskFade",void 0);_.S([_.Zv("#chips"),_.p("design:type",Object)],ci.prototype,"JSC$14436_chipsSelector",void 0);_.S([_.KI("isSearch"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"isSearchChanged",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"dataChanged",null);
_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"onResize",null);_.S([_.zy({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ci);
_.Y(ci,"yt-chip-cloud-renderer",function(){if(LVF===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;pPV===void 0&&(pPV=document.createElement("template"));var n=pPV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);LVF=V}V=LVF;return V},{mode:2});var IKp,OPp=function(){return IKp!==void 0?IKp:IKp=document.createElement("template")};
document.head.appendChild(OPp().content);var xjV;var MVF=document.head,h16=MVF.appendChild,Uju;if(xjV===void 0){var V8Y=document.createElement("template");_.B(V8Y,"");V8Y.content.insertBefore(OPp().content.cloneNode(!0),V8Y.content.firstChild);xjV=V8Y}Uju=xjV;h16.call(MVF,Uju.content);var DfY=_.MA(function(V){var D=V.data;return _.K("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.K("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.K("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.K(_.e,{cond:function(){return _.pX(D().image)},
then:function(f){return _.K("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.K(_.xt,{data:f,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.K("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.K(_.Ow,{text:function(){return D().subtitle}})))),_.K(_.e,{cond:function(){var f;
return(f=D())==null?void 0:f.hasBottomDivider},
then:function(){return _.K("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Zb");var fm6=_.MA(function(V){var D=V.data;return _.K("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.K("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.K(_.BW,{data:function(){var f;return(f=D().offerPlanDetailsItem)!=null?f:[]}},{offerPlanDetailsItemViewModel:function(f){return _.K("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.K(DfY,{data:f.data}))}})),_.K("div",null,_.K(_.e,{cond:function(){return D().hasBottomDivider},
then:function(){return _.K("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.K("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.K("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.K("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.K("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"$b");var nkP=_.MA(function(V){var D=V.data;V=_.r(_.HJ(!1,void 0,"SpEGQd"));var f=V.next().value,n=V.next().value,t=_.jl(function(){n(!f());return!1}),J=function(){var H;
return(H=D().offerPlanDetailsContainer)!=null?H:[]};
return _.K("lp-complex-offer-card-details-view-model",null,_.K("div",null,_.K(_.e,{cond:function(){return f()},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.K("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":t,"aria-expanded":f},_.K(_.Ow,{text:function(){return D().expandedTitle}})),_.K("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.K(_.BW,{data:J},{offerPlanDetailsContainerViewModel:function(H){return _.K("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.K(fm6,{data:H.data}))}})),_.K("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.K(_.Ow,{text:function(){return D().legalText}})))},
else:function(){return _.K("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":t,"aria-expanded":f},_.K(_.Ow,{text:function(){return D().collapsedTitle}}),_.K("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.K(_.cj,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ac");var t8F=_.MA(function(V){var D=V.data;return _.K("lp-complex-offer-card-option-view-model",null,_.K("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.K(_.e,{cond:function(){return D().topDividerText},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.K("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.K("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.K("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.K(_.Ow,{text:function(){return D().topDividerText}}))))}}),_.K(_.e,{cond:function(){return D().description},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.K(_.Ow,{text:function(){return D().description}}))}}),_.K(_.e,{cond:function(){return D().planPricingPrimary},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.K(_.Ow,{text:function(){return D().planPricingPrimary}}))}}),_.K(_.e,{cond:function(){return D().planPricingSecondary},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.K(_.Ow,{text:function(){return D().planPricingSecondary}}))}}),_.K(_.e,{cond:function(){return D().primaryButton},
then:function(){return _.K("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.K(_.BW,{data:function(){return D().primaryButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"bc");var PcP=_.MA(function(V){var D=V.data;var f=function(){var J;return((J=D())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
V={};var n={},t={};return _.K("ytm-lp-complex-offer-card-view-model",null,_.K("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.K("div",{class:_.KT((V.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=f,V),"ytmLpComplexOfferCardViewModelCardContainer")},_.K(_.e,{cond:function(){var J;return(J=D())==null?void 0:J.bannerText},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.K("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.K(_.Ow,{text:function(){return D().bannerText}})))}}),_.K(_.e,{cond:function(){return _.pX(D().logo)},
then:function(J){var H={};return _.K("div",{class:_.KT((H.ytmLpComplexOfferCardViewModelLogoAlignLeft=f,H),"ytmLpComplexOfferCardViewModelLogo")},_.K(_.xt,{data:J,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.K("div",{class:_.KT((n.ytmLpComplexOfferCardViewModelTitleAlignLeft=f,n),"ytmLpComplexOfferCardViewModelTitle")},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.e,{cond:function(){var J;
return(J=D())==null?void 0:J.subtitle},
then:function(){var J={};return _.K("div",{class:_.KT((J.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=f,J),"ytmLpComplexOfferCardViewModelSubtitle")},_.K(_.Ow,{text:function(){return D().subtitle}}))}}),_.K(_.e,{cond:function(){return D().planPricingPrimary},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.K(_.Ow,{text:function(){return D().planPricingPrimary}}))}}),_.K(_.e,{cond:function(){return D().planPricingSecondary},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.K(_.Ow,{text:function(){return D().planPricingSecondary}}))}}),_.K(_.e,{cond:function(){return D().purchaseButton},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.K(_.BW,{data:function(){return D().purchaseButton}},{buttonViewModel:function(J){return _.K(_.HO,{data:J.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.K(_.e,{cond:function(){var J;
return(J=D())==null?void 0:J.offerOptions},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.K(_.BW,{data:function(){return D().offerOptions}},{lpComplexOfferCardOptionViewModel:t8F}))}}),_.K("div",{class:_.KT((t.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=f,t),"ytmLpComplexOfferCardViewModelLegalText")},_.K(_.Ow,{text:function(){return D().legalText}})),_.K(_.e,{cond:function(){var J;
return(J=D())==null?void 0:J.offerCardDetails},
then:function(){return _.K("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.K(_.BW,{data:function(){return D().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:nkP}))}}))))},"cc");var okp=_.MA(function(V){var D=V.data;var f=function(){var H;return((H=D())==null?void 0:H.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
V={};var n={},t={},J={};return _.K("ytm-lp-complex-offer-card-section-view-model",null,_.K("div",{class:_.KT("ytmLpComplexOfferCardSectionViewModelHost")},_.K("div",{class:_.KT((V.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=f,V),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.K("div",{class:_.KT((n.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=f,n),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.K("h2",{class:_.KT((t.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
f,t),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.K(_.Ow,{text:function(){return D().title}}))),_.K(_.e,{cond:function(){var H;
return(H=D())==null?void 0:H.subtitle},
then:function(){var H={},Q={};return _.K("div",{class:_.KT((H.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=f,H),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.K("div",{class:_.KT((Q.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=f,Q),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.K(_.Ow,{text:function(){return D().subtitle}})))}}),_.K("div",{class:_.KT((J.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=f,J),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.K(_.BW,{data:function(){var H;
return(H=D().offerPlans)!=null?H:[]}},{lpComplexOfferCardViewModel:function(H){return _.K("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.K(PcP,{data:H.data}))}})))))},"dc");var JCF=_.MA(function(V){return _.K("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.K("div",{class:"ytLpCouponBannerViewModelIcon"},_.K(_.cj,{icon:function(){return"price_tag"}})),_.K("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.K("div",{class:"ytLpCouponBannerViewModelContent"},_.K("div",{class:"ytLpCouponBannerViewModelHeading"},_.K(_.Ow,{text:function(){var D;
return(D=V.data())==null?void 0:D.title}})),_.K("div",{class:"ytLpCouponBannerViewModelBody"},_.K(_.Ow,{text:function(){var D;
return(D=V.data())==null?void 0:D.subtitle}})))))},"ec");
JCF.idomCompat=!0;_.Fj=Tjl.getInstance();var rCY=_.MA(function(V){return _.K("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":V.shouldAriaHideContent},_.K("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:V.questionId},_.K(_.Ow,{text:V.question})))},"fc"),HrV=_.MA(function(V){var D=V.data;
var f=V.themeOverride;V=_.r(_.HJ(!1,void 0,"ljTVPd"));var n=V.next().value,t=V.next().value;V=_.jl(function(){t(!n());return!1});
var J=function(){return n()?"EXPAND_LESS":"EXPAND_MORE"},H=("faq-container"+_.Bk(_.Fj)).toString(),Q="faq-question-and-answers-section-question"+_.Bk(_.Fj),T={},y={};
return _.K("faq-entry-view-model-c3",null,_.K("div",{class:_.KT("yt-lp-faq-entry-view-model",(T["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return f==null?void 0:f().useDarkTheme},T))},_.K("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":V,role:"button","aria-expanded":n,"aria-labelledby":Q.toString(),"tab-index":"0"},_.K(rCY,{question:function(){return D().question},
questionId:Q,shouldAriaHideContent:!0}),_.K(_.e,{cond:function(){return n()!==void 0},
then:function(){return _.K("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.K(_.cj,{icon:J,ariaHidden:!0}),_.K("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.K("div",{class:_.KT("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(y["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!n()},y))},_.K("div",{id:H},_.K(_.FB,{each:function(){return D().answers||[]}},function(Z){return _.K("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.K(_.Ow,{text:Z}))})))))},"gc");
HrV.idomCompat=!0;var wzP=_.MA(function(V){var D=V.data;var f=V.themeOverride;V={};return _.K("lp-faq-section-view-model-c3",null,_.K("div",{class:_.KT("yt-lp-faq-section-view-model",(V["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},V["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},V))},_.K("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.K(_.e,{cond:function(){return D().header},
then:function(n){return _.K("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.K(_.Ow,{text:n}))}}),_.K("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.K(_.BW,{data:function(){return D().faqs}},{faqEntryViewModel:function(n){return _.K(HrV,{data:n.data,
themeOverride:f})}})),_.K("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.K(_.FB,{each:function(){return D().footers||[]}},function(n){return _.K(_.Ow,{text:n})})),_.K(_.e,{cond:function(){return D().legal},
then:function(n){return _.K("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.K(_.Ow,{text:n}))}}))))},"hc");
wzP.idomCompat=!0;var Q6Y=_.MA(function(V){var D=V.data;var f=V.themeOverride;_.Nl(function(){var H=D().gtmId;H&&_.km(H,_.XB("GL",""))});
var n={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var H,Q,T;return(T=(H=D().logo)==null?void 0:(Q=H.accessibilityData)==null?void 0:Q.label)!=null?T:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},t=_.DY().resolve(_.Vx(_.pm)),J=function(){return t&&t()||(f==null?void 0:f().useDarkTheme)};
return _.K("lp-header-section-view-model",null,_.K("div",{class:function(){var H=D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",Q=D().marginType==="LP_SECTION_MARGIN_TYPE_TOP",T=f==null?void 0:f().useDarkTheme,y=["lp-header-section-view-model"];H&&y.push("lp-header-section-view-model--ptc-layout-type");Q&&y.push("lp-header-section-view-model__lp-header-section-margin");T&&y.push("lp-header-section-view-model--premium-force-dark-mode");return y.join(" ")}},_.K(_.e,{cond:function(){return D().logo},
then:function(){return _.K("div",null,_.K(_.e,{cond:J,then:function(){return _.K(_.e,{cond:function(){var H;return(H=D().logo)==null?void 0:H.imageDark},
then:function(H){return _.K(_.xt,Object.assign({},{data:H},n))}})},
else:function(){return _.K(_.e,{cond:function(){var H;return(H=D().logo)==null?void 0:H.imageLight},
then:function(H){return _.K(_.xt,Object.assign({},{data:H},n))}})}}))}}),_.K(_.e,{cond:function(){return D().title},
then:function(H){return _.K("div",{class:"lp-header-section-view-model__lp-header-title"},_.K(_.Ow,{text:H}))}}),_.K("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.K(_.e,{cond:function(){return D().subtitles},
then:function(H){return _.K(_.FB,{each:H},function(Q){return _.K("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.K(_.Ow,{text:Q}))})}})),_.K(_.e,{cond:function(){return D().additionalInfo},
then:function(H){return _.K("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.K(_.Ow,{text:H}))}}),_.K("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.K(_.e,{cond:function(){return D().primaryButton},
then:function(H){return _.K("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.K(_.BW,{data:H},{buttonViewModel:_.HO}))}}),_.K(_.e,{cond:function(){return D().secondaryButton},
then:function(H){return _.K("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.K(_.BW,{data:H},{buttonViewModel:_.HO}))}})),_.K(_.e,{cond:function(){return D().otherOffersInfo},
then:function(H){return _.K("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.K(_.Ow,{text:H}))}}),_.K("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.K(_.e,{cond:function(){return D().billingInfo},
then:function(H){return _.K(_.FB,{each:H},function(Q){return _.K("div",null,_.K(_.Ow,{text:Q}))})}}))))},"ic");
Q6Y.idomCompat=!0;var T7U=_.MA(function(V){var D=V.data;var f=_.IU(V.themeOverride,{useDarkTheme:!1});V={};V=_.KT("ytm-lp-headline-section-view-model",(V["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return f().useDarkTheme},V));
return _.K("lp-headline-section-view-model",null,_.K("div",{class:V},_.K("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.e,{cond:function(){return D().subtitle},
then:function(n){return _.K("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.K(_.Ow,{text:n}))}})))},"jc");var brl=_.MA(function(V){var D=V.data;var f=V.themeOverride;var n=_.DY().resolve(_.Vx(_.pm)),t=function(){return n&&n()||(f==null?void 0:f().useDarkTheme)},J=function(){var y,Z;
var l=t()?(y=D().textBackgroundImage)==null?void 0:y.imageDark:(Z=D().textBackgroundImage)==null?void 0:Z.imageLight;return ZQx((l==null?void 0:l.sources)||[])},H=function(){var y,Z;
return t()?(y=D().featureImage)==null?void 0:y.imageDark:(Z=D().featureImage)==null?void 0:Z.imageLight},Q=function(){return D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},T=function(){var y,Z;
return t()?(y=D().logo)==null?void 0:y.imageDark:(Z=D().logo)==null?void 0:Z.imageLight};
return _.K("ytm-lp-large-feature-section-view-model",null,_.K("div",{class:function(){var y=D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",Z=D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",l=(D().index||0)%2===1,G=f==null?void 0:f().useDarkTheme,F=["yt-lp-large-feature-section-view-model"];y?F.push("yt-lp-large-feature-section-view-model--music-feature-type"):Z?F.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):l||F.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
G&&F.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return F.join(" ")}},_.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.K(_.e,{cond:H,
then:function(){return _.K(_.xt,{data:function(){return H()},
alt:function(){var y,Z,l;return(l=(y=D().featureImage)==null?void 0:(Z=y.accessibilityData)==null?void 0:Z.label)!=null?l:""},
contentMode:Q})}})),_.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var y;return((y=J())==null?0:y.url)?"background-image: url("+_.cS(J().url)+");":""}},_.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.K(_.e,{cond:T,
then:function(){return _.K(_.xt,{data:function(){return T()},
alt:function(){var y,Z,l;return(l=(y=D().logo)==null?void 0:(Z=y.accessibilityData)==null?void 0:Z.label)!=null?l:""},
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"})}}),_.K(_.e,{cond:function(){return D().eyebrowText},
then:function(){return _.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.K(_.Ow,{text:function(){return D().eyebrowText}}))}}),_.K(_.e,{cond:function(){return D().title},
then:function(){return _.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.K(_.Ow,{text:function(){return D().title}}))}}),_.K(_.e,{cond:function(){return D().subtitles},
then:function(){return _.K("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.K(_.FB,{each:function(){return D().subtitles||[]}},function(y){return _.K(_.Ow,{text:y})}))}})))))},"kc");
brl.idomCompat=!0;var KPu=_.MA(function(V){return _.K("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.K("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.K(_.cj,{icon:function(){var D;return(D=V.data())==null?void 0:D.iconType},
className:function(){var D;switch((D=V.data())==null?void 0:D.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var D;return((D=V.data())==null?void 0:D.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.K("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.K(_.Ow,{text:function(){var D;
return(D=V.data())==null?void 0:D.text},
className:function(){var D;return((D=V.data())==null?void 0:D.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"lc");var yCF=_.MA(function(V){V=_.Or(V,{config:void 0,themeOverride:void 0});var D=V.data,f=V.config,n=V.themeOverride;V={};V=_.KT("ytm-lp-offer-card-option-view-model",(V["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var Q;return(Q=n())==null?void 0:Q.useDarkTheme},V));
var t=_.jl(function(){var Q,T;(Q=f())==null||(T=Q.handleRadioButtonClick)==null||T.call(Q,D());return!1}),J=function(){var Q;
return(Q=f())==null?void 0:Q.shouldDisplayRadioButton},H=function(){var Q;
return(Q=D().featureListItems)!=null?Q:[]};
return _.K("ytm-lp-offer-card-option-view-model",null,_.K("div",{class:V,"on:click":_.jl(function(){if(J()){var Q,T;(Q=f())==null||(T=Q.handleRadioButtonClick)==null||T.call(Q,D())}return!1})},_.K(_.e,{cond:J,
then:function(){return _.K("div",null,_.K("input",{type:"radio","on:click":t,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var Q;return!((Q=f())==null||!Q.isOptionSelected)}}))}}),_.K("div",null,_.K("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.K(_.Ow,{text:function(){return D().eyebrowText}})),_.K("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.K(_.Ow,{text:function(){return D().subtitle}})),_.K(_.e,{cond:function(){return H().length>0},
then:function(){return _.K("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.K(_.BW,{data:H},{lpFeatureListItemViewModel:KPu}))}}),_.K("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.K(_.Ow,{text:function(){return D().description}})))))},"mc");
yCF.idomCompat=!0;var ZrY=_.MA(function(V){var D=V.data;var f=V.themeOverride;V=_.r(_.Gk(function(){var J,H=(J=D().offerOptions)==null?void 0:J[0];return _.g(H,F4U)||{}}));
var n=V.next().value,t=V.next().value;V={};return _.K("ytm-lp-offer-card-view-model",null,_.K("div",{class:_.KT("ytm-lp-offer-card-view-model",(V["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},V))},_.K("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.K(_.e,{cond:function(){return D().titleIconType},
then:function(){return _.K("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.K(_.cj,{icon:function(){var J;return((J=D().titleIconType)==null?void 0:J.toString())||""}}))}}),_.K("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.BW,{data:function(){return D().titleBadge}},{badgeViewModel:function(J){return _.K("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.K(_.Mh,{data:J.data}))}})),_.K("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.K(_.BW,{data:function(){return D().offerOptions}},{lpOfferCardOptionViewModel:function(J){var H=J.data;
return _.K(_.th,null,_.K("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.K(yCF,{data:H,config:function(){var Q;return{shouldDisplayRadioButton:(D().offerOptions||[]).length>1,isOptionSelected:H().id===((Q=n())==null?void 0:Q.id),handleRadioButtonClick:function(T){return void t(T)}}},
themeOverride:f}))}})),_.K("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.K(_.BW,{data:function(){var J;
return(J=n())==null?void 0:J.purchaseButtonOverride}},{buttonViewModel:_.HO}))))},"nc");
ZrY.idomCompat=!0;var j66=_.MA(function(V){var D=V.data;var f=V.themeOverride;V={};V=_.KT("ytm-lp-offer-card-section-view-model",(V["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var n;return f==null?void 0:(n=f())==null?void 0:n.useDarkTheme},V));
return _.K("ytm-lp-offer-card-section-view-model",null,_.K("div",{class:V},_.K(_.e,{cond:function(){return D().title!==void 0},
then:function(){return _.K("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.K("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.e,{cond:function(){return D().subtitle},
then:function(){return _.K("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.K(_.Ow,{text:function(){return D().subtitle}}))}}))}}),_.K("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.K(_.BW,{data:function(){return D().offerCards}},{lpOfferCardViewModel:function(n){return _.K("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.K(ZrY,{data:n.data,
themeOverride:f}))}})),_.K(_.e,{cond:function(){return D().footer},
then:function(){return _.K("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.K(_.Ow,{text:function(){return D().footer}}))}})))},"oc");var lmE=_.MA(function(V){var D=V.data;return _.K("lp-offer-table-cell-content-view-model",null,_.K("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.K(_.kw,null,_.K(_.gj,{when:function(){return D().title}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return D().title}})}),_.K(_.gj,{when:function(){return D().subTitle}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return D().subTitle}})}),_.K(_.gj,{when:function(){return D().featureDescription}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return D().featureDescription}})}),_.K(_.gj,{when:function(){return D().description}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return D().description}})}),_.K(_.gj,{when:function(){return D().iconType}},function(){return _.K("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.K(_.cj,{icon:function(){return D().iconType.toString()}}))}),_.K(_.gj,{when:function(){return D().purchaseButton}},function(){return _.K(_.BW,{data:function(){return D().purchaseButton}},{buttonViewModel:function(f){return _.K("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.K(_.HO,{data:f.data}))}})}),_.K(_.gj,{when:function(){return D().note}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return D().note}})}),_.K(_.gj,{when:function(){return D().featureDetail}},function(){return _.K(_.Ow,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return D().featureDetail}})}),_.K(_.gj,{when:function(){return D().badge}},function(){return _.K(_.BW,{data:function(){return D().badge}},{badgeViewModel:_.Mh})}))))},"pc");
lmE.idomCompat=!0;var G8F=_.MA(function(V){var D=V.data;return _.K("lp-offer-table-cell-view-model",null,_.K("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(D().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;"}}},_.K(_.BW,{data:function(){return D().contents}},{lpOfferTableCellContentViewModel:lmE})))},
"qc");
G8F.idomCompat=!0;var eQV=_.MA(function(V){var D=V.data;var f=V.lpTableIsFirstRow;var n=V.lpTableIsLastRow;var t=function(){return(f==null?0:f())?"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"},J=function(){return(f==null?0:f())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(n==null?0:n())?"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 _.K("ytm-lp-offer-table-row-view-model",null,_.K("div",{class:"yt-lp-offer-table-row-view-model"},_.K(_.BW,{data:function(){return D().rowHeaderCell}},{lpOfferTableCellViewModel:function(H){return _.K("div",{class:t},_.K(G8F,{data:H.data}))}}),_.K(_.BW,{data:function(){return D().contentCells}},{lpOfferTableCellViewModel:function(H){return _.K("div",{class:J},_.K(G8F,{data:H.data}))}})))},"rc");
eQV.idomCompat=!0;var cCY=_.MA(function(V){var D=V.data;var f=V.themeOverride;var n=_.DY().resolve(_.Vx(_.pm)),t=function(){return _.g(D().logo,aDE)||{}};
V={};return _.K("ytm-lp-offer-table-section-view-model",null,_.K("div",{class:"yt-lp-offer-table-view-model"},_.K(_.e,{cond:function(){var J,H;return n&&n()||(f==null?0:f().useDarkTheme)?(J=t())==null?void 0:J.imageDark:(H=t())==null?void 0:H.imageLight},
then:function(J){return _.K(_.xt,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var H,Q,T;return(T=(H=t())==null?void 0:(Q=H.accessibilityData)==null?void 0:Q.label)!=null?T:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.K(_.Ow,{text:function(){return D().subtitle}})),_.K(_.e,{cond:function(){return D().disclaimers},
then:function(J){return _.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.K(_.FB,{each:J},function(H){return _.K("div",null,_.K(_.Ow,{text:H}))}))}}),_.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.K(_.BW,{data:function(){return D().rows}},{lpOfferTableRowViewModel:function(J,H){return _.K(eQV,{data:J.data,
lpTableIsFirstRow:function(){return H()===0},
lpTableIsLastRow:function(){return H()===D().rows.length-1}})}})),_.K("div",{class:_.KT((V["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return D().hasFooterBackground},V))},_.K(_.e,{cond:function(){return D().footer},
then:function(){return _.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.K(_.Ow,{text:function(){return D().footer}}))}}),_.K(_.e,{cond:function(){return D().footerTitle},
then:function(){return _.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.K(_.Ow,{text:function(){return D().footerTitle}}))}}),_.K(_.e,{cond:function(){return D().footerDescription},
then:function(){return _.K("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.K(_.Ow,{text:function(){return D().footerDescription}}))}}))))},"sc");
cCY.idomCompat=!0;var FPH=_.MA(function(V){var D=V.data;var f=V.themeOverride;var n=_.DY().resolve(_.Vx(_.pm)),t=function(){var Q;return f==null?void 0:(Q=f())==null?void 0:Q.useDarkTheme},J=function(){var Q,T;
return n&&n()||t()?(Q=D().image)==null?void 0:Q.imageDark:(T=D().image)==null?void 0:T.imageLight};
V={};V=_.KT("ytm-lp-small-feature-section-view-model",(V["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=t,V));var H=function(){var Q,T,y;return(y=(Q=D().image)==null?void 0:(T=Q.accessibilityData)==null?void 0:T.label)!=null?y:""};
return _.K("ytm-lp-small-feature-section-view-model",{class:V},_.K(_.e,{cond:function(){return J()&&!LX},
then:function(){return _.K("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.K(_.xt,{data:function(){return J()},
alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.K("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.K("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.K(_.e,{cond:function(){return D().title},
then:function(Q){return _.K(_.Ow,{text:Q})}})),_.K("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.K(_.Ow,{text:function(){return D().description}}))))},"tc");
FPH.idomCompat=!0;var gkl=_.MA(function(V){var D=V.data;var f=V.themeOverride;V={};return _.K("ytm-lp-small-feature-section-group-view-model",null,_.K("div",{class:_.KT("ytm-lp-small-feature-section-group-view-model",(V["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},V))},_.K("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.K(_.BW,{data:function(){return D().smallFeatures}},{lpSmallFeatureSectionViewModel:function(n){return _.K("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.K(FPH,{data:n.data,
themeOverride:f}))}}))))},"uc");
gkl.idomCompat=!0;_.fT(_.MA(function(V){var D=V.data;var f=function(){return D().forcedTheme==="USER_INTERFACE_THEME_DARK"},n=function(){return D().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},t=function(){var H="",Q,T;
var y=_.DY().resolve(_.Vx(_.pm));y=f()||(y==null?0:y())?(Q=D().themedImageViewModel)==null?void 0:Q.imageDark:(T=D().themedImageViewModel)==null?void 0:T.imageLight;(Q=ZQx((y==null?void 0:y.sources)||[]))&&Q.url&&(H=n()?"background-image: linear-gradient(to bottom, transparent, "+(D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.cS(Q.url)+");":"background-image: url("+_.cS(Q.url)+");");return H},J=function(){return{useDarkTheme:f()}};
V={};return _.K("yt-section-group-view-model",null,_.K("div",{class:_.KT("yt-lp-section-group-view-model",(V["yt-lp-section-group-view-model--premium-force-dark-mode"]=f,V["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},V))},_.K(_.e,{cond:function(){return t().length},
then:function(){var H={};return _.K("div",{class:_.KT("yt-lp-section-group-view-model__bg-image",(H["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=n,H)),style:t})}}),_.K("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.K(_.BW,{data:function(){return D().sections}},{lpFaqSectionViewModel:function(H){return _.K(wzP,{data:H.data,
themeOverride:J})},
lpHeaderSectionViewModel:function(H){return _.K(Q6Y,{data:H.data,themeOverride:J})},
lpHeadlineSectionViewModel:function(H){return _.K(T7U,{data:H.data,themeOverride:J})},
lpLargeFeatureSectionViewModel:function(H){return _.K(brl,{data:H.data,themeOverride:J})},
lpOfferCardSectionViewModel:function(H){return _.K(j66,{data:H.data,themeOverride:J})},
lpComplexOfferCardSectionViewModel:function(H){return _.K(okp,{data:H.data})},
lpOfferTableSectionViewModel:function(H){return _.K(cCY,{data:H.data,themeOverride:J})},
lpSmallFeatureSectionGroupViewModel:function(H){return _.K(gkl,{data:H.data,themeOverride:J})},
lpCouponBannerViewModel:function(H){return _.K(JCF,{data:H.data})}}))))},"vc"),"yt-section-group-view-model",{props:{data:_.WX}});var SxU=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.gi=_.MA(function(V){function D(){if(SxU.has(V.data().displayType)){var y=!n(),Z;if((Z=V.disableDeselection)==null||!Z.call(V)||y){V.data().selected=y;Z=Object.assign({},H(),{selected:y});Q(Z);var l;(l=V.callback)==null||l.call(V,Z,y)}}}
var f=_.W2("chip-view-model"),n=function(){var y,Z;return!!(((y=V.selected)==null?void 0:y.call(V))!==void 0?(Z=V.selected)==null?0:Z.call(V):H().selected)},t=_.r(_.Gk(V.data)),J=t.next().value;
t=t.next().value;var H=J,Q=t,T=_.KX(idx,function(){return V.data().chipEntityKey||""});
return _.K("chip-view-model",{class:"ytChipViewModelHost",el:f},_.K(Jm6,{data:function(){var y,Z=Object.assign({},H(),{selected:n()}),l=T(),G=(y=V.disableDeselection)==null?void 0:y.call(V);a:switch(Z.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":y=1;break a;default:y=0}return{text:(l==null?void 0:l.text)||Z.text,state:Z.disabled?1:Z.selected?0:2,type:y,onTap:Wx9(Z,f,D,G),accessibilityLabel:Z.accessibilityLabel||Z.text}}}))},"wc");
_.gi.idomCompat={callbacks:{callback:!0}};_.vku=_.MA(function(V){var D=_.KX($bn,function(){var H;return(H=V.data())==null?void 0:H.chipBarStateEntityKey}),f=function(){return V.data().disableDeselection},n=_.r(_.Gk(function(){var H;
if(((H=D())==null?void 0:H.selectedIndex)!=void 0)return D().selectedIndex;var Q,T;H=_.r(((Q=V.data())==null?void 0:(T=Q.chips)==null?void 0:T.entries())||[]);for(Q=H.next();!Q.done;Q=H.next()){Q=_.r(Q.value);T=Q.next().value;Q=Q.next().value;var y=void 0;if((y=_.g(Q,_.EC))==null?0:y.selected)return T}return-1})),t=n.next().value,J=n.next().value;
return _.K("chip-bar-view-model",{class:_.KT("ytChipBarViewModelHost",V.className),role:"tablist"},_.K(_.BW,{data:function(){return V.data().chips}},{chipViewModel:function(H,Q){return _.K("div",{class:"ytChipBarViewModelChipWrapper"},_.K(_.gi,{data:H.data,
selected:function(){return Q()===t()},
callback:function(T,y){T=!!y;y=Q();J(T?y:-1);var Z,l=(Z=V.data())==null?void 0:Z.chipBarStateEntityKey;l&&T&&_.LI(_.y1("chipBarStateEntity",l,{key:l,selectedIndex:y}))},
disableDeselection:V.disableDeselection||f}))}}))},"xc");_.fT(_.vku,"chip-bar-view-model",{props:{data:_.Dn,className:_.Dn,disableDeselection:_.Dn}});_.k8L=_.MA(function(V){var D=V.data;V={};return _.K("divider-view-model",{class:_.KT("divider-view-model-wiz",(V["divider-view-model-wiz__inset-thin-padding"]=function(){return D().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},V))},_.K("div",{class:_.KT("divider-view-model-wiz__base-divider",function(){return phx(D().dividerStyle)}),
style:_.el({"background-color":function(){return D().backgroundColor?_.AP(D().backgroundColor):void 0}})}))},"yc");
_.k8L.idomCompat=!0;_.fT(_.k8L,"divider-view-model",{props:{data:_.WX}});var d3=new Map,BC=new Map,OdZ=0,un;var fV9=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],P53={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var s6p,B7U;s6p=function(V){return function(D){return function(){return String(D())+V}}};
_.vi=s6p("px");B7U=s6p("s");var uD6=_.MA(function(V){function D(I){return function(){var x=F().numItemsPerGridRow,oY=I()*x;x=oY+x;var wZ,ZZ;return(ZZ=(wZ=n().contents)==null?void 0:wZ.slice(oY,x))!=null?ZZ:[]}}
var f=_.Or(V,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),n=f.data,t=f.layoutContainerWidth,J=f.shouldUseOwnContainerSize,H=f.marginSettings;f=_.r(_.HJ(!0,void 0,"qgr2Je"));var Q=f.next().value,T=f.next().value,y=function(){var I,x=(I=_.g(n().showMoreButton,_.cW))==null?void 0:I.trackingParams;x&&_.H5(_.lS(),x);T(!1)},Z=function(){var I,x=(I=_.g(n().showLessButton,_.cW))==null?void 0:I.trackingParams;
x&&_.H5(_.lS(),x);T(!0)};
f=_.W2("grid-shelf-view-model");var l=_.JG3(f,{canHaveZeroSize:!1}),G=function(){var I;return(I=n().contentAspectRatio)!=null?I:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},F=_.yT(function(){var I=_.WW({containerWidth:J()&&l.width()>0?l.width()||t():t(),
sizing:"EXTRA_COMPACT",marginSettings:H(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:I.maxContainerWidth,numItemsPerGridRow:I.numItems,contentPadding:J()?I.margin:I.contentMargin,itemWidth:I.itemWidth,itemMargin:I.gutter/2}},void 0,"pqVdjc"),k=function(){if(n().enableVerticalExpansion){if(Q())return d();
var I,x,oY=(x=(I=n().contents)==null?void 0:I.length)!=null?x:0;return Math.ceil(oY/F().numItemsPerGridRow)}return F().numItemsPerGridRow<=2?2:1},d=function(){var I;
return Math.ceil(((I=n().minCollapsedItemCount)!=null?I:1)/F().numItemsPerGridRow)},z=function(){return n().enableVerticalExpansion&&n().showLessButton&&!Q()&&k()>d()},C=function(){var I,x;
return n().enableVerticalExpansion&&n().showMoreButton&&Q()&&((x=(I=n().contents)==null?void 0:I.length)!=null?x:0)>F().numItemsPerGridRow*d()},A=function(){return!z()},O=function(){return!C()},W={};
return _.K("grid-shelf-view-model",{class:_.KT("ytGridShelfViewModelHost",V.className,(W.ytGridShelfViewModelHostHasBottomButton=function(){return z()||C()},W)),
el:f,style:_.el({"margin-left":(0,_.vi)(function(){return F().contentPadding}),
"margin-right":(0,_.vi)(function(){return F().contentPadding})})},_.K(_.e,{cond:function(){return _.g(n().header,hPV)},
then:function(I){return _.K(_.nQ,{data:I,disableHorizontalPadding:!0})}}),_.K("div",null,_.K(_.FB,{each:function(){return Array(k())}},function(I,x){return _.K(dfp,{className:V.className,
items:D(x),responsiveGridShelfLayout:F,contentAspectRatio:G})})),_.K("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.K(_.BW,{data:function(){return n().showMoreButton}},{buttonViewModel:function(I){return _.K("div",{hidden:O},_.K(_.HO,{data:I.data,
onClick:y}))}}),_.K(_.BW,{data:function(){return n().showLessButton}},{buttonViewModel:function(I){return _.K("div",{hidden:A},_.K(_.HO,{data:I.data,
onClick:Z}))}})))},"zc");
uD6.idomCompat=!0;var dfp=_.MA(function(V){var D=V.items;var f=V.responsiveGridShelfLayout;var n=V.contentAspectRatio;V=V.className;var t=_.W2("div");IoL(t,function(){a:{var H=t.value;for(var Q=D(),T=[],y=0;y<Q.length;y++){var Z=_.g(Q[y],dWl);if(!Z||Z==null||!Z.inlinePlayerData){H=null;break a}var l=H.children.item(y);if(!l){H=null;break a}T.push({thumbnailElement:l,videoData:Z})}H={gridVideoPreviewData:{gridItems:T}}}return H});
var J=(0,_.vi)(function(){return-f().itemMargin});
return _.K("div",{el:t,class:_.KT("ytGridShelfViewModelGridShelfRow",V),style:_.el({"margin-left":J,"margin-right":J})},_.K(_.BW,{data:D,replacementWrapper:function(H){return _.K(N7Y,{responsiveGridShelfLayout:f},H)}},{shortsLockupViewModel:function(H){return _.K(N7Y,{responsiveGridShelfLayout:f},_.K(yWl,{data:H.data,
aspectRatio:function(){return n()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ac"),N7Y=_.MA(function(V){return _.K("div",{style:_.el({width:(0,_.vi)(function(){return V.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+V.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},V.children)},"Bc");
uD6.idomCompat=!0;_.fT(uD6,"grid-shelf-view-model",{props:{data:_.WX,layoutContainerWidth:_.WX,shouldUseOwnContainerSize:_.WX,marginSettings:_.WX,className:_.WX}});_.mfY=_.MA(function(V){var D=_.r(_.HJ(!1,void 0,"YYtxR")),f=D.next().value,n=D.next().value;D={};return _.K("yt-alert-banner-view-model",{class:_.KT("ytAlertBannerViewModelHost",V.className,function(){var t;a:switch((t=V.data())==null?void 0:t.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":t="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":t="ytAlertBannerViewModelWarning";break a;default:t="ytAlertBannerViewModelInformational"}return t},(D.ytAlertBannerViewModelDismissed=
f,D.ytAlertBannerViewModelFullbleed=V.fullbleed,D.ytAlertBannerViewModelNarrow=V.narrow,D.ytAlertBannerViewModelIsInRichGrid=V.isInRichGrid,D))},_.K(_.e,{cond:function(){var t;
return!((t=V.data())==null?0:t.hideIcon)},
then:function(){return _.K("div",{class:"ytAlertBannerViewModelIcon"},_.K(_.cj,{icon:function(){return"info_circle"}}))}}),_.K("div",{class:"ytAlertBannerViewModelOuterContainer"},_.K("div",{class:"ytAlertBannerViewModelContainer"},_.K("div",{class:"ytAlertBannerViewModelContent"},_.K("div",{class:"ytAlertBannerViewModelHeading"},_.K(_.Ow,{text:function(){var t;
return(t=V.data())==null?void 0:t.heading}})),_.K("div",{class:"ytAlertBannerViewModelBody"},_.K(_.Ow,{text:function(){var t;
return(t=V.data())==null?void 0:t.body}})))),_.K(_.BW,{data:function(){var t;
return(t=V.data())==null?void 0:t.actionButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.K(_.BW,{data:function(){var t;
return(t=V.data())==null?void 0:t.dismissButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var J;((J=V.data())==null?0:J.disableLocalDismissBehavior)||n(!0)}})}}))},"Cc");_.fT(_.mfY,"yt-alert-banner-view-model",{props:{data:_.WX,fullbleed:_.WX,narrow:_.WX,isInRichGrid:_.WX,className:_.WX}});var rGF=_.eK({chipViewModel:_.gi,buttonViewModel:_.HO});_.V$(HeR);var zQY;zQY=_.MA(function(V){var D=V.data;var f=V.callback;var n=V.enableSingleChipSelection;var t=V.disableChipsScrollAnimation;var J=_.py("div");V=_.r(_.HJ(!0,void 0,"ULL8g"));var H=V.next().value,Q=V.next().value;V=_.r(_.HJ(!1,void 0,"cWhQn"));var T=V.next().value,y=V.next().value,Z=!1,l=0;_.B9(function(){Q(k());y(d())});
V=_.r(_.Gk(function(){var oY={};return D().autoselectedChipIndex!=null?(oY[D().autoselectedChipIndex]=!0,oY):{}}));
var G=V.next().value,F=V.next().value,k=function(){var oY=J.value;return oY==null||oY.scrollLeft-1<=0},d=function(){var oY=J.value;
return oY==null?!1:oY.scrollLeft+1>=(oY==null?NaN:oY.scrollWidth)-(oY==null?NaN:oY.clientWidth)},z=function(){return D().isHorizontallyScrollable},C=function(oY){J.value!=null&&(_.XB("HTML_DIR")==="rtl"&&(oY=-oY),J.value.scrollBy({left:oY,
behavior:(t==null?0:t())?"instant":"smooth"}))},A=function(){C(-320)},O=function(){C(320)},W=_.jl(function(oY){Z=!0;
l=oY.clientX}),I=_.jl(function(oY){if(Z){oY=oY.clientX;
var wZ=oY-l;l=oY;var ZZ;(ZZ=J.value)==null||ZZ.scrollBy({left:-wZ})}}),x=_.jl(function(){var oY=k(),wZ=d();
oY!==H()&&Q(oY);wZ!==T()&&y(wZ)});
xb("pointerup",function(){Z&&(Z=!1)});
return _.K("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.K(_.V4,{contentId:function(){return D().contentId},
useModernStyle:!0},function(){var oY={},wZ={};return _.K("div",null,_.K(_.e,{cond:function(){return D().title},
then:function(){return _.K("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.K("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return D().title}),_.K(_.BW,{data:function(){return D().overflowButton}},{buttonViewModel:_.HO}))}}),_.K("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.K(_.e,{cond:function(){return D().previousButton},
then:function(){var ZZ={};return _.K("div",{class:_.KT("ytChipsShelfViewModelLeftArrowContainer",(ZZ.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return H()},ZZ))},_.K(_.BW,{data:function(){return D().previousButton}},{buttonViewModel:function(sd){return _.K(_.HO,{data:sd.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:A})}}))}}),_.K("div",{el:J,
"on:pointerdown":W,"on:pointermove":I,"on:scroll":x,class:_.KT("ytChipsShelfViewModelChipsScrollContainer",(oY.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=z,oY))},_.K("div",{class:_.KT("ytChipsShelfViewModelChipsContainer",(wZ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=z,wZ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,wZ)),role:"tablist"},_.K(_.BW,{data:function(){return D().contents}},{chipViewModel:function(ZZ,sd){return _.K("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.K(_.gi,{data:ZZ.data,
callback:function(NU,Bn){var aY=sd();if(n==null?0:n()){var Ed={};F((Ed[aY]=Bn,Ed))}else Ed={},F(Object.assign({},G(),(Ed[aY]=Bn,Ed)));f==null||f(NU,Bn,aY)},
disableDeselection:n,selected:function(){return!!G()[sd()]}}))}}))),_.K(_.e,{cond:function(){return D().nextButton},
then:function(){var ZZ={};return _.K("div",{class:_.KT("ytChipsShelfViewModelRightArrowContainer",(ZZ.ytChipsShelfViewModelRightArrowContainerIsHidden=T,ZZ))},_.K(_.BW,{data:function(){return D().nextButton}},{buttonViewModel:function(sd){return _.K(_.HO,{data:sd.data,
className:"ytChipsShelfViewModelRightArrow",onClick:O})}}))}})))}))},"Dc");
_.RQE=_.c("enable_chips_shelf_view_model_fully_reactive")?zQY:_.Zn(HeR,{callbacks:{callback:!0}});zQY.idomCompat={callbacks:{callback:!0}};_.fT(_.RQE,"chips-shelf-view-model",{props:{data:_.WX,callback:_.Dn,enableSingleChipSelection:_.WX,disableChipsScrollAnimation:_.WX}});var CcF=_.MA(function(V){V=_.Or(V,{disabled:!1});var D=V.active,f=V.disabled;V={};V=_.KT("ytSwitchShapeTrack",(V.ytSwitchShapeTrackActive=function(){return D()},V.ytSwitchShapeTrackDisabled=function(){return f()},V));
var n={};n=_.KT("ytSwitchShapeKnob",(n.ytSwitchShapeKnobActive=function(){return D()},n));
return _.K("switch-shape",{class:"ytSwitchShapeHost"},_.K("div",{class:V}),_.K("div",{class:n}))},"Ec");var qfY=_.MA(function(V){var D=_.Or(V,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),f=D.data;V=D.className;var n=D.handleOnTapEventInParent,t=D.parentActive;D=_.r(_.Gk(function(){var l;return(l=t())!=null?l:f().switchedOnByDefault||!1}));
var J=D.next().value,H=D.next().value,Q=function(){return f().isDisabled},T=_.W2("button");
D=_.jl(function(l){return l.key==="Enter"?(l.preventDefault(),T.value.click(),!1):!0});
var y=_.jl(function(l){if(f().handleOnTapEventInParent||n())return!0;if(Q())return!1;QZ9(f(),J(),l);H(!J());return!1}),Z={};
Z=_.KT("ytSwitchButtonViewModelButton",(Z.ytSwitchButtonViewModelTappable=function(){return!Q()},Z));
return _.K("switch-button-view-model",{class:_.KT("ytSwitchButtonViewModelHost",V)},_.K("button",{el:T,class:Z,"on:click":y,"on:keydown":D,"aria-label":function(){return J()?f().a11yLabelSwitchedOn:f().a11yLabelSwitchedOff},
"aria-checked":J,"aria-disabled":Q,role:"switch"},_.K(CcF,{active:J,disabled:Q})))},"Fc");var Eko=_.MA(function(V){var D=_.Or(V,{checked:!1});V=D.name;var f=D.onChange,n=D.onClick,t=D.checked,J=D.labelRenderable,H=D.hasLeadingLabel,Q=D.labelClass,T=D.isCompact,y=D.selectElementClass;D=D.disableHorizontalPadding;var Z="checkbox"+_.Bk(_.Fj),l=_.jl(function(k){n==null||n(k);return!1}),G=_.jl(function(k){f==null||f(k);
return!1}),F={};
return _.K("checkbox-shape",null,_.K("label",{class:_.KT("checkbox-shape-wiz",Q,(F["checkbox-shape-wiz--compact"]=T,F["checkbox-shape-wiz--disable-horizontal-padding"]=D,F))},_.K("input",{class:"checkbox-shape-wiz__input",id:Z,checked:t,name:V,type:"checkbox","prop:checked":t,"on:change":G,"on:click":l}),_.K(_.e,{cond:function(){return!(H==null?0:H())},
then:function(){return _.K(XzF,{isLeading:!0,selectElementClass:y})}}),_.K(_.e,{cond:function(){return!!J},
then:function(){return _.K("div",{class:"checkbox-shape-wiz__label"},J==null?void 0:J())}}),_.K(_.e,{cond:H,
then:function(){return _.K(XzF,{isLeading:!1,selectElementClass:y})}})))},"Gc");
Eko.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var XzF=_.MA(function(V){var D=V.selectElementClass;V={};return _.K("div",{class:_.KT("checkbox-shape-wiz__checkbox",D,(V["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(D==null?0:D())},V)),
"aria-hidden":"true"},_.K(_.cj,{icon:_.c("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.K(_.cj,{icon:_.c("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Hc");_.kh=_.MA(function(V){var D=V.name;var f=V.onChange;var n=V.onClick;var t=V.checked;var J=V.labelRenderable;var H=V.useCheckIcon;var Q=V.hasLeadingLabel;var T=V.labelClass;var y=V.isCompact;var Z=V.selectElementClass;var l=V.ariaLabel;V=V.className;var G="radio"+_.Bk(_.Fj),F=_.W2("input"),k=_.jl(function(I){F.value.checked=!(t==null||!t());f==null||f(I);return!1}),d=_.jl(function(I){n==null||n(I);
return!1}),z=_.r(_.HJ(!1,void 0,"v5AMrb")),C=z.next().value,A=z.next().value;
z=_.jl(function(){var I;((I=_.DY().resolve(_.Vx(_.PO)))==null?0:I.isKeyBoardInUse())&&A(!0)});
var O=_.jl(function(){A(!1)}),W={};
return _.K("radio-shape",{class:_.KT("radio-shape-wiz",V)},_.K("input",{el:F,class:"radio-shape-wiz__input",id:G,"prop:checked":t,name:D,type:"radio","on:change":k,"on:click":d,"aria-label":l,"on:focusin":z,"on:focusout":O}),_.K("label",{class:_.KT("radio-shape-wiz__label-container",T,(W["radio-shape-wiz--compact"]=y,W["radio-shape-wiz__label-container--keyboard-focused"]=C,W)),for:G},_.K(_.e,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.K(ACE,{checked:t,useCheckIcon:H,isLeading:!0,selectElementClass:Z})}}),_.K(_.e,{cond:function(){return!!J},
then:function(){return _.K("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(l==null?0:l())?"true":"false"}},J==null?void 0:J())}}),_.K(_.e,{cond:Q,
then:function(){return _.K(ACE,{checked:t,useCheckIcon:H,isLeading:!1,selectElementClass:Z})}})))},"Ic");
_.kh.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ACE=_.MA(function(V){var D=V.useCheckIcon;var f=V.selectElementClass;V=function(){return(D==null?0:D())?"CHECK":_.c("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var n={};return _.K("div",{class:_.KT("radio-shape-wiz__radio",f,(n["radio-shape-wiz__radio--check-icon"]=D,n["radio-shape-wiz__radio--radio-default-style"]=function(){return!(f==null?0:f())},n)),
"aria-hidden":"true"},_.K(_.cj,{icon:V}),_.K(_.cj,{icon:V,active:function(){return!(D==null?0:D())}}))},"Jc");_.sH=_.MA(function(V){function D(){var aY;((aY=_.DY().resolve(_.Vx(_.PO)))==null?0:aY.isKeyBoardInUse())&&Bn(!0)}
function f(){Bn(!1)}
var n=V.data;var t=V.isMenuItem;var J=V.isCompact;var H=V.onTap;var Q=V.trailingAccessory;var T=V.hideSelectionTextChevron;var y=V.disabled;var Z=V.inPopup;var l=V.disableHorizontalPadding;var G=V.isOverlay;var F=V.isToggled;var k=_.c("apply_button_role_to_list_item"),d=_.CT(function(aY){a:{var Ed=n();if((Ed==null?0:Ed.entitySelectorType)&&(Ed==null?0:Ed.entityKey))switch(Ed.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":aY=_.QAR(aY,Ed.entityKey);
aY=aY==null?void 0:aY.value;Ed=!1;aY==="CAPTIONS_UNAVAILABLE"&&(Ed=!0,aY="");aY=Object.assign({},!!aY&&{selectionText:{content:aY}},!!aY&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Ed});break a;default:aY={}}else aY={}}return aY}),z=function(){return _.c("enable_web_shorts_captions_language_command")?Object.assign({},n(),d()):n()},C=function(){return!(z().isSelected===void 0||!z().selectionStyle||z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
A=function(){return(_.XO(z().rendererContext)||H)&&!C()},O=function(){return _.XO(z().rendererContext)||C()};
V={};G=_.KT("yt-list-item-view-model-wiz",(V["yt-list-item-view-model-wiz--is-overlay"]=G,V["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!k&&NU()},V));
V={};var W=_.KT("yt-list-item-view-model-wiz__label",(V["yt-list-item-view-model-wiz__container"]=function(){return!C()},V["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!z().isDisabled||!(y==null||!y())},V["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!z().subtitle},V["yt-list-item-view-model-wiz__container--compact"]=J,V["yt-list-item-view-model-wiz__container--tappable"]=A,V["yt-list-item-view-model-wiz__container--in-popup"]=Z,V["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return k&&NU()},V["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(l==null?void 0:l())&&!C()},V));
V={};var I=_.KT("yt-list-item-view-model-wiz__container",(V["yt-list-item-view-model-wiz__container--tappable"]=O,V["yt-list-item-view-model-wiz__container--compact"]=J,V["yt-list-item-view-model-wiz__container--in-popup"]=Z,V["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(l==null?void 0:l())&&C()},V)),x=function(){return z().leadingImage||z().leadingAccessory},oY=_.KT("yt-list-item-view-model-wiz__image-container",function(){return x()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),wZ=_.MA(function(){return _.K(_.e,{cond:function(){return k},
then:function(){return _.K("div",{class:W,el:_.h2(t0X(function(){return k&&A()},{focusin:D,
focusout:f})),role:function(){return O()||A()?"button":void 0},
tabindex:function(){return H||A()?0:void 0},
"on:keydown":sd,"on:click":ZZ},_.K(amP,{data:z,hideSelectionTextChevron:T,trailingAccessory:Q,isToggled:F}))},
else:function(){return _.K("div",{class:W},_.K(amP,{data:z,hideSelectionTextChevron:T,trailingAccessory:Q,isToggled:F}))}})},"Kc");
wZ.idomCompat=!0;var ZZ=_.jl(function(aY){return void(H==null?void 0:H(aY))}),sd=_.S3Z();
V=_.r(_.HJ(!1,void 0,"ewwfmd"));Z=V.next().value;V=V.next().value;var NU=Z,Bn=V;V=_.jl(function(){return!0});
Z=k?V:sd;V=k?V:ZZ;return _.K("yt-list-item-view-model",{el:_.h2(_.Ew(function(){return z().rendererContext}),t0X(function(){return!k&&(A==null?void 0:A())},{focusin:D,
focusout:f})),class:G,role:function(){return(t==null?0:t())?"menuitem":"listitem"},
tabindex:function(){var aY=A();aY=k?void 0:H||aY?0:void 0;return aY},
"on:keydown":Z,"on:click":V},_.K(_.e,{cond:C,then:function(){return _.K(_.kw,null,_.K(_.gj,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.K(Eko,{labelRenderable:function(){return _.K(wZ,null)},
isCompact:J,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:I,selectElementClass:oY,disableHorizontalPadding:l})}),_.K(_.gj,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.K(_.kh,{labelRenderable:function(){return _.K(wZ,null)},
isCompact:J,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:I,selectElementClass:oY})}),_.K(_.gj,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.K(_.kh,{labelRenderable:function(){return _.K(wZ,null)},
isCompact:J,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:I,selectElementClass:oY,useCheckIcon:!0})}),_.K(_.v9,null,function(){return _.K(wZ,null)}))},
else:function(){return _.K(wZ,null)}}))},"Lc");
_.sH.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var amP=_.MA(function(V){var D=V.data;var f=V.hideSelectionTextChevron;var n=V.trailingAccessory;var t=V.isToggled;return _.K(_.th,null,_.K(Yfr,{data:D,isLeading:!0,hideSelectionTextChevron:function(){return!(f==null||!f())},
isToggled:t}),_.K($fr,{data:D}),_.K(_.e,{cond:function(){return!!n},
then:function(){return _.K("div",{class:"yt-list-item-view-model-wiz__trailing"},n==null?void 0:n())},
else:function(){return _.K(Yfr,{data:D,isLeading:!1,hideSelectionTextChevron:function(){return!(f==null||!f())},
isToggled:t})}}))},"Mc"),Yfr=_.MA(function(V){var D=V.data;
var f=V.isLeading;var n=V.hideSelectionTextChevron;var t=V.isToggled;var J=_.KT("yt-list-item-view-model-wiz__button-container");V={};var H=_.KT("yt-list-item-view-model-wiz__image-container",(V["yt-list-item-view-model-wiz__leading"]=f,V["yt-list-item-view-model-wiz__trailing"]=function(){return!f()},V)),Q=function(){return f()?D().leadingImage:D().trailingImage},T=_.KT("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
V={};var y=_.KT("yt-list-item-view-model-wiz__accessory",(V["yt-list-item-view-model-wiz__leading"]=f,V["yt-list-item-view-model-wiz__trailing"]=function(){return!f()},V)),Z=function(){a:switch(D().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var l="expand_more";
break a;default:l="chevron_right"}return l};
return _.K(_.e,{cond:function(){var l=D(),G=f();return!!(G&&(l.leadingImage||l.leadingAccessory)||!G&&(l.trailingImage||l.trailingButton||l.trailingButtons||l.selectionText))},
then:function(){return _.K(_.th,null,_.K(_.e,{cond:Q,then:function(l){return _.K("div",{class:H,"aria-hidden":"true"},_.K(_.xt,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:T,isToggled:t}))}}),_.K(_.e,{cond:function(){return f()&&D().leadingAccessory},
then:function(){return _.K("div",{class:H},_.K(_.BW,{data:function(){return D().leadingAccessory}},{avatarViewModel:function(l){return _.K(_.vd,{data:l.data,
avatarButtonCustomClassName:T})},
collectionThumbnailViewModel:oUV}))}}),_.K(_.e,{cond:function(){return!f()&&D().trailingButton},
then:function(){return _.K("div",{class:J},_.K(_.BW,{data:function(){return D().trailingButton}},{buttonViewModel:function(l){return _.K(_.HO,{data:l.data,
className:y})}}))}}),_.K(_.e,{cond:function(){var l;
return!f()&&((l=D().trailingButtons)==null?void 0:l.buttons)},
then:function(){return _.K("div",{class:J},_.K(_.BW,{data:function(){var l;return(l=D().trailingButtons)==null?void 0:l.buttons}},{buttonViewModel:function(l){return _.K(_.HO,{data:l.data,
className:y})},
accountLinkButtonViewModel:function(l){return _.K(V7Y,{data:l.data,className:y})},
switchButtonViewModel:function(l){return _.K(qfY,{data:l.data,className:y})},
subscribeButtonViewModel:function(l){return _.K(_.FH,{data:l.data,isOverlay:!1,animateWidth:!1,className:y})},
toggleButtonViewModel:function(l){return _.K(_.FA,{data:l.data,className:y})}}))}}),_.K(_.e,{cond:function(){return!f()&&!!D().selectionText},
then:function(){return _.K(_.th,null,_.K(_.Ow,{text:function(){return D().selectionText},
className:_.KT("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.K(_.e,{cond:function(){return!n()},
then:function(){return _.K(_.cj,{icon:Z,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Nc"),$fr=_.MA(function(V){var D=V.data;
return _.K(_.e,{cond:function(){return D().title||D().subtitle},
then:function(){return _.K("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.K("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.K(_.e,{cond:function(){return D().title},
then:function(f){return _.K(_.Ow,{text:f,className:"yt-list-item-view-model-wiz__title"})}})),_.K(_.e,{cond:function(){return D().subtitle},
then:function(f){return _.K(_.Ow,{text:f,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Oc");_.irE=_.MA(function(V){var D=V.data;var f=V.onTap;var n=V.onSwitch;var t=V.overrideDisabled;V=V.disableHorizontalPadding;var J=_.r(_.Gk(function(){var l;return((l=beZ(Z()))==null?void 0:l.switchedOnByDefault)||!1})),H=J.next().value,Q=J.next().value;
J=_.r(_.HJ(!1,void 0,"ZHBkbb"));var T=J.next().value,y=J.next().value,Z=function(){var l;if(!(l=D().switchButton)){var G=D();l=t==null?void 0:t();G={switchOnCommand:G.switchOnCommand,switchOffCommand:G.switchOffCommand,switchedOnByDefault:G.switchedOnByDefault,isDisabled:G.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:G.a11yLabelSwitchedOn,a11yLabelSwitchedOff:G.a11yLabelSwitchedOff};l!==void 0&&(G.isDisabled=l);l={switchButtonViewModel:G}}return l};
return _.K("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.K(_.sH,{data:function(){return{title:D().title,subtitle:D().attributedSubtitle,leadingImage:D().leadingImage,leadingAccessory:D().leadingAccessory,isDisabled:D().isDisabled}},
onTap:function(l){var G=beZ(Z());!G||G.isDisabled||D().ignoreTapUntilCommandCompletes&&T()||(f==null||f(l),QZ9(G,H(),l,D().ignoreTapUntilCommandCompletes,y),Q(!H()),n==null||n(H()))},
trailingAccessory:function(){return _.K(_.BW,{data:Z},{switchButtonViewModel:function(l){return _.K(qfY,{data:l.data,parentActive:H,handleOnTapEventInParent:!!f})}})},
disableHorizontalPadding:V}))},"Pc");var SfV=_.MA(function(V){var D=_.r(_.Gk(function(){var t,J;return!!((t=V.data())==null?0:(J=t.initialState)==null?0:J.isToggled)})),f=D.next().value,n=D.next().value;
D=_.jl(function(){n(!f())});
return _.K("toggleable-list-item-view-model",{el:_.h2(_.Ew(function(){return V.data().rendererContext})),
class:_.KT("toggleableListItemViewModelHost",V.className),"on:click":D,role:"button","aria-pressed":function(){return f()},
"aria-label":function(){var t=f()?V.data().toggledListItem:V.data().defaultListItem,J;t=(J=_.g(t,_.jK))==null?void 0:J.rendererContext;var H;return(H=_.g(t,_.Z8))==null?void 0:H.label}},_.K(_.e,{cond:f,
then:function(){return _.K(_.BW,{data:function(){return V.data().toggledListItem}},{listItemViewModel:function(t){return _.K(_.sH,{data:t.data,
isToggled:f})}})},
else:function(){return _.K(_.BW,{data:function(){return V.data().defaultListItem}},{listItemViewModel:_.sH})}}))},"Qc");var WPl=_.Zl("DOWNLOAD",{},"Download"),pzF=_.Zl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),LPH=_.Zl("RETRY",{},"Retry"),ImL=_.Zl("PAUSE_DOWNLOADING",{},"Pause downloading"),Or6=_.Zl("RESUME_DOWNLOAD",{},"Resume download"),KuY={text:WPl,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},NR={text:pzF,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},jZY={text:LPH,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
yGY={text:ImL,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Zed={text:Or6,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var xfY=_.MA(function(V){var D=function(){var Q=V.data();Q=_.qs(Q.rendererContext);var T;return(T=_.g(Q,_.Q1))==null?void 0:T.videoId},f=_.CT(function(Q){var T=D(),y=eWd(V.data());
return T?_.CA(Q,T):y?_.q_(Q,y):"TRANSFER_STATE_UNKNOWN"}),n=_.KX(_.EBY,D),t=_.CT(function(Q){return _.N0X(Q,D(),eWd(V.data()))}),J=function(){return GfR(f(),n(),_.qs(V.data().rendererContext),!!eWd(V.data()))},H=function(){return t()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.K("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:H},_.K(_.e,{cond:function(){return!H()},
then:function(){return _.K(_.e,{cond:J,then:function(Q){return _.K(_.FB,{each:Q},function(T){return _.K(_.sH,{data:T,isCompact:V.isCompact,isMenuItem:V.isMenuItem,inPopup:V.inPopup,disableHorizontalPadding:V.disableHorizontalPadding})})}})}}))},"Rc");
xfY.idomCompat=!0;_.M8u=_.MA(function(V){var D=V.data;var f=V.isCompact;var n=V.hideSelectionTextChevron;var t=V.inPopup;var J=V.isOverlay;var H=V.disableHorizontalPadding;var Q=function(){return cG9(D())&&(t==null?void 0:t())};
V={};return _.K("yt-list-view-model",{class:_.KT("yt-list-view-model-wiz",(V["yt-list-view-model-wiz--kaios-spat-nav"]=LX&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",V)),role:function(){return Q()?"menu":"list"},
style:_.el({"max-height":function(){var T,y=(T=D())==null?void 0:T.visibleElementCount;if(y)return g6R(D())?(y+.5)*48+"px":(y+.5)*40+"px"}})},_.K(_.BW,{data:function(){return D().listItems}},{listItemViewModel:function(T){return _.K(_.sH,{data:T.data,
isMenuItem:Q,isCompact:f,hideSelectionTextChevron:n,inPopup:t,isOverlay:J,disableHorizontalPadding:H})},
toggleableListItemViewModel:function(T){return _.K(SfV,{data:T.data})},
downloadListItemViewModel:function(T){return _.K(xfY,{data:T.data,isMenuItem:Q,isCompact:f,inPopup:t,disableHorizontalPadding:H})},
switchListItemViewModel:function(T){return _.K(_.irE,{data:T.data,disableHorizontalPadding:H})}}))},"Sc");
_.M8u.idomCompat=!0;var hQ6=_.MA(function(V){var D=V.data;var f=V.isOverlay;V={};return _.K("yt-course-perks-view-model",{class:_.KT("ytwCoursePerksViewModelHost",(V.ytwCoursePerksViewModelHostOverlay=f,V))},_.K("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",null,_.K(_.e,{cond:function(){return D().perks},
then:function(n){return _.K(_.M8u,{data:function(){return{listItems:n()}},
isCompact:!0,isOverlay:f})}})))},"Tc");_.fT(hQ6,"yt-course-perks-view-model",{props:{data:_.Dn,isOverlay:_.Dn}});_.fT(_.MA(function(V){var D=V.data;return _.K("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.K("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.K(_.Ow,{text:function(){return D().progressSummary}})),_.K("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.K("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.el({width:function(){return D().progressPercentage*100+"%"}})})))},"Uc"),"yt-course-progress-view-model",{props:{data:_.WX}});var UfH=_.MA(function(V){var D={};return _.K("yt-progress-view-model",{class:_.KT("ytwProgressViewModelHost",(D.ytwProgressViewModelHostOverlay=_.IU(V.isOverlay,!1),D))},_.K(_.e,{cond:function(){return V.data().progressSummary},
then:function(f){return _.K("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.K(_.Ow,{text:f}))}}),_.K("div",{class:"ytwProgressViewModelHostProgressContainer"},_.K(_.e,{cond:function(){return V.data().leadingLabel},
then:function(f){return _.K("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.K(_.Ow,{text:f}))}}),_.K("div",{class:"ytwProgressViewModelHostProgressBar"},_.K("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(V.data().progressPercentage||0)*100+"%"}}))))},"Vc");var Bi=_.MA(function(V){var D=V.starNumber;var f=V.data;var n=function(){var t;return((t=f())==null?void 0:t.rating)||0};
return _.K(_.e,{cond:function(){return D()},
then:function(t){return _.K(_.kw,null,_.K(_.gj,{when:function(){return n()>=t()-.25}},function(){return _.K("div",{class:"ytStarRatingViewModelHostStar"},_.K(_.cj,{icon:"STAR_FILLED"}))}),_.K(_.gj,{when:function(){return n()>=t()-.75}},function(){return _.K("div",{class:"ytStarRatingViewModelHostStar"},_.K(_.cj,{icon:"STAR_HALF"}))}),_.K(_.v9,null,function(){return _.K("div",{class:"ytStarRatingViewModelHostStar"},_.K(_.cj,{icon:"STAR_BORDER"}))}))}})},"Wc"),VIV=_.MA(function(V){V=V.data;
return _.K("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.K(Bi,{starNumber:1,data:V}),_.K(Bi,{starNumber:2,data:V}),_.K(Bi,{starNumber:3,data:V}),_.K(Bi,{starNumber:4,data:V}),_.K(Bi,{starNumber:5,data:V}))},"Xc");_.fT(_.MA(function(V){var D=_.Or(V,{}).data;return _.K("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.K("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.K(_.Ow,{text:function(){var f;return(f=D())==null?void 0:f.title}})),_.K("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.K(_.e,{cond:function(){return D().starProgressViewModels},
then:function(f){return _.K("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.K(_.BW,{data:f},{progressViewModel:UfH}))}}),_.K("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.K("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.K(_.Ow,{text:function(){var f;
return(f=D())==null?void 0:f.averageRatingLabel}})),_.K(_.e,{cond:function(){return D().zeroStateText},
then:function(f){return _.K("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.K(_.Ow,{text:f}))}}),_.K(_.e,{cond:function(){return D().starRatingViewModel},
then:function(f){return _.K("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.K(_.BW,{data:f},{starRatingViewModel:VIV}))}}),_.K("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.K(_.Ow,{text:function(){var f;
return(f=D())==null?void 0:f.totalRatingsCountLabel}})))))},"Yc"),"yt-course-ratings-view-model",{props:{data:_.Dn}});var DpU;DpU={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.fi6=_.MA(function(V){var D=_.W2("yt-learning-journey-loader-view-model"),f=_.HW();_.B9(function(){requestAnimationFrame(function(){var t;(t=f.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var J;(J=V.onLottieLoaded)==null||J.call(V)})});
var n=V.data().browseEndpoint;n&&_.Yt(n)});
return _.K("yt-learning-journey-loader-view-model",{class:_.KT("learningJourneyLoaderViewModelHost",V.className),"data-target-id":function(){var n;return((n=V.data)==null?void 0:n.call(V).targetId)||""},
el:D},_.K(_.ft,{className:_.KT("learningJourneyLoaderViewModelLoader",V.className),animationName:function(){return DpU.animationConfig.name},
data:DpU,animationRef:f}))},"Zc");_.fT(_.fi6,"yt-learning-journey-loader-view-model",{props:{data:_.WX,className:_.Dn,onLottieLoaded:_.Dn}});var kfd=new Set,v6X=null;_.nMu=_.MA(function(V){var D=null,f=null,n=null,t=function(){return V.data()},J=function(){var C=t();
var A=_.DY().resolve(_.Vx(_.pm));C=A!=null&&A()?C.darkThemeColorPalette:C.lightThemeColorPalette;return{primaryTextColor:zS(C,0),secondaryTextColor:zS(C,1),optionColor:zS(C,2),backgroundColor:zS(C,3),videoBackgroundColor:zS(C,4)}},H=function(){return!!J().optionColor},Q=_.r(_.HJ(-1,void 0,"KCCUDb")),T=Q.next().value,y=Q.next().value,Z=function(C){return T()===C},l=function(C){return t().correctAnswerIndex===C},G=function(){return T()!==-1},F=function(){return T()===t().correctAnswerIndex},k=_.jl(function(){y(-1);
return!1}),d=function(){var C=G(),A=F();
return C?A?264685:264684:264683},z=function(C){return F()&&l(C)};
return _.K("learning-journey-quiz-view-model",{class:_.KT("learningJourneyQuizViewModelHost",V.className),style:_.el({background:function(){return J().backgroundColor}})},_.K(_.e,{cond:function(){return!!t().video},
then:function(){return _.K("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.el({background:function(){return J().videoBackgroundColor}})},_.K(_.BW,{data:function(){return t().video}},{lockupViewModel:function(C){return _.K(_.nv,{data:C.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.K("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.K("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.K("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.K(_.e,{cond:function(){return!!t().aiGeneratedQuizLabel},
then:function(){return _.K("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.K(_.Ow,{text:function(){return t().aiGeneratedQuizLabel}}))}}),_.K("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.el({"align-items":function(){return t().overflowMenu?"start":"center"}})},_.K("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.el({"min-height":function(){return t().overflowMenu?"48px":"26px"}})},_.K("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.h2(function(C){_.mD(d(),C,D,function(A){D=A})}),
style:_.el({color:function(){return J().primaryTextColor}}),
"client-ve-type":d},_.K(_.Ow,{text:function(){var C=t(),A=G(),O=F();return A?O?C.successTitle:C.failureTitle:C.questionHeaderText}}))),_.K("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.K(_.e,{cond:G,
then:function(){return _.K("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.h2(function(C){_.mD(264687,C,f,function(A){f=A})}),
"on:click":k,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.K("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.el({fill:function(){return J().primaryTextColor}})},_.K("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"})))}}),
_.K(_.BW,{data:function(){return t().overflowMenu}},{buttonViewModel:function(C){return _.K(_.HO,{data:C.data})}}))),_.K("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.h2(function(C){_.mD(264688,C,n,function(A){n=A})}),
style:_.el({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.K(_.Ow,{text:function(){var C=t();return G()?C.explanationText:C.questionSubheaderText}}))),_.K("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.K(_.FB,{each:function(){return t().optionsData||[]}},function(C,A){var O={};
return _.K("div",{class:_.KT("learningJourneyQuizViewModelHostQuizOptions",(O.learningJourneyQuizViewModelHostQuizHover=function(){return!G()},O.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return z(A())},O.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!F()&&Z(A())},O.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return G()&&!Z(A())},O.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=H,O)),
"on:click":_.jl(function(){if(G())return!1;y(A());return!1}),
style:_.el({background:function(){var W=A();return G()&&Z(W)?"":H()?J().optionColor:"transparent"}}),
role:"button","aria-disabled":G,"tab-index":"0","client-ve-type":264686},_.K(_.e,{cond:G,then:function(){var W={};return _.K("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=A();return l(I)?"0 0 24 24":"0 -960 960 960"},
class:_.KT("learningJourneyQuizViewModelHostQuizOptionIcon",(W.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return z(A())},W)),
style:_.el({fill:function(){return J().primaryTextColor}})},_.K("path",{d:function(){var I=A();
return l(I)?"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"}}))}}),_.K(_.Ow,{text:C.optionText}))})))))},"$c");
_.nMu.idomCompat=!0;_.fT(_.nMu,"learning-journey-quiz-view-model",{props:{data:_.WX,className:_.WX}});var tIo=_.MA(function(V){var D=_.Or(V,{palette:void 0,isLastItem:!1}),f=D.palette,n=D.isLastItem,t=function(){return V.data().isHighlighted},J=function(){var T;
return B69((T=f())==null?void 0:T.iconDisabledColor)},H=function(){var T;
return B69((T=f())==null?void 0:T.primaryTitleColor)},Q=function(){var T;
return B69((T=f())==null?void 0:T.secondaryTitleColor)};
D={};return _.K("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.h2(_.Ew(function(){return V.data().rendererContext}))},_.K(_.BW,{data:function(){return V.data().thumbnail}},{thumbnailViewModel:_.La}),_.K("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.K("div",{class:_.KT("ytMacroMarkerListItemViewModelTimeDescription",(D.ytMacroMarkerListItemViewModelHighlighted=t,D)),
style:_.el({"background-color":function(){return t()?H():J()},
color:function(){return t()?"":Q()}})},_.K(_.Ow,{text:function(){return V.data().timestamp}})),_.K("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.el({"background-color":function(){return n()?"transparent":J()}})}),_.K("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(t()?H():Q())}},_.K(_.Ow,{text:function(){return V.data().title}}))))},"ad");_.di=_.MA(function(V){function D(rZ){A("transform:translateX("+(_.XB("HTML_DIR")==="rtl"?"":"-")+rZ+"px)")}
function f(rZ){return Math.min(Math.max(rZ,0),C()-oY())}
function n(){var rZ=I()+NU();return t()?(Math.round(oY()/rZ)||1)*rZ:0}
var t=function(){return V.data().items||[]},J=function(){return V.data().previousButton},H=function(){return V.data().nextButton},Q=function(){var rZ,wP;
return(wP=(rZ=V.disableArrows)==null?void 0:rZ.call(V))!=null?wP:!1},T=function(){var rZ;
return!((rZ=V.forceNarrowLayout)==null||!rZ.call(V))},y=_.yT(function(){var rZ;
return!((rZ=V.centerAlignItems)==null||!rZ.call(V))&&C()<=oY()},void 0,"iGOqxd"),Z=_.W2("horizontal-shelf-view-model"),l=_.W2("div"),G=_.r(_.HJ(0,void 0,"tieKmf")),F=G.next().value,k=G.next().value;
G=_.r(_.HJ(0,void 0,"W2lvv"));var d=G.next().value,z=G.next().value,C=d;d=_.r(_.HJ("",void 0,"PEePkc"));G=d.next().value;var A=d.next().value;d=_.r(_.HJ(0,void 0,"c7a4W"));var O=d.next().value,W=d.next().value,I=O;d=_.r(_.HJ(0,void 0,"KGhRJf"));O=d.next().value;var x=d.next().value,oY=O;d=_.r(_.HJ(!1,void 0,"fgWgyc"));var wZ=d.next().value,ZZ=d.next().value;d=_.r(_.HJ(0,void 0,"pe79rc"));O=d.next().value;var sd=d.next().value,NU=O;d=_.r(_.HJ(0,void 0,"CTqisc"));var Bn=d.next().value,aY=d.next().value;
d=_.r(_.HJ("50%",void 0,"XxAwcc"));var Ed=d.next().value,V0=d.next().value,kf=function(){var rZ,wP=(rZ=V.data())==null?void 0:rZ.responsiveContainerConfiguration,gP,uX;return wP?WtZ(wP==null?void 0:wP.responsiveSize):(uX=(gP=V.sizing)==null?void 0:gP.call(V))!=null?uX:"STANDARD"};
d=_.yT(function(){return!Q()&&F()>0},void 0,"OBXFae");
O=_.yT(function(){return!Q()&&F()<C()-oY()},void 0,"TmwsWc");
var mY=function(){k(f(F()-n()));D(F())},Ko=function(){k(f(F()+n()));
D(F())},Eu=function(){Z.value!==null&&BH()},y0;
_.Nl(function(){BH();window.ResizeObserver?(y0=new ResizeObserver(_.ZT(Eu,0)),y0.observe(Z.value)):window.addEventListener("resize",Eu)});
_.dc(function(){if(window.ResizeObserver){var rZ;(rZ=y0)==null||rZ.disconnect()}else window.removeEventListener("resize",Eu)});
var BH=function(){var rZ=Z.value.clientWidth,wP=V.includeMargin!==void 0?V.includeMargin():!1,gP;var uX=V.hasPeek!==void 0?V.hasPeek():!((gP=V.data())==null||!gP.hasPeek);rZ=_.WW({containerWidth:rZ,hasPeek:uX,sizing:kf(),marginSettings:wP?T()?4:1:0});sd(rZ.gutter);aY(rZ.margin);W(rZ.itemWidth);ZZ(rZ.maxContainerWidth<528||T());x(rZ.maxContainerWidth);t()&&z((rZ.itemWidth+rZ.gutter)*t().length-rZ.gutter);if(t()){var cH;if(((cH=V.thumbnailAspectRatio)==null?void 0:cH.call(V))!==void 0){var WH;V0(I()/
ibR((WH=V.thumbnailAspectRatio)==null?void 0:WH.call(V))/2+"px")}else V0("50%")}},wu={},lF={};
return _.K("horizontal-shelf-view-model",{class:_.KT("ytwHorizontalShelfViewModelHost",V.className),el:Z},_.K(_.e,{cond:function(){var rZ;return V.data().header&&!((rZ=V.horizontalShelfExperiments)==null?0:rZ.call(V).hideHeader)},
then:function(){return _.K("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.el({width:function(){return oY()+"px"},
padding:function(){return"0 "+Bn()+"px"}})},_.K(_.BW,{data:function(){return V.data().header}},{sectionHeaderViewModel:function(rZ){return _.K(_.nQ,{data:rZ.data,
disableHorizontalPadding:!0,forceSmallLayout:wZ,useResponsiveLayout:!0})}}))}}),_.K("div",{class:_.KT("ytwHorizontalShelfViewModelOuterContainer",(wu.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return y()},wu)),
style:_.el({"margin-top":function(){var rZ,wP=V.data().header&&!((rZ=V.horizontalShelfExperiments)==null?0:rZ.call(V).hideHeader),gP;return(((gP=V.ensureMarginTop)==null?0:gP.call(V))&&!wP?12:0)+"px"}})},_.K("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.el({width:function(){return oY()+"px"},
padding:function(){return"0 "+Bn()+"px"},
overflow:function(){return Q()?"auto":"hidden"}})},_.K("div",{class:_.KT("ytwHorizontalShelfViewModelItems",(lF.ytwHorizontalShelfViewModelCenterAlignItems=function(){return y()},lF)),
el:l,style:G},_.K(_.BW,{data:t},{macroMarkerListItemViewModel:function(rZ,wP){return _.K("div",{style:_.el({width:function(){return I()+"px"},
"margin-right":function(){return(wP()===t().length-1?0:NU())+"px"}})},_.K(tIo,{data:rZ.data,
palette:_.IU(V.palette),isLastItem:function(){return wP()===t().length-1}}))},
lockupViewModel:function(rZ,wP){var gP=rZ.data;return _.K("div",{style:_.el({width:function(){return I()+"px"},
"margin-right":function(){return(wP()===t().length-1?0:NU())+"px"}})},_.K(_.nv,{data:gP,
containerType:4,sizing:kf,protectBackground:V.protectBackground,thumbnailFixedWidth:function(){return dDL(gP())+"px"},
thumbnailTargetWidth:function(){return dDL(gP())}}))}}))),_.K(_.e,{cond:d,
then:function(){return _.K("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.el({top:function(){return Ed()}})},_.K(_.BW,{data:J},{buttonViewModel:function(rZ){return _.K(_.HO,{data:rZ.data,
onClick:mY})}}))}}),_.K(_.e,{cond:O,
then:function(){return _.K("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.el({top:function(){return Ed()}})},_.K(_.BW,{data:H},{buttonViewModel:function(rZ){return _.K(_.HO,{data:rZ.data,
onClick:Ko})}}))}})))},"bd");
_.di.idomCompat=!0;var PpF=_.MA(function(V){var D=function(){return V.data().targetId||""},f=function(){var d;
return((d=V.data())==null?void 0:d.expansionEntityKey)||""},n=_.KX(_.QAR,f),t=!0,J=function(){var d;
return((d=n())==null?void 0:d.value)===D()},H=function(d){_.LI(_.y1("stringEntity",f(),{key:f(),
value:d?D():""}))};
_.B9(function(){t=!1;V.data().isExpanded&&H(!0)});
var Q=function(){if(J()){var d=!0;V.onCollapse!==void 0&&(d=V.onCollapse());d&&H(!1)}else H(!0)},T=_.jl(Q),y=function(){var d;
return(((d=V.accordionStyle)==null?void 0:d.call(V))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Z=_.W2("div"),l=function(){var d,z;
return(z=(d=_.g(V.data().rendererContext,_.Z8))==null?void 0:d.label)!=null?z:""},G=function(){var d,z;
return{disabled:(d=V.hideIfNotExpanded)==null?void 0:d.call(V),ariaHidden:(z=V.hideIfNotExpanded)==null?void 0:z.call(V)}},F={},k={};
return _.K("yt-accordion-item-view-model",{class:_.KT("ytAccordionItemViewModelHost",V.className,(F.ytAccordionItemViewModelExpanded=function(){return J()},F.ytAccordionItemViewModelHidden=function(){var d;
return(d=V.hideIfNotExpanded)==null?void 0:d.call(V)},F.ytAccordionItemViewModelMini=y,F)),
"data-target-id":D},_.K("div",{class:"ytAccordionItemViewModelContainer"},_.K("div",{class:"ytAccordionItemViewModelLeftSection","on:click":T,title:l,"aria-hidden":function(){var d;return(d=V.hideIfNotExpanded)==null?void 0:d.call(V)}},_.K(_.Ow,{text:function(){return V.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:l})),_.K("div",{class:"ytAccordionItemViewModelRightSection"},_.K(_.BW,{data:function(){return J()?V.data().expandButton:V.data().collapseButton}},{buttonViewModel:function(d){return _.K(_.HO,{data:d.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Q,buttonOverrides:G})}}))),_.K("div",{class:"ytAccordionItemViewModelContainer"},_.K("div",{class:_.KT("ytAccordionItemViewModelContent",(k.ytAccordionItemViewModelExpandedSubtitle=function(){return J()},k)),
el:Z,style:_.el({"max-height":function(){return t?"auto":J()?Z.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!J()}},_.K(_.e,{cond:function(){return!y()},
then:function(){return _.K(_.Ow,{text:function(){return V.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.K(_.BW,{data:function(){return V.data().content}},{horizontalShelfViewModel:function(d){return _.K(_.di,{data:d.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"cd");_.oMF=_.MA(function(V){var D=_.r((0,_.zHr)(V.data)).next().value,f=function(){return V.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},n=function(){return f()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.r(_.HJ(!0,void 0,"FVec2e")),J=t.next().value,H=t.next().value,Q=function(){return n()&&J()},T=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){H(!J())}}},y=_.jl(function(){D().onTitleTap&&_.Yt(D().onTitleTap||{})});
t={};return _.K("yt-accordion-view-model",{class:_.KT("ytAccordionViewModelHost",(t.ytAccordionViewModelMinimized=function(){return Q()},t)),
"data-target-id":function(){return V.data().targetId||""}},_.K(_.e,{cond:function(){return n()||!!D().title},
then:function(){return _.K("div",{class:"ytAccordionViewModelHeader"},_.K("div",{class:"ytAccordionViewModelTitleSection"},_.K("div",{class:"ytAccordionViewModelTitleWrapper"},_.K(_.e,{cond:function(){return!!V.data().headerIcon},
then:function(){return _.K(_.cj,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var Z;return(Z=V.data().headerIcon)==null?void 0:Z.iconType}})}}),_.K("div",{class:"ytAccordionViewModelTitle",
"on:click":y},_.K(_.Ow,{className:"ytAccordionViewModelTitleText",text:function(){return D().title}})))),_.K("div",{class:"ytAccordionViewModelButtonSection"},_.K(_.e,{cond:n,
then:function(){return _.K(xC,{data:T,iconName:function(){return Q()?"chevron_down":"chevron_collapse"}})}})))}}),_.K("div",{class:"ytAccordionViewModelContent"},_.K(_.BW,{data:function(){return D().contents}},{accordionItemViewModel:function(Z){return _.K(PpF,{data:Z.data,
className:"ytAccordionViewModelRow",accordionStyle:f,hideIfNotExpanded:Q,onCollapse:function(){return n()?(H(!0),!1):!0}})}})),_.K("div",null,_.K(_.e,{cond:function(){return!n()&&(!!D().disclaimerFooter||!!D().footer)},
then:function(){return _.K("div",{class:"ytAccordionViewModelFooter"},_.K(_.Ow,{text:function(){return D().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.K(_.BW,{data:function(){return V.data().footer}},{flexibleActionsViewModel:function(Z){return _.K(vg,{data:Z.data,
layout:0})}}))}})))},"dd");_.fT(_.oMF,"yt-accordion-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=null,f=null,n,t=(n=_.DY().resolve(_.Vx(_.pm)))==null?void 0:n(),J=_.r(_.HJ(!1,void 0,"EVXQGb"));n=J.next().value;var H=J.next().value;J=_.r(_.HJ(!0,void 0,"W9FIJf"));var Q=J.next().value,T=J.next().value,y=_.W2("textarea",function(z){_.mD(264503,z,D,function(C){D=C})}),Z=function(z){H(!0);
z={learningJourneyFormData:{query:z}};_.Yt(V.data().searchEndpoint||{},{form:{formData:z}});return!1},l=_.jl(function(z){z.target.closest("button-view-model")&&H(!0)});
J=_.jl(function(){T(y.value.value.length===0)});
var G=_.jl(function(z){if(z.key==="Enter"&&!z.shiftKey&&!Q()){var C=z.target;z.preventDefault();Z(C.value)}}),F={},k={},d={};
return _.K("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.K("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.K(_.xt,{data:function(){return V.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.K("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.K("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.K("div",{class:_.KT("ytLearningJourneyZeroStateSearchBar",(F.ytLearningJourneyZeroStateSearchBarDark=t,F))},_.K("textarea",{class:_.KT("ytLearningJourneyZeroStateTextInput",(k.ytLearningJourneyZeroStateTextInputDark=t,k)),el:y,"on:keyup":J,"on:keydown":G,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.K("div",{class:_.KT("ytLearningJourneyZeroStateSearchButtonContainer",(d.ytLearningJourneyZeroStateSearchButtonContainerDark=t,d))},_.K(_.HO,{data:function(){return _.g(V.data().searchButton,_.cW)},
className:"search-button",onClick:function(){return Z(y.value.value)},
buttonOverrides:function(){return{disabled:Q(),style:t?"mono-inverse":"mono",size:"XL"}}}))),_.K(_.e,{cond:function(){return!!V.data().errorBanner},
then:function(){return _.K("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.h2(function(z){_.mD(264617,z,f,function(C){f=C})})},_.K(_.BW,{data:function(){return V.data().errorBanner}},{alertBannerViewModel:function(z){return _.K(_.mfY,{data:z.data,
"client-ve-type":264617})}}))}})),_.K(_.e,{cond:n,
then:function(){return _.K("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.K(_.BW,{data:function(){return V.data().loader}},{learningJourneyLoaderViewModel:function(z){return _.K(_.fi6,{data:z.data})}}))},
else:function(){return _.K("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.K(_.e,{cond:function(){return!!V.data().learningJourneyShelf},
then:function(){return _.K("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.K("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return V.data().learningJourneySectionTitle}),_.K(_.BW,{data:function(){return V.data().learningJourneyShelf}},{horizontalShelfViewModel:function(z){return _.K(_.di,{data:z.data,
centerAlignItems:!0})}}))}}),_.K("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.K("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return V.data().suggestedJourneySectionTitle}),_.K("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":l},_.K(_.BW,{data:function(){return V.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(z){return _.K(vg,{data:z.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ed"),"yt-learning-journey-zero-state",{props:{data:_.WX}});var JJF=_.MA(function(V){var D=V.data;return _.K("ytvl-live-leaderboard-item-action-content-view-model",{class:_.KT("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.K(_.Ow,{text:function(){var f;return(f=D())==null?void 0:f.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.K(_.BW,{data:function(){return D().actionButton}},{buttonViewModel:function(f){return _.K(_.HO,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:f.data})}}))},"fd");var rJU=_.MA(function(V){var D=V.data;return _.K("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.KT("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.K(_.Ow,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var f;return(f=D())==null?void 0:f.displayName},
ellipsisTruncate:!0}),_.K(_.BW,{data:function(){return D().badge}},{buttonViewModel:function(f){return _.K(_.HO,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:f.data})}}))},"gd");_.fT(_.MA(function(V){var D=V.data;return _.K("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.K("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.K(_.Ow,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var f;return(f=D())==null?void 0:f.rank}})),_.K("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.K(_.BW,{data:function(){return D().avatar}},{avatarViewModel:_.vd})),_.K("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.K(_.BW,{data:function(){return D().content}},{liveLeaderboardItemChannelContentViewModel:rJU,
liveLeaderboardItemActionContentViewModel:JJF})),_.K(_.Ow,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var f;return(f=D())==null?void 0:f.points}}))},"hd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;return _.K("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.K(_.Ow,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var f,n;return(f=D())==null?void 0:(n=f.ranking)==null?void 0:n.rank}}),_.K("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.K(_.BW,{data:function(){return D().avatar}},{avatarViewModel:_.vd})),_.K(_.Ow,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var f,n;return(f=D())==null?void 0:(n=f.channelContent)==null?void 0:n.channelName}}),_.K(_.Ow,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var f;return(f=D())==null?void 0:f.points}}))},"id"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.WX}});var HDF=_.MA(function(V){V=_.Or(V,{wrapper:!1}).wrapper;return _.K(_.e,{cond:V,then:function(){return _.K("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.K("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.K("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"jd");
HDF.idomCompat=!0;var weE=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],QnF=_.MA(function(V){var D=V.data;var f=_.h2(),n=_.yT(function(){return D().command},void 0,"o6t5Yb");
_.BJ(function(){n()&&_.Em(n(),{form:{element:f.value}})},"qIHWLc");
return _.K("div",{el:f,class:"YtQrCodeRendererHostContainer"},_.K(_.e,{cond:function(){return D().qrCodeImage},
then:function(t){return _.K(_.xt,{data:t,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.K(_.e,{cond:function(){return D().spinner},
then:function(){return _.K(HDF,null)}})}}),_.K(_.e,{cond:function(){return D().label},
then:function(t){return _.K(_.Ow,{text:t,className:"YtQrCodeRendererHostLabel"})}}),_.K(_.e,{cond:function(){return D().labels},
then:function(t){return _.K("div",{class:"YtQrCodeRendererHostLabels"},_.K(_.FB,{each:t},function(J){return _.K(_.Ow,{text:J})}))}}))},"ld");_.fT(_.MA(function(V){var D=V.data;var f=_.yT(function(){return D().qrEntityKey},void 0,"joYCxd"),n=_.yT(function(){return D().deleteEntityOnDismiss},void 0,"x3yAde"),t=_.yT(function(){return D().command},void 0,"dJe1Re"),J=_.KX(XKF,f);
V=_.yT(function(){return D().qrCodeImage},void 0,"qM5dZe");
var H=_.yT(function(){return D().style&&weE.includes(D().style)},void 0,"CaNEkf"),Q=_.MG({visibilityCallback:function(T){T&&t()&&_.Em(t())},
showOption:{calledOnce:!0,state:"visible"}});_.Nl(function(){_.dc(function(){n()&&f()&&_.pI().dispatch(_.y1("qrCodeEntity",f()))})});
return _.K("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.h2(Q)},_.K(_.e,{cond:H,then:function(){return _.K(_.e,{cond:J,then:function(T){return _.K(QnF,{data:T})}})}}),_.K(_.e,{cond:V,
then:function(T){return _.K(_.xt,{data:T,alt:""})}}))},"kd"),"yt-qr-code-renderer",{props:{data:_.WX}});_.TVF=_.MA(function(V){var D=V.data;var f=V.topbarOffset;var n,t=((n=_.DY().resolve(_.Vx(_.pm)))==null?void 0:n())||!1;return _.K("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var J=D();var H,Q,T=t?(H=J.config)==null?void 0:H.darkThemeBackgroundColor:(Q=J.config)==null?void 0:Q.lightThemeBackgroundColor;J=T?_.AP(T):void 0;J="background-color: "+J+";";f!==void 0&&(J+="top: -"+f()+"px;");return J},
"aria-hidden":!0},_.K(_.e,{cond:function(){var J,H,Q;return!!((J=D().backgroundImageConfig)==null?0:(H=J.image)==null?0:(Q=H.sources)==null?0:Q.length)},
then:function(){return _.K(_.xt,{data:function(){var J;return(J=D().backgroundImageConfig)==null?void 0:J.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.K("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+uUU(t,D().gradientColorConfig)+";"}}))},"md");
_.TVF.idomCompat=!0;var uj=_.MA(function(V){var D=V.className;var f=V.data;var n=V.isOverlay;var t=V.maxLinesOverride;var J=V.useMediumText;var H=function(){return f().alwaysShowTruncationText},Q=function(){return f().truncationText},T=function(){return J!==void 0&&J()?"medium":"small"},y=function(){return n!==void 0&&n()?"overlay":"default"},Z=function(){var k,d;
return(d=(k=_.g(f().rendererContext,_.Z8))==null?void 0:k.label)!=null?d:""};
V=_.r(_.HJ(!1,void 0,"xVwzHf"));var l=V.next().value,G=V.next().value;V=_.jl(function(){f().expandOnTap&&G(!l());return!1});
var F={};return _.K("yt-description-preview-view-model",{el:_.h2(_.Ew(function(){return f().rendererContext})),
class:_.KT("yt-description-preview-view-model-wiz",D,(F["yt-description-preview-view-model-wiz--clickable"]=function(){var k;return!((k=_.g(f().rendererContext,Dn9))==null||!k.onTap)},F["yt-description-preview-view-model-wiz--is-overlay"]=n,F)),
"on:click":V},_.K(_.e,{cond:function(){return f().description},
then:function(k){return _.K(_.e,{cond:l,then:function(){var d={};return _.K("div",{class:_.KT("yt-description-preview-view-model-wiz__description",(d["yt-description-preview-view-model-wiz__description--medium-text"]=J,d))},_.K(_.Ow,{text:k}))},
else:function(){return _.K(NBF,{text:k,alwaysShowTruncationText:H,truncationText:Q,maxLines:function(){var d;return(d=t==null?void 0:t())!=null?d:f().maxLines},
textStyle:y,accessibilityLabel:Z,textSize:T})}})}}))},"nd");
uj.idomCompat=!0;var bDl=_.MA(function(V){var D=V.data;var f=V.isOverlay;return _.K("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.K("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.K(_.BW,{data:function(){return D().header}},{sectionHeaderViewModel:function(n){return _.K(_.nQ,{data:n.data,
isOverlay:f})}})),_.K("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.K(_.BW,{data:function(){return D().channelInfoButtons}},{flexibleActionsViewModel:vg})),_.K("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.K(_.BW,{data:function(){return D().description}},{descriptionPreviewViewModel:function(n){return _.K(uj,{data:n.data,
isOverlay:f})}})))},"od");
bDl.idomCompat=!0;var KFP=_.MA(function(V){var D=V.data;var f={};return _.K("factoid-view-model",{class:_.KT("ytwFactoidViewModelHost",(f.ytwFactoidViewModelHostOverlay=V.isOverlay,f))},_.K(_.Ow,{text:function(){return D().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.K(_.Ow,{text:function(){return D().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"pd");
KFP.idomCompat=!0;var yJY=_.MA(function(V){var D=V.data;var f=V.isOverlay;return _.K("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.K(_.BW,{data:function(){return D().factoids}},{factoidViewModel:function(n){return _.K(KFP,{data:n.data,
isOverlay:f})}}))},"qd");
yJY.idomCompat=!0;_.ZDl=_.MA(function(V){var D=V.data;var f=V.isOverlay;return _.K("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.K(_.BW,{data:function(){return D().items}},{channelInfoViewModel:function(n){return _.K("div",{class:"ytwCourseMetadataViewModelHostItem"},_.K(bDl,{data:n.data,
isOverlay:f}))},
coursePerksViewModel:function(n){return _.K("div",{class:"ytwCourseMetadataViewModelHostItem"},_.K(hQ6,{data:n.data,isOverlay:f}))},
descriptionPreviewViewModel:function(n){return _.K("div",{class:"ytwCourseMetadataViewModelHostItem"},_.K(uj,{data:n.data,isOverlay:f}))},
factoidsRowViewModel:function(n){return _.K("div",{class:"ytwCourseMetadataViewModelHostItem"},_.K(yJY,{data:n.data,isOverlay:f}))},
progressViewModel:function(n){return _.K("div",{class:"ytwCourseMetadataViewModelHostItem"},_.K(UfH,{data:n.data,isOverlay:f}))}}))},"rd");var jnP=_.MA(function(V){return _.K("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.K(_.BW,{data:function(){return V.data().content}},{courseMetadataViewModel:function(D){return _.K(_.ZDl,{data:D.data,
isOverlay:V.isOverlay})},
progressViewModel:function(D){return _.K(UfH,{data:D.data})}}))},"sd");var liH=_.MA(function(V){var D=V.data;V=V.className;var f=function(){var t;return _.XO((t=D())==null?void 0:t.rendererContext)},n={};
n=(n["dynamic-text-view-model-wiz"]=!0,n["dynamic-text-view-model-wiz--tappable"]=function(){return f()},n);
return _.K("yt-dynamic-text-view-model",{el:_.h2(_.Ew(function(){var t;return(t=D())==null?void 0:t.rendererContext})),
role:function(){return f()?"link":void 0},
tabindex:function(){return f()?0:void 0},
class:_.KT(V,n)},_.K("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var t,J,H;return(H=(J=_.g((t=D())==null?void 0:t.rendererContext,_.Z8))==null?void 0:J.label)!=null?H:""}},_.K(_.Ow,{text:function(){return D().text},
userInput:!0})))},"td");
liH.idomCompat=!0;_.GAY=_.MA(function(V){var D=V.data;var f=V.isPositionRelative;var n=_.mD9("(max-width: 527.9px)"),t=function(){var J,H;return(H=(J=D())==null?void 0:J.style)!=null?H:"IMAGE_BANNER_STYLE_FULL_BLEED"};
V={};return _.K("yt-image-banner-view-model",{el:_.h2(_.Ew(function(){var J;return(J=D())==null?void 0:J.rendererContext})),
class:_.KT((V["yt-image-banner-view-model-wiz"]=!0,V["yt-image-banner-view-model-wiz--inset"]=function(){return zWZ(t())},V["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Nq(!0)&&!(f==null?0:f())},V["yt-image-banner-view-model-wiz--small-inset"]=function(){return zWZ(t())&&n()},V["yt-image-banner-view-model-wiz--tappable"]=function(){var J;
return _.XO((J=D())==null?void 0:J.rendererContext)},V))},_.K(_.e,{cond:function(){var J;
return(J=D())==null?void 0:J.image},
then:function(){return _.K(_.xt,{data:function(){return D().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.K(_.BW,{data:function(){var J;
return(J=D())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:g5}))},"ud");
_.GAY.idomCompat=!0;var eoF;eoF=_.MA(function(V){var D=V.condition;var f=V.content;return _.K(_.e,{cond:D,then:function(){return _.K("div",{class:"page-header-view-model-wiz__scroll-container"},f())},
else:function(){return f()}})},"vd");
_.cJH=_.MA(function(V){var D=V.data;var f=V.noPadding;var n=V.enableBanner;var t=V.cinematicContainerTopbarOffset;var J=V.allowCinematicContainerOverflow;var H=V.displayAsSidebar;var Q=V.displayAsPanel;var T=RWZ(),y=function(){return!!D().image||!!D().animatedImage},Z=function(){return!!D().background},l=function(){return(H==null?0:H())||(Q==null?0:Q())?1:T()},G=function(){return l()===1},F=function(){return G()||l()===2},k=function(){return l()===4},d=function(){var NU=D();
var Bn=!!D().heroImage;var aY=l(),Ed=C5Z(D()),V0=H==null?void 0:H(),kf=!NU.metadata,mY;if(mY=Bn?_.g(NU.heroImage,ATH):_.g(NU.animatedImage||NU.image,ATH)){NU=mY.style;var Ko=mY.layoutMode;if(Ko!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(mY=PZ9(trY(mY)),Bn)Bn=N6d(aY,NU,Ko,mY,V0);else b:if(kf)Bn=aY===1?{size:48}:{size:72};else switch(aY){case 1:Bn={size:72};break b;case 2:Bn={size:120};break b;default:Bn=Ed<4?{size:120}:{size:160}}else Bn=void 0}else Bn={size:0};return Bn};
V={};V=_.KT((V["page-header-view-model-wiz"]=!0,V["page-header-view-model-wiz--no-padding"]=function(){return!(f==null||!f())},V["page-header-view-model-wiz--small-top-padding"]=function(){return G()&&!D().actions&&!(Q==null?0:Q())||l()===2&&!(y()||D().heroImage)},V["page-header-view-model-wiz--small-bottom-padding"]=function(){return F()&&!D().actions&&!(Q==null?0:Q())},V["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(J==null?0:J())},V["page-header-view-model-wiz--display-as-sidebar"]=
H,V));
var z={},C=_.KT((z["page-header-view-model-wiz__page-header-headline"]=!0,z["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var NU;return(NU=d())==null?void 0:NU.allowFullWidth},z)),A=function(){var NU;
return F()&&!((NU=d())==null?0:NU.allowFullWidth)},O=function(){return G()&&(!!D().heroImage||y())&&C5Z(D())>0},W=function(){return O()&&(Q==null?void 0:Q())};
z={};var I=_.KT((z["page-header-view-model-wiz__page-header-title"]=!0,z["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!O()},z["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return O()&&!W()},z["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=W,z["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=Z,z));
z={};var x=_.KT((z["page-header-view-model-wiz__page-header-headline-image"]=!0,z["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!D().heroImage&&F()},z));
z={};var oY=_.KT((z["page-header-view-model-wiz__page-header-banner-container"]=n,z["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var NU;return(n==null?void 0:n())&&((NU=_.g(D().banner,_.YCu))==null?void 0:NU.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},z));
z={};var wZ=_.KT((z["page-header-view-model-wiz__page-header-content-metadata"]=!0,z["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=Z,z));z={};var ZZ=_.KT((z["page-header-view-model-wiz__page-header-flexible-actions"]=!0,z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!D().metadata||F()},z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!F()},z));
z={};var sd=_.KT((z["page-header-view-model-wiz__page-header-attribution"]=!0,z["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=Z,z));return _.K("yt-page-header-view-model",{class:V},_.K(_.e,{cond:Z,then:function(){return _.K("div",{class:"page-header-view-model-wiz__page-header-background"},_.K(_.BW,{data:function(){return D().background}},{cinematicContainerViewModel:function(NU){return _.K(_.TVF,{data:NU.data,
topbarOffset:t})}}))}}),_.K(eoF,{condition:function(){return!(H==null||!H())},
content:function(){return _.K("div",{class:"page-header-view-model-wiz__page-header-content"},_.K(_.e,{cond:function(){return(n==null?void 0:n())&&D().banner},
then:function(){return _.K("div",{class:oY},_.K(_.BW,{data:function(){return D().banner}},{imageBannerViewModel:_.GAY}))}}),_.K("div",{class:C},_.K(_.e,{cond:y,
then:function(){return _.K(_.BW,{data:function(){var NU;if(!(NU=D().animatedImage)){NU=D();if(y()){var Bn=NU=Object.assign({},NU),aY=l(),Ed=C5Z(D()),V0=Bn.image,kf=_.g(V0,a8p),mY=kf==null?void 0:kf.avatar,Ko=_.g(mY,_.AY);if(V0&&mY&&Ko){switch(aY){case 1:Ko.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Ko.avatarImageSize="AVATAR_SIZE_XXL";break;default:Ed<4?Ko.avatarImageSize="AVATAR_SIZE_XXL":Ko.avatarImageSize="AVATAR_SIZE_XXXL"}_.c("web_enable_sink_page_header_view_model")&&(_.m7(mY,_.AY,Object.assign({},
Ko)),kf.avatar=Object.assign({},mY),_.m7(V0,a8p,Object.assign({},kf)),Bn.image=Object.assign({},V0))}}NU=NU.image}return NU}},{contentPreviewImageViewModel:function(NU){return _.K(_.h8,{data:NU.data,
className:x,imageSizeConfig:d})},
decoratedAvatarViewModel:function(NU){return _.K(_.kd,{data:NU.data,className:x})}})}}),_.K(_.e,{cond:function(){return!!D().heroImage&&!A()},
then:function(){return _.K(_.BW,{data:function(){return D().heroImage}},{contentPreviewImageViewModel:function(NU){return _.K(_.h8,{data:NU.data,
className:x,imageSizeConfig:d})}})}}),_.K("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.K(_.e,{cond:function(){return!!D().heroImage&&A()},
then:function(){return _.K("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.K(_.BW,{data:function(){return D().heroImage}},{contentPreviewImageViewModel:function(NU){return _.K(_.h8,{data:NU.data,
className:x,imageSizeConfig:d})}}))}}),_.K(_.BW,{data:function(){return D().title}},{dynamicTextViewModel:function(NU){return _.K(liH,{data:NU.data,
className:I})}}),_.K(_.BW,{data:function(){return D().metadata}},{contentMetadataViewModel:function(NU){return _.K(_.U9,{data:NU.data,
layout:function(){return G()?1:0},
className:wZ,isOverlay:Z,useMediumText:k})}}),_.K(_.e,{cond:function(){return D().description&&!G()},
then:function(){return _.K(_.BW,{data:function(){return D().description}},{descriptionPreviewViewModel:function(NU){return _.K(uj,{data:NU.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:Z,maxLinesOverride:function(){return G()?void 0:1},
useMediumText:k})}})}}),_.K(_.e,{cond:function(){return D().attribution&&!F()},
then:function(){return _.K(_.BW,{data:function(){return D().attribution}},{attributionViewModel:function(NU){return _.K(K2E,{data:NU.data,
className:sd,useMediumText:k})}})}}),_.K(_.e,{cond:function(){return D().actions&&!F()},
then:function(){return _.K(_.BW,{data:function(){return D().actions}},{flexibleActionsViewModel:function(NU){return _.K(vg,{data:NU.data,
layout:function(){return qJF(l())},
className:ZZ})}})}}))),_.K("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.K(_.e,{cond:function(){return D().description&&G()},
then:function(){return _.K(_.BW,{data:function(){return D().description}},{descriptionPreviewViewModel:function(NU){return _.K(uj,{data:NU.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:Z,maxLinesOverride:function(){return G()?void 0:1},
useMediumText:k})}})}}),_.K(_.e,{cond:function(){return D().attribution&&F()},
then:function(){return _.K(_.BW,{data:function(){return D().attribution}},{attributionViewModel:function(NU){return _.K(K2E,{data:NU.data,
className:sd,useMediumText:k})}})}}),_.K(_.e,{cond:function(){return D().actions&&F()},
then:function(){return _.K(_.BW,{data:function(){return D().actions}},{flexibleActionsViewModel:function(NU){return _.K(vg,{data:NU.data,
layout:function(){return qJF(l())},
className:ZZ})}})}})),_.K("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.K(_.BW,{data:function(){return D().bottomMetadataFlexibleContainer}},{flexibleContainer:function(NU){return _.K(jnP,{data:NU.data,
isOverlay:Z})}})))}}))},"wd");
_.cJH.idomCompat=!0;_.fT(_.MA(function(V){var D=_.r(_.HJ(!1,void 0,"j5qbkc")),f=D.next().value,n=D.next().value;return _.K("yt-official-card-view-model",{class:_.KT("ytOfficialCardViewModelHost",V.className),style:_.el({"background-color":function(){var t,J=aoR((t=V.data())==null?void 0:t.backgroundColor);return J?_.aB(J):void 0}})},_.K(_.BW,{data:function(){return V.data().header}},{pageHeaderViewModel:function(t){return _.K(_.cJH,{data:t.data,
noPadding:!0})}}),_.K(_.BW,{data:function(){return V.data().contents}},{horizontalShelfViewModel:function(t){return _.K(_.di,{data:t.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.K(_.e,{cond:f,
then:function(){return _.K("div",{class:"ytOfficialCardViewModelExpandedContent"},_.K(_.BW,{data:function(){return V.data().expandedContents}},{horizontalShelfViewModel:function(t){return _.K(_.di,{data:t.data,
sizing:"MINI"})}}),_.K("div",{class:"ytOfficialCardViewModelCollapseButton"},_.K(_.BW,{data:function(){return V.data().collapseButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
onClick:function(){n(!f())}})}})))},
else:function(){return _.K("div",{class:"ytOfficialCardViewModelExpandButton"},_.K(_.BW,{data:function(){return V.data().expandButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
onClick:function(){n(!f())}})}}))}}))},"xd"),"yt-official-card-view-model",{props:{data:_.WX,
className:_.WX}});var XQ3=_.eK({buttonViewModel:_.HO});_.V$(E6c);_.wk(E6c,"ytw-search-friction-view-model",{propNames:["data"]});_.NI=_.MA(function(V){var D=_.W2("markdown-div"),f,n=(f=_.DY().resolve(_.Vx(_.pm)))==null?void 0:f();_.BJ(function(){var t=D.value;var J=new aZ6,H=new Map(J.JSC$7389_sanitizerTable.globalAttributePolicies);H.set("style",{policyAction:4});J.JSC$7389_sanitizerTable=new j$(J.JSC$7389_sanitizerTable.allowedElements,J.JSC$7389_sanitizerTable.elementPolicies,J.JSC$7389_sanitizerTable.allowedGlobalAttributes,H,J.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes);var Q=["data-time"];if(Q===void 0)H=
new Set(J.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes),H.add("data-"),J.JSC$7389_sanitizerTable=new j$(J.JSC$7389_sanitizerTable.allowedElements,J.JSC$7389_sanitizerTable.elementPolicies,J.JSC$7389_sanitizerTable.allowedGlobalAttributes,J.JSC$7389_sanitizerTable.globalAttributePolicies,H);else{H=new Set(J.JSC$7389_sanitizerTable.allowedGlobalAttributes);Q=_.r(Q);for(var T=Q.next();!T.done;T=Q.next()){T=T.value;if(T.indexOf("data-")!==0)throw Error("ra`"+T);H.add(T)}J.JSC$7389_sanitizerTable=
new j$(J.JSC$7389_sanitizerTable.allowedElements,J.JSC$7389_sanitizerTable.elementPolicies,H,J.JSC$7389_sanitizerTable.globalAttributePolicies,J.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes)}H=new Set(J.JSC$7389_sanitizerTable.allowedGlobalAttributes);H.add("class");J.JSC$7389_sanitizerTable=new j$(J.JSC$7389_sanitizerTable.allowedElements,J.JSC$7389_sanitizerTable.elementPolicies,H,J.JSC$7389_sanitizerTable.globalAttributePolicies,J.JSC$7389_sanitizerTable.globallyAllowedAttributePrefixes);
_.$x(t,_.C3P(J.build(),aV9(V.text())));YJL(D.value)},"FI2gYe");
f={};return _.K("div",null,_.K("markdown-div",{class:_.KT("ytwMarkdownDivHost",(f.ytwMarkdownDivDark=n,f.ytwMarkdownDivHostSmall=function(){var t;return((t=V.isSmallText)==null?void 0:t.call(V))||!1},f)),
el:D}))},"yd");
_.NI.idomCompat=!0;var FFL=_.MA(function(V){var D=V.imageData;var f=_.IU(V.isInList,!1),n=function(){return f()?{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 _.K("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.K(_.e,{cond:function(){return D().image},
then:function(t){return _.K(_.xt,{data:t,alt:function(){return n().alt},
contentMode:function(){return n().contentMode},
targetWidth:function(){return n().targetWidth},
targetHeight:function(){return n().targetHeight},
className:function(){return n().className}})}}),_.K("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.K("div",{class:_.KT("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.FB,{each:function(){var t;
return(t=D().description)!=null?t:[]}},function(t){return _.K("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.K(me,{content:t}))})))},"zd"),gM6=_.MA(function(V){var D=V.list;
var f=function(){var n;return(n=D().items)!=null?n:[]};
return _.K("div",{class:"ytwGenAiRichTextViewModelListContent"},_.K(_.e,{cond:function(){return D().title},
then:function(n){return _.K("div",{class:_.KT("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.K(_.Ow,{text:n}))}}),_.K(_.e,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.K("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.K(_.FB,{each:f},function(n){return _.K("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.K(me,{content:n,isInList:!0}))}))}}),_.K(_.e,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.K("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.K(_.FB,{each:f},function(n){return _.K("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.K(me,{content:n,isInList:!0}))}))}}),_.K(_.e,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.K("div",{class:"ytwGenAiRichTextViewModelImageList"},_.K(_.FB,{each:f},function(n){return _.K("div",{class:"ytwGenAiRichTextViewModelListItem"},_.K(me,{content:n,isInList:!0}))}))}}))},"Ad"),vMY=_.MA(function(V){var D=V.table;
return _.K("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.K("thead",null,_.K("tr",null,_.K(_.FB,{each:function(){var f,n;return(n=(f=D().header)==null?void 0:f.cells)!=null?n:[]}},function(f){return _.K("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.K(_.FB,{each:function(){return f.contents}},function(n){return _.K(me,{content:n})}))}))),_.K("tbody",null,_.K(_.FB,{each:function(){var f;
return(f=D().rows)!=null?f:[]}},function(f){return _.K("tr",null,_.K(_.FB,{each:function(){return f.cells}},function(n){return _.K("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.K(_.FB,{each:function(){return n.contents}},function(t){return _.K(me,{content:t})}))}))})))},"Bd"),me=_.MA(function(V){var D=V.content;
var f=_.IU(V.isInList,!1),n=function(){var t,J;return(J=(t=D().contentBlock)==null?void 0:t.contents)!=null?J:[]};
return _.K("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.K(_.e,{cond:function(){return D().text},
then:function(t){return _.K(_.Ow,{className:"ytwGenAiRichTextViewModelText",text:t})}}),_.K(_.e,{cond:function(){return D().image},
then:function(t){return _.K(FFL,{imageData:t,isInList:f})}}),_.K(_.e,{cond:function(){return D().list},
then:function(t){return _.K(gM6,{list:t})}}),_.K(_.e,{cond:function(){return D().contentBlock},
then:function(){return _.K("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.K(_.FB,{each:n},function(t){return _.K(me,{content:t,isInList:!1})}))}}),_.K(_.e,{cond:function(){return D().table},
then:function(t){return _.K(vMY,{table:t})}}))},"Cd"),kAP=_.MA(function(V){var D={};
D=_.y6("ytwGenAiRichTextViewModelHost",(D.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.PI("search_overview_link_style")),D));return _.K("gen-ai-rich-text-view-model",{class:D},_.K(me,{content:function(){return V.data().content}}))},"Dd");_.V$($DZ);_.V$(Rm);_.snl=_.MA(function(V){var D=V.data;var f=function(){var d;return((d=D().loadingUi)!=null?d:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},n=function(){return D().isLoading&&(f()==="UNSPECIFIED"||f()==="GHOST_CARD")},t=function(){return!D().isLoading},J=function(){return!!D().content&&!D().contents},H=function(){return!!D().contents},Q=function(){return!!D().nextQueryButtons},T=function(){return D().isLoading&&f()==="INVISIBLE"},y=function(){var d,z;
return(z=(d=D().headerIcon)==null?void 0:d.iconType)!=null?z:""},Z=function(){var d;
return(d=D().content)!=null?d:""},l=function(){return!!D().sourcesSection},G,F=!((G=_.DY().resolve(_.Vx(_.pm)))==null||!G()),k=_.yT(function(){var d=[],z=D().contents;
if(z)for(var C=0;C<z.length;C++){var A=_.g(z&&z[C],h2Y);A&&d.push(A)}return d},void 0,"ycU97e");
_.Nl(function(){D().isLoading||_.zm("so_re",void 0,"search_overview_answer")});
return _.K("ytd-overview-answer-view-model",{class:function(){var d={};d=(d.ytdOverviewAnswerViewModelHost=!0,d.ytdOverviewAnswerViewModelDarkBackground=F&&!T(),d.ytdOverviewAnswerViewModelLightBackground=!F&&!T(),d);return _.y6(d)}},_.K(_.e,{cond:function(){return!T()},
then:function(){return _.K(_.th,null,_.K("h2",null,_.K("div",{class:"ytdOverviewAnswerViewModelHeader"},_.K(_.e,{cond:y,then:function(d){return _.K("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.K(_.cj,{icon:d}))}}),_.K("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.K("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return D().headerText}),_.K("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.K(_.Ow,{text:function(){return D().headerSubtext}}))))),_.K(_.e,{cond:n,
then:function(){return $DZ()}}),_.K(_.e,{cond:t,
then:function(){return _.K(_.th,null,_.K(_.e,{cond:J,then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelText"},_.K(_.NI,{text:Z,isSmallText:!0}))}}),_.K(_.e,{cond:H,
then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelRichText"},_.K(_.FB,{each:k},function(d){return _.K(kAP,{data:d})}))}}),_.K(_.e,{cond:Q,
then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.K(_.BW,{data:function(){return D().nextQueryButtons}},{buttonViewModel:function(d){return _.K(_.HO,{data:d.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.di}))}}),_.K("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.K("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.K(_.e,{cond:function(){return!!_.g(D().likeButtonViewModel,_.d0)&&!!_.g(D().dislikeButtonViewModel,_.Bc)},
then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.K(_.s8,{data:function(){return _.g(D().likeButtonViewModel,_.d0)},
disableIconAnimation:!0}),_.K(_.kE,{data:function(){return _.g(D().dislikeButtonViewModel,_.Bc)}}))}})),_.K(_.e,{cond:function(){var d;
return(d=D().sourcesSection)==null?void 0:d.headerText},
then:function(d){return _.K("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.K(_.Ow,{text:d}))}})),_.K(_.e,{cond:l,
then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelSources"},_.K(_.BW,{data:function(){var d;return(d=D().sourcesSection)==null?void 0:d.sourcesShelf}},{buttonViewModel:_.HO,
horizontalShelfViewModel:function(d){return _.K(_.di,{data:d.data,includeMargin:!0,hasPeek:!0})}}))}}),_.K(_.e,{cond:function(){return D().disclaimerText},
then:function(){return _.K("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.K(_.Ow,{text:function(){return D().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ed");var BVE=_.MA(function(V){var D=V.data;var f=V.active;var n=_.W2("transcript-segment-view-model");_.BJ(function(){var t,J,H,Q=((t=_.DY().resolve(_.Vx(_.pm)))==null?0:t())?(J=D())==null?void 0:J.darkThemeColorPalette:(H=D())==null?void 0:H.lightThemeColorPalette;Q&&(Q.additiveBackground&&n.value.style.setProperty("--timestamp-active-background-color",_.aB(Q.additiveBackground)),Q.textSecondary&&n.value.style.setProperty("--timestamp-active-color",_.AP(Q.textSecondary)))},"KHcbwb");
V={};return _.K("transcript-segment-view-model",{class:_.KT("ytwTranscriptSegmentViewModelHost",(V.ytwTranscriptSegmentViewModelHostActive=f,V.ytwTranscriptSegmentViewModelHostModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),V)),el:n},_.K(_.e,{cond:function(){var t;return(t=D())==null?void 0:t.timestamp},
then:function(t){var J={};return _.K("div",{class:_.KT("ytwTranscriptSegmentViewModelTimestamp",(J.ytwTranscriptSegmentViewModelTimestampActive=f,J))},t)}}),_.K(_.Ow,{text:function(){var t,J,H;
return(H=(t=D())==null?void 0:t.attributedText)!=null?H:{content:(J=D())==null?void 0:J.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Fd");var dpV=_.MA(function(V){var D=V.data;return _.K("div",{class:"yt-video-attributes-section-view-model__header"},_.K("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return D().headerTitle}),_.K(_.e,{cond:function(){return D().headerSubtitle},
then:function(){return _.K("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return D().headerSubtitle})}}))},"Gd"),uZU=_.MA(function(V){function D(d){return Math.max(Math.min(d,0),y()-Q())}
var f=V.data;var n,t=_.W2("div",function(d){if(_.c("web_metadata_carousel_elref_bugfix")){var z=function(){Z(d.clientWidth)};
z();window.ResizeObserver&&(n=new ResizeObserver(z),n.observe(d))}}),J=_.W2("div",function(d){T(d.scrollWidth)}),H=_.r(_.HJ(0,void 0,"I9GbH"));
V=H.next().value;H=H.next().value;var Q=V,T=H;H=_.r(_.HJ(0,void 0,"eQAn5b"));V=H.next().value;H=H.next().value;var y=V,Z=H;V=_.r(_.HJ(0,void 0,"VU3lg"));var l=V.next().value,G=V.next().value;_.Nl(function(){if(!_.c("web_metadata_carousel_elref_bugfix")){var d=function(){T(J.value.scrollWidth);Z(t.value.clientWidth)};
d();if(window.ResizeObserver){var z=new ResizeObserver(d);z.observe(t.value);_.dc(function(){z.disconnect()})}}});
_.dc(function(){if(_.c("web_metadata_carousel_elref_bugfix")){var d;(d=n)==null||d.disconnect()}});
var F=function(){G(D(l()+y()))},k=function(){G(D(l()-y()))};
return _.K("yt-video-attributes-section-view-model",null,_.K("div",{class:"yt-video-attributes-section-view-model"},_.K(_.e,{cond:function(){return f().headerTitle},
then:function(){return _.K(dpV,{data:f})}}),_.K("div",{class:_.KT("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:t},_.K("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.el({transform:function(){var d=l();_.XB("HTML_DIR")==="rtl"&&(d*=-1);return"translateX("+d+"px)"}}),
el:J},_.K(_.BW,{data:function(){return f().videoAttributeViewModels}},{videoAttributeViewModel:qaE}))),_.K(_.BW,{data:function(){return f().footerButton}},{buttonViewModel:function(d){return _.K(_.HO,{data:d.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.K(_.e,{cond:function(){return l()<0&&f().previousButton},
then:function(){return _.K("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.K(_.BW,{data:function(){return f().previousButton}},{buttonViewModel:function(d){return _.K(_.HO,{data:d.data,
onClick:F})}}))}}),_.K(_.e,{cond:function(){return l()>y()-Q()&&f().nextButton},
then:function(){return _.K("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.K(_.BW,{data:function(){return f().nextButton}},{buttonViewModel:function(d){return _.K(_.HO,{data:d.data,
onClick:k})}}))}})))},"Hd");
uZU.idomCompat=!0;var NVF=_.MA(function(V){var D=V.data;var f=V.active;var n={},t={};return _.K("timeline-item-view-model",{class:_.KT("ytwTimelineItemViewModelHost",(n.ytwTimelineItemViewModelHostChapterChild=V.chapterChild,n.ytwTimelineItemViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),n))},_.K("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.K("div",{class:_.KT("ytwTimelineItemViewModelTimestamp",(t.ytwTimelineItemViewModelTimestampActive=
f,t))},function(){return D().timestamp})),_.K("div",{class:"ytwTimelineItemViewModelContentItems"},_.K(_.BW,{data:function(){return D().contentItems}},{transcriptSegmentViewModel:function(J){return _.K(BVE,{data:J.data,
active:f})},
videoAttributesSectionViewModel:uZU})))},"Id");var mpV=_.MA(function(V){var D=V.data;V={};return _.K("timeline-chapter-view-model",{class:_.KT("ytwTimelineChapterViewModelHost")},_.K("div",{class:_.KT("ytwTimelineChapterViewModelTitle",(V.ytwTimelineChapterViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),V))},function(){return D().title}),_.K(_.BW,{data:function(){return D().contents}},{timelineItemViewModel:function(f){return _.K(NVF,{data:f.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(f){return _.K(uZU,{data:f.data})}}))},"Jd");var zoE=_.MA(function(V){var D=V.data;var f=_.W2("macro-markers-panel-item-view-model"),n=_.KX(_.mBL,function(){var J;return(J=D().markersEngagementPanelSyncEntityKey)!=null?J:""}),t=function(){var J;
return((J=n())==null?void 0:J.activeItemIndex)===D().index};
V=_.jl(function(J){var H,Q,T,y,Z;return _.w(function(l){if(l.nextAddress==1)return J.stopPropagation(),_.CX(_.R7(J),f.value,["A".toString(),"BUTTON".toString()])?l.return():(H=_.Xo(D().onTap))?_.b(l,_.JY(),2):l.return();Q=l.yieldResult;y=(T=_.g(H,_.pl))==null?void 0:T.startTimeSeconds;y===void 0||(Z=Q)!=null&&Z.seekTo(y,!0);_.yz(l)})});
return _.K("macro-markers-panel-item-view-model",{class:_.KT("ytwMacroMarkersPanelItemViewModelHost",{"is-active":t}),el:f,"on:click":V,tabindex:0},_.K(_.BW,{data:function(){var J;return(J=D())==null?void 0:J.item}},{timelineChapterViewModel:function(J){return _.K(mpV,{data:J.data,
active:t})},
timelineItemViewModel:function(J){return _.K(NVF,{data:J.data,active:t})},
videoAttributeViewModel:qaE}))},"Kd");
zoE.idomCompat=!0;_.fT(zoE,"macro-markers-panel-item-view-model",{props:{data:_.WX}});_.fT(uZU,"yt-video-attributes-section-view-model",{props:{data:_.WX}});var RoY=_.MA(function(V){var D=function(){var f,n,t;return(t=(f=V.data().leadingLogoAccessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)!=null?t:""};
return _.K("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.K(_.e,{cond:function(){return V.data().leadingLogo},
then:function(f){return _.K(_.xt,{className:"ytwFantasySectionHeaderViewModelLogo",data:f,alt:D})}}),_.K("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.K(_.Ow,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return V.data().title}}),_.K(_.Ow,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return V.data().subtitle}})),_.K(_.BW,{data:function(){return V.data().trailingButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ld");var Cpl=_.MA(function(V){var D={};D=_.KT("ytwFantasyTeamViewModelHost",(D.ytwFantasyTeamViewModelCompact=function(){var t;return!((t=V.compact)==null||!t.call(V))},D.ytwFantasyTeamViewModelUser=function(){return V.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},D.ytwFantasyTeamViewModelOpponent=function(){return V.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},D));
var f=function(){var t,J,H;return(H=(t=V.data().teamLogoAccessibility)==null?void 0:(J=t.accessibilityData)==null?void 0:J.label)!=null?H:""},n=_.KX(R8Y,function(){return V.data().teamEntityKey});
return _.K("ytw-fantasy-team-view-model",{class:D},_.K(_.e,{cond:function(){return V.data().teamLogo},
then:function(t){return _.K(_.xt,{className:"ytwFantasyTeamViewModelLogo",data:t,alt:f})}}),_.K("div",{class:"ytwFantasyTeamViewModelMetadata"},_.K("div",{class:"ytwFantasyTeamViewModelHeader"},_.K(_.Ow,{className:"ytwFantasyTeamViewModelScore",
text:function(){var t;return(t=n())==null?void 0:t.score}}),_.K(_.cj,{icon:function(){var t;
return(t=n())==null?void 0:t.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.K(_.Ow,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var t;return(t=n())==null?void 0:t.projectedScore}})),_.K(_.Ow,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return V.data().primaryText}}),_.K(_.Ow,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return V.data().secondaryText}}),_.K(_.Ow,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return V.data().tertiaryText}})),_.K(_.Ow,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var t;return(t=n())==null?void 0:t.score}}))},"Md");_.fT(_.MA(function(V){return _.K("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.K("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.K(_.BW,{data:function(){return V.data().summaryHeader}},{fantasySectionHeaderViewModel:RoY})),_.K(_.BW,{data:function(){return V.data().userTeam}},{fantasyTeamViewModel:Cpl}),_.K(_.BW,{data:function(){return V.data().opponentTeam}},{fantasyTeamViewModel:Cpl}))},"Nd"),"fantasy-league-summary-view-model",{props:{data:_.WX}});var qLu=_.MA(function(V){var D=_.Or(V,{shape:{},useCustomTabRenderable:!1}),f=D.shape;D=D.useCustomTabRenderable;var n=V.customTabRenderable,t=function(){return f().disabled},J=function(){return f().selected},H=function(){return f().title},Q=function(){return f().icon},T=_.W2("yt-tab-shape");
V=_.jl(function(l){var G;if(!t()&&((G=f().aTagConfig)==null?0:G.onclick))f().aTagConfig.onclick(l);return!1});
var y=_.jl(function(l){if(l.key==="Enter"||l.key==="ArrowUp"||l.key==="ArrowDown")l.preventDefault(),T.value.click();return!1}),Z={};
return _.K("yt-tab-shape",{class:_.KT("yt-tab-shape-wiz",function(){return f().className},(Z["yt-tab-shape-wiz__tab--last-tab"]=function(){return f().isLastTab},Z["yt-tab-shape-wiz--host-disabled"]=t,Z["yt-tab-shape-wiz--host-clickable"]=!n,Z)),
role:n?void 0:"tab","aria-selected":J!=null?J:!1,"aria-disabled":t,tabindex:n?void 0:0,"on:click":V,"on:keydown":y,el:T,"tab-identifier":function(){return f().identifier},
"tab-title":H},_.K(_.e,{cond:D,then:function(){return n()},
else:function(){var l={},G={};return _.K(_.th,null,_.K("div",{class:_.KT("yt-tab-shape-wiz__tab",(l["yt-tab-shape-wiz__tab--tab-selected"]=J,l))},_.K(_.e,{cond:Q,then:function(F){return _.K(_.cj,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return F().iconType}})}}),H),_.K("div",{class:_.KT("yt-tab-shape-wiz__tab-bar",(G["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=J,G))}))}}))},"Od");
qLu.idomCompat={callbacks:{customTabRenderable:!0}};_.EMl=_.MA(function(V){var D=V.shape;V=_.r(_.HJ(48,void 0,"r9IBlb"));var f=V.next().value,n=V.next().value;V=_.r(_.HJ(0,void 0,"Bd7rmd"));var t=V.next().value,J=V.next().value,H=function(){return D().tabs},Q=_.W2("yt-tab-group-shape"),T=function(){var y,Z;
return(Z=(y=H())==null?void 0:y.findIndex(function(l){return l.selected}))!=null?Z:-1};
_.Nl(function(){var y=Q.value.querySelectorAll("yt-tab-shape"),Z=T()>-1?y[T()]:void 0;_.dm.addJob(function(){n((Z==null?void 0:Z.getBoundingClientRect().width)||0)},8,0)});
_.BJ(function(){var y=T(),Z=_.dm.addJob(function(){var l,G=((l=Q.value)==null?void 0:l.querySelectorAll("yt-tab-shape"))||[],F;n(((F=y>-1?G[y]:void 0)==null?void 0:F.getBoundingClientRect().width)||0);for(F=l=0;F<y;F++)l+=G[F].offsetWidth+24;_.XB("HTML_DIR")==="rtl"&&(l=-l);J(l)},8,0);
_.dc(function(){_.dm.cancelJob(Z)})},"EHixkc");
V={};return _.K("yt-tab-group-shape",{class:_.KT("yt-tab-group-shape-wiz",(V["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return D().isOverflowHidden},V)),
el:Q},_.K(_.e,{cond:H,then:function(y){return _.K(_.th,null,_.K("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.K(_.FB,{each:y},function(Z,l){return _.K(qLu,{shape:function(){return Object.assign({},Z,{isLastTab:l()===y().length-1})},
customTabRenderable:Z.customTabRenderable,useCustomTabRenderable:!!Z.customTabRenderable})})),_.K(XeV,{width:f,
sliderOffset:t}))}}))},"Pd");
_.EMl.idomCompat=!0;var XeV=_.MA(function(V){var D=_.IU(V.sliderOffset,0),f=V.width;return _.K("div",{class:"yt-tab-group-shape-wiz__slider",style:_.el({width:function(){return f()+"px"},
transform:function(){return"translateX("+D()+"px)"}})})},"Qd");var AJr=_.MA(function(V){var D=function(){var J,H,Q;return(Q=(J=V.data().playerLogoAccessibility)==null?void 0:(H=J.accessibilityData)==null?void 0:H.label)!=null?Q:""},f=_.KX(CsY,function(){return V.data().playerEntityKey}),n={};
n=_.KT("ytwFantasyPlayerViewModelHost",(n.ytwFantasyPlayerViewModelPlaying=function(){var J;return!((J=f())==null||!J.isPlayerPlaying)},n.ytwFantasyPlayerViewModelOnField=function(){var J;
return((J=f())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},n.ytwFantasyPlayerViewModelRedZone=function(){var J;
return((J=f())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},n));
var t=function(){var J,H,Q,T=((J=_.DY().resolve(_.Vx(_.pm)))==null?0:J())?(H=V.data().playerLogoBackgroundColor)==null?void 0:H.darkTheme:(Q=V.data().playerLogoBackgroundColor)==null?void 0:Q.lightTheme;return T===void 0?"":_.aB(T)};
return _.K("ytw-fantasy-player-view-model",{class:n},_.K(_.e,{cond:function(){return V.data().playerLogo},
then:function(J){return _.K("div",{class:"ytwFantasyPlayerViewModelLogo"},_.K("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.K(_.xt,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.el({"background-color":t}),data:J,alt:D})),_.K("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.K(_.cj,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.K("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.K("div",{class:"ytwFantasyPlayerViewModelHeader"},_.K(_.Ow,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var J;return(J=V.data())==null?void 0:J.playerNameText}}),_.K(_.Ow,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var J;return(J=V.data())==null?void 0:J.playerDescriptionText}})),_.K("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.K(_.Ow,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=f())==null?void 0:J.gamePeriodText}}),_.K(_.Ow,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=V.data())==null?void 0:J.opponentTeamText}}),_.K(_.Ow,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=f())==null?void 0:J.gameStatusText}}),_.K(_.Ow,{className:_.KT("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var J;return(J=f())==null?void 0:J.playerStatusText}})),_.K("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.K(_.Ow,{text:function(){var J;
return(J=f())==null?void 0:J.playerStatsText}}))),_.K(_.Ow,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var J;return(J=f())==null?void 0:J.fantasyScore}}))},"Rd");var ail=_.MA(function(V){return _.K("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.K(_.e,{cond:function(){return V.data().players},
then:function(D){return _.K(_.BW,{data:D},{fantasyPlayerViewModel:AJr})}}))},"Sd");var YLV=_.MA(function(V){var D=_.r(_.Gk(function(){var t;return(t=V.data().selectedTabIdentifierKey)!=null?t:""})),f=D.next().value,n=D.next().value;
_.B9(function(){var t;(t=V.setSelectedTabSignal)==null||t.call(V,f)});
return _.K("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.K("div",{class:"ytTabbedViewModelTabGroup"},_.K(_.EMl,{shape:function(){var t=V.data(),J=[],H={tabs:J};if(!t.tabs)return H;t=_.r(t.tabs);for(var Q=t.next(),T={};!Q.done;T={tabViewModel:void 0},Q=t.next())if(T.tabViewModel=_.g(Q.value,ocE),T.tabViewModel){var y=Q=void 0;J.push({aTagConfig:{onclick:function(Z){return function(){var l;n((l=Z.tabViewModel.tabIdentifier)!=null?l:"")}}(T)},
identifier:T.tabViewModel.tabIdentifier,selected:f()===T.tabViewModel.tabIdentifier,title:(y=(Q=T.tabViewModel.title)==null?void 0:Q.content)!=null?y:""})}return H}})),_.K(_.BW,{data:function(){var t,J=_.r((t=V.data().tabs)!=null?t:[]);
for(t=J.next();!t.done;t=J.next())if((t=_.g(t.value,ocE))&&t.tabIdentifier===f())return t.content}},{fantasyRosterViewModel:ail}))},"Td");_.fT(_.MA(function(V){var D=_.r(ieU()),f=D.next().value,n=D.next().value;return _.K("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.K(_.Ow,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return V.data().title}}),_.K(_.e,{cond:function(){return V.data().tabbedViewModel},
then:function(t){return _.K(_.BW,{data:t},{tabbedViewModel:function(J){return _.K(YLV,{data:J.data,setSelectedTabSignal:n})}})}}),_.K(_.e,{cond:function(){var t,J=(t=_.g(V.data().tabbedViewModel,J6P))==null?void 0:t.tabs;
t=_.g(J==null?void 0:J[0],ocE);J=_.g(J==null?void 0:J[1],ocE);var H=t==null?void 0:t.tabIdentifier;if(f()===H){var Q,T;if(!((Q=_.g(t==null?void 0:t.content,Dml))==null?0:(T=Q.players)==null?0:T.length))return V.data().noUserTeamPlayersText}else{var y,Z;if(!((y=_.g(J==null?void 0:J.content,Dml))==null?0:(Z=y.players)==null?0:Z.length))return V.data().noOpponentTeamPlayersText}},
then:function(t){return _.K(_.Ow,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:t})}}))},"Ud"),"ytw-fantasy-matchup-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){return _.K("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.K(_.Ow,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return V.data().title}}),_.K(_.e,{cond:function(){return V.data().matchupTeamPairs},
then:function(D){return _.K(_.FB,{each:D,keyBy:"INDEX"},function(f){return _.K("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.K(_.BW,{data:function(){return[f().firstTeam,f().secondTeam]}},{fantasyTeamViewModel:function(n){return _.K(Cpl,{data:n.data,
compact:!0})}}))})}}))},"Vd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=function(){var t,J,H;return(H=(t=V.data().userLogoAccessibility)==null?void 0:(J=t.accessibilityData)==null?void 0:J.label)!=null?H:""},f=function(){var t,J,H;
return(H=(t=V.data().opponentLogoAccessibility)==null?void 0:(J=t.accessibilityData)==null?void 0:J.label)!=null?H:""},n=_.KX(z8F,function(){return V.data().entityKey});
return _.K("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.K("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.K(_.e,{cond:function(){return V.data().userLogo},
then:function(t){return _.K(_.xt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:D})}}),_.K("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.K(_.Ow,{text:function(){return V.data().title}})),_.K(_.e,{cond:function(){return V.data().opponentLogo},
then:function(t){return _.K(_.xt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:f})}})),_.K("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.K("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.K(_.Ow,{text:function(){var t;
return(t=n())==null?void 0:t.userWinNumberLabel}})),_.K("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.K("div",{class:_.KT("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.el({flex:function(){var t,J;return(J=(t=n())==null?void 0:t.userWinNumber)!=null?J:50}})}),_.K("div",{class:_.KT("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.el({flex:function(){var t,J;return(J=(t=n())==null?void 0:t.opponentWinNumber)!=null?J:50}})})),_.K("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.K(_.Ow,{text:function(){var t;
return(t=n())==null?void 0:t.opponentWinNumberLabel}}))))},"Wd"),"fantasy-win-probability-view-model",{props:{data:_.WX}});var $p6={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},iDY=_.MA(function(V){return _.K(_.BW,{data:V.button},{buttonViewModel:function(D){return _.K(_.HO,{data:D.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Xd"),SLV=_.MA(function(V){return _.K("ytd-backstage-locked-post-view-model",{class:_.KT("ytdBackstageLockedPostViewModelHost",V.className)},_.K("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.K("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.K(_.BW,
{data:function(){return V.data().authorAvatar}},{decoratedAvatarViewModel:_.kd})),_.K("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.K("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.K(_.Ow,{text:function(){return V.data().authorText}})),_.K("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.K(_.Ow,{text:function(){return V.data().publishedTimeText}}),_.K(_.BW,{data:function(){return V.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(D){return _.K(jrp,
{data:D.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.K("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.K(_.Ow,{text:function(){return V.data().contentText}})),_.K(_.kw,null,_.K(_.gj,{when:function(){return V.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.K("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.K(_.xt,{data:$p6,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.K(_.Ow,{text:function(){return V.data().lockedText}}))}),_.K(_.gj,{when:function(){return V.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.K("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.K("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.K(_.xt,{data:$p6,
alt:""})),_.K(_.Ow,{text:function(){return V.data().lockedText}}))})),_.K("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.K(iDY,{button:function(){return V.data().likeButton}}),_.K("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return V.data().voteCountA11y}},_.K(_.Ow,{text:function(){return V.data().voteCount}})),_.K(iDY,{button:function(){return V.data().dislikeButton}}),_.K(iDY,{button:function(){return V.data().commentButton}}),_.K("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return V.data().commentCountA11y}},_.K(_.Ow,{text:function(){return V.data().commentCount}}))))},"Yd");
SLV.idomCompat=!0;_.fT(SLV,"ytd-backstage-locked-post-view-model",{props:{data:_.WX,className:_.WX}});_.zk("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var z9=function(){var V=_.E.apply(this,arguments)||this;V.darkerPanels=_.c("web_watch_darker_panels");V.commentsHidePanelButton=!1;V.isWatchGrid=!1;V.continuationShowButton=!1;V.isSearch=!1;V.isConstrainedList=!1;V.isWatch=!1;V.eligibleToSwitchToGrid=!1;V.notSticky=!1;V.epRestyle=!1;V.isCarouselInFeed=!0;V.topSpacingZero=!1;V.continuationIsInitialLoad=!0;V.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");V.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");V.mastheadHeight=
0;V.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};V.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return V};
_.v(z9,_.E);_.P=z9.prototype;_.P.updateLockupContainerTypes=function(V){if(this.eligibleToSwitchToGrid){var D;(D=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||D.forEach(function(f){f.containerType=V})}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.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",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",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:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")}}};
_.P.created=function(){};
_.P.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.P.handleIntersect=function(V){this.notSticky=V[0].intersectionRatio===1};
_.P.attached=function(){var V=this;document.addEventListener("scroll",_.Ty(this,this.updateHeaderState));var D;this.mastheadHeight=((D=document.querySelector("ytd-masthead"))==null?void 0:D.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(f){V.handleIntersect(f)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){V.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){document.removeEventListener("scroll",_.Ty(this,this.updateHeaderState));var V;(V=this.intersectionObserver)==null||V.disconnect();var D;(D=this.resizeObserver)==null||D.disconnect()};
_.P.updated=function(V){V.has("data")&&this.updateHeaderState()};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FcU(!this.notSticky))};
_.P.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var V=_.Pt(this.hostElement).querySelector("ytd-comments-header-renderer");V&&(V.hidePanelButton=this.commentsHidePanelButton)}};
_.P.onRetrieveLocation=function(V,D){this.containsComments()&&(this.firstCommentsLoaded=D.hasComments=!0)};
_.P.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.P.onLoadReloadContinuation=function(V,D){var f=this;V.stopPropagation();this.isReloading=!0;_.PA(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(n){var t=_.DY().resolve(_.RB);n=D(n);t.postData(n).then(function(J){f.onReloadContinuationData(J)})}})};
_.P.onReloadContinuationData=function(V){if(V=this.get("response.continuationContents.itemSectionContinuation",V)||this.get("response.contents.itemSectionRenderer",V)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",V)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",V))this.set("data.contents",V.contents||V.results),V.header&&this.set("data.header",V.header),this.set("data.continuations",
V.continuations||[]);this.isReloading=!1};
_.P.computeContentsClass=function(V){return V?"reloading":""};
_.P.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.P.computeSectionIdentifier=function(V){return V==null?void 0:V.sectionIdentifier};
_.P.computeFitContainer=function(V){return(V==null?void 0:V.sectionIdentifier)==="youchat-item-section"};
_.P.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.c("kevlar_disable_comments_auto_load")};
_.P.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.P.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeHasDestinationShelfRenderer=function(V){var D,f;return!!(V==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.destinationShelfRenderer)};
_.P.computeHasSectionGroupViewModel=function(V){var D,f;return!!(V==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.sectionGroupViewModel)};
_.P.computeHasQrCodeRenderer=function(V){var D,f;return!!(V==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.qrCodeRenderer)};
_.P.computeStaticCommentsHeader=function(V){return V&&this.containsComments()};
_.P.computeEpRestyle=function(V){return _.c("web_ep_restyling")&&V&&this.containsComments()};
_.P.computeIsContinuationCommentSection=function(V){return(V==null?void 0:V.targetId)==="shorts-engagement-panel-comments-section"||(V==null?void 0:V.targetId)==="comments-section"||(V==null?void 0:V.targetId)==="engagement-panel-comments-section"};
_.P.computeSuppressPaddingDisclaimer=function(){var V,D,f,n;return!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:(n=f.productListHeaderRenderer)==null?0:n.suppressPaddingDisclaimer)};
_.P.computeHeaderStyle=function(V){switch(V==null?void 0:V.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.P.dataChanged=function(){this.firstCommentsLoaded=!1};
_.P.observeDataContentsLength=function(){var V,D;((V=this.data)==null?0:(D=V.contents)==null?0:D.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.P.onYtDismissibleItemDismissedChange=function(V){this._setItemDismissed(V.type==="yt-dismissible-item-dismissed")};
_.P.triggerContinuations=function(){for(var V=_.Pt(this.hostElement).querySelector("#continuations").children,D=0;D<V.length;D++)V[D].trigger()};
_.P.triggerInitialContinuations=function(){for(var V=_.Pt(this.hostElement).querySelector("#continuations").children,D=0;D<V.length;D++)V[D].triggerIfNotPreviouslyTriggered()};
_.P.handleYtItemSectionContinuation=function(V,D){var f;D&&((f=this.data)==null?void 0:f.sectionIdentifier)!==D||(this.set("data.continuations",[V]),this.triggerContinuations())};
_.P.handleYtItemSectionReplace=function(V,D){var f;D&&((f=this.data)==null?void 0:f.sectionIdentifier)!==D||(this.set("data.contents",V),this.set("data.continuations",[]))};
_.P.computeUseHeightHack=function(V){return V&&!_.c("kevlar_disable_height_hack")};
_.P.computeTopSpacingZero=function(V){return V};
_.P.continuationShowButtonChanged=function(){var V=_.Pt(this.hostElement).querySelector("ytd-continuation-item-renderer");V&&(V.showButton=this.continuationShowButton)};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("data-changed",this.data))};
_.IG.Object.defineProperties(z9.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("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 V,D,f;return!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n,t,J,H;return!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:(n=f.shelfRenderer)==null?0:(t=n.content)==null?0:(J=t.gridRenderer)==null?0:(H=J.targetId)==null?0:H.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D[0])==null?0:f.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.PI("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.c("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
z9.prototype.dataChangedForBinding=z9.prototype.dataChangedForBinding;z9.prototype.continuationShowButtonChanged=z9.prototype.continuationShowButtonChanged;z9.prototype.onYtDismissibleItemDismissedChange=z9.prototype.onYtDismissibleItemDismissedChange;z9.prototype.observeDataContentsLength=z9.prototype.observeDataContentsLength;z9.prototype.dataChanged=z9.prototype.dataChanged;z9.prototype.onServiceRequestCompleted=z9.prototype.onServiceRequestCompleted;z9.prototype.onLoadReloadContinuation=z9.prototype.onLoadReloadContinuation;
z9.prototype.onRetrieveLocation=z9.prototype.onRetrieveLocation;z9.prototype.commentsHidePanelButtonChanged=z9.prototype.commentsHidePanelButtonChanged;z9.prototype.dispatchChipBarIsSticky=z9.prototype.dispatchChipBarIsSticky;z9.prototype.updateLockupContainerTypes=z9.prototype.updateLockupContainerTypes;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],z9.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],z9.prototype,"ytLazyListBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],z9.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.u(_.$D),_.p("design:type",Object)],z9.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],z9.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z9.prototype,"darkerPanels",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Boolean)],z9.prototype,"engagementPanel",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"commentsHidePanelButton",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"isWatchGrid",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"continuationShowButton",void 0);_.S([_.q({computed:"computeIsContinuationCommentSection(data)"}),_.p("design:type",Boolean)],z9.prototype,"continuationIsCommentsSection",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],z9.prototype,"autoFill",void 0);_.S([_.q(),_.p("design:type",Boolean)],z9.prototype,"continuationDisablePrescanVisibility",void 0);_.S([_.q(),_.p("design:type",Boolean)],z9.prototype,"isReloading",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"isSearch",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"isConstrainedList",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"isWatch",void 0);
_.S([_.q(),_.p("design:type",Object)],z9.prototype,"eligibleToSwitchToGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z9.prototype,"notSticky",void 0);_.S([_.q({selector:_.mf}),_.p("design:type",Object)],z9.prototype,"isGridViewEnabled",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Object)],z9.prototype,"epRestyle",void 0);
_.S([_.R("isWatch"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"hideShortsShelfHeader",null);_.S([_.R("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],z9.prototype,"thumbnailWidth",null);_.S([_.R("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],z9.prototype,"sizing",null);
_.S([_.R("isWatch","isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],z9.prototype,"lockupContainerType",null);_.S([_.KI("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],z9.prototype,"updateLockupContainerTypes",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],z9.prototype,"pageSubtype",void 0);
_.S([_.q({computed:"computeContainerWidth()"}),_.p("design:type",Number)],z9.prototype,"containerWidth",void 0);_.S([_.q(),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"isPlaylist",null);_.S([_.q(),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"isClipList",null);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"isCarouselInFeed",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"isPlaylistVideoContainer",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"isSearchFrictionPage",null);_.S([_.q({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.p("design:type",Boolean)],z9.prototype,"useHeightHack",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.p("design:type",Object)],z9.prototype,"topSpacingZero",void 0);_.S([_.q({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.p("design:type",Boolean)],z9.prototype,"showButton",void 0);_.S([_.q(),_.p("design:type",Boolean)],z9.prototype,"firstCommentsLoaded",void 0);_.S([_.q(),_.p("design:type",Object)],z9.prototype,"continuationIsInitialLoad",void 0);
_.S([_.q({reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],z9.prototype,"itemDismissed",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.p("design:type",String)],z9.prototype,"sectionIdentifier",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.p("design:type",String)],z9.prototype,"fitContainer",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.p("design:type",Boolean)],z9.prototype,"hasDestinationShelfRenderer",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Boolean)],z9.prototype,"staticCommentsHeader",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z9.prototype,"enableSqueezebackPanels",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],z9.prototype,"enableAnchoredPanel",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.p("design:type",Boolean)],z9.prototype,"hasSectionGroupViewModel",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.p("design:type",Boolean)],z9.prototype,"hasQrCodeRenderer",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.p("design:type",Boolean)],z9.prototype,"suppressDisclaimerSeparator",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.p("design:type",String)],z9.prototype,"headerStyle",void 0);_.S([_.R("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],z9.prototype,"lockupExperiments",null);
_.S([_.R("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],z9.prototype,"typographyBump",null);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],z9.prototype,"header",void 0);_.S([_.KI("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"dispatchChipBarIsSticky",null);
_.S([_.KI("commentsHidePanelButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"commentsHidePanelButtonChanged",null);_.S([_.bU("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],z9.prototype,"onRetrieveLocation",null);
_.S([_.bU("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Function]),_.p("design:returntype")],z9.prototype,"onLoadReloadContinuation",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"onServiceRequestCompleted",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"dataChanged",null);
_.S([_.eY("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"observeDataContentsLength",null);_.S([_.bU("yt-dismissible-item-dismissed"),_.bU("yt-dismissible-item-undismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],z9.prototype,"onYtDismissibleItemDismissedChange",null);
_.S([_.KI("continuationShowButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"continuationShowButtonChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z9.prototype,"dataChangedForBinding",null);_.S([_.a({is:"ytd-item-section-renderer",disableElementRegistration:!0})],z9);
_.Y(z9,"ytd-item-section-renderer",function(){if(rjV!==void 0)return rjV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return rjV=V},{mode:1});var WFY;var pQY=_.pA(_.Zl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var peE={},Wun=(peE[0]={title:_.Vc(_.Zl("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:hR("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},peE[1]={title:_.Vc(_.Zl("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:hR("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},peE);_.zk("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Rv=function(){var V=_.E.apply(this,arguments)||this;V.allVideosCount=0;V.allPlaylistCount=0;V.isOnline=!1;V.shouldRenderDownloadsBanner=!1;V.shouldRenderDownloadsBannerUpsell=!1;V.hasOptedIntoSmartDownloads=!1;V.areAllSmartDownloadsDeleted=!1;V.smartDownloadsCompleted=!1;return V};
_.v(Rv,_.E);Rv.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Rv.prototype.attached=function(){this.downloadsToRenderChanged()};
Rv.prototype.detached=function(){this.set("renderableData",{})};
Rv.prototype.downloadsToRenderChanged=function(){var V=_.Ol().getState().entities,D=_.sl(V),f=_.c("kevlar_playlist_dl_page_killswitch")?b9F(V):_.BR(V),n=_.oBZ(V),t=_.wcY(V),J=_.es(D);V=_.dg(V);this.set("renderableData",IVd(f,D,n,t,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,J,V))};
Rv.prototype.downloadsToRenderChanged=Rv.prototype.downloadsToRenderChanged;_.S([_.u(_.dh),_.p("design:type",Object)],Rv.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Rv.prototype,"renderableData",void 0);_.S([_.q({selector:_.kNY}),_.p("design:type",Object)],Rv.prototype,"allVideosCount",void 0);_.S([_.q({selector:XhX}),_.p("design:type",Object)],Rv.prototype,"allPlaylistCount",void 0);_.S([_.q({selector:_.RW}),_.p("design:type",Object)],Rv.prototype,"isOnline",void 0);_.S([_.q({selector:_.zPR}),_.p("design:type",Object)],Rv.prototype,"shouldRenderDownloadsBanner",void 0);
_.S([_.q({selector:_.Xc9}),_.p("design:type",Object)],Rv.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.S([_.q({selector:_.RPc}),_.p("design:type",Object)],Rv.prototype,"hasOptedIntoSmartDownloads",void 0);_.S([_.q({selector:_.C79}),_.p("design:type",Object)],Rv.prototype,"areAllSmartDownloadsDeleted",void 0);_.S([_.q({selector:qCZ}),_.p("design:type",Object)],Rv.prototype,"smartDownloadsCompleted",void 0);
_.S([_.eY("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rv.prototype,"downloadsToRenderChanged",null);_.S([_.a({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Rv);
_.Y(Rv,"ytd-offline-item-section-renderer",function(){if(WFY!==void 0)return WFY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return WFY=V},
{mode:1});var LFL;var IiU;var CQ=function(){return _.E.apply(this,arguments)||this};
_.v(CQ,_.E);
CQ.prototype.onDataChanged=function(){if(this.JSC$14674_lastData){var V=this.getFilterClass(this.JSC$14674_lastData.status);V&&this.hostElement.classList.remove(V)}var D;(V=this.getFilterClass((D=this.data)==null?void 0:D.status))&&this.hostElement.classList.add(V);V==="selected"?_.Pt(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Pt(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");V==="disabled"?_.Pt(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Pt(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14674_lastData=this.data};
CQ.prototype.getFilterClass=function(V){switch(V){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
CQ.prototype.onDataChanged=CQ.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CQ.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CQ.prototype,"onDataChanged",null);_.S([_.a({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],CQ);
_.Y(CQ,"ytd-search-filter-renderer",function(){if(IiU!==void 0)return IiU;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return IiU=V},{mode:_.J2("kevlar_poly_si_batch_j075")?1:2});var qI=function(){return _.E.apply(this,arguments)||this};
_.v(qI,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qI.prototype,"data",void 0);_.S([_.a({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],qI);
_.Y(qI,"ytd-search-filter-group-renderer",function(){if(LFL!==void 0)return LFL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LFL=V},{mode:_.J2("kevlar_poly_si_batch_j075")?1:2});var OD6;var Xj=function(){return _.E.apply(this,arguments)||this};
_.v(Xj,_.E);Xj.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.oa());this.isCollapsed=!this.isCollapsed};
Xj.prototype.navigateToAboutTheseResultsPage=function(){var V=G6("https://www.youtube.com/howyoutubeworks/product-features/search/");V?_.R3(window,V,"_blank"):_.Ah(Error("Wh"))};
Xj.prototype.dataChanged=function(){this.isCollapsed=!0};
Xj.prototype.computeShowBottomBorder=function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.button)==null?0:D.toggleButtonRenderer)||!((f=this.data)==null||!f.aboutTheseResultsButton)};
Xj.prototype.dataChanged=Xj.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xj.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.p("design:type",Boolean)],Xj.prototype,"showBottomBorder",void 0);_.S([_.q(),_.p("design:type",Boolean)],Xj.prototype,"renderCollapsibleMenu",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Xj.prototype,"isCollapsed",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xj.prototype,"dataChanged",null);_.S([_.a({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Xj);
_.Y(Xj,"ytd-search-sub-menu-renderer",function(){if(OD6!==void 0)return OD6;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OD6=V},{mode:1});var xpu;var MI6=new _.IH("SECTION_LIST_RENDERER_TOKEN");var hoU;var EH=function(){return _.E.apply(this,arguments)||this};
_.v(EH,_.E);EH.prototype.computeStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],EH.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],EH.prototype,"headerStyle",void 0);_.S([_.a({is:"ytd-text-header-renderer",disableElementRegistration:!0})],EH);
_.Y(EH,"ytd-text-header-renderer",function(){if(hoU!==void 0)return hoU;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hoU=V},{mode:1});var UpH;var As=function(){return _.E.apply(this,arguments)||this};
_.v(As,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],As.prototype,"data",void 0);_.S([_.a({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],As);
_.Y(As,"ytd-minor-moment-header-renderer",function(){if(UpH!==void 0)return UpH;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return UpH=V},{mode:1});var VFY;var av=function(){return _.E.apply(this,arguments)||this};
_.v(av,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],av.prototype,"data",void 0);_.S([_.a({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],av);
_.Y(av,"ytd-minor-moment-setting-alert-renderer",function(){if(VFY!==void 0)return VFY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VFY=V},{mode:1});var D5E;var fco;var Yh=function(){var V=_.E.apply(this,arguments)||this;V.booleanSettingById=!1;V.smartDownloadsEnabledVE=_.Bj(128287);V.smartDownloadsDisabledVE=_.Bj(128286);V.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return V};
_.v(Yh,_.E);_.P=Yh.prototype;_.P.attachSmartDownloadsSettingVes=function(){var V;this.activeVeForLogging||((V=this.data)==null?void 0:V.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.oj(_.lS(),this.smartDownloadsEnabledVE),_.oj(_.lS(),this.smartDownloadsDisabledVE))};
_.P.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.PA(this.hostElement,"yt-settings-switch-ready")};
_.P.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.P.onSwitchChange=function(V){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(V=_.x7(V).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.c("kevlar_settings_switch_resolve_command_killswitch")?_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(V)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.P.handleUpdateSettingsSwitch=function(V){(V=_.g(V,cDu))&&this.data&&this.data.id===V.id&&this.set("data.enabled",!!V.enabled)};
_.P.onToggleSettingsSwitch=function(V,D){this.data&&this.data.id===V&&this.set("data.enabled",D!=null?D:!this.data.enabled)};
_.P.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.OC.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.P.maybeLogSmartDownloadsSettingVisibility=function(){var V=_.Ni(),D;V&&((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.SJ(V,[this.smartDownloadsEnabledVE]),_.WA(V,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.SJ(V,[this.smartDownloadsDisabledVE]),_.WA(V,[this.smartDownloadsEnabledVE])))};
_.P.maybeLogSmartDownloadsSettingClick=function(){var V;((V=this.data)==null?void 0:V.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.rW(_.lS(),this.activeVeForLogging)};
_.P.updateDataEnabledFromBinding=function(V){this.set("data.enabled",V.detail.value)};
_.IG.Object.defineProperties(Yh.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!V&&(V=this.ytRendererBehavior.getSimpleString(this.data.title));return V}}});
Yh.prototype.dataChanged=Yh.prototype.dataChanged;_.S([_.u(_.dh),_.p("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Yh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Yh.prototype,"data",void 0);_.S([_.q({selector:function(V,D){if(Object.keys(V==null?void 0:V.entities).length)switch(D){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return KJ3(V.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.p("design:type",Object)],Yh.prototype,"booleanSettingById",void 0);_.S([_.q(),_.p("design:type",_.d2)],Yh.prototype,"activeVeForLogging",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Yh.prototype,"toggleAriaLabel",null);_.S([_.eY("data"),_.eY("booleanSettingById"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yh.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Yh);
_.Y(Yh,"ytd-settings-switch-renderer",function(){if(fco!==void 0)return fco;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fco=V},{mode:1});var $h=function(){return _.E.apply(this,arguments)||this};
_.v($h,_.E);$h.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}}}}};
_.IG.Object.defineProperties($h.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var V=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(V+=" remove-left-margin");this.data.extraBottomSpace&&(V+=" extra-bottom-space");return V}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$h.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$h.prototype,"contentsClassName",null);_.S([_.a({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],$h);
_.Y($h,"ytd-minor-moment-setting-section-renderer",function(){if(D5E!==void 0)return D5E;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return D5E=V},{mode:1});var nzU;var ij=function(){return _.E.apply(this,arguments)||this};
_.v(ij,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ij.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ij.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],ij);
_.Y(ij,"ytd-empty-product-details-renderer",function(){if(nzU!==void 0)return nzU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nzU=V},{mode:1});var tF6;var PlU;var SU=function(){var V=_.E.apply(this,arguments)||this;V.expanded=!0;return V};
_.v(SU,_.E);SU.prototype.getBadgeRowClass=function(V,D,f){for(var n=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),t=n.next();!t.done;t=n.next())t.value.onShow();V=V.selected;return f?V!==-1?V===D?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(V!==void 0?V:0)===D?"badge-line":"badge-hidden"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SU.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],SU.prototype,"expanded",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],SU);
_.Y(SU,"ytd-sponsorships-loyalty-badges-renderer",function(){if(PlU!==void 0)return PlU;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return PlU=V},{mode:1});var ozl;var Wi=function(){var V=_.E.apply(this,arguments)||this;V.expanded=!0;return V};
_.v(Wi,_.E);Wi.prototype.getContainerClasses=function(V,D){V=V?"expanded":"collapsed";D&&(V+=" item");return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Wi.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Wi.prototype,"expanded",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Wi);
_.Y(Wi,"ytd-sponsorships-perk-renderer",function(){if(ozl!==void 0)return ozl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ozl=V},{mode:1});var JXY;var pQ=function(){var V=_.E.apply(this,arguments)||this;V.expanded=!0;return V};
_.v(pQ,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pQ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],pQ.prototype,"expanded",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],pQ);
_.Y(pQ,"ytd-sponsorships-perks-renderer",function(){if(JXY!==void 0)return JXY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return JXY=V},{mode:1});var LQ=function(){var V=_.E.apply(this,arguments)||this;V.isCollapsed=!1;return V};
_.v(LQ,_.E);LQ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
LQ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
LQ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var V;this.expandCollapseButton=_.g((V=this.data)==null?void 0:V.expandButton,_.RI)}else{var D;this.expandCollapseButton=_.g((D=this.data)==null?void 0:D.collapseButton,_.RI)}};
LQ.prototype.updateExpandCollapseButton=LQ.prototype.updateExpandCollapseButton;LQ.prototype.onDataChanged=LQ.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LQ.prototype,"isCollapsed",void 0);_.S([_.q(),_.p("design:type",Object)],LQ.prototype,"expandCollapseButton",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LQ.prototype,"onDataChanged",null);_.S([_.eY("data","isCollapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LQ.prototype,"updateExpandCollapseButton",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],LQ);
_.Y(LQ,"ytd-sponsorships-expandable-perks-renderer",function(){if(tF6!==void 0)return tF6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return tF6=V},{mode:1});var rXl;var Iv=function(){return _.E.apply(this,arguments)||this};
_.v(Iv,_.E);Iv.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Iv.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Iv);
_.Y(Iv,"ytd-sponsorships-actionable-message-renderer",function(){if(rXl!==void 0)return rXl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return rXl=V},{mode:1});var H7V;var OH=function(){return _.E.apply(this,arguments)||this};
_.v(OH,_.E);_.P=OH.prototype;_.P.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.P.getExpansionIcon=function(V){return V?"COLLAPSE":"EXPAND"};
_.P.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.computeMessageContainerStyle=function(V){var D=V.expandableItems?" style-clickable":"";return V.messageContainerStyle?V.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+D:"style-unspecified"+D};
_.P.isSinglePerk=function(V){return!!V.messageContainerStyle&&(V.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||V.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.P.onExpandedChanged=function(){var V=this;if(this.expanded)for(var D=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),f=D.next();!f.done;f=D.next())f.value.onShow();_.pO(this,function(){_.PA(V.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
OH.prototype.onDataChanged=OH.prototype.onDataChanged;OH.prototype.onExpandedChanged=OH.prototype.onExpandedChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OH.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],OH.prototype,"expanded",void 0);
_.S([_.KI("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OH.prototype,"onExpandedChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OH.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],OH);
_.Y(OH,"ytd-sponsorships-expandable-message-renderer",function(){if(H7V!==void 0)return H7V;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return H7V=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var wUl;var xh=function(){return _.E.apply(this,arguments)||this};
_.v(xh,_.E);xh.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"}}}}};
xh.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.g(this.data.endButton,_.RI).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
xh.prototype.onDataChanged=xh.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xh.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xh.prototype,"onDataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],xh);
_.Y(xh,"ytd-sponsorships-heading-renderer",function(){if(wUl!==void 0)return wUl;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return wUl=V},{mode:1});var Qhu;var MI=function(){return _.E.apply(this,arguments)||this};
_.v(MI,_.E);_.S([_.q(),_.p("design:type",Object)],MI.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],MI);
_.Y(MI,"ytd-sponsorships-links-renderer",function(){if(Qhu!==void 0)return Qhu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Qhu=V},{mode:1});var Tyu;var hs=function(){return _.E.apply(this,arguments)||this};
_.v(hs,_.E);_.P=hs.prototype;_.P.onDataChanged=function(){if(this.data&&this.data.expandableItems){var V;(V=_.Pt(this.hostElement).querySelector("tp-yt-paper-button"))==null||V.setAttribute("role","button")}else{var D;(D=_.Pt(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.removeAttribute("role")}};
_.P.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.getExpansionIcon=function(V){return V?"COLLAPSE":"EXPAND"};
_.P.getTileClasses=function(V){return V?"tile expandable-tile":"tile"};
_.P.getButtonDisabled=function(V){return V?void 0:""};
hs.prototype.onDataChanged=hs.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hs.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],hs.prototype,"expanded",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hs.prototype,"onDataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],hs);
_.Y(hs,"ytd-sponsorships-list-tile-renderer",function(){if(Tyu!==void 0)return Tyu;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Tyu=V},{mode:1});var b7L;var K_p;var UH=function(){return _.E.apply(this,arguments)||this};
_.v(UH,_.E);UH.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UH.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],UH);
_.Y(UH,"ytd-sponsorships-promotion-renderer",function(){if(K_p!==void 0)return K_p;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return K_p=V},{mode:1});var yXl;var Vr=function(){return _.E.apply(this,arguments)||this};
_.v(Vr,_.E);Vr.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vr.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Vr);
_.Y(Vr,"ytd-sponsorships-purchase-option-renderer",function(){if(yXl!==void 0)return yXl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return yXl=V},{mode:1});var Z7E;var jhl;var lcP=function(){return _.E.apply(this,arguments)||this};
_.v(lcP,_.E);_.S([_.q(),_.p("design:type",Object)],lcP.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],lcP);
_.Y(lcP,"ytd-ypc-offer-promo-renderer",function(){if(jhl!==void 0)return jhl;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jhl=V},{mode:1});var D4=function(){return _.E.apply(this,arguments)||this};
_.v(D4,_.E);_.P=D4.prototype;
_.P.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"}}}}};
_.P.expansionCTA=function(V,D){return V&&(D?V.collapseCallToAction:V.expansionCallToAction)};
_.P.getExpansionIcon=function(V){return V?"COLLAPSE":"EXPAND"};
_.P.expansionCallToActionTap=function(){var V=this;this.expanded=!this.expanded;_.pO(this,function(){_.PA(V.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var V,D=(V=this.data)==null?void 0:V.onVisible;D&&this.ytComponentBehavior.resolveCommand(D)};
_.P.computeDisplayTitle=function(V){return!(!V||this.titledisplaystatus!=="show")};
_.P.computeDisplaySeparator=function(){return!1};
_.P.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
D4.prototype.onDataChanged=D4.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],D4.prototype,"data",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],D4.prototype,"expanded",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],D4.prototype,"purchaseButtonClicked",void 0);_.S([_.q({reflectToAttribute:!0,value:"show"}),_.p("design:type",String)],D4.prototype,"titledisplaystatus",void 0);_.S([_.q({computed:"computeDisplayTitle(data.title)"}),_.p("design:type",Boolean)],D4.prototype,"displayTitle",void 0);
_.S([_.q({computed:"computeDisplaySeparator(data)"}),_.p("design:type",Boolean)],D4.prototype,"displaySeparator",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D4.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],D4);
_.Y(D4,"ytd-sponsorships-tier-renderer",function(){if(Z7E!==void 0)return Z7E;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Z7E=V},{mode:2});var fj=function(){return _.E.apply(this,arguments)||this};
_.v(fj,_.E);
fj.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fj.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],fj);
_.Y(fj,"ytd-sponsorships-management-renderer",function(){if(b7L!==void 0)return b7L;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return b7L=V},{mode:1});var GEp;var nj=function(){return _.E.apply(this,arguments)||this};
_.v(nj,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nj.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],nj);
_.Y(nj,"ytd-open-in-native-app-view-model",function(){if(GEp!==void 0)return GEp;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return GEp=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var e3P;var cXl;var F_E=_.WV(["top-"]),gzl=_.WV(["bottom-"]),vz6=_.WV(["left-"]),kEr=_.WV(["right-"]),shH={},Byr=function(V,D,f){V.removeAttribute("top-"+f);V.removeAttribute("bottom-"+f);V.removeAttribute("left-"+f);V.removeAttribute("right-"+f);D&&(D.top&&_.iv([_.fi(F_E)],V,"top-"+f,D.top),D.bottom&&_.iv([_.fi(gzl)],V,"bottom-"+f,D.bottom),D.left&&_.iv([_.fi(vz6)],V,"left-"+f,D.left),D.right&&_.iv([_.fi(kEr)],V,"right-"+f,D.right))};
shH.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(V){var D,f=_.Pt((D=this.hostElement)!=null?D:this),n;D=this.cardItemBoxBehaviorMarginTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(n=this.hostElement)!=null?n:this;Byr(D,V,"margin")},
cardItemContainerPaddingChanged_:function(V){var D,f=_.Pt((D=this.hostElement)!=null?D:this),n;D=this.cardItemBoxBehaviorPaddingTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(n=this.hostElement)!=null?n:this;Byr(D,V,"padding")}}];var tM={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 d5u;var ugl;var PK=function(){return _.E.apply(this,arguments)||this};
_.v(PK,_.E);PK.prototype.textColorChanged_=function(){this.hostElement.style.color=tM[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
PK.prototype.textColorChanged_=PK.prototype.textColorChanged_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.S([_.u(shH.YtCardItemBoxBehavior),_.p("design:type",Object)],PK.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],PK.prototype,"data",void 0);_.S([_.KI("data.textColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PK.prototype,"textColorChanged_",null);
_.S([_.zy({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],PK);
_.Y(PK,"yt-card-item-text-renderer",function(){if(ugl===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;d5u===void 0&&(d5u=document.createElement("template"));var n=d5u;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ugl=V}V=ugl;return V},{mode:2});var NyF;var m5V;var oJ=function(){return _.E.apply(this,arguments)||this};
_.v(oJ,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],oJ.prototype,"data",void 0);_.S([_.zy({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],oJ);
_.Y(oJ,"yt-card-item-badge-renderer",function(){if(m5V===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;NyF===void 0&&(NyF=document.createElement("template"));var n=NyF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);m5V=V}V=m5V;return V},{mode:2});var z3o;var R3U;var JM=function(){return _.E.apply(this,arguments)||this};
_.v(JM,_.E);JM.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],JM.prototype,"data",void 0);_.S([_.zy({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],JM);
_.Y(JM,"yt-card-item-text-collection-renderer",function(){if(R3U===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;z3o===void 0&&(z3o=document.createElement("template"));var n=z3o;f.call(D,n.content.cloneNode(!0),V.content.firstChild);R3U=V}V=R3U;return V},{mode:2});var ClF;var qnr;var rr=function(){return _.E.apply(this,arguments)||this};
_.v(rr,_.E);rr.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]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],rr.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Number)],rr.prototype,"iconSize",void 0);_.S([_.zy({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],rr);
_.Y(rr,"yt-card-item-text-with-button-renderer",function(){if(qnr===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;ClF===void 0&&(ClF=document.createElement("template"));var n=ClF;f.call(D,n.content.cloneNode(!0),V.content.firstChild);qnr=V}V=qnr;return V},{mode:2});var HK=function(){return _.E.apply(this,arguments)||this};
_.v(HK,_.E);HK.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],HK.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],HK.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],HK);
_.Y(HK,"ytd-commerce-cart-summary-line-item-renderer",function(){if(cXl!==void 0)return cXl;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return cXl=V},{mode:1});_.zk("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var wr=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;return V};
_.v(wr,_.E);_.P=wr.prototype;_.P.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"}}}}};
_.P.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.P.updateSummary=function(){var V=this.commerceCartCheckoutButtonEntity,D;if(((D=this.data)==null?0:D.cartButton)&&V.checkoutSummaryText){var f,n=CL((f=this.data)==null?void 0:f.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+n+".cardItemTextRenderer.text",qR(V.checkoutSummaryText));if(V.checkoutDetailText){var t;f=CL((t=this.data)==null?void 0:t.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",qR(V.checkoutDetailText))}if(V.checkoutAdditionalMetadataText){var J;
t=CL((J=this.data)==null?void 0:J.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",qR(V.checkoutAdditionalMetadataText))}}else V.estimatedTotalPrice&&(J=CL((n=this.data)==null?void 0:n.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",qR(V.estimatedTotalPrice)))};
_.P.updateIsHidden=function(){var V,D=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isHidden;D!==void 0&&(this.hidden=D)};
_.P.updateCheckoutButton=function(){var V,D=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isDisabled;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",D);var f;V=(f=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:f.innertubeCommand;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",V);var n;f=(n=this.commerceCartCheckoutButtonEntity)==null?void 0:n.checkoutButtonText;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:f})};
wr.prototype.entityChanged=wr.prototype.entityChanged;_.S([_.u(_.dh),_.p("design:type",Object)],wr.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],wr.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],wr.prototype,"fullWidth",void 0);_.S([_.q(),_.p("design:type",Object)],wr.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],wr.prototype,"compact",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],wr.prototype,"hidden",void 0);
_.S([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AS3}),_.p("design:type",Object)],wr.prototype,"commerceCartCheckoutButtonEntity",void 0);_.S([_.KI("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wr.prototype,"entityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],wr);
_.Y(wr,"ytd-commerce-cart-checkout-button-renderer",function(){if(e3P!==void 0)return e3P;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return e3P=V},{mode:2});var XUY;_.Ezr={};
_.Ezr.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",_.Ty(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Ty(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(V){!this.tappableItemBehaviorTapEnabled||V.keyCode!==13&&V.keyCode!==32||V.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var V=this.data.onTap;V.ypcGetCartEndpoint?(_.HA(this.hostElement,[V]),this.tappableItemBehaviorTapEnabled=!1):V.ypcOffersEndpoint?_.HA(this.hostElement,[V]):_.wN(this.hostElement,[V],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(V){this.tappableItemBehaviorTapEnabled=!!V},
tappableItemBehaviorOnTapEnabledChanged_:function(){var V=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(V.setAttribute("tabIndex",0),V.setAttribute("role","button")):(V.removeAttribute("tabIndex"),V.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(V){V.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var AX6;var acl;var Qr=function(){return _.E.apply(this,arguments)||this};
_.v(Qr,_.E);Qr.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Rt("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Rt("sharingToggleButtonAndDefaultButton")}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Qr.prototype,"data",void 0);_.S([_.zy({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Qr);
_.Y(Qr,"yt-card-item-actions-renderer",function(){if(acl===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;AX6===void 0&&(AX6=document.createElement("template"));var n=AX6;f.call(D,n.content.cloneNode(!0),V.content.firstChild);acl=V}V=acl;return V},{mode:2});var Ynl;var $5P;var i7l;var SnV;var W_l;var pUV;var TX=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return V};
_.v(TX,_.E);TX.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
TX.prototype.handleDarkModeToggledAction_=function(V){this.isDarkTheme_=V};
TX.prototype.computeThemeImage_=function(V,D){if(!V||!V.imageLight)return!1;this.isCircular_=V.isCircular;V.imageWidth&&(this.hostElement.style.width=V.imageWidth+"px");V.imageHeight&&(this.hostElement.style.height=V.imageHeight+"px");V.borderWidth&&(this.image.style.borderWidth=V.borderWidth+"px",this.image.style.borderStyle="solid");V.borderColor&&(this.image.style.borderColor=_.aB(V.borderColor));return D&&V.imageDark?V.imageDark:V.imageLight};
TX.prototype.computeThemeIcon_=function(V){var D,f;if(!(V==null?0:(D=V.themedIcon)==null?0:(f=D.icon)==null?0:f.iconType))return!1;this.icon.style.color=tM[V.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(V.imageWidth||18)+"px";this.icon.style.height=(V.imageHeight||18)+"px";return _.Qa(V.themedIcon.icon.iconType)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(shH.YtCardItemBoxBehavior),_.p("design:type",Object)],TX.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],TX.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TX.prototype,"data",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],TX.prototype,"fit",void 0);_.S([_.q(),_.p("design:type",Boolean)],TX.prototype,"isDarkTheme_",void 0);_.S([_.q({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.p("design:type",Object)],TX.prototype,"themeImage_",void 0);_.S([_.q({computed:"computeThemeIcon_(data)"}),_.p("design:type",Object)],TX.prototype,"themeIcon_",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],TX.prototype,"isCircular_",void 0);
_.S([_.Zv("#image"),_.p("design:type",Object)],TX.prototype,"image",void 0);_.S([_.Zv("#icon"),_.p("design:type",Object)],TX.prototype,"icon",void 0);_.S([_.zy({is:"yt-themed-image-renderer",disableElementRegistration:!0})],TX);
_.Y(TX,"yt-themed-image-renderer",function(){if(pUV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;W_l===void 0&&(W_l=document.createElement("template"));var n=W_l;f.call(D,n.content.cloneNode(!0),V.content.firstChild);pUV=V}V=pUV;return V},{mode:2});var bs=function(){return _.E.apply(this,arguments)||this};
_.v(bs,_.E);bs.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"}}}}};
bs.prototype.computeImagePlacement_=function(V){return V||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bs.prototype,"data",void 0);_.S([_.q({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.p("design:type",String)],bs.prototype,"imagePlacement",void 0);
_.S([_.zy({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],bs);
_.Y(bs,"yt-card-item-text-with-image-renderer",function(){if(SnV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;i7l===void 0&&(i7l=document.createElement("template"));var n=i7l;f.call(D,n.content.cloneNode(!0),V.content.firstChild);SnV=V}V=SnV;return V},{mode:2});var Kj=function(){return _.E.apply(this,arguments)||this};
_.v(Kj,_.E);Kj.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"}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Kj.prototype,"data",void 0);_.S([_.zy({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Kj);
_.Y(Kj,"yt-card-item-error-renderer",function(){if($5P===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Ynl===void 0&&(Ynl=document.createElement("template"));var n=Ynl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);$5P=V}V=$5P;return V},{mode:2});var L_L;var Icr;_.zk("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var yr=function(){return _.E.apply(this,arguments)||this};
_.v(yr,_.E);_.P=yr.prototype;
_.P.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"}}}}};
_.P.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.P.backgroundColorChanged_=function(){var V,D=(V=this.data)==null?void 0:V.backgroundColor;V=tM[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Pt(this.hostElement).querySelector("#main-content").style.backgroundColor=V};
_.P.headerPromoBackgroundColorChanged_=function(){var V,D=(V=this.data)==null?void 0:V.headerPromoBackgroundColor;V=tM[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Pt(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=V};
_.P.errorRendererVisibilityChanged_=function(){var V=this.isExpanded_,D;this.isErrorRendererVisible_=!((D=this.data)==null||!D.errorRenderer)&&!V};
_.P.onYtToggleButton_=function(V,D){this.isExpanded_=D.toggled};
yr.prototype.onYtToggleButton_=yr.prototype.onYtToggleButton_;yr.prototype.errorRendererVisibilityChanged_=yr.prototype.errorRendererVisibilityChanged_;yr.prototype.headerPromoBackgroundColorChanged_=yr.prototype.headerPromoBackgroundColorChanged_;yr.prototype.backgroundColorChanged_=yr.prototype.backgroundColorChanged_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(shH.YtCardItemBoxBehavior),_.p("design:type",Object)],yr.prototype,"ytCardItemBoxBehavior",void 0);_.S([_.u(_.Ezr.YtTappableItemBehavior),_.p("design:type",Object)],yr.prototype,"ytTappableItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yr.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],yr.prototype,"isExpanded_",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],yr.prototype,"isErrorRendererVisible_",void 0);_.S([_.KI("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yr.prototype,"backgroundColorChanged_",null);_.S([_.KI("data.headerPromoBackgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yr.prototype,"headerPromoBackgroundColorChanged_",null);
_.S([_.KI("data.errorRenderer","isExpanded_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yr.prototype,"errorRendererVisibilityChanged_",null);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],yr.prototype,"onYtToggleButton_",null);_.S([_.zy({is:"yt-card-item-renderer",disableElementRegistration:!0})],yr);
_.Y(yr,"yt-card-item-renderer",function(){if(Icr===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;L_L===void 0&&(L_L=document.createElement("template"));var n=L_L;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Icr=V}V=Icr;return V},{mode:2});_.zk("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Z4=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;return V};
_.v(Z4,_.E);_.P=Z4.prototype;_.P.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var V,D=(V=this.commerceCartHeaderEntity)==null?void 0:V.isHidden;D!==void 0&&(this.hidden=D)}};
_.P.updateTitle=function(){var V=this.commerceCartHeaderEntity.isDisabled,D,f,n=(f=_.g((D=this.data)==null?void 0:D.item,C$u))==null?void 0:f.headingRenderer;n&&(D=CL(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+D+".0.cardItemTextRenderer.textColor",V?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.P.updateSummaryText=function(){var V=this.commerceCartHeaderEntity;if(this.compact){var D,f,n=(f=_.g((D=this.data)==null?void 0:D.item,C$u))==null?void 0:f.headingRenderer;n&&(D=CL(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+D+".1.cardItemTextRenderer.text",V.shortHeaderSummaryText?qR(V.shortHeaderSummaryText):V.headerSummaryText?qR(V.headerSummaryText):""))}else{var t;if(D=(t=_.g((n=this.data)==null?void 0:n.item,C$u))==null?void 0:t.additionalInfoRenderer)D=CL(D,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".text",V.headerSummaryText?qR(V.headerSummaryText):"")}};
_.P.updateCheckoutButton=function(){var V=this.commerceCartHeaderEntity,D,f,n=(f=_.g((D=this.data)==null?void 0:D.item,C$u))==null?void 0:f.additionalInfoRenderer;D=CL(n,"buttonRenderer");var t;f=(t=this.commerceCartHeaderEntity)==null?void 0:t.isButtonDisabled;var J;t=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonHidden;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".buttonRenderer.isDisabled",f);t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
t);var H;V=(H=V.checkoutButtonCommand)==null?void 0:H.innertubeCommand;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".buttonRenderer.command",V)};
Z4.prototype.entityChanged=Z4.prototype.entityChanged;_.S([_.u(_.dh),_.p("design:type",Object)],Z4.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Z4.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Z4.prototype,"compact",void 0);_.S([_.q({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(V,D){return _.wg(V.entities,"commerceCartHeaderEntity",D)}}),
_.p("design:type",Object)],Z4.prototype,"commerceCartHeaderEntity",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z4.prototype,"hidden",void 0);_.S([_.KI("commerceCartHeaderEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z4.prototype,"entityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Z4);
_.Y(Z4,"ytd-commerce-cart-header-renderer",function(){if(XUY!==void 0)return XUY;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return XUY=V},{mode:1});var O7F;var x5P=_.ZT(function(V,D){var f;return(f=V.onChangeCallback)==null?void 0:f.call(V,D)},1E3),MF6=_.MA(function(V){var D=V.data;
var f=V.iconMinus;V=V.iconPlus;var n=function(){return!!D().disabled},t=_.r(_.HJ(0,void 0,"r56zNb")),J=t.next().value,H=t.next().value;
t={};t=_.KT("yt-spec-quantity-incrementer-shape__icon",(t["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return n()||J()===(D().onRemoveCommand?0:1)},t));
var Q={};Q=_.KT("yt-spec-quantity-incrementer-shape__icon",(Q["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return J()>=D().maxValue||n()},Q));
var T={};T=_.KT("yt-spec-quantity-incrementer-shape__text",(T["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return J()>D().maxValue},T["yt-spec-quantity-incrementer-shape__text--text-disabled"]=n,T));
var y=_.jl(function(){if(J()===1){var l,G;(G=(l=D()).onRemoveCommand)==null||G.call(l)}l=J()>D().maxValue?D().maxValue:J()-1;H(l);x5P(D(),l);return!1}),Z=_.jl(function(){if(J()===D().maxValue)return!1;
var l=J()+1;H(l);x5P(D(),l);return!1});
_.B9(function(){H(D().value)});
return _.K("quantity-incrementer-shape",null,_.K("div",{class:"yt-spec-quantity-incrementer-shape"},_.K("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return J()===(D().onRemoveCommand?0:1)||n()},
"aria-label":function(){return J()!==1?D().minusLabel:D().minimumReachedLabel},
"on:click":y},_.K(_.kl,{model:{circular:!0}}),_.K("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.K("div",{class:t},f()))),_.K("div",{class:T},J),_.K("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return J()>=D().maxValue||n()},
"aria-label":function(){return J()!==D().maxValue?D().plusLabel:D().maximumReachedLabel},
"on:click":Z},_.K(_.kl,{model:{circular:!0}}),_.K("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.K("div",{class:Q},V())))))},"Zd");_.fT(_.MA(function(V){function D(){f().onRemoveCommand&&_.Yt(f().onRemoveCommand)}
var f=V.data;var n=_.KX(kZY,function(){return f().quantityIncrementerEntityKey});
return _.K("yt-quantity-incrementer-view-model",null,_.K(MF6,{data:function(){var t=f(),J;var H=n()?!((J=n())==null||!J.disabled):!1;var Q;J=n()?(Q=n())==null?void 0:Q.quantity:f().quantity;return Mw9(t,H,D,J)},
iconMinus:function(){return _.K(_.cj,{icon:"BAR_HORIZONTAL",className:_.y6("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.K(_.cj,{icon:"ADD",className:_.y6("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"$d"),"yt-quantity-incrementer-view-model",{props:{data:_.WX}});var jm=function(){var V=_.E.apply(this,arguments)||this;V.compact=!1;V.hasQuantityIncrementer=!1;return V};
_.v(jm,_.E);jm.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"}}}};
jm.prototype.computeHasQuantityIncrementer=function(){var V;return!!_.g((V=this.data)==null?void 0:V.picker,A6V)};
jm.prototype.onLabelClick=function(){var V;(V=this.dropdownEl)==null||V.open()};
_.S([_.Zv("ytd-dropdown-renderer"),_.p("design:type",Object)],jm.prototype,"dropdownEl",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jm.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],jm.prototype,"quantityColor",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jm.prototype,"compact",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.p("design:type",Object)],jm.prototype,"hasQuantityIncrementer",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],jm);
_.Y(jm,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(O7F!==void 0)return O7F;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return O7F=V},{mode:1});var h3V;var U5H;var ls=function(){return _.E.apply(this,arguments)||this};
_.v(ls,_.E);ls.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ls.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
ls.prototype.updateTitle=function(){var V=this.disabledCartItemEntity;V.disableActionName&&this.set("data.title",qR(V.disableActionName))};
ls.prototype.updateButton=function(){var V,D=(V=this.disabledCartItemEntity.undoCommand)==null?void 0:V.innertubeCommand;D!==void 0&&(this.set("data.actionButton.buttonRenderer.command",D),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
ls.prototype.entityChanged=ls.prototype.entityChanged;_.S([_.u(_.dh),_.p("design:type",Object)],ls.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(V,D){return _.wg(V.entities,"disabledCartItemEntity",D)}}),
_.p("design:type",Object)],ls.prototype,"disabledCartItemEntity",void 0);_.S([_.q(),_.p("design:type",Object)],ls.prototype,"data",void 0);_.S([_.KI("disabledCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"entityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],ls);
_.Y(ls,"ytd-disabled-cart-item-renderer",function(){if(U5H!==void 0)return U5H;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return U5H=V},{mode:1});_.zk("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var GX=function(){var V=_.E.apply(this,arguments)||this;V.compact=!1;V.hidden=!1;V.errorHidden=!1;V.noOnTap=!1;return V};
_.v(GX,_.E);_.P=GX.prototype;
_.P.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"}}}};
_.P.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.P.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var V=this.firstButtonElement;V.alignByText=!0;V.iconAlignByText=!0}};
_.P.computeNoOnTap=function(V){return!V};
_.P.updateQuantityColor=function(){if(this.pickerElement){var V,D=(V=this.commerceCartItemEntity)==null?void 0:V.quantityColor;this.pickerElement.quantityColor=D}};
_.P.updateTotalPriceColor=function(){var V,D=(V=this.commerceCartItemEntity)==null?void 0:V.totalPriceColor;if(D){var f;V=_.g((f=this.data)==null?void 0:f.quantityPicker,X5F);if(f=_.g(V==null?void 0:V.price,qgu))f.textColor=D}};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var V,D=(V=this.commerceCartItemEntity)==null?void 0:V.isHidden;D!==void 0&&(this.hidden=D)}};
_.P.updateHideErrorMessage=function(){var V,D=(V=this.commerceCartItemEntity)==null?void 0:V.hideErrorMessage;D!==void 0&&(this.errorHidden=D)};
_.P.updateQuantity=function(){var V=this,D,f=(D=this.commerceCartItemEntity)==null?void 0:D.quantity,n;D=(n=this.commerceCartItemEntity)==null?void 0:n.totalPrice;if(f){this.updateTotalPriceColor();this.updateQuantityColor();var t;n=_.g((t=this.data)==null?void 0:t.quantityPicker,X5F);if(t=_.g(n==null?void 0:n.price,qgu))t.text=D?{simpleText:D.content}:void 0;if(D=_.g(n==null?void 0:n.picker,A6V))D.quantity=f;var J;if(t=(J=_.g(n==null?void 0:n.picker,aAu))==null?void 0:J.entries){J=!1;D=void 0;t=
_.r(t);for(n=t.next();!n.done;n=t.next())n=n.value,n.dropdownItemRenderer&&(D||(D=n.dropdownItemRenderer),n.dropdownItemRenderer.isSelected=!1,f===n.dropdownItemRenderer.int32Value&&(J=!0,n.dropdownItemRenderer.isSelected=!0));!J&&D&&(D.isSelected=!0)}_.pO(this,function(){var H;V.set("data.quantityPicker",_.sB.unsafeClone((H=V.data)==null?void 0:H.quantityPicker))})}};
GX.prototype.onYtRendererstamperFinished=GX.prototype.onYtRendererstamperFinished;GX.prototype.entityChanged=GX.prototype.entityChanged;_.S([_.q(),_.p("design:type",Object)],GX.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],GX.prototype,"compact",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],GX.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(V,D){return _.wg(V.entities,"commerceCartItemEntity",D)}}),
_.p("design:type",Object)],GX.prototype,"commerceCartItemEntity",void 0);_.S([_.q(),_.p("design:type",Object)],GX.prototype,"quantityPicker",void 0);_.S([_.q(),_.p("design:type",Object)],GX.prototype,"compactQuantityPicker",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],GX.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],GX.prototype,"errorHidden",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.p("design:type",Object)],GX.prototype,"noOnTap",void 0);_.S([_.Zv("ytd-commerce-cart-item-quantity-picker-renderer"),_.p("design:type",Object)],GX.prototype,"pickerElement",void 0);_.S([_.Zv("yt-button-renderer"),_.p("design:type",Element)],GX.prototype,"firstButtonElement",void 0);
_.S([_.KI("commerceCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GX.prototype,"entityChanged",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GX.prototype,"onYtRendererstamperFinished",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],GX);
_.Y(GX,"ytd-commerce-cart-item-renderer",function(){if(h3V!==void 0)return h3V;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return h3V=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var VM6;var DXp;var em=function(){return _.E.apply(this,arguments)||this};
_.v(em,_.E);em.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}}}}}};
em.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
em.prototype.updateCheckoutLineItems=function(){var V,D=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.checkoutLineItems;D&&(V=D.map(function(f){a:{var n=f.price,t=f.description;switch(f.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:qR(t),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:qR(n),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:f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:qR(t),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:qR(n),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 f}),this.set("data.summaryLineItems",V))};
em.prototype.updateIsHidden=function(){var V,D=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isHidden;D!==void 0&&(this.hostElement.hidden=D)};
em.prototype.entityChanged=em.prototype.entityChanged;_.S([_.u(_.dh),_.p("design:type",Object)],em.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],em.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AS3}),_.p("design:type",Object)],em.prototype,"commerceCartCheckoutButtonEntity",void 0);_.S([_.KI("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],em.prototype,"entityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],em);
_.Y(em,"ytd-commerce-cart-summary-renderer",function(){if(DXp!==void 0)return DXp;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return DXp=V},{mode:1});var fIo={};fIo.InjectBehavior=[tGx.InjectBehavior];var nTu;var tMF;var cK=function(){return _.E.apply(this,arguments)||this};
_.v(cK,_.E);
cK.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:_.Rt("menuRenderer")}}};
cK.prototype.onMenuTap=function(V){V.stopPropagation()};
_.IG.Object.defineProperties(cK.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 V,D;return!(((V=this.data)==null||!V.sectionHeading)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var V,D;return!(((V=this.data)==null||!V.image)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var V,D;return!(((V=this.data)==null||!V.menu)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.Ezr.YtTappableItemBehavior),_.p("design:type",Object)],cK.prototype,"ytTappableItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cK.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.accessibilityData"),_.p("design:type",String),_.p("design:paramtypes",[])],cK.prototype,"ariaLabel",null);_.S([_.R("data.sectionHeading","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cK.prototype,"sectionHeadingVisible",null);_.S([_.R("data.image","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cK.prototype,"imageVisible",null);
_.S([_.R("data.menu","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cK.prototype,"menuVisible",null);_.S([_.zy({is:"yt-activity-item-renderer",disableElementRegistration:!0})],cK);
_.Y(cK,"yt-activity-item-renderer",function(){if(tMF===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;nTu===void 0&&(nTu=document.createElement("template"));var n=nTu;f.call(D,n.content.cloneNode(!0),V.content.firstChild);tMF=V}V=tMF;return V},{mode:2});var PJl;var oTV;var J9U;var r9Y;var FG=function(){return _.E.apply(this,arguments)||this};
_.v(FG,_.E);
FG.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"}}}}};
FG.prototype.backgroundColorChanged_=function(){var V,D=(V=this.data)==null?void 0:V.backgroundColor;this.hostElement.style.backgroundColor=tM[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
FG.prototype.backgroundColorChanged_=FG.prototype.backgroundColorChanged_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],FG.prototype,"data",void 0);
_.S([_.KI("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FG.prototype,"backgroundColorChanged_",null);_.S([_.zy({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],FG);
_.Y(FG,"yt-offer-item-upsell-renderer",function(){if(r9Y===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;J9U===void 0&&(J9U=document.createElement("template"));var n=J9U;f.call(D,n.content.cloneNode(!0),V.content.firstChild);r9Y=V}V=r9Y;return V},{mode:2});_.zk("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var gr=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};V.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return V};
_.v(gr,_.E);_.P=gr.prototype;
_.P.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:_.Rt("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.P.computeContainerStyle_=function(V){return V};
_.P.computeContainerIsHidden_=function(V){return V&&!!V.isHidden};
_.P.computeShowSpinner_=function(V,D){return V&&D==="in-progress"};
_.P.computeShowMoreContentsButton_=function(V,D,f,n,t){return!(!(n&&n.length||t&&t.length&&f)||!V||D)};
_.P.onToggleButton_=function(V){var D=this;V.stopPropagation();this.isExpanded_=V.detail&&V.detail.toggled;var f,n;this.isExpanded_&&!this.data.continuationSection.length&&((f=this.data)==null?0:(n=f.continuation)==null?0:n.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.PA(this.hostElement,"yt-load-next-continuation",function(t){return D.getContinuationUrl_(D.data.continuation.onClickContinuationData,t)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.HA(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.P.onShowMoreContentsButtonClicked_=function(V){var D=this;V.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.PA(this.hostElement,"yt-load-next-continuation",function(f){return D.getContinuationUrl_(D.data.continuations[0].nextContinuationData,f)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.HA(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.P.getContinuationUrl_=function(V,D){var f=V.continuation;V=V.clickTrackingParams;var n=_.Ni();V&&n&&_.p6(n,_.gs(V));return _.I9(D,{continuation:f})};
_.P.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var V=_.Pt(this.hostElement).querySelector("#continuation-section");V&&(V=V.querySelectorAll("ytmusic-item-section-renderer"))&&V.forEach(function(D){return D.classList.add("memberships-and-purchases")})};
_.P.dataChanged_=function(){var V;this.isExpanded_=!((V=this.data)==null||!V.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.P.updateCardOnClickCommand_=function(V){V=_.g(V,sjY);var D,f;this.data&&((D=this.data)==null?0:D.targetId)&&V&&V.targetId===((f=this.data)==null?void 0:f.targetId)&&V.onClickCommand&&(this.data.onClickCommand=V.onClickCommand,this.isOnClickCommand_=!0)};
_.P.backgroundColorChanged_=function(){var V,D=(V=this.data)==null?void 0:V.backgroundColor;this.hostElement.style.backgroundColor=tM[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
gr.prototype.backgroundColorChanged_=gr.prototype.backgroundColorChanged_;gr.prototype.dataChanged_=gr.prototype.dataChanged_;gr.prototype.nextContinuationDataUpdated_=gr.prototype.nextContinuationDataUpdated_;gr.prototype.onToggleButton_=gr.prototype.onToggleButton_;_.S([_.u(_.$D),_.p("design:type",Object)],gr.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],gr.prototype,"ytNextContinuationBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.S([_.u(fIo.InjectBehavior),_.p("design:type",Object)],gr.prototype,"injectBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gr.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],gr.prototype,"compact",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],gr.prototype,"isExpanded_",void 0);_.S([_.q({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.p("design:type",String)],gr.prototype,"containerStyle_",void 0);_.S([_.q({value:"not-started"}),_.p("design:type",String)],gr.prototype,"continuationStatus_",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.p("design:type",Boolean)],gr.prototype,"showSpinner_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],gr.prototype,"isOnClickCommand_",void 0);_.S([_.q({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.p("design:type",Boolean)],gr.prototype,"showMoreContentsButton_",void 0);
_.S([_.q({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(V,D){return!D||V.entities?null:_.wg(V.entities,"cardItemContainerEntity",D)}}),
_.p("design:type",Object)],gr.prototype,"cardItemContainerEntity_",void 0);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],gr.prototype,"onToggleButton_",null);_.S([_.bU("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gr.prototype,"nextContinuationDataUpdated_",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gr.prototype,"dataChanged_",null);_.S([_.KI("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gr.prototype,"backgroundColorChanged_",null);_.S([_.zy({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],gr);
_.Y(gr,"yt-card-item-container-renderer",function(){if(oTV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PJl===void 0&&(PJl=document.createElement("template"));var n=PJl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);oTV=V}V=oTV;return V},{mode:2});var vK=function(){return _.E.apply(this,arguments)||this};
_.v(vK,_.E);vK.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"}}}};
vK.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
vK.prototype.computeLoadingHidden=function(){var V;return!((V=this.commerceCartPageStateEntity)==null?0:V.cartActionInProgress)};
vK.prototype.updateNotification=function(){var V,D=(V=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:V.summaryText;D&&this.set("data.cartNotification",qR(D))};
vK.prototype.notificationEntityChanged=vK.prototype.notificationEntityChanged;_.S([_.u(_.dh),_.p("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],vK.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],vK.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(V,D){return _.wg(V.entities,"commerceCartExpandableNotificationEntity",D)}}),
_.p("design:type",Object)],vK.prototype,"commerceCartExpandableNotificationEntity",void 0);_.S([_.q({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(V,D){return _.wg(V.entities,"commerceCartPageStateEntity",D)}}),
_.p("design:type",Object)],vK.prototype,"commerceCartPageStateEntity",void 0);_.S([_.Zv("#spinner"),_.p("design:type",HTMLElement)],vK.prototype,"spinner",void 0);_.S([_.KI("commerceCartExpandableNotificationEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vK.prototype,"notificationEntityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],vK);
_.Y(vK,"ytd-commerce-cart-renderer",function(){if(VM6!==void 0)return VM6;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return VM6=V},{mode:1});var H3l;var k3=function(){var V=_.E.apply(this,arguments)||this;V.bigImage=!1;return V};
_.v(k3,_.E);_.IG.Object.defineProperties(k3.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.placeholderImageUrl}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],k3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],k3.prototype,"bigImage",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],k3.prototype,"placeholderImageUrl",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],k3);
_.Y(k3,"ytd-empty-product-shelf-renderer",function(){if(H3l!==void 0)return H3l;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return H3l=V},{mode:1});var wDL;var sU=function(){var V=_.E.apply(this,arguments)||this;V.itemStyle="link-item";V.watchMetadataRefresh=!1;V.skinnyMode=!1;V.metaPanel=!1;V.inStructuredDescription=!1;V.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};V.updateOnResizeDebouncer=null;return V};
_.v(sU,_.E);_.P=sU.prototype;_.P.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.P.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"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.P.attachVEs=function(V){V.trackingParams&&_.lS().graftServerVe(V.trackingParams)};
_.P.handleUpdateMerchShelfAction=function(V){var D=this,f=_.g(V.updateMerchandiseShelfAction.merchandiseShelf,_.oGu);f&&(f.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){D.attachVEs(f);D.data=f},Number(f.renderDelayMs))):(this.attachVEs(f),this.data=f))};
_.P.updateOnResize=function(){if(this.JSC$14842_scrollContainer!==void 0&&this.JSC$14842_scrollContainer.clientWidth!==0&&this.items!==void 0){var V=this.JSC$14842_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-V));this.ytdHorizontalListBehavior.reposition_();var D;switch((D=this.data)==null?void 0:D.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var f,
n;((f=this.data)==null?void 0:(n=f.items)==null?void 0:n.length)===1?this.itemStyle="cta-item":this.itemStyle=V>=740?"large-item":"small-item"}}};
_.P.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.DA(this.updateOnResizeDebouncer,_.ii.after(100),this.updateOnResize)};
sU.prototype.debouncedUpdateOnResize=sU.prototype.debouncedUpdateOnResize;sU.prototype.dataChanged=sU.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],sU.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sU.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sU.prototype,"itemStyle",void 0);_.S([_.q({value:6}),_.p("design:type",Number)],sU.prototype,"initialCount",void 0);
_.S([_.q({value:"data.items"}),_.p("design:type",String)],sU.prototype,"itemsPath",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sU.prototype,"watchMetadataRefresh",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sU.prototype,"skinnyMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sU.prototype,"metaPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sU.prototype,"inStructuredDescription",void 0);
_.S([_.Zv("#items"),_.p("design:type",HTMLDivElement)],sU.prototype,"items",void 0);_.S([_.Zv("#scroll-container"),_.p("design:type",HTMLDivElement)],sU.prototype,"JSC$14842_scrollContainer",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sU.prototype,"dataChanged",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sU.prototype,"debouncedUpdateOnResize",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],sU);
_.Y(sU,"ytd-merch-shelf-renderer",function(){if(wDL!==void 0)return wDL;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return wDL=V},{mode:2});var QQr;var BK=function(){var V=_.E.apply(this,arguments)||this;V.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 V};
_.v(BK,_.E);_.P=BK.prototype;
_.P.addBackstagePostAction=function(V){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(V=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",V))&&(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:V}):this.set("data.contents",[{backstagePostThreadRenderer:V}]))};
_.P.addBackstageCommentAction=function(V){var D=this.get("addBackstageCommentAction.parentId",V);V=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",V);if(D&&V){D=this.postIdToIndices(D);for(var f=0;f<D.length;f++){var n=D[f];if(n<0)break;n="data.contents."+n+".backstagePostThreadRenderer.comments";this.get(n)&&(this.get(n+".backstageCommentsRenderer.contents")&&this.push(n+".backstageCommentsRenderer.contents",{commentThreadRenderer:V}),this.get(n+".backstageCommentsRenderer.teaserContents")?
this.push(n+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:V}):this.set(n+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:V}]))}}};
_.P.addBackstageReplyAction=function(V){var D=this.get("addBackstageReplyAction.parentId",V);V=this.get("addBackstageReplyAction.renderer.commentRenderer",V);D&&V&&this.setCreatorReply(D,V)};
_.P.banAuthorAction=function(V){var D=this.get("banAuthorAction.commentId",V);D&&(V=this.get("banAuthorAction.parentCommentId",V)||this.getParentPostId(D),this.removeFromStream(D,V))};
_.P.hideReportedCommentAction=function(V){var D=this.get("hideReportedCommentAction.commentId",V);D&&((V=this.get("hideReportedCommentAction.parentCommentId",V))||(V=this.getParentPostId(D)),this.removeFromStream(D,V))};
_.P.replaceBackstageCommentAction=function(V){var D=this.get("replaceBackstageCommentAction.commentId",V),f=this.get("replaceBackstageCommentAction.parentId",V);V=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",V);if(D&&f&&V){f=this.postIdToIndices(f);for(var n=0;n<f.length;n++){var t=f[n];if(t<0)break;var J=this.commentIdToIndex(D,t,!1);if(J>=0){var H=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J+".commentThreadRenderer.replies.commentRepliesRenderer");
H&&(V.replies={commentRepliesRenderer:H});this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1,{commentThreadRenderer:V})}J=this.commentIdToIndex(D,t,!0);if(J>=0){if(H=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(J+".commentThreadRenderer.replies.commentRepliesRenderer")))V.replies={commentRepliesRenderer:H};this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
J,1,{commentThreadRenderer:V})}}}};
_.P.replaceBackstagePostAction=function(V){var D=this.get("replaceBackstagePostAction.itemId",V);if(D){D=this.postIdToIndices(D);for(var f=0;f<D.length;f++){var n=D[f];if(n<0)break;var t=this.getPostRendererType(n),J=this.get("replaceBackstagePostAction.renderer."+t,V);if(!J&&t!=="sharedPostRenderer")break;var H=!1;J||(H=!0,J=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",V));if(!J)break;var Q={};H?(_.m7(Q,DkH,J),this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
Q)):(_.m7(Q,new _.L(t),J),this.set("data.contents."+n+".backstagePostThreadRenderer.post",Q))}}};
_.P.replaceBackstageReplyAction=function(V){var D=this.get("replaceBackstageReplyAction.replyId",V),f=this.get("replaceBackstageReplyAction.parentId",V);V=this.get("replaceBackstageReplyAction.renderer.commentRenderer",V);D&&V&&f&&this.setCreatorReply(f,V)};
_.P.removeCommentAction=function(V){var D=this.get("removeCommentAction.commentId",V);if(D){var f=this.get("removeCommentAction.parentCommentId",V);f&&this.get("removeCommentAction.isCreatorReply",V)?this.setCreatorReply(f,void 0):(f||(f=this.getParentPostId(D)),this.removeFromStream(D,f))}};
_.P.setCreatorReply=function(V,D){var f=this.getParentPostId(V);if(f){f=this.postIdToIndices(f);for(var n=0;n<f.length;n++){var t=f[n];if(t<0)break;var J=this.commentIdToIndex(V,t,!1);if(J>=0){var H="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J;J=H+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";H+=".commentThreadRenderer.replies";D==void 0?(this.set(H,{}),this.set(J,!1)):(this.set(H,{commentRepliesRenderer:{teaserContents:[{commentRenderer:D}]}}),
this.set(H+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(J,!0))}J=this.commentIdToIndex(V,t,!0);J>=0&&(J="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+J,t=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",J+=".commentThreadRenderer.replies",D==void 0?(this.set(J,{}),this.set(t,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:D}]}}),this.set(t,!0)))}}};
_.P.removeFromStream=function(V,D){if(D){D=this.postIdToIndices(D);for(var f=0;f<D.length;f++){var n=D[f];if(n<0)break;var t=this.commentIdToIndex(V,n,!1);t>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",t,1);t=this.commentIdToIndex(V,n,!0);t>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",t,1);n="data.contents."+n+".backstagePostThreadRenderer.post.backstagePostRenderer";
t=n+".backstageAttachment.pollRenderer.votedCommentId";this.get(t)===V&&(this.set(t,null),this.set(n+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(D=this.postIdToIndices(V).reverse(),f=0;f<D.length;f++){n=D[f];if(n<0)break;t=this.getPostRendererType(n);var J=this.get("backstagePostThreadRenderer.post."+t,this.data.contents[n]);J.postId===V?this.splice("data.contents",n,1):t==="sharedPostRenderer"&&this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);J.scheduledPublishTimeSec&&_.o4(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.P.postIdToIndices=function(V){for(var D=[],f=0;f<this.data.contents.length;f++){var n=this.getPostRendererType(f);this.get("backstagePostThreadRenderer.post."+n+".postId",this.data.contents[f])===V&&D.push(f);if(n==="sharedPostRenderer"){var t=this.get("backstagePostThreadRenderer.post."+n+".originalPost.backstagePostRenderer.postId",this.data.contents[f]);n=this.get("backstagePostThreadRenderer.post."+n+".originalPost.postRenderer.postId",this.data.contents[f]);t!==V&&n!==V||D.push(f)}}return D};
_.P.commentIdToIndex=function(V,D,f){if(D<0)return-1;var n,t,J,H,Q=_.g((n=this.data)==null?void 0:(t=n.contents)==null?void 0:(J=t[D])==null?void 0:(H=J.backstagePostThreadRenderer)==null?void 0:H.comments,UwU);return(D=f?Q==null?void 0:Q.teaserContents:Q==null?void 0:Q.contents)&&D.length?D.findIndex(function(T){return _.g(T,C4u).comment.commentRenderer.commentId===V}):-1};
_.P.getParentPostId=function(V){V=V.split(".");if(V[1])return V[0]};
_.P.getPostRendererType=function(V){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[V])?"sharedPostRenderer":"backstagePostRenderer"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],BK.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BK.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-backstage-items"})],BK);
_.Y(BK,"ytd-backstage-items",function(){if(QQr!==void 0)return QQr;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return QQr=
V},{mode:1});var T_l;var b3l={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},dr=function(){var V=_.E.apply(this,arguments)||this;V.disablePrescanVisibility=!0;V.canScheduleJobs=!0;V.engagementPanel=!1;V.hidePanelButton=!1;V.isWatchGrid=!1;V.hasShownSubscribersOnlyDisclaimer=!1;V.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_"};return V};
_.v(dr,_.E);_.P=dr.prototype;_.P.created=function(){this.initCommentsCsi_()};
_.P.contentsChanged_=function(){var V;(V=this.data)!=null&&V.contents&&this.tickForCommentsTimer_("cml")};
_.P.headerChanged_=function(){var V;(V=this.data)!=null&&V.header&&this.tickForCommentsTimer_("cmhl")};
_.P.initCommentsCsi_=function(){_.mg("wn_comments");var V=_.Ni();V&&_.N1({clientScreenNonce:V},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.P.createCommentAction_=function(V){V=_.sB.unsafeClone(V);var D,f;if(V=(D=_.g(V,klU))==null?void 0:(f=D.contents)==null?void 0:f.commentThreadRenderer){var n,t,J,H,Q,T;!this.isBackstage&&((n=this.data)==null?0:(t=n.header)==null?0:(J=t.commentsHeaderRenderer)==null?0:(H=J.createRenderer)==null?0:(Q=H.commentSimpleboxRenderer)==null?0:(T=Q.zeroStep)==null?0:T.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var y,
Z,l;this.isBackstage&&_.g((y=this.data)==null?void 0:(Z=y.header)==null?void 0:(l=Z.commentsHeaderRenderer)==null?void 0:l.zeroStateMessage,fXp)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(V)}};
_.P.doReplyInsert_=function(V,D,f,n){n?this.splice(V,n,0,D):this.push(V,D)};
_.P.getRepliesPath_=function(V){return"data.contents."+V+".commentThreadRenderer.replies"};
_.P.getRepliesContentsPath_=function(V,D){V=this.getRepliesPath_(V);return D?V+".commentRepliesRenderer.teaserContents":V+".commentRepliesRenderer.contents"};
_.P.showSubscribersOnlyDisclaimer_=function(V){(V=V.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(V=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(V))&&(_.o4(this.hostElement,"yt-open-popup-action",[V,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.P.createCommentReplyAction_=function(V){V=_.sB.unsafeClone(V);var D=_.g(V,s$p);if(V=D==null?void 0:D.contents){var f=this.commentIdToIndex_(D==null?void 0:D.parentCommentId);if(!(f<0)){var n=this.getRepliesPath_(f);if(this.get(n)){D=D.replyToCommentId;n=this.getRepliesContentsPath_(f,!1);if(this.get(n)){var t=this.get(n).length,J=n+"."+(t-1)+".continuationItemRenderer";this.get(J+".button")?(J=this.replyIdToIndex_(D,f,!1),this.doReplyInsert_(n,V,J,t-1)):this.get(J)||(t=this.replyIdToIndex_(D,f,
!1),this.doReplyInsert_(n,V,t,null))}n=this.getRepliesContentsPath_(f,!0);this.get(n)?(f=this.replyIdToIndex_(D,f,!0),(!D||f>=0)&&this.doReplyInsert_(n,V,f,null)):this.set(n,[V])}else this.set(n,{commentRepliesRenderer:{teaserContents:[V]}})}}};
_.P.hideReportedCommentAction_=function(V){var D=_.g(V,LzL);if(V=D==null?void 0:D.commentId)D=this.get("parentCommentId",D),V=V.replace("#","."),D||(D=this.getParentCommentId_(V)),this.remove_(V,D)};
_.P.getParentCommentId_=function(V){V=V.split(".");if(V[1])return V[0]};
_.P.removeCommentAction_=function(V){var D=_.g(V,mkF);if(V=D==null?void 0:D.commentId)D=D==null?void 0:D.parentCommentId,V=V.replace("#","."),D||(D=this.getParentCommentId_(V)),this.remove_(V,D)};
_.P.pinCommentAction_=function(V){V=_.sB.unsafeClone(V);var D=_.g(V,Nfr);D!=null&&D.commentId&&(V=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",V))&&(this.remove_(D.commentId),this.insert_(V,!0))};
_.P.unpinCommentAction_=function(V){V=_.sB.unsafeClone(V);V=_.g(V,zKU);if(V!=null&&V.commentId){var D,f,n=(D=V.actionResult)==null?void 0:(f=D.update)==null?void 0:f.commentThreadRenderer;n&&(this.remove_(V.commentId),this.insert_(n))}};
_.P.banAuthorAction_=function(V){var D=_.g(V,vsV);D!=null&&D.commentId&&(V=D.parentCommentId,D=D.commentId.replace("#","."),V||(V=this.getParentCommentId_(D)),this.remove_(D,V))};
_.P.commentIdToIndex_=function(V){var D;return V&&(D=this.data)!=null&&D.contents?this.data.contents.findIndex(function(f){f=f.commentThreadRenderer;var n;return V===((f==null?void 0:f.commentViewModel)&&((n=_.g(f.commentViewModel,YkY))==null?void 0:n.commentId))}):-1};
_.P.insert_=function(V,D){D=D===void 0?!1:D;var f,n;if((f=this.data)==null?0:(n=f.contents)==null?0:n.some(function(J){return!!J.commentThreadRenderer}))for(f=0,n=this.data.contents.length;f<n;f++){var t=this.data.contents[f].commentThreadRenderer;
if(b3l[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=b3l[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){D&&b3l[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===b3l[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",f,1,{commentThreadRenderer:V}):this.splice("data.contents",f,0,{commentThreadRenderer:V});break}}else this.set("data.contents",[{commentThreadRenderer:V}])};
_.P.doReplyRemove_=function(V,D,f){V=this.replyIdToIndex_(V,D,f);V<0||(D=this.getRepliesContentsPath_(D,f),this.splice(D,V,1))};
_.P.remove_=function(V,D){D=this.commentIdToIndex_(D);D<0?(D=this.commentIdToIndex_(V),D<0||this.splice("data.contents",D,1)):(this.doReplyRemove_(V,D,!1),this.doReplyRemove_(V,D,!0))};
_.P.replyIdToIndex_=function(V,D,f){if(D<0)return-1;D=this.getRepliesContentsPath_(D,f);D=this.get(D);if(!D||!D.length)return-1;f=0;for(var n=D.length;f<n;f++){var t=void 0,J=void 0;if(((t=D[f])==null?void 0:(J=t.commentViewModel)==null?void 0:J.commentId)===V)return f}return-1};
_.P.tickForCommentsTimer_=function(V){_.R4(V,void 0,"wn_comments")};
_.P.reloadComments_=function(V){V=_.g(V,AFH);_.g(V==null?void 0:V.command,_.Xh)&&_.HA(this.hostElement,[V==null?void 0:V.command])};
_.IG.Object.defineProperties(dr.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.data)==null?0:(D=V.header)==null?0:(f=D.commentsHeaderRenderer)==null?0:f.isBackstageContent)}}});
_.IG.Object.defineProperties(dr,{template:{configurable:!0,enumerable:!0,get:function(){if(T_l===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);T_l=V}V=T_l;return V}}});
dr.prototype.showSubscribersOnlyDisclaimer_=dr.prototype.showSubscribersOnlyDisclaimer_;dr.prototype.headerChanged_=dr.prototype.headerChanged_;dr.prototype.contentsChanged_=dr.prototype.contentsChanged_;_.S([_.u(_.WO),_.p("design:type",Object)],dr.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.J8Y.YtHostElementBehavior),_.p("design:type",Object)],dr.prototype,"ytHostElementBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",Function)],dr.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],dr.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.header.commentsHeaderRenderer.isBackstageContent"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dr.prototype,"isBackstage",null);_.S([_.q(),_.p("design:type",Object)],dr.prototype,"disablePrescanVisibility",void 0);_.S([_.q(),_.p("design:type",Object)],dr.prototype,"canScheduleJobs",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],dr.prototype,"engagementPanel",void 0);
_.S([_.q(),_.p("design:type",Object)],dr.prototype,"hidePanelButton",void 0);_.S([_.q(),_.p("design:type",Object)],dr.prototype,"isWatchGrid",void 0);_.S([_.q(),_.p("design:type",Object)],dr.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.S([_.KI("data.contents"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dr.prototype,"contentsChanged_",null);
_.S([_.KI("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dr.prototype,"headerChanged_",null);_.S([_.bU("yt-show-subscribers-only-disclaimer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dr.prototype,"showSubscribersOnlyDisclaimer_",null);_.S([_.a({is:"ytd-comments"})],dr);var us=function(){return _.lU.apply(this,arguments)||this};
_.v(us,_.lU);_.P=us.prototype;_.P.bindIf=function(V,D,f){return V?D:f};
_.P.bindIfDefined=function(V,D){return V!==void 0?V:D};
_.P.booleanString=function(V){return(!!V).toString()};
_.P.equals=function(){for(var V=_.gQ.apply(0,arguments),D=V[0],f=1;f<V.length;f++)if(D!=V[f])return!1;return!0};
_.P.isGreaterThan=function(V,D){return V>D};
_.P.isLessThan=function(V,D){return V<D};
_.P.logicalAND=function(){for(var V=_.gQ.apply(0,arguments),D=!!V[0],f=1;f<V.length;f++)D=D&&!!V[f];return D};
_.P.logicalOR=function(){for(var V=_.gQ.apply(0,arguments),D=!!V[0],f=1;f<V.length;f++)D=D||!!V[f];return D};
_.P.toBool=function(V){return!!V};
us.prototype.toBool=us.prototype.toBool;us.prototype.logicalOR=us.prototype.logicalOR;us.prototype.logicalAND=us.prototype.logicalAND;us.prototype.isLessThan=us.prototype.isLessThan;us.prototype.isGreaterThan=us.prototype.isGreaterThan;us.prototype.equals=us.prototype.equals;us.prototype.booleanString=us.prototype.booleanString;us.prototype.bindIfDefined=us.prototype.bindIfDefined;us.prototype.bindIf=us.prototype.bindIf;_.S([_.Gy()],us);_.KUl=[us.prototype];var y9o;var Z3r;var NB=function(){return _.E.apply(this,arguments)||this};
_.v(NB,_.E);NB.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
NB.prototype.onBackIconTap_=function(){window.history.back()};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],NB.prototype,"data",void 0);_.S([_.zy({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],NB);
_.Y(NB,"yt-header-with-back-renderer",function(){if(Z3r===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;y9o===void 0&&(y9o=document.createElement("template"));var n=y9o;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Z3r=V}V=Z3r;return V},{mode:2});var jQU;var lIU;var mo=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(mo,_.E);_.P=mo.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V,this.setUrl())};
_.P.dataChanged=function(){var V=this;if(this.data){var D=this.setUrl();D&&_.xs({destination:window,iframe:this.iframe,origin:_.WYF(D.toString()),channelName:"yt-iframe",onMessage:function(f){(f=V.getCommunicationCommand(f.data))&&V.ytComponentBehavior.resolveCommand(f)},
onEstablished:function(){}})}};
_.P.setUrl=function(){if(this.data&&this.data.iframeUrl){var V=_.mW(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(V)return _.N8(this.iframe,V),V}};
_.P.getCommunicationCommand=function(V){var D;if((D=this.data)!=null&&D.onCommunicationCommandsMap){D=this.data.onCommunicationCommandsMap.find(function(t){return t.key===V});
if(D==null?0:D.value)return D==null?void 0:D.value;try{var f=jj6(_.rP(V)),n=this.data.onCommunicationCommandsMap.find(function(t){return t.key===(f==null?void 0:_.df(f,1))});
if(n==null?0:n.value)return n==null?void 0:n.value}catch(t){}}};
mo.prototype.dataChanged=mo.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mo.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mo.prototype,"data",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],mo.prototype,"isDarkTheme",void 0);_.S([_.Zv("#iframe"),_.p("design:type",HTMLIFrameElement)],mo.prototype,"iframe",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mo.prototype,"dataChanged",null);_.S([_.zy({is:"yt-iframe-renderer",disableElementRegistration:!0})],mo);
_.Y(mo,"yt-iframe-renderer",function(){if(lIU===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;jQU===void 0&&(jQU=document.createElement("template"));var n=jQU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);lIU=V}V=lIU;return V},{mode:2});_.zX=function(V){_.cq.call(this);this.callback=V;this.bezier=new CdV(0,0,.4,0,.2,1,1,1);this.delay=new _.hq(this.next,window,this);this.JSC$14885_animating=!1;_.wX(this,this.delay)};
_.v(_.zX,_.cq);_.zX.prototype.isAnimating=function(){return this.JSC$14885_animating};
_.zX.prototype.start=function(V,D,f){this.config={from:V,to:D,duration:f,startTime:(0,_.VW)()};this.JSC$14885_animating=!0;this.next()};
_.zX.prototype.stop=function(){this.delay.stop();this.JSC$14885_animating=!1;this.config=void 0};
_.zX.prototype.next=function(){if(this.config){var V=this.config,D=V.from,f=V.to,n=V.duration;V=V.startTime;var t=(0,_.VW)()-V;V=this.bezier;n=XoU(V,t/n);if(n==0)V=V.y0;else if(n==1)V=V.y3;else{t=lg(V.y0,V.y1,n);var J=lg(V.y1,V.y2,n);V=lg(V.y2,V.y3,n);t=lg(t,J,n);J=lg(J,V,n);V=lg(t,J,n)}V=_.Nw(V,0,1);this.callback(D+(f-D)*V);V<1?this.delay.start():this.JSC$14885_animating=!1}};_.RJ=new _.IH("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var GFl={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},c9l=function(V,D,f,n){_.cq.call(this);this.JSC$14893_miniAppId=V;this.localReleaseId=D;this.derivedDeviceInterface=f;this.isForeground=n;this.JSC$14893_playNonceResolver=new _.wU;this.playPingTimerId=NaN;this.playPingIntervalMs=_.tU("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.tU("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.c("enable_displaying_ppn");this.JSC$14893_miniAppClientDataProvider=_.DY().resolve(_.RJ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ex6(this);var t=setTimeout(function(){_.zP(new _.cI("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14893_playNonceResolver.promise.then(function(){clearTimeout(t)})};
_.v(c9l,_.cq);var gTl=function(V,D){V.JSC$14893_playNonceResolver.resolve(D!=null?D:B8(8));V.enableDisplayingPpn&&FUV(V).then(function(f){V.JSC$14893_miniAppClientDataProvider.clientData.set("post_play_nonce",f)})},FUV=function(V){return _.w(function(D){return D.nextAddress==1?_.b(D,V.JSC$14893_playNonceResolver.promise,2):D.return(D.yieldResult)})},ex6=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$14893_playNonceResolver.promise,2);D=n.yieldResult;f={miniAppInfo:{externalPostId:V.JSC$14893_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:D,derivedDeviceInterface:V.derivedDeviceInterface}};_.N1(f);_.yz(n)})},kFu=function(V){V.state!==0?_.zP(new _.cI("[MiniAppPlayLogger] recordPlayStart failed with state "+GFl[V.state])):(V.state=1,Cj(V,"ma_cl"),qB(V,"PLAY_EVENT_TYPE_PLAY_START"),vTH(V))},sQl=function(V){V.isForeground=!1;
qB(V,"PLAY_EVENT_TYPE_PLAY_PAUSE")},B_l=function(V){V.state!==1&&V.state!==2?_.zP(new _.cI("[MiniAppPlayLogger] recordPlayEnd failed with state "+GFl[V.state])):(V.state=3,window.clearInterval(V.playPingTimerId),V.playPingTimerId=NaN,r_Y(),qB(V,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},dXl=function(V,D){V.state===2&&V.gameReady&&(V.firstClickRecorded?Date.now()-V.clickRecordedMs<V.playClickIntervalMs||(V.clickRecordedMs=Date.now(),qB(V,"PLAY_EVENT_TYPE_PLAY_CLICK")):D&&(Cj(V,"ma_fua"),qB(V,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),V.firstClickRecorded=!0,V.clickRecordedMs=Date.now()))};
c9l.prototype.logError=function(V){var D=this,f;_.w(function(n){if(n.nextAddress==1)return V.metadata.externalPostId=D.JSC$14893_miniAppId,f=V.metadata,_.b(n,Promise.race([D.JSC$14893_playNonceResolver.promise,new Promise(function(t){setTimeout(function(){t("")},3E4)})]),2);
f.postPlayNonce=n.yieldResult;V.metadata.localReleaseId=D.localReleaseId;V.loggingError.level="WARNING";_.NG(V.loggingError,V.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:V.metadata});_.yz(n)})};
var uIF=function(V,D,f,n){var t,J,H,Q,T,y;_.w(function(Z){if(Z.nextAddress==1)return _.b(Z,V.JSC$14893_playNonceResolver.promise,2);t=Z.yieldResult;J={externalPostId:V.JSC$14893_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:t,sdkVersion:f,api:D};n!==void 0&&(J.networkRequestsMeasurement={networkRequests:_.fJ(n,1),cachedRequests:_.fJ(n,2),transferredBytes:_.fJ(n,3)},(H=n)==null?0:_.jP(H,Lf,6))&&(J.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((Q=_.bW(n,
Lf,6))==null?void 0:Nk(Q,1))||"0",cacheHits:((T=_.bW(n,Lf,6))==null?void 0:Nk(T,2))||"0",cachedBytes:((y=_.bW(n,Lf,6))==null?void 0:Nk(y,3))||"0"});_.dq("miniAppSdkUsage",J);_.yz(Z)})},mXU=function(V,D,f){var n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A;
_.w(function(O){if(O.nextAddress==1)return _.b(O,V.JSC$14893_playNonceResolver.promise,2);n=O.yieldResult;t={externalPostId:V.JSC$14893_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:n,sdkVersion:f,measurementWindow:{startTimestampMs:String(sk(D,1)),endTimestampMs:String(sk(D,2))},frameRate:{averageFrameTimeDeltaMs:Bb(D,3),averageFrameIdleTimeMs:Bb(D,4)}};_.jP(D,IF,5)&&(t.networkRequests={networkRequests:(J=D8(D))==null?void 0:_.fJ(J,1),cachedRequests:(H=D8(D))==null?void 0:_.fJ(H,2),transferredBytes:(Q=
D8(D))==null?void 0:_.fJ(Q,3),sameOriginStatusCodeToCounts:N_F((T=D8(D))==null?void 0:fRF(T,4)),crossOriginStatusCodeToCounts:N_F((y=D8(D))==null?void 0:fRF(y,5))},(Z=D8(D))==null?0:_.jP(Z,Lf,6))&&(t.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((l=D8(D))==null?void 0:(G=_.bW(l,Lf,6))==null?void 0:Nk(G,1))||"0",cacheHits:((F=D8(D))==null?void 0:(k=_.bW(F,Lf,6))==null?void 0:Nk(k,2))||"0",cachedBytes:((d=D8(D))==null?void 0:(z=_.bW(d,Lf,6))==null?void 0:Nk(z,3))||"0"});_.jP(D,
xRY,7)&&(t.gameCapture={averageFrameTimeDeltaMs:(C=_.bW(D,xRY,7))==null?void 0:Bb(C,1),averageFrameIdleTimeMs:(A=_.bW(D,xRY,7))==null?void 0:Bb(A,2)});_.dq("miniAppPerformanceMetrics",t);_.yz(O)})},zxY=function(V,D){var f,n;
return _.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$14893_playNonceResolver.promise,2);f=t.yieldResult;n={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:V.JSC$14893_miniAppId,postPlayNonce:f,miniAppReleaseId:V.localReleaseId},derivedDeviceInterface:V.derivedDeviceInterface,adTriggerType:D,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.dq("miniAppAdEvent",n);_.yz(t)})};
c9l.prototype.disposeInternal=function(){_.cq.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var qB=function(V,D,f,n){f=f===void 0?{}:f;n=n===void 0?!1:n;var t,J,H,Q;_.w(function(T){if(T.nextAddress==1)return t=V.isForeground,J=V.beforeReady,_.b(T,V.JSC$14893_playNonceResolver.promise,2);H=T.yieldResult;Q={externalPostId:V.JSC$14893_miniAppId,localReleaseId:V.localReleaseId,derivedDeviceInterface:V.derivedDeviceInterface,postPlayNonce:H,type:D};f.sequenceGroup=H;Q.playState=J?"PLAY_STATE_NOT_READY":t?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.dq("miniAppPlayEvent",Q,f);
n&&_.uN();_.yz(T)})},Cj=function(V,D){var f;
_.w(function(n){if(n.nextAddress==1)return f=(0,_.VW)(),_.b(n,V.JSC$14893_playNonceResolver.promise,2);_.zm(D,f);_.yz(n)})},vTH=function(V){isNaN(V.playPingTimerId)&&(V.playPingTimerId=_.HI(function(){V.state!==1&&V.state!==2?_.zP(new _.cI("[MiniAppPlayLogger] reportPlayPing failed with state "+GFl[V.state])):qB(V,"PLAY_EVENT_TYPE_PLAY_PING")},V.playPingIntervalMs))},N_F=function(V){return Array.from(V.entries()).map(function(D){var f=_.r(D);
D=f.next().value;f=f.next().value;return{key:D,value:f}})};var RxV=function(){},CJr=function(V,D){V.showMiniAppAdCommand=D.showMiniAppAdCommand;
V.isEmbeddedInWebview=D.isEmbeddedInWebview;V.playLogger=D.playLogger},XDL=function(V,D){var f;
return _.w(function(n){if(n.nextAddress==1){if(!V.showMiniAppAdCommand||!V.isEmbeddedInWebview)return n.return(qNH(V,D));V.adResolver=new _.wU;var t=new sC;f=_.nh(t,3,D);AE(V.showMiniAppAdCommand,kGF(f));return _.b(n,V.adResolver.promise,2)}return n.return(n.yieldResult)})};
RxV.prototype.onAdFinished=function(V){V=B36(V);var D;(D=this.adResolver)==null||D.resolve(V)};
var qNH=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)n=_.b(n,(f=V.playLogger)==null?void 0:zxY(f,n_Y(D)),2);else{var t=n.return;var J=new sm6;J=_.nh(J,1,2);n=t.call(n,J)}return n})};var ETV=new _.IH("INNERTUBE_MANAGER_TOKEN");var A9Y=function(){this.callbacks={}};
A9Y.prototype.initialize=function(V){var D=this;this.callbacks=V;window.youtubewebview?window.youtubewebview.onmessage=function(f){aIH(D,f)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(f){aIH(D,f)})};
var aIH=function(V,D){if(D.data)try{var f=jj6(D.data);if(_.Yf(_.ZX(f,1))!=null){var n=GG6(_.df(f,2));switch(_.df(f,1)){case "yt-mini-app-load-audio-state":var t,J;(J=(t=V.callbacks).onAudioStateLoaded)==null||J.call(t,_.ks(n,GP(n,kB,1)));break;case "yt-mute-mini-app":var H,Q;(Q=(H=V.callbacks).onMuteMiniApp)==null||Q.call(H);break;case "yt-unmute-mini-app":var T,y;(y=(T=V.callbacks).onUnmuteMiniApp)==null||y.call(T);break;case "yt-playable-exit":var Z,l;(l=(Z=V.callbacks).onExit)==null||l.call(Z);
break;case "yt-post-play-nonce":var G,F;(F=(G=V.callbacks).onPostPlayNonceReceived)==null||F.call(G,mz(n,2,kB));break;case "yt-confirm-exit-mini-app":var k,d;(d=(k=V.callbacks).confirmExitMiniApp)==null||d.call(k);break;case "yt-confirm-exit-mini-app-edu":var z,C;(C=(z=V.callbacks).confirmExitMiniAppEdu)==null||C.call(z);break;case "yt-benchmarking-response":var A,O;(O=(A=V.callbacks).onNativeBenchmarkingMessageReceived)==null||O.call(A,mz(n,2,kB));break;case "yt-mini-app-load-3p-consent-state":var W,
I;(I=(W=V.callbacks).multiplayer3pAckStateLoaded)==null||I.call(W,_.ks(n,GP(n,kB,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var x,oY;(oY=(x=V.callbacks).exitMiniAppSeenStateLoaded)==null||oY.call(x,_.ks(n,GP(n,kB,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var wZ,ZZ;(ZZ=(wZ=V.callbacks).onNavigateToNewMiniApp)==null||ZZ.call(wZ);break;case "yt-game-data-available":var sd,NU;(NU=(sd=V.callbacks).onGameDataAvailable)==null||NU.call(sd,mz(n,2,kB));break;case "yt-pause-mini-app":var Bn,
aY;(aY=(Bn=V.callbacks).onPauseMiniApp)==null||aY.call(Bn);break;case "yt-resume-mini-app":var Ed,V0;(V0=(Ed=V.callbacks).onResumeMiniApp)==null||V0.call(Ed);break;case "yt-playable-ad-finished":var kf,mY;(mY=(kf=V.callbacks).onAdFinished)==null||mY.call(kf,mz(n,2,kB))}}else _.zP(Error("Xh"))}catch(Ko){_.NG(Error("Yh"))}else _.zP(Error("Zh"))};var Pw3=function(V){this.rpcErrorCode=V};var XG=function(V,D,f){this.intervalMs=V;this.apiFunc=D;this.type=f;this.schedulerReady=!0};
XG.prototype.call=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1){if(D.type!==1&&V===D.cachedValue)return n.return();D.pendingApiRequestResolver||(D.pendingApiRequestResolver=new _.wU);f=D.pendingApiRequestResolver.promise;D.cachedValue=V;return _.b(n,YNH(D),2)}return n.return(f)})};
XG.prototype.flush=function(V){V=V===void 0?!1:V;var D=this;return _.w(function(f){return D.cachedValue===void 0?f.return():_.b(f,D.apiFunc(D.cachedValue,V),0)})};
var YNH=function(V){var D,f,n;return _.w(function(t){switch(t.nextAddress){case 1:if(!V.schedulerReady||!V.pendingApiRequestResolver)return t.return();V.schedulerReady=!1;D=V.pendingApiRequestResolver;V.pendingApiRequestResolver=void 0;_.wx(t,2);if(V.cachedValue===void 0){t.jumpTo(4);break}return _.b(t,V.apiFunc(V.cachedValue),5);case 5:f=t.yieldResult,D.resolve(f);case 4:_.YJ(t,3);break;case 2:n=_.KW(t),D.reject(n);case 3:setTimeout(function(){return _.w(function(J){V.schedulerReady=!0;return _.b(J,
YNH(V),0)})},V.intervalMs),_.yz(t)}})};var rpx=window.location.origin+"/miniapp_cloudsaves",o_9=[400,401],$XF=_.tU("cloud_save_game_data_rate_limit_ms",3E3),WUH=function(V){var D=this;this.JSC$14937_miniAppId=V;this.loadAttempts=0;this.cloudSaveIntervalMs=$XF;this.initialDownloadDataSucceeded=!1;this.JSC$14937_playNonceResolver=new _.wU;this.scottyUploadRateLimiter=new XG(this.cloudSaveIntervalMs,function(f,n){return i3H(D,f,n)},2);
this.downloadDataPromise=SN6(this);this.downloadDataPromise.then(function(){D.initialDownloadDataSucceeded=!0}).catch(function(){})},pDV=function(V,D){D.then(function(f){return V.JSC$14937_playNonceResolver.resolve(f)})},LUP=function(V){return _.w(function(D){return V.cachedData===void 0?D.return(V.downloadDataPromise):D.return(V.cachedData)})},IIU=function(V,D){return _.w(function(f){V.cachedData=D;
if(!V.initialDownloadDataSucceeded)throw Error("$h");return _.b(f,V.scottyUploadRateLimiter.call(D),0)})},O3l=function(){return new Promise(function(V){setTimeout(V,1E3,"")})},xXl=function(V,D){var f,n;
return _.w(function(t){if(t.nextAddress==1)return f=V.JSC$14937_miniAppId,_.b(t,Promise.race([V.JSC$14937_playNonceResolver.promise,O3l()]),2);n={"X-YouTube-MiniAppId":f,"X-YouTube-PostPlayNonce":t.yieldResult};"DELEGATED_SESSION_ID"in _.CZ&&YEY(D,n);return t.return(n)})},i3H=function(V,D,f){f=f===void 0?!1:f;
return _.w(function(n){return tiX()?_.c("enable_cloud_save_error_popup_after_retry")?n.return(new Promise(function(t,J){var H,Q,T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:H=0,Q=!0,y=T=null;case 2:if(!(Q&&H++<2)){l.jumpTo(4);break}_.wx(l,5);return _.b(l,MMP(V,D,f),7);case 7:T=l.yieldResult;Q=T.ok?!1:!o_9.includes(T.status);_.YJ(l,2);break;case 5:y=Z=_.KW(l);Q=JpR(y);l.jumpTo(2);break;case 4:T?T.ok?(EU(V,$XF),t()):(EU(V,V.cloudSaveIntervalMs*2),J(Error("ai`"+String(T.status),{cause:{rpcErrorCode:T.status}}))):
(EU(V,V.cloudSaveIntervalMs*2),J(y||Error("bi"))),_.yz(l)}})})):n.return(new Promise(function(t,J){var H,Q;
return _.w(function(T){if(T.nextAddress==1){if(V.JSC$14937_miniAppId==="")return J(Error("ci")),T.return();_.wx(T,2);return _.b(T,MMP(V,D,f),4)}if(T.nextAddress!=2)return H=T.yieldResult,H.ok?(EU(V,$XF),t()):(EU(V,V.cloudSaveIntervalMs*2),J(Error("ai`"+String(H.status),{cause:{rpcErrorCode:H.status}}))),_.YJ(T,0);Q=_.KW(T);EU(V,V.cloudSaveIntervalMs*2);J(Q);_.yz(T)})})):n.return()})},MMP=function(V,D,f){f=f===void 0?!1:f;
var n,t,J;return _.w(function(H){if(H.nextAddress==1)return n=_.V3((new TextEncoder).encode(D)),t=HBd(),_.b(H,xXl(V,t),2);J=H.yieldResult;return H.return(fetch(t,{method:"POST",body:new Blob([n]),headers:J,keepalive:f}))})},SN6=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1){if(!tiX())return n.return("");if(V.JSC$14937_miniAppId==="")throw Error("ci");if(V.loadAttempts>2)return n.return(V.downloadDataPromise);_.wx(n,2);return _.b(n,hxu(V),4)}if(n.nextAddress!=2)return D=n.yieldResult,n.return(D);f=_.KW(n);if(JpR(f)&&++V.loadAttempts<2)return n.return(SN6(V));throw f;})},hxu=function(V){var D,f,n,t,J;
return _.w(function(H){switch(H.nextAddress){case 1:return _.wx(H,2),D=HBd(),_.b(H,xXl(V,D),4);case 4:return f=H.yieldResult,_.b(H,fetch(D,{method:"GET",headers:f}),5);case 5:return n=H.yieldResult,n.ok?_.b(H,n.text(),6):H.return(Promise.reject(Error("di`"+String(n.status),{cause:new Pw3(n.status)})));case 6:return t=H.yieldResult,H.return((new TextDecoder).decode(_.rP(t)));case 2:return J=_.KW(H),H.return(Promise.reject(J))}})},EU=function(V,D){V.cloudSaveIntervalMs=D;
V.scottyUploadRateLimiter.intervalMs=V.cloudSaveIntervalMs};
WUH.prototype.flush=function(){var V=this;return _.w(function(D){return V.initialDownloadDataSucceeded?_.b(D,V.scottyUploadRateLimiter.flush(!0),0):D.return()})};var UXH=Up(hV(1),x0(1)),Vjo=Up(hV(1),x0(3)),AM=function(V){this.callbacks=V};
_.P=AM.prototype;_.P.onAudioToggled=function(V,D){(D===void 0||D)&&_.oC("yt-mini-app-is-audio-enabled",V,2592E3)};
_.P.onPause=function(){this.onAudioToggled(!1,!1)};
_.P.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.P.returnNativeBenchmarkingMessage=function(){};
_.P.sendGameData=function(){};
_.P.sendStartGameFrameCapture=function(){};
var wsc=function(V,D,f){this.callbacks=V;var n=this;this.sdkVersion=new _.wU;this.channel=new Oq3(_.xs({destination:window,iframe:D,origin:(new URL(f.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var t=aJ;var J=hV(5);var H=new XCY;H=_.R$(H,1,1E4);J=_.nc(J,4,WDl,H);t(n,J);n.onAudioToggled(n.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){n.sdkVersion.resolve("")},1E4)};
_.v(wsc,AM);_.P=wsc.prototype;_.P.onAudioToggled=function(V,D){AM.prototype.onAudioToggled.call(this,V,D===void 0?!0:D);D=aJ;var f=hV(2),n=new CnL;V=_.oV(n,1,V);V=_.nc(f,3,WDl,V);D(this,V)};
_.P.onPause=function(){AM.prototype.onPause.call(this);aJ(this,hV(3))};
_.P.onResume=function(){AM.prototype.onResume.call(this);aJ(this,hV(4))};
_.P.returnNativeBenchmarkingMessage=function(V){var D=aJ,f=hV(6);var n=x0(_.jP(V,$N,1)?1:2);V=_.jP(V,$N,1)?V:null;n=_.nc(n,5,MH,V);D(this,Up(f,n))};
_.P.sendGameData=function(V){var D=aJ,f=hV(7);V=_.nc(f,5,WDl,V);D(this,V)};
_.P.sendStartGameFrameCapture=function(){aJ(this,hV(9))};
var Y3=function(V,D,f){var n,t,J;return _.w(function(H){if(H.nextAddress==1)return n=V.callbacks,t=n.onSdkCalled,J=D,_.b(H,V.sdkVersion.promise,2);t.call(n,J,H.yieldResult,f);_.yz(H)})};
wsc.prototype.onMessage=function(){var V=this;return heY(f9,function(D){var f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ,ZZ,sd,NU,Bn,aY,Ed,V0,kf,mY,Ko,Eu,y0,BH,wu,lF,rZ,wP,gP,uX,cH,WH,S5,Il;return _.w(function(ol){switch(ol.nextAddress){case 1:if(!V9r(D.data))return _.zP(Error("ei")),ol.return();f=_.u4(D.data,1);_.c("enable_iframe_message_get_type_via_fields")&&(n=D.data,f=t=_.u4(n,1));switch(f){case 8:if(D.data.hasMetadata()){var al=V.sdkVersion,cB=al.resolve;var jE=D.data.getMetadata();jE=_.df(jE,
1);cB.call(al,jE);clearTimeout(V.sdkVersionTimeoutId)}break;case 6:return ol.jumpTo(2);case 16:if(!_.l4(D.data,IrU,14,n9))return ol.return();J=_.zl(D.data,IrU,14,n9);(Q=(H=V.callbacks).onGameFrameReceived)==null||Q.call(H,J);return ol.return();case 17:if(!_.l4(D.data,LDH,15,n9))return ol.return();(y=(T=V.callbacks).onGameAudioReceived)==null||y.call(T,_.zl(D.data,LDH,15,n9));return ol.return();case 1:if(al=_.zl(D.data,ar6,2,n9))switch(_.u4(al,1)){case 1:V.callbacks.onFirstFrameReady();if(_.c("enable_network_request_logging_on_game_events")&&
_.jP(al,IF,4)){Y3(V,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.bW(al,IF,4));break}Y3(V,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(jE=(cB=V.callbacks).onGameReady)==null||jE.call(cB);if(_.c("enable_network_request_logging_on_game_events")&&_.jP(al,IF,4)){Y3(V,"MINI_APP_SDK_API_GAME_READY",_.bW(al,IF,4));break}Y3(V,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.l4(al,Op,3,Y1E))V.callbacks.onResourceLoaded(_.zl(al,Op,3,Y1E))}return ol.return();case 3:return ol.jumpTo(3);case 4:return ol.jumpTo(4);
case 2:return ol.jumpTo(5);case 9:return ol.jumpTo(6);case 10:return V.callbacks.onClick(),ol.return();case 5:return ol.jumpTo(7);case 11:if(!_.l4(D.data,WY,9,n9))return ol.return();Z=_.zl(D.data,WY,9,n9);(G=(l=V.callbacks).onBenchmarkingMessageReceived)==null||G.call(l,Z);al=D.reply;cB=hV(1);jE=x0(1);var dP=new WY;var Q0=new Uint8Array(l09(Z,GP(Z,uWP,6))|0);dP=TP(dP,5,uWP,_.qL(Q0,!1));jE=_.nc(jE,5,MH,dP);al.call(D,Up(cB,jE));return ol.return();case 12:return ol.jumpTo(8);case 13:return ol.jumpTo(9);
case 15:if(!_.c("enable_open_yt_content"))return D.reply(Vjo),ol.return();if(!_.l4(D.data,pCU,12,n9))return D.reply(Up(hV(1),x0(2))),ol.return();al=_.zl(D.data,pCU,12,n9);F=_.df(al,1);V.callbacks.onOpenYTContent(F);D.reply(UXH);return ol.return();case 14:return ol.jumpTo(10);default:return ol.return()}ol.jumpTo(0);break;case 2:if(!_.l4(D.data,Vn,5,n9))return ol.return();cB=D.data;al=GP(cB,n9,5);cB=cB.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(al=du(cB,cB[_.eE]|0,Vn,al))||(al=Vn[SW])||
(al=new Vn,kp(al.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),al=Vn[SW]=al);k=al;al=_.Vh(k,pf,1,_.DC());d=_.r(al);z=d.next();case 12:if(z.done){ol.jumpTo(14);break}C=z.value;A=new _.cI;A.level=_.u4(C,2)===1?"WARNING":"ERROR";O=T$L(C.getSource());return _.b(ol,V.sdkVersion.promise,15);case 15:W={source:O,sdkVersion:ol.yieldResult};_.eW(_.ZX(C,6))!=null?(A.message=C.getMessage(),A.stack=_.df(C,5),W.sdkErrorType=bB3(_.u4(C,6)),_.eW(_.ZX(C,7))!=null&&(W.sdkApi=Knx(_.u4(C,7)))):A.stack=void 0;
x=I=void 0;(x=(I=V.callbacks).onError)==null||x.call(I,{loggingError:A,metadata:W});z=d.next();ol.jumpTo(12);break;case 14:return ol.return();case 3:return _.wx(ol,16),al=V.callbacks,cB=al.onSave,jE=_.zl(D.data,q1E,4,n9),jE=_.df(jE,1),_.b(ol,cB.call(al,jE),18);case 18:D.reply(UXH);_.YJ(ol,17);break;case 16:return oY=_.KW(ol),wZ=am,ZZ=oY,sd=V.callbacks,NU="MINI_APP_SDK_API_SAVE_DATA",_.b(ol,V.sdkVersion.promise,19);case 19:wZ(ZZ,sd,NU,ol.yieldResult),D.reply(Vjo);case 17:return _.b(ol,Y3(V,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return ol.return();case 4:return _.wx(ol,21),_.b(ol,V.callbacks.onLoad(),23);case 23:Bn=ol.yieldResult;al=D.reply;cB=hV(1);jE=x0(1);dP=new q1E;dP=_.lB(dP,1,Bn);jE=_.nc(jE,3,MH,dP);al.call(D,Up(cB,jE));_.YJ(ol,22);break;case 21:return aY=_.KW(ol),Ed=am,V0=aY,kf=V.callbacks,mY="MINI_APP_SDK_API_LOAD_DATA",_.b(ol,V.sdkVersion.promise,24);case 24:Ed(V0,kf,mY,ol.yieldResult),D.reply(Vjo);case 22:return _.b(ol,Y3(V,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ol.return();case 5:_.wx(ol,
26);V.callbacks.onSendHighScore(NN(_.zl(D.data,hSF,3,n9).getValue()));D.reply(Up(hV(1),x0(1)));_.YJ(ol,27);break;case 26:return Ko=_.KW(ol),Eu=am,y0=Ko,BH=V.callbacks,wu="MINI_APP_SDK_API_SEND_SCORE",_.b(ol,V.sdkVersion.promise,28);case 28:Eu(y0,BH,wu,ol.yieldResult),D.reply(Vjo);case 27:return _.b(ol,Y3(V,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ol.return();case 6:if(!_.l4(D.data,URH,8,n9)){ol.jumpTo(30);break}al=_.zl(D.data,URH,8,n9);al=_.u4(al,1);return _.b(ol,Y3(V,Knx(al)),30);case 30:return ol.return();
case 7:return al=D.reply,cB=hV(1),jE=x0(1),dP=V.callbacks.getLanguage(),jE=TP(jE,4,MH,aq(dP)),al.call(D,Up(cB,jE)),_.b(ol,Y3(V,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ol.return();case 8:if(!_.l4(D.data,MbE,10,n9))return ol.return();lF=_.zl(D.data,MbE,10,n9);rZ=V.callbacks;wP=rZ.onSdkPerformanceUpdate;return _.b(ol,V.sdkVersion.promise,33);case 33:return wP.call(rZ,lF,ol.yieldResult),ol.return();case 9:al=D.data;cB=GP(al,n9,11);if(_.Yf(_.ZX(al,cB))==null)return D.reply(Up(hV(1),x0(2))),
ol.return();gP=mz(D.data,11,n9);V.callbacks.onShareInviteCode(gP);D.reply(UXH);return _.b(ol,Y3(V,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return ol.return();case 10:if(_.l4(D.data,RSl,13,n9)){ol.jumpTo(35);break}return _.b(ol,V.callbacks.onShowMiniAppAd(2),36);case 36:return uX=ol.yieldResult,D.reply(Up(hV(1),iL6(uX))),_.b(ol,Y3(V,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ol.return();case 35:al=_.zl(D.data,RSl,13,n9);a:switch(_.u4(al,1)){case 1:al={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:al={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:al={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}cH=al;WH=cH.adType;S5=cH.sdkApi;al=V.callbacks;cB=al.onShowMiniAppAd;jE=_.zl(D.data,RSl,13,n9);jE=_.df(jE,2);return _.b(ol,cB.call(al,WH,jE||void 0),38);case 38:return Il=ol.yieldResult,D.reply(Up(hV(1),iL6(Il))),_.b(ol,Y3(V,S5),39);case 39:return ol.return()}})})};
var aJ=function(V,D){_.w(function(f){V.channel.send(D);_.yz(f)})},YV=function(V,D,f){this.callbacks=V;
var n=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;V=JnX(D,(new URL(f.toString())).origin);this.gameSnacks=new QMR(V);this.gameSnacks.page.onReady(function(){n.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){n.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var t,J;(J=(t=n.callbacks).onGameReady)==null||J.call(t)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(t,J){try{n.callbacks.onSendHighScore(J)}catch(H){am(H,n.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(t,J){var H;return _.w(function(Q){if(Q.nextAddress==1)return _.wx(Q,2),_.b(Q,n.callbacks.onSave(n.decoder.decode(J)),4);if(Q.nextAddress!=2)return _.YJ(Q,0);H=_.KW(Q);am(H,n.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return Q.return()})});
this.gameSnacks.storage.onLoad(function(){var t,J;return _.w(function(H){if(H.nextAddress==1)return _.wx(H,2),_.b(H,n.callbacks.onLoad(),4);if(H.nextAddress!=2)return t=H.yieldResult,H.return(n.encoder.encode(t));J=_.KW(H);am(J,n.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return H.return(n.encoder.encode(""))})});
this.gameSnacks.init()};
_.v(YV,AM);YV.prototype.onAudioToggled=function(V,D){AM.prototype.onAudioToggled.call(this,V,D===void 0?!0:D);var f;(f=this.gameSnacks)==null||f.audio.update(V)};
YV.prototype.onPause=function(){AM.prototype.onPause.call(this);var V;(V=this.gameSnacks)==null||V.game.pause()};
YV.prototype.onResume=function(){AM.prototype.onResume.call(this);var V;(V=this.gameSnacks)==null||V.game.resume()};var DcF=ypL,f0l=_.MA(function(V){var D=V.data;var f=V.loadingProgress;V=_.r(_.HJ("",void 0,"LYYTdd"));var n=V.next().value,t=V.next().value;V=_.r(_.HJ(!1,void 0,"K0waae"));var J=V.next().value,H=V.next().value,Q=[],T=function(){return"transform: scaleX("+(_.Nq(f)||0)+")"},y=null,Z=function(){return D()&&y!==null&&y!==void 0?y:y=D().showAnniversaryAnimation?6:DcF()};
_.BJ(function(){var k;if(D().timeOutMessages&&((k=D().timeOutMessages)==null?0:k.length)){y=null;k=_.r(Q);for(var d=k.next();!d.done;d=k.next())clearTimeout(d.value);Q.length=0;ZBY(D().timeOutMessages,Q,t,H)}},"BNu9j");
var l=function(){return!!D().persistentErrorMessageTitle},G=function(){return f!==void 0},F=function(){return D().title};
return _.K("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.K("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.K("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.K("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var k,d=(k=D().backgroundImage)==null?void 0:k.sources,z;return(d==null?0:d.length)?"background-image: url("+((z=d[0])==null?void 0:z.url)+")":
""}}),_.K("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.K(_.e,{cond:function(){return!l()},
then:function(){var k={};return _.K("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.K("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.K(_.ft,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+Z()},
data:function(){var d="loading_animation_"+Z();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.K("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.K(_.e,{cond:F,
then:function(){return _.K("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},F)}}),_.K("p",{class:_.KT("mini-app-splash-screen-view-model-wiz__timeout-message",(k["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return J()},k)),
"aria-live":"polite"},n),_.K(_.e,{cond:G,then:function(){return _.K("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.K("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:T}))}})))}}),_.K(_.e,{cond:l,
then:function(){return _.K("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.K("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return D().persistentErrorMessageTitle}),_.K(_.e,{cond:function(){return!!D().persistentErrorMessageDescription},
then:function(){return _.K("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return D().persistentErrorMessageDescription})}}))}})))},"ae");var naV=new _.IH("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var tjE=O0;O0=function(V){function D(f){if(f){var n,t;(n=f.__spec)==null||(t=n.didUnmount)==null||t.call(n);for(n=0;n<f.childNodes.length;n++)D(f.childNodes[n])}}
tjE==null||tjE(V);ds(function(){for(var f=0;f<V.length;f++)D(V[f])})};var PmE=_.MA(function(V){var D=V.data;var f=V.score;var n=V.formattedScore;var t=V.onScoreChanged;var J=V.isEmbeddedInWebview;var H=_.py("yt-mini-app-score-button-view-model"),Q=function(){var F;return _.g(D==null?void 0:(F=D())==null?void 0:F.buttonViewModel,_.cW)},T=function(){var F;
return(f==null?void 0:f())||Number(D==null?void 0:(F=D())==null?void 0:F.lastScore)||0},y=function(){var F;
return(n==null?void 0:n())||((F=Q())==null?void 0:F.title)||""},Z,l=1;
if(V=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))V=Number(V),l=isNaN(V)?1:V/100;_.BJ(function(){t==null||t(T());var F;var k=_.Xo((F=Q())==null?void 0:F.onTap);if(k){F=_.g(k,RPr);var d,z,C;F=_.g(F==null?void 0:(d=F.panelLoadingStrategy)==null?void 0:(z=d.inlineContent)==null?void 0:(C=z.dialogViewModel)==null?void 0:C.customContent,siP)}else F=void 0;if(d=F)d.score=y()},"KZFi5e");
V=_.jl(function(){var F,k,d=D==null?void 0:(F=D())==null?void 0:(k=F.loggingDirectives)==null?void 0:k.trackingParams;d&&_.H5(_.DY().resolve(_.cO),d);return!1});
_.Nl(function(){if(H.value){var F=H.value.querySelector("button"),k=Q();F&&k&&jfd(F,k);xb("yt-share-playable-with-high-score",function(){var d=T().toString(),z=D==null?void 0:D().onShareHighScoreCommand,C=D==null?void 0:D().highScoreShareClientParamIdentifier,A=J==null?void 0:J();z&&(A?(C=new cTp,d=_.lB(C,2,d),AE(z,d.JSC$10408_serializeBinary())):C&&(_.DY().resolve(naV).clientParams.set(C,{miniAppClientParams:{highScore:d}}),ViL(z,!1)))})}});
var G=function(){var F=Q();F&&(f==null?0:f())&&F.accessibilityText&&(F.accessibilityText=F.accessibilityText.replace(Z,y()));Z=y();return{numberValue:T(),numberText:y(),heightPx:36,fontSizeMultiplier:l,shouldAnimate:!(f==null||!f())&&!0}};
return _.K("yt-mini-app-score-button-view-model",{class:function(){var F={};return _.y6("mini-app-score-button-view-model-wiz",(F["mini-app-score-button-view-model-wiz--is-visible"]=T()!==0,F))},
el:H,"on:click":V},IV(!1,function(){return _.K("span",{style:"display:none;"},T)}),_.K(_.BW,{data:function(){var F;
return D==null?void 0:(F=D())==null?void 0:F.buttonViewModel}},{buttonViewModel:function(F){return _.K(_.HO,{data:F.data,
animatedTextProps:G})}}))},"be");var wFH=_.MA(function(V){var D,f=(D=_.J5("yt-mini-app-is-theater-mode-enabled"))!=null?D:!1,n=_.c("enable_playable_container_save_button"),t=_.c("enable_play_next_destination_page_in_toolbar");D={};return _.K("ytm-mini-app-top-bar-view-model",null,_.K("div",{class:_.KT("yt-mini-app-top-bar-view-model",(D["yt-mini-app-top-bar-view-model--mobile"]=!1,D["yt-mini-app-top-bar-view-model--desktop"]=!0,D))},_.K("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.K(_.e,{cond:function(){var J;
return!!V.data().backButtonEdu&&!((J=V.isExitMiniAppSeen)==null?0:J.call(V))},
then:function(){return _.K(_.BW,{data:function(){return V.data().backButtonEdu}},{buttonViewModel:_.HO})},
else:function(){return _.K(_.BW,{data:function(){return V.data().backButton}},{buttonViewModel:_.HO})}}),_.K(_.e,{cond:function(){return V.data().viewAllButton&&!0},
then:function(){return _.K(_.BW,{data:function(){return V.data().viewAllButton}},{buttonViewModel:_.HO})}}),_.K(_.e,{cond:function(){return V.data().title&&!0},
then:function(){return _.K("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return V.data().title})}})),_.K("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.K(_.e,{cond:function(){var J;
return(J=V.isDesktopPlayPage)==null?void 0:J.call(V)},
then:function(){return _.K(_.th,null,_.K(oao,{highScoreButton:function(){return V.data().highScoreButton},
score:V.score,formattedScore:V.formattedScore,onScoreChanged:V.onScoreChanged,isEmbeddedInWebview:V.isEmbeddedInWebview}),_.K(JQF,{enableSaveButton:function(){return _.Nq(n)},
saveButton:function(){return V.data().saveButton},
isSaved:V.isSaved,onSaveToggled:function(){return V.onSaveToggled}}),_.K(rQE,{menuButton:function(){return V.data().menuButton}}))},
else:function(){return _.K(_.e,{cond:function(){return!1},
then:function(){return _.K(_.BW,{data:function(){return V.data().playPageButton}},{buttonViewModel:function(J){return _.K(_.HO,{data:J.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.K(oao,{highScoreButton:function(){return V.data().highScoreButton},
score:V.score,formattedScore:V.formattedScore,onScoreChanged:V.onScoreChanged,isEmbeddedInWebview:V.isEmbeddedInWebview})}})}})),_.K("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.K(_.BW,{data:function(){return V.data().muteButton}},{toggleButtonViewModel:function(J){var H=J.data;
return _.K(_.FA,{data:function(){var Q,T;return Object.assign({},H(),{isToggled:(T=(Q=V.isAudioEnabled)==null?void 0:Q.call(V))!=null?T:!0})},
onToggle:V.onAudioToggled,useOutlinedIcon:!0})}}),_.K(_.BW,{data:function(){return V.data().theatreModeButton}},{toggleButtonViewModel:function(J){var H=J.data;
return _.K("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.K(_.FA,{data:function(){return Object.assign({},H(),{isToggled:f})},
useOutlinedIcon:!0}))}}),_.K(HV6,{fullscreenButton:function(){return V.data().fullscreenButton}}),_.K(_.e,{cond:function(){return _.Nq(t)&&V.data().viewAllButton&&!1},
then:function(){return _.K(_.BW,{data:function(){return V.data().viewAllButton}},{buttonViewModel:_.HO})}}),_.K(_.e,{cond:function(){var J;
return!((J=V.isDesktopPlayPage)==null?0:J.call(V))},
then:function(){return _.K(_.th,null,_.K(JQF,{enableSaveButton:function(){return _.Nq(n)},
saveButton:function(){return V.data().saveButton},
isSaved:V.isSaved,onSaveToggled:function(){return V.onSaveToggled}}),_.K(rQE,{menuButton:function(){return V.data().menuButton}}))}}))))},"ce");
wFH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var rQE=_.MA(function(V){return _.K(_.BW,{data:V.menuButton},{buttonViewModel:_.HO})},"de"),JQF=_.MA(function(V){var D=V.enableSaveButton;
var f=V.saveButton;var n=V.isSaved;var t=V.onSaveToggled;return _.K(_.e,{cond:function(){return D()&&!(f==null||!f())},
then:function(){return _.K(_.BW,{data:function(){var J=_.g(f==null?void 0:f(),_.FO),H;return{toggleButtonViewModel:Object.assign({},J,{isToggled:(H=n==null?void 0:n())!=null?H:!(J==null||!J.isToggled)})}}},{toggleButtonViewModel:function(J){return _.K(_.FA,{data:J.data,
onToggle:t})}})}})},"ee"),oao=_.MA(function(V){var D=V.highScoreButton;
var f=V.score;var n=V.formattedScore;var t=V.onScoreChanged;var J=V.isEmbeddedInWebview;return _.K(_.BW,{data:D},{miniAppScoreButtonViewModel:function(H){return _.K(PmE,{data:H.data,score:f,formattedScore:n,onScoreChanged:t,isEmbeddedInWebview:J})}})},"fe"),HV6=_.MA(function(V){V=V.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.K(_.th,null):_.K(_.BW,{data:V},{buttonViewModel:_.HO})},"ge");_.QRl=new _.IH("DESKTOP_CURRENT_PAGE");var jRH=_.MA(function(V){var D=V.data;var f=_.c("force_active_time_logging_webview"),n=!1,t=new A9Y,J=void 0,H=void 0,Q=_.DY().resolve(ETV),T=new RxV,y=void 0,Z=void 0,l=[],G=void 0,F=void 0,k=!1,d=!1,z=!1,C=!1,A=new _.wU,O=_.DY().resolve(naV),W=_.DY().resolve(_.RJ),I=_.DY().resolve(_.Vx(wD)),x,oY=(x=_.DY().resolve(_.Vx(_.QRl)))==null?void 0:x.getCurrentPage(),wZ=!1,ZZ=0,sd=function(Wn){Wn.preventDefault();return Wn.returnValue=""},NU;
V=_.r(_.HJ(!((NU=_.J5("yt-mini-app-is-audio-enabled"))!=null&&!NU),void 0,"cGaEvf"));var Bn=V.next().value,aY=V.next().value,Ed;NU=_.r(_.HJ(!((Ed=_.J5("exit-mini-app-seen-state"))==null||!Ed),void 0,"DctXGe"));var V0=NU.next().value,kf=NU.next().value;Ed=_.r(_.HJ(!1,void 0,"pU1jdd"));var mY=Ed.next().value,Ko=Ed.next().value;Ed=_.r(_.HJ(void 0,void 0,"ldLqDf"));var Eu=Ed.next().value,y0=Ed.next().value;Ed=_.r(_.HJ(void 0,void 0,"mdofE"));var BH=Ed.next().value,wu=Ed.next().value;Ed=_.r(_.HJ(!0,void 0,
"T1gxCf"));var lF=Ed.next().value,rZ=Ed.next().value;Ed=_.r(_.HJ(!1,void 0,"gxt7wf"));var wP=Ed.next().value,gP=Ed.next().value;Ed=_.r(_.HJ(void 0,void 0,"yqLV6d"));var uX=Ed.next().value,cH=Ed.next().value;Ed=_.r(_.HJ(0,void 0,"l6CrGf"));var WH=Ed.next().value,S5=Ed.next().value,Il=_.W2("mini-app-container-view-model"),ol=function(){return D().isEmbeddedInWebview},al=function(){return D().hasPlayNextShelf};
xb("yt-page-type-changed",function(Wn){if(_.c("enable_is_mini_app_page_active_bugfix"))Wn.detail.newPageSubtype==="mini_app"&&Wn.detail.newPageType==="ytd-browse"||!lF()||dP();else if(Wn=_.MrU()==="mini_app",Wn!==lF())if(rZ(Wn),Wn){var nw;Wn=(nw=D().playableId)==null?void 0:nw.toString();Wn!==void 0&&window.location.href.includes(Wn)&&!d&&(C=!0,cB(),QV.value&&K4(QV.value))}else Wn||dP()});
xb("yt-action",function(Wn){Wn.detail.actionName==="yt-engagement-panel-visible-changed"&&Wn.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Wn.detail.args[2]==="PAmini_app_panel"&&dP();_.c("enable_is_mini_app_page_active_bugfix")?Wn.detail.actionName==="yt-history-load"&&!lF()&&(oY==null?0:oY.active)?(rZ(!0),cB(),QV.value&&K4(QV.value)):Wn.detail.actionName==="yt-history-load"&&lF()&&!D().isEmbeddedInWebview&&c6():lF()&&Wn.detail.actionName==="yt-history-load"&&(C?C=!1:D().isEmbeddedInWebview||
c6())});
_.dc(function(){jE()});
_.BJ(function(){cB()},"PiwKsd");
var cB=function(){var Wn=D().playableId,nw=D().localReleaseId,AZ=D().derivedDeviceInterface;if(d)_.zP(new _.cI("[MiniAppContainerViewModel] onEnter was called more than once"));else{d=!0;J=new c9l(Wn,nw,AZ,document.visibilityState==="visible");kFu(J);H=new WUH(Wn);TeU(Q,Wn);CJr(T,{showMiniAppAdCommand:D().showMiniAppAdCommand,isEmbeddedInWebview:D().isEmbeddedInWebview,playLogger:J});sbZ()&&(F=document.body.style.backgroundColor,_.mv(document.body,"background-color","black"));Vm();yV();A=new _.wU;
if(D().isEmbeddedInWebview){if(Wn=(new URLSearchParams(window.location.search)).get("postPlayNonce"))gTl(J,Wn),wZ=!0;t.initialize({onAudioStateLoaded:function(Mo){oq(Mo)},
onMuteMiniApp:function(){oq(!1)},
onUnmuteMiniApp:function(){oq(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Mo){wZ||(gTl(J,Mo),wZ=!0)},
confirmExitMiniApp:function(){var Mo,Ja,rx;return _.w(function(y3){if(y3.nextAddress==1)return D().confirmExitMiniAppCommand?_.b(y3,Promise.race([A.promise,Promise.resolve(!1)]),2):y3.return();(Mo=y3.yieldResult)?!D().confirmExitMiniAppCommandEdu||(rx=(Ja=V0)==null?void 0:Ja())!=null&&rx?FE(D().confirmExitMiniAppCommand):(FE(D().confirmExitMiniAppCommandEdu),_.oC("exit-mini-app-seen-state","true",2592E6)):FE(D().closeMiniAppCommand);_.yz(y3)})},
onNativeBenchmarkingMessageReceived:function(Mo){Mo=mRP(_.UK3(Mo));if(_.l4(Mo,_.E1,3,dRV)){var Ja=_.zl(Mo,_.E1,3,dRV),rx=DKY();var y3=NN(rx.getSeconds())-NN(Ja.getSeconds());Ja=_.fJ(rx,2)-_.fJ(Ja,2);y3<0&&Ja>0?(y3+=1,Ja-=1E9):y3>0&&Ja<0&&(--y3,Ja+=1E9);y3=(new $N).setSeconds(y3);y3=_.kr(y3,2,_.gR(Ja),0);_.fc(Mo,1,y3)}var tP;(tP=Z)==null||tP.returnNativeBenchmarkingMessage(Mo)},
multiplayer3pAckStateLoaded:function(Mo){c6(Mo)},
exitMiniAppSeenStateLoaded:function(Mo){D().confirmExitMiniAppCommandEdu&&kf(Mo)},
onNavigateToNewMiniApp:function(){FE(D().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Mo){Mo=new URLSearchParams(Mo);var Ja=void 0;Mo.has("invite_code")&&(Ja=new AEL,Mo=Mo.get("invite_code"),Ja=_.lB(Ja,1,Mo));if(Mo=Ja){var rx;(rx=Z)==null||rx.sendGameData(Mo)}},
onPauseMiniApp:function(){n=!0;Q0()},
onResumeMiniApp:function(){n=!0;o3()},
onAdFinished:function(Mo){T.onAdFinished(Mo)}});
D().showMultiplayer3pConsentDialogCommand||A.resolve(!0);FE(D().onContainerReadyCommand)}else gTl(J),A.resolve(!0);pDV(H,FUV(J));FUV(J).then(function(Mo){Mo={miniAppPlayData:{postPlayNonce:Mo}};var Ja,rx=(Ja=D().loggingDirectives)==null?void 0:Ja.trackingParams;rx&&_.lS().stateChanged(rx,Mo)});
Wn=D().showSignInDialogCommand;!tiX()&&Wn&&(_.oC("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),FE(Wn));D().confirmExitMiniAppCommand&&I&&(Wn=hWL(D().confirmExitMiniAppCommand))&&(I.customConfirmationCommand=Wn)}},jE=function(){F&&_.mv(document.body,"background-color",F);
k=!1;G&&G.release();H.flush().catch(function(Wn){_.zP(Wn)});
Q.flush().catch(function(Wn){_.zP(Wn)});
B_l(J);C4();Z=void 0;bVL(O)},dP=function(){rZ(!1);
jE();Ko(!1);cH(void 0);y0(void 0);wu(void 0);ZZ=0;S5(0);d=!1},Q0=function(){var Wn;
(Wn=Z)==null||Wn.onPause();G&&G.release();H.flush().catch(function(nw){_.zP(nw)});
Q.flush().catch(function(nw){_.zP(nw)});
sQl(J)},o3=function(){var Wn;
(Wn=Z)==null||Wn.onResume();yV();Wn=J;Wn.isForeground=!0;qB(Wn,"PLAY_EVENT_TYPE_PLAY_RESUME")},oq=function(Wn){var nw;
(nw=Z)==null||nw.onAudioToggled(Wn);aY(Wn)},c6=function(Wn){D().showMultiplayer3pConsentDialogCommand&&(D().isEmbeddedInWebview&&Wn!==void 0&&A.resolve(Wn),!Wn&&_.MrU()==="mini_app"&&FE(D().showMultiplayer3pConsentDialogCommand))},Sv=function(){var Wn,nw,AZ,Mo;
return _.w(function(Ja){if(Ja.nextAddress==1){!D().isLivestream||D().disableVideoCapture||(Wn=Z)!=null&&Wn.sendStartGameFrameCapture();nw=(new URL(window.location.href)).searchParams;if(nw.has("invite_code")){var rx=new AEL,y3=nw.get("invite_code");AZ=_.lB(rx,1,y3);(Mo=Z)==null||Mo.sendGameData(AZ)}mY()||(Ko(!0),rx=J,rx.state!==1?_.zP(new _.cI("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+GFl[rx.state])):(_.oT("mini_app_ids_without_game_ready").includes(rx.JSC$14893_miniAppId)&&(rx.gameReady=
!0),rx.state=2,rx.beforeReady=!1,Cj(rx,"ma_ffr"),qB(rx,"PLAY_EVENT_TYPE_PLAY_READY")));return _.b(Ja,A.promise,2)}FE(D().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();D().isEmbeddedInWebview||c6();_.yz(Ja)})},$p=function(){var Wn=J;
Wn.gameReady=!0;Cj(Wn,"ma_gr")},ZR=function(Wn){var nw;
return _.w(function(AZ){if(AZ.nextAddress==1)return _.wx(AZ,2),_.b(AZ,IIU(H,Wn),4);if(AZ.nextAddress!=2)return _.YJ(AZ,0);nw=_.KW(AZ);FE(D().showSavingErrorPopupCommand);throw nw;})},hZ=function(){var Wn,nw;
return _.w(function(AZ){if(AZ.nextAddress==1)return _.wx(AZ,2),_.b(AZ,LUP(H),4);if(AZ.nextAddress!=2)return Wn=AZ.yieldResult,AZ.return(Wn);nw=_.KW(AZ);FE(D().showLoadingErrorDialogCommand);throw nw;})},Uc=function(Wn){J.logError(Wn)},PJ=function(Wn,nw,AZ){uIF(J,Wn,nw,AZ)},P6=function(Wn,nw){mXU(J,Wn,nw)},o2=function(){!f&&D().isEmbeddedInWebview||_.Ui();
dXl(J,!0);k||(window.addEventListener("beforeunload",sd,{capture:!0}),k=!0)},ua=function(Wn){var nw,AZ,Mo,Ja,rx,y3,tP;
return _.w(function(CY){if(CY.nextAddress==1)return Q&&(!y||y<Wn)&&Wn>0?_.b(CY,KGo(Q,Wn),3):CY.jumpTo(0);nw=CY.yieldResult;AZ=_.r(nw);Mo=AZ.next().value;Ja=AZ.next().value;rx=Mo;y3=Ja;((tP=rx)==null?0:tP.displayString)&&y3&&(y0(y3),wu(rx.displayString));_.yz(CY)})},oX=function(Wn){var nw=D().onBenchmarkingMessageReceivedCommand;
if(nw){var AZ=DKY();_.nc(Wn,3,dRV,AZ);AE(nw,zSp(Wn))}},aG=function(Wn){var nw=D().onGameFrameReceivedCommand;
if(nw){var AZ=new sC;var Mo=new ciE;var Ja=sk(Wn,1);Mo=_.c2(Mo,1,Ja);Wn=_.df(Wn,2);Wn=_.lB(Mo,2,Wn);AZ=_.fc(AZ,2,Wn);AE(nw,kGF(AZ))}},F9=function(Wn){var nw=D().onGameAudioDataReceivedCommand;
if(nw){var AZ=new sC;var Mo=new gqH;Wn=_.df(Wn,1);Mo=_.lB(Mo,1,Wn);AZ=_.fc(AZ,4,Mo);AE(nw,kGF(AZ))}},qU=function(){var Wn=new URLSearchParams(window.location.search);
if(D().isEmbeddedInWebview&&Wn&&Wn.get("override_hl")==="true"&&Wn.get("hl"))return Wn.get("hl");Wn=document.documentElement.lang;return Wn!==""?Wn:_.AO},SR=function(Wn){var nw=D().onShareInviteCodeCommand;
if(nw)if(D().isEmbeddedInWebview){var AZ=new cTp;Wn=_.lB(AZ,1,Wn);AE(nw,gBP(Wn))}else AZ=D().inviteCodeShareClientParamIdentifier,O.clientParams.set(AZ,{miniAppClientParams:{inviteCode:Wn}}),FE(nw)},b6=function(Wn){var nw,AZ,Mo;
return _.w(function(Ja){if(Ja.nextAddress==1)return nw=D().onMiniAppOpenYtContentRequested,Q&&_.c("enable_open_yt_content")&&nw?_.b(Ja,yQF(Q,Wn),3):Ja.jumpTo(0);AZ=Ja.yieldResult;if(AZ==="OK")if(D().isEmbeddedInWebview){var rx=new jiE;Mo=TP(rx,2,kB,aq(Wn));AE(nw,eyV(Mo))}else W.clientData.set("video_id",Wn),FE(nw);_.yz(Ja)})},PB=function(Wn){ZZ+=_.fJ(Wn,3);
Wn=Math.min(Math.log(1+ZZ/15E6*9)/Math.log(10),.99);S5(Wn);uF(Wn)},uF=_.ZT(function(Wn){var nw=D().updateLoadingProgressCommand;
if(nw){var AZ=new jiE;Wn=TP(AZ,3,kB,_.rR(Wn));AE(nw,eyV(Wn))}},100),TJ=function(Wn){return XDL(T,Wn)},yV=function(){var Wn,nw;
((Wn=_.uMn())==null?void 0:(nw=Wn.wakeLock)==null?void 0:nw.request)!=null&&_.uMn().wakeLock.request("screen").then(function(AZ){G=AZ}).catch(function(){})},QV=_.py("iframe");
_.BJ(function(){D().isSupportedCountry&&(tiX()||_.c("enable_sign_in_promo")||!D().showSignInDialogCommand?QV.value&&K4(QV.value):FE(D().onMiniAppReadyCommand))},"XK60ib");
var FV=function(){return _.K("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return mY()?0:-1},
el:QV})},K4=function(Wn,nw){nw=nw===void 0?!1:nw;
var AZ=Jr();AZ&&(nw||AZ.toString()!==Wn.getAttribute("src"))&&(Z=QfZ(D().source,{isAudioEnabled:Bn,onFirstFrameReady:Sv,onGameReady:$p,onSave:ZR,onLoad:hZ,onError:Uc,onSdkCalled:PJ,onSdkPerformanceUpdate:P6,onClick:o2,onSendHighScore:ua,onBenchmarkingMessageReceived:oX,getLanguage:qU,onShareInviteCode:SR,onResourceLoaded:PB,onOpenYTContent:b6,onShowMiniAppAd:TJ,onGameFrameReceived:aG,onGameAudioReceived:F9},Wn,AZ),cr(Wn,"load",function(){Cj(J,"ma_il");cr(Wn,"load",function(){K4(Wn,!0)})}),_.N8(Wn,
AZ))},Jr=function(){var Wn=D().url;
if(Wn&&(Wn=_.mW(Wn),Wn!==null)){if(D().source&&D().source==="MINI_APP_SOURCE_GAMESNACKS")Wn=_.Pl(Wn,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.c("enable_origin_query_parameter_bugfix")){var nw=_.vV(_.l_n(Wn.toString()));nw=new URLSearchParams(nw||"");nw.set("origin",window.location.origin);nw=nw.toString();Wn=_.HS(Wn).toString();Wn=_.rQ(Ydu.exec(Wn)[0]+(nw.trim()?"#"+nw:""))}return Wn}},jo=function(){var Wn={};
Wn=_.KT("yt-mini-app-container-view-model__loading-screen",(Wn["yt-mini-app-container-view-model__loading-screen--fade-out"]=mY,Wn));var nw=function(){return mY()?1:WH()};
return _.K("div",{class:Wn},_.K(_.BW,{data:function(){return D().splashScreen}},{miniAppSplashScreenViewModel:function(AZ){return _.K(f0l,{data:AZ.data,
loadingProgress:nw})}}))},Vm=function(){l=[];
l.push(_.kt(window,"visibilitychange",function(){z||n&&ol()||(document.visibilityState==="visible"?o3():Q0())}));
l.push(_.kt(window,"pagehide",function(){jE()}));
l.push(_.kt(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Il.value.dispatchEvent(new Event("tap"))},0)}));
l.push(_.kt(Il.value,"pointerdown",function(){dXl(J,!1)},!0));
l.push(_.kt(Il.value,"pause",function(){z=!0;Q0()}));
l.push(_.kt(Il.value,"play",function(){z=!1;o3()}));
l.push(_.kt(Il.value,"exit",function(){jE()}));
var Wn=navigator.keyboard,nw=Wn&&Wn.lock;l.push(_.kt(window,U1L,function(){gP(D_u());D_u()?(D().hasPlayNextShelf&&Ms("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pH("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),nw&&Wn.lock(["Escape"])):(D().hasPlayNextShelf&&pH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Ms("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),nw&&Wn.unlock())}));
D().showMultiplayer3pConsentDialogCommand&&l.push(_.kt(window,"yt-playables-ack-3p-data-usage",function(){ZVr(Q)}));
D().confirmExitMiniAppCommandEdu&&l.push(_.kt(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.oC("exit-mini-app-seen-state","true",2592E6)}));
D().onGameAudioDataReceivedCommand&&l.push(_.kt(window,"message",function(AZ){AZ=AZ.event_;var Mo,Ja=(Mo=QV.value)==null?void 0:Mo.src;if(Ja&&AZ.origin===(new URL(Ja)).origin&&AZ.data&&AZ.data.type==="GAME_AUDIO"&&AZ.data.audio&&AZ.data.audio.length>0)if(_.c("enable_sending_unwrapped_game_audio_as_serialized_metadata"))AE(D().onGameAudioDataReceivedCommand,AZ.data.audio);else{var rx=new FileReader;rx.onload=function(){var y3=new sC;var tP=new gqH;tP=_.lB(tP,1,rx.result);y3=_.fc(y3,4,tP);AE(D().onGameAudioDataReceivedCommand,
kGF(y3))};
rx.readAsDataURL(new Blob([AZ.data.audio]))}}))},C4=function(){l.forEach(function(Wn){Fo(Wn)});
window.removeEventListener("beforeunload",sd,{capture:!0})},FE=function(Wn){Wn&&ViL(Wn,D().isEmbeddedInWebview||!1)},pH=function(Wn,nw){Wn=_.r(Il.value.getElementsByClassName(Wn));
for(var AZ=Wn.next();!AZ.done;AZ=Wn.next())AZ.value.classList.add(nw)},Ms=function(Wn,nw){Wn=_.r(Il.value.getElementsByClassName(Wn));
for(var AZ=Wn.next();!AZ.done;AZ=Wn.next())AZ.value.classList.remove(nw)};
return function(){var Wn={};Wn=_.KT("yt-mini-app-container-view-model",(Wn["yt-mini-app-container-view-model--desktop"]=!0,Wn["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return D().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Wn["yt-mini-app-container-view-model--ios-web-view"]=sbZ(),Wn["yt-mini-app-container-view-model--no-top-bar"]=function(){return!D().topBar},Wn["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return D().hasPlayNextShelf},Wn["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return D().hasPlayNextShelf},Wn["yt-mini-app-container-view-model--show-peek-below"]=function(){return!wP()&&D().hasPlayNextShelf},Wn));
var nw={};nw=_.KT("yt-mini-app-container-view-model__content",(nw["yt-mini-app-container-view-model__content--desktop-content"]=!0,nw["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return D().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nw["yt-mini-app-container-view-model--desktop-play-page"]=function(){return D().hasPlayNextShelf},nw));
return _.K("mini-app-container-view-model",{el:Il},_.K("div",{class:Wn},_.K(_.e,{cond:function(){return D().topBar&&!wP()},
then:function(){return _.K(_.BW,{data:function(){return D().topBar}},{miniAppTopBarViewModel:function(AZ){return _.K(wFH,{data:AZ.data,
isAudioEnabled:Bn,onAudioToggled:function(Mo){oq(Mo)},
score:Eu,formattedScore:BH,onScoreChanged:function(Mo){y=Mo},
isEmbeddedInWebview:ol,isSaved:uX,onSaveToggled:function(Mo){cH(Mo)},
isExitMiniAppSeen:V0,isDesktopPlayPage:al})}})}}),_.K("div",{class:nw},_.K(_.e,{cond:lF,
then:function(){return FV()}}),_.K(_.e,{cond:function(){return!D().isEmbeddedInWebview},
then:function(){return jo()}}))))}()},"he");
jRH.idomCompat=!0;_.fT(jRH,"mini-app-container-view-model",{props:{data:_.WX}});var l0F=_.MA(function(V){var D=V.data;return _.K("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.K("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.jl(function(){var f=D().onTap;f&&_.Yt(f)})},_.K(_.e,{cond:function(){return D().icon},
then:function(f){return _.K(_.cj,{icon:function(){return f().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.K("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return D().title})))},"ie");
l0F.idomCompat=!0;var GYF=_.MA(function(V){var D=_.W2("div"),f=_.r(_.HJ(void 0,void 0,"kFCJ0c")),n=f.next().value,t=f.next().value;f=_.r(_.HJ(void 0,void 0,"PIPgWd"));var J=f.next().value,H=f.next().value;f=_.r(_.HJ(void 0,void 0,"rV66ob"));var Q=f.next().value,T=f.next().value,y=function(){var C=n();return C!==void 0?Math.abs(C):void 0},Z=function(){var C=y();
return C===void 0||C<=3},l=function(){var C=y();
var A=J(),O=Q();C=C!==void 0&&A!==void 0&&O!==void 0?A-O-C:void 0;return C===void 0||C<=3},G=function(C){D.value&&D.value.scrollBy({top:0,
left:(_.XB("HTML_DIR")==="rtl"?-1:1)*C*D.value.clientWidth,behavior:"smooth"})},F=function(){var C;
t((C=D.value)==null?void 0:C.scrollLeft);var A;H((A=D.value)==null?void 0:A.scrollWidth);var O;T((O=D.value)==null?void 0:O.clientWidth)},k=function(){G(-.5)},d=function(){G(.5)};
f=_.jl(function(){F()});
_.B9(function(){F();if(D.value){var C=new ResizeObserver(F);C.observe(D.value);_.dc(function(){C.disconnect()})}});
var z={};return _.K("yt-sponsorships-scrollable-shelf",{class:_.KT("ytdSponsorshipsScrollableShelfHost",V.className)},_.K("div",{class:_.KT("ytdSponsorshipsScrollableShelfContent",(z.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return V.data().previousButton&&V.data().nextButton&&!Z()&&!l()},z.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return V.data().previousButton&&!Z()&&l()},z.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return V.data().nextButton&&
Z()&&!l()},z)),
el:D,"on:scroll":f},V.children),_.K(_.e,{cond:function(){return!Z()},
then:function(){return _.K(_.BW,{data:function(){return V.data().previousButton}},{buttonViewModel:function(C){return _.K(_.HO,{data:C.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:k})}})}}),_.K(_.e,{cond:function(){return!l()},
then:function(){return _.K(_.BW,{data:function(){return V.data().nextButton}},{buttonViewModel:function(C){return _.K(_.HO,{data:C.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:d})}})}}))},"je");
GYF.idomCompat=!0;var cQF=_.MA(function(V){var D=V.data;V={};return _.K("yt-sponsorships-hub",{class:_.KT("ytdSponsorshipsHubHost",(V.ytdSponsorshipsHubHostIndented=function(){return D().indented},V))},_.K("div",{class:"ytdSponsorshipsHubHeader"},_.K("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.K("div",{class:"ytdSponsorshipsHubAvatar"},_.K(_.BW,{data:function(){return D().avatar}},{avatarViewModel:_.vd})),_.K(_.e,{cond:function(){return D().badgeImage},
then:function(f){return _.K("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.K("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.K("div",{class:"ytdSponsorshipsHubBadge"},_.K(_.xt,{data:f,targetWidth:24,targetHeight:24,alt:""}))))}})),_.K("div",{class:"ytdSponsorshipsHubDetails"},_.K("div",{class:"ytdSponsorshipsHubTierName"},function(){return D().tierName}),_.K("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return D().membershipType}),_.K("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return D().membershipDurationOrExpiry})),_.K("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.K(_.BW,{data:function(){return D().manageButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.K(_.BW,{data:function(){return D().actionMenuButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.K("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return D().perksTitle}),_.K(GYF,{data:function(){return{previousButton:D().previousPerkButton,
nextButton:D().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.K("div",{class:"ytdSponsorshipsHubPerkCards"},_.K(_.BW,{data:function(){return D().perkCards}},{sponsorshipsHubPerkCardViewModel:l0F}),_.K(_.e,{cond:function(){return D().viewAllPerksButton},
then:function(f){return _.K(efr,{data:f})}}))))},"ke");
cQF.idomCompat=!0;var efr=_.MA(function(V){var D=V.data;return _.K("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.K(_.BW,{data:function(){return D().button}},{buttonViewModel:_.HO}),_.K("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.K("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return D().title}),_.K("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return D().subtitle})))},"le");
efr.idomCompat=!0;_.fT(cQF,"yt-sponsorships-hub",{props:{data:_.WX}});_.FG6=_.MA(function(V){var D=V.data;return _.K("yt-dual-avatar-view-model",{class:_.KT("ytDualAvatarViewModelHost",V.className),style:_.el({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var f;return((f=D().badgeCutoutRadius)!=null?f:14)+"px"}})},_.K("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.K(_.BW,{data:function(){return D().startAvatar}},{avatarViewModel:_.vd}),_.K(_.BW,{data:function(){return D().endAvatar}},{avatarViewModel:_.vd})),_.K(_.BW,{data:function(){return D().badge}},
{contentPreviewImageViewModel:function(f){return _.K("div",{class:"ytDualAvatarViewModelBadge"},_.K(_.h8,{data:f.data}))}}))},"me");
_.FG6.idomCompat=!0;var vap=_.MA(function(V){var D=V.data;var f,n=!((f=_.DY().resolve(_.Vx(_.pm)))==null||!f());V=_.yT(function(){var Z,l,G=n?(Z=D().header)==null?void 0:Z.backgroundColorDarkMode:(l=D().header)==null?void 0:l.backgroundColorLightMode;if(G!==void 0)return _.aB(G)},void 0,"UX2G6c");
f=_.yT(function(){var Z,l;return n?(Z=D().header)==null?void 0:Z.backgroundImagePart1Dark:(l=D().header)==null?void 0:l.backgroundImagePart1Light},void 0,"GPAi1d");
var t=_.yT(function(){var Z,l;return n?(Z=D().header)==null?void 0:Z.backgroundImagePart2Dark:(l=D().header)==null?void 0:l.backgroundImagePart2Light},void 0,"nboJld"),J=_.yT(function(){return _.XB("HTML_DIR")==="rtl"},void 0,"LGJceb"),H=_.W2("yt-sponsorships-perks-list"),Q=!1,T=function(){var Z=H.value;
if(Z&&!Q){var l,G=(l=Z.parentElement)==null?void 0:l.parentElement;if(G)for(Z=Z.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),l=0;l<Z.length;++l){var F=Z[l];if(F instanceof HTMLElement){G.scrollTo({top:F.offsetTop+F.clientHeight/2-G.clientHeight/2,behavior:"smooth"});Q=!0;break}}}};
_.Nl(function(){var Z=H.value;if(Z){var l=new ResizeObserver(T);l.observe(Z);_.dc(function(){l.disconnect()})}});
var y={};return _.K("yt-sponsorships-perks-list",{el:H,class:_.KT("ytdSponsorshipsPerksListHost",(y.ytdSponsorshipsPerksListHorizontalPadding=function(){return D().horizontalPaddingEnabled},y))},_.K("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.K("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.el({"background-color":V})},_.K("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.K(_.e,{cond:f,then:function(Z){var l={};return _.K("div",{class:_.KT((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,l.ytdSponsorshipsPerksListFlipped=J,l))},_.K(_.xt,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.K("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.K(_.e,{cond:t,
then:function(Z){var l={};return _.K("div",{class:_.KT((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,l.ytdSponsorshipsPerksListFlipped=J,l))},_.K(_.xt,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.K("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.K(_.BW,{data:function(){var Z;
return(Z=D().header)==null?void 0:Z.dualAvatar}},{dualAvatarViewModel:_.FG6})))),_.K("div",{class:"ytdSponsorshipsPerksListBody"},_.K("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return D().title}),_.K(_.e,{cond:function(){return D().perks},
then:function(Z){return _.K(_.FB,{each:Z},function(l,G){var F={};return _.K("div",{class:_.KT("ytdSponsorshipsPerksListPerkContainer",(F.ytdSponsorshipsPerksListSelectedPerk=function(){var k=G(),d=D().selectedPerkIndex;return k===d},F))},_.K(_.e,{cond:function(){return G()>0},
then:function(){return _.K("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.K("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.K(_.e,{cond:function(){return l.icon},
then:function(k){return _.K(_.cj,{icon:function(){return k().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.K("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.K("div",{class:"ytdSponsorshipsPerksListPerkTitle"},l.title),_.K("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.K(_.Ow,{text:l.description})),_.K(_.e,{cond:function(){return l.instructions},
then:function(){var k,d;return _.K("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.K("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(k=l.instructions)==null?void 0:k.title),_.K("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.K(_.Ow,{text:(d=l.instructions)==null?void 0:d.text})))}}))),_.K(_.e,{cond:function(){return l.emoji},
then:function(k){return _.K("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.K(_.FB,{each:function(){return k()}},function(d){return _.K(_.xt,{data:d,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.K(gap,{data:l}))})}})))},"ne");
vap.idomCompat=!0;var gap=_.MA(function(V){var D=V.data;var f=function(H,Q){return H===Q},n=function(){var H=D();
H=_.g(H==null?void 0:H.badgesShelf,B0V);return H!==void 0&&H!==null?H:{previousButton:{},nextButton:{}}},t=_.py("div"),J=function(){var H=t.value;
if(H){var Q=H.parentElement;if(Q){H=H.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var T=0;T<H.length;++T){var y=H[T];if(y instanceof HTMLElement){Q.scrollTo({left:y.offsetLeft+y.clientWidth/2-Q.clientWidth/2,behavior:"instant"});break}}}}};
_.Nl(function(){var H=t.value;if(H){var Q=new ResizeObserver(J);Q.observe(H);_.dc(function(){Q.disconnect()})}});
return _.K("div",null,_.K(_.e,{cond:function(){return D().badges},
then:function(H){return _.K(GYF,{data:n},_.K("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:t},_.K(_.FB,{each:function(){return H()}},function(Q,T){var y={},Z={},l={};
return _.K("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.K(_.e,{cond:function(){return T()>0},
then:function(){return _.K("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.K("div",{class:_.KT("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(y.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return f(T(),D().currentBadgeIndex)},y.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!f(T(),D().currentBadgeIndex)},y))},_.K("div",{class:_.KT("ytdSponsorshipsPerksListLoyaltyBadge",(Z.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return f(T(),
D().currentBadgeIndex)},Z.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!f(T(),D().currentBadgeIndex)},Z))},_.K(_.e,{cond:function(){return Q.image},
then:function(G){var F={};return _.K("div",{class:_.KT((F.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return f(T(),D().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!f(T(),D().currentBadgeIndex)},F))},_.K(_.xt,{data:G,
alt:""}))}})),_.K("div",{class:_.KT("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(l.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return f(T(),D().currentBadgeIndex)},l))},Q.title)))})))}}))},"oe");
gap.idomCompat=!0;_.fT(vap,"yt-sponsorships-perks-list",{props:{data:_.WX}});_.fT(_.MA(function(V){return _.K("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.K(_.e,{cond:function(){return V.data().image},
then:function(D){return _.K(_.xt,{className:"ytwFantasyEmptyStateViewModelImage",data:D,ariaHidden:!0,alt:""})}}),_.K(_.Ow,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return V.data().title}}),_.K(_.Ow,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return V.data().subtitle}}),_.K(_.BW,{data:function(){return V.data().primaryButton}},{buttonViewModel:function(D){return _.K(_.HO,{data:D.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"pe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.WX}});var kYV;var GpL=_.eK({buttonRenderer:_.$d});_.V$(epn);_.wk(epn,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var $3=function(){var V=_.E.apply(this,arguments)||this;V.hideJoinButtonBeforeSubscribed=_.c("hide_join_button_before_subscribed");V.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return V};
_.v($3,_.E);_.P=$3.prototype;_.P.hasShowDialogCommand=function(V){return!!_.g(V,RPr)};
_.P.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"}}}};
_.P.updateJoinButtonOverrides=function(){var V,D;(V=_.Pt(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(D=V.polymerController)==null||D.set("overrides",this.joinButtonOverrides);if(V=_.Pt(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))V.overrides=this.joinButtonOverrides};
_.P.handleButtonRefreshAction=function(V){if(V=_.g(V,a1E))this.set("data.membershipButton",V.membershipButton),this.notifyPath("data.membershipButton")};
_.P.onYtServiceRequestError=function(V){_.Uw(this.hostElement,V.detail.error.message)};
_.P.onTap=function(){var V;(V=this.data)!=null&&V.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.P.handleUnsubscribeAction=function(){var V,D,f;((V=this.data)==null?void 0:(D=V.membershipButton)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.style)==="STYLE_PRIMARY"&&_.Pt(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.IG.Object.defineProperties($3.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.subscriptionStateEntity)==null||!V.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.data)==null?void 0:V.membershipButton,f;V=(D==null?void 0:D.buttonRenderer)||_.g(D==null?void 0:(f=D.timedAnimationButtonRenderer)==null?void 0:f.buttonRenderer,_.RI);return(V==null?void 0:V.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(V==null?void 0:V.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(V==null?void 0:V.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var V;if(this.hasShowDialogCommand((V=this.data)==null?void 0:V.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var V;if(this.hasShowDialogCommand((V=this.data)==null?void 0:V.navigationEndpoint))return"button"}}});
$3.prototype.onTap=$3.prototype.onTap;$3.prototype.onYtServiceRequestError=$3.prototype.onYtServiceRequestError;$3.prototype.updateJoinButtonOverrides=$3.prototype.updateJoinButtonOverrides;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],$3.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],$3.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],$3.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dE),_.p("design:type",Object)],$3.prototype,"ironButtonState",void 0);_.S([_.q(),_.p("design:type",Object)],$3.prototype,"data",void 0);
_.S([_.R("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],$3.prototype,"hideJoin",null);_.S([_.q(),_.p("design:type",String)],$3.prototype,"subscribeKey",void 0);_.S([_.q({selectorArgs:["subscribeKey"],selector:RaX}),_.p("design:type",Object)],$3.prototype,"subscriptionStateEntity",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$3.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.S([_.R("subscriptionStateEntity"),_.q({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],$3.prototype,"subscribed",null);_.S([_.R("subscribed","data.membershipButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],$3.prototype,"joinButtonOverrides",null);_.S([_.R("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],$3.prototype,"channelNameTabIndex",null);
_.S([_.R("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],$3.prototype,"channelNameRole",null);_.S([_.KI("joinButtonOverrides"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$3.prototype,"updateJoinButtonOverrides",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$3.prototype,"onYtServiceRequestError",null);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],$3.prototype,"onTap",null);_.S([_.a({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],$3);
var sRE=_.o5()($3,"ytd-video-owner-renderer",function(){if(kYV===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);kYV=V}V=kYV;return V},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.fT(_.MA(function(V){var D=V.data;var f;V=_.r(_.HJ(!((f=_.J5("yt-mini-app-is-theater-mode-enabled"))==null||!f),void 0,"CtFFDf"));var n=V.next().value,t=V.next().value;f=_.r(_.HJ(!1,void 0,"pRgDfb"));var J=f.next().value,H=f.next().value;_.Nl(function(){var y=_.kt(window,U1L,function(){H(D_u())});
_.dc(function(){Fo(y)})});
var Q;f=(Q=_.DY().resolve(_.Vx(MI6)))!=null?Q:function(){return _.K("div",null)};
_.Se("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){t(!0);_.oC("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Se("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){t(!1);_.oC("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
Q={};V={};var T={};return _.K("mini-app-play-page-renderer",{class:_.KT("miniAppPlayPageRendererHost",(Q.miniAppPlayPageRendererHostDetailsView=function(){return!n()},Q))},_.K("div",{class:_.KT("miniAppPlayPageRendererGameContainer",(V.miniAppPlayPageRendererGameContainerDetailsView=function(){return!n()},V))},_.K(_.BW,{data:function(){return D().containerViewModel}},{miniAppContainerViewModel:jRH}),_.K(_.e,{cond:function(){return D().channel&&D().subscribeButton},
then:function(){var y={};return _.K("div",{class:_.KT("miniAppPlayPageRendererChannelContainer",(y.miniAppPlayPageRendererHideVisibility=function(){return J()},y))},_.K(_.BW,{data:function(){return D().channel}},{videoOwnerRenderer:function(Z){return _.K(sRE,{data:Z.data})}}),_.K(_.BW,{data:function(){return D().subscribeButton}},{subscribeButtonViewModel:function(Z){return _.K(_.FH,{data:Z.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.K(_.e,{cond:function(){return!n()&&D().description},
then:function(){var y={};return _.K("div",{class:_.KT("miniAppPlayPageRendererMiniAppDescriptionWrapper",(y.miniAppPlayPageRendererHideVisibility=function(){return J()},y))},_.K("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return D().description}))}})),_.K("div",{class:_.KT("miniAppPlayPageRendererPlayNextContainer",(T.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!n()},T.miniAppPlayPageRendererHideVisibility=function(){return J()},T))},_.K(_.BW,{data:function(){return D().sectionList}},
{sectionListRenderer:f})))},"qe"),"mini-app-play-page-renderer",{props:{data:_.WX}});var is=function(){var V=_.E.apply(this,arguments)||this;V.isSearch=!1;V.isConstrainedList=!1;V.hasChipsBar=!1;V.inReplyPanel=!1;V.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"}};V.monitorScroll=!0;V.SCROLL_ANIMATION_DURATION_MS=300;V.nextContinuation={continuationType:"sectionListContinuation"};return V};
_.v(is,_.E);_.P=is.prototype;
_.P.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(V){switch(V.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},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:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.P.created=function(){var V=this;this.JSC$15032_scrollAnimation=new _.zX(function(D){V.hostElement.scrollTop=D})};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.replacePrimaryContent=function(V){this.set("data.contents",V)};
_.P.computeHasSortFilter=function(V){return!!V&&!!V.sortFilterSubMenuRenderer};
_.P.computeShouldScrollInPanel=function(V){var D;return!!(V==null?0:(D=V.scrollPaneStyle)==null?0:D.scrollable)};
_.P.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.JA(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.P.scrollToTop=function(){this.hostElement.scrollTop=0};
_.P.scrollToItemSection=function(V){if(V=this.getItemByIdentifier(V))V=this.getScrollPositionForItem(V),this.hostElement.scrollTop!==V&&this.JSC$15032_scrollAnimation.start(this.hostElement.scrollTop,V,this.SCROLL_ANIMATION_DURATION_MS)};
_.P.getItemByIdentifier=function(V){var D=this.contents.querySelectorAll("ytd-item-section-renderer");if(D&&D.length!==0){var f=Array.from(D).findIndex(function(n){return n.sectionIdentifier===V});
return D[f===-1?0:f]}};
_.P.getScrollPositionForItem=function(V){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===V)return 0;V=_.R8(V).y+this.hostElement.scrollTop-_.R8(this.hostElement).y;return Math.min(V,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.IG.Object.defineProperties(is.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.targetId)==="browse-feedFEclips"}}});
is.prototype.onScroll=is.prototype.onScroll;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],is.prototype,"ytLazyListBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],is.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.u(_.KUl),_.p("design:type",Object)],is.prototype,"ytBooleanLogicBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],is.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],is.prototype,"data",void 0);_.S([_.q({value:2}),_.p("design:type",Number)],is.prototype,"initialCount",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],is.prototype,"autoFill",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.p("design:type",Boolean)],is.prototype,"hasSortFilter",void 0);_.S([_.q({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.p("design:type",Boolean)],is.prototype,"hideBottomSeparator",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.p("design:type",Boolean)],is.prototype,"shouldScrollInPanel",void 0);
_.S([_.q(),_.p("design:type",Object)],is.prototype,"isSearch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"isConstrainedList",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],is.prototype,"responsiveSizing",void 0);_.S([_.q(),_.p("design:type",Object)],is.prototype,"hasChipsBar",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],is.prototype,"pageSubtype",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],is.prototype,"engagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],is.prototype,"liveChatEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"inReplyPanel",void 0);_.S([_.Zv("#action-button"),_.p("design:type",HTMLElement)],is.prototype,"actionButton",void 0);_.S([_.q(),_.p("design:type",Object)],is.prototype,"scrollUpButtonData",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],is.prototype,"engagementPanelDropdown",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],is.prototype,"engagementPanelDialog",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],is.prototype,"isClipList",null);_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],is.prototype,"monitorScrollElement",void 0);_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],is.prototype,"contents",void 0);
_.S([_.bU("scroll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],is.prototype,"onScroll",null);_.S([_.a({is:"ytd-section-list-renderer",disableElementRegistration:!0})],is);
var BeY=_.o5()(is,"ytd-section-list-renderer",function(){if(xpu===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);xpu=V}V=xpu;return V},{mode:1});var dco;var uJP;var Nep;var mcP;var Sm=function(){return _.E.apply(this,arguments)||this};
_.v(Sm,_.E);Sm.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Sm.prototype.onLikeButtonClick=function(V){V.stopPropagation();V.preventDefault()};
_.IG.Object.defineProperties(Sm.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.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)})}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Sm.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Sm.prototype,"ytRendererStamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sm.prototype,"data",void 0);
_.S([_.q({selectorArgs:["data.likeStatusEntityKey"],selector:qa}),_.p("design:type",Object)],Sm.prototype,"likeStatusEntity",void 0);_.S([_.R("data","likeStatusEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sm.prototype,"likeButtonRenderer",null);_.S([_.a({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Sm);
_.Y(Sm,"ytd-slim-metadata-toggle-button-renderer",function(){if(mcP!==void 0)return mcP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return mcP=V},{mode:1});var WK=function(){var V=_.E.apply(this,arguments)||this;V.minimizePipBreakages=_.c("web_pip_minimize_breakages");V.showEqualizer=_.c("web_enable_playlist_video_lockup_equalizer");V.watchColorUpdate=_.c("kevlar_watch_color_update");V.actionMap={};return V};
_.v(WK,_.E);_.P=WK.prototype;_.P.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"}}}};
_.P.computeEditableClass=function(V){return V&&V.menu?"editable":""};
_.P.computeSelected=function(V){return!(V==null||!V.selected)};
_.P.computeUseColorPalette=function(V){return!!((V==null?0:V.lightColorPalette)&&(V==null?0:V.darkColorPalette))};
_.P.computeLargerPlaylistThumbs=function(V,D){return _.c("web_enable_playlist_bigger_thumbnails")&&!D};
_.P.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.P.onYtServiceRequestSent=function(V,D){D.endpoint&&this.isHideEnclosingAction(D.endpoint)&&!this.selected&&Dh6(_.Eg(),this.data.videoId)};
_.P.isHideEnclosingAction=function(V){var D=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",V);V=this.get("likeEndpoint.status",V)==="INDIFFERENT";return D||V};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.IG.Object.defineProperties(WK.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("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 V;return!!(this.withinMiniplayer&&((V=this.data)==null?0:V.actionButtons))}}});
WK.prototype.onYtServiceRequestSent=WK.prototype.onYtServiceRequestSent;WK.prototype.canReorderChanged=WK.prototype.canReorderChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.E_),_.p("design:type",Object)],WK.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WK.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"withinMiniplayer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WK.prototype,"minimizePipBreakages",void 0);_.S([_.q({computed:"computeSelected(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"selected",void 0);
_.S([_.q({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"useColorPalette",void 0);_.S([_.q({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"largerPlaylistThumbs",void 0);_.S([_.q(),_.p("design:type",Object)],WK.prototype,"showEqualizer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"canReorder",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"touchPersistentDragHandle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],WK.prototype,"handleIsHovered",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WK.prototype,"watchColorUpdate",void 0);_.S([_.q(),_.p("design:type",String),_.p("design:paramtypes",[])],WK.prototype,"reorderIcon",null);
_.S([_.R("largerPlaylistThumbs"),_.p("design:type",Number),_.p("design:paramtypes",[])],WK.prototype,"thumbnailWidth",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],WK.prototype,"showActionButtons",null);_.S([_.eY("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WK.prototype,"canReorderChanged",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],WK.prototype,"onYtServiceRequestSent",null);_.S([_.a({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],WK);
_.Y(WK,"ytd-playlist-panel-video-renderer",function(){if(Nep!==void 0)return Nep;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Nep=V},{mode:2});var pj=function(){return _.E.apply(this,arguments)||this};
_.v(pj,_.E);pj.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pj.prototype,"data",void 0);_.S([_.a({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],pj);
_.Y(pj,"ytd-playlist-panel-supported-items",function(){if(uJP!==void 0)return uJP;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return uJP=
V},{mode:1});VLl=!0;ZTE("\\P{N}");var cpx;var zfr=_.Zl("END_OF_PLAYLIST",void 0,"End of playlist"),Rfl=_.Zl("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Lj=function(){var V=_.E.apply(this,arguments)||this;V.minimizePipBreakages=_.c("web_pip_minimize_breakages");V.updatedCoursePanel=_.c("move_three_dot_menu_to_playlist_panel_header_for_courses");V.hideHeaderText=!1;V.useColorPalette=!1;V.collapsed=!1;V.collapsedPreServerOverride="not_tracked";V.isHovered=!1;V.modernPanels=_.c("kevlar_watch_modern_panels");
V.expandLabel=_.Zl("MINIPLAYER_EXPAND_LABEL");V.collapseLabel=_.Zl("MINIPLAYER_COLLAPSE_LABEL");V.isFloating=!1;V.metaPanel=!1;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};V.currentIndex=void 0;return V};
_.v(Lj,_.E);_.P=Lj.prototype;
_.P.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"}}}};
_.P.created=function(){this.scrollThrottle=new _.I7(this.onThrottledScroll,1E3,this)};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.computeOverflowMenuData=function(V){return V&&V.menu?V.menu:null};
_.P.computeCollapsible=function(V){return!V};
_.P.computeHasPlaylistButtons=function(V){return!(!V||!V.playlistButtons)};
_.P.computeHasSeparateSaveButton=function(V){return!(!V||!V.saveButton)};
_.P.computeHasToolbarButton=function(V,D){return!(!V||!(D||V.saveButton||V.menu))};
_.P.computePlaylistType=function(V){if(V&&V.playlistId)return V.playlistId.substring(0,4)};
_.P.computeCanReorder=function(V){return V?V.playlistId&&V.playlistId.startsWith("TLPQ")?!0:!!V.isEditable&&!V.isInfinite:!1};
_.P.attached=function(){var V=this;try{_.DY().resolve(_.zI).setPlaylistComponent(this.hostElement)}catch(D){if(_.c("kevlar_park_on_playlist_token_killswitch"))throw D;_.C_().parkOrScheduleJob(function(){_.DY().resolve(_.zI).setPlaylistComponent(V.hostElement)},2,"ci")}_.Dl(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.P.detached=function(){_.f6(this.hostElement)};
_.P.computeTrailingIcon=function(V,D,f){return f?D?"yt-icons:collapse":"yt-icons:close":D?"yt-icons:expand":_.c("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.P.computeIndexMessage=function(V,D){return v_Z(V+1)+" / "+v_Z(D)};
_.P.onRenderStamperFinished=function(){if(this.scrollForStampDom){var V=!0;this.isHovered&&(V=!1);if(this.collapsed||this.hidden)V=!1;V&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.P.collapseChanged=function(){var V=this;this.collapsed||(_.sw(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.P.hiddenChanged=function(){var V=this;this.hidden||_.sw(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.scrollToCurrentVideo()})};
_.P.setupReordering=function(){var V=_.Pt(this.hostElement).querySelector("#items");zkE?_.vSo(this.ytReorderableBehavior,V,V,"playlist-drag-handle"):_.vSo(this.ytReorderableBehavior,V,V)};
_.P.scrollToCurrentVideo=function(){var V=this;_.dm.addJob(function(){var D=_.Pt(V.hostElement).querySelector("#items");if(D){D.style.setProperty("padding-bottom","");var f=_.Pt(V.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(f){D=f.parentElement||_.cN(document);var n=D||_.cN(document);var t=_.R8(f),J=_.R8(n),H=_.mLp(n);if(n==_.cN(document)){var Q=t.x-n.scrollLeft;t=t.y-n.scrollTop}else Q=t.x-J.x-H.left,t=t.y-J.y-H.top;f=BPY(f);J=n.clientHeight-
f.height;H=n.scrollLeft;var T=n.scrollTop;H+=Q-(n.clientWidth-f.width)/2;n=new _.uB(H,T+(t-J/2));D.scrollLeft=n.x;D.scrollTop=n.y}}},8)};
_.P.dataChanged=function(){var V=this;_.gSu(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.pO(this,function(){_.gq(V.ytTaskEmitterBehavior.getTaskManager(),function(){V.ytRendererBehavior.markDirty();V.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.P.onFullBleedPlayerChanged=function(){_.c("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.onFullscreenChanged=function(){_.c("web_watch_imax_theater_mode")||_.c("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.updateNowPlayingOverlay=function(){_.c("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.P.onPlaylistLockupNowPlaying=function(V,D){D&&(this.activeNowPlayingRenderer=D);this.updateNowPlayingOverlay()};
_.P.onScroll=function(){this.scrollThrottle.fire()};
_.P.onThrottledScroll=function(){var V=this;_.gq(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.ytRendererBehavior.markDirty()})};
_.P.onToggleExpanded=function(V){!this.collapsible||V&&(_.x7(V).tagName==="A"||_.It(_.Os(V),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.P.setCollapsed=function(V){this.collapsible&&(this.collapsed=V,_.JR(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.P.handleCollapsedFromData=function(V){if(V){var D=V.playlistPanelCollapseState;D==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||D==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),D=D==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==D&&this.setCollapsed(D)):this.currentPlaylistId!==V.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(D=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==D&&this.setCollapsed(D),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=V.playlistId}};
_.P.handleDrop=function(V){var D=V.currDragItem;V=D.data.playlistSetVideoId;var f=_.$F(D.parentNode.childNodes,D),n=void 0;f>0&&(n=D.parentNode.childNodes[f-1].data.playlistSetVideoId);D=_.Eg();if(D.responsePlaylistData&&D.responsePlaylistData.contents){var t=DdX(V,D.responsePlaylistData);D.responsePlaylistData=(0,_.sB.unsafeClone)(D.responsePlaylistData);gFZ(D.responsePlaylistData.contents,t,f);D.queueProxy?NDY(D.queueProxy,t,f,V,n):D.playlistProxy&&NDY(D.playlistProxy,t,f,V,n);_.A6(D,_.aj(D,D.response?
D.response.autoplayRenderer:void 0))}};
_.P.handleDarkModeChange=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
_.P.colorPaletteChanged=function(){var V,D=((V=this.data)==null?void 0:V.contents)||[],f;V=_.r(D);for(D=V.next();!D.done;D=V.next()){D=D.value;var n=void 0;if((n=D.playlistPanelVideoRenderer)==null?0:n.selected){V=D.playlistPanelVideoRenderer;n=D=void 0;(f=this.isDarkTheme?(D=V)==null?void 0:D.darkColorPalette:(n=V)==null?void 0:n.lightColorPalette)&&_.Na(this.hostElement,f);break}}this.useColorPalette=!!f};
_.IG.Object.defineProperties(Lj.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.playlistId)&&!((D=this.data)==null||!D.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var V=_.DY().resolve(_.Vx(_.zI)),D;if(((D=this.data)==null?0:D.contents)&&(V==null?0:V.hasAutoplayData())){var f;if(((f=this.playlistLoopStateEntity)==null?void 0:f.state)==="PLAYLIST_LOOP_STATE_ONE"){if(V=this.data.currentIndex,V!==void 0){var n,t;var J=(n=this.data.contents[V])==null?void 0:(t=n.playlistPanelVideoRenderer)==null?void 0:t.title}}else{var H,Q=(H=_.g(V.getAutoplayEndpoint(),_.pl))==null?void 0:H.videoId,T,y;J=(T=this.data.contents.find(function(Z){var l;
return((l=Z.playlistPanelVideoRenderer)==null?void 0:l.videoId)===Q}))==null?void 0:(y=T.playlistPanelVideoRenderer)==null?void 0:y.title}return J}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)!=null&&V.nextVideoLabel?this.nextVideoTitle?_.LA(this.data.nextVideoLabel)+":":zfr:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.data)==null?0:V.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.c("web_mix_long_byline_from_data"))return _.pA(Rfl);var D;return(D=this.data)==null?void 0:D.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.playlistButtons)==null?void 0:(f=D.menuRenderer)==null?void 0:f.topLevelButtons;if(n)for(V=_.r(n),D=V.next();!D.done;D=V.next())if(D=D.value,D.playlistLoopButtonRenderer)return D.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var V;return!!(this.collapsed&&((V=this.data)==null?0:V.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Lj.prototype.colorPaletteChanged=Lj.prototype.colorPaletteChanged;Lj.prototype.onPlaylistLockupNowPlaying=Lj.prototype.onPlaylistLockupNowPlaying;Lj.prototype.updateNowPlayingOverlay=Lj.prototype.updateNowPlayingOverlay;Lj.prototype.onFullscreenChanged=Lj.prototype.onFullscreenChanged;Lj.prototype.onFullBleedPlayerChanged=Lj.prototype.onFullBleedPlayerChanged;Lj.prototype.dataChanged=Lj.prototype.dataChanged;Lj.prototype.hiddenChanged=Lj.prototype.hiddenChanged;Lj.prototype.collapseChanged=Lj.prototype.collapseChanged;
Lj.prototype.onRenderStamperFinished=Lj.prototype.onRenderStamperFinished;Lj.prototype.onMouseLeave=Lj.prototype.onMouseLeave;Lj.prototype.onMouseEnter=Lj.prototype.onMouseEnter;_.S([_.u(_.sp),_.p("design:type",Object)],Lj.prototype,"ironResizableBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(cSp.YtPlaylistPanelBehavior),_.p("design:type",Object)],Lj.prototype,"ytPlaylistPanelBehavior",void 0);_.S([_.u(_.xm.YtTaskEmitterBehavior),_.p("design:type",Object)],Lj.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.u(_.kdE),_.p("design:type",Object)],Lj.prototype,"ytReorderableBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Lj.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"autoplayData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Lj.prototype,"withinMiniplayer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"minimizePipBreakages",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"updatedCoursePanel",void 0);_.S([_.q({computed:"setMenuData_(data)"}),_.p("design:type",Object)],Lj.prototype,"menuRendererData",void 0);_.S([_.q({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],Lj.prototype,"overflowMenuDataTopRow",void 0);_.S([_.q({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],Lj.prototype,"overflowMenuData",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"hideHeaderText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"useColorPalette",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.p("design:type",Boolean)],Lj.prototype,"collapsible",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"collapsed",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Lj.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.p("design:type",Boolean)],Lj.prototype,"hasPlaylistButtons",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.p("design:type",Boolean)],Lj.prototype,"hasSeparateSaveButton",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.p("design:type",Boolean)],Lj.prototype,"hasToolbar",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.p("design:type",String)],Lj.prototype,"playlistType",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"isHovered",void 0);_.S([_.q({selectorArgs:["playlistLoopStateEntityKey"],selector:_.a_Y}),_.p("design:type",Object)],Lj.prototype,"playlistLoopStateEntity",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"modernPanels",void 0);_.S([_.q({value:56}),_.p("design:type",Number)],Lj.prototype,"scrollMargin",void 0);_.S([_.q({computed:"computeCanReorder(data)"}),_.p("design:type",Boolean)],Lj.prototype,"canReorder",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"expandLabel",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"collapseLabel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"isFloating",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Lj.prototype,"metaPanel",void 0);_.S([_.q({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.p("design:type",String)],Lj.prototype,"trailingIcon",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Lj.prototype,"isDarkTheme",void 0);
_.S([_.q({selector:_.mq}),_.p("design:type",Boolean)],Lj.prototype,"miniplayerIsActive",void 0);_.S([_.q({selector:function(V){return V.watch.playerState}}),
_.p("design:type",Number)],Lj.prototype,"playerState",void 0);_.S([_.q({selector:_.Ns}),_.p("design:type",Boolean)],Lj.prototype,"isFullscreen",void 0);_.S([_.q({selector:_.uf}),_.p("design:type",Boolean)],Lj.prototype,"isTheaterMode",void 0);_.S([_.q(),_.p("design:type",Object)],Lj.prototype,"activeNowPlayingRenderer",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lj.prototype,"moveThreeDotMenuToTopRow",null);
_.S([_.R("data","autoplayData","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lj.prototype,"nextVideoTitle",null);_.S([_.R("data","nextVideoTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],Lj.prototype,"nextVideoLabel",null);_.S([_.R("collapsed"),_.p("design:type",String),_.p("design:paramtypes",[])],Lj.prototype,"buttonAriaLabel",null);
_.S([_.R("data","playlistId","longBylineText"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lj.prototype,"mixLongByLine",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Lj.prototype,"playlistLoopStateEntityKey",null);_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"onMouseEnter",null);
_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"onMouseLeave",null);_.S([_.q({reflectToAttribute:!0}),_.R("data","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lj.prototype,"showNextVideoHeader",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"onRenderStamperFinished",null);
_.S([_.KI("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"collapseChanged",null);_.S([_.KI("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"hiddenChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"dataChanged",null);
_.S([_.R("isTheaterMode","isFullscreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Lj.prototype,"isFullBleedPlayer",null);_.S([_.KI("isTheaterMode","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"onFullBleedPlayerChanged",null);_.S([_.KI("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"onFullscreenChanged",null);
_.S([_.KI("playerState","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"updateNowPlayingOverlay",null);_.S([_.bU("yt-playlist-lockup-now-playing-active"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Lj.prototype,"onPlaylistLockupNowPlaying",null);
_.S([_.KI("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lj.prototype,"colorPaletteChanged",null);_.S([_.a({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Lj);
_.CmL=_.o5()(Lj,"ytd-playlist-panel-renderer",function(){if(dco===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);dco=V}V=dco;return V},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var qFL;var IJ=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework");return V};
_.v(IJ,_.E);IJ.prototype.computeShouldButtonBeVertical=function(V,D){return V||D};
IJ.prototype.onYtServiceRequestSent=function(V,D){(V=_.g(D.endpoint,_.$V))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.y1("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:V.status})):this.handleLikeEndpoint(V))};
IJ.prototype.computelikeStatusEntityKey=function(V){return V==null?void 0:V.likeStatusEntityKey};
IJ.prototype.handleLikeEndpoint=function(V){V.status==="LIKE"?this.JSC$15057_ytdDislikeToggleButtonRenderer.toggle(!1):V.status==="DISLIKE"?this.JSC$15057_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15057_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15057_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.IG.Object.defineProperties(IJ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var V;return dKL(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(V=this.likeStatusEntity)==null?void 0:V.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var V;if(this.data&&((V=this.data)==null||!V.hideDislikeButton)){var D;return dKL(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}}}});
IJ.prototype.onYtServiceRequestSent=IJ.prototype.onYtServiceRequestSent;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],IJ.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],IJ.prototype,"vertical",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],IJ.prototype,"textTransform",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],IJ.prototype,"useShortsIcon",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],IJ.prototype,"underIconLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IJ.prototype,"modern",void 0);_.S([_.q({value:"left"}),_.p("design:type",String)],IJ.prototype,"buttonTooltipPosition",void 0);
_.S([_.q(),_.p("design:type",Object)],IJ.prototype,"overrides",void 0);_.S([_.Zv("#like-button"),_.p("design:type",Object)],IJ.prototype,"JSC$15057_ytdLikeToggleButtonRenderer",void 0);_.S([_.Zv("#dislike-button"),_.p("design:type",Object)],IJ.prototype,"JSC$15057_ytdDislikeToggleButtonRenderer",void 0);_.S([_.R("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],IJ.prototype,"likeButton",null);
_.S([_.R("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],IJ.prototype,"dislikeButton",null);_.S([_.q({computed:"computelikeStatusEntityKey(data)"}),_.p("design:type",String)],IJ.prototype,"likeStatusEntityKey",void 0);_.S([_.q({selectorArgs:["likeStatusEntityKey"],selector:qa}),_.p("design:type",Object)],IJ.prototype,"likeStatusEntity",void 0);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],IJ.prototype,"onYtServiceRequestSent",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],IJ);
var XFo=_.o5()(IJ,"ytd-like-button-renderer",function(){if(qFL===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);qFL=V}V=qFL;return V},{mode:1});_.Eao={};
_.Eao.YtConditionalRendererBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(V,D){var f=this,n,t;return _.w(function(J){switch(J.nextAddress){case 1:if(!D)return f.hidden=!0,f.showSpinner=!1,J.return();if((n=V)==null?0:(t=n.visibilityCondition)==null?0:t.mode)switch(V.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return J.jumpTo(5);default:return J.jumpTo(6)}f.showSpinner=
!1;f.hidden=!0;return _.b(J,f.shouldShow_(V),4);case 4:f.hidden=!J.yieldResult;J.jumpTo(0);break;case 5:return _.b(J,f.shouldShow_(V),8);case 8:f.showSpinner=J.yieldResult;f.hidden=!1;J.jumpTo(0);break;case 6:return f.showSpinner=!1,_.b(J,f.shouldShow_(V),9);case 9:f.hidden=!J.yieldResult,_.yz(J)}})},
shouldShow_:function(V){return V&&V.supportedDatas&&V.supportedDatas.rendererVisibilityConditionData&&V.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(V.supportedDatas.rendererVisibilityConditionData.showIf):V&&V.visibilityCondition&&V.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(V.visibilityCondition.showIf):V&&V.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(V.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(V){switch(V){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(V){switch(V){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var V=_.o4(this.hostElement,"yt-get-mdx-status");return V.length==1&&V[0].connected},
isLocationPermissionGranted_:function(){var V;return _.w(function(D){return D.nextAddress==1?navigator.permissions?_.b(D,navigator.permissions.query({name:"geolocation"}),3):D.jumpTo(2):D.nextAddress!=2?(V=D.yieldResult,D.return(Promise.resolve(V.state==="granted"))):D.return(Promise.resolve(!1))})}}];var AQr=function(V,D){D=D===void 0?{}:D;var f=function(n){var t=document.createElement(V),J;var H=(J=t.polymerController)!=null?J:t;McY(t,H,n,D);return t};
f.debugName=V+" (CoW wrapped)";return f}("yt-icon"),a0u=_.c("web_bypass_polymer_yt_icon")&&_.c("kevlar_use_wil_icons")?_.MA(function(V){var D=V.icon;
var f=V.active;var n=V.className;var t=V.style;var J=V.dataSelected;var H=V.dataDisabled;var Q=V.role;var T=V.themeOverride;var y=V.animateIcon;var Z=V.ariaHidden;var l=V.ariaExpanded;var G=V.ariaLabel;var F=V.tabindex;var k=V.id;var d=V.iconFilter;var z=function(){var O=D==null?void 0:D(),W=null,I=void 0;O&&(O=zEU(O),O=suY(O),O.length&&(W=O[1],I=O[0]));return{iconName:W,iconSetName:I}},C=function(){return REr(z().iconName,f==null?void 0:f(),void 0,void 0,z().iconSetName,_.DY().resolve(_.TK))},A=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:d==null?void 0:d()}};
return _.K(_.e,{cond:y,then:function(){return _.K(AQr,{icon:D,active:f,className:n,style:t,dataSelected:J,dataDisabled:H,role:Q,themeOverride:T,ariaHidden:Z,ariaExpanded:l,ariaLabel:G,tabindex:F,id:k,iconFilter:d})},
else:function(){return _.K(_.e,{cond:C,then:function(O){return _.K("span",{class:_.KT("ytIconWrapperHost",n),role:Q,"aria-label":G,"aria-hidden":Z,tabindex:function(){return isNaN(Number(F==null?void 0:F()))?void 0:Number(F==null?void 0:F())},
id:k,style:t},_.K(Ojc,{data:O,options:A}))}})}})},"re"):AQr;var YFE=function(V){var D=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];ORR();_.M4("ytglobal.ytUtilActivityCallback_",function(){_.JR(V,"yt-user-activity")});
new hB(function(){return D.JSC$15072_onMouseMove});
document.addEventListener("scroll",function(){return D.onScroll});
window.addEventListener("resize",function(){return D.onResize})},$c6=function(V,D,f){D in V.eventJobIds||(f=_.kv().addLowPriorityJob(function(){_.Ui();
delete V.eventJobIds[D]},f),V.eventJobIds[D]=f)};
YFE.prototype.onScroll=function(V){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):V.target===document&&$c6(this,"scroll",200)};
YFE.prototype.onResize=function(){$c6(this,"resize",200)};
YFE.prototype.JSC$15072_onMouseMove=function(){$c6(this,"mousemove",100)};
_.LE=function(V){V.scrollEventsToIgnore+=1;V.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){V.scrollEventsToIgnore--},500))};var iVp=function(V){this.element=V;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
iVp.prototype.showFeedbackDialog=function(V,D,f,n){var t=SFF();if(!t)return!1;var J=aGZ();J.productId=t;D&&(J.flow="submit",J.report={description:D});f&&(SFF()==="59"?J.callback=_.a9(function(){_.dq("userFeedbackEvent",{});f()}):J.callback=_.a9(f));
J.bucket=n||_.XB("GOOGLE_FEEDBACK_BUCKET","Other");WGr(J);V=pFr(this,"GFEEDBACK",V);try{_.dwo(J,V)}catch(H){return _.Ah(H),!1}return!0};
iVp.prototype.showHelpDialog=function(V,D,f){var n=this,t=SFF();if(!t)return!1;var J={helpCenterPath:"/youtube",productData:pFr(this,"GUIDED_HELP",f)};WGr(J);var H=aGZ();H.context=V||J.productData.context||"default";H.defaultHelpArticleId=D;H.enableSendFeedback=!0;(_.Yw("gapi.load")||function(Q,T){return T()})("client",function(){try{var Q=wll(t,J);
if(_.c("web_always_load_chat_support")&&!n.chatSupportLoaded)try{Q.JSC$8066_loadChatSupport(H),n.chatSupportLoaded=!0}catch(T){}Q.startHelp(H)}catch(T){_.Ah(T)}})};
var SFF=function(){var V=_.XB("GOOGLE_FEEDBACK_PRODUCT_ID");V||_.Ah(Error("ii"));return V},WGr=function(V){V&&(V.locale=_.c("kevlar_help_use_locale")?_.XB("INNERTUBE_CONTEXT_HL","en"):_.XB("HTML_LANG","en"))},pFr=function(V,D,f){var n=V.productData;
delete n.origin;n.device=_.jR();var t;a:{if(t=document.createElement("canvas")){var J=t.getContext("experimental-webgl",{stencil:!0});if(J){var H=J.getExtension("WEBGL_debug_renderer_info");if(H){t=J.getParameter(H.UNMASKED_RENDERER_WEBGL);break a}}if(J=t.getContext("webgl")){t=J.getParameter(J.RENDERER);break a}}t=null}n.gpu=t;n.isSDC=!!_.XB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(t=_.XB("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.sB.extend(n,t);_.E_R(D,n);_.ApY(n);(V=_.JR(V.element,"yt-get-autonav-pause-debug-state"))&&
V.length&&(n.autonav_pause_state=V[0]);V=_.Ki();n.browser_resolution=V.width+"\u00d7"+V.height+"@"+(window.devicePixelRatio||1)+"x";f&&_.sB.extend(n,f);return n};
iVp.prototype.resetProductData=function(){this.productData={}};var LGF=function(V){this.feedbackManager=new iVp(V)};
LGF.prototype.showFeedbackDialog=function(V,D,f,n){return this.feedbackManager.showFeedbackDialog(V,D,f,n)};
LGF.prototype.showHelpDialog=function(V,D,f){return this.feedbackManager.showHelpDialog(V,D,f)};var I0E=function(){this.baseUrl="";this.aTag=document.createElement("a")},dBF=function(V,D,f){f=f===void 0?{}:f;
f.pbj||(f.pbj=1);f=_.RqF(D,f);V.baseUrl&&f&&!_.OG(f)[1]&&!_.xw(f)&&(D=V.baseUrl,Jc(D,"/")&&(D=D.slice(0,-1)),_.tc(f,"/")&&(f=f.slice(1)),f=D+"/"+f);se(V.aTag,G6(f||""));return V.aTag.href};
I0E.prototype.fetchData=function(V){return _.mK9(V)};
I0E.prototype.postData=function(V,D){var f={method:"POST"};if(D){for(var n=_.r(Object.keys(D)),t=n.next();!t.done;t=n.next()){t=t.value;var J=D[t];_.VV(J)&&(D[t]=JSON.stringify(J))}f.postParams=D}return _.mK9(V,f)};
_.uGU=function(V,D,f,n,t){V=dBF(V,D,f);if(!V)throw n=Error("ji"),Object.assign(n,{params:D}),n;return _.mK9(V,t,n)};
I0E.prototype.requestDataForServiceEndpoint=function(V,D){if(_.g(V,_.BLn))return this.fetchData("/getAccountSwitcherEndpoint");D=D||{};var f=_.g(V,f8l);f?D.se=f.base64EncodedServiceEndpoint:D.sej=JSON.stringify(V);(f=_.Ni())&&_.c("enable_service_ajax_csn")&&(D.csn=f);D.theme=_.dU();_.g(V,kc9)&&_.XB("DELEGATION_CONTEXT")&&(D.delegation_context=JSON.stringify(_.XB("DELEGATION_CONTEXT")));f=null;for(var n in V)if(Jc(n,"Endpoint")||Jc(n,"Command")){f=n;break}if(!f){var t=Error("ki");Object.assign(t,{params:V});
_.NsL(t,"WARNING");return new _.Qf(function(H,Q){Q(t)})}n={name:f};
var J;(f=(J=_.g(V,_.K6))==null?void 0:J.signal)&&(n.signal=f);(J=_.pZ(window.location.href))&&J.internalcountrycode&&(n.internalcountrycode=J.internalcountrycode);J="/service_ajax";_.c("debug_forward_web_query_parameters")&&(J=_.Win(J,window.location.search));J=_.I9(J,n);V.clickTrackingParams&&_.xo(J,{itct:V.clickTrackingParams});return this.postData(J,D)};_.OV6=new _.IH("GFEEDBACK_TOKEN");var xcU;var MjH;var hfl;var Ucr;var OU=function(){var V=_.E.apply(this,arguments)||this;V.compact=!1;return V};
_.v(OU,_.E);OU.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OU.prototype.computeHasIcon_=function(V){return!!V};
OU.prototype.isSignInIcon_=function(V){return V=="yt-icons:prompted_sign_in"};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Eao.YtConditionalRendererBehavior),_.p("design:type",Object)],OU.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OU.prototype,"data",void 0);
_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],OU.prototype,"icon_",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.p("design:type",Boolean)],OU.prototype,"hasIcon_",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.p("design:type",Boolean)],OU.prototype,"signInIcon_",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OU.prototype,"compact",void 0);
_.S([_.zy({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],OU);
_.Y(OU,"yt-player-error-message-renderer",function(){if(Ucr===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;hfl===void 0&&(hfl=document.createElement("template"));var n=hfl;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Ucr=V}V=Ucr;return V},{mode:2});var VAY;var Dtl;var x3=function(){return _.E.apply(this,arguments)||this};
_.v(x3,_.E);x3.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x3.prototype.computeIcon_=function(V){return V?"yt-icons:"+V.iconType.toLowerCase():"error_outline"};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],x3.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],x3.prototype,"icon_",void 0);_.S([_.zy({is:"yt-player-kav-renderer",disableElementRegistration:!0})],x3);
_.Y(x3,"yt-player-kav-renderer",function(){if(Dtl===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;VAY===void 0&&(VAY=document.createElement("template"));var n=VAY;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Dtl=V}V=Dtl;return V},{mode:2});_.fT(_.MA(function(V){var D=_.W2("div"),f=_.r(_.HJ(0,void 0,"gCmSbf")),n=f.next().value,t=f.next().value;f=_.r(_.HJ(null,void 0,"Rj9zMe"));var J=f.next().value,H=f.next().value;_.Nl(function(){iBX(D.value,t,H);D.value.scrollIntoView()});
f=SVZ.bind(null,V.data,n);xb("resize",function(){var Q=J();if(n()===1&&Q!==null){var T;(T=window.grecaptcha)==null||T.reset(Q)}});
return _.K("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.K("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.K("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var Q,T;return(Q=V.data().accessibility)==null?void 0:(T=Q.accessibilityData)==null?void 0:T.label}),_.K(_.Ow,{text:f,
className:_.KT("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.K("div",{el:D,class:"ytwPlayerCaptchaViewModelGridItem"})))},"se"),"yt-player-captcha-view-model",{props:{data:_.Dn}});var Wnd=!1;_.fLl=_.MA(function(V){var D=V.data;return _.K("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.K(_.e,{cond:function(){return D().icon},
then:function(f){return _.K("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.K(_.xt,{data:f,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.K(_.e,{cond:function(){return D().title},
then:function(f){return _.K("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.K(_.Ow,{text:f}))}}),_.K(_.e,{cond:function(){return D().description},
then:function(f){return _.K("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.K(_.Ow,{text:f}))}}),_.K(_.BW,{data:function(){return D().primaryButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.K(_.BW,{data:function(){return D().secondaryButton}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"te");
_.fLl.idomCompat=!0;var nH6=_.MA(function(V){var D=V.data;_.LL();return _.K("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.K("div",{class:"player-interstitial-renderer-wiz__scrim"},_.K(_.BW,{data:function(){return D().content}},{interstitialViewModel:_.fLl})))},"ue");
nH6.idomCompat=!0;_.fT(nH6,"yt-player-interstitial-renderer",{props:{data:_.WX}});var MB=function(){var V=_.E.apply(this,arguments)||this;V.noBackground=!1;V.compact=!1;V.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return V};
_.v(MB,_.E);MB.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"}}}};
MB.prototype.onUpdatePlayerErrorMessageCommand_=function(V){if(_.g(V,Tor)){var D;if(V=(D=_.g(V,Tor))==null?void 0:D.newPlayerErrorMessageRenderer)this.data=V}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],MB.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MB.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],MB.prototype,"status",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MB.prototype,"noBackground",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MB.prototype,"compact",void 0);_.S([_.zy({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],MB);
var tAl=_.o5()(MB,"yt-playability-error-supported-renderers",function(){if(MjH===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;xcU===void 0&&(xcU=document.createElement("template"));var n=xcU;f.call(D,n.content.cloneNode(!0),V.content.firstChild);MjH=V}V=MjH;return V},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var psZ=void 0,IGd=void 0;var MiU=new OWo;var P_r=function(V){this.store=V;this.cew=new _.hBY},shn=function(V,D,f){var n,t;
if(!(t=((n=D.playabilityStatus)==null?void 0:n.status)!=="OK")){V=V.store;var J;t=D.offlineState&&((J=D.videoDetails)==null?0:J.videoId)?_.c("enable_pl_r_c_cd")?Va3(V.getState().entities,D.videoDetails.videoId):!!ttd(V.getState().entities,D.videoDetails.videoId):!1}if(t)return!0;t=fzY(D);if(t===1){if(_.c("ab_v_vid_sig")){var H,Q=(H=D.videoDetails)==null?void 0:H.videoId;if(!Q||!f||Q!==f){var T;D=new _.cI("282054944_vid",{wPS:f,dsx:(T=D.videoDetails)==null?void 0:T.videoId});_.NG(D)}}return!0}XX9=
0;var y,Z;T=(Q=D.auxiliaryUi)==null?void 0:(y=Q.messageRenderers)==null?void 0:(Z=y.bkaEnforcementMessageViewModel)==null?void 0:Z.displayType;if(t!==3&&(T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;T={reason:_.Vc(_.Zl("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.c("ks_something_wrong_learn_more")?jyL("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Vc(_.Zl("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:_.Vc("282054944")};oHH(D,{playerErrorMessageRenderer:T});return!1},Byc=function(V,D){if(VH3(D)){_.KR(1,!0);
var f=(f=VH3(D))&&_.LnU()?f:void 0;f?(oHH(D,{enforcementMessageViewModel:f}),V.cew.increment("IN_PLAYER"),_.KR(5)):(V.cew.increment("SKIP_DISPLAY"),_.KR(2))}},oHH=function(V,D){V.playabilityStatus=Object.assign({},V.playabilityStatus,{status:"ERROR",
errorScreen:D});V.videoDetails=void 0};
P_r.prototype.handleResponse=function(V,D){if(V.playabilityStatus){var f,n,t,J=(D==null?void 0:(f=D.innerTubeRequest)==null?void 0:f.videoId)||(D==null?void 0:(n=D.innerTubeRequest)==null?void 0:(t=n.playerRequest)==null?void 0:t.videoId);shn(this,V,J)&&Byc(this,V)}};
P_r[L$]=[Jx];var vz3=new _.IH("ADBLOCK_DETECTION_SERVICE_TOKEN");var MR=function(V){this.jpZ=V};
MR.prototype.bindInnertubeChallengeFetcher=function(V){this.jpZ.bicf(V)};
MR.prototype.registerChallengeFetchedCallback=function(V){this.jpZ.bcr(V)};
MR.prototype.getLatestChallengeResponse=function(){return this.jpZ.blc()};var wLE;_.hM=function(V,D,f){var n=this;this.network=V;this.options=D;this.networkStatusManager=f;this.zs=null;if(D.useBotguardEverywhere){var t=new _.wU;this.zs=t.promise;_.fx.ytAtRC&&_.lf(_.dm,function(){var J,H;return _.w(function(Q){if(Q.nextAddress==1){if(!_.fx.ytAtRC)return Q.return();J=JHP(null);return _.b(Q,n.oz(J),2)}H=Q.yieldResult;_.fx.ytAtRC&&_.fx.ytAtRC(JSON.stringify(H));_.yz(Q)})});
Jm3().then(function(J){var H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return J.bindInnertubeChallengeFetcher(function(l){return n.oz(JHP(l))}),_.b(Z,NX9(),2);
H=Z.yieldResult;Q=J.getLatestChallengeResponse();T=Q.challenge;if(!T)throw Error("li");y={challenge:T,kh:xV(T),ku:H,bgChallenge:new Im};t.resolve(y);J.registerChallengeFetchedCallback(function(l){l=l.challenge;if(!l)throw Error("mi");l={challenge:l,kh:xV(l),ku:H,bgChallenge:new Im};n.zs=Promise.resolve(l)});
_.yz(Z)})})}else D.preload&&rHr(this,new Promise(function(J){_.gq(_.dm,function(){J(HqF(n))},0)}))};
wLE=function(V){var D={preload:!0,useBotguardEverywhere:!0},f=!1;if(typeof D==="boolean")var n={preload:D};else typeof D==="undefined"?n={preload:!0}:(n=D,f=!!D.j88);D=f?void 0:new _.ik;_.hM.instance=new _.hM(V,n,D);return _.hM.instance};
_.hM.prototype.g55=function(){var V=this;return _.w(function(D){return D.nextAddress==1?_.b(D,Promise.race([V.zs,null]),2):D.return(!!D.yieldResult)})};
_.hM.prototype.nPJ=function(V,D,f){var n=this,t,J,H;return _.w(function(Q){n.zs===null&&rHr(n,HqF(n));t=!1;J={};H=function(){var T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:return _.b(l,n.zs,2);case 2:T=l.yieldResult;J.challenge=T.challenge;if(!T.ku){"c1a"in T.kh&&(J.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");l.jumpTo(3);break}y=Object.assign({},{c:T.challenge,e:V},D);_.wx(l,4);t=!0;return _.b(l,T.ku.snapshot({yv:y}),6);case 6:(Z=l.yieldResult)?J.webResponse=Z:J.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.YJ(l,3);break;case 4:_.KW(l),J.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(V==="ENGAGEMENT_TYPE_PLAYBACK"){var G=T.kh,F={};if(G.c6a){var k=Number(_.XB("DCLKSTAT",0));F.reportingStatus=String(Number(G.c)^(isNaN(k)?0:k))}G.c6b&&(F.broadSpectrumDetectionResult=String(Number(G.c)^Number(_.XB("CATSTAT",0))));J.adblockReporting=F}return l.return(J)}})};
return Q.return(Promise.race([H(),Qol(f,function(){var T=Object.assign({},J);t&&(T.error="ATTESTATION_ERROR_VM_TIMEOUT");return T})]))})};
var JHP=function(V){var D={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};V&&(D.interpreterHash=V);return D},HqF=function(V,D){D=D===void 0?0:D;
var f,n,t,J,H,Q,T,y,Z,l,G,F;return _.w(function(k){switch(k.nextAddress){case 1:f=JHP(hDF().pj8);if(_.c("att_fet_ks"))return _.wx(k,7),_.b(k,V.oz(f),9);_.wx(k,4);return _.b(k,T4p(V,f),6);case 6:H=k.yieldResult;t=H.c8J;J=H.lcF;n=H;_.YJ(k,3);break;case 4:return _.KW(k),_.zP(Error("ni`"+D)),bqE(V,864E5),k.return({challenge:"",kh:{},ku:void 0,bgChallenge:void 0});case 9:n=k.yieldResult;if(!n)throw Error("oi");if(!n.challenge)throw Error("pi");t=n.challenge;J=xV(t);if("c1a"in J&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("qi");
_.YJ(k,3);break;case 7:Q=_.KW(k);_.zP(Q);D++;if(D>=5)return _.zP(Error("ni`"+D)),bqE(V,864E5),k.return({challenge:"",kh:{},ku:void 0,bgChallenge:void 0});T=1E3*Math.pow(2,D-1)+Math.random()*1E3;return k.return(new Promise(function(d){_.gq(_.dm,function(){d(HqF(V,D))},T)}));
case 3:y=oQF(J);bqE(V,y*1E3);Z=void 0;if(!("c1a"in J&&n.bgChallenge)){k.jumpTo(10);break}l=PDU(n.bgChallenge);_.wx(k,11);return _.b(k,V5F(hDF(),l),13);case 13:_.YJ(k,12);break;case 11:return G=_.KW(k),_.zP(G),k.return({challenge:t,kh:J,ku:Z,bgChallenge:l});case 12:return _.wx(k,14),Z=new _.uG({challenge:l,yZS:{w7:"aGIf"}}),_.b(k,Z.dLZ,16);case 16:_.YJ(k,10);break;case 14:F=_.KW(k),_.zP(F),Z=void 0;case 10:return k.return({challenge:t,kh:J,ku:Z,bgChallenge:l})}})};
_.hM.prototype.oz=function(V){var D=this,f;return _.w(function(n){f=D.networkStatusManager;if(!f||f.isNetworkAvailable())return n.return(D.network.oz(V));_.C6("att_pna",void 0,"attestation_challenge_fetch");return n.return(new Promise(function(t){f.listenOnce("publicytnetworkstatus-online",function(){D.network.oz(V).then(t)})}))})};
var KQp=function(V){if(!V)throw Error("oi");if(!V.challenge)throw Error("pi");var D=V.challenge,f=xV(D);if("c1a"in f&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("qi");return Object.assign({},V,{c8J:D,lcF:f})},T4p=function(V,D){var f,n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:f=void 0,n=0,t={};case 2:if(!(n<5)){Q.jumpTo(4);break}if(!(n>0)){Q.jumpTo(5);break}t.pEn=1E3*Math.pow(2,n-1)+Math.random()*1E3;return _.b(Q,new Promise(function(T){return function(y){_.gq(_.dm,function(){y(void 0)},T.pEn)}}(t)),5);
case 5:return _.wx(Q,7),_.b(Q,V.oz(D),9);case 9:return J=Q.yieldResult,Q.return(KQp(J));case 7:f=H=_.KW(Q),H instanceof Error&&_.zP(H);case 8:n++;t={pEn:void 0};Q.jumpTo(2);break;case 4:throw f;}})},rHr=function(V,D){V.zs=D},yHP=function(V){var D,f,n;
return _.w(function(t){if(t.nextAddress==1)return _.b(t,Promise.race([V.zs,null]),2);D=t.yieldResult;var J=HqF(V);V.zs=J;(f=D)==null||(n=f.ku)==null||n.dispose();_.yz(t)})},bqE=function(V,D){var f=Date.now()+D,n=function(){var t;
return _.w(function(J){t=f-Date.now();return t<1E3?_.b(J,yHP(V),0):(_.gq(_.dm,n,Math.min(t,6E4)),J.jumpTo(0))})};
n()},Qol=function(V,D){return new Promise(function(f){_.gq(_.dm,function(){f(D())},V)})};var ZqY=function(){};
ZqY.prototype.processContext=function(V){var D=_.hM.instance;if(!D)return _.i7();var f=bsx(V);return f?new $B(D.nPJ(f,w0L(V),500).then(function(n){var t;(V==null?0:(t=V.innerTubeRequest)==null?0:t.context)||(V.innerTubeRequest.context={});t=V.innerTubeRequest.context;t.request||(t.request={});t.request.attestationResponseData=n})):_.i7()};var jor=function(V){this.innertubeTransportService=V};
jor.prototype.oz=function(V){_.C6("att_fsr",void 0,"attestation_challenge_fetch");return _.m5(this.innertubeTransportService,V,_.xy(_.Kpr)).then(function(D){_.C6("att_frr",void 0,"attestation_challenge_fetch");return D})};_.lLF=function(V){this.innertubeTransportService=V};var GWU=new _.IH("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var eel=function(){},FQU=function(V,D,f,n,t){var J=_.XB("YPC_MB_URL");
_.Osc(J).then(function(){cHV(J,V,D,f,n,t)})},cHV=function(V,D,f,n,t,J){try{var H=payments.business.integration,Q=payments.business.integration.Style.create().withMaterialDesignStyle(),T=H.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.c("enable_window_constrained_buy_flow_dialog")&&(T=T.usingPopupStyle("windowConstrained"));J&&(T=T.usingCloseCallback(J));var y=f?f:_.XB("YPC_GB_LANGUAGE"),Z=_.XB("SESSION_INDEX");H.bootstrap.fromPaymentsUrl(V);H.bootstrap.asMashupMode(T).usingGaiaIndex(Z).usingLocale(y).usingStyle(Q).usingDefaultActivityStatusChangeHandler().inStandaloneContext(H.standaloneContextAuthId.forGaia()).purchaseManager(D,function(l){n&&n(l)}).load(void 0,t)}catch(l){throw t&&t(l),_.NG(l),l;
}};var gHo=new _.IH("PURCHASE_MANAGER_TOKEN");var vHU=function(){var V=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return V.videos},
getContinuationsPresent:function(){return V.continuationsPresent},
setVideos:function(D){V.videos=D},
getRecommendedVideos:function(){return V.recommendedVideos},
setRecommendedVideos:function(D){V.recommendedVideos=D}}};
vHU.prototype.addVideos=function(V){V&&(this.videos=V.filter(function(D){return!!_.ymU(D)}).map(function(D){var f=_.ymU(D);
a:{var n;if(D.playlistVideoRenderer&&((n=D.playlistVideoRenderer)==null?0:n.voteSortTiebreaker))var t=D.playlistVideoRenderer.voteSortTiebreaker;else{if(_.g(D,U1)){var J;if(n=(t=_.g(D,U1))==null?void 0:(J=t.playlistItemData)==null?void 0:J.voteSortTiebreaker){t=n;break a}}t=""}}return{itemId:f,videoId:_.lzL(D),voteCount:_.Gxx(D),voteSortTiebreaker:t}}),this.continuationsPresent=!!_.g(V[V.length-1],_.fY))};
var kWF=function(V,D){return V.videos.findIndex(function(f){return f.itemId===D})},soU=function(V,D){return V.recommendedVideos.findIndex(function(f){return f.itemId===D})},B4E=function(V){V={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:V}}}}};_.DY().resolve(_.fH).resolveCommand(V)};var dtF=function(){vHU.apply(this,arguments)};
_.v(dtF,vHU);
var T9u=function(V,D,f,n){if(!V.parentElem)throw Error("vi");var t=kWF(V,D);t===-1&&(t=soU(V,D),t=t!==-1?t+V.videos.length:-1);if(t===-1)throw Error("wi");var J=t>=V.videos.length?V.recommendedVideos[t-V.videos.length]:V.videos[t];J.voteCount=f;J.voteSortTiebreaker=Date.now().toString();t>=V.videos.length?V.recommendedVideos.splice(t-V.videos.length,1):V.videos.splice(t,1);var H=V.videos;for(var Q=0,T=H.length-1;Q<=T;){var y=Math.floor((Q+T)/2);if(H[y].voteCount<J.voteCount)T=y-1;else if(H[y].voteCount>J.voteCount)Q=
y+1;else{a:{var Z=J.voteSortTiebreaker;var l=H[y].voteSortTiebreaker;if(Z.length!==l.length)Z=Z.length>l.length;else{for(var G=0;G<Z.length;G++){var F=Z.charCodeAt(G),k=l.charCodeAt(G);if(F>k){Z=!0;break a}if(F<k)break}Z=!1}}Z?T=y-1:Q=y+1}}H=Q;if(H===-1)throw Error("xi");V.videos.splice(H,0,J);t!==H&&ull(V,t,H,D,f,n)},ull=function(V,D,f,n,t,J){var H,Q=(H=V.parentElem)==null?void 0:H.children,T=Math.min(D,f),y=Math.max(D,f);
if(Q)for(H=T;H<=y;H++)Q[H].style.viewTransitionName="item-"+String(H);document.startViewTransition(function(){if(V.parentElem){var Z=V.parentElem.children;if(!(!Z||D<0||D>=Z.length||f<0||f>=Z.length)){var l=Z[D];if(l){l.remove();V.showRefreshPill=f>=V.videos.length-1&&V.continuationsPresent;if(!V.showRefreshPill){Z=Z[f]||null;var G;(G=V.parentElem)==null||G.insertBefore(l,Z)}_.PA(V.parentElem,"yt-update-video-data-voting-animation",{toIdx:f,itemId:n,newVoteCount:t,voteStatus:J,hideItem:V.showRefreshPill})}}}}).finished.then(function(){if(Q)for(var Z=
T;Z<=y;Z++)Q[Z].style.viewTransitionName="";
if(V.showRefreshPill)B4E(_.Zl("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var l;if(l=Z=(l=V.parentElem)==null?void 0:l.children[f])l=Z.getBoundingClientRect(),Z=l.bottom,l=!(l.top>=0&&Z<=V.clientHeight);l&&(l=_.jJ(D>f?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(D-f)),B4E(l))}})};var ze6=function(V,D){var f=this;V?this.innertubeTransportServicePromise=Promise.resolve(V):D&&(this.innertubeTransportServicePromise=D(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new XG(3E3,function(n){return N4F(f,n)},0);
this.validateMiniAppVideoIdRateLimiter=new XG(3E3,function(n){return mt6(f,n)},1)},TeU=function(V,D){V.JSC$15184_miniAppId=D;
V.reportMiniAppValueRateLimiter=new XG(3E3,function(f){return N4F(V,f)},0);
V.validateMiniAppVideoIdRateLimiter=new XG(3E3,function(f){return mt6(V,f)},1)},KGo=function(V,D){var f;
return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.reportMiniAppValueRateLimiter.call(D),2);f=n.yieldResult;return n.return([f,D])})},N4F=function(V,D){var f,n,t,J,H,Q,T;
return _.w(function(y){switch(y.nextAddress){case 1:return _.b(y,V.innertubeTransportServicePromise,2);case 2:return f=y.yieldResult,n=_.xy(egF),t=Date.now(),J={externalPostId:V.JSC$15184_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(t/1E3),nanos:Math.round(t%1E3*1E6)},intValue:""+D}},_.wx(y,3),_.b(y,_.m5(f,J,n),5);case 5:H=y.yieldResult;_.YJ(y,4);break;case 3:throw Q=_.KW(y),Q;case 4:if(H){if("error"in H&&H.error)throw H.error;if(H.errorMetadata)throw Error("yi`"+
H.errorMetadata.status);if(T=H.userStatResult)return y.return(T);throw Error("zi");}throw Error("Ai");}})},ZVr=function(V){var D,f,n,t,J;
_.w(function(H){switch(H.nextAddress){case 1:return _.b(H,V.innertubeTransportServicePromise,2);case 2:return D=H.yieldResult,f=_.xy(egF),n={externalPostId:V.JSC$15184_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.wx(H,3),_.b(H,_.m5(D,n,f),5);case 5:t=H.yieldResult;_.YJ(H,4);break;case 3:throw J=_.KW(H),J;case 4:if(t==null)throw Error("Ai");if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("yi`"+t.errorMetadata.status);_.yz(H)}})};
ze6.prototype.flush=function(){var V=this;return _.w(function(D){return D.nextAddress==1?_.b(D,V.reportMiniAppValueRateLimiter.flush(),2):_.b(D,V.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var yQF=function(V,D){return _.w(function(f){return f.nextAddress==1?_.b(f,V.validateMiniAppVideoIdRateLimiter.call(D),2):f.return(f.yieldResult)})},mt6=function(V,D){var f,n,t,J,H,Q;
return _.w(function(T){switch(T.nextAddress){case 1:return _.b(T,V.innertubeTransportServicePromise,2);case 2:return f=T.yieldResult,n=_.xy(TMl),t={videoId:D},_.wx(T,3),_.b(T,_.m5(f,t,n),5);case 5:J=T.yieldResult;_.YJ(T,4);break;case 3:throw H=_.KW(T),H;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("yi`"+J.errorMetadata.status);if(Q=J.playabilityStatus)return T.return(Q.status);throw Error("Bi");}throw Error("Ai");}})};
ze6[L$]=[_.Vx(_.CR),_.Vx(pgl)];var ReF=function(){this.clientData=new Map};
ReF.prototype.getData=function(V){return this.clientData.get(V)};var C_F=function(V){this.store=V};
C_F.prototype.handleResponse=function(V){(V=_.g(V.frameworkUpdates,pT))&&_.yc(V,this.store)};
C_F[L$]=[_.C1];var qZo=new _.IH("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var XLY={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var EHF=new _.IH("ICON_SET_TOKEN"),AHY=new _.IH("ICON_URL_PROVIDER_TOKEN"),aLY=new _.IH("PREFETCH_ICONS_TOKEN"),YZF=new _.IH("ICON_MAP_FN_TOKEN");var UU={},$tl=(UU.ACCESS_TIME="clock",UU.ACCOUNT_BOX="person_account",UU.ACCOUNT_BOX_CAIRO="person_account_cairo",UU.ACCOUNT_CIRCLE="person_circle",UU.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",UU.ACCOUNT_LINKED="account_link_success",UU.ACCOUNT_UNLINKED="account_link",UU.ADD_FRIEND="people",UU.ADD_MODERATOR="shield_add",UU.ADD_TO_LIBRARY="bookmark",UU.ADD_TO_PLAYLIST="add",UU.ADD_TO_QUEUE_TAIL="list_queue",UU.ADD_TO_REMOTE_QUEUE="list_music",UU.ADD_TO_WATCH_LATER="clock",UU.ADD_VIDEO_LINK="film_strip_add",
UU.ALERT_WARN_RED="alert_triangle",UU.ARROW_BACK="arrow_left",UU.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",UU.ARROW_DROP_DOWN="chevron_down",UU.ARROW_DROP_UP="chevron_up",UU.ARROW_FORWARD="arrow_right",UU.AUDIOTRACK="audio",UU.AUTO_AWESOME="sparkle",UU.AVATAR_ANONYMOUS="person_circle",UU.AVATAR_LOGGED_OUT="person_circle",UU.BACK="arrow_left",UU.BAR_CHART="bar_graph",UU.BLOCK="slash_circle_left",UU.BLOCK_USER="slash_circle_left",UU.BOOKMARK_BORDER="bookmark",UU.BREAKING_NEWS_ALT_1="article_alert",
UU.BROADCAST_CAIRO="podcast_cairo",UU.BUG_REPORT="bug",UU.CAMERA_ALT="camera",UU.CAMPAIGN="megaphone",UU.CANCEL="x_circle",UU.CAPTIONS="closed_caption",UU.CAST_OUTLINE="chromecast",UU.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",UU.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",UU.CHAT="message_bubble_left",UU.CHAT_BUBBLE="message_bubble_empty",UU.CHAT_SPARK="spark_message_bubble_left",UU.CHECK_BOX_OUTLINE_BLANK="box_empty",UU.CHECK_CIRCLE_OUTLINE="check_circle",UU.CHECK_CIRCLE_THICK="check_circle",UU.CLARIFY=
"article_clarify",UU.CLOSED_CAPTION_SELECTED="closed_caption",UU.CLOSE="x_mark",UU.CLOUD_UPLOAD="cloud_arrow_up",UU.COLLAPSE="chevron_up",UU.COLLAPSE_CAIRO="chevron_up_cairo",UU.COLLECTION="layers",UU.COLOR_LENS="palette",UU.COMMENT="message_bubble_right",UU.CONSENT_SHIELD="person_shield",UU.CONTENT_CUT="scissors",UU.CONTENT_CUT_CAIRO="scissors_cairo",UU.COURSE=_.c("web_enable_course_icon_update")?"creator_academy":"lightbulb",UU.COURSE_CAIRO=_.c("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",UU.CREATION_LIVE="radar_live",UU.CREATION_POST="box_pencil",UU.CREATION_UPLOAD="my_videos",UU.CREATION_UPLOAD_RED="upload",UU.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",UU.CREATOR_STUDIO="youtube_studio",UU.DASHBOARD="grid_asymmetrical",UU.DELETE="trash_can",UU.DELETE_SWEEP="trash_can",UU.DESKTOP="laptop",UU.DISLIKE="thumb_down",UU.DISLIKE_SELECTED="thumb_down",UU.DISMISSAL="x_mark",UU.DISMISS_QUEUE="list_remove",UU.DONE_ALL="check_double",UU.DOWN_ARROW="arrow_down",UU.DO_NOT_DISTURB=
"slash_circle_left",UU.DRAFT="paper_corner_folded",UU.DRAG_HANDLE="bars_2",UU.EDIT="pencil",UU.EMOJI="face_very_happy",UU.EMOJI_FLAGS="flag",UU.EMOJI_OBJECTS="lightbulb",UU.EMOJI_PEOPLE="face_very_happy",UU.EMOJI_RECENT="clock",UU.EMPTY_HEART="heart",UU.EMPTY_LIKE="thumb_up",UU.ERROR_BLACK="alert_circle",UU.ERROR_OUTLINE="alert_circle",UU.EXIT_APP="arrow_in",UU.EXIT_TO_APP="arrow_in",UU.EXPAND="chevron_down",UU.EXPAND_ALL="chevron_expand",UU.EXPAND_CAIRO="chevron_down_cairo",UU.EXPAND_LESS="chevron_up",
UU.EXPAND_MORE="chevron_down",UU.EXPLORE="compass",UU.EXPLORE_DESTINATION="compass",UU.EXTERNAL_LINK="open_new",UU.FAB_UPLOAD="upload",UU.FACE_HAPPY_OUTLINE="face_happy",UU.FACT_CHECK="article_check",UU.FASHION_LOGO="fashion",UU.FASHION_LOGO_CAIRO="fashion_cairo",UU.FAVORITE="heart",UU.FEEDBACK="message_bubble_alert",UU.FEEDBACK_CAIRO="message_bubble_alert_cairo",UU.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",UU.FILL_ARROW_SOLID_UP_16="arrow_solid_up",UU.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
UU.FILTER="menu_filter",UU.FIRST_PAGE="chevron_first",UU.FLAG="flag",UU.FULL_HEART="heart",UU.GAME_CONSOLE_DPAD="game_console_dpad",UU.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",UU.GAMING_LOGO="gaming",UU.GAMING_LOGO_CAIRO="gaming_cairo",UU.GO_TO_PAGE="arrow_right",UU.GROUPS="people_group",UU.HAPPY="face_happy",UU.HEALTH_AND_SAFETY="shield_plus",UU.HELP="question_circle",UU.HELP_CAIRO="question_circle_cairo",UU.HELP_OUTLINE="question_circle",UU.HIDE="slash_circle_left",UU.IMAGE="image",
UU.INFINITY_ICON="infinity",UU.INFO="info_circle",UU.INFO_OUTLINE="info_circle",UU.INSERT_CHART_OUTLINED="bar_graph_box_vertical",UU.INSERT_PHOTO="image",UU.KEEP="pin",UU.KEEP_OFF="pin_off",UU.KEYBOARD="keyboard",UU.KEYBOARD_ARROW_DOWN="chevron_down",UU.KEYBOARD_ARROW_UP="chevron_up",UU.KIDS_BLOCK="slash_circle_left",UU.LANGUAGE="globe",UU.LAST_PAGE="chevron_last",UU.LAUNCH="open_new",UU.LEARNING="lightbulb",UU.LEARNING_CAIRO="lightbulb_cairo",UU.LIBRARY_ADD="bookmark",UU.LIBRARY_OUTLINE="library",
UU.LIBRARY_REMOVE="bookmark",UU.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",UU.LIKES_PLAYLIST="thumb_up",UU.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",UU.LIKE="thumb_up",UU.LIKE_SELECTED="thumb_up",UU.LIVE="radar_live",UU.LIVE_CAIRO="radar_live_cairo",UU.LIVE_UNLISTED="link",UU.LOCATION_ON="location_point",UU.LOCATION_PIN="location_point",UU.LOOP="arrow_repeat",UU.LOOP_ACTIVE="arrow_repeat",UU.LOOP_ONE="arrow_repeat_1",UU.LOOP_ONE_ACTIVE="arrow_repeat_1",UU.MEH="face_meh",UU.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
UU.MESSAGE="message_bubble_left",UU.MICROPHONE_ON="mic",UU.MIX="youtube_mix",UU.MONETIZATION_ON="dollar_sign_circle",UU.MONEY_FILL="dollar_sign_container",UU.MONEY_FILL_JPY="yen_sign_container",UU.MONEY_HEART="dollar_sign_heart",UU.MORE_HORIZ="overflow_horizontal",UU.MORE_VERT="overflow_vertical",UU.MUSIC="audio",UU.MUSIC_CAIRO="audio_cairo",UU.MUSIC_NOTE_SYMBOL="music",UU.MUSIC_SHUFFLE="arrow_shuffle",UU.MY_CHANNEL="person_circle",UU.MY_LOCATION="location_point",UU.NEWS_STORY="news",UU.NEXT="chevron_right",
UU.NOTIFICATIONS="bell",UU.NOTIFICATIONS_ACTIVE="bell_on",UU.NOTIFICATIONS_CAIRO="bell_cairo",UU.NOTIFICATIONS_DONE_CHECKMARK="check",UU.NOTIFICATIONS_INBOX="bell",UU.NOTIFICATIONS_NONE="bell",UU.NOTIFICATIONS_OFF="bell_off",UU.NOT_INTERESTED="slash_circle_left",UU.OFFICIAL_ARTIST_BADGE="audio",UU.OFFLINE_CLOUD="cloud_off",UU.OFFLINE_DOWNLOAD="download",UU.OFFLINE_DOWNLOAD_CAIRO="download_cairo",UU.OFFLINE_PAUSE="pause",UU.OPEN_IN_NEW="open_new",UU.OUTLINE_ADJUST="adjust",UU.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",UU.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",UU.OUTLINE_BAG="bag",UU.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",UU.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",UU.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",UU.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",UU.PAID="dollar_sign",UU.PAUSE_OUTLINED="pause",UU.PAYMENT="credit_card",UU.PERSON_RADAR_FILLED="person_radar",UU.PHONE_DOWNLOAD="mobile_download",UU.PLAYABLES_LOGO="tic_tac_toe",UU.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
UU.PLAYLISTS="list_play_arrow",UU.PLAYLISTS_CAIRO="list_play_arrow_cairo",UU.PLAYLIST_ADD="bookmark",UU.PLAYLIST_ADD_CHECK="bookmark",UU.PLAYLIST_PLAY="list_play_arrow",UU.PLAY_ALL="play_arrow",UU.PLAY_CIRCLE="play_arrow_circle",UU.PLAY_OUTLINED="play_arrow_circle",UU.PRIVACY_INFO="shield",UU.PRIVACY_PRIVATE="lock",UU.PRIVACY_PUBLIC="earth",UU.PRIVACY_UNLISTED="link",UU.PROMOTE="megaphone",UU.PURCHASES="price_tag",UU.PURCHASE_SUPER_CHAT="super_chat",UU.PURCHASE_SUPER_STICKER="super_sticker",UU.QUESTION_ANSWER=
"message_bubble_question",UU.QUEUE_PLAY_LAST="list_queue_last",UU.QUEUE_PLAY_NEXT="list_play_arrow",UU.REMIX_FILLED="youtube_shorts_remix",UU.REMOVE="bar_circle",UU.REMOVE_CIRCLE="bar_circle",UU.REMOVE_CIRCLE_OUTLINE="bar_circle",UU.REMOVE_DONE="check_double_off",UU.REMOVE_FROM_HISTORY="bar_circle",UU.REMOVE_FROM_PLAYLIST="bar_circle",UU.REMOVE_MODERATOR="shield_off",UU.REPLAY="arrow_circle",UU.REPLAY_10="skip_back_10",UU.REPORT_PROBLEM="alert_triangle",UU.SAD="face_sad",UU.SAVE_PLAYLIST="bookmark",
UU.SCHEDULE="clock",UU.SCHOOL="creator_academy",UU.SCREEN_FULLSCREEN="screen_full",UU.SEARCH_HISTORY="arrow_time",UU.SELL="price_tag",UU.SETTINGS="gear",UU.SETTINGS_CAIRO="gear_cairo",UU.SETTINGS_LIGHT="gear",UU.SETTINGS_MATERIAL="gear",UU.SHARE_ARROW="share",UU.SHIELD_WITH_AVATAR="person_shield",UU.SHOPPING_BAG="bag",UU.SHOPPING_BAG_CAIRO="bag_cairo",UU.SHOPPING_CART="cart",UU.SHORTS_COMMENT="youtube_shorts_message_bubble_right",UU.SHORTS_DISLIKE="youtube_shorts_thumb_down",UU.SHORTS_LIKE="youtube_shorts_thumb_up",
UU.SHORTS_SHARE="youtube_shorts_share",UU.SHUFFLE="arrow_shuffle",UU.SLOW_MODE_OFF="message_bubble_left",UU.SOCIAL="people",UU.SORT="menu_sort",UU.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",UU.SPEED_1X="1x",UU.SPEED_1_POINT_2X="1_point_2x",UU.SPEED_1_POINT_5X="1_point_5x",UU.SPEED_1_POINT_8X="1_point_8x",UU.SPEED_2X="2x",UU.SPEED_POINT_2X="point_2x",UU.SPEED_POINT_8X="point_8x",UU.SPONSORSHIP_STAR=_.c("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",UU.STAFF_PICK="spotlight",UU.START_DVR=
"add",UU.STAR_BORDER="star",UU.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",UU.STICKER_EMOTICON="face_happy",UU.STOP_DVR="stop",UU.SUBSCRIBE="youtube_logo_icon",UU.SUBSCRIBE_PLUS="add_cairo",UU.SUBSCRIPTION_MANAGER="gear",UU.SUPERVISOR_ACCOUNT="people",UU.SUPER_CHAT_FOR_GOOD="hands_heart",UU.SWAP_HORIZ="arrow_swap_horizontal",UU.SWITCH_ACCOUNTS="person_account",UU.TAB_ACCOUNT="person",UU.TAB_ACTIVITY="bell",UU.TAB_BOOKMARK="bookmark",UU.TAB_EXPLORE="compass",UU.TAB_HOME="home",UU.TAB_HOME_CAIRO=
"home_cairo",UU.TAB_INBOX="mail",UU.TAB_LIKED="thumb_up",UU.TAB_MUSIC_PREMIUM="youtube_music",UU.TAB_SHORTS="youtube_shorts",UU.TAB_SHORTS_CAIRO="youtube_shorts_cairo",UU.TAB_SUBSCRIPTIONS="subscriptions",UU.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",UU.TAB_TRENDING="fire",UU.TIMER="stopwatch",UU.TRAILER="youtube_originals",UU.TRENDING="fire",UU.TRENDING_CAIRO="fire_cairo",UU.TRENDING_UP="rating_up",UU.TROPHY="trophy",UU.TROPHY_CELEBRATIONS="fireworks",UU.TUNE="adjust",UU.UNBLOCK_USER="bar_circle",
UU.UNLIMITED="youtube_logo_icon",UU.UNPLUGGED_LIVE_GUIDE="radar_live",UU.UNPLUGGED_SPORTS="eye_off",UU.UPLOADS="library",UU.UP_ARROW="arrow_up",UU.VERTICAL_ALIGN_BOTTOM="download",UU.VERY_HAPPY="face_very_happy",UU.VERY_SAD="face_very_sad",UU.VIDEOGAME_ASSET="gaming",UU.VIDEOS="play_arrow_circle",UU.VIDEO_CALL="video_camera_add",UU.VIDEO_LIBRARY_WHITE="library",UU.VIDEO_YOUTUBE="youtube_logo_icon",UU.VIEW_LIST="list_view",UU.VIEW_LIST_CAIRO="list_view_cairo",UU.VISIBILITY="eye",UU.VISIBILITY_OFF=
"eye_off",UU.VOLUME_MUTE="volume_off",UU.VOLUME_UP="volume_on",UU.WALLPAPER="image",UU.WARNING="alert_triangle",UU.WATCH_HISTORY="arrow_time",UU.WATCH_HISTORY_CAIRO="arrow_time_cairo",UU.WATCH_LATER="clock",UU.WATCH_LATER_CAIRO="clock_cairo",UU.WATCH_RELATED_MIX="youtube_mix",UU.WHAT_TO_WATCH="home",UU.YOUTUBE_MUSIC_MONOCHROME="youtube_music",UU.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",UU.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",UU.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",UU.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",UU.YT_OUTLINE_MUSIC_24="music",UU);var VA={},iqo=(VA.ACCESS_TIME="clock",VA.ACCOUNT_BOX="person_square",VA.ACCOUNT_BOX_CAIRO="person_square",VA.ACCOUNT_CIRCLE="person_circle",VA.ACCOUNT_CIRCLE_CAIRO="person_circle",VA.ACCOUNT_LINKED="account_link",VA.ACCOUNT_UNLINKED="account_link",VA.ADD_CIRCLE="add_circle",VA.ADD_FRIEND="person_child",VA.ADD_TO_LIBRARY="bookmark",VA.ADD_TO_PLAYLIST="add",VA.ADD_TO_QUEUE_TAIL="queue",VA.ADD_TO_REMOTE_QUEUE="playlist_audio",VA.ADD_TO_WATCH_LATER="clock",VA.ADD_VIDEO_LINK="film_strip_add",VA.ADMIN_PANEL_SETTINGS=
"person_gear",VA.ALERT_WARN_RED="alert_triangle",VA.ALIGN_LEFT="text_align_left",VA.ARROWS_ALERT="arrow_split_alert",VA.ARROW_BACK="arrow_left",VA.ARROW_CIRCLE="arrow_counterclockwise",VA.ARROW_CIRCLE_PLAY="replay",VA.ARROW_CIRCLE_RIGHT="arrow_clockwise",VA.ARROW_DIAGONAL="arrow_up_left",VA.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",VA.ARROW_DROP_DOWN="triangle_down",VA.ARROW_DROP_UP="triangle_up",VA.ARROW_FORWARD="arrow_right",VA.ARROW_PAUSE="pause_history",VA.ARROW_UNDO="undo",VA.ARTICLE="text_page",
VA.ARTICLE_ALERT="text_page_alert",VA.ARTICLE_CHECK="text_page_check",VA.ARTICLE_CLARIFY="text_page_info",VA.AUDIOTRACK="audio",VA.AUDIO_BADGE="audio_badge",VA.AUDIO_SURROUND="surround_sound",VA.AVATAR_ANONYMOUS="person_circle",VA.AVATAR_LOGGED_OUT="person_circle",VA.BACK="arrow_left",VA.BAR_CHART="chart_bar",VA.BAR_CIRCLE="minus_circle",VA.BAR_HORIZONTAL="minus",VA.BLOCK="circle_slash",VA.BLOCK_USER="circle_slash",VA.BOOKMARK_BORDER="bookmark",VA.BOX_OPEN_CHECK="quiz",VA.BOX_PENCIL="square_pencil",
VA.BREAKING_NEWS_ALT_1="text_page_alert",VA.BROADCAST="podcast",VA.BROADCAST_CAIRO="podcast",VA.BUG_REPORT="bug",VA.CAMERA_ALT="camera",VA.CAMPAIGN="megaphone",VA.CANCEL="x_circle",VA.CAPTIONS="closed_captions",VA.CAST_ICON="chromecast",VA.CAST_OUTLINE="chromecast",VA.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",VA.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",VA.CHAT="text_bubble",VA.CHAT_BUBBLE="bubble",VA.CHECK_BOX="check_square",VA.CHECK_BOX_OUTLINE_BLANK="square",VA.CHECK_CIRCLE_FILLED="check_circle",
VA.CHECK_CIRCLE_OUTLINE="check_circle",VA.CHECK_CIRCLE_THICK="check_circle",VA.CHECK_DOUBLE="check_done",VA.CHECK_DOUBLE_OFF="check_done_slash",VA.CHEVRON_LEFT="chevron_left",VA.CHEVRON_RIGHT="chevron_right",VA.CHEVRON_RIGHT_CAIRO="chevron_right",VA.CIRCLES_OVERLAP="account_link",VA.CLAPPERBOARD_CAIRO="clapperboard",VA.CLARIFY="text_page_info",VA.CLOCK_ARROWS="clock_split",VA.CLOCK_ARROWS_ALERT="clock_split_alert",VA.CLOSED_CAPTION="closed_captions",VA.CLOSED_CAPTION_SELECTED="closed_captions",VA.CLOSE=
"x",VA.CLOUD_UPLOAD="cloud_arrow_up",VA.COLLAPSE="chevron_up",VA.COLLAPSE_CAIRO="chevron_up",VA.COLLECTION="square3d_stack",VA.COLOR_LENS="paint_palette",VA.COMMENT="text_bubble",VA.CONSENT_SHIELD="person_shield",VA.CONTENT_CUT="scissors",VA.CONTENT_CUT_CAIRO="scissors",VA.COURSE="graduation_cap",VA.COURSE_CAIRO="graduation_cap",VA.CREATION_LIVE="live",VA.CREATION_POST="square_pencil",VA.CREATION_UPLOAD="video",VA.CREATION_UPLOAD_RED="upload",VA.CREATOR_ACADEMY="graduation_cap",VA.CREATOR_STUDIO=
"youtube_studio",VA.DARK_THEME="theme",VA.DELETE="trash_can",VA.DELETE_SWEEP="trash_can",VA.DESKTOP="laptop",VA.DISLIKE="thumb_down",VA.DISLIKE_SELECTED="thumb_down",VA.DISMISSAL="x",VA.DISMISS_QUEUE="playlist_x",VA.DOGFOOD="pawprint",VA.DOLLAR_SIGN="dollar_sign_circle",VA.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",VA.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",VA.DOWN_ARROW="arrow_down",VA.DO_NOT_DISTURB="circle_slash",VA.DRAFT="document",VA.EARTH="globe",VA.EDIT="pencil",VA.EMOJI="face_very_happy",
VA.EMOJI_FLAGS="flag",VA.EMOJI_OBJECTS="lightbulb",VA.EMOJI_PEOPLE="face_very_happy",VA.EMOJI_RECENT="clock",VA.EMPTY_HEART="heart",VA.EMPTY_LIKE="thumb_up",VA.ERROR_BLACK="alert_circle",VA.ERROR_OUTLINE="alert_circle",VA.ERROR_WHITE="alert_circle",VA.EXIT_APP="arrow_in",VA.EXIT_TO_APP="arrow_in",VA.EXPAND="chevron_down",VA.EXPAND_ALL="chevron_expand",VA.EXPAND_CAIRO="chevron_down",VA.EXPAND_LESS="chevron_up",VA.EXPAND_MORE="chevron_down",VA.EXPLORE="compass",VA.EXPLORE_DESTINATION="compass",VA.EXTERNAL_LINK=
"arrow_up_right",VA.EYE_OFF="eye_slash",VA.FAB_UPLOAD="upload",VA.FACE_HAPPY_OUTLINE="face_happy",VA.FACE_MEH="face_neutral",VA.FACT_CHECK="text_page_check",VA.FASHION_LOGO="fashion",VA.FASHION_LOGO_CAIRO="fashion",VA.FAVORITE="thumb_up",VA.FEEDBACK="alert_bubble",VA.FEEDBACK_CAIRO="alert_bubble",VA.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",VA.FILL_ARROW_SOLID_UP_16="arrow_solid_up",VA.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",VA.FLAG_CAIRO="flag",VA.FLASH_OFF="flash_slash",VA.FLASH_ON="flash",
VA.FULL_HEART="heart",VA.GAMING_LOGO="gaming",VA.GAMING_LOGO_CAIRO="gaming",VA.GO_TO_PAGE="arrow_right",VA.GROUPS="person3",VA.HAND_SWIPE_LEFT="gesture_swipe_left",VA.HAND_SWIPE_RIGHT="gesture_swipe_right",VA.HAPPY="face_happy",VA.HEALTH_AND_SAFETY="shield_health",VA.HEART_BOX="heart_cube",VA.HELP="help_circle",VA.HELP_CAIRO="help_circle",VA.HELP_OUTLINE="help_circle",VA.HIDE="circle_slash",VA.INCOGNITO_CAIRO="incognito",VA.INFINITY_ICON="infinity",VA.INFO="info_circle",VA.INFO_OUTLINE="info_circle",
VA.INSERT_CHART_OUTLINED="chart_bar_square",VA.INSERT_PHOTO="image",VA.KEEP="pin",VA.KEEP_OFF="pin_slash",VA.KEYBOARD="keyboard",VA.KEYBOARD_ARROW_DOWN="chevron_down",VA.KEYBOARD_ARROW_UP="chevron_up",VA.KIDS_BLOCK="circle_slash",VA.LANGUAGE="globe",VA.LAUNCH="arrow_up_right",VA.LEARNING="lightbulb",VA.LEARNING_CAIRO="lightbulb",VA.LIBRARY_ADD="bookmark",VA.LIBRARY_IMAGE="image_stack",VA.LIBRARY_MUSIC="audio_square_stack",VA.LIBRARY_OUTLINE="play_square_stack",VA.LIBRARY_REMOVE="bookmark",VA.LIBRARY_SAVED=
"check_square_stack",VA.LIKES_PLAYLIST="thumb_up",VA.LIKES_PLAYLIST_CAIRO="thumb_up",VA.LIKE="thumb_up",VA.LIKE_SELECTED="thumb_up",VA.LIST_QUEUE="queue",VA.LIVE_CAIRO="live",VA.LIVE_UNLISTED="link",VA.LOCATION_ON="location_pin",VA.LOCATION_PIN="location_pin",VA.LOCATION_POINT="location_pin",VA.LOOP="repeat",VA.LOOP_ACTIVE="repeat",VA.LOOP_ONE="repeat1",VA.LOOP_ONE_ACTIVE="repeat1",VA.MEET="google_meet",VA.MEH="face_neutral",VA.MEMBERSHIPS="memberships",VA.MEMBERS_ONLY_MODE_OFF="text_bubble",VA.MENU_FILTER=
"filter",VA.MESSAGE="text_bubble",VA.MESSAGE_BUBBLE_GEAR="bubble_gear",VA.MESSAGE_BUBBLE_LEFT="text_bubble",VA.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",VA.MESSAGE_BUBBLE_OVERLAP="bubble_stack",VA.MESSAGE_BUBBLE_QUESTION="help_bubble",VA.MICROPHONE_ON="mic",VA.MONETIZATION_ON="dollar_sign_circle",VA.MONEY_FILL="dollar_sign_rectangle",VA.MONEY_FILL_JPY="yen_sign_rectangle",VA.MONEY_HAND="dollar_sign_circle_hand",VA.MONEY_HEART="dollar_sign_heart",VA.MOON_Z="sleep_timer",VA.MORE_HORIZ="overflow_horizontal",
VA.MORE_VERT="overflow_vertical",VA.MUSIC="audio",VA.MUSIC_CAIRO="audio",VA.MUSIC_EXPLICIT_BADGE="explicit",VA.MUSIC_NEW_RELEASE="audio_badge",VA.MUSIC_NOTE_SYMBOL="audio",VA.MUSIC_SCISSORS="audio_scissors",VA.MUSIC_SHUFFLE="shuffle",VA.MY_CHANNEL="person_circle",VA.MY_LOCATION="location_pin",VA.MY_VIDEOS="video",VA.MY_VIDEOS_CAIRO="video",VA.NEWS_CAIRO="news",VA.NEWS_STORY="news",VA.NEXT="chevron_right",VA.NOTE_ADD="bubble_pencil",VA.NOTIFICATIONS="bell",VA.NOTIFICATIONS_ACTIVE="bell_waves",VA.NOTIFICATIONS_CAIRO=
"bell",VA.NOTIFICATIONS_DONE_CHECKMARK="check",VA.NOTIFICATIONS_INBOX="bell",VA.NOTIFICATIONS_NONE="bell",VA.NOTIFICATIONS_OFF="bell_slash",VA.NOT_INTERESTED="circle_slash",VA.OFFICIAL_ARTIST_BADGE="audio",VA.OFFLINE_CLOUD="cloud_slash",VA.OFFLINE_DOWNLOAD="download",VA.OFFLINE_DOWNLOAD_CAIRO="download",VA.OFFLINE_PAUSE="pause",VA.OPEN_IN_NEW="arrow_up_right",VA.OUTLINE_ADJUST="adjust",VA.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",VA.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",VA.OUTLINE_ARROW_SOLID_UP=
"arrow_solid_up",VA.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",VA.OUTLINE_BAG="bag",VA.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",VA.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",VA.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",VA.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",VA.PAID="dollar_sign_circle",VA.PAUSE_OUTLINED="pause",VA.PAYMENT="credit_card",VA.PEOPLE="person_child",VA.PEOPLE_2="person2_rectangle",VA.PEOPLE_GROUP="person3",VA.PEOPLE_NOTE="bubble_asterisk",VA.PERSON_2="person2",VA.PERSON_ACCOUNT=
"person_square_stack",VA.PERSON_MINUS="person_x",VA.PERSON_MUSIC="person_audio",VA.PERSON_RADAR="person_waves",VA.PERSON_RADAR_FILLED="person_waves",VA.PERSON_SETTING="person_gear",VA.PHONE="phone",VA.PHONE_DOWNLOAD="mobile_arrow_down",VA.PICTURE_IN_PICTURE="picture_in_picture",VA.PLAYABLES_LOGO="playables",VA.PLAYABLES_LOGO_CAIRO="playables",VA.PLAYLISTS="playlist",VA.PLAYLISTS_CAIRO="playlist",VA.PLAYLIST_ADD_CHECK="bookmark",VA.PLAY_ALL="play",VA.PLAY_ARROW="play",VA.PLAY_ARROW_CIRCLE="play_circle",
VA.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",VA.PLAY_CIRCLE="play_circle",VA.PLAY_OUTLINED="play_circle",VA.PODCAST_ADD="podcast_add",VA.PODCAST_CHECK="podcast_check",VA.PRIVACY_INFO="shield_x",VA.PRIVACY_PRIVATE="lock",VA.PRIVACY_PUBLIC="globe",VA.PRIVACY_UNLISTED="link",VA.PROMOTE="megaphone",VA.PURCHASES="price_tag",VA.PURCHASE_SUPER_CHAT="super_chat",VA.PURCHASE_SUPER_STICKER="super_sticker",VA.QUESTION_ANSWER="help_bubble",VA.QUESTION_CIRCLE="help_circle",VA.QUEUE_PLAY_LAST="queue_last",
VA.QUEUE_PLAY_NEXT="playlist",VA.QUOTATION_MARK="quote",VA.RADAR_LIVE="live",VA.REMOVE="minus_circle",VA.REMOVE_CIRCLE="minus_circle",VA.REMOVE_CIRCLE_OUTLINE="minus_circle",VA.REMOVE_FROM_HISTORY="minus_circle",VA.REMOVE_FROM_PLAYLIST="minus_circle",VA.REPLAY="arrow_counterclockwise",VA.REPLAY_10="skip10_back",VA.REPLAY_ARROW="replay",VA.REPORT_PROBLEM="alert_triangle",VA.RSS_OFF="rss_slash",VA.SAD="face_sad",VA.SAVE_PLAYLIST="bookmark",VA.SCHEDULE="clock",VA.SCHOOL="graduation_cap",VA.SCREEN_DEFAULT=
"player_default",VA.SCREEN_FULLSCREEN="player_full_enter",VA.SCREEN_LIGHT="ambient_mode",VA.SCREEN_ROTATION="rotate_portrait",VA.SCREEN_SWITCH="player_switch",VA.SCREEN_THEATRE="player_theater",VA.SEARCH_CAIRO="search",VA.SEARCH_HISTORY="history",VA.SELL="price_tag",VA.SETTINGS="gear",VA.SETTINGS_CAIRO="gear",VA.SETTINGS_LIGHT="gear",VA.SETTINGS_MATERIAL="gear",VA.SETTINGS_REMOTE="remote_waves",VA.SHARE="share",VA.SHARE_ARROW="share",VA.SHARE_CAIRO="share",VA.SHIELD="shield_x",VA.SHIELD_OFF="shield_slash",
VA.SHIELD_WITH_AVATAR="person_shield",VA.SHOPPING_BAG="bag",VA.SHOPPING_BAG_CAIRO="bag",VA.SHOPPING_CART="cart",VA.SHORTS_COMMENT="text_bubble",VA.SHORTS_DISLIKE="thumb_down",VA.SHORTS_LIKE="thumb_up",VA.SHORTS_SHARE="share",VA.SKIP_FORWARD_30="skip30_forward",VA.SLASH_CIRCLE_RIGHT="circle_slash",VA.SLOW_MODE_OFF="text_bubble",VA.SOCIAL="person_child",VA.SPARKLE="sparkles",VA.SPARK_IMAGE="image_spark",VA.SPARK_RADAR="spark_waves",VA.SPARK_VIDEO="video_spark",VA.SPEAKER_GROUP="speaker_stack",VA.SPEAKER_OFF=
"speaker_slash",VA.SPEED_1X="n1x",VA.SPEED_1_POINT_2X="n1point2x",VA.SPEED_1_POINT_5X="n1point5x",VA.SPEED_1_POINT_8X="n1point8x",VA.SPEED_2X="n2x",VA.SPONSORSHIP_STAR="memberships",VA.SPORTS="basketball",VA.SPOTLIGHT="spotlight",VA.STAFF_PICK="spotlight",VA.START_DVR="add",VA.STAR_BORDER="star",VA.STAR_HALF="star_half_filled",VA.STAR_SHOOTING="hype",VA.STICKER="sticker",VA.STICKER_EMOTICON="face_happy",VA.STOP_DVR="stop",VA.SUBSCRIBE="youtube",VA.SUBSCRIBE_PLUS="add",VA.SUBSCRIPTION_MANAGER="gear",
VA.SUPERSTAR="super_star",VA.SUPERVISOR_ACCOUNT="person_child",VA.SWAP_HORIZ="arrow_swap_horizontal",VA.SWITCH_ACCOUNTS="person_square_stack",VA.TAB_ACCOUNT="person",VA.TAB_ACTIVITY="bell",VA.TAB_BOOKMARK="bookmark",VA.TAB_EXPLORE="compass",VA.TAB_HOME="home",VA.TAB_HOME_CAIRO="home",VA.TAB_INBOX="mail",VA.TAB_LIKED="thumb_up",VA.TAB_MUSIC_PREMIUM="youtube_music",VA.TAB_SHORTS="shorts",VA.TAB_SHORTS_CAIRO="shorts",VA.TAB_SUBSCRIPTIONS="subscriptions",VA.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",VA.TAB_TRENDING=
"trending",VA.TARGET="target",VA.TARGET_ADD="target_add",VA.TEMPLATE_ADD="template_add",VA.TEXT="font",VA.TIMER="stopwatch",VA.TRENDING_CAIRO="trending",VA.TRENDING_UP="arrow_trend_up",VA.TROPHY_CAIRO="trophy",VA.TROPHY_CELEBRATIONS="fireworks",VA.TROPHY_STAR="star_trophy",VA.TUNE="adjust",VA.TV_OFF="tv_slash",VA.UNBLOCK_USER="minus_circle",VA.UNFAVORITE="thumb_down",VA.UNLIMITED="youtube",VA.UNPLUGGED_LIVE_GUIDE="live",VA.UNPLUGGED_SPORTS="eye_slash",VA.UPLOADS="play_square_stack",VA.UP_ARROW="arrow_up",
VA.VERTICAL_ALIGN_BOTTOM="chevron_down_end",VA.VERTICAL_ALIGN_TOP="chevron_up_end",VA.VERY_HAPPY="face_very_happy",VA.VERY_SAD="face_very_sad",VA.VIDEOS="play_circle",VA.VIDEO_CALL="video_camera_add",VA.VIDEO_LIBRARY_WHITE="play_square_stack",VA.VIDEO_QUALITY_4K="n4k",VA.VIDEO_QUALITY_8K="n8k",VA.VIDEO_YOUTUBE="youtube",VA.VIEW_LIST_CAIRO="view_list",VA.VIEW_MODULE="view_column3_row2",VA.VISIBILITY="eye",VA.VISIBILITY_OFF="eye_slash",VA.VOLUME_DOWN="volume_min",VA.VOLUME_MUTE="volume_mute",VA.VOLUME_OFF=
"volume_mute",VA.VOLUME_STABLE="stable_volume",VA.VOLUME_UP="volume_max",VA.WALLPAPER="image",VA.WARNING="alert_triangle",VA.WATCH_HISTORY="history",VA.WATCH_HISTORY_CAIRO="history",VA.WATCH_LATER="clock",VA.WATCH_LATER_CAIRO="clock",VA.WATCH_RELATED_MIX="mix",VA.WHAT_TO_WATCH="home",VA.YOUTUBE_LINKED_TV="tv_mobile",VA.YOUTUBE_MUSIC_MONOCHROME="youtube_music",VA.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",VA.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",VA.YOUTUBE_SHORTS_ARROW_UP="arrow_up",VA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16=
"shorts_empty",VA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",VA.YOUTUBE_SHORTS_OUTLINE_24="shorts",VA);var SZu={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,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,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,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,11,12],[0,11,16],[0,11,24],[1,11,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,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
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,9,24],[1,9,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
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,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,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,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,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,4,24],[1,
4,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:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,
3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,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,6,24],[1,6,32]],overflow_vertical:[[1,12,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,8,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,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,
2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,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,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,
2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],
scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,
1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,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,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,
24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,
1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,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,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],
stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,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,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up:[[0,20,16],[0,20,24],[0,20,36],[1,20,16],[1,20,24],[1,20,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,4,16],[1,4,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,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_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,3,24],[1,3,24]],x:[[1,10,18],[1,10,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 WQF={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,
10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,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,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],audio:[[0,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,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]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,
2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,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_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,
2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,
1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,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,11,18],[1,11,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,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,
5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,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,9,24],[1,9,24],[1,9,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,
1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,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,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,
2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,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:[[0,23,12],[0,23,24],[1,23,12],
[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],
face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,
1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,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,4,24],[1,4,24],[1,4,36]],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,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,
1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],
heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,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,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,
10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,
1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],
medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,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_arrow_in:[[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,6,24],[1,6,36]],overflow_vertical:[[1,
12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,8,24],[0,8,36],[1,8,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:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,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,2,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,2,24],[0,2,36],[1,2,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,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],
[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,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,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],
repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,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:[[0,11,24,!0],[1,11,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,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,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,7,12],[0,7,24],[0,7,36],[1,7,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,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,
2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],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,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,22,18],[0,22,24],[1,22,18],[1,22,24]],thumb_up:[[0,20,18],[0,20,24],[1,20,18],[1,20,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,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,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,
48]],video_camera_add:[[1,2,24]],video_link:[[1,5,18],[1,5,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,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,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 pLV={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Du=function(V){this.iconUrlProvider=V};
Du.prototype.resolveIcon=function(V,D){var f=pLV[V.iconName.toUpperCase()];f&&(V.iconName=f);var n=V.iconName;n=n.replace(/-/g,"_");V=Object.assign({},V,{iconName:this.mapIconTypeToStandardName(n,!!f)||n.toLowerCase()});if(_.c("enable_web_delhi_icons")||f){var t;return cmL(WQF,V,((t=this.iconUrlProvider)==null?void 0:t.getYtStandardUrl)||vQY,D)}var J;return cmL(SZu,V,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||gQd,D)};
Du.prototype.mapIconTypeToStandardName=function(V,D){return _.c("enable_web_delhi_icons")||D?iqo[V.toUpperCase()]:$tl[V.toUpperCase()]};
Du[L$]=[_.Vx(AHY)];var LQp=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),ILL=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Oq6=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),xtl=function(V){this.urlProvider=this.iconUrlProvider=V};
_.v(xtl,Du);
xtl.prototype.resolveIcon=function(V,D){V.iconName==="youtube_logo"&&(V.iconName="yt-logo-updated");if(V.iconName==="youtube_premium_logo"||V.iconName==="youtube_red_logo")V.iconName="yt-logo-red-updated";var f=Object.assign({},V);V.iconName==="menu"&&(_.c("enable_web_delhi_icons")||(f.iconName="bars_3"),f.iconStyle="youtube_outline");V.iconSetName==="socialNetworksRound"&&(V.iconName==="mail"&&(f.iconName="email"),V.iconName==="embed"&&(f.iconSize=60));V.iconName==="more"&&(f.iconName="overflow_horizontal");
V.iconName==="fullscreen"&&(f.iconName="screen_full");V.iconName==="premium_standalone"&&(f.iconName="premium_standalone_cairo");_.c("enable_connect_icon_update_web")&&V.iconName==="account_linked"&&(f.iconName="circles_overlap_check",f.iconStyle="youtube_fill");_.c("enable_connect_icon_update_web")&&V.iconName==="account_unlinked"&&(f.iconName="circles_overlap",f.iconStyle="youtube_outline");LQp.has(V.iconName)&&(f.iconStyle="youtube_fill");_.c("enable_web_delhi_icons")&&(V.iconName==="playlist_add"&&
(f.iconName="bookmark"),V.iconName==="offline_pin"&&(f.iconName="arrow_down_circle",f.iconStyle="youtube_fill"),ILL.has(V.iconName)&&(f.iconName+="_updated"),Oq6.has(V.iconName)&&(f.iconStyle="youtube_fill"));V=Object.assign({},f,{iconName:(Du.prototype.mapIconTypeToStandardName.call(this,f.iconName)||f.iconName).toLowerCase()});var n;return(V=cmL(XLY,V,((n=this.urlProvider)==null?void 0:n.getUrl)||kx9,D))?V:Du.prototype.resolveIcon.call(this,f,D)};
xtl[L$]=[_.Vx(AHY)];_.MAl=1;var fk=function(){};
_.v(fk,EQ);fk.prototype.resolveCommand=function(V){var D,f;return _.w(function(n){D=_.g(V,Y5H);if(!D)return n.return();f=Number(D.enableDelayedPacfLoggingTvMs);if(isNaN(f)){var t=wt();loV(t,D,0)}else loV(wt(),D,f);_.yz(n)})};_.nk=function(){};
_.v(_.nk,EQ);
_.nk.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y;return _.w(function(Z){n=_.g(V,$wV);J=(t=D.form)==null?void 0:t.element;Q=(H=J)==null?void 0:H.closest("ytd-enforcement-message-view-model");if(!n||!Q)return Z.return();f.allowAdsAction||(T=n.fundingChoiceInstructionPageUrl,f.allowAdsAction=new TXl(window,_.mW(T)));var l=f.allowAdsAction;l.wallElement=Q;l.allowAdsPopup.style.setProperty("display","flex","important");var G=l.scrollManager;G.originalBodyOverflow=G.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow;G.JSC$8090_domHelper.JSC$7414_document_.body.style.overflow=
"hidden";l.wallElement.style.setProperty("display","none","important");vAV(l.accessibilityManager,l.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((y=f.allowAdsAction.allowAdsPopup)&&y instanceof HTMLElement)for(l=_.r(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),G=l.next();!G.done;G=l.next()){var F=_.r(G.value);G=F.next().value;F=F.next().value;y.style.setProperty(G,F)}_.yz(Z)})};
_.nk.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var t3=function(){};
_.v(t3,EQ);t3.prototype.resolveCommand=function(V){var D;return _.w(function(f){D=_.g(V,QIY);if(!D)return f.return();REc(V);_.yz(f)})};var Pf=function(V){this.JSC$15224_commandHandler=V};
_.v(Pf,EQ);
Pf.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1){f=_.g(V,XEU);if((n=f)==null||!n.text||!navigator.clipboard)return Z.return();_.wx(Z,2);return _.b(Z,navigator.clipboard.writeText(f.text),4)}if(Z.nextAddress!=2){if(!f.successActions||f.successActions.length===0)return Z.return();t=_.r(f.successActions);for(J=t.next();!J.done;J=t.next())H=J.value,D.JSC$15224_commandHandler.resolveCommand(H);return _.YJ(Z,0)}_.KW(Z);if(!f.failureActions||f.failureActions.length===
0)return Z.return();Q=_.r(f.failureActions);for(T=Q.next();!T.done;T=Q.next())y=T.value,D.JSC$15224_commandHandler.resolveCommand(y);_.yz(Z)})};
Pf[L$]=[_.fH];var od=function(V){this.JSC$15228_commandHandler=V};
_.v(od,EQ);
od.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){switch(F.nextAddress){case 1:n=_.g(V,l8o);if(!n)return F.return();_.wx(F,2);if(!n.imageBytes&&!n.imageUrl)throw Error("Ci");if(!n.imageUrl){if(n.imageBytes){J=n.imageBytes;H=J.replace(/-/g,"+").replace(/_/g,"/");var k=d$X(H);t=_.Ft(k)}F.jumpTo(4);break}return _.b(F,fetch(n.imageUrl),5);case 5:return Q=F.yieldResult,_.b(F,Q.blob(),6);case 6:T=F.yieldResult,t=_.Ft(T);case 4:l=(y=D)==null?void 0:(Z=y.form)==
null?void 0:Z.element;G=document.createElement("a");se(G,t);l.appendChild(G);G.download="";G.click();l.removeChild(G);URL.revokeObjectURL(_.y2(t));n.successCommand&&f.JSC$15228_commandHandler.resolveCommand(n.successCommand);_.YJ(F,0);break;case 2:_.KW(F),n.errorCommand&&f.JSC$15228_commandHandler.resolveCommand(n.errorCommand),_.yz(F)}})};
od[L$]=[_.fH];var J3=function(V){this.store=V};
_.v(J3,EQ);J3.prototype.resolveCommand=function(V){var D=this,f,n,t;return _.w(function(J){n=(f=_.g(V,_.ITo))==null?void 0:f.entityBatchUpdate;if(!n)return J.jumpTo(0);t=Object.assign({},n,{mutations:[].concat(_.sz(n.mutations||[]))});return _.b(J,_.yc(t,D.store),0)})};var hel=function(V){this.JSC$15235_commandHandler=V;this.feedbackDialogMap=new Map};
hel.prototype.openDialog=function(V,D){(V=this.feedbackDialogMap.get(V))&&this.JSC$15235_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:V}},D)};
hel[L$]=[_.fH];var r1=new _.IH("FEEDBACK_CONTROLLER_TOKEN");var Hf=new _.IH("APP_STORE_TOKEN");var w1=function(V,D){this.store=V;this.controller=D};
_.v(w1,EQ);w1.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O;return _.w(function(W){if(W.nextAddress==1){n=_.g(V,_.uY);if(J=(t=n)==null?void 0:t.contentId)for(Q=_.r(((H=n)==null?void 0:H.actions)||[]),T=Q.next();!T.done;T=Q.next())y=T.value,Utl(f,y,J);G=(Z=D)==null?void 0:(l=Z.form)==null?void 0:l.element;return _.b(W,_.HA(G,[V]).catch(function(){}),2)}F=W.yieldResult;
((k=F)==null?0:(d=k.data)==null?0:(z=d.feedbackResponses)==null?0:z.length)&&(A=(C=F.data.feedbackResponses[0])==null?void 0:C.followUpDialog)&&J&&(O=f.controller)!=null&&O.feedbackDialogMap.set(J,A);_.yz(W)})};
var Utl=function(V,D,f){var n=_.g(D,_.Tm);if(n){n=_.r(n.commands||[]);for(var t=n.next();!t.done;t=n.next())Utl(V,t.value,f)}_.g(D,_.l7)&&V.store.dispatch(_.y1("commandEntity",rwY(f),{key:f,command:D}));_.g(D,AxE)&&V.store.dispatch(_.y1("commandEntity",rwY(f),{key:f,command:D}))};
w1[L$]=[Hf,r1];var QA=function(V){this.controller=V};
_.v(QA,EQ);QA.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H;return _.w(function(Q){n=_.g(V,_.Eq);J=(t=n)==null?void 0:t.targetId;if(((H=n)==null?void 0:H.signal)!=="TELL_US_WHY"||!J)return Q.return();f.controller.openDialog(J,D);_.yz(Q)})};
QA[L$]=[r1];var Tr=function(V){this.store=V};
_.v(Tr,EQ);Tr.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y;return _.w(function(Z){n=_.g(V,TV9);J=(t=n)==null?void 0:t.contentId;T=(H=D)==null?void 0:(Q=H.form)==null?void 0:Q.element;y=_.HA(T,[V]);J&&f.undo(J);return _.b(Z,y,0)})};
Tr.prototype.undo=function(V){this.store.dispatch(_.y1("commandEntity",rwY(V),{key:V,command:void 0}))};
Tr[L$]=[Hf];var bO=function(V){this.JSC$15250_commandHandler=V};
_.v(bO,EQ);bO.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y;return _.w(function(Z){f=_.g(V,wT6);n=f.flowStateKey;t=f.validationFailureCommand;J=f.submitValidFormCommand;H=Hzc(_.V7,[n||""]);Q=_.g(H,THF);((T=Q)==null?0:T.isValid)&&J&&D.JSC$15250_commandHandler.resolveCommand(J);((y=Q)==null?0:y.isValid)||!t||D.JSC$15250_commandHandler.resolveCommand(t);_.yz(Z)})};
bO[L$]=[_.fH];var Kk=function(V){this.innertubeTransportService=V};
_.v(Kk,EQ);Kk.prototype.resolveCommand=function(V,D){var f=this,n;return _.w(function(t){return _.b(t,_.ie(f.innertubeTransportService,V,(n=D)==null?void 0:n.form).then(function(J){var H,Q;D==null||(H=D.commandController)==null||(Q=H.onSuccess)==null||Q.call(H,V,J)},function(J){var H,Q;
D==null||(H=D.commandController)==null||(Q=H.onServerError)==null||Q.call(H,V,J)}),0)})};
Kk[L$]=[_.CR];var yA=function(){};
_.v(yA,EQ);yA.prototype.resolveCommand=function(V){var D,f,n,t;return _.w(function(J){if(D=_.g(V,_.kIo)){if(f=D.gtmId)n=_.XB("GL",""),_.km(f,n);(t=D.gtmData)&&_.sY(t)}_.yz(J)})};var Zu=function(V,D){this.innertubeTransportService=V;this.JSC$15261_actionRouter=D};
_.v(Zu,EQ);Zu.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){f=_.g(V,HgH);if(!f)return t.return();n=f.command;if(!n)return t.return();D.JSC$15261_actionRouter.triggerAction("yt-insert-rich-section-action",f);return _.b(t,_.ie(D.innertubeTransportService,n,{disableCache:!0}),0)})};
Zu[L$]=[_.CR,II];N8n.bind(null,At);var Vpl=N8n.bind(null,Cor);zbZ.bind(null,At);var DVL=zbZ.bind(null,Cor);CDZ.bind(null,At);var fMF=CDZ.bind(null,Cor);var jS=function(){};
_.v(jS,EQ);
jS.prototype.resolveCommand=function(V){var D,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){D=_.g(V,IXF);if(!D)return l.return();n=((f=D.operations)==null?void 0:f.operations)||[];t=_.r(n);for(J=t.next();!J.done;J=t.next())if(H=J.value,H.insertItemSectionContent){var G=H.insertItemSectionContent,F=G.contents||[];G.insertByPositionInSection?Vpl(G.insertByPositionInSection.sectionTargetId,F,G.insertByPositionInSection.position):G.insertByRelativePositionInSection&&G.insertByRelativePositionInSection.sectionTargetId&&G.insertByRelativePositionInSection.itemTargetId&&
DVL(G.insertByRelativePositionInSection.sectionTargetId,G.insertByRelativePositionInSection.itemTargetId,F,G.insertByRelativePositionInSection.relativePosition)}else H.replaceSection?(G=H.replaceSection,F={},G.replaceByTargetId?F=G.replaceByTargetId:G.replaceByGroupId&&(F={targetId:G.replaceByGroupId.groupId,newContent:G.replaceByGroupId.newContent,undoKey:""}),F.newContent&&EOF(F.targetId,{continuationItems:[F.newContent]})):H.removeItem?(G=H.removeItem,G.removeByTargetId&&G.sectionTargetId&&fMF(G.sectionTargetId,
G.removeByTargetId.targetIds||[])):H.removeSection&&(H.removeSection.removeByTargetId?(Q=void 0,nRo(((Q=H.removeSection)==null?void 0:Q.removeByTargetId.targetIds)||[])):H.removeSection.removeByGroupId&&(T=void 0,nRo(((T=H.removeSection)==null?void 0:T.removeByGroupId.groupIds)||[])));Z=((y=D.operations)==null?void 0:y.scrollConfig)||{};tpU(Z);_.yz(l)})};
var nRo=function(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next())EOF(D.value,{continuationItems:[]})},tpU=function(V){if(V.scrollToItem){var D=V.scrollToItem.item||{},f=D.itemTargetId;
D=D.sectionTargetId;if(f&&D){var n=document.querySelector("[data-target-id="+D+"]"),t=n==null?void 0:n.querySelector("[data-target-id="+f+"]");n&&t&&setTimeout(function(){var J=t.offsetTop-n.offsetTop,H;if(((H=V.scrollToItem)==null?void 0:H.scrollPosition)==="SCROLL_POSITION_CENTER")J-=n.offsetHeight/2,J+=t.offsetHeight/2;else{var Q;((Q=V.scrollToItem)==null?void 0:Q.scrollPosition)==="SCROLL_POSITION_END"&&(J-=n.offsetHeight,J+=t.offsetHeight)}n.scroll({top:J,behavior:"smooth"})},100)}}};var lO=new _.IH("CLIENT_NAME_TOKEN");var PPF=new _.IH("DEFAULT_STORE_EXPIRATION_TOKEN");var kEc=new _.IH("CLIENT_LOCATION_SERVICE_TOKEN");var Gr=function(V,D,f){this.clientName=V||_.XB("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=D||_.mR.getInstance();this.JSC$15289_commandHandler=f||_.bS.instance};
_.v(Gr,EQ);Gr.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){n=(f=_.g(V,D7L))==null?void 0:f.onComplete;D.clientLocationService.clearLocationPlayabilityToken(D.clientName);n&&D.JSC$15289_commandHandler.resolveCommand(n);_.yz(t)})};
Gr[L$]=[lO,kEc,_.fH];var eS=function(V){this.innertubeTransportService=V};
_.v(eS,EQ);eS.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H;return _.w(function(Q){J=(n=D)==null?void 0:(t=n.form)==null?void 0:t.element;return _.b(Q,_.ie(f.innertubeTransportService,V,(H=D)==null?void 0:H.form).then(function(T){SIn(J,new CustomEvent("yt-service-request-completed"),{data:T},_.XB("openPopupConfig"))}),0)})};
eS[L$]=[_.CR];var cf=function(){};
_.v(cf,EQ);cf.prototype.resolveCommand=function(V){var D,f;return _.w(function(n){D=_.g(V,Z8F);f=document.querySelector("mini-app-container-view-model");if(!D||!f)return n.return();D.isPlaying?f.dispatchEvent(new Event("play")):f.dispatchEvent(new Event("pause"));_.yz(n)})};var F5=function(){};
_.v(F5,EQ);F5.prototype.resolveCommand=function(V){var D,f,n,t,J,H,Q;return _.w(function(T){D=_.g(V,GIl);if((f=D)==null||!f.paramKeys)return T.return();n=D.paramKeys;t=_.Y4(window.location.href);J=_.r(n);for(H=J.next();!H.done;H=J.next())Q=H.value,t.JSC$8122_queryData_.remove(Q);window.history.replaceState(window.history.state,document.title,t.toString());_.yz(T)})};var oRo=function(){this.dropdownMap=new Map};_.Jzl=new _.IH("DROPDOWN_CONTROLLER_TOKEN");var g1=function(V){this.controller=V};
_.v(g1,EQ);g1.prototype.resolveCommand=function(V){var D=this,f,n,t,J;return _.w(function(H){f=_.g(V,UTu);if(!f)return H.return();n=f;t=n.dropdownId;J=n.selectedOptionIndex;if(t===void 0||J===void 0)return H.return();var Q=D.controller.dropdownMap.get(t);Q&&Q(J);_.yz(H)})};
g1[L$]=[_.Jzl];var vf=function(V){this.controller=V};
_.v(vf,EQ);vf.prototype.resolveCommand=function(V){var D=this,f;return _.w(function(n){return(f=_.g(V,b$l))?_.b(n,D.controller.closeDialog(),0):n.return()})};
vf[L$]=[_.eO];var kI=function(V){this.controller=V};
_.v(kI,EQ);kI.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){f=_.g(V,O$L);if(!f)return t.return();var J,H=f.panelIdentifier||((J=f.identifier)==null?void 0:J.tag);if(!H)throw Error("Di");return(n=H)?_.b(t,D.controller.hidePanel(n),0):t.jumpTo(0)})};
kI[L$]=[_.lM];var sI=function(V,D){this.innertubeTransportService=V;this.controller=D};
_.v(sI,EQ);sI.prototype.resolveCommand=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return f=_.g(V,x7o),(n=f)!=null&&n.panelId?_.b(H,D.controller.getReloadContinuation(f.panelId),2):H.return();if(H.nextAddress!=3)return(t=H.yieldResult)?_.b(H,_.ie(D.innertubeTransportService,V,{continuation:t}),3):H.return();J=H.yieldResult;return _.b(H,D.controller.updatePanel(f.panelId,J.content,!1),0)})};
sI[L$]=[_.CR,_.lM];var Bf=function(V,D,f){this.innertubeTransportService=V;this.JSC$15325_screenManager=D;this.JSC$15325_commandHandler=f};
_.v(Bf,EQ);
Bf.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1){f=_.g(V,_.aBY);if(!f)return T.return();if(f.commands)for(n=_.r(f.commands),t=n.next();!t.done;t=n.next())J=t.value,D.JSC$15325_commandHandler.resolveCommand(J,{disableClickTracking:!0});H=_.gs(V.clickTrackingParams);_.P5(D.JSC$15325_screenManager,21760,H,{layer:7,parentLayer:0});return _.b(T,_.ie(D.innertubeTransportService,V),2)}Q=T.yieldResult;if(!Q)return T.return();D.JSC$15325_screenManager.graftServerVe(Q.trackingParams,H,
7);_.yz(T)})};
Bf[L$]=[_.CR,_.cO,_.fH];var d1=new _.IH("PANEL_LOADING_STRATEGY_TOKEN");var uO=function(V,D){this.controller=V;this.panelLoadingStrategy=D};
_.v(uO,EQ);
uO.prototype.resolveCommand=function(V,D){var f=this,n,t,J;return _.w(function(H){n=_.g(V,RPr);if((t=n)==null||!t.panelLoadingStrategy)return H.return();J=function(Q){var T,y,Z,l,G,F,k,d,z;return _.w(function(C){y=_.g((T=Q.dialogViewModel)==null?void 0:T.header,VzY);Z={viewModel:Q.dialogViewModel};l={};if(k=_.c("web_enable_dialog_header_label")?(G=y)==null?void 0:(F=G.headline)==null?void 0:F.content:void 0)l.ariaLabel=k;n.dismissOnBackgroundTap===!1&&(l.isModal=!0);return Q.dialogViewModel?_.b(C,
f.controller.openDialog(Z,(d=D)==null?void 0:(z=d.form)==null?void 0:z.element,l),0):C.return()})};
return _.b(H,f.panelLoadingStrategy.execute({command:V,data:n.panelLoadingStrategy,renderFn:J,createScreenConfig:{layer:4}}),0)})};
uO[L$]=[_.eO,d1];var NE=function(V,D,f){this.innertubeTransportService=V;this.controller=D;this.JSC$15345_screenManager=f};
_.v(NE,EQ);
NE.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k;return _.w(function(d){switch(d.nextAddress){case 1:n=_.g(V,_.dK);if(!n)return d.return();var z,C=n.panelIdentifier||((z=n.identifier)==null?void 0:z.tag);if(!C)throw Error("Di");t=C;return _.b(d,f.controller.isVisible(t,!0),2);case 2:if((J=d.yieldResult)&&n.blockIfPanelOpen)return d.return();T=(Q=(H=f.controller).getPanelContent)==null?void 0:Q.call(H,t);if(!(z=T))if(n){var A;z=((A=n.globalConfiguration)==null?void 0:A.initialState)||
n.engagementPanel;if(A=!z)A=!!(n==null?0:(C=n.engagementPanelPresentationConfigs)==null?0:C.engagementPanelPopupPresentationConfig);A&&(z=_.qvY(n.panelIdentifier,n.identifier))}else z=void 0;y=z;Z=n.engagementPanelPresentationConfigs;l=n.engagementPanelExtras;return _.b(d,f.controller.showPanel(t,y,Z,l,(G=D)==null?void 0:(F=G.form)==null?void 0:F.element),3);case 3:if(!n.globalConfiguration){d.jumpTo(0);break}_.P5(f.JSC$15345_screenManager,32633);return _.b(d,_.ie(f.innertubeTransportService,V),5);
case 5:return k=d.yieldResult,f.JSC$15345_screenManager.graftServerVe(k.trackingParams),_.b(d,f.controller.updatePanel(t,k.content,!0,l,void 0,k.updatePanelContinuationData),0)}})};
NE[L$]=[_.CR,_.lM,_.cO];var mT=function(V,D){this.controller=V;this.panelLoadingStrategy=D};
_.v(mT,EQ);mT.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T;return _.w(function(y){n=_.g(V,_.Zt);if((t=n)==null||!t.panelLoadingStrategy)return y.return();Q=rzu(f.controller,(J=D)==null?void 0:(H=J.form)==null?void 0:H.element);T=function(Z){return _.w(function(l){return Z.sheetViewModel?_.b(l,f.controller.openSheet({viewModel:Z.sheetViewModel},Q),0):l.return()})};
return _.b(y,f.panelLoadingStrategy.execute({command:V,data:n.panelLoadingStrategy,renderFn:T,createScreenConfig:{layer:0}}),0)})};
mT[L$]=[_.Ga,d1];var zr=function(V,D){this.controller=V;this.JSC$15353_commandHandler=D};
_.v(zr,EQ);zr.prototype.resolveCommand=function(V,D){var f=this,n,t,J;return _.w(function(H){if(H.nextAddress==1){n=_.g(V,VhE);var Q=_.g(n.showCommand,_.dK),T,y,Z=(y=Q==null?void 0:Q.panelIdentifier)!=null?y:Q==null?void 0:(T=Q.identifier)==null?void 0:T.tag;if(!Z)throw Error("Ei");t=Z;return _.b(H,f.controller.isVisible(t),2)}return(J=H.yieldResult)?_.b(H,f.controller.hidePanel(t),0):_.b(H,f.JSC$15353_commandHandler.resolveCommand(n.showCommand,D),0)})};
zr[L$]=[_.lM,_.fH];var Rd=function(V,D,f){this.innertubeTransportService=V;this.controller=D;this.JSC$15356_screenManager=f};
_.v(Rd,EQ);
Rd.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY;return _.w(function(wZ){switch(wZ.nextAddress){case 1:return n=f=_.g(V,DWU),t=n.targetPanelIdentifier,J=n.contentSourcePanelIdentifier,H=n.globalConfiguration,((Q=t)==null?0:Q.tag)&&((T=J)==null?0:T.tag)?H?_.b(wZ,D.controller.showPanel(t.tag,_.qvY(t.tag,t),void 0,void 0,void 0),5):_.b(wZ,(G=(l=D.controller).getPanel)==null?void 0:G.call(l,J.tag),4):wZ.return();case 4:F=wZ.yieldResult;y=(k=F)==null?void 0:
(z=(d=k).getPanelContent)==null?void 0:z.call(d);wZ.jumpTo(3);break;case 5:return _.b(wZ,_.ie(D.innertubeTransportService,V),6);case 6:C=wZ.yieldResult,((A=C)==null?0:A.trackingParams)&&D.JSC$15356_screenManager.graftServerVe(C.trackingParams),y=(O=C)==null?void 0:O.content,Z=(W=C)==null?void 0:W.updatePanelContinuationData;case 3:if(x=(I=y)==null?void 0:I.engagementPanelSectionListRenderer)return _.b(wZ,D.controller.showPanel(t.tag,void 0,void 0,void 0,void 0,{content:x.content,secondaryHeaderContent:(oY=
x.header)!=null?oY:{},targetId:x.targetId},Z),0);wZ.jumpTo(0)}})};
Rd[L$]=[_.CR,_.lM,_.cO];var Ck=function(V){this.JSC$15363_commandHandler=V};
_.v(Ck,EQ);
Ck.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return(f=_.g(V,QHF))?_.b(T,_.JY(),2):T.return();n=T.yieldResult;if(!n)return T.return();var y=n,Z=(t=f)==null?void 0:t.languageCode,l=(J=f)==null?void 0:J.isAutoTranslated;y.getVideoData&&_.EQ9(y).length&&((Z=azY(y,Z,l))?y.setOption("captions","track",Z):(y.setOption("captions","stickyLoading",{}),y.setOption("captions","track",{})));H=n.isSubtitlesOn()?_.Zl("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Zl("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.hO(H);D.JSC$15363_commandHandler.resolveCommand(Q);_.yz(T)})};
Ck[L$]=[_.fH];var qE=function(V,D){this.shortsPlayerPromise=V;this.JSC$15367_commandHandler=D};
_.v(qE,EQ);
qE.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return(f=_.g(V,BlF))?_.b(Z,D.shortsPlayerPromise,2):Z.return();n=Z.yieldResult;var l=Yvx(n);l!=null&&l.length||(n.loadModule("captions"),l=Yvx(n));t=l;if((J=t)==null||!J.length)return H=_.Zl("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.hO(H),D.JSC$15367_commandHandler.resolveCommand(Q),Z.return();n.toggleSubtitles();T=n.isSubtitlesOn()?_.Zl("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Zl("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");y=_.hO(T);D.JSC$15367_commandHandler.resolveCommand(y);_.yz(Z)})};
qE[L$]=[_.y$V,_.fH];var X5=function(V){this.JSC$15370_playerPromise=V};
_.v(X5,EQ);X5.prototype.resolveCommand=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return(f=_.g(V,h4V))?_.b(H,D.JSC$15370_playerPromise,2):H.return();n=H.yieldResult;t=n.getVideoData().video_id;f.videoId===t&&(J=Number(f.offsetFromVideoStartMilliseconds),J>=0&&n.seekTo(J/1E3));_.yz(H)})};
X5[L$]=[_.nX];var HUr=_.HR("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),EI=function(V){this.store=V};
_.v(EI,EQ);
var wu6=function(V){var D,f,n,t;return _.w(function(J){if(J.nextAddress==1)return D=_.XB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,f=_.XB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,n=D||f,V.mainAppPlayer=new $$(n),_.b(J,V.mainAppPlayer.api,2);t=J.yieldResult;t.addEventListener("onStateChange",V.JSC$15374_playerStateChangeListener.bind(V));document.addEventListener("yt-page-data-updated",V.pauseOnNavigation.bind(V));window.addEventListener("state-navigatestart",
V.pauseOnNavigation.bind(V));_.yz(J)})};
EI.prototype.JSC$15374_playerStateChangeListener=function(V){switch(V){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"}QME(this)};
var QME=function(V){V.store.dispatch(_.y1("sfvAudioItemCurrentlyPlayingEntity",HUr,{key:HUr,externalVideoId:V.externalVideoId,sfvAudioItemPlaybackState:V.playbackState,nowPlayingEntityValue:V.nowPlayingEntityValue}))};
EI.prototype.pauseOnNavigation=function(){var V=this,D,f,n,t;return _.w(function(J){if(J.nextAddress==1){if(!V.mainAppPlayer){var H=new _.cI("Error: mainAppPlayer is unavailable",V.mainAppPlayer);_.NG(H);return J.return()}return _.b(J,V.mainAppPlayer.api,2)}D=J.yieldResult;n=(f=D)==null?void 0:f.getPlayerState();n!==1||(t=D)!=null&&t.pauseVideo();_.yz(J)})};
EI.prototype.playVideo=function(V,D,f){var n=this,t,J;return _.w(function(H){if(H.nextAddress==1)return _.b(H,(t=n.mainAppPlayer)==null?void 0:t.api,2);J=H.yieldResult;if(!n.mainAppPlayer||!J){var Q=new _.cI("Error: mainAppPlayer is unavailable",n.mainAppPlayer);_.NG(Q);return H.return()}return _.b(H,n.mainAppPlayer.loadVideoWithPlayerVars({videoId:n.externalVideoId,audio_only:"1",start:V/1E3,end:V/1E3+D,player_params:f}),0)})};
EI.prototype.pauseVideo=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1){if(!V.mainAppPlayer){var t=new _.cI("Error: mainAppPlayer is unavailable",V.mainAppPlayer);_.NG(t);return n.return()}return _.b(n,V.mainAppPlayer.api,2)}D=n.yieldResult;(f=D)==null||f.pauseVideo();_.yz(n)})};
EI.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W;return _.w(function(I){if(I.nextAddress==1)return f=_.g(V,g9r),t=(n=f)==null?void 0:n.nowPlayingEntityValue,H=(J=f)==null?void 0:J.externalVideoId,l=Number((Z=(Q=f)==null?void 0:(T=Q.defaultStartPoints)==null?void 0:(y=T[0])==null?void 0:y.offsetMs)!=null?Z:"0"),C=Number((z=(G=f)==null?void 0:(F=G.defaultStartPoints)==null?void 0:(k=F[0])==null?void 0:(d=k.duration)==null?void 0:d.seconds)!=null?z:"15"),W=(O=
(A=f)==null?void 0:A.playerParams)!=null?O:"",t&&H?D.mainAppPlayer?I.jumpTo(2):_.b(I,wu6(D),2):I.return();if(I.nextAddress!=6){if(D.nowPlayingEntityValue&&t===D.nowPlayingEntityValue)return D.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.b(I,D.pauseVideo(),0):_.b(I,D.playVideo(l,C,W),0);D.externalVideoId=H;D.nowPlayingEntityValue=t;D.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.b(I,D.playVideo(l,C,W),6)}QME(D);return I.jumpTo(0)})};
EI[L$]=[Jx];var A3=function(V){this.JSC$15394_commandHandler=V};
_.v(A3,EQ);A3.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return(n=_.g(V,TAF))?_.b(T,_.JY(),2):T.return();t=T.yieldResult;if(!t)return T.return();(J=p0L(t))?f.JSC$15394_commandHandler.resolveCommand(J,D):(H=_.Zl("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.hO(H),f.JSC$15394_commandHandler.resolveCommand(Q));_.yz(T)})};
A3[L$]=[_.fH];var ad=function(V){this.JSC$15397_playerPromise=V};
_.v(ad,EQ);ad.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1){f=_.g(V,U7Y);if(!f)return Q.return();n=f.overlayRenderer;return n?(t=_.g(n,K5E))?_.b(Q,D.JSC$15397_playerPromise,3):Q.jumpTo(0):Q.return()}J=Q.yieldResult;J.renderChapterSeekingAnimation(1,_.LA(t.text),(H=t.icon)==null?void 0:H.iconType);_.yz(Q)})};
ad[L$]=[_.nX];var YI=function(V){this.store=V};
_.v(YI,EQ);
YI.prototype.resolveCommand=function(V){var D=this,f,n,t;return _.w(function(J){if(J.nextAddress==1){f=_.g(V,TTP);if(!f)return J.return();n="";(t=D.store.getState().collabInviteLink)&&f.id===t.playlistId?n=t.inviteLinkURL:f.shortUrl&&(n=f.shortUrl);return n?_.b(J,navigator.clipboard.writeText(n),3):J.jumpTo(0)}var H={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Zl("COPY_LINK_SUCCESS_TOAST")}}}}};_.DY().resolve(_.fH).resolveCommand(H);_.yz(J)})};
YI[L$]=[Hf];var $I=function(V,D){this.innertubeTransportService=V;this.JSC$15407_commandHandler=D};
_.v($I,EQ);$I.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){if(F.nextAddress==1)return(n=_.g(V,_.Xb))?_.b(F,_.ie(f.innertubeTransportService,V,(t=D)==null?void 0:t.form),2):F.return();(J=F.yieldResult)&&J.errorMetadata&&(H=J,Q=_.hO(H.error.message),f.JSC$15407_commandHandler.resolveCommand(Q));T=J;if((y=T)==null?0:y.actions)for(Z=_.r(T.actions),l=Z.next();!l.done;l=Z.next())G=l.value,f.JSC$15407_commandHandler.resolveCommand(G);_.yz(F)})};
$I[L$]=[_.CR,_.fH];var iO=function(){};
_.v(iO,EQ);iO.prototype.resolveCommand=function(V){var D;return _.w(function(f){D=_.g(V,nNp);if(!D)return f.return();(new ZvF(D)).show();_.yz(f)})};_.SS=new _.IH("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Wf=function(V,D,f,n){this.store=V;this.innertubeTransportService=D;this.controller=f;this.JSC$15415_commandHandler=n};
_.v(Wf,EQ);
Wf.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ,ZZ,sd,NU,Bn;return _.w(function(aY){if(aY.nextAddress==1){n=_.g(V,_.NT);if(!n)return aY.return();if(n.clientActions){t=_.r(n.clientActions);for(J=t.next();!J.done;J=t.next())H=J.value,f.JSC$15415_commandHandler.resolveCommand(H);var Ed,V0=D==null?void 0:(Ed=D.form)==null?void 0:Ed.element;V0&&_.PA(V0,"yt-dismissible-item-action",n.clientActions)}return _.b(aY,_.ie(f.innertubeTransportService,V,(Q=D)==
null?void 0:Q.form),2)}if(T=aY.yieldResult)T.errorMetadata?(y=T,Z=_.hO(y.error.message),f.JSC$15415_commandHandler.resolveCommand(Z),"error"in T&&((l=D)==null?0:(G=l.commandController)==null?0:G.onServerError)&&((F=D)==null||(k=F.commandController)==null||k.onServerError(V,T))):(d=D)==null||(z=d.commandController)==null||(A=(C=z).onSuccess)==null||A.call(C,V,T);O=T;((W=O)==null?0:W.collaborationInviteLink)&&n.playlistId&&(_.c("web_enable_invite_collaborators_link")||_.c("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
f.store.dispatch(_.nA({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:n.playlistId,inviteLinkUrl:O.collaborationInviteLink}}));((I=O)==null?0:I.redirectEndpoint)&&f.JSC$15415_commandHandler.resolveCommand(O.redirectEndpoint);((x=O)==null?0:(oY=x.newHeader)==null?0:oY.playlistHeaderRenderer)?TdV(f.controller,O.newHeader.playlistHeaderRenderer):((wZ=O)==null?0:(ZZ=wZ.newHeader)==null?0:ZZ.musicEditablePlaylistDetailHeaderRenderer)&&TdV(f.controller,O.newHeader.musicEditablePlaylistDetailHeaderRenderer);
f.controller.playlistVideoListElement&&((sd=O)==null?0:(NU=sd.playlistEditResults)==null?0:(Bn=NU[0])==null?0:Bn.playlistEditVideoAddedResultData)&&((V0=f.controller.playlistVideoListElement)==null||V0.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:O.playlistEditResults[0].playlistEditVideoAddedResultData})));_.yz(aY)})};
Wf[L$]=[Hf,_.CR,_.SS,_.fH];var pk=function(V,D){this.controller=V;this.JSC$15425_commandHandler=D};
_.v(pk,EQ);pk.prototype.resolveCommand=function(V,D){var f=this,n,t,J;return _.w(function(H){n=_.g(V,bpl);f.controller.showRefreshPill&&((t=n)==null?0:t.command)&&(f.JSC$15425_commandHandler.resolveCommand((J=n)==null?void 0:J.command,D),f.controller.showRefreshPill=!1);_.yz(H)})};
pk[L$]=[_.U$,_.fH];var Lk=function(V,D){this.store=V;this.JSC$15429_commandHandler=D||_.bS.instance};
_.v(Lk,EQ);Lk.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){n=_.g(V,szY);t=f.store.getState().radioButtonGroup;if((J=n)==null?0:J.command)f.JSC$15429_commandHandler.resolveCommand((H=n)==null?void 0:H.command,D);else if(t&&((Q=n)==null?void 0:Q.formId)===t.currentFormId)for(T=Object.values(t.commandsMap),y=_.r(T),Z=y.next();!Z.done;Z=y.next())l=Z.value,(G=_.Xo(l))&&f.JSC$15429_commandHandler.resolveCommand(G,D);_.yz(F)})};
Lk[L$]=[_.C1];var Id=new _.IH("USER_PREFS");var OI=function(V){this.JSC$15434_prefCookie=V};
_.v(OI,EQ);OI.prototype.resolveCommand=function(V){var D=this,f;return _.w(function(n){(f=_.g(V,Ogp))&&typeof f.useListView==="boolean"&&(_.eJ(0,155,f.useListView),D.JSC$15434_prefCookie.save());_.yz(n)})};
OI[L$]=[Id];var xI=function(V){this.JSC$15438_prefCookie=V};
_.v(xI,EQ);xI.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H;return _.w(function(Q){f=_.g(V,Pg6);if((n=f)==null||!n.gl)return Q.return();t=f.gl;J={persist_gl:"1",gl:t};D.JSC$15438_prefCookie.set("gl",t);D.JSC$15438_prefCookie.save();H=hlr(J);_.SL(H);_.yz(Q)})};
xI[L$]=[Id];var ME=function(V){this.JSC$15442_prefCookie=V};
_.v(ME,EQ);ME.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){f=_.g(V,yDo);if(!f)return t.return();n=!1;f.flagNum&&typeof f.value==="boolean"?(_.eJ(0,f.flagNum,f.value),n=!0):f.key&&typeof f.stringValue==="string"&&(D.JSC$15442_prefCookie.set(f.key,f.stringValue),n=!0);n&&D.JSC$15442_prefCookie.save();_.yz(t)})};
ME[L$]=[Id];var h3=new _.IH("PREF_STORAGE_PROMISE_TOKEN");var UI=function(V){this.JSC$15446_prefStoragePromise=V};
_.v(UI,EQ);UI.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return(f=_.g(V,jzH))?_.b(t,D.JSC$15446_prefStoragePromise,2):t.return();n=t.yieldResult;return n===void 0||f.key===void 0||f.value===void 0?t.return():_.b(t,n.set(f.key,f.value),0)})};
UI[L$]=[h3];var bUE=function(V){this.innertubeTransportService=V};
_.v(bUE,EQ);bUE.prototype.resolveCommand=function(V,D){var f=this,n,t;return _.w(function(J){(n=_.g(V,_.Mau))&&n&&n.isFirstRequest&&(_.mg("search_overview_answer"),_.zm("so_rq",void 0,"search_overview_answer"));return _.b(J,_.ie(f.innertubeTransportService,V,(t=D)==null?void 0:t.form),0)})};
bUE[L$]=[_.CR];var KEF=function(){};
_.v(KEF,EQ);
KEF.prototype.resolveCommand=function(V){var D,f,n,t,J,H,Q,T,y;return _.w(function(Z){D=_.g(V,MNL);if((f=D)==null?0:f.sectionIdentifier){if(D.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(t=(n=document.getElementsByTagName(D.sectionIdentifier))==null?void 0:n.item(0))t.scrollIntoView({behavior:"smooth"}),(J=Ys9(t))&&J.focus({preventScroll:!0});return Z.return()}H=document.querySelector("[section-identifier="+D.sectionIdentifier+"]");Q=document.querySelector("[section-identifier="+D.referenceSectionIdentifier+
"]");if(!H)return Z.return();T=D.verticalScrollOffsetDp?D.verticalScrollOffsetDp:0;Q&&(T-=Q.offsetTop);window.scrollTo({top:H.offsetTop+T,behavior:"smooth"});(y=Ys9(H))&&y.focus({preventScroll:!0})}_.yz(Z)})};var V5=function(V){this.JSC$15458_commandHandler=V};
_.v(V5,EQ);
V5.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T;return _.w(function(y){if(y.nextAddress==1){f=_.g(V,GNF);if(!f||!f.imageBytes||!navigator.clipboard)return y.return();if(f.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.NG(Error("Gi")),y.return();_.wx(y,2);t=(n=f)==null?void 0:n.imageBytes;J=t.replace(/-/g,"+").replace(/_/g,"/");H=d$X(J);Q={};T=[new ClipboardItem((Q[H.type]=H,Q))];return _.b(y,navigator.clipboard.write(T),4)}if(y.nextAddress!=2)return f.successCommand&&
D.JSC$15458_commandHandler.resolveCommand(f.successCommand),_.YJ(y,0);_.KW(y);f.errorCommand&&D.JSC$15458_commandHandler.resolveCommand(f.errorCommand);_.yz(y)})};
V5[L$]=[_.fH];var Dy=function(V,D){this.innertubeTransportService=V;this.JSC$15462_commandHandler=D};
_.v(Dy,EQ);Dy.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return(n=_.g(V,ePL))?_.b(T,_.ie(f.innertubeTransportService,V,(t=D)==null?void 0:t.form),2):T.return();(J=T.yieldResult)&&J.errorMetadata&&n.onFailureCommand&&f.JSC$15462_commandHandler.resolveCommand(n.onFailureCommand);H=J;((Q=H)==null?0:Q.shareCommand)&&f.JSC$15462_commandHandler.resolveCommand(H.shareCommand,D);_.yz(T)})};
Dy[L$]=[_.CR,_.fH];var fb=function(){};
_.v(fb,EQ);fb.prototype.resolveCommand=function(V){var D,f;return _.w(function(n){D=_.g(V,QzF);if(!D||!navigator.share)return n.return();f={url:D.url};try{return n.return(navigator.share(f))}catch(t){}_.yz(n)})};var nb=function(){};
_.v(nb,EQ);nb.prototype.resolveCommand=function(){return _.w(function(V){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.yz(V)})};var tK=function(V){this.JSC$15472_navigationConfirmationService=V};
_.v(tK,EQ);tK.prototype.resolveCommand=function(){var V=this;return _.w(function(D){V.JSC$15472_navigationConfirmationService.cancelPendingNavigation();_.yz(D)})};
tK[L$]=[wD];var P3=function(V){this.JSC$15475_screenManager=V};
_.v(P3,EQ);P3.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y;return _.w(function(Z){t=(n=D.form)==null?void 0:n.event;H=(J=D.form)==null?void 0:J.element;if(!t)throw new _.cI("Event not passed in when resolving command");Q=_.r(t.composedPath());for(T=Q.next();!T.done;T=Q.next())if(y=T.value,y.tagName==="YT-COPY-LINK-RENDERER")return y.copyUrlToClipboard(),H&&_.at(f.JSC$15475_screenManager,H),Z.return();_.yz(Z)})};
P3[L$]=[_.cO];var oA=function(){this.JSC$15479_miniAppClientDataProvider=_.DY().resolve(_.RJ)};
_.v(oA,EQ);oA.prototype.resolveCommand=function(){var V=this,D,f;return _.w(function(n){if(V.JSC$15479_miniAppClientDataProvider.clientData.has("video_id")){var t=V.JSC$15479_miniAppClientDataProvider,J=t.clientData.get("video_id");J&&t.clientData.delete("video_id");D="https://youtube.com/watch?v="+J;f=G6(D);if(f===void 0)throw Error("Hi`"+D);_.R3(window,f)}_.yz(n)})};var JK=function(){};
_.v(JK,EQ);JK.prototype.resolveCommand=function(){return _.w(function(V){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.yz(V)})};var rL=function(){};
_.v(rL,EQ);rL.prototype.resolveCommand=function(){var V;return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.TAZ(window.document.documentElement),2);(V=document.querySelector("mini-app-container-view-model iframe"))&&V.focus();_.yz(D)})};var H3=function(V){this.JSC$15486_navigationConfirmationService=V};
_.v(H3,EQ);
H3.prototype.resolveCommand=function(){var V=this;return _.w(function(D){var f=V.JSC$15486_navigationConfirmationService,n=_.DY().resolve(_.e2),t;if(((t=f.navigateParams)==null?void 0:t.data)!==void 0){var J;_.lqo(n,f.navigateParams.endpoint,f.navigateParams.data,(J=f.navigateParams.navigationType)!=null?J:1,f.navigateParams.tempData,f.navigateParams.isMiniplayer,void 0,!0);f.navigateParams=void 0;f.customConfirmationCommand=void 0}else f.navigateParams&&(n.navigate(f.navigateParams.endpoint,f.navigateParams.reload,
f.navigateParams.params,f.navigateParams.tempData,f.navigateParams.requestType,f.navigateParams.createScreenConfig,!0),f.navigateParams=void 0,f.customConfirmationCommand=void 0);_.yz(D)})};
H3[L$]=[wD];var wL=function(){};
_.v(wL,EQ);wL.prototype.resolveCommand=function(){return _.w(function(V){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.yz(V)})};var Q5=function(V){this.JSC$15491_prefStorage=V};
_.v(Q5,EQ);Q5.prototype.resolveCommand=function(){var V=this,D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,V.JSC$15491_prefStorage,2);case 2:return(D=n.yieldResult)?_.b(n,D.set("sfvle",!1),3):n.return();case 3:return _.b(n,D.set("sfvles",!0),4);case 4:f=_.Gm(),_.eJ(0,203,!1),_.eJ(0,204,!0),f.save(),_.yz(n)}})};
Q5[L$]=[h3];var Tc=function(V){this.JSC$15494_prefStorage=V};
_.v(Tc,EQ);Tc.prototype.resolveCommand=function(){var V=this,D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,V.JSC$15494_prefStorage,2);case 2:return(D=n.yieldResult)?_.b(n,D.set("sfvle",!0),3):n.return();case 3:return _.b(n,D.set("sfvles",!0),4);case 4:f=_.Gm(),_.eJ(0,203,!0),_.eJ(0,204,!0),f.save(),_.yz(n)}})};
Tc[L$]=[h3];_.yzU=new _.IH("SNACKBAR_CONTROLLER_TOKEN");_.ZUP=new _.IH("SHOULD_SHOW_PIVOT_BAR_TOKEN");var bt=function(V){this.controller=V};
_.v(bt,EQ);bt.prototype.resolveCommand=function(V){var D=this,f;return _.w(function(n){f=_.g(V,zPE);if(!f)return n.return();var t=D.controller;t.closeSnackbarFn&&t.closeSnackbarFn();_.yz(n)})};
bt[L$]=[_.yzU];var Kb=function(V,D){this.controller=V;this.sheetController=D};
_.v(Kb,EQ);Kb.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T;return _.w(function(y){n=_.g(V,C7l);if(!n)return y.return();H=rzu(f.sheetController,(t=D)==null?void 0:(J=t.form)==null?void 0:J.element);Q=_.g(n.content,O9V);if(!Q)return y.return();var Z=f.controller,l=Q,G=(T=n.animationStyle)!=null?T:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Z.showSnackbarFn)Z.showSnackbarFn({snackbarViewModel:l,animationStyle:G,durationMs:n.durationSeconds*1E3,target:H});else throw Error("qj");_.yz(y)})};
Kb[L$]=[_.yzU,_.Ga];var y5=function(){};
_.v(y5,EQ);y5.prototype.resolveCommand=function(V){var D;return _.w(function(f){D=_.g(V,Zpo);if(!D||typeof D.key!=="string"||typeof D.value!=="string")return f.return();window.localStorage.setItem(D.key,D.value);_.yz(f)})};var Zy=function(V){this.store=V};
_.v(Zy,EQ);Zy.prototype.resolveCommand=function(V){var D=this,f;return _.w(function(n){f=_.g(V,Qn9);if(!f||!f.stepId||!f.token)return n.return();D.store.dispatch(j06({stepId:f.stepId,token:f.token,isSelected:!1}));_.yz(n)})};
Zy[L$]=[Hf];var jy=function(V,D,f){this.innertubeTransportService=V;this.store=D;this.JSC$15513_screenManager=f};
_.v(jy,EQ);
jy.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I,x,oY,wZ;return _.w(function(ZZ){f=_.g(V,wbY);if(!f||(n=f.stepIds)==null||!n.length)return ZZ.return();t=D.store.getState().talkToRecs;J=[];H=[];Q=_.r(f.stepIds);for(T=Q.next();!T.done;T=Q.next())for(y=T.value,Z=void 0,(l=(Z=t.stepStates[y])==null?void 0:Z.userQuery)&&H.push({userQuery:l.userQuery,userQueryToken:l.token}),G=void 0,F=(G=t.stepStates[y])==null?void 0:G.selectionStates,k=_.r(Object.entries(F)),d=
k.next();!d.done;d=k.next())z=d.value,C=_.r(z),A=C.next().value,O=C.next().value,W=A,I=O,I.isSelected&&J.push(W);x={selectedChipTokens:J,userQueries:H,submittedStepIds:f.stepIds};oY={browseTalk2recsFormData:x};f.browseEndpoint?(wZ=V,_.m7(wZ,_.jL,f.browseEndpoint)):f.command&&(wZ=f.command);return wZ?_.b(ZZ,_.ie(D.innertubeTransportService,wZ,{formData:oY,disableCache:!0}).then(function(sd){(sd==null?0:sd.trackingParams)&&D.JSC$15513_screenManager.graftServerVe(sd==null?void 0:sd.trackingParams)}),
0):ZZ.return()})};
jy[L$]=[_.CR,Hf,_.cO];var lt=function(V){this.store=V};
_.v(lt,EQ);lt.prototype.resolveCommand=function(V){var D=this,f;return _.w(function(n){f=_.g(V,weR);if(!f||!f.stepId||!f.token)return n.return();D.store.dispatch(j06({stepId:f.stepId,token:f.token,isSelected:!0}));_.yz(n)})};
lt[L$]=[Hf];var Gc=function(V){this.store=V};
_.v(Gc,EQ);Gc.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q;return _.w(function(T){n=_.g(V,Q$p);if(!n||!n.stepId||!n.userQueryToken)return T.return();Q=(H=(t=D)==null?void 0:(J=t.form)==null?void 0:J.userQuery)!=null?H:"";f.store.dispatch(_.nA({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:n.stepId,userQueryToken:n.userQueryToken,userQuery:Q}}));_.yz(T)})};
Gc[L$]=[Hf];_.jMF=new _.IH("TIMELY_ACTIONS_CONTROLLER_TOKEN");var ey=function(V){this.controller=V};
_.v(ey,EQ);ey.prototype.resolveCommand=function(V){var D=this,f,n,t,J;return _.w(function(H){f=_.g(V,Ipl);if(!f)return H.return();n=f;t=n.id;J=n.isVisible;if(t===void 0||J===void 0)return H.return();var Q;(Q=D.controller.timelyActionsMap.get(t))==null||Q(t,J);_.yz(H)})};
ey[L$]=[_.jMF];var lME=function(){this.timelyActionsMap=new Map};var c3=function(V){this.JSC$15540_commandHandler=V};
_.v(c3,EQ);c3.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H;return _.w(function(Q){f=_.g(V,_.jt);if(!f)return Q.return();J=(n=f.item)==null?void 0:(t=n.notificationTextRenderer)==null?void 0:t.successResponseText;if(!J)return Q.return();H=_.M_(J);D.JSC$15540_commandHandler.resolveCommand(H);_.yz(Q)})};
c3[L$]=[_.fH];var F$=function(V,D){this.innertubeTransportService=V;this.JSC$15545_playerApiPromise=D};
_.v(F$,EQ);
F$.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){if(l.nextAddress==1)return _.b(l,D.JSC$15545_playerApiPromise,2);f=l.yieldResult;n=f.getOption("captions","track");t=Object.assign({},_.g(V,_.EN6));(H=(J=f.getVideoData())==null?void 0:J.video_id)?t.externalVideoId=H:_.$w(Error("Ii"));if((Q=n)==null?0:Q.languageCode)t.languageCode=n.languageCode;if((T=n)==null?0:T.kind)t.kind=n.kind;if((y=n)==null?0:y.name)t.name=n.name;Z=Object.assign({},V,{getTranscriptEndpoint:t});return _.b(l,
_.ie(D.innertubeTransportService,Z),0)})};
F$[L$]=[_.CR,_.nX];var gL=function(){};
_.v(gL,EQ);gL.prototype.resolveCommand=function(V){var D,f,n,t,J,H,Q,T;return _.w(function(y){D=_.g(V,k$U);if((f=D)==null||!f.paramKeyValuePairs)return y.return();n=window.location.href;t=_.r(D.paramKeyValuePairs);for(J=t.next();!J.done;J=t.next())H=J.value,H.key&&H.value&&(Q={},n=_.LZ(n,(Q[H.key]=H.value,Q)));T=_.DY().resolve(_.J$);_.o0(T,n);_.yz(y)})};var v3=function(V,D){this.JSC$15552_commandHandler=V;this.innertubeTransportService=D};
_.v(v3,EQ);
v3.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O;return _.w(function(W){switch(W.nextAddress){case 1:return(J=(n=D)==null?void 0:(t=n.form)==null?void 0:t.element)&&_.WC(J),H=_.Gm().get("hl"),Q="",_.wx(W,2),_.b(W,x$n(H),4);case 4:Q=W.yieldResult;_.YJ(W,3);break;case 2:return _.KW(W),J&&_.pL(J),_.NG(Error("Ki"),"ERROR"),W.return();case 3:T=_.g(V,F5r);if(!T)return J&&_.pL(J),W.return();(l=(y=T.commerceActionConfig)==null?void 0:(Z=y.commandLifeCycleConfig)==null?
void 0:Z.onStartCommand)&&f.JSC$15552_commandHandler.resolveCommand(l);return _.b(W,_.ie(f.innertubeTransportService,V,{client_data:{paymentsClientToken:{token:Q}}}),5);case 5:(G=W.yieldResult)?(J&&_.pL(J),((z=G)==null?0:z.command)&&f.JSC$15552_commandHandler.resolveCommand(G.command),(O=(C=T.commerceActionConfig)==null?void 0:(A=C.commandLifeCycleConfig)==null?void 0:A.onSuccessCommand)&&f.JSC$15552_commandHandler.resolveCommand(O)):(J&&_.pL(J),_.NG(Error("Li")),(d=(F=T.commerceActionConfig)==null?
void 0:(k=F.commandLifeCycleConfig)==null?void 0:k.onFailureCommand)&&f.JSC$15552_commandHandler.resolveCommand(d)),_.yz(W)}})};
v3[L$]=[_.fH,_.CR];var kP=function(V,D,f){this.store=V;this.JSC$15568_commandHandler=D;this.innertubeTransportService=f};
_.v(kP,EQ);
kP.prototype.resolveCommand=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l;return _.w(function(G){n=_.g(V,gco);t=n.googlePaymentPayload;n.onStartCommand&&f.JSC$15568_commandHandler.resolveCommand(n.onStartCommand);J=t.encryptedPurchaseParams;H=t.ypcLogWalletAnalyticDataEndpoint;Q=n.serializedTransactionFlowLoggingParams;T=t.serializedPaymentsClientParams;y=n.ypcCujContext;l=U$R(f.innertubeTransportService,(Z=D)==null?void 0:Z.form,J,H,Q,T,y);return G.return(l.then(function(F){MxX(D==null?void 0:D.form,
!1);var k=f.store,d=f.JSC$15568_commandHandler,z=F.integratorData;z==null||z===""||F.error!=null?(String(F.error)==="-1"&&n.onDismissCommand?d.resolveCommand(n.onDismissCommand):String(F.error)!=="-1"&&n.onFailureCommand&&d.resolveCommand(n.onFailureCommand),String(F.error)!=="-1"&&String(F.error)!=="132"&&_.NG(Error("Mi"),"ERROR")):(n.googlePaymentEntityKey&&k.dispatch(_.y1("commerceAcquisitionClientPayloadEntity",n.googlePaymentEntityKey,{key:n.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:z,
fundsGuaranteeCallbackClientData:F.integratorClientCallbackData}}})),n.onSuccessCommand&&d.resolveCommand(n.onSuccessCommand));_.Qv()},function(F){MxX(D==null?void 0:D.form,!1);
_.NG(F,"ERROR");n.onFailureCommand&&f.JSC$15568_commandHandler.resolveCommand(n.onFailureCommand)}))})};
kP[L$]=[Jx,_.fH,_.CR];var RA=function(V,D){this.JSC$15572_commandHandler=V;this.purchaseManager=D};
_.v(RA,EQ);
RA.prototype.resolveCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){f=_.g(V,vcY);((n=f)==null?0:(t=n.commandLifeCycleConfig)==null?0:t.onStartCommand)&&D.JSC$15572_commandHandler.resolveCommand(f.commandLifeCycleConfig.onStartCommand);if(!((J=f)==null?0:(H=J.googlePaymentPurchaseManagerPayload)==null?0:H.securePayloadBytes))return _.NG(Error("Ni"),"ERROR"),l.return();Q=BNU(_.rP(f.googlePaymentPurchaseManagerPayload.securePayloadBytes));T=_.Gm().get("hl");y=_.Sl();FQU(Q.serialize(),
T,function(G){y.resolve(G)},function(G){y.reject(G)},y.resolve);
Z=y.promise;return l.return(Z.then(function(G){if(G)if(G==null?0:G.errorCode){_.NG(Error("Oi`"+G.errorCode),"ERROR");var F,k;((F=f)==null?0:(k=F.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&D.JSC$15572_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}else if(G==null?0:G.isCancelled){var d,z;((d=f)==null?0:(z=d.commandLifeCycleConfig)==null?0:z.onCancelCommand)&&D.JSC$15572_commandHandler.resolveCommand(f.commandLifeCycleConfig.onCancelCommand)}else{var C,A;((C=f)==
null?0:(A=C.commandLifeCycleConfig)==null?0:A.onSuccessCommand)&&D.JSC$15572_commandHandler.resolveCommand(f.commandLifeCycleConfig.onSuccessCommand)}},function(G){_.NG(G,"ERROR");
var F,k;((F=f)==null?0:(k=F.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&D.JSC$15572_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}))})};
RA[L$]=[_.fH,gHo];var GMo=function(V,D){this.JSC$15580_commandHandler=V;this.commandAllowlistOverride=D;var f;this.commandAllowlist=(f=this.commandAllowlistOverride)!=null?f:Wj};
GMo.prototype.handleResponse=function(V,D,f){var n,t=D==null?void 0:(n=D.config)==null?void 0:n.command;if(!t||this.commandAllowlist.some(function(J){return!!_.g(t,J)})){D=void 0;
f!==void 0&&(D={form:{element:f}});V.onResponseReceivedCommand&&this.JSC$15580_commandHandler.resolveCommand(V.onResponseReceivedCommand,D);V.onResponseReceivedAction&&this.JSC$15580_commandHandler.resolveCommand(V.onResponseReceivedAction,D);V.onResponseReceivedEndpoint&&this.JSC$15580_commandHandler.resolveCommand(V.onResponseReceivedEndpoint,D);V.command&&this.JSC$15580_commandHandler.resolveCommand(V.command,D);if(V.onResponseReceivedCommands)for(f=_.r(V.onResponseReceivedCommands),n=f.next();!n.done;n=
f.next())this.JSC$15580_commandHandler.resolveCommand(n.value,D);if(V.onResponseReceivedActions)for(f=_.r(V.onResponseReceivedActions),n=f.next();!n.done;n=f.next())this.JSC$15580_commandHandler.resolveCommand(n.value,D);if(V.onResponseReceivedEndpoints)for(f=_.r(V.onResponseReceivedEndpoints),n=f.next();!n.done;n=f.next())this.JSC$15580_commandHandler.resolveCommand(n.value,D);if(V.actions)for(V=_.r(V.actions),f=V.next();!f.done;f=V.next())this.JSC$15580_commandHandler.resolveCommand(f.value,D)}};
GMo[L$]=[_.fH,_.Vx(mvY)];var e$6=new _.IH("INNERTUBE_TOKEN_SERVICE");var cz6=new _.IH("SCHEDULER_TOKEN");var FEH=function(V){this.scheduler=V;V={};this.tokenMap=(V.app={},V.user={},V)};
FEH.prototype.handleResponse=function(V,D){if(!D)throw Error("Pi");var f;if(V=(f=V.responseContext)==null?void 0:f.innertubeTokenJar){if(V.appTokens){var n,t,J;f=(n=D.innerTubeRequest.context)==null?void 0:(t=n.request)==null?void 0:(J=t.innertubeTokenJar)==null?void 0:J.appTokens;gRU(this,V.appTokens,this.tokenMap.app,f)}if(V.userTokens){var H,Q,T;D=(H=D.innerTubeRequest.context)==null?void 0:(Q=H.request)==null?void 0:(T=Q.innertubeTokenJar)==null?void 0:T.userTokens;gRU(this,V.userTokens,this.tokenMap.user,
D)}}};
FEH.prototype.processContext=function(V){V.request||(V.request={});var D=Object.keys(this.tokenMap.app).length,f=Object.keys(this.tokenMap.user).length;if(D||f)V.request.innertubeTokenJar={},D&&(V.request.innertubeTokenJar.appTokens=[].concat(_.sz(Object.values(this.tokenMap.app).flat()))),f&&(V.request.innertubeTokenJar.userTokens=[].concat(_.sz(Object.values(this.tokenMap.user).flat())))};
var gRU=function(V,D,f,n){D=_.r(D);for(var t=D.next(),J={};!t.done;J={token$jscomp$138:void 0},t=D.next()){J.token$jscomp$138=t.value;if(J.token$jscomp$138.type===void 0)throw new _.cI("InnerTube token has no type",J.token$jscomp$138);if(J.token$jscomp$138.clearTokens)f[J.token$jscomp$138.type]=[];else if(J.token$jscomp$138.value!==void 0){f[J.token$jscomp$138.type]||(f[J.token$jscomp$138.type]=[]);if(n!==void 0&&n.length){t=_.r(n);for(var H=t.next(),Q={};!H.done;Q={requestToken:void 0},H=t.next())Q.requestToken=
H.value,H=f[J.token$jscomp$138.type].findIndex(function(T){return function(y){return y===T.requestToken||(0,_.sB.equals)(y,T.requestToken)}}(Q)),H>-1&&f[J.token$jscomp$138.type].splice(H,1)}f[J.token$jscomp$138.type].push(J.token$jscomp$138);
J.token$jscomp$138.maxAgeSeconds&&Number(J.token$jscomp$138.maxAgeSeconds)>0&&V.scheduler.addLowPriorityJob(function(T){return function(){var y=f[T.token$jscomp$138.type].indexOf(T.token$jscomp$138);y>-1&&f[T.token$jscomp$138.type].splice(y,1)}}(J),Number(J.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.cI("InnerTube token has no value",J.token$jscomp$138);
}};
FEH[L$]=[cz6];var vRu=new _.IH("LOCAL_INNERTUBE_ROUTER_TOKEN"),kMl=new _.IH("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Cb=function(V){this.serviceMap=V};
Cb.prototype.shouldPreferLocalResponse=function(V,D){return(V=sMp(this,V))?V.shouldPreferLocalResponse(D):!1};
Cb.prototype.localInnertubeResponse=function(V,D){var f=this,n;return _.w(function(t){return(n=sMp(f,V))?t.return(n.localInnertubeResponse(D)):t.return(Promise.reject(Error("Qi")))})};
Cb.prototype.canProvideFallbackResponse=function(V,D){return(V=sMp(this,V))?V.canProvideFallbackResponse(D):!1};
Cb.prototype.localFallbackInnertubeResponse=function(V,D){var f=this,n;return _.w(function(t){return(n=sMp(f,V))?t.return(n.localFallbackInnertubeResponse(D)):t.return(Promise.reject(Error("Qi")))})};
var sMp=function(V,D){D=_.Qx(D);return D?(V=V.serviceMap[D])?V:null:null};
Cb[L$]=[kMl];var e9=function(){};
e9.prototype.shouldPreferLocalResponse=function(){return!1};
e9.prototype.localInnertubeResponse=function(){return _.w(function(V){return V.return(Promise.reject(Error("Ri")))})};
e9.prototype.canProvideFallbackResponse=function(){return!0};
e9.prototype.localFallbackInnertubeResponse=function(){var V,D,f;return _.w(function(n){V=kV("CLOSE_POPUP");D={openPopupAction:DjF()};f={actions:[V,D]};return n.return(f)})};var DpL=function(V,D){this.JSC$15630_upliftPromise=V;this.store=D};
_.P=DpL.prototype;_.P.shouldPreferLocalResponse=function(V){var D=V.videoId,f;if(f=D)f=Va3(this.store.getState().entities,V.videoId);return f&&DHx(this.store.getState().entities,D)?nZ9(this.store.getState().entities,V.playlistId):!1};
_.P.localInnertubeResponse=function(V){var D=this,f;return _.w(function(n){return(f=D.getPlayerResponse(V))?n.return(Promise.resolve(f)):n.return(Promise.reject(Error("Si")))})};
_.P.canProvideFallbackResponse=function(V){return!!V.videoId};
_.P.localFallbackInnertubeResponse=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.JSC$15630_upliftPromise,2);f=D.getPlayerResponse(V);var t;f?t=n.return(Promise.resolve(f)):t=FC(D.store.getState().entities,V.videoId)?n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Vc(_.Zl("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:loY()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Vc(_.Zl("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:jyL()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return t})};
_.P.getPlayerResponse=function(V){return ttd(this.store.getState().entities,V.videoId)};var G3=function(V,D){this.localPlayerService=V;this.localWatchNextService=D};
G3.prototype.shouldPreferLocalResponse=function(V){var D=V.playerRequest;V=V.watchNextRequest;return!!(D&&this.localPlayerService.shouldPreferLocalResponse(D)&&V&&this.localWatchNextService.shouldPreferLocalResponse(V))};
G3.prototype.localInnertubeResponse=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1){f=V.playerRequest;n=V.watchNextRequest;if(!f||!n)throw new _.cI("Missing streaming request",V);return _.b(H,D.localPlayerService.localInnertubeResponse(f),2)}if(H.nextAddress!=3)return t=H.yieldResult,_.b(H,D.localWatchNextService.localInnertubeResponse(n),3);J=H.yieldResult;return H.return({playerResponse:t,watchNextResponse:J})})};
G3.prototype.canProvideFallbackResponse=function(V){var D=V.playerRequest;V=V.watchNextRequest;return!!(D&&this.localPlayerService.canProvideFallbackResponse(D)&&V&&this.localWatchNextService.canProvideFallbackResponse(V))};
G3.prototype.localFallbackInnertubeResponse=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return f=V.playerRequest,n=V.watchNextRequest,f&&n?_.b(H,D.localPlayerService.localFallbackInnertubeResponse(f),2):H.return(Promise.reject(new _.cI("Missing streaming request",V)));if(H.nextAddress!=3)return t=H.yieldResult,_.b(H,D.localWatchNextService.localFallbackInnertubeResponse(n),3);J=H.yieldResult;return H.return({playerResponse:t,watchNextResponse:J})})};var Z1=function(V){this.JSC$15640_persistentStorePromiseAccessor=V};
Z1.prototype.shouldPreferLocalResponse=function(){return!1};
Z1.prototype.localInnertubeResponse=function(){return _.w(function(V){return V.return(Promise.reject(Error("Ti")))})};
Z1.prototype.canProvideFallbackResponse=function(){return!0};
Z1.prototype.localFallbackInnertubeResponse=function(){var V=this,D,f;return _.w(function(n){return n.nextAddress==1?_.b(n,V.JSC$15640_persistentStorePromiseAccessor(),2):n.nextAddress!=3?(D=n.yieldResult)?_.b(n,D.get("service:guide:fallback"),3):n.return(Promise.reject(Error("Ui"))):(f=n.yieldResult)&&_.PV(f)?n.return(tV9(_.PV(f))):n.return(Promise.reject(Error("Vi")))})};var cV=function(){};
cV.prototype.shouldPreferLocalResponse=function(){return!1};
cV.prototype.localInnertubeResponse=function(){return _.w(function(V){return V.return(Promise.reject(Error("Wi")))})};
cV.prototype.canProvideFallbackResponse=function(){return!0};
cV.prototype.localFallbackInnertubeResponse=function(){var V,D,f;return _.w(function(n){V=kV("CLOSE_POPUP");D={openPopupAction:DjF()};f={actions:[V,D]};return n.return(f)})};var y7=function(){this.urlMap=Bdo;this.fallbackCommand=_.K_};
y7.prototype.shouldPreferLocalResponse=function(V){return(V=V.url)?!!dVY(this,V):!1};
y7.prototype.localInnertubeResponse=function(V){var D=this,f;return _.w(function(n){return(f=V.url)?n.return(uqo(V,dVY(D,f))):n.return(Promise.reject(Error("Xi")))})};
y7.prototype.canProvideFallbackResponse=function(){return!0};
y7.prototype.localFallbackInnertubeResponse=function(V){var D=this,f,n,t,J,H,Q,T;return _.w(function(y){f=V.url;if(!f)return y.return(uqo(V,D.fallbackCommand));if(n=dVY(D,f))return y.return(uqo(V,n));t=void 0;J=_.Qx(f);J==="/watch"&&(H=_.Al(f,"v"))&&(T=(Q=_.Al(f,"list"))!=null?Q:void 0,t=_.U2(H,T));t||(t=D.fallbackCommand);return y.return(uqo(V,t))})};
var dVY=function(V,D){if(D)return V.urlMap[_.ab(D)]},uqo=function(V,D){D&&V.parentTrackingParams&&(D.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:V.parentTrackingParams}},D.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:D})};var j9=function(V,D,f){this.JSC$15650_upliftPromise=V;this.store=D;this.JSC$15650_persistentStorePromiseAccessor=f};
j9.prototype.shouldPreferLocalResponse=function(){return!1};
j9.prototype.localInnertubeResponse=function(){return _.w(function(V){return V.return(Promise.reject(Error("Yi")))})};
j9.prototype.canProvideFallbackResponse=function(){return!0};
j9.prototype.localFallbackInnertubeResponse=function(){var V=this;return _.w(function(D){return D.return(NdY(V))})};
var NdY=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,tx(V.JSC$15650_upliftPromise,V.store),2);D=n.yieldResult;f={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[fKU(D)]}}}};return n.return(mVY(V,f))})},mVY=function(V,D){var f,n;
return _.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$15650_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return f=t.yieldResult,_.b(t,oN(f),3);n=t.yieldResult;return t.return({responseContext:{},contents:D,topbar:n})})};var bY=function(V,D,f){this.JSC$15657_upliftPromise=V;this.store=D;this.JSC$15657_persistentStorePromiseAccessor=f};
bY.prototype.shouldPreferLocalResponse=function(V){var D=V.videoId;return D&&Va3(this.store.getState().entities,D)&&DHx(this.store.getState().entities,D)?nZ9(this.store.getState().entities,V.playlistId):!1};
bY.prototype.localInnertubeResponse=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return(f=V.videoId)?_.b(t,D.JSC$15657_upliftPromise,2):t.return(Promise.reject(Error("Zi")));if(t.nextAddress!=3)return _.b(t,z$Y(D,V,f),3);n=t.yieldResult;return t.return(R$l(D,n,f))})};
bY.prototype.canProvideFallbackResponse=function(V){return V.videoId?!0:!1};
bY.prototype.localFallbackInnertubeResponse=function(V){var D=this,f,n,t,J;return _.w(function(H){switch(H.nextAddress){case 1:return(f=V.videoId)?_.b(H,D.JSC$15657_upliftPromise,2):H.return(Promise.reject(Error("Zi")));case 2:return _.b(H,z$Y(D,V,f),3);case 3:n=H.yieldResult;if(FC(D.store.getState().entities,f)){H.jumpTo(4);break}return _.b(H,tx(D.JSC$15657_upliftPromise,D.store),5);case 5:return t=H.yieldResult,H.return(CPu(n,t));case 4:return Va3(D.store.getState().entities,f)&&DHx(D.store.getState().entities,
f)?H.return(R$l(D,n,f)):(J={title:_.Vc(_.Zl("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:loY()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},H.return(CPu(n,J)))}})};
var z$Y=function(V,D,f){var n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return n=D.playlistId,t=_.U2(f,n),_.b(T,V.JSC$15657_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return J=T.yieldResult,_.b(T,oN(J),3);H=T.yieldResult;Q={responseContext:{},currentVideoEndpoint:t,topbar:H};return T.return(Q)})},R$l=function(V,D,f){if(V=FC(V.store.getState().entities,f)){var n;
f=V.videoEntity;var t,J={title:DH(f.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.fA((n=f.localizedStrings)==null?void 0:n.viewCount),viewCount:_.fA((t=f.localizedStrings)==null?void 0:t.viewCount)}}};f.publishedTimestampMillis&&(J.dateText=_.fA(LJ9(new Date(Number(f.publishedTimestampMillis)))));n={videoPrimaryInfoRenderer:J};t=V.videoEntity;V=V.channelEntity;V={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:DH(_.Zl("SHOW_MORE",void 0,"Show more")),
showLessText:DH(_.Zl("SHOW_LESS",void 0,"Show less")),description:t.formattedDescription,owner:{videoOwnerRenderer:{title:DH(V.title),thumbnail:V.avatar}}}};D.contents={twoColumnWatchNextResults:{results:{results:{contents:[n,V]}}}}}return D},CPu=function(V,D){V.contents={singleColumnWatchNextResults:{results:{results:{contents:[fKU(D)]}}}};
return V};var lY=function(V,D,f){this.JSC$15662_upliftPromise=V;this.store=D;this.JSC$15662_persistentStorePromiseAccessor=f};
lY.prototype.shouldPreferLocalResponse=function(){return!1};
lY.prototype.localInnertubeResponse=function(){return _.w(function(V){return V.return(Promise.reject(Error("$i")))})};
lY.prototype.canProvideFallbackResponse=function(){return!0};
lY.prototype.localFallbackInnertubeResponse=function(){var V=this,D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return _.b(J,V.JSC$15662_persistentStorePromiseAccessor(),2);case 2:return D=J.yieldResult,_.b(J,oN(D),3);case 3:return f=J.yieldResult,n={responseContext:{},topbar:f},_.b(J,V.JSC$15662_upliftPromise,4);case 4:return _.b(J,tx(V.JSC$15662_upliftPromise,V.store),5);case 5:return t=J.yieldResult,n.watchStatus={backgroundPromoRenderer:t},J.return(n)}})};var qPL=new _.IH("ENDPOINT_MAP");var XuV=function(){var V=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return V.sequenceMap}}},KoE=function(V,D,f){var n,t=(n=D.config)==null?void 0:n.sequenceStrategy;
if(!t)return f();V.sequenceMap.has(t.sequenceKey)||V.sequenceMap.set(t.sequenceKey,[]);V=V.sequenceMap.get(t.sequenceKey);switch(t.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return ERY(V,D,f);case "REQUEST_SEQUENCE_TYPE_REPLACE":return AzY(V,D,f);default:throw new _.cI("Request could not be sequenced",D);}},ERY=function(V,D,f){var n,t,J;
return _.w(function(H){V.length>0?(t=V[V.length-1],n=t.responsePromise.then(function(){return f()})):n=f();
J={request:D,responsePromise:n};V.push(J);aME(V,J);return H.return(J.responsePromise)})},AzY=function(V,D,f){f=f();
if(V.length>0)for(var n=_.r(V),t=n.next();!t.done;t=n.next())t.value.responsePromise=f;var J={request:D,responsePromise:f};V.push(J);aME(V,J);return Promise.resolve().then(function(){return V.indexOf(J)>0?J.responsePromise.then(function(H){return Object.assign({},H,{sequenceMetaData:{skipProcessing:!0}})}):J.responsePromise})},aME=function(V,D){D.responsePromise.then(function(){var f=V.indexOf(D);
f>-1&&V.splice(f,1)})};var YPl=new _.IH("REQUEST_SEQUENCING");var qv=function(){};
_.v(qv,PX);qv.prototype.getApiPaths=function(){return[]};
qv.prototype.getExtension=function(V){return _.g(V,NK6)};
qv.prototype.JSC$11138_buildRequest=function(V,D){V.recaptchaToken=D.recaptchaToken};
qv.prototype.getApiUrl=function(){return"/das_captcha"};var X$=function(){};
_.v(X$,PX);X$.prototype.getApiPaths=function(){return c5H};
X$.prototype.getExtension=function(V){return _.g(V,P4l)};
X$.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.createBackstagePostParams&&(V.createBackstagePostParams=D.createBackstagePostParams);f.comment_text&&(V.commentText=f.comment_text);if(f.attached_video_id)V.videoAttachment={videoId:f.attached_video_id};else if(f.image_poll_options)V.pollAttachmentData={options:f.image_poll_options};else if(f.poll_options)V.pollAttachment={choices:f.poll_options};else if(f.quiz_options)V.quizAttachmentData={options:f.quiz_options};else if(f.image_blob_id)V.imageAttachment=
{encryptedBlobId:f.image_blob_id},f.source_video_id&&(V.imageAttachment.sourceExternalVideoId=f.source_video_id),f.image_preview_coordinates&&(V.imageAttachment.previewCoordinates=JSON.parse(f.image_preview_coordinates));else if(f.images_data)V.imagesAttachment={imagesData:f.images_data};else if(f.clip_external_video_id!==void 0||f.clip_offset_ms!==void 0||f.clip_duration_ms!==void 0){var n,t,J,H,Q;V.clipAttachment={externalVideoId:(J=f.clip_external_video_id)!=null?J:"",offsetMs:(H=(n=f.clip_offset_ms)==
null?void 0:n.toString())!=null?H:"",durationMs:(Q=(t=f.clip_duration_ms)==null?void 0:t.toString())!=null?Q:""}}else f.shared_post_id&&(V.sharedPostAttachment={postId:f.shared_post_id});f.tagged_video_id&&(V.postCreationData={taggedVideoId:f.tagged_video_id});f.access_restrictions&&(typeof f.access_restrictions==="number"&&(D=f.access_restrictions,V.accessRestrictions={restriction:D!==1&&D===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof f.access_restrictions==="string"&&
(V.accessRestrictionsParams=f.access_restrictions));f.scheduled_publish_time_sec&&(V.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString())};var Eh=function(){};
_.v(Eh,PX);Eh.prototype.getApiPaths=function(){return ddY};
Eh.prototype.getExtension=function(V){return _.g(V,cbH)};
Eh.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.decorateMessageParams&&(V.params=D.decorateMessageParams);f.text&&(V.text=f.text)};var AK=function(){};
_.v(AK,PX);AK.prototype.getApiPaths=function(){return O1r};
AK.prototype.getExtension=function(V){return _.g(V,osr)};
AK.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;f.video_id&&(V.videoId=f.video_id)};var aA=function(){};
_.v(aA,PX);aA.prototype.getApiPaths=function(){return VH6};
aA.prototype.getExtension=function(V){return _.g(V,_.K6)};
aA.prototype.JSC$11138_buildRequest=function(V,D,f){f.suggestions_query&&(V.input=f.suggestions_query)};var YP=function(){};
_.v(YP,PX);YP.prototype.getApiPaths=function(){return zgp};
YP.prototype.getExtension=function(V){return _.g(V,JFH)};
YP.prototype.JSC$11138_buildRequest=function(V,D,f){f.comment_text!==void 0&&(V.commentText=f.comment_text);f.scheduled_publish_time_sec&&(V.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString());V.updateBackstagePostParams=D.updateBackstagePostParams};var $P=function(){};
_.v($P,PX);$P.prototype.getApiPaths=function(){return hE};
$P.prototype.getExtension=function(V){return _.g(V,_.Xh)};
$P.prototype.JSC$11138_buildRequest=function(V,D,f){f.formData&&(V.formData=f.formData);D.token?V.continuation=D.token:D.continuationTokenKey&&(f=_.Ol().getState(),D=_.wg(f.entities,"continuationTokenEntity",D.continuationTokenKey))&&(V.continuation=String(D.continuationToken))};
var $Vl=function(){};
_.v($Vl,PX);_.P=$Vl.prototype;_.P.getApiPaths=function(){return hE};
_.P.getExtension=function(V){return _.g(V,_.jL)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$11145_getStoreKey=function(V){if((V=this.getExtension(V))&&V.browseId){var D={browseId:V.browseId};V.browseEndpointContextSupportedConfigs&&(D.browseEndpointContextSupportedConfigs=JSON.stringify(V.browseEndpointContextSupportedConfigs));V.params&&(D.params=V.params);V.query&&(D.query=V.query);return _.W8("browse",D)}};
_.P.JSC$11138_buildRequest=function(V,D,f){D.browseId&&(V.browseId=D.browseId);D.params&&(V.params=D.params);D.query&&(V.query=D.query);f.formData?V.formData=f.formData:D.formData&&(V.formData=D.formData);D.browseId==="FEsubscriptions"&&_.Gm().getFlag(155)&&(V.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");D.browseId==="SPaccount_playback"&&(f=_.Gm(),V.formData||(V.formData={}),V.formData.accountSettingsFormData={flagCaptionsDefaultOff:f.getFlag(65),flagAutoCaptionsDefaultOn:f.getFlag(66),
flagDisableInlinePreview:f.getFlag(186),flagAudioDescriptionDefaultOn:f.getFlag(198)});if(D.browseId==="FEwhat_to_watch"){f=_.Gm();var n=f.getFlag(196);f.getFlag(197)&&(V.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:n}}})}D.browseId==="FEwhat_to_watch"&&(D=_.Gm().getFlag(186),V.inlineSettingStatus=D?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(V,D){D=D===void 0?{}:D;var f={};if(V=this.JSC$11145_getStoreKey(V,D))f.storeStrategy={storeKey:V,disableCache:D.disableCache};_.c("web_log_browse_ticks_ks")||(f.requestTick="br_s",f.responseTick="br_r");return f};var Sy=function(){};
_.v(Sy,PX);Sy.prototype.getApiPaths=function(){return y5o};
Sy.prototype.getExtension=function(V){return _.g(V,Cgo)};
Sy.prototype.JSC$11138_buildRequest=function(V,D,f){V.legacyYoutubeChannelUsername=f.legacyYouTubeChannelUsername||"";V.legacyYoutubeChannelPassword=f.legacyYouTubeChannelPassword||""};var W3=function(){};
_.v(W3,PX);W3.prototype.getApiPaths=function(){return F9E};
W3.prototype.getExtension=function(V){return _.g(V,yFH)};
W3.prototype.JSC$11138_buildRequest=function(V,D,f){f.recaptcha_response_token&&(V.recaptchaResponseToken=f.recaptcha_response_token);f.channel_id&&(V.channelId=f.channel_id)};var pb=function(){};
_.v(pb,PX);pb.prototype.getApiPaths=function(){return RgE};
pb.prototype.getExtension=function(V){return _.g(V,cFH)};
pb.prototype.JSC$11138_buildRequest=function(V,D,f){D.externalChannelId&&(V.externalChannelId=D.externalChannelId);f.handle&&(V.handleUpdate={handle:f.handle},D.handleEditSource&&(V.handleUpdate.handleEditSource=D.handleEditSource))};var Lb=function(){};
_.v(Lb,PX);Lb.prototype.getApiPaths=function(){return ELF};
Lb.prototype.getExtension=function(V){return _.g(V,Sko)};
Lb.prototype.JSC$11138_buildRequest=function(V,D,f){D.request&&(V.channelId=D.request.channelId);var n;if(f==null?0:(n=f.uploadDefaults)==null?0:n.emojiReactionSet)V.uploadDefaultsRequest||(V.uploadDefaultsRequest={}),V.uploadDefaultsRequest.emojiReactionSet=f.uploadDefaults.emojiReactionSet};var IA=function(){};
_.v(IA,PX);IA.prototype.getApiPaths=function(){return Y6p};
IA.prototype.getExtension=function(V){return _.g(V,Zgl)};
IA.prototype.JSC$11138_buildRequest=function(V,D,f){D.externalChannelId&&(V.externalChannelId=D.externalChannelId);D.channelHandleEntityKey&&(V.channelHandleEntityKey=D.channelHandleEntityKey);D.handleEditSource&&(V.handleEditSource=D.handleEditSource);f.handle?V.handle=f.handle:f.name&&(V.name=f.name)};var Oh=function(){};
_.v(Oh,PX);Oh.prototype.getApiPaths=function(){return l$E};
Oh.prototype.getExtension=function(V){return _.g(V,P7u)};
Oh.prototype.JSC$11138_buildRequest=function(V,D){D.actions?V.actions=D.actions:D.action&&(V.actions=[D.action])};var xP=function(){};
_.v(xP,PX);xP.prototype.getApiPaths=function(){return Gbr};
xP.prototype.getExtension=function(V){return _.g(V,_.Xh)};
xP.prototype.JSC$11138_buildRequest=function(V,D){D.token&&(V.continuation=D.token)};var Mv=function(){};
_.v(Mv,PX);Mv.prototype.getApiPaths=function(){return LpV};
Mv.prototype.getExtension=function(V){return _.g(V,_.Xh)};
Mv.prototype.JSC$11138_buildRequest=function(V,D){V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.token&&(V.fetchCommentsParams={continuation:D.token})};var hK=function(){};
_.v(hK,PX);hK.prototype.getApiPaths=function(){return vmr};
hK.prototype.getExtension=function(V){return _.g(V,ttu)};
hK.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.createReplyParams&&(V.createReplyParams=D.createReplyParams);D.commentText&&(V.commentText=_.LA(D.commentText));f.comment_text&&(V.commentText=f.comment_text);f.image_blob_id&&(V.imageAttachment={encryptedBlobId:f.image_blob_id});f.botguard_response&&(V.botguardResponse=f.botguard_response)};
_.IG.Object.defineProperties(hK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Uh=function(){};
_.v(Uh,PX);Uh.prototype.getApiPaths=function(){return kbo};
Uh.prototype.getExtension=function(V){return _.g(V,_.nBl)};
Uh.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.createCommentParams&&(V.createCommentParams=D.createCommentParams);D.commentText&&(V.commentText=_.LA(D.commentText));D.videoPositionMention&&(V.videoPositionMention=D.videoPositionMention);D.sources&&(V.sources=D.sources);f.comment_text&&(V.commentText=f.comment_text);f.attached_video_id?V.videoAttachment={videoId:f.attached_video_id}:f.poll_options?V.pollAttachment={choices:f.poll_options}:f.image_blob_id?V.imageAttachment=
{encryptedBlobId:f.image_blob_id}:f.shared_post_id&&(V.sharedPostAttachment={postId:f.shared_post_id});f.access_restrictions&&typeof f.access_restrictions==="number"&&(D=f.access_restrictions,V.accessRestrictions={restriction:D!==1&&D===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});f.botguard_response&&(V.botguardResponse=f.botguard_response)};
_.IG.Object.defineProperties(Uh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vt=function(){};
_.v(Vt,PX);Vt.prototype.getApiPaths=function(){return CzH};
Vt.prototype.getExtension=function(V){return _.g(V,JT6)};
Vt.prototype.JSC$11138_buildRequest=function(V,D,f){D.commentText&&(V.replyText=_.LA(D.commentText));f.comment_text&&(V.replyText=f.comment_text);V.updateReplyParams=D.updateReplyParams};
_.IG.Object.defineProperties(Vt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D_=function(){};
_.v(D_,PX);D_.prototype.getApiPaths=function(){return q66};
D_.prototype.getExtension=function(V){return _.g(V,oBP)};
D_.prototype.JSC$11138_buildRequest=function(V,D,f){D.commentText&&(V.commentText=_.LA(D.commentText));f.comment_text&&(V.commentText=f.comment_text);V.updateCommentParams=D.updateCommentParams};
_.IG.Object.defineProperties(D_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f2=function(){};
_.v(f2,PX);f2.prototype.getApiPaths=function(){return XOU};
f2.prototype.getExtension=function(V){return _.g(V,aXl)};
f2.prototype.JSC$11138_buildRequest=function(V,D){D.settings&&(V.settings=D.settings)};var n2=function(){};
_.v(n2,PX);n2.prototype.getApiPaths=function(){return a$L};
n2.prototype.getExtension=function(V){return _.g(V,j$6)};
n2.prototype.JSC$11138_buildRequest=function(V,D){D.channelCreationToken&&(V.channelCreationToken=D.channelCreationToken);D.source&&(V.source=D.source)};var tS=function(){};
_.v(tS,PX);tS.prototype.getApiPaths=function(){return gmp};
tS.prototype.getExtension=function(V){return _.g(V,eKl)};
tS.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;if(f.name&&(f.given_name||f.family_name))V=new _.cI("channel creation cannot set both GAIA and YouTube names",D),_.NG(V);else{if(D.zeroStepChannelCreationParams){if(!f.comment_text){V=new _.cI("zero_step_create_comment_params but no zero_step_texts",D);_.NG(V);return}V.zeroStepChannelCreationParams=D.zeroStepChannelCreationParams;V.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(V.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
f.comment_text,f.botguard_response&&(V.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=f.botguard_response))}V.channelCreationToken=D.channelCreationToken;f.given_name&&(V.givenName=f.given_name);f.family_name&&(V.familyName=f.family_name);D.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(V.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(f.name||f.handle||f.avatar_url||f.encryptedBlobId||f.isNameChanged!==void 0||f.isHandleChanged!==void 0||f.isDefaultProfilePhoto!==
void 0||f.obakeImageSource)V.overrideChannelCreationParams={},f.name&&(V.overrideChannelCreationParams.name=f.name),f.handle&&(V.overrideChannelCreationParams.handle=f.handle),f.avatar_url&&(V.overrideChannelCreationParams.avatarUrl=f.avatar_url),f.encryptedBlobId&&(V.overrideChannelCreationParams.blobEncryptionId=f.encryptedBlobId),f.enableIdentityForAllChannelCreationDialog&&(f.encryptedBlobId?V.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
f.isDefaultProfilePhoto!==void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=f.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),f.isNameChanged!==void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationNameTag=f.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),f.isHandleChanged!==
void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=f.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),f.obakeImageSource&&(V.overrideChannelCreationParams.obakeImageSourceType=f.obakeImageSource))}};var PM=function(){};
_.v(PM,PX);PM.prototype.getApiPaths=function(V){return(V=this.getExtension(V))&&V.status==="DISLIKE"?zrF:V&&V.status==="INDIFFERENT"?jKF:PzY};
PM.prototype.getExtension=function(V){return _.g(V,_.$V)};
PM.prototype.JSC$11138_buildRequest=function(V,D){D.target&&(V.target=D.target);if(D=this.getParams(D))V.params=D};
PM.prototype.getParams=function(V){switch(V==null?void 0:V.status){case "DISLIKE":return V.dislikeParams;case "INDIFFERENT":return V.removeLikeParams;default:return V==null?void 0:V.likeParams}};var os=function(){};
_.v(os,PX);os.prototype.getApiPaths=function(){return BMH};
os.prototype.getExtension=function(V){return _.g(V,b9p)};
os.prototype.JSC$11138_buildRequest=function(V,D){D.settingItemId&&(V.settingItemId=D.settingItemId);D.stringValue!=null&&D.stringValue!==void 0?V.newValue={stringValue:D.stringValue}:D.intValue?V.newValue={intValue:D.intValue}:D.boolValue!==null&&D.boolValue!==void 0?V.newValue={boolValue:D.boolValue}:(V=new _.cI("Unknown value type for SetSettingEndpoint.",D),_.NG(V))};var JS=function(){};
_.v(JS,PX);JS.prototype.getApiPaths=function(){return uAo};
JS.prototype.getExtension=function(V){return _.g(V,N0Y)||void 0};
JS.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.channelIds&&(V.channelIds=D.channelIds);D.siloName&&(V.siloName=D.siloName);D.params&&(V.params=D.params);f.botguardResponse&&(V.botguardResponse=f.botguardResponse);f.feature&&(V.clientFeature=f.feature)};
_.IG.Object.defineProperties(JS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rF=function(){};
_.v(rF,PX);rF.prototype.getApiPaths=function(){return mCL};
rF.prototype.getExtension=function(V){return _.g(V,KJ6)||void 0};
rF.prototype.JSC$11138_buildRequest=function(V,D){D.channelIds&&(V.channelIds=D.channelIds);D.siloName&&(V.siloName=D.siloName);D.params&&(V.params=D.params)};
_.IG.Object.defineProperties(rF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HM=function(V){this.shareClientParamsProvider=V};
_.v(HM,PX);HM.prototype.getApiPaths=function(){return QeU};
HM.prototype.getExtension=function(V){return _.g(V,A_P)||_.g(V,_.aBY)||_.g(V,EGl)};
HM.prototype.JSC$11138_buildRequest=function(V,D){D.serializedShareEntity&&(V.serializedSharedEntity=D.serializedShareEntity);if(D.clientParamIdentifier){var f;if((f=this.shareClientParamsProvider)==null?0:f.clientParams.has(D.clientParamIdentifier)){f=this.shareClientParamsProvider;D=D.clientParamIdentifier;var n=f.clientParams.get(D);n&&f.clientParams.delete(D);V.clientParams=n}}};
HM[L$]=[naV];var wF=function(){};
_.v(wF,PX);wF.prototype.getApiPaths=function(){return TCP};
wF.prototype.getExtension=function(V){return _.g(V,WvP)};
wF.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var Qt=function(){};
_.v(Qt,PX);Qt.prototype.getApiPaths=function(){return Rrr};
Qt.prototype.getExtension=function(V){return _.g(V,$MU)};
Qt.prototype.JSC$11138_buildRequest=function(V,D){D.dismissal&&(V.items=[D.dismissal])};
_.IG.Object.defineProperties(Qt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Td=function(){};
_.v(Td,PX);Td.prototype.getApiPaths=function(){return nLr};
Td.prototype.getExtension=function(V){return _.g(V,_.uY)||void 0};
Td.prototype.JSC$11138_buildRequest=function(V,D,f){V.feedbackTokens=[];D.feedbackToken&&V.feedbackTokens.push(D.feedbackToken);if(D=D.cpn||f.cpn)V.feedbackContext={cpn:D};V.isFeedbackTokenUnencrypted=!!f.is_feedback_token_unencrypted;V.shouldMerge=!1;f.extra_feedback_tokens&&(V.shouldMerge=!0,V.feedbackTokens=V.feedbackTokens.concat(f.extra_feedback_tokens))};
_.IG.Object.defineProperties(Td.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bh=function(){};
_.v(bh,PX);bh.prototype.getApiPaths=function(){return nLr};
bh.prototype.getExtension=function(V){return _.g(V,_.K6)};
bh.prototype.JSC$11138_buildRequest=function(V,D,f){f.feedback_tokens&&(V.feedbackTokens=f.feedback_tokens,V.shouldMerge=!0)};
_.IG.Object.defineProperties(bh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var K2=function(){};
_.v(K2,PX);K2.prototype.getApiPaths=function(){return nLr};
K2.prototype.getExtension=function(V){return _.g(V,TV9)};
K2.prototype.JSC$11138_buildRequest=function(V,D){D.undoToken&&(V.feedbackTokens=[D.undoToken]);D.isUndoTokenUnencrypted&&(V.isFeedbackTokenUnencrypted=D.isUndoTokenUnencrypted)};
_.IG.Object.defineProperties(K2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z_=function(){};
_.v(Z_,PX);Z_.prototype.getApiPaths=function(){return $Cr};
Z_.prototype.getExtension=function(V){return _.g(V,ADl)};
Z_.prototype.JSC$11138_buildRequest=function(V,D){D.nextEndpoint&&_.g(D.nextEndpoint,_.a2)?V.nextEndpoint={urlEndpoint:_.g(D.nextEndpoint,_.a2)}:D.nextEndpoint&&_.g(D.nextEndpoint,_.pl)&&(V.nextEndpoint={watchEndpoint:_.g(D.nextEndpoint,_.pl)});D.setRacy&&(V.setRacy=D.setRacy);D.setControvercy&&(V.setControvercy=D.setControvercy)};var j3=function(V){this.JSC$15843_storeWithEntities=V};
_.v(j3,PX);j3.prototype.getApiPaths=function(){return qYY};
j3.prototype.getExtension=function(V){return _.g(V,H8P)};
j3.prototype.JSC$11138_buildRequest=function(V,D){D.flowId&&(V.flowId=D.flowId);D.targetId&&(V.targetId=D.targetId);D.continuation&&(V.continuation=D.continuation);var f=D.flowStateEntityKey;if(D.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&f&&this.JSC$15843_storeWithEntities){var n;if(D=(n=this.JSC$15843_storeWithEntities.getState())==null?void 0:n.entities)if(n=_.PR(f).entityType,n=_.wg(D,n,f))V.flowState=n,V.flowStateEntityKey=f}};
_.IG.Object.defineProperties(j3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
j3[L$]=[Jx];var iUo=function(){};
_.v(iUo,PX);_.P=iUo.prototype;_.P.getApiPaths=function(){return f6F};
_.P.JSC$11145_getStoreKey=function(){return _.W8("guide")};
_.P.getRequestConfig=function(){var V=this.JSC$11145_getStoreKey(),D;V&&(D={storeStrategy:{storeKey:V}});return D};
_.P.isNavigationCommand=function(){return!0};
_.P.getExtension=function(V){return _.g(V,_.K6)};
_.P.JSC$11138_buildRequest=function(V){V.fetchLiveState=!0};var lh=function(){};
_.v(lh,PX);lh.prototype.getApiPaths=function(){return Z1V};
lh.prototype.getExtension=function(V){return _.g(V,VtL)};
lh.prototype.JSC$11138_buildRequest=function(){};var Gd=function(){};
_.v(Gd,PX);Gd.prototype.getApiPaths=function(){return jCF};
Gd.prototype.getExtension=function(V){return _.g(V,DTp)};
Gd.prototype.JSC$11138_buildRequest=function(){};var e3=function(){};
_.v(e3,PX);e3.prototype.getApiPaths=function(){return QCL};
e3.prototype.getExtension=function(V){return _.g(V,_.Xh)};
e3.prototype.JSC$11138_buildRequest=function(V,D){D.token&&(V.continuation=D.token);var f,n;V==null||(f=V.context)==null||(n=f.user)==null||delete n.onBehalfOfUser};
e3.prototype.getRequestConfig=function(V){var D={},f;if(((f=this.getExtension(V))==null?void 0:f.sessionIndex)!==void 0){var n;D={authStrategy:{sessionIndex:(n=this.getExtension(V))==null?void 0:n.sessionIndex}}}return D};var cM=function(){};
_.v(cM,PX);cM.prototype.JSC$11138_getRequest=function(V){var D=this.getExtension(V),f=V="";if(D==null?0:D.popup)V="true";if(D==null?0:D.disableSignout)f="true";D={};return{input:"/getAccountSwitcherEndpoint",requestShell:i8("/getAccountSwitcherEndpoint","GET",(D["X-YouTube-Delegation-Context"]=_.XB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),D["X-YouTube-Account-Switcher-Popup"]=V,D["X-YouTube-Account-Switcher-Disable-Signout"]=f,D)),innerTubeRequest:{}}};
cM.prototype.getApiPaths=function(){return[]};
cM.prototype.getExtension=function(V){return _.g(V,_.BLn)};
cM.prototype.JSC$11138_buildRequest=function(){};var Ff=function(){};
_.v(Ff,PX);Ff.prototype.JSC$11138_getRequest=function(V){var D="/cross_account_channel_transfer";(V=this.getExtension(V))&&(D=FiY(D,{target_session:V.targetSessionIndex,source_rapt:V.sourceRapt,rapt:V.targetRapt}));return{input:D,requestShell:i8(D,"GET"),innerTubeRequest:{}}};
Ff.prototype.getApiPaths=function(){return[]};
Ff.prototype.getExtension=function(V){return _.g(V,XVF)};
Ff.prototype.JSC$11138_buildRequest=function(){};var gF=function(){};
_.v(gF,PX);gF.prototype.getApiPaths=function(){return XXF};
gF.prototype.isNavigationCommand=function(){return!0};
gF.prototype.getExtension=function(V){return _.g(V,_.K6)};
gF.prototype.JSC$11138_buildRequest=function(V){var D=_.Gm().get("gsml","");D&&(V.safetyModeLockerObfuscatedGaiaId=D);V.userInterfaceTheme=_.dU(!0);_.ud()?V.deviceTheme="DEVICE_THEME_SELECTED":_.G0Y()?V.deviceTheme="DEVICE_THEME_SUPPORTED":V.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var vM=function(){};
_.v(vM,PX);vM.prototype.getApiPaths=function(){return QCL};
vM.prototype.getExtension=function(V){return _.g(V,Evl)};
vM.prototype.JSC$11138_buildRequest=function(V,D){if(D&&D.requestType&&(V.requestType=D.requestType,D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var f=D.nextUrl;f&&(_.viZ(f)||hh(f))&&(V.nextNavendpoint={urlEndpoint:{url:f}})}D&&D.channelSwitcherQuery&&(V.channelSwitcherQuery=D.channelSwitcherQuery);D&&D.triggerChannelCreation&&(V.triggerChannelCreation=D.triggerChannelCreation);var n;if(D==null?0:(n=D.contentOwnerConfig)==
null?0:n.externalContentOwnerId)V.contentOwnerConfig=D.contentOwnerConfig;V.callCircumstance=D&&D.requestType&&D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var t,J;D=V==null?void 0:(t=V.context)==null?void 0:(J=t.user)==null?void 0:J.onBehalfOfUser;if(D!==void 0){V.obfuscatedSelectedGaiaId=D;var H,Q;V==null||(H=V.context)==null||(Q=H.user)==null||delete Q.onBehalfOfUser}var T,y;if(t=V==null?void 0:(T=V.context)==null?void 0:(y=T.user)==null?
void 0:y.serializedDelegationContext)V.selectedSerializedDelegationContext=t};var kS=function(){};
_.v(kS,PX);kS.prototype.getApiPaths=function(){return xdF};
kS.prototype.getExtension=function(V){return _.g(V,zRp)};
kS.prototype.JSC$11138_buildRequest=function(V,D){D.profileOwnerExternalChannelId&&(V.profileOwnerExternalChannelId=D.profileOwnerExternalChannelId);D.profileCardContext&&(V.profileCardContext=D.profileCardContext)};var s4=function(){};
_.v(s4,PX);s4.prototype.getApiPaths=function(){return b1U};
s4.prototype.getExtension=function(V){return _.g(V,YjH)};
s4.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var BM=function(){};
_.v(BM,PX);BM.prototype.getApiPaths=function(){return FpF};
BM.prototype.getExtension=function(V){return _.g(V,_.DQl)};
BM.prototype.JSC$11138_buildRequest=function(V,D){if(D=D.createBroadcastRequest)V.useMasks=D.useMasks,V.broadcastType=D.broadcastType,V.broadcastSource=D.broadcastSource,V.broadcastMetadata=D.broadcastMetadata,V.broadcastMetadataMask=D.broadcastMetadataMask,V.videoMetadata=D.videoMetadata,V.videoMetadataMask=D.videoMetadataMask,V.liveChatSettingsUpdate=D.liveChatSettingsUpdate,V.liveChatSettingsUpdateMask=D.liveChatSettingsUpdateMask,V.cloneVideoId=D.cloneVideoId,V.cloneWithOverrides=D.cloneWithOverrides,
V.targetEntity=D.targetEntity,V.scheduledRedirectMetadata=D.scheduledRedirectMetadata};var dF=function(){};
_.v(dF,PX);dF.prototype.getApiPaths=function(){return sCF};
dF.prototype.getExtension=function(V){return _.g(V,xmp)};
dF.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.params&&(V.params=D.params);f.questionText&&(V.questionText=f.questionText);f.optionText&&f.optionText.length>0&&(V.optionText=f.optionText)};var uh=function(){};
_.v(uh,PX);uh.prototype.getApiPaths=function(){return u_o};
uh.prototype.getExtension=function(V){return _.g(V,IUu)};
uh.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var Nu=function(){};
_.v(Nu,PX);Nu.prototype.getApiPaths=function(){return $dp};
Nu.prototype.getExtension=function(V){return _.g(V,S7V)};
Nu.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var mh=function(){};
_.v(mh,PX);mh.prototype.getApiPaths=function(){return SYu};
mh.prototype.getExtension=function(V){return _.g(V,WjH)};
mh.prototype.JSC$11138_buildRequest=function(V,D,f){D.params&&(V.params=D.params);D.continuation&&(V.continuation=D.continuation);f.currentPlayerState&&f.currentPlayerState.playerOffsetMs&&(V.currentPlayerState={playerOffsetMs:f.currentPlayerState.playerOffsetMs.toString()})};var zd=function(){};
_.v(zd,PX);zd.prototype.getApiPaths=function(){return Wp6};
zd.prototype.getExtension=function(V){return _.g(V,i8E)};
zd.prototype.JSC$11138_buildRequest=function(V,D,f){D.params&&(V.params=D.params);f.continuation&&(V.continuation=f.continuation);"hidden"in f&&(V.webClientInfo={isDocumentHidden:f.hidden});f.isInvalidationTimeoutRequest&&(V.isInvalidationTimeoutRequest=f.isInvalidationTimeoutRequest);f.invalidationPayload&&(D=$mF(_.rP(UG(f.invalidationPayload))),V.invalidationPayloadLastPublishAtUsec=Nk(D,2));f.reloadActionPanel&&(V.reloadActionPanel=f.reloadActionPanel);f.fullReload&&(V.fullReload=f.fullReload);
f.currentPlayerState&&(V.currentPlayerState=f.currentPlayerState)};var Rs=function(){};
_.v(Rs,PX);Rs.prototype.getApiPaths=function(){return oLl};
Rs.prototype.getExtension=function(V){return _.g(V,O8l)};
Rs.prototype.JSC$11138_buildRequest=function(V,D){V.params=D.params};var C2=function(){};
_.v(C2,PX);C2.prototype.getApiPaths=function(){return i1r};
C2.prototype.getExtension=function(V){return _.g(V,n9u)};
C2.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var qu=function(){};
_.v(qu,PX);qu.prototype.getApiPaths=function(){return pXP};
qu.prototype.getExtension=function(V){return _.g(V,tqo)};
qu.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var Xf=function(){};
_.v(Xf,PX);Xf.prototype.getApiPaths=function(){return JvH};
Xf.prototype.getExtension=function(V){return _.g(V,MT6)};
Xf.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var E4=function(){};
_.v(E4,PX);E4.prototype.getApiPaths=function(){return HtE};
E4.prototype.getExtension=function(V){return _.g(V,hyr)};
E4.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var AS=function(){};
_.v(AS,PX);AS.prototype.getApiPaths=function(){return l6l};
AS.prototype.getExtension=function(V){return _.g(V,SjE)};
AS.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var as=function(){};
_.v(as,PX);as.prototype.getApiPaths=function(){return k0V};
as.prototype.getExtension=function(V){return _.g(V,_.Um6)};
as.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.params&&(V.params=D.params);f.client_message_id&&(V.clientMessageId=f.client_message_id);f.recaptcha_token&&(V.recaptchaToken=f.recaptcha_token);f.rich_message&&f.rich_message.text_segments?(D=f.rich_message.text_segments.map(function(n){var t={};n.text&&(t.text=n.text);n.emoji_id&&(t.emojiId=n.emoji_id);return t}),V.richMessage={textSegments:D}):f.message&&(V.message=f.message);
f.currentPlayerState&&(V.currentPlayerState=f.currentPlayerState)};var YS=function(){};
_.v(YS,PX);YS.prototype.getApiPaths=function(){return sKr};
YS.prototype.getExtension=function(V){return _.g(V,VNH)};
YS.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var $S=function(){};
_.v($S,PX);$S.prototype.getApiPaths=function(){return NME};
$S.prototype.getExtension=function(V){return _.g(V,fpr)};
$S.prototype.JSC$11138_buildRequest=function(V,D,f){D.isUserInitiated&&(V.isUserInitiated=D.isUserInitiated);D.initiationSource&&(V.initiationSource=D.initiationSource);f.locationInfo&&(V.context.client.locationInfo=f.locationInfo)};var ih=function(){};
_.v(ih,PX);ih.prototype.getApiPaths=function(){return rvF};
ih.prototype.getExtension=function(V){return _.g(V,fBE)};
ih.prototype.JSC$11138_buildRequest=function(V,D,f){D.metadataUpdateRequest&&(D=D.metadataUpdateRequest,V.encryptedVideoId=D.encryptedVideoId,D.liveChat&&(D=D.liveChat,V.liveChat||(V.liveChat={}),D.performAsExternalChannelId&&(V.liveChat.performAsExternalChannelId=D.performAsExternalChannelId),D.source&&(V.liveChat.source=D.source)));var n;if(f==null?0:(n=f.liveChat)==null?0:n.liveChatSettings)V.liveChat||(V.liveChat={}),f=f.liveChat.liveChatSettings,V.liveChat.newLiveChatSettings=f,V.liveChat.newLiveChatSettingsMask||
(V.liveChat.newLiveChatSettingsMask={}),f.emojiReactionSet&&(V.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var S3=function(){};
_.v(S3,PX);S3.prototype.getApiPaths=function(){return a6u};
S3.prototype.getExtension=function(V){return _.g(V,_.yTp)};
S3.prototype.JSC$11138_buildRequest=function(V,D,f){f.continuation?V.continuation=f.continuation:D.videoId&&(V.videoId=D.videoId);f.clientParams&&(V.clientParams=f.clientParams)};var WM=function(){};
_.v(WM,PX);WM.prototype.getApiPaths=function(){return LpV};
WM.prototype.getExtension=function(V){return _.g(V,_.u7)};
WM.prototype.JSC$11138_buildRequest=function(V,D){V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";V.fetchCommentsParams={};D.videoId&&(V.fetchCommentsParams.encryptedVideoId=D.videoId);D.postId&&(V.fetchCommentsParams.postId=D.postId);D.externalChannelId&&(V.fetchCommentsParams.externalChannelId=D.externalChannelId);D.linkedCommentId&&(V.fetchCommentsParams.linkedCommentId=D.linkedCommentId);(0,_.sB.isEmpty)(V.fetchCommentsParams)&&delete V.fetchCommentsParams};var p2=function(){};
_.v(p2,PX);p2.prototype.getApiPaths=function(){return hE};
p2.prototype.JSC$11138_buildRequest=function(V){V.browseId="FEnotifications_inbox"};
p2.prototype.getExtension=function(V){return _.g(V,_.K6)};var L2=function(){};
_.v(L2,PX);L2.prototype.getApiPaths=function(){return LpV};
L2.prototype.JSC$11138_buildRequest=function(V,D){D.signal==="GET_NOTIFICATIONS_MENU"&&(V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");D.ctoken&&(V.ctoken=D.ctoken)};
var SPl=function(){};
_.v(SPl,L2);SPl.prototype.getExtension=function(V){return _.g(V,_.K6)};
var WEL=function(){};
_.v(WEL,L2);WEL.prototype.getExtension=function(V){return _.g(V,qOL)};var Is=function(){};
_.v(Is,PX);Is.prototype.getApiPaths=function(){return Udl};
Is.prototype.getExtension=function(V){return _.g(V,_.K6)};
Is.prototype.JSC$11138_buildRequest=function(){};var O4=function(){};
_.v(O4,PX);O4.prototype.getApiPaths=function(){return wOH};
O4.prototype.getExtension=function(V){return _.g(V,wcl)||void 0};
O4.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params);D.secondaryParams&&(V.secondaryParams=D.secondaryParams)};var xS=function(){};
_.v(xS,PX);xS.prototype.getApiPaths=function(){return QK6};
xS.prototype.getExtension=function(V){return _.g(V,$Q6)};
xS.prototype.JSC$11138_buildRequest=function(V,D){D.undo&&(V.undo=D.undo);D.serializedOptOut&&(V.serializedOptOut=D.serializedOptOut);D.serializedRecordInteractionsRequest&&(V.serializedRecordInteractionsRequest=D.serializedRecordInteractionsRequest)};var Mu=function(){};
_.v(Mu,PX);Mu.prototype.getApiPaths=function(){return K9P};
Mu.prototype.getExtension=function(V){return _.g(V,inu)};
Mu.prototype.JSC$11138_buildRequest=function(V,D){D.serializedInteractionsRequest&&(V.serializedRecordNotificationInteractionsRequest=D.serializedInteractionsRequest)};var hS=function(){};
_.v(hS,PX);hS.prototype.getApiPaths=function(){return T89};
hS.prototype.getExtension=function(V){return _.g(V,qhX)};
hS.prototype.JSC$11138_buildRequest=function(V,D,f){D=D===void 0?{}:D;f=f===void 0?{}:f;D.videoId?V.videoId=D.videoId:D.playlistId&&(V.playlistId=D.playlistId);var n,t=(n=D.offlineWebClientEligibility)!=null?n:f.offlineWebClientEligibility;t&&(V.offlineWebClientEligibility=t);var J;if(n=(J=D.preferredFormatType)!=null?J:f.preferredFormatType)V.preferredFormatType=n;var H;if(J=(H=D.lastOfflineQualitySettingsSavedMs)!=null?H:f.lastOfflineQualitySettingsSavedMs)V.lastOfflineQualitySettingsSavedMs=J;
D.params&&(V.params=D.params)};var U4=function(){};
_.v(U4,PX);U4.prototype.getApiPaths=function(){return L9};
U4.prototype.getExtension=function(V){return _.g(V,_.Xh)};
U4.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.token&&(V.continuation=D.token);f.formData&&(V.formData=f.formData)};var V9=function(){};
_.v(V9,PX);V9.prototype.getApiPaths=function(){return L9};
V9.prototype.getExtension=function(V){return _.g(V,x7o)};
V9.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;V.continuation=f.continuation};var Dq=function(){};
_.v(Dq,PX);Dq.prototype.getApiPaths=function(){return L9};
Dq.prototype.getExtension=function(V){return _.g(V,_.dK)};
Dq.prototype.JSC$11138_buildRequest=function(V,D){var f,n=D.panelIdentifier||((f=D.identifier)==null?void 0:f.tag);n&&(V.panelId=n);var t;if((t=D.globalConfiguration)==null?0:t.params){var J;V.params=(J=D.globalConfiguration)==null?void 0:J.params}};
_.IG.Object.defineProperties(Dq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fu=function(){};
_.v(fu,PX);fu.prototype.getApiPaths=function(){return L9};
fu.prototype.getExtension=function(V){return _.g(V,RPr)};
fu.prototype.JSC$11138_buildRequest=function(V,D){D.panelLoadingStrategy&&rjY(V,D.panelLoadingStrategy)};var nu=function(){};
_.v(nu,PX);nu.prototype.getApiPaths=function(){return L9};
nu.prototype.getExtension=function(V){return _.g(V,Vql)};
nu.prototype.JSC$11138_buildRequest=function(V,D){D.loadingStrategy&&rjY(V,D.loadingStrategy)};var tg=function(){};
_.v(tg,PX);tg.prototype.getApiPaths=function(){return L9};
tg.prototype.getExtension=function(V){return _.g(V,_.Zt)};
tg.prototype.JSC$11138_buildRequest=function(V,D){D.panelLoadingStrategy&&rjY(V,D.panelLoadingStrategy)};var P4=function(){};
_.v(P4,PX);P4.prototype.getApiPaths=function(){return L9};
P4.prototype.getExtension=function(V){return _.g(V,DWU)};
P4.prototype.JSC$11138_buildRequest=function(V,D){var f,n=(f=D.contentSourcePanelIdentifier)==null?void 0:f.tag;n&&(V.panelId=n);var t;if((t=D.globalConfiguration)==null?0:t.params){var J;V.params=(J=D.globalConfiguration)==null?void 0:J.params}};var ow=function(){};
_.v(ow,PX);ow.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
ow.prototype.getExtension=function(V){return _.g(V,fAo)};
ow.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var Jg=function(){};
_.v(Jg,PX);Jg.prototype.getApiPaths=function(){return AvV};
Jg.prototype.getExtension=function(V){return _.g(V,Pyl)};
Jg.prototype.JSC$11138_buildRequest=function(V,D){D.externalChannelId&&(V.externalChannelId=D.externalChannelId);D.superChatAction&&(V.superChatAction=D.superChatAction);D.superStickersAction&&(V.superStickersAction=D.superStickersAction)};var rG=function(){};
_.v(rG,PX);rG.prototype.getApiPaths=function(){return Em6};
rG.prototype.getExtension=function(V){return _.g(V,UHl)||_.g(V,EPY)};
rG.prototype.JSC$11138_buildRequest=function(V,D){D.videoIds?V.videoIds=D.videoIds:D.videoId&&(V.videoIds=[D.videoId]);D.playlistId&&(V.playlistId=D.playlistId);D.params&&(V.params=D.params);V.excludeWatchLater=!1};var H4=function(){};
_.v(H4,PX);H4.prototype.getApiPaths=function(){return BCF};
H4.prototype.getExtension=function(V){return _.g(V,_.Xb)};
H4.prototype.JSC$11138_buildRequest=function(V,D,f){f.create_playlist_title?V.title=f.create_playlist_title:D.title&&(V.title=D.title);if(f.create_playlist_privacy_status&&typeof f.create_playlist_privacy_status==="number"){a:{var n=f.create_playlist_privacy_status;if(n!==0){if(n===1){n="PUBLIC";break a}if(n===2){n="UNLISTED";break a}}n="PRIVATE"}V.privacyStatus=n}else D.privacyStatus&&(V.privacyStatus=D.privacyStatus);f.create_playlist_description&&(V.description=f.create_playlist_description);D.videoIds&&
(V.videoIds=D.videoIds);D.params&&(V.params=D.params);D.sourcePlaylistId&&(V.sourcePlaylistId=D.sourcePlaylistId)};var wG=function(){};
_.v(wG,PX);wG.prototype.getApiPaths=function(){return NCo};
wG.prototype.getExtension=function(V){return _.g(V,rTV)};
wG.prototype.JSC$11138_buildRequest=function(V,D){V.playlistId=D.playlistId};var Q9=function(){};
_.v(Q9,PX);Q9.prototype.getApiPaths=function(){return I$u};
Q9.prototype.getExtension=function(V){return _.g(V,qjF)};
Q9.prototype.JSC$11138_buildRequest=function(V,D){D.playlistId&&(V.playlistId=D.playlistId);D.params&&(V.params=D.params)};var TH=function(){};
_.v(TH,PX);TH.prototype.getApiPaths=function(){return btY};
TH.prototype.getExtension=function(V){return _.g(V,_.NT)||void 0};
TH.prototype.JSC$11138_buildRequest=function(V,D){D.actions&&(V.actions=D.actions);D.params&&(V.params=D.params);D.playlistId&&(V.playlistId=D.playlistId)};var bQ=function(){};
_.v(bQ,PX);_.P=bQ.prototype;_.P.getApiPaths=function(){return yvY};
_.P.getExtension=function(V){return _.g(V,_.gU)};
_.P.JSC$11138_buildRequest=function(V,D){D.videoId&&(V.playerRequest={videoId:D.videoId},D.playerParams&&(V.playerRequest.params=D.playerParams),D.racyCheckOk&&(V.playerRequest.racyCheckOk=!!D.racyCheckOk),D.contentCheckOk&&(V.playerRequest.contentCheckOk=!!D.contentCheckOk));D.params&&(V.params=D.params);D.inputType&&(V.inputType=D.inputType);V.disablePlayerResponse=!0};
_.P.getRequestConfig=function(V){var D;(V=this.JSC$11145_getStoreKey(V))&&(D={storeStrategy:{storeKey:V}});_.c("web_log_reels_ticks")&&(D=D||{},D.requestTick="r_wrs",D.responseTick="r_wrr");return D};
_.P.JSC$11145_getStoreKey=function(V){V=this.getExtension(V);if(_.c("shorts_controller_retrieve_seedless_sequence_v2")){if((V==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.W8("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.c("web_shorts_prefetch_service_enabled")&&V!=null&&V.videoId){var D={videoId:V.videoId};V.params&&(D.params=V.params);return _.W8("reel_item_watch",D)}};var Ku=function(){};
_.v(Ku,PX);_.P=Ku.prototype;_.P.getApiPaths=function(){return ZtH};
_.P.getExtension=function(V){return _.g(V,_.gU)};
_.P.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;V.sequenceParams=D.sequenceParams;var n;((n=f)==null?0:n.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(V.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
_.P.JSC$11145_getStoreKey=function(V){if(_.c("web_enable_delay_shorts_sequence_call")||_.c("shorts_controller_retrieve_seedless_sequence_v2"))if(V=this.getExtension(V),V==null?0:V.sequenceParams)return _.W8("reel_watch_sequence",{sequenceParams:V.sequenceParams})};
_.P.getRequestConfig=function(V){V=this.JSC$11145_getStoreKey(V);var D;V&&(D={storeStrategy:{storeKey:V}});_.c("reel_watch_sequence_request_log_ticks")&&(D=D||{},D.requestTick="r_wsrs",D.responseTick="r_wsrr",D.processorTick="r_wsrp");return D};
var y9=function(){};
_.v(y9,PX);y9.prototype.getApiPaths=function(){return ZtH};
y9.prototype.getExtension=function(V){return _.g(V,_.Xh)};
y9.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.token&&(V.continuation=D.token);var n;((n=f)==null?0:n.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(V.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
y9.prototype.getRequestConfig=function(V){V=this.JSC$11145_getStoreKey(V);var D;V&&(D={storeStrategy:{storeKey:V}});_.c("reel_watch_sequence_request_log_ticks")&&(D=D||{},D.requestTick="r_wsrs",D.responseTick="r_wsrr",D.processorTick="r_wsrp");return D};var Zq=function(){};
_.v(Zq,PX);Zq.prototype.getApiPaths=function(){return CVH};
Zq.prototype.getExtension=function(V){return _.g(V,_.riU)};
Zq.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.flagAction&&(V.action=D.flagAction);D.flagRequestType&&(V.flagRequestType=D.flagRequestType);D.additionalDetailCheckboxChecked&&(V.additionalDetailCheckboxChecked=D.additionalDetailCheckboxChecked);D.legalCheckboxChecked&&(V.legalCheckboxChecked=D.legalCheckboxChecked);D={};f.flag_issue_type!==void 0&&(D.issue=f.flag_issue_type);f.flag_affiliation!==void 0&&(D.affiliation=f.flag_affiliation);f.flag_full_name&&(D.fullName=f.flag_full_name);
Object.keys(D).length&&(V.legalReportDetails=D);if(f.flag_description||f.text)V.userComments=f.flag_description||f.text;D={};f.minutes!==void 0&&f.seconds!==void 0&&(D.minutes=f.minutes,D.seconds=f.seconds);f.vss_id&&(D.vssId=f.vss_id);Object.keys(D).length&&(V.videoReportDetails=D);D={};f.video_ids&&(D.videoIds=f.video_ids);f.impersonated_channel_url&&(D.impersonatedChannelUrl=f.impersonated_channel_url);Object.keys(D).length&&(V.channelAbuseReportDetails=D)};
_.IG.Object.defineProperties(Zq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ju=function(){};
_.v(ju,PX);ju.prototype.getApiPaths=function(){return YYP};
ju.prototype.getExtension=function(V){return _.g(V,Ryr)};
ju.prototype.JSC$11138_buildRequest=function(V,D){D.blockedForKidsContent&&(V.blockedForKidsContent=D.blockedForKidsContent)};var lQ=function(){};
_.v(lQ,PX);lQ.prototype.getApiPaths=function(){return G0V};
lQ.prototype.getExtension=function(V){return _.g(V,X3X)};
lQ.prototype.JSC$11138_buildRequest=function(V,D,f){V.params=D.params;f.impersonated_channel_url&&(V.impersonatedChannelUrl=f.impersonated_channel_url)};var GH=function(){};
_.v(GH,PX);GH.prototype.getApiPaths=function(){return tHF};
GH.prototype.getExtension=function(V){return _.g(V,_.CGU)};
GH.prototype.JSC$11138_buildRequest=function(V,D){D.items&&(V.items=D.items);D.kidGaiaId&&(V.kidGaiaId=D.kidGaiaId)};var eu=function(){};
_.v(eu,PX);eu.prototype.getApiPaths=function(){return A56};
eu.prototype.getExtension=function(V){return _.g(V,_.Mau)};
eu.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params);D.targetId&&(V.targetId=D.targetId)};var c4=function(){};
_.v(c4,PX);c4.prototype.getApiPaths=function(){return gLH};
c4.prototype.getExtension=function(V){return _.g(V,XNr)};
c4.prototype.JSC$11138_buildRequest=function(V,D){D.externalVideoId&&(V.externalVideoId=D.externalVideoId);D.query&&(V.query=D.query);D.sourceTimelines&&(V.sourceTimelines=D.sourceTimelines)};var Fa=function(){};
_.v(Fa,PX);Fa.prototype.getApiPaths=function(){return vLY};
Fa.prototype.getExtension=function(V){return _.g(V,_.Xh)||void 0};
Fa.prototype.JSC$11138_buildRequest=function(V,D){D.token&&(V.continuation=D.token)};
_.puV=function(){};
_.v(_.puV,PX);_.P=_.puV.prototype;_.P.getApiPaths=function(){return vLY};
_.P.getExtension=function(V){return _.g(V,_.ld)||void 0};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$11145_getStoreKey=function(V,D){D=D===void 0?{}:D;if(!D.disableCache&&(V=this.getExtension(V))&&V.query)return D={query:V.query},V.params&&(D.params=V.params),_.W8("search",D)};
_.P.JSC$11138_buildRequest=function(V,D,f){D.query&&(V.query=D.query);D.params&&(V.params=D.params);if(!_.c("web_forward_suggest_stats_killswitch")){var n=_.g(D,dQH);n&&(V.suggestStats=n)}var t;!_.c("kevlar_searchbox_stats_killswitch")&&((t=f.tempData)==null?0:t.gs_l)&&!_.g(D,dQH)&&(V.webSearchboxStatsUrl="/search?oq="+(f.tempData.oq||"")+"&gs_l="+f.tempData.gs_l);var J;if((J=f.tempData)==null?0:J.entityMid)D=V.suggestionSearchParams||{},D.entityMid=f.tempData.entityMid,V.suggestionSearchParams=D;
_.c("enable_desktop_vdcbg_components")&&(f=_.Gm().getFlag(186),V.inlineSettingStatus=f?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(V,D){D=D===void 0?{}:D;V=this.JSC$11145_getStoreKey(V,D);var f;V&&(f={storeStrategy:{storeKey:V}});_.c("web_log_search_ticks_ks")||(f=f||{},f.requestTick="sr_s",f.responseTick="sr_r");return f};var gG=function(){};
_.v(gG,PX);gG.prototype.getApiPaths=function(){return M2Y};
gG.prototype.getExtension=function(V){return _.g(V,ePL)};
gG.prototype.JSC$11138_buildRequest=function(V,D){D.serializedGetSharingProviderDataParams&&(V.serializedGetSharingProviderDataParams=D.serializedGetSharingProviderDataParams)};var v4=function(){};
_.v(v4,PX);v4.prototype.getApiPaths=function(){return hrp};
v4.prototype.getExtension=function(V){return _.g(V,nql)};
v4.prototype.JSC$11138_buildRequest=function(V,D){D.endpoint&&(V.endpoint=D.endpoint);D.action&&(V.action=D.action)};var kn=function(){};
_.v(kn,PX);kn.prototype.getApiPaths=function(){return mdu};
kn.prototype.getExtension=function(V){return _.g(V,H9l)};
kn.prototype.JSC$11138_buildRequest=function(V,D){V.videoId=D.videoId;D.scheduledRedirectMetadataSourceVideoId&&(V.scheduledRedirectMetadata={sourceVideoId:D.scheduledRedirectMetadataSourceVideoId})};var sK=function(){};
_.v(sK,PX);sK.prototype.getApiPaths=function(){return dCl};
sK.prototype.getExtension=function(V){return _.g(V,_.tzo)};
sK.prototype.JSC$11138_buildRequest=function(V,D){V.params=D.params;V.correctionText=D.correctionText};var B4=function(){};
_.v(B4,PX);B4.prototype.getApiPaths=function(){return Hs9};
B4.prototype.getExtension=function(V){return _.g(V,_.EN6)};
B4.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params);V.searchQuery=D.searchQuery;V.languageCode=D.languageCode;V.kind=D.kind;V.name=D.name;V.externalVideoId=D.externalVideoId};var dG=function(){};
_.v(dG,PX);dG.prototype.getApiPaths=function(){return S6E};
dG.prototype.getExtension=function(V){return _.g(V,lD6)};
dG.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.params=D.params)};var uQ=function(V){this.JSC$16118_storeWithEntities=V};
_.v(uQ,PX);uQ.prototype.getApiPaths=function(){return erF};
uQ.prototype.getExtension=function(V){return _.g(V,e_u)||_.g(V,F5r)};
uQ.prototype.JSC$11138_buildRequest=function(V,D,f){f.client_data&&(V.clientData=f.client_data);if(D.commerceActionConfig){var n=D.commerceActionConfig;D=n.actionId;n=n.commerceActionParams;D&&(V.actionId=D);n&&(V.commerceActionParams=n)}else{var t=D.actionId,J=D.commerceActionParams;f=D.entityKeys;t&&(V.actionId=t);J&&(V.commerceActionParams=J);var H;D=(n=this.JSC$16118_storeWithEntities)==null?void 0:(H=n.getState())==null?void 0:H.entities;if(f&&D){n=[];H=_.r(f);for(f=H.next();!f.done;f=H.next())if(t=
f.value,f=_.PR(t).entityType,t=_.wg(D,f,t))J={},n.push((J[f]=t,J));V.entityMutationPayloads=n}}};
uQ.prototype.getRequestConfig=function(V){var D,f=(D=_.g(V,e_u))==null?void 0:D.requestSequenceType;if(f&&V.clickTrackingParams&&f!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:V.clickTrackingParams,sequenceType:f}}};
uQ[L$]=[Jx];var Nx=function(){};
_.v(Nx,PX);Nx.prototype.getApiPaths=function(){return W9H};
Nx.prototype.getExtension=function(V){return _.g(V,_.YgV)};
Nx.prototype.JSC$11138_buildRequest=function(V,D){D.feedbackData&&(V.feedbackData=D.feedbackData);D.params&&(V.itemParams=D.params)};
_.IG.Object.defineProperties(Nx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mO=function(){};
_.v(mO,PX);mO.prototype.getApiPaths=function(){return pOL};
mO.prototype.getExtension=function(V){return _.g(V,$PP)};
mO.prototype.JSC$11138_buildRequest=function(V,D,f){f.payments_payload&&(V.paymentsPayload=f.payments_payload);f.offer_params&&(V.offerParams=f.offer_params);D.transactionParams&&(V.transactionParams=D.transactionParams)};var zH=function(){};
_.v(zH,PX);zH.prototype.getApiPaths=function(){return L96};
zH.prototype.getExtension=function(V){return _.g(V,_.i_U)};
zH.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.buybucketParams&&(V.buybucketData={params:D.buybucketParams},D.stickerParams?V.buybucketData.stickerParams=D.stickerParams:(f.rich_chat_message?V.buybucketData.richChatMessage=f.rich_chat_message:f.chat_message_text&&(V.buybucketData.chatMessageText=f.chat_message_text),f.purchase_price_micros&&(V.buybucketData.purchasePriceMicros=f.purchase_price_micros.toString())));D.donationAmountMicros&&(V.tipAmountMicros=D.donationAmountMicros,
D.tipParams&&(V.tipParams=D.tipParams));D.offerParams&&(V.offerParams=D.offerParams);D.productData&&(V.productData=D.productData);D.transactionParams&&(V.transactionParams=D.transactionParams)};var Rw=function(){};
_.v(Rw,PX);Rw.prototype.getApiPaths=function(){return I6H};
Rw.prototype.getExtension=function(V){return _.g(V,p5u)};
Rw.prototype.JSC$11138_buildRequest=function(V,D){D.updateFopParams&&(V.updateFopParams=D.updateFopParams)};var Cu=function(){};
_.v(Cu,PX);Cu.prototype.getApiPaths=function(){return OtL};
Cu.prototype.getExtension=function(V){return _.g(V,_.fL)};
Cu.prototype.JSC$11138_buildRequest=function(V,D){D.couponCode&&(V.couponCode=D.couponCode);D.params&&(V.itemParams=D.params)};var qx=function(){};
_.v(qx,PX);qx.prototype.getApiPaths=function(){return xC6};
qx.prototype.getExtension=function(V){return _.g(V,_.c6H)};
qx.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;D.params&&(V.params=D.params);f.ctk&&(V.clientToken=f.ctk)};var Xa=function(V){this.JSC$16153_storeWithEntities=V};
_.v(Xa,PX);Xa.prototype.getApiPaths=function(){return MHH};
Xa.prototype.getExtension=function(V){return _.g(V,_.AT)};
Xa.prototype.JSC$11138_buildRequest=function(V,D,f){f.purchase_price_micros&&(V.productData={pdgData:{purchasePriceMicros:f.purchase_price_micros.toString()}},f.rich_chat_message&&(V.productData.pdgData.richChatMessage=f.rich_chat_message),f.currency_code&&(V.productData.pdgData.currencyCode=f.currency_code));D.transactionParams&&(V.transactionParams=D.transactionParams);D.clientLocationContext&&(V.clientLocationContext=D.clientLocationContext);f.payments_payload&&(V.paymentsPayload=f.payments_payload);
f.funds_guarantee_callback_client_data&&(V.fundsGuaranteeCallbackClientData=f.funds_guarantee_callback_client_data);var n,t;f=(n=this.JSC$16153_storeWithEntities)==null?void 0:(t=n.getState())==null?void 0:t.entities;if(D.entityKeys&&f){n=[];D=_.r(D.entityKeys);for(t=D.next();!t.done;t=D.next()){var J=t.value;t=_.PR(J).entityType;if(J=_.wg(f,t,J)){var H={};n.push((H[t]=J,H))}}V.entityMutationPayloads=n}};
Xa[L$]=[Jx];var EK=function(){};
_.v(EK,PX);EK.prototype.getApiPaths=function(){return hgY};
EK.prototype.getExtension=function(V){return _.g(V,Sgp)};
EK.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;f.backend_analytics&&(V.serializedBackendAnalyticsEvent=f.backend_analytics);D.offerParams&&(V.offerParams=D.offerParams)};var Ag=function(){};
_.v(Ag,PX);Ag.prototype.getApiPaths=function(){return OtL};
Ag.prototype.getExtension=function(V){return _.g(V,xSR)};
Ag.prototype.JSC$11138_buildRequest=function(V,D){D.params&&(V.itemParams=D.params)};var aw=function(){};
_.v(aw,PX);aw.prototype.getApiPaths=function(){return UCo};
aw.prototype.getExtension=function(V){return _.g(V,_.BWV)};
aw.prototype.JSC$11138_buildRequest=function(V,D,f){f.resume_time_ms&&(V.resumeTimeMs=f.resume_time_ms);D.pauseParams&&(V.pauseParams=D.pauseParams)};var Yn=function(){};
_.v(Yn,PX);Yn.prototype.getApiPaths=function(){return VnL};
Yn.prototype.getExtension=function(V){return _.g(V,_.W5F)};
Yn.prototype.JSC$11138_buildRequest=function(V,D,f){f=f===void 0?{}:f;f.c&&(V.redeemCode=f.c);f.rd&&(V.riskData=f.rd);f.ctk&&(V.clientToken=f.ctk)};var $n=function(){};
_.v($n,PX);$n.prototype.getApiPaths=function(){return D0P};
$n.prototype.getExtension=function(V){return _.g(V,_.dP6)};
$n.prototype.JSC$11138_buildRequest=function(V,D){D.resumeParams&&(V.resumeParams=D.resumeParams)};var iQ=function(V,D){this.clientName=V;this.defaultExpirationDelayMs=D};
iQ.prototype.put=function(V,D){var f=this,n;return _.w(function(t){n=Object.assign({},D.data);n.key=V;n.clientName=f.clientName;n.expireTimestampMs===void 0&&(n.expireTimestampMs=(Math.round((0,_.VW)())+f.defaultExpirationDelayMs).toString());return t.return(f.putInternal(V,n))})};
iQ[L$]=[lO,PPF];var LEP=function(){iQ.apply(this,arguments);this.JSC$16183_responseStore=new Map};
_.v(LEP,iQ);_.P=LEP.prototype;_.P.get=function(V){var D=this;return _.w(function(f){return f.return(t$(D,V))})};
_.P.putInternal=function(V,D){var f=this,n,t,J;return _.w(function(H){n=f.defaultExpirationDelayMs;D.expireTimestampMs&&(n=Number(D.expireTimestampMs)-Math.round((0,_.VW)()),t=_.tU("mweb_override_response_store_expiration_ms"),t>0&&t<n&&(n=t));J=setTimeout(function(){f.remove(V)},n);
f.JSC$16183_responseStore.set(V,{entryData:D,timer:J});_.yz(H)})};
_.P.remove=function(V){var D=this;return _.w(function(f){IMp(D,V);_.yz(f)})};
_.P.removeAll=function(){var V=this;return _.w(function(D){V.JSC$16183_responseStore.forEach(function(f){clearTimeout(f.timer)});
V.JSC$16183_responseStore.clear();_.yz(D)})};
_.P.has=function(V){return!!this.JSC$16183_responseStore.get(V)};
_.P.getKeys=function(){return this.JSC$16183_responseStore.keys()};
var t$=function(V,D){if(V=V.JSC$16183_responseStore.get(D))return new _.nC(V.entryData)},IMp=function(V,D){var f=V.JSC$16183_responseStore.get(D);
f&&(clearTimeout(f.timer),V.JSC$16183_responseStore.delete(D))};var HPL;var T9d=function(V,D,f){iQ.call(this,V,D);this.token=f};
_.v(T9d,iQ);_.P=T9d.prototype;_.P.get=function(V){var D=this,f,n;return _.w(function(t){return t.nextAddress==1?_.b(t,QS3(D.token),2):t.nextAddress!=3?(f=t.yieldResult,_.b(t,f.get("ResponseStore",[V,D.clientName]),3)):(n=t.yieldResult)?t.return(new _.nC(n)):t.return(void 0)})};
_.P.putInternal=function(V,D){var f=this,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,QS3(f.token),2);n=t.yieldResult;return _.b(t,n.put("ResponseStore",D),0)})};
_.P.remove=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,QS3(D.token),2);f=n.yieldResult;return n.return(f.delete("ResponseStore",[V,D.clientName]))})};
_.P.removeAll=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,QS3(V.token),2);D=f.yieldResult;return _.b(f,BmV(D,IDBKeyRange.only(V.clientName)),0)})};
_.P.has=function(){throw Error("aj");};_.Su=new _.IH("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var OUF=function(V){var D;this.stateTagsData=(D=V.responseContext)==null?void 0:D.stateTags},xVr=function(V){var D;
return((D=V.stateTagsData)==null?void 0:D.stateTagsModified)||[]};var Mpl;Mpl=function(V){this.JSC$16196_responseStore=V};
_.aN=function(V,D,f){if(!_.c("state_tags_killswitch")){var n=new OUF(D);if(xVr(n).length>0){var t=V.JSC$16196_responseStore.getKeys();t=_.r(t);for(var J=t.next();!J.done;J=t.next()){J=J.value;var H=t$(V.JSC$16196_responseStore,J);if(H){var Q=_.PV(H);a:{var T=void 0;H=xVr(n);Q=((T=(new OUF(Q)).stateTagsData)==null?void 0:T.relevantStateTags)||[];T=_.r(Q);for(Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.stateTag!=null&&H.includes(Q.stateTag)&&Q.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){H=
!0;break a}H=!1}H&&IMp(V.JSC$16196_responseStore,J)}}}}var y;n=(y=D.responseContext)==null?void 0:y.maxAgeSeconds;f&&n&&Number(n)>0&&(D=PW(D,n),V.JSC$16196_responseStore.put(f,new _.nC(D)))};
Mpl.prototype.handleResponse=function(V,D){if(!D)throw Error("bj");var f,n;D=(f=D.config)==null?void 0:(n=f.storeStrategy)==null?void 0:n.storeKey;_.aN(this,V,D)};
Mpl[L$]=[_.fC];_.cXY=new _.IH("STORE_RESPONSE_PROCESSOR_TOKEN");var h$Y=function(V){this.JSC$16199_responseStore=V};
h$Y.prototype.handleResponse=function(V,D){if(D.input.match(_.xy(ZtH))){var f;if(V==null?0:(f=V.entries)==null?0:f.length)for(V=_.r(V.entries),D=V.next();!D.done;D=V.next()){f=D.value.command;var n=void 0;D=(n=_.g(f,_.gU))==null?void 0:n.unserializedPrefetchData;if(!f||!D)break;n=(new bQ).JSC$11145_getStoreKey(f);var t=_.g(D,Nol),J=void 0,H=void 0,Q=void 0,T=_.tU("web_shorts_prefetch_service_ttl_seconds")>0?_.tU("web_shorts_prefetch_service_ttl_seconds"):Number((Q=(J=t)==null?void 0:(H=J.responseContext)==
null?void 0:H.maxAgeSeconds)!=null?Q:3600);n&&T>0&&(t=PW(t,T),this.JSC$16199_responseStore.put(n,new _.nC(t)));f=(new wC).JSC$11145_getStoreKey(f);D=_.g(D,K4r);J=t=n=void 0;H=_.tU("web_shorts_prefetch_service_ttl_seconds")>0?_.tU("web_shorts_prefetch_service_ttl_seconds"):Number((J=(n=D)==null?void 0:(t=n.responseContext)==null?void 0:t.maxAgeSeconds)!=null?J:3600);f&&H>0&&(D=PW(D,H),this.JSC$16199_responseStore.put(f,new _.nC(D)))}}};
h$Y[L$]=[_.fC];var UVl=function(V){this.innertubeTransportService=V};
UVl[L$]=[_.CR];var VR0=new _.IH("SUBMIT_API_SERVICE_TOKEN");var W4=function(){this.scheduler=_.kv()},DUZ;
W4.prototype.pause=function(){throw Error("cj");};
W4.prototype.resume=function(){throw Error("cj");};
W4.prototype.queue=function(V){var D=this,f=_.Sl(),n=_.gq(this.scheduler,function(){try{var t;if(_.bS.instance)var J=_.bS.instance;else{var H=new _.cI("Error: Unexpected uninitialized CommandHandler.");_.NG(H);J=void 0}(t=J)==null||t.resolveCommand(V.command);f.resolve()}catch(Q){f.reject(Q)}});
f.promise.thenCatch(function(t){t instanceof _.Sb&&D.scheduler.cancelJob(n)});
return f.promise};
W4.prototype.queueAll=function(V){var D=new Map;V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,D.set(f.id,this.queue(f));return D};var nF3=function(V,D){var f=this;this.taskModel=V;this.onTaskCancelledCallback=D;this.resolver=_.Sl();V=V.proto.prefetchConfig;if(!V)throw Error("dj");if(!V.prefetchAction)throw Error("ej");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(n){n instanceof _.Sb&&(fZJ(f,f.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),f.onTaskCancelledCallback(f.taskModel.id,f.jobId),f.tick("pcc"));
throw n;});
this.timerName=this.taskModel.id;_.mg(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},tRJ=function(V){switch(V.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},fZJ=function(V,D){_.N1({prefetchInfo:{cancellationReason:D}},V.timerName)};
nF3.prototype.tick=function(V){_.zm(V,void 0,this.timerName)};var Lu=function(){var V=this;this.scheduler=_.kv();this.maxInflightTasks=_.tU("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.tU("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new MLU;this.onTaskCancelled=function(D,f){f&&V.scheduler.cancelJob(f);P3R(V,D);pu(V,3)}},oFB=function(){Lu.instance||(Lu.instance=new Lu);
return Lu.instance};
Lu.prototype.pause=function(){this.prefetchCoordinatorState=0};
Lu.prototype.resume=function(){pu(this,0)};
Lu.prototype.queue=function(V){V=JcJ(this,V);pu(this,1);return V};
Lu.prototype.queueAll=function(V){var D=new Map;V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,D.set(f.id,JcJ(this,f));pu(this,1);return D};
var JcJ=function(V,D){var f=V.allPrefetchTasks.get(D.id);if(f)return f.cancellablePromise;try{var n=new nF3(D,V.onTaskCancelled)}catch(J){return _.Br(J)}f=n;f.tick("pcq");var t={prefetchInfo:{taskId:f.taskModel.id,isPrefetch:!0,fetchAction:f.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:f.taskModel.command.clickTrackingParams}};f.taskModel.csn&&(t.clientScreenNonce=f.taskModel.csn);_.N1(t,f.timerName);V.allPrefetchTasks.set(D.id,n);V.drainingHeap.insert(-tRJ(n),n);return n.cancellablePromise},
pu=function(V,D){V.prefetchCoordinatorState===D&&(V.prefetchCoordinatorState=2,rcf(V))},rcf=function(V){for(var D={};V.prefetchCoordinatorState!==0;D={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(V.inflightPrefetchTasks.size>=V.maxInflightTasks){V.prefetchCoordinatorState=3;break}D.prefetchTask$jscomp$1=V.drainingHeap.remove();if(!D.prefetchTask$jscomp$1){V.prefetchCoordinatorState=1;break}D.taskId$jscomp$3=D.prefetchTask$jscomp$1.taskModel.id;if(V.allPrefetchTasks.has(D.taskId$jscomp$3)){var f=-1;V.coordinatorTimeoutMs>0&&(f=_.gq(V.scheduler,function(n){return function(){Iw(V,n.taskId$jscomp$3,Error("fj"))}}(D),V.coordinatorTimeoutMs));
V.inflightPrefetchTasks.set(D.taskId$jscomp$3,f);if(!V.JSC$16217_commandHandler){if(!_.bS.instance){Iw(V,D.taskId$jscomp$3,Error("gj"));continue}V.JSC$16217_commandHandler=_.bS.instance}a:switch(D.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":f=1;break a;default:f=0}D.prefetchTask$jscomp$1.jobId=V.scheduler.addJob(function(n){return function(){n.prefetchTask$jscomp$1.tick("pcr");try{V.JSC$16217_commandHandler.resolveCommand(n.prefetchTask$jscomp$1.taskModel.command)||
Iw(V,n.taskId$jscomp$3,Error("hj"))}catch(t){Iw(V,n.taskId$jscomp$3,t)}}}(D),f,0)}}},HxR=function(V,D){(D=P3R(V,D))!=null&&(D.resolver.resolve(),D.tick("pce"));
pu(V,3)},Iw=function(V,D,f){(D=P3R(V,D,f))!=null&&(D.resolver.reject(f),D.tick("pcc"),fZJ(D,"CANCELLATION_REASON_ERROR"),Math.random()<=_.tU("prefetch_coordinator_error_logging_sampling_rate")&&(f=new _.cI("Prefetch Command failed.",D.taskModel.id,f.message),_.NG(f)));
pu(V,3)},P3R=function(V,D,f){var n=V.allPrefetchTasks.get(D);
n?((f=V.inflightPrefetchTasks.get(D))&&f!==-1&&V.scheduler.cancelJob(f),V.inflightPrefetchTasks.delete(D),V.allPrefetchTasks.delete(D)):_.zP(new _.cI("Unexpected missing prefetch task when deleting task.",D,f==null?void 0:f.message));return n};var wnf=function(V,D,f,n,t){this.id=V;this.triggerOn=D;this.cancelOn=f;this.command=n;this.proto=t};
_.IG.Object.defineProperties(wnf.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var QYv=function(){this.JSC$16222_prefetchCoordinator=oFB();DUZ||(DUZ=new W4);this.defaultCoordinator=DUZ},TZ0;
QYv.getInstance=function(){TZ0||(TZ0=new QYv);return TZ0};
QYv.prototype.get=function(V){switch(V){case 0:return this.JSC$16222_prefetchCoordinator;default:return this.defaultCoordinator}};var OK=function(){this.coordinatorSupplier=QYv.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},ycf=function(V){var D=_.Ni()||void 0,f=Object.keys(bx3)[0];
if(f){var n=V.taskIdByTriggerId.get(f);if(n!=null){V.taskIdByTriggerId.delete(f);f=[];n=_.r(n);for(var t=n.next();!t.done;t=n.next())if(t=V.tasks.get(t.value))D!=="UNDEFINED_CSN"&&(t.csn=D),f.push(t);f=yjY(f);D=[];f=_.r(f);for(n=f.next();!n.done;n=f.next()){t=_.r(n.value);n=t.next().value;t=t.next().value;n=V.coordinatorSupplier.get(n).queueAll(t);n=_.r(n);var J=n.next();for(t={};!J.done;t={taskId$jscomp$9:void 0},J=n.next()){var H=_.r(J.value);J=H.next().value;H=H.next().value;t.taskId$jscomp$9=
J;J=H;D.push(t.taskId$jscomp$9);V.queuedPromisesByTask.set(t.taskId$jscomp$9,_.cT(J,function(Q){return function(){KXB(V,Q.taskId$jscomp$9)}}(t)))}}}}else _.zP(new _.cI("Unexpected malformed TriggerEvent."))};
OK.prototype.trigger=function(V,D){var f=this,n=this.tasks.get(V);if(!n||this.queuedPromisesByTask.has(V))return!1;Zx0(this,V,n.triggerOn);D!=="UNDEFINED_CSN"&&(n.csn=D);D=this.coordinatorSupplier.get(n.taskType).queue(n);this.queuedPromisesByTask.set(V,_.cT(D,function(){KXB(f,V)}));
return!0};
OK.prototype.cancel=function(V){var D=this.queuedPromisesByTask.get(V);if(D)D.cancel();else return KXB(this,V)};
var KXB=function(V,D){V.queuedPromisesByTask.delete(D);var f=V.tasks.get(D);if(!f)return!1;V.tasks.delete(D);Zx0(V,D,f.triggerOn);(f=KVY(f.cancelOn))&&(V=V.taskIdByCancelId.get(f))&&V.delete(D);return!0},Zx0=function(V,D,f){(f=Object.keys(f)[0])&&(V=V.taskIdByTriggerId.get(f))&&V.delete(D)};var bx3={taskRegistered:{}},xn=function(){OK.instance||(OK.instance=new OK);this.JSC$16231_taskManager=OK.instance};
_.v(xn,EQ);
xn.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){f=_.g(V,mTl);if((n=f)==null||!n.tasks){var J=new _.cI("RegisterTasksCommand is missing tasks.");_.NG(J);return t.return()}J=D.JSC$16231_taskManager;for(var H=_.r(f.tasks),Q=H.next();!Q.done;Q=H.next())if(Q=Q.value,Q=Q.id&&Q.triggerOn&&Q.cancelOn&&Q.command?new wnf(Q.id,Q.triggerOn,Q.cancelOn,Q.command,Q):void 0,Q){var T=Object.keys(Q.triggerOn)[0];if(T){var y=KVY(Q.cancelOn);y?(J.tasks.set(Q.id,Q),J.taskIdByTriggerId.has(T)||J.taskIdByTriggerId.set(T,
new Set),J.taskIdByTriggerId.get(T).add(Q.id),J.taskIdByCancelId.has(y)||J.taskIdByCancelId.set(y,new Set),J.taskIdByCancelId.get(y).add(Q.id)):_.zP(new _.cI("Unexpected malformed cancelOn field."))}else _.zP(new _.cI("Unexpected malformed triggerOn field."))}else _.zP(new _.cI("Unexpected malformed Task proto."));ycf(D.JSC$16231_taskManager);_.yz(t)})};var jYR={},lZZ=(jYR.rendered={priority:0,callback:function(){var V={};V.numCpu=navigator.hardwareConcurrency;var D={};D.ramGb=_.fx.navigator.deviceMemory;var f={staticContext:{}};D.ramGb&&ZPY(D.ramGb)&&(f.staticContext.memoryTotalKbytes=(D.ramGb*1048576).toString());V.numCpu&&ZPY(V.numCpu)&&(f.staticContext.cpuCores=V.numCpu);if(_.c("web_enable_adaptive_appl_signal")){V={};D=_.q1("rses_dpj");var n=_.q1("rsef_dpj");D&&D>0&&n&&n>0&&(D=Math.ceil(n-D),D>0&&(V.loadLatency=D));V.loadLatency&&ZPY(V.loadLatency)&&
(f.appL=V.loadLatency.toString())}_.dq("applicationStarted",f)}},jYR);var GLw=new _.IH("WINDOW_ON_ERROR"),e9w=new _.IH("ERROR_WEIGHT_MAPS"),ccB=new _.IH("INIT_ERROR");var FXf={},gFR=(FXf.initialized={priority:10,callback:function(V){V.injector.resolve(ccB)()}},FXf);var vFv=function(){},kLq=function(){var V=_.Yw("meta_logger_impl");
V||(V=new vFv,_.M4("meta_logger_impl",V));return V},sYW=function(){kLq().csiSubscriptionKey=jWX("meta_logging_csi_event",function(V){var D=V.timerName;
if(V=V.timelineData){_.mg(D,{startTime:V.startTime},D);V.infos&&_.N1(V.infos,D);for(var f=_.r(Object.keys(V.ticks)),n=f.next();!n.done;n=f.next())n=n.value,_.zm(n,V.ticks[n],D)}})};
vFv.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&eIx(this.csiSubscriptionKey)};var BZV={},dUR=(BZV.initialized={priority:10,callback:function(){sYW()}},BZV);var u9W=function(V,D){this.innertubeClientName=V;this.JSC$16247_prefCookie=D};
u9W.prototype.record=function(){if(_.c("web_li_record_binary_eval_tick")){var V=_.q1("rsef_dpj");var D=_.q1("rses_dpj");V=V!==void 0&&D!==void 0?Math.round(V-D):void 0;if(V!==void 0&&V>0){D=_.J5(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var f=this.poolSize;if(!(D.valuesSeen>=1E9)){if(D.valuesSample.length<f)D.valuesSample.push(V);else{var n=Math.floor(Math.random()*(D.valuesSeen+1));n<f&&(D.valuesSample[n]=V)}D.valuesSeen+=1}_.oC(this.storagePrefix+"-"+this.innertubeClientName,
D,2592E3);V=D.valuesSample;D=jSn(V);V=V.length<5?void 0:D<400?1:D<1700?2:3;V!==void 0&&(this.JSC$16247_prefCookie.set(this.cookiePrefix+this.innertubeClientName,V),this.JSC$16247_prefCookie.save())}}else _.rC(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16247_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16247_prefCookie.save()};
u9W[L$]=[lO,Id];var NZZ=function(){u9W.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.v(NZZ,u9W);var mUc=new _.IH("PAGE_LOAD_TIME_TOKEN");var z9V=function(V){this.signal=V;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;V.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.gq(_.dm,this.disableLoggingAndSendPayload,1E4)};
z9V.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.dm.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),R9w(this))};
var R9w=function(V){var D=_.u8();if(D){var f={webClientComponentsData:{components:Array.from(V.ids,function(n){return{id:n}})}};
V.ids.clear();_.lS().visualElementStateChanged(D,f)}};var C3R=new _.IH("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Mx=function(V,D){this.JSC$16276_storeWithEntities=V;this.JSC$16276_commandHandler=D;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Mx.prototype.start=function(){this.JSC$16276_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Mx.prototype.observeDownloadingEntities=function(){var V=_.ONR(this.JSC$16276_storeWithEntities.getState().entities).map(function(n){return xWU(n)});
if(V.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var D={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:GhU()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Vc(_.Zl("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16276_commandHandler.resolveCommand(D)}this.downloadingEntities=V}else if(this.downloadingEntities.length){var f=IA9(this.JSC$16276_storeWithEntities.getState().entities).map(function(n){return xWU(n)});
this.downloadingEntities.filter(function(n){return f.includes(n)}).length&&(V={openPopupAction:VV9()},this.JSC$16276_commandHandler.resolveCommand(V));
this.downloadingEntities=[]}};
Mx[L$]=[Jx,_.fH];var qdq;_.hg=function(V,D,f,n,t,J,H,Q){this.JSC$16279_playerApiPromise=V;this.JSC$16279_commandHandler=D;this.JSC$16279_screenManager=f;this.offlineWebClientEligibility=n;this.JSC$16279_prefStorage=t;this.JSC$16279_actionRouter=J;this.entityTypeMap=H;this.JSC$16279_persistentStorePromiseAccessor=Q;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
qdq=function(){var V=_.DY().resolve(_.hg),D;_.w(function(f){if(f.nextAddress==1)return V.downloadFailureListenerBound?f.return():_.b(f,V.JSC$16279_playerApiPromise,2);D=f.yieldResult;D.addEventListener("onOfflineOperationFailure",function(n){if(n.failureReason&&n.entityKey&&n.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(n.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var t=_.PR(n.entityKey).entityId;t&&V.JSC$16279_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
t)}else if(_.c("kevlar_woffle")){t=V.JSC$16279_commandHandler;var J=t.resolveCommand;n=n.failureReason;var H=_.Zl("TRANSFER_FAILED",void 0,"Download failed");n==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(H=_.Zl("STORAGE_FULL",void 0,"Storage full"));J.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Vc(H),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
V.downloadFailureListenerBound=!0;_.yz(f)})};
_.hg.prototype.deleteVideo=function(V,D){var f=this,n,t,J;return _.w(function(H){if(H.nextAddress==1)return _.b(H,f.JSC$16279_playerApiPromise,2);n=H.yieldResult;J={offlineLoggingData:{offlineDeleteReason:(t=D)!=null?t:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.b(H,n.queueOfflineAction(V,f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),0)})};
_.hg.prototype.pauseVideoDownload=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.JSC$16279_playerApiPromise,2);f=n.yieldResult;f.pauseVideoDownload(V);_.yz(n)})};
_.hg.prototype.resumeVideoDownload=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.JSC$16279_playerApiPromise,2);f=n.yieldResult;return _.b(n,f.resumeVideoDownload(V),0)})};
_.hg[L$]=[_.nX,_.fH,_.cO,C3R,h3,II,PMV,HX];var Xnq=new _.IH("DOWNLOAD_STATE_STORE_TOKEN");var EFJ=function(V,D){this.JSC$16299_persistentStorePromiseAccessor=V;this.store=D;this.upliftCompletionResolver=new _.wU},Ydc=function(){var V=_.DY().resolve(AcB),D;
_.w(function(f){switch(f.nextAddress){case 1:if(V.upliftImplPromise)return f.return(V.upliftImplPromise);_.wx(f,2);V.upliftImplPromise=aZX(V);return _.b(f,V.upliftImplPromise,4);case 4:V.upliftCompletionResolver.resolve();_.YJ(f,3);break;case 2:throw D=_.KW(f),V.upliftCompletionResolver.reject(D),D;case 3:return f.return(V.upliftImplPromise)}})},aZX=function(V){var D,f,n;
return _.w(function(t){switch(t.nextAddress){case 1:return _.EG("LOGGED_IN")?_.b(t,V.JSC$16299_persistentStorePromiseAccessor(),2):t.return();case 2:D=t.yieldResult;if(!D)return _.zm("vdeur"),t.return();_.zm("vdeus");_.wx(t,3);return _.b(t,$Uv(D),5);case 5:f=t.yieldResult;V.store.dispatch(RNL(f));D.observe(function(J){Cyn(V.store,J)});
_.YJ(t,4);break;case 3:throw n=_.KW(t),_.zm("vdeur"),n;case 4:_.zm("vdeuc"),_.yz(t)}})},$Uv=function(V){var D;
return _.w(function(f){if(f.nextAddress==1)return _.b(f,vZ9(V),2);D=f.yieldResult;return f.return(D.reduce(function(n,t){if(!t.data||!t.key||!t.entityType)return n;n[t.entityType]||(n[t.entityType]={});n[t.entityType][t.key]=t.data;return n},{}))})};
EFJ[L$]=[HX,_.C1];var AcB;AcB=new _.IH("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.UK=new _.IH("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Vq=function(V,D){this.JSC$16302_persistentStorePromiseAccessor=V;this.transportService=D};
Vq.prototype.refresh=function(){var V=this,D,f,n,t;return _.w(function(J){if(J.nextAddress==1)return _.EG("LOGGED_IN")?_.b(J,V.JSC$16302_persistentStorePromiseAccessor(),2):J.return();if(J.nextAddress!=3)return(D=J.yieldResult)?_.b(J,oZ9(D),3):J.return();if((f=J.yieldResult)&&!(Number(f.data.refreshTimestampMs||0)<(0,_.VW)()))return J.return();n={browseId:"SPaccount_downloads"};t=_.xy(hE);_.m5(V.transportService,n,t).then(function(H){var Q;if(D&&(H==null?void 0:(Q=H.responseContext)==null?void 0:
Q.maxAgeSeconds)!==0){var T;Q=(H==null?void 0:(T=H.responseContext)==null?void 0:T.maxAgeSeconds)||604800;T=String(Math.floor((0,_.VW)())+Q*1E3);D.put("service:downloads_settings:fallback",new _.nC({innertubeResponse:H,refreshTimestampMs:T}))}});
_.yz(J)})};
Vq[L$]=[_.Su,_.CR];var Df=function(V,D){this.JSC$16306_playerPromise=V;this.store=D;this.started=!1};
Df.prototype.start=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return V.started?f.return():_.b(f,V.JSC$16306_playerPromise,2);D=f.yieldResult;D.addEventListener("onOrchestrationBecameLeader",V.updateIsLeader.bind(V,!0));D.addEventListener("onOrchestrationLostLeader",V.updateIsLeader.bind(V,!1));if(D.isOrchestrationLeader)V.updateIsLeader(D.isOrchestrationLeader());else{var n=new _.cI("Function isOrchestrationLeader is undefined",{"player.isReady":D.isReady(),"player.playVideo":D.playVideo?
"defined":"undefined"});_.NG(n);V.updateIsLeader(!1)}V.started=!0;_.yz(f)})};
Df.prototype.updateIsLeader=function(V){this.store.dispatch(_.nA({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:V}}))};
Df[L$]=[_.nX,_.C1];var ixR=function(V,D){this.networkStatusManager=V;this.JSC$16309_prefStoragePromise=D;this.redirectsToPreload=["https://youtube.com"]},SdR=function(){var V=_.DY().resolve(ixR),D,f,n,t,J,H;
_.w(function(Q){switch(Q.nextAddress){case 1:return _.b(Q,V.JSC$16309_prefStoragePromise,2);case 2:D=Q.yieldResult;if(!(f=D)){Q.jumpTo(3);break}return _.b(Q,D.get("yt-redirect-prefetch-id"),4);case 4:f=Q.yieldResult;case 3:if(f||!V.networkStatusManager.isNetworkAvailable())return Q.return();n={cache:"reload",redirect:"manual"};t=_.r(V.redirectsToPreload);J=t.next();case 5:if(J.done){if(!D){Q.jumpTo(0);break}return _.b(Q,D.set("yt-redirect-prefetch-id",!0,86400),0)}H=J.value;_.wx(Q,8);return _.b(Q,
_.fx.fetch(H,n),10);case 10:_.YJ(Q,6);break;case 8:_.KW(Q);case 6:J=t.next(),Q.jumpTo(5)}})};var f0=function(V){V?(this.container=V,this.containerWasInjected=!0):this.containerWasInjected=!1};
f0.prototype.openDialog=function(V,D,f){var n=this,t;return _.w(function(J){(t=n.container)==null||t.openDialog(V,D,f);_.yz(J)})};
f0.prototype.closeDialog=function(){var V=this,D;return _.w(function(f){(D=V.container)==null||D.closeDialog();_.yz(f)})};
f0.prototype.isDialogOpen=function(){var V=this,D,f;return _.w(function(n){return n.return((f=(D=V.container)==null?void 0:D.isDialogOpen())!=null?f:!1)})};
f0[L$]=[_.Vx(YKV)];_.WXV=new _.IH("POPUP_CONTROLLER_TOKEN");var pnX=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
pnX.prototype.registerPanel=function(V,D){if(V){this.panelMap.set(V,D);var f=this.pendingPanelResolvers.get(V);f&&(f.resolve(D),this.pendingPanelResolvers.delete(V))}};
pnX.prototype.getPanel=function(V){var D=this,f;return _.w(function(n){return(f=D.panelMap.get(V))?n.return(f):n.return(LXR(D,V))})};
var LXR=function(V,D){var f,n;return _.w(function(t){if(f=V.pendingPanelResolvers.get(D))return t.return(f.promise);n=new _.wU;V.pendingPanelResolvers.set(D,n);return t.return(n.promise)})},IZJ=function(V){pnX.call(this);
var D=this;this.popupController=V;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return D.panelMap.size}}};
_.v(IZJ,pnX);_.P=IZJ.prototype;_.P.getReloadContinuation=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.getPanel(V),2);f=n.yieldResult;return n.return(f.getReloadContinuation())})};
_.P.showPanel=function(V,D,f,n,t,J,H){var Q=this,T,y,Z,l;return _.w(function(G){if(G.nextAddress==1){H&&Q.updatePanelContinuationDatas.set(V,H);if((T=f)==null?0:(y=T.engagementPanelPopupPresentationConfig)==null?0:y.popupType){Z=f.engagementPanelPopupPresentationConfig.popupType;t===void 0&&(t=document.body);var F=G.return,k=Q.popupController,d=k.openPopup;a:switch(Z){case "PANEL_POPUP_TYPE_DIALOG":var z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":z="DROPDOWN";break a;default:throw Error("jj`"+
Z);}return F.call(G,d.call(k,V,D,z,t))}return _.b(G,Q.getPanel(V),2)}l=G.yieldResult;(D||J)&&l.updatePanel(D,!1,n,J);l.showPanel(n);_.yz(G)})};
_.P.hidePanel=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,D.getPanel(V),2);f=n.yieldResult;f.hidePanel();D.popupController.closePopup(V);_.yz(n)})};
_.P.isVisible=function(V,D){var f=this,n;return _.w(function(t){if(t.nextAddress==1)return D&&!f.panelMap.has(V)?t.return(!1):_.b(t,f.getPanel(V),2);n=t.yieldResult;return t.return(n.isVisible())})};
_.P.updatePanel=function(V,D,f,n,t,J){f=f===void 0?!1:f;var H=this,Q;return _.w(function(T){if(T.nextAddress==1){if(!D&&!t)return T.return();J&&H.updatePanelContinuationDatas.set(V,J);return _.b(T,H.getPanel(V),2)}Q=T.yieldResult;Q.updatePanel(D,f,n,t);_.yz(T)})};
_.P.registerPanelContent=function(V,D){V&&this.panelContentMap.set(V,D)};
_.P.getPanelContent=function(V){return this.panelContentMap.get(V)};
_.P.getUpdatePanelContinuationData=function(V){return this.updatePanelContinuationDatas.get(V)};
IZJ[L$]=[_.WXV];var n0=function(V,D){this.innertubeTransportService=V;this.JSC$16325_screenManager=D},OxJ=function(V){var D;
return!((D=V.panelLoadingStrategy)==null||!D.requestTemplate)};
n0.prototype.makeRequest=function(V){var D=this,f,n;return _.w(function(t){switch(t.nextAddress){case 1:if(!OxJ(D)){t.jumpTo(2);break}_.wx(t,3);return _.b(t,_.ie(D.innertubeTransportService,V),5);case 5:return f=t.yieldResult,f?t.return(f.content):(_.NG(Error("kj")),t.return(void 0));case 3:n=_.KW(t),_.NG(n);case 2:return t.return(void 0)}})};
n0.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
n0.prototype.execute=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l;return _.w(function(G){if(G.nextAddress==1){f=V;n=f.data;t=f.fallbackVe;J=f.parentVe;H=f.createScreenConfig;Q=f.renderFn;T=f.command;D.panelLoadingStrategy=n;var F,k,d=((F=D.panelLoadingStrategy)==null?0:F.screenVe)?(k=D.panelLoadingStrategy)==null?void 0:k.screenVe:t;d&&_.P5(D.JSC$16325_screenManager,d,J,H);return(y=D.getContent())?_.b(G,Q(y),2):G.jumpTo(2)}return G.nextAddress!=4?OxJ(D)?_.b(G,D.makeRequest(T),4):G.return():(l=Z=G.yieldResult)?
_.b(G,Q(l),0):G.return()})};
n0[L$]=[_.CR,_.cO];var to=function(){};
to.prototype.getContainer=function(){return _.UX()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
to.prototype.openSheet=function(V,D){var f=this,n,t,J,H,Q,T;return _.w(function(y){switch(y.nextAddress){case 1:return n={stack:[],error:void 0,hasError:!1},_.wx(y,2,3),t=OR,_.b(y,f.isSheetOpen(),5);case 5:J=y.yieldResult;PJ9(n,s9Y(t));if(J){if(D&&f.currentTarget===D)return(H=f.getContainer())==null||H.closeSheet(),y.return();f.pendingData={data:V,target:rzu(f,D)};return y.return()}V.viewModel&&(V={viewModel:V.viewModel});(Q=f.getContainer())==null||Q.openSheet(V,D);f.currentTarget=D;case 3:_.Qz(y);
oTY(n);_.bK(y,0);break;case 2:T=_.KW(y),n.error=T,n.hasError=!0,y.jumpTo(3)}})};
to.prototype.closeSheet=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,(D=V.getContainer())==null?void 0:D.closeSheet(),2);if(f.nextAddress!=4)return V.currentTarget=void 0,V.pendingData?_.b(f,V.openSheet(V.pendingData.data,V.pendingData.target),4):f.jumpTo(0);V.pendingData=void 0;_.yz(f)})};
to.prototype.isSheetOpen=function(){var V=this,D,f;return _.w(function(n){return n.return((f=(D=V.getContainer())==null?void 0:D.isSheetOpen())!=null?f:!1)})};
var rzu=function(V,D){if(!_.c("web_parent_target_for_sheets"))return D;var f,n;return(n=(f=V.getContainer())==null?void 0:f.getParentTarget(D))!=null?n:D};var rK=window.documentPictureInPicture;var XPc=_.WV(["dark"]),EZY=_.WV(["system-icons"]),Aj9=_.WV(["typography"]),aKR=_.WV(["lang"]),YM3=_.WV(["style"]),z1x=_.WV(["dir"]),R1n=_.WV(["rounded-container"]),Cx9=_.WV(["style"]),iPX=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Px=function(V){this.JSC$16337_clientRoot=V;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Px.prototype.openWindow=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return window.documentPictureInPicture&&_.mX()&&!D.currentPipWindow?_.b(t,(f=rK?rK:null)==null?void 0:f.requestWindow(V),2):t.return(!1);if(t.nextAddress!=3){n=t.yieldResult;if(!n)return t.return(!1);n.addEventListener("pagehide",function(){xU0(D)});
n.addEventListener("resize",D.handlePipWindowResize);D.pipWindowResizeDelay=new _.hq(function(){D.currentPipWindow&&_.o4(D.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.bB(D.currentPipWindow.innerWidth,D.currentPipWindow.innerHeight)])},n);
$jn(n);WVZ(n);return _.b(t,mjx(n),3)}if(!djZ())return t.return(!1);D.currentPipWindow=n;D.JSC$16337_eventForwarder=SMX(n,D.JSC$16337_clientRoot);D.pipWindowResizeDelay.start();return t.return(!0)})};
Px.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var xU0=function(V){if(V.currentPipWindow){var D,f;(D=rK?rK:null)==null||(f=D.window)==null||f.close();V.currentPipWindow.removeEventListener("resize",V.handlePipWindowResize);var n;(n=V.pipWindowResizeDelay)==null||n.dispose();V.pipWindowResizeDelay=void 0;var t;(t=V.JSC$16337_eventForwarder)==null||t.stop();V.JSC$16337_eventForwarder=void 0;D=_.r(V.onCloseCallbacks);for(f=D.next();!f.done;f=D.next())f=f.value,f();V.onCloseCallbacks=[];V.currentPipWindow=null}};
Px.prototype.getWindow=function(){return this.currentPipWindow};
var MRw=function(V,D){var f;(f=V.onCloseCallbacks)==null||f.push(D)};
Px.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.mX()};
_.IG.Object.defineProperties(Px.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Px[L$]=[Jgu];var h9f=new _.IH("PICTURE_IN_PICTURE_CONTROLLER");var pPY=function(V,D){this.lengthY=this.lengthX=0;this.lengthX=D.x-V.x;this.lengthY=D.y-V.y};var UUJ=function(){},TdV=function(V,D){var f;
(f=V.headerElement)==null||f.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:D}))};var VEf=function(){};
VEf.prototype.openPopup=function(V,D,f,n){var t=this,J;return _.w(function(H){if(!t.container)return H.return();J={openPopupAction:{popup:D,popupType:f,uniqueId:V}};return H.return(t.container.handleOpenPopupAction(J,n))})};
VEf.prototype.closePopup=function(V){this.container&&this.container.closePopup(V)};var DLJ=function(){this.openTunnels=new Map},vSx=function(V,D,f){if(h13(f)){var n=_.Al(f,"gclid");
f={handleEvent:function(Q){D&&!D.closed&&typeof D.postMessage==="function"&&Q&&Q.origin&&Q.source===D&&Q.data&&Q.data.action==="gcl_setup"&&D.postMessage(Object.assign({},{action:"gcl_transfer"},n&&{gclid:n},{gadSource:2}),Q.origin)}};
for(var t=_.r(V.openTunnels),J=t.next();!J.done;J=t.next()){var H=_.r(J.value);J=H.next().value;H=H.next().value;if(J.closed)try{window.removeEventListener("message",H),V.openTunnels.delete(J)}catch(Q){_.NG(Q)}}D&&V.openTunnels.size<15&&(V.openTunnels.set(D,f),window.addEventListener("message",f))}};var fFo=function(){this.clientParams=new Map},bVL=function(V){for(var D=_.r(V.clientParams.keys()),f=D.next();!f.done;f=D.next())f=f.value,f.startsWith("yt-mini-app-share")&&V.clientParams.delete(f)};var npf=function(V,D){_.cq.call(this);var f=this;this.shortsController=V;this.storeWithShorts=D;V=_.yX(this.storeWithShorts,_.laX,function(n){if(n){var t,J=(t=f.shortsController.getRoot())==null?void 0:t.getPlayer(),H;(t=(H=f.shortsController.alternativePlayerContainerElement)==null?void 0:H.getPlayerContainer())&&(J==null||J.appendTo(t))}else{var Q;H=(Q=f.shortsController.alternativePlayerContainerElement)==null?void 0:Q.getPlayerContainer().querySelector("#player");t=f.shortsController.activeIndex;
(Q=(J=f.shortsController.getRoot())==null?void 0:J.querySelector('ytd-reel-video-renderer[id="'+t+'"] #player-container'))&&(H==null||H.appendTo(Q,void 0,!0))}});
this.addOnDisposeCallback(V)};
_.v(npf,_.cq);var or=function(V,D,f,n,t){var J=this;this.storeWithShorts=V;this.ephemeralResponseStore=D;this.store=f;this.innertubeTransportService=n;this.innertubeTransportLoader=t;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.CT(_.KL);this.isShortsPipActive=_.CT(_.yw);this.nextReelVe=_.Bj(56921);this.prevReelVe=_.Bj(56922);this.backButtonVe=_.Bj(22156);this.TEST_ONLY={getActiveModules:function(){return J.activeModules}}},tEX=function(V){V.unsubscribeFromStore=
_.yX(V.storeWithShorts,_.jLY,function(D){V.initOrDisposeActiveModules(D);
!D&&V.storeWithShorts.getState().shorts.isFullscreen&&(_.Vv(document.documentElement),V.storeWithShorts.dispatch(_.Q0Y(!1)))});
V.initOrDisposeActiveModules(_.jLY(V.storeWithShorts.getState()))},TbL,bvV,P63;
or.prototype.initOrDisposeActiveModules=function(V){V?this.activeModules.push(new npf(this,this.storeWithShorts)):(_.h4(this.activeModules),this.activeModules.length=0)};
or.prototype.registerRootElement=function(V){this.rootElement=V;tEX(this)};
or.prototype.getRoot=function(){return this.rootElement};
or.prototype.setActiveIndex=function(V){this.activeIndex=V};
_.oDU=function(V,D){var f,n,t,J,H,Q,T;return _.w(function(y){switch(y.nextAddress){case 1:return f=new bQ,(n=f.JSC$11145_getStoreKey(D))&&V.ephemeralResponseStore.has(n)?_.b(y,V.ephemeralResponseStore.get(n),7):_.b(y,P63(V,D),4);case 4:t=y.yieldResult;if(!n){y.jumpTo(3);break}J=PW(t,3600);return _.b(y,V.ephemeralResponseStore.put(n,new _.nC(J)),3);case 7:t=(H=y.yieldResult)==null?void 0:_.PV(H);case 3:return((Q=t)==null?0:Q.replacementEndpoint)&&(T=_.g(t.replacementEndpoint,_.gU))&&t.sequenceContinuation&&
(T.sequenceParams=t.sequenceContinuation),y.return(t)}})};
TbL=function(V,D){D=(new Ku).JSC$11145_getStoreKey(D);return!!D&&V.ephemeralResponseStore.has(D)};
bvV=function(V,D,f){var n,t,J,H,Q;_.w(function(T){if(T.nextAddress==1){n=new Ku;t=n.JSC$11145_getStoreKey(D);if(!t)return T.return();if(f.reelWatchSequenceResponse)return J=PW(f.reelWatchSequenceResponse,3600),V.ephemeralResponseStore.put(t,new _.nC(J)),T.jumpTo(0);if(!V.ephemeralResponseStore.has(t))return T.jumpTo(0);Q=f;return _.b(T,V.ephemeralResponseStore.get(t),4)}Q.reelWatchSequenceResponse=(H=T.yieldResult)==null?void 0:_.PV(H);_.yz(T)})};
P63=function(V,D){var f=f===void 0?{}:f;var n,t,J;return _.w(function(H){switch(H.nextAddress){case 1:if(V.innertubeTransportService){n=V.innertubeTransportService;H.jumpTo(2);break}if(!V.innertubeTransportLoader){_.Ah(Error("mj"));H.jumpTo(2);break}return _.b(H,V.innertubeTransportLoader(),4);case 4:n=H.yieldResult;case 2:return _.b(H,(t=n)==null?void 0:_.ie(t,D,f),5);case 5:return J=H.yieldResult,H.return(J)}})};
_.IG.Object.defineProperties(or.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
or[L$]=[MGY,_.fC,Jx,_.Vx(_.CR),_.Vx(pgl)];_.opW=new _.IH("STORAGE_MANAGER_TOKEN");var fm3=["touchmove","scroll"];var okF={onSpanEnd:function(V){if(V.parent==null){var D=V.name;_.mg(D);PcZ(V,D)}}};var Jrc=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},rrB;
Jrc.prototype.enqueue=function(V,D){D===1?this.currentPersistentToast=V:this.queue.push(V);this.openToast()};
Jrc.prototype.openToast=function(){var V;(V=this.currentToast)!=null&&V.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Jo=new _.IH("TOAST_MANAGER_TOKEN");var Ho3=new _.IH("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var wHq=new _.IH("VIEW_TRANSITION_COORDINATOR_TOKEN");var Qlc=function(V){this.config=V;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;V=_.r(V.transitionConfigs);for(var D=V.next();!D.done;D=V.next())D=_.r(D.value).next().value,this.transitionTasksMap.set(D,[])};
Qlc.prototype.registerElement=function(V,D,f){f=f===void 0?!1:f;for(var n=_.r(Object.keys(D)),t=n.next(),J={};!t.done;J={viewTransitionName:void 0},t=n.next()){t=t.value;J.viewTransitionName=D[t];var H=this.elementTasksMap.get(V),Q=void 0;if((Q=H)==null?0:Q.has(t)){_.mw(new _.cI("Element already registered for transition",V.tagName,t));break}H=H||new Map;H.set(t,{beforeTransition:function(T){return function(){V.style.viewTransitionName=T.viewTransitionName}}(J),
afterTransition:function(){V.style.viewTransitionName&&(V.style.viewTransitionName="")},
runOnce:f});this.elementTasksMap.set(V,H)}};
_.$C=function(V,D){var f=V.elementTasksMap.get(D);f&&(f.clear(),f.size===0&&V.elementTasksMap.delete(D))};
Qlc[L$]=[Ho3];var TPW;_.boV=_.MA(function(V){return _.K("basic-content-view-model",{class:_.KT("ytBasicContentViewModelHost",_.IU(V.className))},_.K(_.e,{cond:function(){return V.data().headline},
then:function(D){return _.K("div",{class:"ytBasicContentViewModelHeadline"},_.K(_.Ow,{text:D}))}}),_.K(_.FB,{each:function(){return V.data().paragraphs||[]},
keyBy:"INDEX"},function(D){return _.K("div",{class:"ytBasicContentViewModelParagraph"},_.K(_.e,{cond:function(){var f=D();return!!(f.header||f.customHeader||f.headline)},
then:function(){return _.K(TPW,{paragraph:D})}}),_.K(_.e,{cond:function(){return D().asset||D().text},
then:function(){return _.K("div",{class:"ytBasicContentViewModelParagraphContent"},_.K(_.e,{cond:function(){return D().asset},
then:function(f){return _.K("div",{class:"ytBasicContentViewModelParagraphAsset"},_.K(_.BW,{data:f},{contentPreviewImageViewModel:_.h8}))}}),_.K(_.e,{cond:function(){return D().text},
then:function(f){return _.K("div",{class:"ytBasicContentViewModelParagraphText"},_.K(_.Ow,{text:f}))}}))}}))}))},"ve");
TPW=_.MA(function(V){var D=V.paragraph;return _.K(_.th,null,_.K(_.e,{cond:function(){return D().headline},
then:function(f){return _.K(_.Ow,{text:f,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.K(_.BW,{data:function(){return D().header||D().customHeader}},{sectionHeaderViewModel:function(f){return _.K(_.nQ,{data:f.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"we");var yrV=_.MA(function(V){var D=_.W2("yt-expandable-metadata-header-view-model"),f=_.jl(function(n){if(!_.CX(_.R7(n),D.value,["A".toString(),"BUTTON".toString()])){var t;(t=V.expandedCallback)==null||t.call(V,!1)}});
return _.K("yt-expandable-metadata-header-view-model",{el:D,class:"ytExpandableMetadataHeaderViewModelHost"},_.K(_.e,{cond:function(){return V.expanded()},
then:function(){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":f},_.K("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.K(_.e,{cond:function(){return V.data().expandedTitleImage},
then:function(n){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.K(_.xt,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:n}))}}),_.K("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.K("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.K(_.Ow,{text:function(){return V.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.K(_.Ow,{text:function(){return V.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.K(_.Ow,{text:function(){return V.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.K("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.K(_.BW,{data:function(){return V.data().infoButton}},{buttonViewModel:_.HO}),_.K(_.BW,{data:function(){return V.data().collapseButton}},{buttonViewModel:function(n){return _.K(_.HO,{data:n.data,
onClick:function(){var t;(t=V.expandedCallback)==null||t.call(V,!1)}})}})))},
else:function(){return _.K(KYX,Object.assign({},V))}}))},"xe"),ZoV=_.MA(function(V){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.K(_.e,{cond:function(){return V.data().collapsedLabelImage},
then:function(D){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.K(_.xt,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:D,alt:""}))}}),_.K(_.Ow,{text:function(){return V.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ye"),KYX=_.MA(function(V){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.jl(function(){var D;return void((D=V.expandedCallback)==null?void 0:D.call(V,!0))})},_.K("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.K(_.e,{cond:function(){return V.data().collapsedImage},
then:function(D){return _.K("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.K(_.xt,{width:16,height:16,data:D,alt:""}))}}),_.K(_.e,{cond:function(){return V.data().showLeadingCollapsedLabel},
then:function(){return _.K(ZoV,Object.assign({},V))}}),_.K("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.K(_.Ow,{text:function(){return V.data().collapsedTitle}}))),_.K("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.K(_.e,{cond:function(){return!V.data().showLeadingCollapsedLabel},
then:function(){return _.K(ZoV,Object.assign({},V))}}),_.K(_.BW,{data:function(){return V.data().infoButton}},{buttonViewModel:_.HO}),_.K(_.BW,{data:function(){return V.data().expandButton}},{buttonViewModel:function(D){return _.K(_.HO,{data:D.data,
onClick:function(){var f;(f=V.expandedCallback)==null||f.call(V,!0)}})}})))},"ze");_.jlw=_.MA(function(V){var D=_.r(_.Gk(function(){return V.data().initiallyExpanded})),f=D.next().value,n=D.next().value,t,J=(t=_.DY().resolve(_.Vx(_.pm)))==null?void 0:t(),H=function(){var Q=V.data().colorData;
if(Q)return J?Q==null?void 0:Q.darkColorPalette:Q==null?void 0:Q.lightColorPalette};
return _.K("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.el({"background-color":function(){var Q=H();return(Q==null?0:Q.section2Color)?_.aB(Q.section2Color):""}})},_.K(_.BW,{data:function(){return V.data().header}},{expandableMetadataHeaderViewModel:function(Q){return _.K(yrV,{data:Q.data,
expanded:function(){return!!f()},
expandedCallback:function(T){n(T)}})}}),_.K(_.e,{cond:function(){return f()},
then:function(){return _.K("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.K(_.BW,{data:function(){return V.data().expandedContent}},{horizontalShelfViewModel:function(Q){return _.K(_.di,{data:Q.data,
includeMargin:!0,forceNarrowLayout:!0,palette:H})},
videoSummaryContentViewModel:function(Q){return _.K(XaY,{data:Q.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(Q){return _.K(_.nv,{data:Q.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(Q){return _.K(_.boV,{data:Q.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.K(_.BW,{data:function(){return V.data().expandedBottomButtons}},{buttonViewModel:function(Q){return _.K("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.K(_.HO,{data:Q.data}))}}))}}))},"Ae");var lF0=_.MA(function(V){var D=V.text;var f=V.marqueeSpacing;var n=V.scrollDelay;var t=V.scrollDuration;var J=V.enableMarqueeScroll;V=V.large;var H=_.r(_.HJ(!1,void 0,"kfNqfd")),Q=H.next().value,T=H.next().value,y=_.r(_.HJ(0,void 0,"bYgZbf"));H=y.next().value;var Z=y.next().value,l=_.W2("marquee-scroll");y=_.W2("div");var G=_.W2("span"),F=_.DY().resolve(_.I5);_.BJ(function(){if(J()){var z=G.value.getBoundingClientRect().width,C=l.value.getBoundingClientRect().width;if(z>C){var A=(F==="ltr"?-1:1)*
(z+(f?f():16));Promise.resolve().then(function(){T(!0);Z(A)})}}},"giRlme");
var k={},d={};return _.K("marquee-scroll",{class:_.KT("ytMarqueeScrollHost",(k.ytMarqueeScrollHostLarge=V,k)),el:l},_.K("div",{id:"marquee-scroll-inner-container",class:_.KT("ytMarqueeScrollInnerContainer",(d.ytMarqueeScrollAnimationEnabled=function(){return Q()},d)),
el:y,style:_.el({gap:f?(0,_.vi)(f):"16px","animation-duration":t?B7U(t):"16s","animation-delay":n?B7U(n):"3s","--marquee-translate":(0,_.vi)(H)})},_.K("span",{el:G,dir:"auto"},_.K(_.Ow,{text:D,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.K(_.e,{cond:Q,then:function(){return _.K("span",{"aria-hidden":"true",dir:"auto"},_.K(_.Ow,{text:D,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Be");_.GUR=_.MA(function(V){var D=V.data;var f=V.overlayDensity;V=_.jl(function(){D().onTapCommand&&_.Yt(D().onTapCommand);return!1});
var n=_.S3Z(),t=function(){return(f==null?void 0:f())===1?22:16},J={};
return _.K("reel-sound-metadata-view-model",{class:_.KT("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(f==null?void 0:f())===1},J)),
"on:click":V,tabindex:0,role:"button","on:keydown":n},_.K("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.K(_.e,{cond:function(){return D().musicIcon},
then:function(H){return _.K(_.xt,{data:H,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:t})}}),_.K("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.K(lF0,{text:function(){return D().soundMetadata},
enableMarqueeScroll:function(){return!!D().enableMarqueeScroll},
large:function(){return(f==null?void 0:f())===1}}))))},"Ce");var el0,crV,rn,kUZ,BP3,vp0,NPf,uFf;el0=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];crV=_.tU("wil_icon_max_concurrent_fetches",Infinity);
rn=function(V,D,f){var n=this;this.iconSet=V;this.appDirection=D;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.fx.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.c("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.c("wil_icon_network_first");this.renderWhenIdle=_.c("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.c("wil_icon_load_immediately");this.isPurging=!1;V=function(){n.cacheStorageAvailable&&(n.cacheStorageAsync=_.fx.caches.open("yt-icons").then(function(J){return n.cacheStorageSync=J}).catch(function(){n.cacheStorageAvailable=!1}))};
f=(f==null?void 0:f())||{};f=_.r(Object.entries(f));for(D=f.next();!D.done;D=f.next()){var t=_.r(D.value);D=t.next().value;t=t.next().value;t=Z9(t);FYq(t);this.iconCache[D]=t.cloneNode(!0)}this.isPurging=gpc(this);this.isPurging instanceof Promise?this.isPurging.then(V):V()};
_.LoX=function(V,D){var f=V.resolveIcon(D);return f?V.renderingMode===1?vp0(V,f,V.renderingMode):(D=V.iconCache[f.url])?(D=D.cloneNode(!0),kUZ(V,D),vp0(V,f,V.renderingMode,D)):_.slf(V,f).then(function(n){var t=n?0:1;kUZ(V,n);return vp0(V,f,t,n)}):(_.mw(new _.cI("Icon not found",{iconShape:D})),function(){})};
kUZ=function(V,D){if(D){V.counter+=1;V="_yt"+V.counter;D=[D].concat(_.sz(D.getElementsByTagName("*")));D=_.r(D);for(var f=D.next();!f.done;f=D.next())if(f=f.value,f.tagName==="style"&&f.textContent)f.textContent=BP3(f.textContent,V,!0);else for(var n=_.r(f.attributes),t=n.next();!t.done;t=n.next()){t=t.value;t.name==="id"&&(t.value+=V);["mask","fill","clip-path"].includes(t.name)&&(t.value=BP3(t.value,V));if(t.name==="style"){var J=f.style;try{J.cssText=BP3(J.cssText,V,!0)}catch(Z){var H=void 0,Q=
void 0,T=void 0,y=void 0;Hx({error:((H=Z)==null?void 0:(T=(Q=H).toString)==null?void 0:T.call(Q))||"",el:f.outerHTML,style:!!J,cssText:(y=J)==null?void 0:y.cssText})}}t.name==="xlink:href"&&(t.value=t.value.replace(/#(.*)/,"#$1"+V))}}};
BP3=function(V,D,f){var n=/url\(["']?#(.*?)["']?\)/;(f===void 0?0:f)&&(n=/url\(["']?#(.*?)["']?\)/g);return V.replace(n,"url(#$1"+D+")")};
vp0=function(V,D,f,n){return function(t,J){var H=Object.assign({},{iconColor:"currentcolor",iconWidth:D.size+"px",iconHeight:D.size+"px",iconDisplay:"block"},J);J=_.yh("DIV");var Q=H.iconColor,T=H.iconFilter;H="width: "+H.iconWidth+"; height: "+H.iconHeight+"; display: "+H.iconDisplay+";";T&&(H+=" filter: "+T+";");f===0&&(H+=" fill: "+Q+";");f===1&&(T=D.url,H+=" -webkit-mask: url("+T+") no-repeat center / cover; mask: url("+(T+") no-repeat center / cover; background-color: ")+Q);D.allowMirroring&&
V.appDirection==="rtl"&&(H+=" transform: scale(-1, 1); transform-origin: center center;");J.setAttribute("style",H);f===0&&n&&J.appendChild(n);t.appendChild(J)}};
_.slf=function(V,D){var f,n,t;return _.w(function(J){f=function(H){return dQ(H)};
n=D.url;if(!dLZ(n))throw Error("oj");t=uFf(V,n);return J.return(t.then(function(H){return H.clone().text()}).then(function(H){var Q=f(H);
H=D.size;var T=_.yh("DIV");_.$x(T,Q);Q=_.ZC(T.firstElementChild!==void 0?T.firstElementChild:_.Jru(T.firstChild,!0));H=FYq(Q,H);V.iconCache[n]=H.cloneNode(!0);delete V.responsePromises[n];return H}).catch(function(){}))})};
NPf=function(V){var D,f=(D=V.requestAninmationFrameResolver)==null?void 0:D.promise;f||(V.requestAninmationFrameResolver=new _.wU,f=V.requestAninmationFrameResolver.promise,_.fx.requestAnimationFrame(function(){var n;(n=V.requestAninmationFrameResolver)==null||n.resolve();V.requestAninmationFrameResolver=null}));
return f};
uFf=function(V,D){var f,n;return _.w(function(t){if(t.nextAddress==1)return V.waitForAnimationFrame?_.b(t,NPf(V),2):t.jumpTo(2);f=V.responsePromises[D];f||(n=function(){var J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:if(!V.cacheStorageAvailable){J=void 0;T.jumpTo(2);break}if(H=V.cacheStorageSync){T.jumpTo(3);break}return _.b(T,V.cacheStorageAsync,4);case 4:H=T.yieldResult;case 3:J=H;case 2:return Q=J,V.isNetworkFirstStrategy?T.return(V.fetchAndUpdateCache(D,Q).catch(V.getCacheStorageResponse.bind(V,
D,Q))):T.return(V.getCacheStorageResponse(D,Q).catch(V.fetchAndUpdateCache.bind(V,D,Q)))}})},f=V.renderWhenIdle?new Promise(function(J,H){_.gq(_.dm,function(){n().then(J).catch(H)},10)}):n(),V.responsePromises[D]=f);
return t.return(f.catch(function(J){delete V.responsePromises[D];Hx({error:(J==null?0:J.toString)?J.toString():"",url:D});throw J;}))})};
rn.prototype.fetchAndUpdateCache=function(V,D){var f=this;return _.w(function(n){return n.return(mLf(f,V).then(function(t){zlR(f,V,t,D);return t}))})};
var mLf=function(V,D){var f;return _.w(function(n){if(V.numFetches<crV)return V.numFetches+=1,n.return(RlZ(V,D).finally(function(){--V.numFetches;if(Object.keys(V.queuedResponseResolvers).length){var t=Object.keys(V.queuedResponseResolvers)[0],J=V.queuedResponseResolvers[t];delete V.queuedResponseResolvers[t];J.resolve(mLf(V,t))}}));
f=new _.wU;V.queuedResponseResolvers[D]=f;return n.return(f.promise)})},RlZ=function(V,D,f){f=f===void 0?2:f;
var n;return _.w(function(t){n={credentials:"same-origin",priority:"low"};return t.return(_.fx.fetch(D,n).then(function(J){return J.ok?J:Promise.reject(Error("pj`"+J.status+"`"+J.statusText))}).catch(function(J){if(f>0)return RlZ(V,D,f-1);
throw J;}))})},zlR=function(V,D,f,n){_.w(function(t){return n?t.return(new Promise(function(J){_.gq(_.dm,function(){var H,Q;
return _.w(function(T){switch(T.nextAddress){case 1:if(!V.isNetworkFirstStrategy){H=void 0;T.jumpTo(2);break}return _.b(T,n.match(D).catch(function(){}),3);
case 3:H=T.yieldResult;case 2:if(Q=H){T.jumpTo(4);break}return _.b(T,n.put(D,f.clone()).catch(function(y){Hx({error:(y==null?0:y.toString)?y.toString():"",url:D})}),4);
case 4:J(),_.yz(T)}})},50)})):t.return()})};
rn.prototype.getCacheStorageResponse=function(V,D){return _.w(function(f){return D?f.return(D.match(V).then(function(n){return n&&n.ok?n:Promise.reject()})):f.return(Promise.reject())})};
var FYq=function(V,D){D===void 0||V.getAttribute("viewBox")||V.setAttribute("viewBox","0 0 "+D+" "+D);V.setAttribute("focusable","false");V.setAttribute("aria-hidden","true");try{V.style.pointerEvents="none",V.style.display="inherit",V.style.width="100%",V.style.height="100%"}catch(t){var f;Hx({error:((f=t)==null?0:f.toString)?t.toString():""});try{V.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(J){var n;Hx({error:((n=J)==null?0:n.toString)?J.toString():
""})}}return V},dLZ=function(V){for(var D=_.r(el0),f=D.next();!f.done;f=D.next())if(V.startsWith(f.value)&&V.endsWith(".svg"))return!0;
return!1};
rn.prototype.resolveIcon=function(V){return this.iconSet.resolveIcon(V)};
var Hx=function(V){_.zP(new _.cI("Error in IconManager",V))},gpc=function(V){if(_.c("wil_icons_cache_purge_killswitch"))return!1;
try{var D=_.fx.localStorage}catch(J){return!1}if(!D||!V.cacheStorageAvailable)return!1;var f=function(J){try{var H;(H=D)==null||H.setItem("yt-icons-last-purged",J.toString())}catch(T){var Q;Hx({error:((Q=T)==null?0:Q.toString)?T.toString():""})}},n=Number(D.getItem("yt-icons-last-purged"));
if(!n)return n=new Date,n=n.setDate(n.getDate()-Math.floor(Math.random()*90+1)),f(n),!1;if(function(J,H){J=new Date(J);H=new Date(H);return H.getMonth()-J.getMonth()+12*(H.getFullYear()-J.getFullYear())}(n,Date.now())<3)return!1;
try{return _.fx.caches.delete("yt-icons").then(function(J){J&&f(Date.now());return J}).catch(function(){return!1}).finally(function(){V.isPurging=!1})}catch(J){var t;
Hx({error:((t=J)==null?0:t.toString)?J.toString():""});return!1}};
rn[L$]=[EHF,_.I5,_.Vx(YZF)];_.wn=function(V,D){this.iconManager=V;this.iconsToFetch=D};
_.wn[L$]=[_.TK,_.Vx(aLY)];var C6W=function(){};var qu0=function(V,D,f){this.requestKey=V;this.zbF=D;this.pcD=f;this.dOx=function(){return new XMLHttpRequest};
this.ynD=void 0;this.oG3=[]};
qu0.prototype.getLatestChallengeResponse=function(){return this.pcD};
var bWH=function(V,D,f){var n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1){_.mg("attestation_challenge_fetch");_.zm("att_fs",void 0,"attestation_challenge_fetch");if(!V.ynD)throw new _.gH(9,"Missing fetcher");return _.b(Q,V.ynD(D,f),2)}n=Q.yieldResult;J=(t=n)==null?void 0:t.bgChallenge;if(!J)throw new _.gH(15,"Missing field");V.pcD=n;V.oG3.forEach(function(T){T(n)});
H=PDU(J);_.zm("att_fc",void 0,"attestation_challenge_fetch");J_F("attestation_challenge_fetch");return Q.return(H)})},X6l=function(V,D){var f,n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:f=new Jl(100,3E5,.25,2),n=void 0;case 2:if(!(f.currBackoffCount_<10)){Q.jumpTo(4);break}_.wx(Q,5);if(!(f.currBackoffCount_>0)){Q.jumpTo(7);break}return _.b(Q,rCX(f.getValue()),7);case 7:return _.b(Q,XHc(V,D),9);case 9:return t=Q.yieldResult,Q.return(t);case 5:J=_.KW(Q);J instanceof _.gH?n=J:(H=J instanceof Error?J.message:"Unknown",n=new _.gH(9,H));grl(f);Q.jumpTo(2);break;case 4:if(n)throw n;throw new _.gH(9,"Unknown error");}})},XHc=function(V,
D){D=fWl(njF(new D9u,D),V.requestKey);
var f=new _.wU,n=V.dOx();n.open("POST",V.zbF);n.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");n.setRequestHeader("Content-Type","application/json+protobuf");n.onload=function(){if(_.X1U(n)){var t=TwL(n.responseText);f.resolve(t)}else f.reject(new _.gH(_.MBd(_.JU(n)),n.statusText))};
n.onerror=function(){f.reject(new _.gH(_.MBd(_.JU(n)),n.statusText))};
n.send(D.serialize());return f.promise};var ArJ=function(V){this.networkStatusManager=V;this.isDownloaded=JjF===void 0?function(){return!1}:JjF;
this.isReady=!1;this.rzK=Epv(this)},Epv=function(V){var D;
return _.w(function(f){if(f.nextAddress==1)return _.b(f,NX9(),2);if(f.nextAddress!=3)return D=f.yieldResult,_.b(f,kJL(D),3);V.jA=f.yieldResult;wzZ(V.jA).then(function(){V.isReady=!0});
return f.return(V.jA)})},aFJ=function(V,D,f){V.jA?(V=V.jA.j3C({yv:f,
d6D:!0,z0I:!0}),D.serviceIntegrityDimensions={poToken:V}):_.NG(Error("rj"))};
ArJ.prototype.processContext=function(V){var D=this;if(!V.input.match(_.xy(TMl)))return _.i7();var f=V.innerTubeRequest,n=f.videoId;return!n||this.isDownloaded(f)||this.networkStatusManager&&!this.jA&&!this.networkStatusManager.isNetworkAvailable()?_.i7():this.jA?this.isReady?(aFJ(this,f,n),_.i7()):new $B(wzZ(this.jA).then(function(){aFJ(D,f,n)})):new $B(this.rzK.then(function(t){return _.w(function(J){if(J.nextAddress==1)return _.b(J,wzZ(t),2);
aFJ(D,f,n);_.yz(J)})}))};var YuV=new _.IH("WEB_PO_CONTEXT_PROCESSOR");var $Lq=function(V,D){var f=this;this.sS3=0;var n;this.zR1=(n=D==null?void 0:D.zR1)!=null?n:window;this.networkStatusManagerPromise=D==null?void 0:D.networkStatusManagerPromise;var t;this.requestKey=(t=D==null?void 0:D.requestKey)!=null?t:_.PI("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var J;this.cfK=(J=D==null?void 0:D.cfK)!=null?J:function(T){return new Nm(T)};
var H;n=(H=D==null?void 0:D.i08)!=null?H:function(T,y,Z){return new qu0(T,y,Z)};
this.bgChallenge=PDU(V.bgChallenge);this.ttlSeconds=oQF(xV(V.challenge||""));this.pV=n(this.requestKey,_.c("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.fx.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",V);HrY(this.pV);var Q;this.rWJ=(Q=D==null?void 0:D.rWJ)!=null?Q:function(T){_.kt(f.zR1.document,"visibilitychange",function(){f.zR1.document.visibilityState===
"visible"&&T()})}},SuX=function(V){if(!V.ku){var D={maxAttempts:5,
vLJ:V.ttlSeconds*1E3};Q6X(V.zR1);V.ku=V.cfK({pV:V.pV,yZS:{disable:_.c("html5_web_po_disable_remote_logging"),w7:"aGIf",noF:m2U("html5_web_po_experiment_ids"),aTu:_.c("wpo_dis_lfdms")?0:1E3,o8j:function(n){var t=T5V.get(n);t||(t=new Q1u(n),t=new Qh(t),T5V.set(n,t));return t}},
dSB:D,eci:V.bgChallenge,lru:T7L});V.sS3=Date.now();raE(V.ku,function(){V.sS3=Date.now()});
CWc(V.ku,function(){return _.w(function(n){return n.return(iov(V))})});
var f=V.wpO.bind(V);V.networkStatusManagerPromise&&V.ttlSeconds>0&&V.networkStatusManagerPromise.then(function(n){n.listen("publicytnetworkstatus-online",f)});
V.rWJ(f)}};
$Lq.prototype.wpO=function(){if(Date.now()>this.sS3+this.ttlSeconds*1E3){var V;(V=this.ku)==null||Jar(V)}};
var iov=function(V){if(V.wXk)return V.wXk;if(!V.ku)throw Error("sj");V.wXk=new C8({ku:V.ku,pV:V.pV,yID:!0,onError:T7L});return V.wXk},KPd=function(V,D){V=new $Lq(V,D);
SuX(V);iov(V)};var Qq=function(V,D){this.store=V;this.queue=[];D==null||D.addEventListener("yt-navigate-start",this.reset.bind(this))};
Qq.prototype.enqueue=function(V){var D=V.command,f=V.durationMs,n=V.elementToFocus;var t=V.label;var J=V.elementToFocus;V.command?t=_.Zl("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:t,shortcut:_.Zl("SHIFT_PLUS_ENTER")}):J&&(V=t+". "+_.Zl("SHIFT_PLUS_ENTER")+" for more information.",t=_.Zl("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:t,shortcut:_.Zl("SHIFT_PLUS_ENTER")},V));f={announcement:t,durationMs:f!=null?f:8E3};D?f.command=D:n&&(n.classList.add("ephemeral-action-focusable-element"),f.selector=n.tagName+
".ephemeral-action-focusable-element");this.queue.push(f);WYV(this)};
Qq.prototype.activate=function(V){var D=_.cj3(this.store.getState());if(D){if(D==null?0:D.command)_.Em(D.command),this.store.dispatch(J$E(null));if(D==null?0:D.selector)D=document.querySelector(D.selector),_.MQd(D);V.preventDefault()}};
var WYV=function(V){if(!_.cj3(V.store.getState())&&V.queue.length){var D=V.queue.shift();D&&(V.previousAnnouncement===D.announcement&&(D.announcement+="\u00a0"),V.store.dispatch(J$E(D)),V.previousAnnouncement=D.announcement,V.timeoutId=setTimeout(function(){if(D.selector){var f;(f=document.querySelector(D.selector))==null||f.classList.remove("ephemeral-action-focusable-element")}V.store.dispatch(J$E(null));WYV(V)},D.durationMs))}};
Qq.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(J$E(null));this.queue.length=0;this.timeoutId=void 0};
Qq[L$]=[_.C1,_.e2];_.TZ=new _.IH("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var pHR=window.AbortController||v8H;var LYf=new _.IH("AUTH_SERVICE_TOKEN");var j63=_.WV(["about:blank"]),ZrX;var bA=new _.IH("API_IFRAME_TOKEN"),IFc=new _.IH("FETCH_FN_TOKEN"),Ooq=new _.IH("PARSE_FN_TOKEN"),xLw=new _.IH("WINDOW_REQUEST_TOKEN"),MEc=new _.IH("TEXT_DECODER_TOKEN");var Kkr;Kkr=new _.IH("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.hlZ=new _.IH("MISC_UI_SHARED_FLAGS_TOKEN");var ULf=function(){};
ULf.prototype.getFlag=function(V){if(V.configType!==2)throw Error("tj");return VWX(V)};
var VWX=function(V){switch(V.flagType){case "bool":return _.c(V.flagName);case "int":return _.Lo(_.tU(V.flagName));case "double":return _.tU(V.flagName);case "string":return _.PI(V.flagName);case "int32_list":return m2U(V.flagName);case "int64_list":return m2U(V.flagName).map(function(D){return _.Lo(D)});
case "string_list":return _.oT(V.flagName);default:throw Error("uj");}};var K0=function(V,D,f){D=D===void 0?{}:D;sj.call(this,f===void 0?"uninitialized":f);this.env=V;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}];D.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=D.shouldWaitOnAsyncImmediate)};
_.v(K0,sj);K0.prototype.init=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(n,V(D.env),2):(V(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?_.b(n,D.jobSet.completedResolver.promise,4):n.jumpTo(4);f=_.C_();f.parkOrScheduleJob(function(){D.transition("rendering")},10,"ci");
_.yz(n)})};
K0.prototype.initialRender=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(n,V(D.env),2):(V(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?_.b(n,D.jobSet.completedResolver.promise,4):n.jumpTo(4);f=_.C_();f.parkOrScheduleJob(function(){D.transition("rendered")},10,"cr");
_.yz(n)})};
K0.prototype.afterRenderImmediate=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(n,V(D.env),2):(V(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?_.b(n,D.jobSet.completedResolver.promise,4):n.jumpTo(4);f=_.C_();f.parkOrScheduleJob(function(){D.transition("after-render-deferred")},10,"carml");
_.yz(n)})};
K0.prototype.afterRenderDeferred=function(V){var D=this;return _.w(function(f){V(D.env);_.yz(f)})};var Dof;_.ql("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});Dof={};_.fRf=(Dof.CSI=vkd(),Dof.ECATCHER=gk9(),Dof);var nfX={},tWc=(nfX.rendered={priority:0,callback:function(V){Idp(V.injector.resolve(v2))}},nfX);var jh9=new _.IH("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),PXc=new _.IH("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var of3=function(V){this.callbackFnMap=V;this.configMap={}};
of3.prototype.handleResponse=function(V){var D;V=(D=V.responseContext)==null?void 0:D.serviceTrackingParams;D=_.r(V);for(V=D.next();!V.done;V=D.next()){V=V.value;var f=V.params,n=V.service;if(f&&n){this.configMap[n]||(this.configMap[n]=new awY);V=this.configMap[n];var t=void 0,J=(t=this.callbackFnMap)==null?void 0:t[n];f=_.r(f);for(n=f.next();!n.done;n=f.next())t=n.value,n=t.key,t=t.value,n&&t&&(V.set(n,t),J&&J(n,t))}}};
of3[L$]=[_.Vx(PXc)];var JZR=!1,uD3=0,k8U=null,dfF=null;var rZV=new _.IH("NETWORK_SLI_TOKEN");var HwJ=function(V,D,f,n,t){this.networkSli=V;this.fetchFn=D;this.parseFn=f;this.requestFn=n;this.JSC$16461_textDecoder=t};
HwJ.prototype.fetch=function(V,D,f){var n=this,t,J,H;return _.w(function(Q){t=wBX(n,V,D);H=(J=n.fetchFn)!=null?J:fetch;return Q.return(H(t).then(function(T){return n.handleResponse(T,f)}).catch(function(T){_.zP(T);
if((f==null?0:f.expectJsonStrict)&&T instanceof j2&&T.errorType===1)return Promise.reject(T)}))})};
var bjP=function(V,D,f,n){var t,J,H,Q,T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:return t=wBX(V,D,f),_.wx(l,2),_.b(l,fetch(t),4);case 4:J=l.yieldResult;_.YJ(l,3);break;case 2:throw _.KW(l),new j2(2,"Failed to parse streaming response",t.url);case 3:if(!J.redirected&&!J.ok)throw(H=V.networkSli)==null||H.failure(),new _.cI("Streaming fetch request not ok",t.url);if(!J.body)throw new _.cI("No response body in streaming response",t.url);Q={};if(_.c("web_streaming_fast"))return T=J.body.getReader(),
l.return(Qqv(V,T,Q,n));y=J.body.pipeThrough(new TextDecoderStream).getReader();Z=new _.D7;return l.return(TRw(V,y,Z,Zb9,Q,n))}})},wBX=function(V,D,f){if(V.networkSli){var n=_.Qx(_.Mi(D,"key"))||"/UNKNOWN_PATH";
V.networkSli.start(n)}n=f;_.c("wug_networking_gzip_request")&&(n=Wq3(f));var t;return new ((t=V.requestFn)!=null?t:window.Request)(D,n)},Qqv=function(V,D,f,n){var t,J,H,Q,T,y,Z,l,G,F,k;
return _.w(function(d){switch(d.nextAddress){case 1:t=V.JSC$16461_textDecoder?new V.JSC$16461_textDecoder("utf-8"):new TextDecoder("utf-8"),J="",H=function(z){z=z.trim();z.length!==0&&z!=="]"&&z!=="["?(z.startsWith("[")&&(z=z.substring(1)),z.endsWith("]")&&(z=z.slice(0,-1)),z.endsWith(",")&&(z=z.slice(0,-1)),z=z.trim()):z=void 0;if(z)try{var C=JSON.parse(z);Zb9(f,C);n==null||n(f,C)}catch(A){throw new j2(1,"Failed to parse streaming response",z);}},_.wx(d,2,3);
case 5:return _.b(d,D.read(),8);case 8:Q=d.yieldResult;T=Q.value;if(y=Q.done)return J.length>0&&H(J),Z=void 0,(Z=V.networkSli)==null||Z.success(),d.return(f);J+=t.decode(T,{stream:!0});l=J.split("\n");J=l.pop()||"";G=_.r(l);for(F=G.next();!F.done;F=G.next())k=F.value,H(k);d.jumpTo(5);break;case 3:_.Qz(d);D.releaseLock();_.bK(d,0);break;case 2:throw _.KW(d),new j2(1,"Failed to parse streaming response");}})},TRw=function(V,D,f,n,t,J){var H,Q,T,y,Z,l,G,F,k;
return _.w(function(d){if(d.nextAddress==1)return _.b(d,D.read(),2);H=d.yieldResult;Q=H.value;if(T=H.done)return(y=V.networkSli)==null||y.success(),d.return(t);try{Z=f.parse(Q)}catch(z){throw new j2(1,"Failed to parse streaming response",Q);}if(Z!=null)for(l=_.r(Z),G=l.next();!G.done;G=l.next())F=G.value,n(t,F),k=void 0,(k=J)==null||k(t,F);return d.return(TRw(V,D,f,n,t,J))})};
HwJ.prototype.handleResponse=function(V,D){var f,n=(f=this.parseFn)!=null?f:JSON.parse;f=V.text().then(function(t){if((D==null?0:D.jspbResponseCtor)&&V.ok)return nrY(D.jspbResponseCtor,t);t=t.replace(")]}'","");if((D==null?0:D.expectJsonStrict)&&t)try{var J=n(t)}catch(Q){throw new j2(1,"JSON parsing failed after fetch");}var H;return(H=J)!=null?H:n(t)});
V.redirected||V.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),f=f.then(function(t){_.zP(new _.cI("Error: API fetch failed",V.status,V.url,t));return Object.assign({},t,{errorMetadata:{status:V.status}})}));
return f};
HwJ[L$]=[_.Vx(rZV),_.Vx(IFc),_.Vx(Ooq),_.Vx(xLw),_.Vx(MEc)];var bwq=new _.IH("NETWORK_MANAGER_TOKEN");var K3W=[1,2,4,8,16,30],ZwJ=function(V){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=V.maxTimeMs;this.maxFrameCount=V.maxFrameCount===void 0?Math.ceil(60*V.maxTimeMs/1E3):V.maxFrameCount;V=_.r(K3W);for(var D=V.next();!D.done;D=V.next())this.brokenFrameSummarizers.push(new yZV(D.value/60*1E3))},jqB=function(V){var D=V.frameCountInternal>=V.maxFrameCount;
return V.elapsedTimeMs>=V.maxTimeMs||D},lRq=function(V){for(var D=[],f=_.r(V.brokenFrameSummarizers),n=f.next();!n.done;n=f.next())n=n.value,n=n.brokenFrameCount!==0?{severityMs:Math.round(n.targetFrameTimeMs),
eventCount:n.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(n.averageDurationBetweenEventsMs)}:void 0,n&&D.push(n);return{summaries:D,monitoringDurationMs:Math.round(V.elapsedTimeMs)}};
_.IG.Object.defineProperties(ZwJ.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 yZV=function(V){this.targetFrameTimeMs=V;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.IG.Object.defineProperties(yZV.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var GJo=function(){};
GJo.prototype.start=function(V,D){var f=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var n=new ZwJ({maxTimeMs:V});this.monitor=n;this.lastSummaryInternal=void 0;this.metadataToLog=D;return new Promise(function(t){var J=function(H){if(H===void 0)f.stop(),t(void 0);else if(f.monitor!==n)H=Object.assign({},lRq(n),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),t(H);else{var Q=f.monitor;if(!jqB(Q)){Q.frameCountInternal++;if(Q.prevTime===void 0)Q.startTime=
H;else for(var T=H-Q.prevTime,y=_.r(Q.brokenFrameSummarizers),Z=y.next();!Z.done;Z=y.next()){Z=Z.value;var l=Z.currTimeMs;Z.currTimeMs+=T;T>Z.targetFrameTimeMs+2&&(Z.brokenFrameCount++,Z.timeOfFirstBrokenFrameMs===void 0&&(Z.timeOfFirstBrokenFrameMs=l),Z.timeOfLastBrokenFrameMs=l)}Q.prevTime=H}jqB(f.monitor)?t(f.stop()):_.dm.addJob(J,5,0)}};
_.dm.addJob(J,5,0)})};
GJo.prototype.stop=function(V){if(!this.monitor)return this.lastSummaryInternal;var D=Object.assign({},lRq(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(D.monitoringDurationMs){V=V!=null?V:this.metadataToLog;var f={droppedFramesSummary:D,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};V&&(f[V.type]=V.data);_.dq("manualSmoothnessMeasurement",f)}this.monitor=void 0;this.lastSummaryInternal=D;this.metadataToLog=void 0;return D};_.evw=new _.IH("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var cZ3;cZ3=function(V){this.JSC$16484_expiringStorage=new gO(V)};
_.F3J=function(V){if(_.N7X()&&(V=_.eix(_.G5()+"::"+V)))return new cZ3(V)};
cZ3.prototype.set=function(V,D,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$16484_expiringStorage.set(V,D,f)};
cZ3.prototype.get=function(V){return this.JSC$16484_expiringStorage.get(V)};
cZ3.prototype.remove=function(V){this.JSC$16484_expiringStorage.remove(V)};var gfB=new _.IH("SESSION_STORAGE");_.yq=function(){};
_.yq.getInstance=function(){var V=_.Yw("ytglobal.storage_");V||(V=new _.yq,_.M4("ytglobal.storage_",V));return V};
_.yq.prototype.estimate=function(){var V,D,f;return _.w(function(n){V=navigator;return((D=V.storage)==null?0:D.estimate)?n.return(V.storage.estimate()):((f=V.webkitTemporaryStorage)==null?0:f.queryUsageAndQuota)?n.return(mfX()):n.return()})};
_.M4("ytglobal.storageClass_",_.yq);var LPn=!!(Mw[1]>>14&1);var ACR=0;var pz9=!1;var vfw=_.WV(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),kJo=_.WV(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Bdo={"/":_.K_,"/?feature=ytca":_.K_,"/feed/downloads":_.y19};var KY=function(V,D,f){this.JSC$16500_upliftPromise=V;this.store=D;this.JSC$16500_persistentStorePromiseAccessor=f};
KY.prototype.shouldPreferLocalResponse=function(V){return V.browseId==="FEdownloads"||V.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?!0:!1};
KY.prototype.localInnertubeResponse=function(V){var D=this;return _.w(function(f){return V.browseId==="FEdownloads"?_.c("kevlar_modern_downloads_page")?f.return(sqW(D)):f.return(BRo(D)):V.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?f.return(doJ(D)):f.return(Promise.reject(Error("wj")))})};
KY.prototype.canProvideFallbackResponse=function(){return!0};
KY.prototype.localFallbackInnertubeResponse=function(V){var D=this,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return _.b(J,D.JSC$16500_persistentStorePromiseAccessor(),2);case 2:f=J.yieldResult;if(V.browseId!=="SPaccount_downloads"||!f){J.jumpTo(3);break}return _.b(J,oZ9(f),4);case 4:if(n=J.yieldResult)return J.return(_.PV(n));case 3:return V.browseId==="FEwhat_to_watch"?J.return(uVR(D)):(t=_.c("web_offline_continuation_automatic_retry")||_.c("web_offline_continuation_retry_button"))&&
V.continuation?J.return(NRR(D)):J.return(moq(D))}})};
var uVR=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$16500_upliftPromise,2);D=_.nBY(V.store.getState().entities);return D.length?f.return(zvf(V,D)):f.return(moq(V))})},BRo=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$16500_upliftPromise,2);if(n.nextAddress!=3)return D=RvB([{offlineItemSectionRenderer:{}}]),_.b(n,CXV(V,D),3);f=n.yieldResult;f.onResponseReceivedActions=[kV("REFRESH_DOWNLOADS")];return n.return(f)})},sqW=function(V){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z;
return _.w(function(C){if(C.nextAddress==1)return _.b(C,V.JSC$16500_upliftPromise,2);if(C.nextAddress!=3)return D=V.store.getState(),f=D.entities,n=_.sl(f),t=_.BR(f),J=_.RPc(D),H=_.zPR(D),Q=_.C79(D),T=_.oBZ(f),y=_.es(n),Z=_.dg(f),l=_.wcY(f),G=_.Xc9(D),F=_.RW(D),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.NpY(n,t,T,l,J,H,y,Z,Q,G,F),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},d=_.Zl("DOWNLOADS",void 0,"Downloads"),
_.b(C,qcW(V,k,d),3);z=C.yieldResult;z.onResponseReceivedActions=[kV("REFRESH_DOWNLOADS")];return C.return(z)})},doJ=function(V){var D,f,n,t,J,H,Q,T,y;
return _.w(function(Z){if(Z.nextAddress==1)return _.b(Z,V.JSC$16500_upliftPromise,2);if(Z.nextAddress!=3)return D=V.store.getState(),f=D.entities,n=_.sl(f),t=_.es(n),J=_.dg(f),H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.zzc(n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},Q=_.Zl("SMART_DOWNLOADS",void 0,"Smart downloads"),T=dbX(t,J),_.b(Z,qcW(V,H,Q,T),3);y=Z.yieldResult;y.onResponseReceivedActions=[kV("REFRESH_DOWNLOADS")];
return Z.return(y)})},moq=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1)return _.b(n,tx(V.JSC$16500_upliftPromise,V.store),2);D=n.yieldResult;f=RvB([fKU(D)]);return n.return(CXV(V,f))})},NRR=function(V){var D,f,n,t;
return _.w(function(J){if(J.nextAddress==1)return D={},f=V.store.getState().continuation.continuationCommand,_.m7(D,_.Xh,f),_.b(J,tx(V.JSC$16500_upliftPromise,V.store,D,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);n=J.yieldResult;t={};_.m7(t,_.WzU,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:n}}}],targetId:"browse-feedFEwhat_to_watch"});return J.return({responseContext:{},onResponseReceivedActions:[t]})})},RvB=function(V){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:V}}}}]}}},zvf=function(V,D){var f,n;
return _.w(function(t){var J={contents:s1(D)};f=J&&J.contents?J:{};_.c("kevlar_modern_downloads_page")&&(f=Object.assign({},_.Rzd(D),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:f}}}]}};return t.return(CXV(V,n))})},CXV=function(V,D){var f,n;
return _.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$16500_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return f=t.yieldResult,_.b(t,oN(f),3);n=t.yieldResult;return t.return({responseContext:{},contents:D,topbar:n})})},qcW=function(V,D,f,n){var t,J;
return _.w(function(H){if(H.nextAddress==1)return _.b(H,V.JSC$16500_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return t=H.yieldResult,_.b(H,oN(t),3);J=H.yieldResult;var Q=H.return;var T=n;T=T===void 0?"":T;T={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:f}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Zl("SETTINGS",void 0,"Settings"),accessibilityText:_.Zl("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:hR("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:T}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:f};
return Q.call(H,{responseContext:{},contents:D,topbar:J,header:{pageHeaderRenderer:T}})})};var XBc=function(){this.moduleRegistry={};this.fetchCount=0};
XBc.prototype.isFetching=function(){return this.fetchCount>0};
var Xc=function(V,D){V.moduleRegistry[D.toString()]={asyncId:D,isFetching:!1};return V};
XBc.prototype.JSC$16511_loadModules=function(){for(var V=this,D=new Map,f=[],n=_.r(_.gQ.apply(0,arguments)),t=n.next();!t.done;t=n.next()){t=t.value;var J=this.moduleRegistry[t];J?J.resolver?D.set(t,J.resolver):(J.resolver=new _.wU,D.set(t,J.resolver),f.push(J.asyncId),J.isFetching=!0):(J=new _.wU,D.set(t,J),J.resolve(void 0))}f.length&&(this.fetchCount+=1,_.cT(_.f1.getMultipleAsync.apply(_.f1,_.sz(f)).then(function(H){for(var Q=0;Q<f.length;Q++){var T=H[Q],y=V.moduleRegistry[f[Q].toString()];y.isFetching=
!1;y.resolver.resolve(T)}}).catch(function(H){for(var Q=_.r(f),T=Q.next();!T.done;T=Q.next()){T=T.value;
var y=V.moduleRegistry[T.toString()];y.resolver=void 0;y.isFetching=!1;D.get(T.toString()).reject(H)}}),function(){--V.fetchCount}));
return Promise.all([].concat(_.sz(D.values())).map(function(H){return H.promise}))};_.E5=new _.IH("MODULE_REGISTRY_TOKEN");var Efc={},AZB=(Efc.rendered={priority:0,callback:function(V){a:{var D=void 0;try{var f;b:{if(_.o$R()){var n=_.GRY(_.G5()+"::pom");if(n){var t=new gC(n);break b}}t=void 0}var J=(f=t)==null?void 0:f.get("role_text");if(!J)break a;D={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:J}]}}}}}}catch(T){}D&&V.injector.resolve(_.fH).resolveCommand(D)}try{var H=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(H){var Q=JSON.parse(H);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
Q&&V.injector.resolve(_.fH).resolveCommand(Q)}}catch(T){}}},Efc);var aR3,YcR={},$ow=(YcR.initialized={priority:10,callback:function(){aR3=gK()}},YcR.rendering={callback:function(V){var D;
return _.w(function(f){if(f.nextAddress==1)return _.b(f,aR3,2);D=f.yieldResult;if(!D.endpoint)throw Error("yj`"+_.fx.location.href);BV(V,D);_.yz(f)})}},YcR);var iw3={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(_.sz(_.c("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(V){var D=V.stack;if(D.includes("chrome://")||D.includes("chrome-extension://")||V.message.includes("chrome-extension://")||D.includes("moz-extension://")||D.includes("local.adguard.org")||D.includes("auctioneer3.50million.club")||D.includes("youtubedownloader")||D.includes("youtube_home_page")||D.includes("is_youtube_video_no_longer_available")||
D.includes("switchScreenSizeHack")||D.includes("yt_main_big_banner.js")||D.includes("YouTubeCenter.js")||D.includes("/mytube.js")||D.includes("JSON.parseWrapper")||D.includes("/inj_js/common.js")||D.includes("firebug-lite")||D.includes(".repl.co/")||D.includes("linkfix")||D.includes("playAfterAd")||V.message.includes("Access is denied for this document")&&D.includes("<anonymous>")||V.fileName==="user-script"||V.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
D.includes("<anonymous>"))return!0;if(D.includes("https://www.youtube.com"))return!1;V=D.split("\n");if(!V.length)return!1;if(V.length<=3&&D.includes("s.onloadeddata"))return!0;D=0;for(var f=_.r(V),n=f.next();!n.done;n=f.next())n=n.value,(n.includes("https://")||n.includes("http://"))&&D++;return D/V.length>.95},
weight:0},{callback:function(V){return V.message==="Unknown Error"&&V.name.indexOf("NS_")===0},
weight:100},{callback:function(V){if(!_.JF)return!1;var D=V.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||V.message.includes("available to complete this operation"),f=V.stack.includes("webcomponents")&&V.message==="Object doesn't support this action";V=V.message.includes("object that does not implement interface Element");return D||f||V},
weight:0},{callback:function(V){return V.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(V){return V.message==="Operation is not supported"&&(V.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(V){return V.stack.includes("eval code (eval (code:1:1)")||V.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(V){return V.message.includes("Permission denied")&&V.stack.includes("this.domHandler")?!0:V.name.includes("TypeError")&&V.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(V){if(!V.stack)return!1;var D=V.stack.trim().split("\n");D.length&&D[0].endsWith("Error: "+V.message)&&D.shift();D.length&&D[D.length-1].includes("at window.onerror (")&&D.pop();if(!D.length)return!0;if(V.message==="Script error.")return D[0].includes("www.youtube.com")||D.length>=2&&D[0].startsWith("at new")&&D[1].startsWith("at window.onerror");if(V.message==="Unexpected token")return!0;V=_.r(D);for(D=V.next();!D.done;D=V.next())if(D=D.value,!(D.includes("<anonymous>")||
D.startsWith("load@")||D.startsWith("global code@")||D.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(V){return V.message==="Cannot read property 'experiments'"&&V.stack.includes("/s/player/")},
weight:500},{callback:function(V){return V.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(V){return V.stack.includes("/embed.js")?(V.params&&V.params&&(V.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.c("use_error_suppression"))var V=_.XB("SUPPRESS_CLIENT_ERRORS",!1);else{if(V=_.Tl)V=/Chrome\/(\d+)/.exec(_.jR()),V=(V?parseFloat(V[1]):NaN)>=66;V=!(V||_.Qd&&_.wf(65)||_.CH&&_.wf(12.1)||Ob&&_.wf(79))}return V},
weight:500}]};var Scw={},W3B=(Scw.initialized={priority:10,callback:function(V){V.injector.addProvider({provide:Jgu,useValue:V.root});V.injector.addProvider({provide:GLw,useValue:Zm9});V.injector.addProvider({provide:e9w,useValue:iw3});var D={};V.injector.addProvider((D.provide=ccB,D.useFactory=function(f,n){return function(){e1Y(f,n)}},D[L$]=[GLw,
e9w],D));V.injector.addProvider({provide:rD,useClass:rD})}},Scw);var pBX={},L3X=(pBX.initialized={priority:3,callback:function(){var V;if(V=T2Z()){V=V.replace("/",".");var D=_.Gm();D.set("tz",V);D.save();V=!0}else V=!1;V||(V=_.Gm(),V.set("utco",-Math.floor((new Date).getTimezoneOffset())),V.save())}},pBX);var IRR={},OwR=(IRR.initialized={priority:10,callback:function(V){V.injector.resolve(rD).start();V=_.Wo();var D=_.EG("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.EG("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.EG("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.EG("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.wK(_.Eq9(),{mainAppWeb:Object.assign({},V,{pageType:D})});_.wK(aU9(),{mainAppWeb:Object.assign({},V,{pageType:D})});
_.wK(Y7U(),{mainAppWeb:V});_.wK($mZ(),{mainAppWeb:V});oeo(function(){_.Q7(Y7U(),"FAILURE");_.Q7($mZ(),"FAILURE")});
rJL();HD9();xC3()}},IRR);var xo3={},MWc=(xo3.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.zm("dl"),_.C_().processSignal("pcl");else{var V=function(){_.zm("dl");_.C_().processSignal("pcl");window.removeEventListener("load",V)};
window.addEventListener("load",V)}}},xo3);var hvR={},Uoo=(hvR.rendering={priority:0,callback:function(){var V=_.C_();V.parkOrScheduleJob(function(){V.processSignal("eocs")},10,"eor",5E3)}},hvR);var V_f=function(){};
_.v(V_f,EQ);
V_f.prototype.resolveCommand=function(V,D){var f,n,t,J,H,Q,T,y;return _.w(function(Z){t=(f=_.g(V,_.mQY))==null?void 0:(n=f.dialog)==null?void 0:n.commentReplyDialogRenderer;if(!t)throw new _.cI("No dialog in createCommentReplyDialogEndpoint");H=(J=D.form)==null?void 0:J.event;if(!H)throw new _.cI("Event not passed in when resolving command");Q=_.r(H.composedPath());for(T=Q.next();!T.done;T=Q.next())if(y=T.value,y.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||y.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return y.showReplyDialog(t),Z.return();
_.yz(Z)})};var Zf=function(V){this.pageRequestService=V;this.JSC$16526_prefetchCoordinator=oFB()};
_.v(Zf,EQ);Zf.prototype.resolveCommand=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1){f=_.g(V,Qa6);if((n=f)==null||!n.taskId)throw Error("zj");t=f.taskId;_.wx(H,2);return _.b(H,_.wGF(D.pageRequestService,V,{},"").then(function(Q){if(!Q)throw Error("Aj");},function(Q){throw Error("Bj`"+Q);
}),4)}if(H.nextAddress!=2)return HxR(D.JSC$16526_prefetchCoordinator,t),_.YJ(H,0);
J=_.KW(H);Iw(D.JSC$16526_prefetchCoordinator,t,J);_.yz(H)})};
Zf[L$]=[Fc];var j7=function(V){this.innertubeTransportService=V};
_.v(j7,EQ);j7.prototype.resolveCommand=function(V){var D=this,f,n;return _.w(function(t){f=_.g(V,b9p);if(f.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||f.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")n=f.boolValue?2:1,_.OC.getInstance().setState(n,!0,!0);return _.b(t,_.ie(D.innertubeTransportService,V),0)})};
j7[L$]=[_.CR];var lA={},DeJ=(lA.addToPlaylistEndpoint=M1(eS),lA.addToToastAction=M1(c3),lA.adsControlFlowOpportunityReceivedCommand=M1(fk),lA.captionLanguageSelectActionCommand=M1(Ck),lA.captionPickerEndpoint=M1(qE),lA.changeMiniAppPlayStateCommand=M1(cf),lA.changeTimelyActionVisibilityCommand=M1(ey),lA.channelCreationFormEndpoint=M1(Kk),lA.clearLocationCommand=M1(Gr),lA.clearUrlParamCommand=M1(F5),lA.copyLinkCommand=M1(YI),lA.copyTextEndpoint=M1(Pf),lA.createCommentReplyDialogEndpoint=$Q3(V_f),lA.createPlaylistServiceEndpoint=
M1($I),lA.dismissDialogEndpoint=M1(vf),lA.entityUpdateCommand=M1(J3),lA.feedbackEndpoint=M1(w1),lA.getAnswerCommand=M1(bUE),lA.getPaymentsClientTokenCommand=M1(v3),lA.getTranscriptEndpoint=M1(F$),lA.googlePaymentBillingCommand=M1(kP),lA.googlePaymentPurchaseManagerCommand=M1(RA),lA.hideEngagementPanelEndpoint=M1(kI),lA.hideSnackbarCommand=M1(bt),lA.insertRichSectionCommand=M1(Zu),lA.listMutationCommand=M1(jS),lA.logGtmCommand=M1(yA),lA.notifyDropdownOptionSelectedCommand=M1(g1),lA.openAdAllowlistInstructionCommand=
M1(_.nk),lA.openOnePickAddVideoModalCommand=M1(iO),lA.persistSubscriptionsDisplayPreferencesCommand=M1(OI),lA.pingingEndpoint=M1(t3),lA.playlistEditEndpoint=M1(Wf),lA.playlistVotingRefreshPopupCommand=M1(pk),lA.refreshPanelEndpoint=M1(sI),lA.saveImageToDeviceEndpoint=M1(od),lA.scrollToSectionEndpoint=$Q3(KEF),lA.seekToVideoTimestampCommand=M1(X5),lA.selectCountryCommand=M1(xI),lA.setCookieCommand=M1(ME),lA.setLocalStorageCommand=M1(y5),lA.setPrefStorageEntryCommand=M1(UI),lA.setSettingEndpoint=M1(j7),
lA.sfvAudioItemPlaybackCommand=M1(EI),lA.shareImageCommand=M1(V5),lA.sharingProviderDataCommand=M1(Dy),lA.showCaptionLanguageSelectActionCommand=M1(A3),lA.showDialogCommand=M1(uO),lA.showEngagementPanelEndpoint=M1(NE),lA.showSheetCommand=M1(mT),lA.showSnackbarCommand=M1(Kb),lA.showTransientPlayerScrimOverlayCommand=M1(ad),lA.submitFormWithValidationFlowCommand=M1(bO),lA.talkToRecsDeselectCommand=M1(Zy),lA.talkToRecsNextCommand=M1(jy),lA.talkToRecsSelectCommand=M1(lt),lA.talkToRecsUpdateTextCommand=
M1(Gc),lA.toggleEngagementPanelCommand=M1(zr),lA.undoFeedbackEndpoint=M1(Tr),lA.updateEngagementPanelContentCommand=M1(Rd),lA.updateUrlParamCommand=M1(gL),lA.verifyCommand=M1(Kk),lA.webNativeShareCommand=M1(fb),lA.webSubmitFormCommand=M1(Lk),lA.ACK_PLAYABLES_3P_DATA_CONSENT=M1(nb),lA.CANCEL_NAVIGATION=M1(tK),lA.COPY_SHARE_URL=M1(P3),lA.MINI_APP_EXIT_DIALOG_SEEN=M1(JK),lA.MINI_APP_OPEN_URL=M1(oA),lA.REQUEST_MINI_APP_FULLSCREEN=M1(rL),lA.RESUME_NAVIGATION=M1(H3),lA.SHARE_PLAYABLE_WITH_HIGH_SCORE=M1(wL),
lA.TELL_US_WHY=M1(QA),lA);_.c("web_enable_prefetching_videos_on_home")&&(DeJ.prefetchWatchCommand=M1(Zf),DeJ.registerTasksCommand=M1(xn));_.c("enable_share_panel_navigation_logging_fix_on_web")&&(DeJ.shareEntityServiceEndpoint=M1(Bf));var ZEF=Object.assign({},DeJ);var f3c={},nrq=(f3c.initialized={priority:10,callback:KFZ},f3c);var t_V={},PFV=(t_V.initialized={callback:function(V){var D={},f={};wMX().install((D.document_disposed={callback:function(){_.c("finalize_all_timelines")?r_Y():uC();s6F("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cSF();var n=V.injector.resolve(rD);n.intervalId!==void 0&&(n.intervalId&&_.dm.cancelJob(n.intervalId),n.intervalId=void 0,--n.currentPartitionIndex,n=O2o(n),n>0&&nmF({mainAppWeb:_.Wo(),survivalSli:{partitionMinute:n,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));IDF(aI);YB!=null&&
YB.flush();Po&&Po.snapshotAndFlush();n=_.r(T5V.values());for(var t=n.next();!t.done;t=n.next())t.value.snapshotAndFlush()}},D),(f.flush_logs={callback:function(){_.uN()}},f))}},t_V);var orR={},Jn3=(orR.rendered={priority:0,callback:function(){var V=new La6;V.increment("STARTED");if(_.XB("LOGGED_IN")&&_.XB("SERVER_VERSION")!=="test"&&_.XB("SERVER_VERSION")!=="dev"&&!gFF()&&!FXp()){V.increment("EXECUTING");var D=document.createElement("iframe");D.style.display="none";_.z6(D,2,_.cS("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.XB("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(D);V.increment("DONE")}}},orR);var rnc={},H4w=(rnc.rendered={callback:function(){oFB().resume()}},rnc);var w7R={acknowledgeChannelTouStrikeCommand:vo(wF),addToPlaylistServiceEndpoint:vo(rG),addToPlaylistEndpoint:vo(rG),addUpcomingEventReminderEndpoint:vo(s4),browseEndpoint:vo($Vl),channelCreationFormEndpoint:vo(n2),channelCreationServiceEndpoint:vo(tS),claimLegacyYoutubeChannelEndpoint:vo(Sy),clearSearchHistoryEndpoint:vo(lh),clearWatchHistoryEndpoint:vo(Gd),commerceActionCommand:k7(uQ),createBackstagePostEndpoint:vo(X$),createBroadcastCommand:vo(BM),createCommentEndpoint:vo(Uh),createCommentReplyEndpoint:vo(hK),
createLiveChatPollEndpoint:vo(dF),createPlaylistServiceEndpoint:vo(H4),crossAccountChannelTransferEndpoint:vo(Ff),deleteLiveChatMessageCommand:vo(uh),deletePlaylistEndpoint:vo(wG),deleteVideoEndpoint:vo(kn),dismissalEndpoint:vo(Qt),feedbackEndpoint:vo(Td),flagEndpoint:vo(Zq),getAccountSwitcherEndpoint:vo(cM),verifyCommand:vo(qv),getAccountsListInnertubeEndpoint:vo(vM),getCommentsFromInboxCommand:vo(WM),getDownloadActionCommand:vo(hS),getFlowCommand:k7(j3),getKidsBlocklistPickerCommand:vo(ju),getNotificationMenuEndpoint:vo(WEL),
getPaymentInstrumentsParamsCommand:vo(qx),getPaymentsClientTokenCommand:k7(uQ),getPdgBuyFlowCommand:vo(ow),getReportFormEndpoint:vo(lQ),getSearchInVideoCommand:vo(c4),getAnswerCommand:vo(eu),getSurveyCommand:vo(v4),getTranscriptEndpoint:vo(B4),getPostVideoPreviewEndpoint:vo(AK),decorateMessageEndpoint:vo(Eh),likeEndpoint:vo(PM),liveChatActionEndpoint:vo(Rs),liveChatEndpoint:vo(zd),liveChatItemContextMenuEndpoint:vo(Nu),liveChatPurchaseMessageEndpoint:vo(C2),liveChatReplayEndpoint:vo(mh),manageLiveChatUserEndpoint:vo(Xf),
metadataUpdateCommand:vo(ih),moderateLiveChatEndpoint:vo(E4),modifyChannelNotificationPreferenceEndpoint:vo(O4),notificationOptOutEndpoint:vo(xS),openSuperStickerBuyFlowCommand:vo(qu),performCommentActionEndpoint:vo(Oh),playlistEditEndpoint:vo(TH),playlistEditorEndpoint:vo(Q9),profileCardCommand:vo(kS),recordNotificationInteractionsEndpoint:vo(Mu),reelWatchEndpoint:vo(bQ),refreshPanelEndpoint:vo(V9),removeUpcomingEventReminderEndpoint:vo(AS),resolveLocationCommand:vo($S),revealBusinessEmailCommand:vo(W3),
searchEndpoint:vo(_.puV),sendLiveChatMessageEndpoint:vo(as),sendLiveChatVoteEndpoint:vo(YS),setSettingEndpoint:vo(os),shareEntityServiceEndpoint:k7(HM),sharingProviderDataCommand:vo(gG),showEngagementPanelEndpoint:vo(Dq),showMoreDrawerCommand:vo(nu),showSheetCommand:vo(tg),showDialogCommand:vo(fu),subscribeEndpoint:vo(JS),transcriptSubmitCaptionCorrectionCommand:vo(sK),undoFeedbackEndpoint:vo(K2),unsubscribeEndpoint:vo(rF),updateBackstagePostEndpoint:vo(YP),updateCommentEndpoint:vo(D_),updateCommentReplyEndpoint:vo(Vt),
updateCommentsSettingsEndpoint:vo(f2),updateCreatorChannelInnertubeCommand:vo(Lb),updateKidsBlacklistEndpoint:vo(GH),updateEngagementPanelContentCommand:vo(P4),updatePdgFeatureEnablementCommand:vo(Jg),updatedMetadataEndpoint:vo(S3),validateChannelHandleCommand:vo(IA),updateChannelPageSettingsEndpoint:vo(pb),verifyAgeEndpoint:vo(Z_),watchEndpoint:k7(wC),whitelistEditEndpoint:vo(dG),ypcCancelRecurrenceEndpoint:vo(Nx),ypcCompleteTransactionEndpoint:vo(mO),ypcFixInstrumentEndpoint:vo(Rw),ypcGetCartEndpoint:vo(zH),
ypcGetOffersEndpoint:vo(Cu),ypcHandleTransactionEndpoint:k7(Xa),ypcLogWalletAnalyticDataEndpoint:vo(EK),ypcOffersEndpoint:vo(Ag),ypcPauseSubscriptionCommand:vo(aw),ypcRedeemCodeEndpoint:vo(Yn),ypcResumeSubscriptionCommand:vo($n),ypcUpdateFopEndpoint:vo(Rw)},GZ={},QkJ=(GZ.GET_ACCOUNT_MENU=vo(gF),GZ.GET_NOTIFICATIONS_MENU=vo(SPl),GZ.GET_NOTIFICATIONS_INBOX=vo(p2),GZ.GET_UNSEEN_NOTIFICATION_COUNT=vo(Is),GZ.GET_USER_MENTION_SUGGESTIONS=vo(aA),GZ.LOAD_GUIDE=vo(iUo),GZ.SUBMIT_FEEDBACK=vo(bh),GZ),e7={},
TuR=(e7.CONTINUATION_REQUEST_TYPE_BROWSE=vo($P),e7.CONTINUATION_REQUEST_TYPE_SEARCH=vo(Fa),e7.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=vo(Tb),e7.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=vo(e3),e7.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=vo(Mv),e7.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=vo(xP),e7.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=vo(y9),e7.CONTINUATION_REQUEST_TYPE_GET_PANEL=vo(U4),e7),b4w={player:k7(wC),watchNext:vo(QP)},KlZ={player:k7(wC),reelItemWatch:vo(bQ),reelWatchSequence:vo(Ku)},
ynR={watchEndpoint:k7(bV)},Z4X={commandEndpointMap:w7R,signalEndpointMap:QkJ,continuationEndpointMap:TuR,watchEndpointMap:b4w,reelWatchEndpointMap:KlZ,streamingEndpointMap:ynR};var jkV,l3f,GjR,eGX={disableAllTransitions:(l3f=(jkV=window).matchMedia)==null?void 0:(GjR=l3f.call(jkV,"(prefers-reduced-motion: reduce)"))==null?void 0:GjR.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};_.cx=new _.IH("VIEW_TRANSITION_MANAGER_TOKEN");var cnf=function(V){this.viewTransitionCoordinator=V;this.isBrowseTransitionEnabled=_.PI("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.c("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.c("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
cnf.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var V={};this.viewTransitionCoordinator.registerElement(document.documentElement,(V.slide="root-slide",V["lockup-to-watch"]="root-lockup-to-watch",V["learning-journey"]="root-learning-journey",V))}};
cnf[L$]=[wHq];var yJX={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 jnZ=["videoPrimaryInfoRenderer","title"],lin=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var FlX;FlX=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.grq=_.MA(function(V){V=_.Or(V,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var D=V.data,f=V.playlistData,n=V.expanded,t=V.onExpandClick,J=V.isReadyToResume,H=function(){var Z;return!((Z=f())==null||!Z.contents)},Q=function(){var Z=f();
return Z&&Z.totalVideos&&Z.currentIndex!==void 0?Z.currentIndex+1+" / "+Z.totalVideos:""};
V=_.jl(function(){_.Fs(_.DY().resolve(_.qw));return!1});
var T=_.jl(function(){H()&&t&&t()}),y={};
return _.K("ytd-miniplayer-info-bar",{class:_.KT("ytdMiniplayerInfoBarHost",(y.ytdMiniplayerInfoBarHasPlaylistData=H,y)),"on:click":T},_.K("div",{class:"ytdMiniplayerInfoBarContent"},_.K("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":V},_.K(_.Ow,{text:function(){var Z=D();var l=f();if(l==null?0:l.contents){var G;Z=(G=_.t29(l))==null?void 0:G.title}else Z=Z==null?void 0:Z.miniplayerTitle;return eoZ(Z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.K("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.K(_.e,{cond:J,then:function(){return _.K(PAl,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:FlX})}}),_.K("h1",null,_.K(_.Ow,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var Z=D();var l=f();Z=J()?{simpleText:_.Zl("CONTINUE_WATCHING",void 0,"Continue watching")}:(l==null?0:l.contents)?l.titleText:Z==null?void 0:Z.miniplayerSubtitle;return eoZ(Z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.K(_.e,{cond:function(){return!!Q()&&!J()},
then:function(){return _.K("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.K("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.K("span",null,Q))}}))),_.K(_.e,{cond:H,
then:function(){return _.K("div",{class:"ytdMiniplayerInfoBarExpand"},_.K(xC,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(Z){t&&(t(),Z.stopPropagation())}}},
iconName:function(){return n()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"De");var vr3;vr3=_.MA(function(V){return _.K("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.K(xC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:V.onTap}},
iconName:"yt-icons:close"}))},"Ee");
_.kjv=_.MA(function(V){V=_.Or(V,{playabilityStatus:void 0,isDisabled:!1});var D=V.size,f=V.playabilityStatus,n=V.isDisabled,t=_.W2("div");V=_.r(_.HJ(void 0,void 0,"bJr0Se"));var J=V.next().value,H=V.next().value;V=_.CT(_.yw);var Q=!1,T=function(){return D().height<=0};
_.BJ(function(){var G=D(),F=T(),k=J();k&&!F&&k.setInternalSize(G.width,G.height)},"OUOyKb");
_.B9(function(){var G,F,k;return _.w(function(d){if(d.nextAddress==1){G=_.DY().resolve(_.qw);F=G.getPlayerElement();if(!G.isMiniplayerActive()||!F||!t.value)return d.return();F.appendTo(t.value);return _.b(d,F.getPlayerPromise(),2)}k=d.yieldResult;k.setSizeStyle(!1,!0);H(k);_.yz(d)})});
_.dc(function(){y()});
_.BJ(function(){var G=J();if(G)if(n()){var F=G.getPlayerState();(Q=F===-1||F===1||F===3)&&G.pauseVideo()}else y()},"KKHe5");
var y=function(){if(Q){Q=!1;var G;(G=J())==null||G.playVideo()}},Z=_.jl(function(){_.Fs(_.DY().resolve(_.qw))}),l={};
return _.K("ytd-miniplayer-player-container",{class:_.KT("ytdMiniplayerPlayerContainerHost",(l.ytdMiniplayerPlayerContainerHidden=T,l.ytdMiniplayerPlayerContainerHostShortsPip=V,l)),style:_.el({width:function(){return D().width+"px"},
height:function(){return D().height+"px"}})},_.K("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:t}),_.K(_.e,{cond:function(){return!!f()&&!_.OPF(f())},
then:function(){return _.K(tAl,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var G;return((G=f())==null?void 0:G.errorScreen)||null},
status:function(){var G;return((G=f())==null?void 0:G.status)||null}})}}),_.K(_.e,{cond:n,
then:function(){return _.K("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":Z},_.K(vr3,{onTap:function(){_.DY().resolve(_.qw).close()}}))}}))},"Fe");_.skc=_.MA(function(V){var D=V.toastData;var f=_.W2("ytd-miniplayer-toast");V=_.r(_.Gk(function(){return!!D()}));
var n=V.next().value,t=V.next().value;V=_.r(_.HJ(!1,void 0,"xkrBze"));var J=V.next().value,H=V.next().value,Q=function(){var Z;return _.LA((Z=D())==null?void 0:Z.data.title)};
_.Nl(function(){_.qH.requestAvailability();D()&&t(!1)});
var T,y;_.BJ(function(){n()&&(_.PA(f.value,"iron-announce",{text:D().label+" "+Q()}),T&&_.dm.cancelJob(T),T=_.dm.addLowPriorityJob(function(){H(!0)},2500))},"OTdL1e");
_.BJ(function(){J()&&(y&&_.dm.cancelJob(y),y=_.dm.addLowPriorityJob(function(){t(!1);H(!1)},300))},"yybqib");
V={};return _.K("ytd-miniplayer-toast",{el:f,class:_.KT("ytdMiniplayerToastHost",(V.ytdMiniplayerToastOpening=function(){return n()},V.ytdMiniplayerToastClosing=function(){return J()},V))},_.K(_.e,{cond:function(){var Z;
return(Z=D())==null?void 0:Z.data},
then:function(Z){return _.K(bSY,{className:"ytdMiniplayerToastThumbnail",data:Z,width:78})}}),_.K("div",{class:"ytdMiniplayerToastInfo"},_.K("div",{class:"ytdMiniplayerToastLabel"},function(){var Z;
return(Z=D())==null?void 0:Z.label}),_.K("div",{class:"ytdMiniplayerToastTitle"},Q)))},"Ge");var NVZ;var RoX=null;var deX=_.MA(function(V){var D=V.progressState;var f=V.multiMarkersPlayerBarRenderer;var n=V.progressBarWidth;var t=function(){return EM9(f())},J=function(){return YLY(D())},H=function(){return n()*(D().playedTime/D().videoDuration)};
return _.K("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.K(_.FB,{each:t},function(Q,T){return _.K(Bu0,{modifiedProps:J,chapters:t,index:T,playedProgressWidth:H,backgroundGradientPosition:function(){var y=J(),Z=t(),l=T(),G=H();return(y.playedTime-z3(_.g(Z[l],m$)))/y.playedTime*G}})}))},"He"),Bu0=_.MA(function(V){var D=V.modifiedProps;
var f=V.chapters;var n=V.index;var t=V.playedProgressWidth;var J=V.backgroundGradientPosition;V={};V=_.KT("ytChapteredProgressBarChapteredPlayerBarChapter",(V.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return H().isScrubbing},V.ytChapteredProgressBarHoveredMacroMarker=function(){return H().scrubberHovering},V.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return H().videoPosition==="seen"},V));
var H=function(){return $p3(D(),f(),n())},Q=function(){var T=D();
var y=f(),Z=n();if($p3(T,y,Z).videoPosition!=="active")T=0;else{var l=z3(_.g(y[Z],m$));T=(T.playedTime-l)/((z3(_.g(y[Z+1],m$))||T.videoDuration)-l)}return T};
return _.K("div",{class:V,style:_.el({width:function(){var T=D(),y=f(),Z=n(),l=_.g(y[Z],m$);y=_.g(y[Z+1],m$);return(y?z3(y)-z3(l):T.videoDuration-z3(l))/T.videoDuration*100+"%"},
"background-color":function(){a:{var T=H();switch(T.videoPosition){case "pending":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:T=""}}return T},
"background-size":function(){return(iDX(H())?t():"")+"px"},
"background-position-x":function(){return(iDX(H())?J():"")+"px"}})},_.K("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var T=D(),y=f(),Z=n();if($p3(T,y,Z).videoPosition==="seen")var l=0;else l=z3(_.g(y[Z],m$)),y=z3(_.g(y[Z+1],m$))||T.videoDuration,T=T.videoDuration*T.percentLoaded,l=y<=T?1:l>=T?0:(T-l)/(y-l);return"width: "+l*100+"%"}}),_.K("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.el({width:function(){return Q()*100+"%"},
"background-size":function(){return(iDX(H(),Q())?t():"")+"px"},
"background-position-x":function(){return(iDX(H(),Q())?J():"")+"px"}})}))},"Ie");var umw=function(V,D){D=D===void 0?y2U:D;var f,n=[],t,J=!1;return function(){var H=_.gQ.apply(0,arguments);if(J&&f===this&&D(H,n))return t;t=V.apply(this,H);J=!0;f=this;n=H;return t}}(function(V){var D=V.heatMarkers,f=V.minHeightDp===void 0?0:V.minHeightDp,n=V.maxHeightDp===void 0?60:V.maxHeightDp;
var t=t===void 0?!1:t;var J=1E3/D.length;V=[];V.push({x:0,y:100});for(var H=0;H<D.length;H++){var Q=void 0,T=((Q=_.g(D[H],b_l))==null?void 0:Q.heatMarkerIntensityScoreNormalized)||0;Q=(H+.5)*J;T=100-_.Nw(T*100,f/321*100,n/321*100);H!==0||t||V.push({x:0,y:T});V.push({x:Q,y:T});H===D.length-1&&V.push({x:1E3,y:T})}V.push({x:1E3,y:100});D="";for(f=0;f<V.length;f++)t=V[f],f===0?t="M "+t.x.toFixed(1)+","+t.y.toFixed(1):(n=LV9(V[f-1],V[f-2],t),J=LV9(t,V[f-1],V[f+1],!0),t=" C "+(n.x.toFixed(1)+","+n.y.toFixed(1)+
" "+J.x.toFixed(1)+","+J.y.toFixed(1)+" "+t.x.toFixed(1)+","+t.y.toFixed(1))),D+=t;return D});var Nuq=_.MA(function(V){var D=V.progressBarProps;var f=V.config;var n={};V=_.KT("ytHeatSeekerHost",(n.ytHeatSeekerHighContrast=V.highContrast,n));var t=function(){return kAZ(f().chapterData)};
return _.K("yt-progress-bar-heatseeker",{class:V,style:function(){var J;return"height: 320px; display: "+(D().isDragging&&((J=t())==null?0:J.heatMarkers)?"block":"none")}},_.K(_.e,{cond:t,
then:function(J){return _.K(_.e,{cond:function(){return J().heatMarkers},
then:function(){return _.K("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.K("path",{d:function(){return umw(J())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Je");var meW=_.MA(function(V){var D=V.progressBarProps;var f=V.config;V={};V=_.KT("ytProgressBarLineProgressBarLine",(V.ytProgressBarLineProgressBarLineRounded=function(){return f().rounded},V.ytProgressBarLineProgressBarLineBottomInset=function(){return f().position===2},V));
return _.K("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.K("div",{class:V},_.K("div",{class:"ytProgressBarLineProgressBarBackground"}),_.K("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+D().percentLoaded*100+"%"}}),_.K("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var n=D();return"width: "+(n.videoDuration?_.Nw(n.hoveredTime/n.videoDuration,0,1):0)*100+"%"}}),_.K("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+FFU(D())*100+"%"}})))},"Ke");
meW.idomCompat=!0;var zGB=_.MA(function(V){var D=V.progressBarProps;var f=V.playheadData;var n=V.interpolateDotPosition;var t=V.hidePlayhead;V={};var J=_.KT("ytProgressBarPlayheadProgressBarPlayheadDot",(V.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return D().isDragging},V.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!D().isDragging&&t()},V));
return _.K("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.el({"margin-left":function(){return gM3(D())*100+"%"},
transform:function(){return"translateX(-"+(n()?gM3(D())*12:6)+"px)"}})},_.K(_.e,{cond:function(){var H;
return(H=_.IU(f)())==null?void 0:H.playheadImage},
then:function(H){var Q={};return _.K("div",{class:_.KT("ytProgressBarPlayheadProgressBarPlayheadCustom",(Q.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return D().isDragging},Q.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!D().isDragging&&t()},Q)),
style:_.el({"transform-origin":function(){return(n()?gM3(D())*20:10)+"px center"}})},_.K(_.xt,{data:H,
alt:"","aria-hidden":"true"}))},
else:function(){return _.K("div",{class:J,style:_.el({"transform-origin":function(){return(n()?gM3(D())*12:6)+"px center"}})})}}))},"Le");
zGB.idomCompat=!0;var gn=function(V,D,f,n,t,J){this.getProgressBarRect=V;this.updateProgressBarRect=D;this.getFilmstripYPosition=f;this.setFineScrubbingDraggedTime=n;this.updateFilmStripDraggedYDistance=t;this.resetFilmStripYOffset=J;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.I7(this.onThrottledSeek,100,this)},RGW=function(V,D,f){return function(n){V.handleClick(n,D(),f())}},X73=function(V,D){return function(f){CFB(V,
f,qWW(f),D())}},ErZ=function(V,D){return function(f){CFB(V,f,{x:f.clientX,
y:f.clientY},D())}},a3c=function(V,D,f){return function(n){var t=D(),J=f();
An0(V,n,qWW(n),t,J,!0);if(J.onTouchMove)J.onTouchMove(t)}},$eW=function(V,D,f){return function(n){YWq(V,n,D(),f())}},i4W=function(V,D){return function(){V.handleMouseLeave(D())}},SWV=function(V,D,f){return function(){var n=D(),t=f();
vx(V,n,t);if(t.onTouchEnd)t.onTouchEnd(n)}},Wlw=function(V,D,f){return function(){var n=D(),t=f();
vx(V,n,t);if(t.onTouchEnd)t.onTouchEnd(n)}},p7f=function(V,D,f){return function(){vx(V,D(),f())}},Llf=function(V){return function(D){if(D.keyCode===39||D.keyCode===38){var f,n;
(f=V())==null||(n=f.playerApi)==null||n.seekBy(5,void 0,void 0,72)}else if(D.keyCode===37||D.keyCode===40){var t,J;(t=V())==null||(J=t.playerApi)==null||J.seekBy(-5,void 0,void 0,71)}}},I3R=function(V,D,f){return function(n){!f().disableScrubbing&&V.startPosition&&YWq(V,n,D(),f())}},O4q=function(V,D,f){return function(){if(!f().disableScrubbing)if(V.startPosition){var n=D(),t=f();
vx(V,D(),f());if(t.onTouchEnd)t.onTouchEnd(n)}else D().setState({isDragging:!1})}},qWW=function(V){V=V.touches[0];
return{x:V.clientX,y:V.clientY}},YWq=function(V,D,f,n){if(D.buttons!==1){if(D.movementX||D.movementY)D.preventDefault(),D.stopPropagation(),V=xeR(V,f,D.clientX),f.setState({isHovering:!0,
hoveredTime:V*f.videoDuration})}else M_c(f),An0(V,D,{x:D.clientX,y:D.clientY},f,n,!1)};
gn.prototype.handleMouseLeave=function(V){M_c(V)};
var M_c=function(V){V.isHovering&&V.setState({isHovering:!1,hoveredTime:0})},CFB=function(V,D,f,n){V.startPosition||(V.startPosition=f,V.updateProgressBarRect(),V.controlsWereVisibleBeforeDragging=n.controlsVisible,D.stopPropagation(),_.c("medium_progress_bar_modification")||D.preventDefault())},An0=function(V,D,f,n,t,J){if(V.startPosition)if(J&&t.isInlinePlayback&&V.startPosition&&!V.hasDraggedTheMinimumDistance&&Math.abs(f.y-V.startPosition.y)>Math.abs(f.x-V.startPosition.x))vx(V,n,t);
else if(D.preventDefault(),D.stopPropagation(),n.videoDuration&&(V.startPosition&&!V.hasDraggedTheMinimumDistance&&(V.hasDraggedTheMinimumDistance=Math.abs(f.x-V.startPosition.x)>=1),t.enableFineScrubbing&&(V.startPosition&&(V.isDraggedForFineScrubbing=-(f.y-V.startPosition.y)>=60),!V.startPosition||f.y>=V.startPosition.y||(n.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:SLY(n.draggedTime,n,t.chapterData)}),V.setFineScrubbingDraggedTime(n.draggedTime),V.updateFilmStripDraggedYDistance(V.startPosition.y,
f.y,n))),V.hasDraggedTheMinimumDistance)){D=xeR(V,n,f.x);if(V.isDraggedForFineScrubbing){var H;(H=n.playerApi)==null||H.pauseVideo();n.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:n.draggedTime,filmStripXDistance:SLY(D*n.videoDuration,n,t.chapterData)})}t.enableFineScrubbing&&(!t.enableFineScrubbing||V.getFilmstripYPosition(n)<68)||n.setState({draggedTime:D*n.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:V.controlsWereVisibleBeforeDragging});var Q;(Q=
t.cancelAutohideControlsFn)==null||Q.call(t)}},vx=function(V,D,f){var n=f.enableFineScrubbing&&D.fineScrubbingActiveState!=="off";
if(D.isDragging||n){n={isDragging:!1,playedTime:D.draggedTime,controlsVisible:V.controlsWereVisibleBeforeDragging};f.enableFineScrubbing&&D.fineScrubbingActiveState!=="on"&&(V.resetFilmStripYOffset(),n.fineScrubbingActiveState="off");var t=t===void 0?RoX:t;var J=_.Ni(0);if(J&&t){var H=Math.round(D.playedTime*1E3),Q=Math.round(D.draggedTime*1E3);H>2147483647||Q>2147483647||_.L6(J,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(H),endMediaTimeMs:String(Q),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}D.setState(n);
V.seekThrottle.fire(D.draggedTime,D,7);_.c("mweb_new_progress_bar_play_on_seek")&&V.resumeVideo(D);f.unmuteOnSeek&&(f=D.playerApi,D.volumeMuted&&(f==null||f.unMute()))}else D.setState({controlsVisible:!D.controlsVisible}),(J=f.triggerAutohideControlsAfterDelayFn)==null||J.call(f);V.startPosition=null;V.hasDraggedTheMinimumDistance=!1;V.isDraggedForFineScrubbing=!1;V.controlsWereVisibleBeforeDragging=!1};
gn.prototype.handleClick=function(V,D,f){this.updateProgressBarRect();V.stopPropagation();V=xeR(this,D,V.clientX)*D.videoDuration;D.setState({playedTime:V});if(D.playerState!==2){var n;(n=f.triggerAutohideControlsAfterDelayFn)==null||n.call(f)}this.seekThrottle.fire(V,D,7)};
var xeR=function(V,D,f){V=V.getProgressBarRect(D);return _.Nw(0,(f-V.left)/V.width,1)};
gn.prototype.resumeVideo=function(V){if(V.draggedTime<V.videoDuration){var D;(D=V.playerApi)==null||D.playVideo()}};
gn.prototype.onThrottledSeek=function(V,D,f){if(D=D.playerApi){var n;if((n=D.getVideoData())==null?0:n.isLive)n=this.getProgressState(D),V+=(n==null?void 0:n.seekableStart)||0;D.seekTo(V,void 0,void 0,void 0,f)}};
gn.prototype.getProgressState=function(V){var D=V==null?void 0:V.getPresentingPlayerType();return V==null?void 0:V.getProgressState(D)};var Vo3,Ue0,D8f,nxo,hGc,toB,Pvv,oxV,JLc;Vo3=_.MA(function(V){var D=V.progressBarProps;var f=V.config;var n=V.progressBarWidthPx;var t=V.chapterData;var J=OD3(D,function(){return f().isShortsPage}),H=function(){return!D().isHovering&&!f().isShortsPage};
V={};var Q=_.KT("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(V.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},V));
return _.K("yt-player-storyboard",null,_.K(_.e,{cond:function(){return D().isDragging||D().isHovering},
then:function(){return _.K(_.e,{cond:J,then:function(T){return _.K(_.e,{cond:H,then:function(){return _.K("div",{class:Q,"aria-hidden":"true"},_.K(hGc,{props:D,config:f,isBigboard:!0,chapterData:t}))},
else:function(){return _.K(Ue0,{props:D,frame:T,config:f,progressBarWidthPx:n,chapterData:t})}})}})}}))},"Me");
_.feJ=_.MA(function(V){var D=V.progressBarProps;var f=OD3(D,V.isShortsPage);return _.K("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.K(_.e,{cond:function(){return D().isDragging||D().isHovering},
then:function(){return _.K(_.e,{cond:f,then:function(n){return _.K(D8f,{frame:n,props:D,isBigboard:!0})}})}}))},"Ne");
Ue0=_.MA(function(V){var D=V.props;var f=V.frame;var n=V.config;var t=V.progressBarWidthPx;V=V.chapterData;var J={};J=_.KT("ytPlayerStoryboardHost",(J.ytPlayerStoryboardHostMwebShorts=function(){return n().isShortsPage&&!1},J.ytPlayerStoryboardHostInlinePlayer=function(){return n().isInlinePlayer},J.ytPlayerStoryboardHostFadeIn=function(){return n().useFadeInAnimation},J));
return _.K("div",{class:J,"aria-hidden":"true",style:function(){var H=D(),Q=WFX(f()),T=t();H=peR(H)/H.videoDuration;var y=T*H,Z=Q/2+6;Q=T-(Q/2+6);return"left: "+(y<=Z?Z/T*100:y>=Q?Q/T*100:H*100)+"%"}},_.K(_.e,{cond:function(){var H=D();
return!(n().isShortsPage&&H.videoDuration<15)},
then:function(){return _.K(D8f,{frame:f,props:D,isBigboard:!1})}}),_.K(hGc,{props:D,
config:n,isBigboard:!1,chapterData:V}))},"Oe");
D8f=_.MA(function(V){var D=V.frame;var f=V.props;var n=V.isBigboard;var t=function(){var Q,T;return(T=(Q=f().playerApi)==null?void 0:Q.getVideoContentRect())!=null?T:{width:0,height:0}},J=function(){return WFX(D())},H=function(){var Q=D();
return Q?Q.height/Q.rows:0};
V={};V=_.KT((V.ytPlayerStoryboardBigboardImageWrapper=n,V.ytPlayerStoryboardStoryboardImageWrapper=function(){return!n()},V));
return _.K("div",{class:V,style:function(){return"width: "+(n()?t().width:J())+"px; height: "+(n()?t().height:H())+"px;"}},_.K(nxo,{frame:D,
storyboardWidth:J,storyboardHeight:H,storyboardScale:function(){return(n()?t().width:J())/J()}}))},"Pe");
nxo=_.MA(function(V){var D=V.frame;var f=V.storyboardWidth;var n=V.storyboardHeight;var t=V.storyboardScale;var J=function(){var H=D().row,Q=D().column,T=f(),y=n(),Z=t();return{left:-Q*T*Z,top:-H*y*Z}};
return _.K("img",{src:function(){return D().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+J().left+"px; top: "+J().top+"px; width: "+D().width*t()+"px; height: "+D().height*t()+"px;"}})},"Qe");
hGc=_.MA(function(V){var D=V.props;var f=V.config;var n=V.isBigboard;var t=V.chapterData;V={};V=_.KT("ytPlayerStoryboardMetadata",(V.ytPlayerStoryboardMetadataBigboard=n,V));return _.K("div",{class:V},_.K(_.e,{cond:n,then:function(){return _.K(_.th,null,_.K(toB,{props:D,config:f}),_.K(_.e,{cond:function(){a:{var J=D();var H=f(),Q=t(),T;if((H==null?0:H.activeChapter)&&((T=_.g(H==null?void 0:H.activeChapter,m$))==null?0:T.title))J=!0;else{H=_.r(snY(Q));for(H=H.next();!H.done;H=H.next()){J=(H=_.g(H.value,
y6H))&&LFU(J,H);break a}J=!1}}return J},
then:function(){return _.K(Pvv,{props:D,config:f,isBigboard:!0,chapterData:t})}}))},
else:function(){return _.K(_.th,null,_.K(Pvv,{props:D,config:f,isBigboard:!0,chapterData:t}),_.K(toB,{props:D,config:f}))}}))},"Re");
toB=_.MA(function(V){var D=V.props;var f=V.config;V={};V=_.KT("ytPlayerStoryboardTimestamp",(V.ytPlayerStoryboardTimestampShorts=function(){return f().isShortsPage},V.ytPlayerStoryboardTimestampIsHovering=function(){return D().isHovering||f().isShortsPage&&!0},V));
return _.K("div",{class:V},_.K(_.th,null,function(){return _.IiL(peR(D()))}))},"Se");
Pvv=_.MA(function(V){var D=V.props;var f=V.config;var n=V.isBigboard;var t=V.chapterData;V={};n=_.KT("ytPlayerStoryboardTitle",(V.ytPlayerStoryboardTitleBigboard=n,V));return _.K("div",{class:n},_.K(_.e,{cond:function(){return!f().isShortsPage},
then:function(){return _.K(oxV,{props:D,activeChapter:function(){return f().activeChapter},
chapterData:t})}}))},"Te");
oxV=_.MA(function(V){var D=V.props;var f=V.activeChapter;var n=V.chapterData;return _.K(_.th,null,_.K(_.FB,{each:function(){return snY(n())},
keyBy:"INDEX"},function(t){return _.K(_.th,null,_.K(_.e,{cond:function(){return _.g(t(),y6H)&&LFU(D(),_.g(t(),y6H))},
then:function(){return _.K(JLc,{timedMarker:function(){return _.g(t(),y6H)}})}}))}),_.K(_.e,{cond:function(){var t;
return f()&&((t=_.g(f(),m$))==null?void 0:t.title)},
then:function(t){return _.K(_.Ow,{text:t,noPreWrap:!0})}}))},"Ue");
JLc=_.MA(function(V){var D=V.timedMarker;return _.K(_.th,null,_.K("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.K(_.cj,{icon:function(){return D().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.K(_.Ow,{text:function(){return D().label},
noPreWrap:!0}))},"Ve");_.rLc=_.MA(function(V){var D=V.progressBarProps;var f=V.playheadData;var n=V.config;V=_.W2("yt-progress-bar");var t=_.W2("div"),J=_.W2("div"),H=_.r(_.HJ({width:0,left:0},void 0,"NcXsUb")),Q=H.next().value,T=H.next().value,y=function(){J.value&&T(J.value.getBoundingClientRect())},Z=function(){Q().width<=0&&y();
return Q()};
xb("resize",y);var l=new gn(Z,function(){},function(){return 0},function(){},function(){},function(){}),G=function(){return D()};
H=_.r(_.HJ(!1,void 0,"ZsF6Xc"));var F=H.next().value,k=H.next().value;H=_.jl(function(){k(!0);n().position===2?setTimeout(function(){y()},100):y()});
var d=_.jl(function(){k(!1);i4W(l,G)()}),z=_.jl(function(Ed){n().doSeekOnClick&&RGW(l,G,n)(Ed);
return!1}),C=_.jl(function(Ed){X73(l,G)(Ed);
return!1}),A=_.jl(function(Ed){ErZ(l,G)(Ed);
return!1}),O=_.jl(function(Ed){a3c(l,G,n)(Ed);
return!1}),W=_.jl(function(Ed){$eW(l,G,n)(Ed);
return!1}),I=_.jl(function(){SWV(l,G,n)();
return!1}),x=_.jl(function(){Wlw(l,G,n)();
return!1}),oY=_.jl(function(){p7f(l,G,n)();
return!1}),wZ=_.jl(function(Ed){Llf(G)(Ed);
return!1});
xb("mousemove",I3R(l,G,n));xb("mouseup",O4q(l,G,n));_.Nl(function(){Cp9(t.value);k(!1);y();O4q(l,G,n)()});
var ZZ={};ZZ=_.KT("ytPlayerProgressBarHost",function(){return n().className},(ZZ.ytPlayerProgressBarHostReadOnly=function(){return n().disableScrubbing},ZZ.ytPlayerProgressBarHostHidden=function(){return n().hideProgressBar&&!F()},ZZ.ytPlayerProgressBarHostLowerPlayer=function(){return n().position===0},ZZ.ytPlayerProgressBarHostBottomEdge=function(){return n().position===1},ZZ.ytPlayerProgressBarHostBottomInset=function(){return n().position===2},ZZ.ytPlayerProgressBarHostCustom=function(){return n().position===
3},ZZ));
var sd={},NU=_.KT("ytPlayerProgressBarBackground",(sd.ytPlayerProgressBarBackgroundHide=function(){return n().position===2&&!F()&&!D().isDragging},sd));
sd={};sd=_.KT("ytPlayerProgressBarDragContainer",(sd.ytPlayerProgressBarDragContainerBottomEdge=function(){return n().position===1},sd));
var Bn={};Bn=_.KT("ytPlayerProgressBarProgressBar",(Bn.ytPlayerProgressBarProgressBarInset=function(){return n().position===2},Bn.ytPlayerProgressBarProgressBarInsetMinimized=function(){return n().position===2&&!F()&&!D().isDragging},Bn));
var aY=function(){return Math.floor(FFU(D())*100)};
return _.K("yt-progress-bar",{el:V,class:ZZ},_.K(_.e,{cond:function(){return n().position===2},
then:function(){return _.K("div",{class:NU})}}),_.K("div",{el:t,
"on:click":z,"on:touchstart":C,"on:touchmove":O,"on:mouseenter":H,"on:mousedown":A,"on:mouseleave":d,"on:mousemove":W,"on:mouseup":x,"on:touchend":I,"on:touchcancel":oY,"on:keydown":wZ,class:sd,role:"slider","aria-valuenow":aY,"aria-valuetext":function(){return aY()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return D().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Zl("SEEK_SLIDER")},_.K("div",{el:J,class:Bn},_.K(Nuq,{progressBarProps:D,config:n,highContrast:function(){return!!n().isInlinePlayback}}),_.K(_.e,{cond:function(){return n().chapterData&&BVR(n().chapterData)},
then:function(){return _.K(deX,{progressState:D,multiMarkersPlayerBarRenderer:function(){return n().chapterData},
progressBarWidth:function(){return Q().width}})},
else:function(){return _.K(meW,{progressBarProps:D,config:n})}}),_.K(zGB,{progressBarProps:D,
playheadData:f,interpolateDotPosition:function(){return n().position!==2},
hidePlayhead:function(){return n().playheadDotBehavior===1&&!F()}}))),_.K(Vo3,{progressBarProps:D,
config:function(){return{activeChapter:ai9(D(),n().chapterData),getProgressBarWidthPx:function(){return Z().width},
isShortsPage:!!n().isShortsPage,isInlinePlayer:!!n().isInlinePlayback,useFadeInAnimation:!!n().isInlinePlayback}},
progressBarWidthPx:function(){return Q().width},
chapterData:function(){return n().chapterData}}))},"We");
_.rLc.idomCompat=!0;Object.assign({},_.dpY(),{setState:function(){},
domMeasurements:{},appApi:_.cJn(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Hcw;
_.wSW=_.MA(function(){var V,D=(V=_.RN(xpd().playerApi))!=null?V:void 0;V=_.r(_.HJ(!1,void 0,"HLFBmb"));var f=V.next().value,n=V.next().value;V=_.r(_.HJ(!1,void 0,"lHH9bc"));var t=V.next().value,J=V.next().value;V=_.r(_.HJ(!1,void 0,"zsY7yd"));var H=V.next().value,Q=V.next().value;V=_.r(_.HJ(!1,void 0,"KeHQgc"));var T=V.next().value,y=V.next().value;V=_.r(_.HJ(0,void 0,"gLLCj"));var Z=V.next().value,l=V.next().value;V=_.r(_.HJ(0,void 0,"s3RYkf"));var G=V.next().value,F=V.next().value;V=_.r(_.HJ(!1,void 0,
"Dn608e"));var k=V.next().value,d=V.next().value;V=_.r(_.HJ(0,void 0,"AnkH1b"));var z=V.next().value,C=V.next().value;V=_.r(_.HJ(0,void 0,"QYNL0b"));var A=V.next().value,O=V.next().value;V=_.r(_.HJ("",void 0,"Yzw45d"));var W=V.next().value,I=V.next().value;V=_.r(_.HJ(-1,void 0,"iiVI0c"));var x=V.next().value,oY=V.next().value,wZ=_.yT(function(){var ZZ={controlsVisible:f(),isOverlayHidden:t(),shouldWaitToHideControls:H(),isDragging:T(),isHovering:k(),videoDuration:z(),playedTime:A(),videoId:W(),draggedTime:G(),
hoveredTime:Z(),playerState:x()};return Object.assign({},_.dpY(),ZZ,{domMeasurements:{},setState:function(sd){sd.controlsVisible!==void 0&&n(sd.controlsVisible);sd.isOverlayHidden!==void 0&&J(sd.isOverlayHidden);sd.shouldWaitToHideControls!==void 0&&Q(sd.shouldWaitToHideControls);sd.isDragging!==void 0&&y(sd.isDragging);sd.isHovering!==void 0&&d(sd.isHovering);sd.draggedTime!==void 0&&F(sd.draggedTime);sd.hoveredTime!==void 0&&l(sd.hoveredTime);sd.videoDuration!==void 0&&C(sd.videoDuration);sd.playedTime!==
void 0&&O(sd.playedTime);sd.videoId!==void 0&&I(sd.videoId);sd.playerState!==void 0&&oY(sd.playerState)},
appApi:_.cJn(),playerApi:D})},void 0,"ZW7y9");
_.B9(function(){D==null||D.addEventListener("onVideoProgress",zoR(wZ));D==null||D.addEventListener("onVideoDataChange",mpY(wZ));D==null||D.addEventListener("onStateChange",uZL(wZ))});
_.dc(function(){if(D==null?0:D.isReady())D==null||D.removeEventListener("onVideoProgress",zoR(wZ)),D==null||D.removeEventListener("onVideoDataChange",mpY(wZ)),D==null||D.removeEventListener("onStateChange",uZL(wZ))});
return _.K("desktop-shorts-player-controls",null,_.K(Hcw,{playerControlsProps:wZ}))},"Xe");
Hcw=_.MA(function(V){var D=V.playerControlsProps;return _.K("div",{class:"desktopShortsPlayerControlsWizHost"},_.K(_.rLc,{progressBarProps:D,config:function(){return{isShortsPage:!0,hideProgressBar:D().videoDuration<30&&D().playerState!==2&&!D().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Ye");_.Q3R=_.MA(function(V){function D(ZZ){ZZ!==0||l()?ZZ>50&&(l()||!F())?(G(!1),k(!0)):ZZ<=50&&(l()||F())&&(G(!1),k(!1)):G(!0)}
function f(ZZ,sd){var NU;return _.w(function(Bn){if(Bn.nextAddress==1)return _.b(Bn,_.JY(),2);NU=Bn.yieldResult;sd&&NU?(NU.unMute(!0),ZZ&&(hoL(ZZ,NU.getVolume()),z(NU.getVolume()))):NU&&(NU.mute(!0),ZZ&&hoL(ZZ,0));_.yz(Bn)})}
function n(ZZ){var sd,NU;return _.w(function(Bn){if(Bn.nextAddress==1)return _.b(Bn,_.JY(),2);sd=Bn.yieldResult;NU=50;sd&&(NU=sd.getVolume(),sd.isMuted()?hoL(ZZ,0):hoL(ZZ,NU));z(NU);_.yz(Bn)})}
var t=V.orientation;V=_.W2("desktop-shorts-volume-controls");var J=_.W2("button"),H=_.py("input"),Q=_.r(_.HJ(!1,void 0,"F6vt0d")),T=Q.next().value,y=Q.next().value,Z=_.r(_.HJ(!1,void 0,"S5PCqb"));Q=Z.next().value;Z=Z.next().value;var l=Q,G=Z;Z=_.r(_.HJ(!0,void 0,"Tgy4e"));Q=Z.next().value;Z=Z.next().value;var F=Q,k=Z;Q=_.r(_.HJ(50,void 0,"Dq3efd"));var d=Q.next().value,z=Q.next().value;Q=_.yT(function(){var ZZ=l();return _.c("web_shorts_keyboard_enable_mute_shortcut")?ZZ?_.Zl("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Zl("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):ZZ?_.Zl("UNMUTE_VOLUME",void 0,"Unmute"):_.Zl("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
Z=_.yT(function(){var ZZ=l(),sd=F();return{sources:[{clientResource:{imageName:ZZ?_.c("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":sd?_.c("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.c("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var C=_.yT(function(){var ZZ=d();return l()?ZZ+"% volume muted":ZZ+"% volume"},void 0,"kvkmyc"),A=_.yT(function(){return t()==="vertical_down"},void 0,"zaNsZ");
_.Nl(function(){function ZZ(){y(!0)}
function sd(){y(!1)}
H&&H.value&&(H.value.addEventListener("focus",ZZ),H.value.addEventListener("focusout",sd),n(H.value).then(function(){D(Number(Upn(H.value)))}));
J&&J.value&&(J.value.addEventListener("focus",ZZ),J.value.addEventListener("focusout",sd));_.dc(function(){var NU;H==null||(NU=H.value)==null||NU.removeEventListener("focus",ZZ);var Bn;H==null||(Bn=H.value)==null||Bn.removeEventListener("focusout",sd);var aY;J==null||(aY=J.value)==null||aY.removeEventListener("focus",ZZ);var Ed;J==null||(Ed=J.value)==null||Ed.removeEventListener("focusout",sd)})});
var O=_.jl(function(){if(H&&H.value){var ZZ=Number(Upn(H.value));MI3(ZZ);z(ZZ);H.value.style.setProperty("--gradient-percent",ZZ+"%");D(ZZ)}return!1}),W=_.jl(function(){y(!0)}),I=_.jl(function(){H&&H.value&&(f(H.value,l()),G(!l()));
return!1}),x={},oY={},wZ={};
return _.K("desktop-shorts-volume-controls",{"on:pointerleave":_.jl(function(){y(!1)}),
class:_.KT("ytdDesktopShortsVolumeControlsHost",(x.ytdDesktopShortsVolumeControlsHostVertical=A,x.ytdDesktopShortsVolumeControlsHostExpanded=T,x)),el:V},_.K(_.e,{cond:function(){return!A()},
then:function(){var ZZ={};return _.K("div",{class:_.KT("ytdDesktopShortsVolumeControlsBackgroundScrim",(ZZ.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=T,ZZ))})}}),_.K("div",{class:_.KT((oY.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=A,oY))},_.K("button",{"aria-label":Q,
title:Q,el:J,"on:click":I,"on:pointerenter":W,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Z?_.K(_.xt,{data:Z,alt:Q,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.K("div",{class:_.KT("ytdDesktopShortsVolumeControlsSliderContainer",(wZ.ytdDesktopShortsVolumeControlsSliderContainerExpanded=T,wZ.ytdDesktopShortsVolumeControlsSliderContainerVertical=A,wZ.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=A,wZ.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return T()&&A()},wZ))},_.K("input",{"aria-label":_.Zl("VOLUME"),
title:_.Zl("VOLUME"),el:H,"on:input":O,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":d,"aria-valuetext":C,"aria-valuemin":0,"aria-valuemax":100})))},"Ze");_.TQv=_.MA(function(V){var D=V.data;return _.K("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.K(_.YC,{command:function(){return D().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.K(_.e,{cond:function(){return D().iconName},
then:function(f){return _.K(_.cj,{icon:f})}}),_.K("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return D().text}),_.K(_.e,{cond:function(){return D().showEndChevron},
then:function(){return _.K(_.cj,{icon:"CHEVRON_RIGHT"})}})))},"$e");var bc3=_.MA(function(V){var D=V.data;var f=V.overlayDensity;V={};return _.K("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.K(_.BW,{data:function(){return D().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(n){var t=n.data;
return _.K(_.kd,{data:function(){return(f==null?void 0:f())===1?Object.assign({},t(),{avatar:{avatarViewModel:Object.assign({},_.g(t().avatar,_.AY),{avatarImageSize:"AVATAR_SIZE_48"})}}):t()}})}}),_.K(_.BW,{data:function(){return D().avatarStackViewModel}},{avatarStackViewModel:function(n){return _.K(_.s9,{data:n.data})}}),_.K(_.Ow,{className:_.KT("ytReelChannelBarViewModelChannelName",(V.ytReelChannelBarViewModelChannelNameLarge=function(){return(f==null?void 0:f())===1},V)),
text:function(){return D().channelName},
linkInheritColor:!0,userInput:!0}),_.K("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.K(_.BW,{data:function(){return D().subscribeButtonViewModel}},{subscribeButtonViewModel:function(n){var t=n.data;
return _.K(_.FH,{data:function(){return(f==null?void 0:f())===1?Object.assign({},t(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},t().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):t()},
isOverlay:!1})},
buttonViewModel:_.HO})),_.K("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.K(_.BW,{data:function(){var n,t;return(t=_.g((n=D())==null?void 0:n.sponsorButtonViewModel,uLp))==null?void 0:t.sponsorButton}},{buttonViewModel:function(n){return _.K(_.HO,{data:n.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"af");var KMc=_.MA(function(V){var D=function(){var n;return(V==null?void 0:(n=V.overlayDensity)==null?void 0:n.call(V))===1?22:16},f={};
return _.K("yt-reel-multi-format-link-view-model",{class:_.KT("ytReelMultiFormatLinkViewModelHost",(f.ytReelMultiFormatLinkViewModelHostTall=!0,f.ytReelMultiFormatLinkViewModelHostLarge=function(){var n;return((n=V.overlayDensity)==null?void 0:n.call(V))===1},f))},_.K(_.YC,{ariaLabel:function(){return V.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return V.data().command}},_.K("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.K(_.e,{cond:function(){return V.data().icon},
then:function(n){return _.K(_.xt,{data:n,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:D})}}),_.K(_.Ow,{text:function(){return V.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bf");
KMc.idomCompat=!0;var yLR=_.MA(function(V){var D=V.data;var f=V.overlayDensity;var n=_.W2("yt-shorts-suggested-action-view-model");V=_.r(_.HJ(!1,void 0,"xDqzhe"));var t=V.next().value,J=V.next().value;V=_.r(_.HJ(!1,void 0,"LI9CFd"));var H=V.next().value,Q=V.next().value,T=function(){return D().isMultiLineSa},y=_.KX(qU3,function(){var W,I;
return(I=(W=D().toggleableContent)==null?void 0:W.entityKey)!=null?I:""}),Z=function(){var W,I,x;
return(x=D().toggleableContent)!=null&&x.entityKey?(I=(W=y())==null?void 0:W.value)!=null?I:!1:!1},l=function(){var W,I,x,oY,wZ,ZZ,sd,NU,Bn,aY,Ed;
return D().toggleableContent?Z()?(W=D().toggleableContent)==null?void 0:W.toggledData:(I=D().toggleableContent)==null?void 0:I.untoggledData:{primaryText:(NU=(x=D().defaultContent)==null?void 0:x.primaryText)!=null?NU:D().text,secondaryText:(oY=D().defaultContent)==null?void 0:oY.secondaryText,onTapCommand:(Bn=(wZ=D().defaultContent)==null?void 0:wZ.onTapCommand)!=null?Bn:D().onTapCommand,icon:(aY=(ZZ=D().defaultContent)==null?void 0:ZZ.icon)!=null?aY:D().icon,image:(Ed=(sd=D().defaultContent)==null?
void 0:sd.image)!=null?Ed:D().image}},G=function(){return T()?D().trailingTapTarget:void 0},F=function(W,I){return function(){return t()?I:W}},k=function(){return{leadingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(f==null?void 0:f())===1?F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
V={};V=_.KT((V.ytShortsSuggestedActionViewModelStaticHost=function(){return!T()},V.ytShortsSuggestedActionViewModelDynamicHost=T,V.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return T()&&H()},V.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return T()&&!H()},V));
_.Nl(function(){if(T()){var W=0,I;if((I=D().animationParams)==null?0:I.shouldExpand){var x,oY;W=((oY=(x=D().animationParams)==null?void 0:x.expansionDelaySecs)!=null?oY:0)*1E3}var wZ,ZZ=((wZ=D().animationParams)==null?0:wZ.shouldExpand)?setTimeout(function(){J(!0)},W):void 0,sd,NU;
W=((sd=D().animationParams)==null?0:sd.visibilityDelaySecs)?((NU=D().animationParams)==null?NaN:NU.visibilityDelaySecs)*1E3:0;var Bn=setTimeout(function(){Q(!0)},W);
_.dc(function(){ZZ&&clearTimeout(ZZ);clearTimeout(Bn)})}});
var d=function(W){_.Yt(W,Object.assign({},{form:{element:n.value}}))},z=_.jl(function(){var W,I=(W=l())==null?void 0:W.onTapCommand;
I&&d(I)}),C=_.jl(function(){var W,I;
if(W=(I=G())==null?void 0:I.onTapCommand)return d(W),!1}),A=_.el({"vertical-align":"bottom",
"border-radius":function(){var W;return T()?((W=D().defaultContent)==null?0:W.isCircleImage)?"50%":"4px":"0px"},
width:function(){var W,I,x;return T()&&((W=D().defaultContent)==null?0:W.imageSize)?((x=(I=D().defaultContent)==null?void 0:I.imageSize)!=null?x:24)+"px":null},
height:function(){var W,I,x;return T()&&((W=D().defaultContent)==null?0:W.imageSize)?((x=(I=D().defaultContent)==null?void 0:I.imageSize)!=null?x:24)+"px":null}}),O={};
return _.K("yt-shorts-suggested-action-view-model",{class:V,el:n},_.K("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.K("button",{class:_.KT(function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var W;
return(W=D().useFullRoundedBorder)!=null&&W?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!G()&&T()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":T()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var W;
return(W=D().disableFixedHeight)!=null&&W?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(O.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(f==null?void 0:f())===1},O)),
"on:click":z},_.K(_.kl,{model:{color:4}}),_.K("div",{class:_.KT(function(){return T()?k().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.K(_.e,{cond:function(){var W;
return(W=l())==null?void 0:W.image},
then:function(W){return _.K(_.xt,{data:W,alt:"",className:function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:A})}}),_.K(_.e,{cond:function(){var W,I;
return(W=l())==null?void 0:(I=W.icon)==null?void 0:I.iconType},
then:function(W){return _.K(_.cj,{icon:W,active:Z,className:function(){return T()?t()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.K("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.K(_.e,{cond:function(){var W;
return(W=l())==null?void 0:W.primaryText},
then:function(W){return _.K("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.K(_.Ow,{text:W}))}}),_.K(_.e,{cond:function(){var W;
return(W=l())==null?void 0:W.secondaryText},
then:function(W){return _.K("div",{class:function(){return k().secondaryText()}},_.K(_.Ow,{text:W}))}}))),_.K(_.e,{cond:G,
then:function(W){return _.K("div",{class:function(){return k().trailingSection()},
"aria-label":function(){var I;return(I=W().a11yLabel)!=null?I:""},
"on:click":C,role:"button",tabindex:0},_.K(_.kl,{model:{color:4}}),_.K(_.cj,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"cf");var ZcR=_.MA(function(V){var D=V.data;var f=V.overlayDensity;var n=_.W2("yt-shorts-video-title-view-model");V=_.jl(function(H){if(_.CX(_.R7(H),n.value,["A".toString()]))return!1;(H=D().truncatedTextOnTapCommand)&&_.Yt(H);return!1});
var t={},J={};return _.K("yt-shorts-video-title-view-model",{el:n,class:_.KT("ytShortsVideoTitleViewModelHost",(t.ytShortsVideoTitleViewModelHostClickable=function(){return!!D().truncatedTextOnTapCommand},t)),
"on:click":V},_.K("h2",{class:_.KT("ytShortsVideoTitleViewModelShortsVideoTitle",(J.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(f==null?void 0:f())===1},J))},_.K(_.Ow,{text:function(){return D().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"df");_.j3R=_.MA(function(V){var D=V.data;var f=V.overlayDensity;return _.K("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.K(_.BW,{data:function(){return D().metadataItems}},{badgeViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(_.Mh,{data:n.data}))},
playerDisclosureViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(_.TQv,{data:n.data}))},
shortsSuggestedActionViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(yLR,{data:n.data,overlayDensity:f}))},
reelChannelBarViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(bc3,{data:n.data,overlayDensity:f}))},
reelMultiFormatLinkViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(KMc,{data:n.data,overlayDensity:f}))},
shortsVideoTitleViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(ZcR,{data:n.data,overlayDensity:f}))},
reelSoundMetadataViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(_.GUR,{data:n.data,overlayDensity:f}))},
toggleButtonViewModel:function(n){return _.K("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.K(_.FA,{data:n.data}))}}))},"ef");var le3=_.MA(function(V){var D=_.Or(V,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),f=D.size,n=D.onTap,t=D.disabled,J=D.tooltipText;return _.K("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.K(xC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:f(),disabled:t(),tooltipText:J(),onTap:n}},
iconName:V.iconType}))},"ff"),G6f=_.MA(function(V){function D(Z){Z.stopPropagation();
Z.code==="ArrowUp"?(Z.preventDefault(),fcx(Q.value)):Z.code==="ArrowDown"?(Z.preventDefault(),nzL(Q.value)):Z.code==="KeyM"?VFX():(Z.code==="KeyK"||Z.code==="Space")&&D5R(T())}
var f=_.Or(V,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});V=f.previousButtonDisabled;var n=f.nextButtonDisabled,t=f.data,J=f.playabilityStatus,H=f.previewThumbnail,Q=_.W2("ytd-shorts-miniplayer-overlay"),T=_.CT(_.cTF),y;_.B9(function(){(y=_.mk(Q.value))&&y.addEventListener("keydown",D)});
_.dc(function(){var Z;(Z=y)==null||Z.removeEventListener("keydown",D)});
f=function(){var Z,l,G;return(Z=t())==null?void 0:(l=Z.reelPlayerOverlayRenderer)==null?void 0:(G=l.likeButton)==null?void 0:G.likeButtonRenderer};
return _.K("ytd-shorts-miniplayer-overlay",{el:Q,class:"ytdShortsMiniplayerOverlayHost"},_.K("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.el({"background-image":function(){var Z=H();return Z?'url("'+_.tI(Z.thumbnails)+'")':""}})}),_.K("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.K("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.K(le3,{iconType:function(){var Z=T();
return Z===2||Z===-1||Z===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){D5R(T())},
tooltipText:function(){var Z=T();return Z===1||Z===3?_.Zl("PLAYER_LABEL_PAUSE"):_.Zl("PLAYER_LABEL_PLAY")}}),_.K(_.Q3R,{orientation:"horizontal_right"})),_.K("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.K(le3,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:V,onTap:function(){fcx(Q.value)},
tooltipText:_.Zl("PREVIOUS_VIDEO_LABEL")}),_.K(le3,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:n,onTap:function(){nzL(Q.value)},
tooltipText:_.Zl("NEXT_VIDEO_LABEL")}),_.c("web_shorts_pip_like_button")?_.K("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.K(XFo,{buttonTooltipPosition:"left",data:f,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.K("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.K(_.e,{cond:function(){var Z,l;return _.g((Z=t())==null?void 0:(l=Z.reelPlayerOverlayRenderer)==null?void 0:l.metapanel,
_.kzr)},
then:function(Z){return _.K("div",{class:_.KT("ytdShortsMiniplayerOverlayInteractive")},_.K(_.j3R,{data:Z}))}})),_.K("div",{class:_.KT("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var Z;return!((Z=t())==null||!Z.adsOverlay)||J()&&!IKF(J())}},_.K("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.K(_.wSW,null)))),_.K(_.e,{cond:function(){var Z=t(),l,G;
Z=_.g(Z==null?void 0:(l=Z.adsOverlay)==null?void 0:(G=l.fulfillmentContent)==null?void 0:G.fulfilledLayout,pVl);return _.g(Z==null?void 0:Z.renderingContent,M9U)},
then:function(Z){return _.K("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.K(C06,{data:Z}))}}))},"gf");var tF3=_.MA(function(){var V=_.r(_.HJ(new _.bB(NaN,NaN),void 0,"HSMFk")),D=V.next().value,f=V.next().value;V=_.r(_.HJ(!1,void 0,"uaAxwf"));var n=V.next().value,t=V.next().value,J=_.r(_.HJ(!1,void 0,"nVSwef"));V=J.next().value;var H=J.next().value,Q=_.DY().resolve(_.qw).miniplayerPropSignalMap[0],T=Q.data,y=Q.shortsData,Z=Q.nextButtonDisabled,l=Q.shortsPreviewThumbnail,G=Q.previousButtonDisabled,F=Q.externalPlaylistData;J=Q.toastData;var k=Q.playabilityStatus,d=Q.isDisabled,z=Q.playerVe,C=Q.closeVe;
Q=_.CT(_.yw);_.Se("yt-pip-window-resized",function(I){f(I)});
_.Se("yt-activate-pip-miniplayer",function(){return _.w(function(I){H(!0);_.yz(I)})});
var A=function(){var I;return!((I=F())==null||!I.contents)&&n()},O=function(){var I=D(),x=!!T(),oY=A();
I=I.clone();x&&(I.height-=76);oY&&(I.height-=285);return I},W=function(){t(!n())};
_.BJ(function(){var I=z(),x=_.Ni(11),oY=_.u8(11);x&&oY&&I&&(_.Y8(x,oY,I),oY=C())&&(_.$8(x,I,[oY]),_.SJ(x,[oY]))},"HPkp0c");
return _.K("ytd-pip-container",{class:"ytdPipContainerHost"},_.K(_.e,{cond:V,then:function(){return _.K(_.kjv,{isDisabled:d,playabilityStatus:k,size:O})}}),_.K(_.e,{cond:T,
then:function(){return _.K(_.grq,{data:T,expanded:n,onExpandClick:W,playlistData:F})}}),_.K(_.e,{cond:A,
then:function(){return _.K("div",{class:"ytdPipContainerPlaylistPanel"},_.K(_.CmL,{data:F,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.K(_.e,{cond:Q,
then:function(){return _.K(G6f,{data:y,nextButtonDisabled:Z,previousButtonDisabled:G,playabilityStatus:k,previewThumbnail:l})}}),_.K("div",{class:"ytdPipContainerToast"},_.K(_.skc,{toastData:J})))},"hf");var kY=function(V,D){var f=this;this.pipController=V;this.JSC$16662_clientRoot=D;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=ZD9();this.watchPipEnabled=_.c("web_watch_pip");this.shortsPipEnabled=_.c("web_shorts_pip");this.JSC$16662_watchWhileEnabled=_.c("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;_.yX(_.Ol(),_.jIY,function(n){f.isSingleOptionSurveyActive=n});
this.JSC$16662_onPlayerPlayVideo=this.JSC$16662_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);_.$b(_.Yb.getInstance(),this.miniplayerServiceActionMap,this.JSC$16662_clientRoot);V.pictureInPictureSupported()&&_.dq("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},w4P,utf,k6c,NQZ,m8w,KVV;
kY.prototype.handleMediaSessionPipActivation=function(){var V=this,D;return _.w(function(f){_.b$().mediaSessionPipActivation=!0;D=_.DY().resolve(_.xl);return D.isOnWatch()&&V.watchPipEnabled?(_.b$().watchPipActivation=!0,_.eDJ(V,D.data),f.jumpTo(0)):D.isOnShorts()&&V.shortsPipEnabled?(_.b$().shortsPipActivation=!0,_.cLo(V),f.jumpTo(0)):V.isMiniplayerActive()&&V.watchPipEnabled&&!V.watchWhileMode?_.b(f,FMc(V),0):f.jumpTo(0)})};
var FMc=function(V){var D,f,n,t;return _.w(function(J){if(J.nextAddress==1)return D=!V.miniplayerToPipMode,f=V.playerElement,n=V.miniplayerData,t=V.watchResponse,_.b(J,V.deactivate(),2);if(J.nextAddress!=3)return D?(_.b$().mediaSessionPipActivation=!0,_.b$().watchPipActivation=!0):_.b$().miniplayerButtonActivation=!0,_.b(J,V.activate(f,n,t),3);V.miniplayerToPipMode=D;_.yz(J)})};
kY.prototype.onDownloadedVideoDeleted=function(V){var D,f=_.g((D=this.miniplayerData)==null?void 0:D.watchEndpoint,_.pl),n,t;f&&((n=this.watchResponse)==null?void 0:(t=n.playerResponse)==null?void 0:t.offlineState)!==void 0&&(D=f.videoId)&&V&&D===V&&this.close()};
kY.prototype.onShowMiniplayerCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l,G,F,k;return _.w(function(d){switch(d.nextAddress){case 1:return f=_.g(V,yur),t=(n=f)==null?void 0:n.miniplayerCommand,J=_.g(t,_.pl),t&&J&&!D.active?_.b(d,_.F7.getInstance(),2):d.return();case 2:return H=d.yieldResult,_.b(d,(Q=H)==null?void 0:Q.get("yt-miniplayer-shown-video-id"),3);case 3:T=d.yieldResult;y=J.videoId;if(!y||T===y)return d.return();Z=_.DY().resolve(_.xl);if(Z.isOnWatch())return _.zP(Error("Kj")),d.return();
l={channelItem:{externalId:btoa(y)}};D.readyToResumeVe=_.Bj(121253,void 0,void 0,l);_.b$().showMiniplayerCommandActivation=!0;return _.b(d,_.yjV(D,t,!0),4);case 4:return D.active?(_.s3(D,{readyToResumeVe:D.readyToResumeVe,continueWatching:!0,premiumBranding:!((G=f)==null||!G.showPremiumBranding)}),_.c("ytd_miniplayer_to_wiz")&&_.s3(D,{isReadyToResume:!0}),D.isReadyToResume=!0):_.s3(D,{continueWatching:!0,premiumBranding:!((F=f)==null||!F.showPremiumBranding)}),_.b(d,(k=H)==null?void 0:k.set("yt-miniplayer-shown-video-id",
J.videoId),5);case 5:D.readyToResumeVe=void 0,_.yz(d)}})};
kY.prototype.init=function(V){this.miniplayerEl?_.zP(new _.cI("MiniplayerService already initialized.")):this.miniplayerEl=V};
kY.prototype.isInitialized=function(){var V=!!this.miniplayerEl;V||_.zP(new _.cI("MiniplayerService used before initialized."));return V};
_.eDJ=function(V,D){if(V.isInitialized()){var f=_.GAX(D.response,D.playerResponse),n=_.DY().resolve(_.xl).getPlayerFromWatch();_.b$().currentEndpoint=f.watchEndpoint||null;V.activate(n,f,D)}};
_.cLo=function(V){if(V.isInitialized()){var D=_.DY().resolve(_.xl).getPlayerFromShorts();V.activate(D)}};
w4P=function(V,D){var f;(f=!V.isInitialized())||(f=_.DY().resolve(_.xl).isOnWatch()&&V.watchPipMode,f=!(V.isMiniplayerActive()&&(_.b$().userActivation||_.b$().lockupActivation||f)));if(f)return!1;gxw(V,D)?_.Fs(V):KVV(V,D);return V.watchPipMode?!_.DY().resolve(_.xl).isOnWatch():!0};
kY.prototype.isMiniplayerActive=function(){return this.active};
var gxw=function(V,D){var f;D=(f=_.g(D,_.pl))==null?void 0:f.videoId;var n,t;V=(t=_.g((n=V.miniplayerData)==null?void 0:n.watchEndpoint,_.pl))==null?void 0:t.videoId;return D!=null&&D===V};
kY.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.PA(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.o4(this.miniplayerEl,"yt-navigate-home-action"))};
_.yjV=function(V,D,f,n){f=f===void 0?!1:f;var t,J,H;return _.w(function(Q){switch(Q.nextAddress){case 1:if(V.active){Q.jumpTo(2);break}t=_.DY().resolve(_.xl);if(H=(J=V.playerElement)!=null?J:t.getPlayerFromWatch()){Q.jumpTo(3);break}return _.b(Q,_.DY().resolve(_.nX),4);case 4:H=t.getPlayerFromWatch();case 3:if(!H){_.zP(Error("Mj"));Q.jumpTo(2);break}return _.b(Q,V.activate(H,n),2);case 2:return V.active?_.b(Q,KVV(V,D,f),0):Q.return()}})};
kY.prototype.activate=function(V,D,f){var n=this,t,J,H,Q,T,y,Z,l,G;return _.w(function(F){switch(F.nextAddress){case 1:if(!n.isInitialized())return F.return();if(!V)return _.zP(Error("Mj")),F.return();if(_.knP()||n.isMiniplayerActive())var k=!0;else k=_.b$().watchPipActivation||_.b$().watchWhileActivation,_.DY().resolve(_.xl).isOnWatch()&&!k?(_.zP(new _.cI("miniplayer activated on watch page")),k=!0):k=_.b$().watchWhileActivation?n.userDeactivatedWatchWhile||!!document.pictureInPictureElement||djZ():
!1;if(k)return v$F(),F.return();t=_.b$().mediaSessionPipActivation;J=_.b$().shortsPipActivation;H=_.b$().watchPipActivation;T=(Q=_.b$().watchWhileActivation)||H;y=H||J;if(!n.pictureInPictureEnabled()||!y){F.jumpTo(2);break}return _.b(F,vxX(n,t),3);case 3:if(!F.yieldResult)return _.zP(Error("Lj")),v$F(),F.return();case 2:return n.setActive(!0),n.watchResponse=f,n.playerElement=V,n.updateMiniplayerData(D),_.b(F,k6c(n,V),4);case 4:if(!n.active)return _.zP(new _.cI("miniplayer deactivated during activation")),
n.removePlayerListeners(),F.return();k=_.DY().resolve(_.zI);k.addEventListener("yt-navigate",_.Ty(n,n.onPlaylistNavigate));k.addEventListener("yt-playlist-data-updated",_.Ty(n,n.JSC$16662_onPlaylistDataUpdated));n.JSC$16662_onPlaylistDataUpdated();v$F();n.JSC$16662_watchWhileEnabled&&_.s3w(n,Q);n.pictureInPictureEnabled()&&n.shortsPipEnabled&&(n.shortsPipMode=J,_.Ol().dispatch(TDF(n.shortsPipMode)));n.pictureInPictureEnabled()&&n.watchPipEnabled&&(n.watchPipMode=H,_.N9Y(n.handleMediaSessionPipActivation));
n.player&&(Z=n.player.getPlayerState(),l=Z===1,_.Ol().dispatch(eju(Z)),_.JR(n.miniplayerEl,"yt-miniplayer-play-state-changed",[l]),_.b$().isVideoPlaying=l);_.JR(n.miniplayerEl,"yt-miniplayer-endpoint-changed");BQc(n);_.d8Z(n);return n.shortsPipMode||n.watchPipMode?_.b(F,_.rN(n.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.c("ytd_miniplayer_to_wiz")?_.b(F,_.rN(n.miniplayerEl,"yt-activate-miniplayer",[T]),6):_.b(F,_.rN(n.miniplayerEl,"yt-activate-miniplayer-action",[V,T]),6);case 6:if(n.watchResponse&&
!_.c("miniplayer_copy_screen_on_activation_killswitch")){k=n.getScreenLayer();var d=_.Ni(0),z=gqn(0);d&&z&&(_.zR(d,z,k),k===0&&ciR(void 0,0))}utf(n);NQZ(n,!0);(G=n.getPlayerElement())==null||G.focusOnPlayer();_.yz(F)}})};
kY.prototype.updateMiniplayerData=function(V){this.miniplayerData=V;_.s3(this,{data:V})};
_.d8Z=function(V){var D,f,n=((D=V.miniplayerData)==null?void 0:(f=D.miniplayerRenderer)==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";D=V.watchWhileMode||V.watchPipMode?n&&!_.DY().resolve(_.xl).isOnWatch():n;_.s3(V,{isDisabled:D});var t,J;f=_.g((t=V.miniplayerData)==null?void 0:(J=t.miniplayerRenderer)==null?void 0:J.minimizedEndpoint,_.Fb);D&&f&&_.DY().resolve(_.Ga).openSheet({openPopupActionCommand:{openPopupAction:f}},V.miniplayerEl)};
utf=function(V){if(V.watchResponse&&!m8w(V)){var D,f=(D=V.watchResponse.playerResponse)==null?void 0:D.trackingParams;f&&(_.s3(V,{expandVe:_.Bj(35989),closeVe:_.Bj(34699),readyToResumeCloseVe:_.Bj(131070),repositionVe:_.Bj(226204),resizeVe:_.Bj(226205)}),_.s3(V,{playerVe:_.gs(f)}))}};
k6c=function(V,D){return _.w(function(f){if(f.nextAddress==1)return D.preparePlayer(),_.b(f,D.getPlayerPromise(),2);V.player=f.yieldResult;V.player&&(V.player.addEventListener("onPlayVideo",V.JSC$16662_onPlayerPlayVideo),V.player.addEventListener("onCloseMiniplayer",V.onPlayerCloseMiniplayer),V.player.addEventListener("onExpandMiniplayer",V.onPlayerExpandMiniplayer),V.player.addEventListener("onStateChange",V.onPlayerStateChange));_.yz(f)})};
_.P=kY.prototype;_.P.JSC$16662_onPlayerPlayVideo=function(V){var D=V.sessionData&&"autonav"in V.sessionData,f;V.sessionData&&V.sessionData.itct&&(f=V.sessionData.itct);var n=V.watchEndpoint;D=n&&D?_.Iyd(n,f):_.U2(V.videoId,V.listId||void 0,f);V.sessionData&&_.xo(_.g(D.commandMetadata,_.he).url,V.sessionData);KVV(this,D)};
_.P.onPlayerExpandMiniplayer=function(){_.Fs(this)};
_.P.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.P.onPlayerStateChange=function(){if(this.player){var V=this.player.getPlayerState(),D=V===1;_.Ol().dispatch(eju(V));_.Ol().dispatch(_.gEu(V));_.JR(this.miniplayerEl,"yt-miniplayer-play-state-changed",[D]);_.b$().isVideoPlaying=D;if(V===0){D=!_.OC.getInstance().isAutoplaySetExplicitly();var f,n,t,J,H,Q,T=(f=this.watchResponse.response)==null?void 0:(n=f.contents)==null?void 0:(t=n.twoColumnWatchNextResults)==null?void 0:(J=t.autoplay)==null?void 0:(H=J.autoplay)==null?void 0:(Q=H.autoplayExplicitChoiceDialogRenderer)==
null?void 0:Q.confirmDialogRenderer;D&&T&&this.player.setAutonavState(1)}V===0&&this.watchWhileMode&&this.deactivate()}};
_.P.onPlaylistNavigate=function(V,D){var f=this,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1){if(!_.g(D.endpoint,_.pl))return Z.return();_.b$().currentEndpoint=D.endpoint;_.JR(f.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.DY().resolve(_.xl).isOnWatch()&&(f.watchWhileMode||f.watchPipMode))return Z.return();V.stopPropagation();(J=(t=_.g((n=D.endpoint)==null?void 0:n.commandMetadata,_.he))==null?void 0:t.url)&&D.tempData&&!_.sB.isEmpty(D.tempData)&&_.xo(J,D.tempData);H={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};Q=new kC6(function(){return f.getPlayerElement()},H,{layer:f.getScreenLayer()});
T=function(l){Q.processChunk({endpoint:D.endpoint,data:l})};
zDB(f);f.miniplayerFetchRequest=RD0(f,D.endpoint,T);_.wx(Z,2);return _.b(Z,f.miniplayerFetchRequest,4)}if(Z.nextAddress!=2)return y=Z.yieldResult,CvX(f,y),_.YJ(Z,0);_.KW(Z);_.yz(Z)})};
_.P.JSC$16662_onPlaylistDataUpdated=function(){var V=_.DY().resolve(_.zI).getPlaylistData();this.hasPlaylistData=!!V;_.s3(this,{externalPlaylistData:V||{}})};
_.P.close=function(V){if(this.isInitialized())if(V){if(!((this.watchWhileMode||this.watchPipMode)&&_.DY().resolve(_.xl).isOnWatch()||this.shortsPipMode)){var D;(D=this.getPlayerElement())==null||D.stop()}this.deactivate()}else _.Eg().closeMiniplayer(this.miniplayerEl)};
_.P.deactivate=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1){if(!D.isInitialized()||!D.active)return H.return();D.setActive(!1);zDB(D);(f=!!V&&gxw(D,V))&&D.isSingleOptionSurveyActive&&_.o4(D.miniplayerEl,"yt-show-watch-page-survey",[D.isSingleOptionSurveyActive]);return _.b(H,qeo(D),2)}if(H.nextAddress!=3){NQZ(D,!1);D.isReadyToResume=!1;D.watchResponse=void 0;D.updateMiniplayerData(void 0);D.shortsPipMode&&(D.shortsPipMode=!1,_.Ol().dispatch(TDF(D.shortsPipMode)),xU0(D.pipController),
(n=D.player)==null||n.setInternalSize(NaN,NaN));D.watchPipMode&&(D.watchPipMode=!1,xU0(D.pipController));(t=D.watchWhileMode)&&_.s3w(D,!1);D.removePlayerListeners();var Q=_.DY().resolve(_.zI);Q.removeEventListener("yt-navigate",_.Ty(D,D.onPlaylistNavigate));Q.removeEventListener("yt-playlist-data-updated",_.Ty(D,D.JSC$16662_onPlaylistDataUpdated));_.b$().currentEndpoint=null;_.JR(D.miniplayerEl,"yt-miniplayer-endpoint-changed");D.playerElement=null;v$F();return D.shortsPipMode||D.watchPipMode?H.jumpTo(3):
_.b(H,_.rN(D.miniplayerEl,_.c("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[f,t]),3)}(J=D.player)==null||J.setInternalSize(NaN,NaN);D.player=null;_.yz(H)})};
var qeo=function(V){var D;return _.w(function(f){D=_.DY().resolve(_.xl);return V.shortsPipMode?_.b(f,D.movePlayerToShorts(V.playerElement),0):_.b(f,D.movePlayerToWatch(V.playerElement),0)})};
kY.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16662_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
kY.prototype.setActive=function(V){this.active=V;this.isSingleOptionSurveyActive?_.o4(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.o4(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Ol().dispatch(_.nA({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.s3w=function(V,D){V.watchWhileMode=D;_.s3(V,{watchWhile:D})};
NQZ=function(V,D){if(!m8w(V))if(V.shortsPipMode||V.watchPipMode){var f;(f=V.player)==null||f.setDocumentPictureInPicture(D)}else{var n;(n=V.player)==null||n.setMinimized(D)}};
m8w=function(V){return V.watchWhileMode&&_.c("kevlar_watch_while_counterfactual")};
_.Fs=function(V){var D;return _.w(function(f){switch(f.nextAddress){case 1:if(!V.isInitialized())return f.return();_.wx(f,2);return _.b(f,V.miniplayerFetchRequest,4);case 4:_.YJ(f,3);break;case 2:_.KW(f);case 3:V.watchResponse&&V.miniplayerData&&V.miniplayerData.watchEndpoint?(D={url:V.watchResponse.url,endpoint:V.miniplayerData.watchEndpoint,data:V.watchResponse,miniplayer:!0},_.PA(V.miniplayerEl,"yt-navigate-cache",D)):V.miniplayerData&&V.miniplayerData.watchEndpoint&&_.PA(V.miniplayerEl,"yt-navigate",
{endpoint:V.miniplayerData.watchEndpoint}),_.yz(f)}})};
KVV=function(V,D,f){var n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1){if(gxw(V,D))return Q.return();_.b$().currentEndpoint=D;_.JR(V.miniplayerEl,"yt-miniplayer-endpoint-changed");_.JR(V.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.b$().isVideoPlaying=!1;n={clientParams:{miniplayer:!0,autoSaveToQueue:!f}};t=new kC6(function(){return V.getPlayerElement()},n,{layer:V.getScreenLayer(),
parentLayer:0},void 0,V.readyToResumeVe);J=function(T){var y,Z,l=Object.assign({},(y=T.playerResponse)==null?void 0:(Z=y.playerConfig)==null?void 0:Z.playbackStartConfig,{startPaused:!0}),G;f&&((G=T.playerResponse)==null?0:G.playerConfig)&&(T.playerResponse.playerConfig.playbackStartConfig=l);t.processChunk({endpoint:D,data:T})};
zDB(V);V.miniplayerFetchRequest=RD0(V,D,J);_.wx(Q,2);return _.b(Q,V.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return H=Q.yieldResult,CvX(V,H),_.YJ(Q,0);_.KW(Q);_.yz(Q)})};
kY.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var zDB=function(V){V.miniplayerFetchRequest&&(V.miniplayerFetchRequest.cancel&&V.miniplayerFetchRequest.cancel("Active request obsolete"),V.miniplayerFetchRequest=null)},RD0=function(V,D,f){var n=_.lV.instance,t,J=(t=_.g(D.commandMetadata,_.he))==null?void 0:t.url,H;
t=!J||_.c("disable_miniplayer_tempdata")?{}:(H=H$9(J))!=null?H:{};return Ax(n,D,t,window.location.href,"watch",function(Q,T){f(T)},function(Q){return Q!==V.miniplayerFetchRequest})},CvX=function(V,D){var f;
_.w(function(n){if(!D)return n.return();V.watchResponse=D;utf(V);BQc(V);f=_.GAX(D.response,D.playerResponse);if(V.isMiniplayerActive()){D.response&&(V.playerElement.watchNextData=D.response);var t=_.sB.getValueByKeys.apply(_.sB,[D].concat(_.sz(q8l)));_.sB.getValueByKeys.apply(_.sB,[D].concat(_.sz(Y8p)))&&t&&_.DY().resolve(_.zI).setAutoplayRenderer(t);if(t)if(_.c("kevlar_is_pupi_enabled")){var J,H,Q,T,y,Z=((J=D.response)==null?0:(H=J.playerOverlays)==null?0:(Q=H.playerOverlayRenderer)==null?0:(T=Q.autonavToggle)==
null?0:(y=T.autoplaySwitchButtonRenderer)==null?0:y.enabled)?2:1;_.OC.getInstance().setState(Z,!1,!1)}else J=g1Z()?2:1,(Z=V.player)==null||Z.setAutonavState(J);V.updateMiniplayerData(f);_.d8Z(V)}_.yz(n)})},BQc=function(V){var D,f,n=(D=V.watchResponse)==null?void 0:(f=D.playerResponse)==null?void 0:f.playabilityStatus,t;
D=n==null?void 0:(t=n.miniplayer)==null?void 0:t.miniplayerRenderer;(D==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&D.minimizedEndpoint&&_.HA(V.miniplayerEl,[D.minimizedEndpoint]);_.s3(V,{miniplayerRenderer:D,playabilityStatus:n})};
kY.prototype.openToast=function(V,D){_.s3(this,{toastData:{data:V,label:D}})};
_.s3=function(V,D){var f=V.miniplayerEl,n;for(n in D)f[n]=D[n];(0,V.miniplayerPropSignalMap[1])(D)};
kY.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var V;return this.playerElement?this.playerElement:(V=_.Pt(this.miniplayerEl).querySelector("#player-container"))==null?void 0:V.firstElementChild};
kY.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var vxX=function(V,D){D=D===void 0?!1:D;var f,n,t,J,H,Q,T;return _.w(function(y){if(y.nextAddress==1){f=navigator.userActivation.isActive||D;if(!f||!V.pictureInPictureSupported())return y.return(!1);n=XSV(V);t=n.width;J=n.height;return _.b(y,V.pipController.openWindow({width:t,height:J}),2)}H=y.yieldResult;Q=V.pipController.getWindow();if(!Q||!H)return y.return(!1);Q.document.body.style.overflow="hidden";T=PlL(Q);MRw(V.pipController,function(){ExZ(V);T()});
return y.return(!0)})},XSV=function(V){var D=_.b$().shortsPipActivation,f,n;
V=D?.5625:(n=(f=V.player)==null?void 0:f.getVideoAspectRatio())!=null?n:16/9;f=Math.min(window.innerWidth,window.innerHeight)/2;D=D?0:76;return V>1?new _.bB(f,D+f/V):new _.bB(f*V,D+f)},ExZ=function(V){var D;
_.w(function(f){D=_.DY().resolve(_.xl);return D.isOnWatch()&&V.watchPipMode||D.isOnShorts()&&V.shortsPipMode?_.b(f,V.deactivate(),0):V.miniplayerToPipMode?_.b(f,FMc(V),0):V.watchPipMode?_.b(f,_.Fs(V),0):f.jumpTo(0)})};
kY.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.IG.Object.defineProperties(kY.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
kY[L$]=[h9f,Jgu];var ALq="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(" "),
aeV="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(" "),YeZ="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
$8X="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var icR=null;var SeR={},WMB=(SeR.initialized={priority:10,callback:function(V){var D=_.DY();D.addProvider({provide:Kkr,useClass:ULf});D.addProvider({provide:_.hlZ,useFactory:function(){return new y4p}});
D.addProvider({provide:lO,useValue:_.XB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});D.addProvider({provide:PPF,useValue:5184E6});D.addProvider({provide:cz6,useValue:_.kv()});D.addProvider({provide:mUc,useClass:HFH});D.addProvider({provide:aD,useClass:aD});D.addProvider({provide:_.nX,useFactory:function(){return bCL.promise}});
D.addProvider({provide:_.y$V,useFactory:function(){return _.KcF.promise}});
D.addProvider({provide:Whn,useValue:function(){var T;return((T=_.hI())==null?void 0:T.getPlayer())||null}});
var f={};D.addProvider((f.provide=_.Su,f.useFactory=function(T,y){return function(){return bPX(T,y)}},f[L$]=[lO,
PPF],f));f={};D.addProvider((f.provide=_.fC,f.useClass=LEP,f[L$]=[lO,PPF],f));f={};D.addProvider((f.provide=_.cXY,f.useClass=Mpl,f[L$]=[_.fC],f));D.addProvider({provide:Hf,useFactory:_.Ol});D.addProvider({provide:Jx,useFactory:_.Ol});D.addProvider({provide:Xnq,useFactory:_.Ol});D.addProvider({provide:MGY,useFactory:_.Ol});D.addProvider({provide:_.C1,useFactory:_.Ol});D.addProvider({provide:HX,useValue:_.bR});D.addProvider({provide:LYf,useClass:v8n});D.addProvider({provide:qZo,useClass:C_F});D.addProvider({provide:uQ,
useClass:uQ});D.addProvider({provide:wC,useClass:wC});D.addProvider({provide:QP,useClass:QP});D.addProvider({provide:bV,useClass:bV});D.addProvider({provide:Xa,useClass:Xa});D.addProvider({provide:j3,useClass:j3});D.addProvider({provide:HM,useClass:HM});D.addProvider({provide:qPL,useValue:Z4X});D.addProvider({provide:_.cO,useFactory:_.lS});D.addProvider({provide:Id,useFactory:_.Gm});f={};D.addProvider((f.provide=PpZ,f.useFactory=function(T){return function(y){var Z=Z===void 0?{}:Z;var l,G,F=(G=_.g((l=
y.endpoint)==null?void 0:l.commandMetadata,_.he))==null?void 0:G.rootVe;if(F){var k,d;if(l=y.previousCsn||((d=_.g((k=y.endpoint)==null?void 0:k.commandMetadata,W4E))==null?void 0:d.parentCsn)){var z=z===void 0?{}:z;if(l!==_.Ni(z.layer)||F!==gqn(z.layer))dm9(l,z.cttAuthInfo,z.layer||0),ciR(l,z.layer||0),k=z.layer||0,_.ql(FjY(k===void 0?0:k),F);Z.parentCsn=l}y.endpoint&&l?HEV(T,y.endpoint,Z):_.P5(T,F,void 0,Z);var C;((C=y.response)==null?0:C.trackingParams)&&T.graftServerVe(y.response.trackingParams);
var A;((A=y.playerResponse)==null?0:A.trackingParams)&&T.graftServerVe(y.playerResponse.trackingParams);var O;((O=y.reelWatchSequenceResponse)==null?0:O.trackingParams)&&T.graftServerVe(y.reelWatchSequenceResponse.trackingParams)}}},f[L$]=[_.cO],f));
f={};D.addProvider((f.provide=AcB,f.useClass=EFJ,f[L$]=[HX,_.C1],f));f={};D.addProvider((f.provide=Df,f.useClass=Df,f[L$]=[_.nX,_.C1],f));f={};D.addProvider((f.provide=Mx,f.useClass=Mx,f[L$]=[Jx,_.fH],f));D.addProvider({provide:_.WXV,useClass:VEf});f={};D.addProvider((f.provide=_.lM,f.useClass=IZJ,f[L$]=[_.WXV],f));D.addProvider({provide:_.Ga,useClass:to});D.addProvider({provide:_.yzU,useClass:C6W});D.addProvider({provide:_.eO,useClass:f0});f={};D.addProvider((f.provide=_.SS,f.useClass=UUJ,f[L$]=
[_.SS],f));D.addProvider({provide:_.U$,useClass:dtF});D.addProvider({provide:Kk,useClass:Kk});D.addProvider({provide:eS,useClass:eS});D.addProvider({provide:d1,useClass:n0});f={};D.addProvider((f.provide=mT,f.useClass=mT,f[L$]=[_.Ga,d1],f));_.c("web_enable_feedback_endpoint_resolver")&&(f={},D.addProvider((f.provide=w1,f.useClass=w1,f[L$]=[Hf,r1],f)),D.addProvider({provide:r1,useClass:hel}));_.c("web_enable_feedback_endpoint_resolver_batch_2")&&(f={},D.addProvider((f.provide=Tr,f.useClass=Tr,f[L$]=
[Hf],f)),f={},D.addProvider((f.provide=QA,f.useClass=QA,f[L$]=[r1],f)));f={};D.addProvider((f.provide=uO,f.useClass=uO,f[L$]=[_.eO,d1],f));f={};D.addProvider((f.provide=vf,f.useClass=vf,f[L$]=[_.eO],f));f={};D.addProvider((f.provide=NE,f.useClass=NE,f[L$]=[_.CR,_.lM],f));f={};D.addProvider((f.provide=Bf,f.useClass=Bf,f[L$]=[_.CR,_.cO],f));D.addProvider({provide:V5,useClass:V5});f={};D.addProvider((f.provide=Lk,f.useClass=Lk,f[L$]=[Hf],f));D.addProvider({provide:Kb,useClass:Kb});D.addProvider({provide:bt,
useClass:bt});f={};D.addProvider((f.provide=Zy,f.useClass=Zy,f[L$]=[Hf],f));f={};D.addProvider((f.provide=jy,f.useClass=jy,f[L$]=[_.CR,Hf],f));f={};D.addProvider((f.provide=lt,f.useClass=lt,f[L$]=[Hf],f));f={};D.addProvider((f.provide=Gc,f.useClass=Gc,f[L$]=[Hf],f));f={};D.addProvider((f.provide=kI,f.useClass=kI,f[L$]=[_.lM],f));f={};D.addProvider((f.provide=P3,f.useClass=P3,f[L$]=[_.cO],f));f={};D.addProvider((f.provide=Q5,f.useClass=Q5,f[L$]=[h3],f));f={};D.addProvider((f.provide=Tc,f.useClass=
Tc,f[L$]=[h3],f));D.addProvider({provide:rL,useClass:rL});D.addProvider({provide:H3,useClass:H3});D.addProvider({provide:tK,useClass:tK});f={};D.addProvider((f.provide=zr,f.useClass=zr,f[L$]=[_.lM,_.fH],f));D.addProvider({provide:jS,useClass:jS});f={};D.addProvider((f.provide=sI,f.useClass=sI,f[L$]=[_.CR,_.lM],f));D.addProvider({provide:cf,useClass:cf});f={};D.addProvider((f.provide=Wf,f.useClass=Wf,f[L$]=[Hf,_.CR,_.SS],f));f={};D.addProvider((f.provide=$I,f.useClass=$I,f[L$]=[_.CR,_.fH],f));D.addProvider({provide:I2H,
useValue:B8U});D.addProvider({provide:UnF,useValue:QJd});D.addProvider({provide:iO,useClass:iO});f={};D.addProvider((f.provide=YI,f.useClass=YI,f[L$]=[Hf],f));f={};D.addProvider((f.provide=pk,f.useClass=pk,f[L$]=[_.U$,_.fH],f));f={};D.addProvider((f.provide=bO,f.useClass=bO,f[L$]=[_.fH],f));D.addProvider({provide:J3,useFactory:function(){return new J3(_.Ol())}});
D.addProvider({provide:kEc,useFactory:_.mR.getInstance});f={};D.addProvider((f.provide=Gr,f.useClass=Gr,f[L$]=[lO,kEc,_.fH],f));D.addProvider({provide:yA,useClass:yA});D.addProvider({provide:fk,useClass:fk});D.addProvider({provide:t3,useClass:t3});D.addProvider({provide:_.nk,useClass:_.nk});D.addProvider({provide:F$,useClass:F$});f={};D.addProvider((f.provide=EI,f.useClass=EI,f[L$]=[Jx],f));f={};D.addProvider((f.provide=A3,f.useClass=A3,f[L$]=[_.fH],f));_.c("web_enable_prefetching_videos_on_home")&&
(D.addProvider({provide:xn,useClass:xn}),D.addProvider({provide:Zf,useClass:Zf}));f={};D.addProvider((f.provide=c3,f.useClass=c3,f[L$]=[_.fH],f));D.addProvider({provide:Pf,useClass:Pf});f={};D.addProvider((f.provide=Dy,f.useClass=Dy,f[L$]=[_.CR,_.fH],f));f={};D.addProvider((f.provide=od,f.useClass=od,f[L$]=[_.fH],f));D.addProvider({provide:j7,useClass:j7});D.addProvider({provide:qE,useClass:qE});f={};D.addProvider((f.provide=Ck,f.useClass=Ck,f[L$]=[Jx,_.fH],f));f={};D.addProvider((f.provide=kP,f.useClass=
kP,f[L$]=[Jx,_.fH,_.CR],f));f={};D.addProvider((f.provide=RA,f.useClass=RA,f[L$]=[_.fH],f));f={};D.addProvider((f.provide=v3,f.useClass=v3,f[L$]=[_.fH,_.CR],f));f={};D.addProvider((f.provide=ad,f.useClass=ad,f[L$]=[_.nX],f));f={};D.addProvider((f.provide=X5,f.useClass=X5,f[L$]=[_.nX],f));D.addProvider({provide:ME,useClass:ME});D.addProvider({provide:UI,useClass:UI});D.addProvider({provide:y5,useClass:y5});D.addProvider({provide:fb,useClass:fb});D.addProvider({provide:xI,useClass:xI});D.addProvider({provide:F5,
useClass:F5});D.addProvider({provide:OI,useClass:OI});_.c("kevlar_enable_mss_lazy_load")&&D.addProvider({provide:_.E5,useClass:XBc});D.addProvider({provide:_.Z$,useClass:or});D.addProvider({provide:II,useFactory:function(){return _.Yb.getInstance()}});
D.addProvider({provide:C3R,useFactory:B9L});D.addProvider({provide:h3,useFactory:function(){return _.F7.getInstance()}});
D.addProvider({provide:PMV,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});f={};D.addProvider((f.provide=_.hg,f.useClass=_.hg,f[L$]=[_.nX,_.fH,_.cO,C3R,h3,II,PMV,HX],f));D.addProvider({provide:_.J$,useClass:WhH});D.addProvider({provide:_.Jzl,useClass:oRo});f={};D.addProvider((f.provide=g1,f.useClass=g1,f[L$]=[_.Jzl],f));f={};D.addProvider((f.provide=_.UK,f.useFactory=function(T){return T.upliftCompletionResolver.promise},f[L$]=[AcB],f));
f=_.EG("IS_SHELL_LOAD")?"aa":"eocs";var n=_.EG("IS_SHELL_LOAD")?3:2;_.C_().parkOrScheduleJob(function(){Ydc()},n,f);
_.C_().parkOrScheduleJob(function(){_.DY().resolve(Df).start()},2,"eocs");
_.C_().parkOrScheduleJob(function(){qdq()},2,"eocs");
_.C_().parkOrScheduleJob(function(){_.DY().resolve(Mx).start()},2,"eocs");
_.c("kevlar_debug_data_app_registration_ks")||Z2d();D.addProvider({provide:_.ue,useValue:new YFE(V.root)});D.addProvider({provide:Ak,useValue:new imZ});D.addProvider({provide:_.OV6,useValue:new LGF(V.root)});D.addProvider({provide:_.RB,useValue:new I0E});D.addProvider({provide:_.e2,useClass:QK});D.addProvider({provide:h9f,useClass:Px});_.c("kevlar_network_sli_killswitch")||D.addProvider({provide:rZV,useValue:x6u});D.addProvider({provide:bA,useFactory:lmR});_.c("web_bind_fetch")&&(f={},D.addProvider((f.provide=
IFc,f.useFactory=G89,f[L$]=[_.Vx(bA)],f)));_.c("web_bind_parse")&&(f={},D.addProvider((f.provide=Ooq,f.useFactory=eQY,f[L$]=[_.Vx(bA)],f)));_.c("web_bind_window_request")&&(f={},D.addProvider((f.provide=xLw,f.useFactory=cCX,f[L$]=[_.Vx(bA)],f)));_.c("web_bind_text_decoder")&&(f={},D.addProvider((f.provide=MEc,f.useFactory=FPn,f[L$]=[_.Vx(bA)],f)));f={};D.addProvider((f.provide=kMl,f.useFactory=fi3,f[L$]=[_.UK,Hf,_.Su],f));f={};D.addProvider((f.provide=vRu,f.useClass=Cb,f[L$]=[kMl],f));D.addProvider({provide:YPl,
useClass:XuV});D.addProvider({provide:e$6,useClass:FEH});f=[].concat(_.sz(Wj));_.c("web_continuation_response_processing")&&f.push(_.Xh);f.push(e_u);_.c("enable_share_panel_navigation_logging_fix_on_web")&&f.push(_.aBY);D.addProvider({provide:mvY,useValue:f});D.addProvider({provide:d5d,useClass:GMo});D.addProvider({provide:bwq,useClass:HwJ});f={};D.addProvider((f.provide=vz3,f.useClass=P_r,f[L$]=[Jx],f));_.dm.addLowPriorityJob(function(){xKZ()});
f={};D.addProvider((f.provide=VZr,f.useFactory=function(T){return function(y){var Z,l=(Z=_.g(y.commandMetadata,_.he))==null?void 0:Z.url;if(!l)throw new _.cI("No URL for PBJ Command",y);l=FiY(l,{pbj:"1"});Z=YEY(l,{})||{};Z=Object.assign({},Z,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.XB("STS").toString()});y=_.bE({command:JSON.stringify(y),session_token:_.XB("XSRF_TOKEN")});return T.fetch(l,{method:"POST",headers:Z,body:y})}},f[L$]=[bwq],f));
f=[];f.push(D.resolve(e$6));n={};n=(n.client_location=_.mR.getInstance(),n.consistency=_.gLn(),n.entities=D.resolve(qZo),n.response_received_commands=D.resolve(d5d),n.store=D.resolve(_.cXY),n.tokens=D.resolve(e$6),n);_.c("web_service_params_response_processor")&&(D.addProvider({provide:PXc,useFactory:function(){var T={};return T.CSI=vkd(),T.ECATCHER=gk9(),T}}),D.addProvider({provide:jh9,
useClass:of3}),n.service_params=D.resolve(jh9));if(_.c("web_shorts_prefetch_service_enabled")){var t=new h$Y(D.resolve(_.fC));n.shorts_prefetch=t}n.adblock_detection=D.resolve(vz3);D.addProvider({provide:_.ik,useClass:_.ik});t=D.resolve(qPL);var J=[];_.c("PremiumClientSharedConfig__enable_att_context_processor")&&(D.addProvider({provide:GWU,useClass:ZqY}),J.push(D.resolve(GWU)));if(_.c("owl_pl_await")){var H={};D.addProvider((H.provide=YuV,H.useFactory=function(T){return new ArJ(T)},H[L$]=[_.ik],
H));
J.push(D.resolve(YuV))}Hjr(t,D.resolve(bwq),D.resolve(LYf),n,D.resolve(_.fC),f,J,D.resolve(vRu),D.resolve(YPl));D.addProvider({provide:_.CR,useValue:_.Yl.instance});_.c("start_client_gcf")&&D.addProvider({provide:v2,useValue:WWP()});D.addProvider({provide:ixR,useFactory:function(){return new ixR(_.DY().resolve(_.ik),_.F7.getInstance())}});
_.C_().parkOrScheduleJob(function(){SdR()},1,"eocs");
f={};D.addProvider((f.provide=Vq,f.useClass=Vq,f[L$]=[_.Su,_.CR],f));D.addProvider({provide:_.opW,useFactory:_.yq.getInstance});_.C_().parkOrScheduleJob(function(){_.DY().resolve(Vq).refresh()},0,"eocs");
D66(Z4X.watchEndpointMap||{},t.reelWatchEndpointMap||{},V.injector.resolve(_.CR));D.addProvider({provide:Fc,useValue:_.lV.instance});_.c("kevlar_signal_collection_killswitch")||(f={},D.addProvider((f.provide=NZZ,f.useClass=NZZ,f[L$]=[lO,Id],f)),_.C_().parkOrScheduleJob(function(){_.DY().resolve(NZZ).record()},1,"eocs"));
_.c("web_debug_handler_registration_killswitch")||_.C_().parkOrScheduleJob(function(){KhF("DOWNLOAD_PES",sSd);_.c("offline_client_state_export_ks")||KhF("OFFLINE_CLIENT_STATE",gZZ)},0,"eocs");
_.c("kevlar_prevent_polymer_dynamic_font_load")&&_.C_().parkOrScheduleJob(function(){var T=[_.t4(vfw),_.t4(kJo)];T=_.r(T);for(var y=T.next();!y.done;y=T.next()){y=y.value;var Z=document.createElement("link");_.So(Z,y,"stylesheet");document.head.appendChild(Z)}},1,"eocs");
f=V.injector.resolve(_.CR);_.lLF.instance=new _.lLF(f);rm9(wLE(new jor(f)));f={};V.injector.addProvider((f.provide=Uq,f.useFactory=function(T){(T=T==null?void 0:T.getCurrentPage())?T=T.visibilityObserver:(icR||(icR=uAx()),T=icR);return T},f[L$]=[_.Vx(_.xl)],f.skipCache=!0,f));
D.addProvider({provide:_.qw,useClass:kY});D.addProvider({provide:wD,useClass:hau});V.injector.addProvider({provide:O5o,useValue:a0u});D.addProvider({provide:zmP,useValue:kpU});D.addProvider({provide:_.pm,useValue:XsU});V=D.addProvider;rrB||(rrB=new Jrc);V.call(D,{provide:_.Jo,useValue:rrB});D.addProvider({provide:_.I5,useValue:_.XB("HTML_DIR")==="rtl"?"rtl":"ltr"});D.addProvider({provide:EHF,useClass:xtl});D.addProvider({provide:_.TK,useClass:rn});_.DY().addProvider({provide:aLY,useValue:_.c("enable_web_delhi_icons")?
aeV.concat($8X):ALq.concat(YeZ)});D.addProvider({provide:_.wn,useClass:_.wn});D.addProvider({provide:_.evw,useValue:new GJo});D.addProvider({provide:ETV,useClass:ze6});D.addProvider({provide:nb,useClass:nb});D.addProvider({provide:oA,useClass:oA});V={};D.addProvider((V.provide=Rd,V.useClass=Rd,V[L$]=[_.CR,_.lM],V));D.addProvider({provide:gL,useClass:gL});D.addProvider({provide:naV,useClass:fFo});D.addProvider({provide:wL,useClass:wL});D.addProvider({provide:N8H,useValue:ymL});D.addProvider({provide:_.RJ,
useClass:ReF});_.c("enable_payments_purchase_manager")&&D.addProvider({provide:gHo,useClass:eel});D.addProvider({provide:gfB,useFactory:function(){return function(T){return _.F3J(T)}}});
D.addProvider({provide:_.jMF,useClass:lME});V={};D.addProvider((V.provide=ey,V.useClass=ey,V[L$]=[_.jMF],V));D.addProvider({provide:JK,useClass:JK});D.addProvider({provide:MI6,useValue:BeY});D.addProvider({provide:JwL,useValue:_.jlw});D.addProvider({provide:kdR,useClass:DLJ});D.addProvider({provide:Ho3,useValue:eGX});V={};D.addProvider((V.provide=wHq,V.useClass=Qlc,V[L$]=[Ho3],V));V={};D.addProvider((V.provide=_.cx,V.useClass=cnf,V[L$]=[wHq],V));V={};D.addProvider((V.provide=_.TZ,V.useClass=Qq,V[L$]=
[_.C1,_.e2],V));if(_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))V={},D.addProvider((V.provide=Zu,V.useClass=Zu,V[L$]=[_.CR,II],V));if(_.c("web_enable_renderer_logger")){var Q=new pHR;yuc(function(){Q.abort()});
D.addProvider({provide:GZ3,useValue:new z9V(Q.signal)})}D.addProvider({provide:dOV,useValue:a4Y});V={};D.addProvider((V.provide=VR0,V.useClass=UVl,V[L$]=[_.CR],V))}},SeR);var pS3={},LMc=(pS3.initialized={priority:10,callback:function(){if(!JZR){ORR();s6F("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.HI(_.lC(s6F,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.c("log_heartbeat_with_lifecycles")){var V={};W$.instance||(W$.instance=new W$);W$.instance.install((V.document_visible={callback:B7L,priority:10},V.document_hidden={callback:B7L,priority:10},V))}else _.MY(document,"visibilitychange",B7L);JZR=!0}(V=_.Ni())&&V!=="UNDEFINED_CSN"&&GG3(V)}},pS3);var Iec={},OcJ=(Iec.initialized={callback:function(V){var D=_.Bj(232091),f=V.injector.resolve(_.cO);_.oj(f,D);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?oz9()&&_.rW(f,D):(V=V.injector.resolve(gfB)("refresh_detector"))&&(V.get("first_tab_load")?_.rW(f,D):V.set("first_tab_load","1"))}},Iec);var x80={},Mov=(x80.initialized={priority:10,callback:K_F},x80);var hDR={},U8B=(hDR.initialized={priority:0,callback:function(){var V=new p6l,D="other";_.Tl?D="chrome":_.Qd?D="firefox":_.CH?D="safari":Ob&&(D="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(f){V.increment(_.lE(),f,D)}).catch(function(){V.increment(_.lE(),!1,D)}):V.increment(_.lE(),!1,D)}},hDR);var V5V={},D9c=(V5V.rendering={priority:8,callback:yX9},V5V);var fWv={},njR=(fWv.rendering={priority:10,callback:NyZ},fWv.rendered={callback:ug9},fWv),t5o={},PKf=(t5o.rendering={callback:NyZ},t5o.rendered={callback:ug9},t5o);var ojc=!1,JaZ={},raW=(JaZ.initialized={priority:10,callback:function(){ojc||(ckY({didPatch:function(V){V.el&&Ekx(V.el,V.props)},
didUnmount:function(V){qfX(V.el)}}),ojc=!0)}},JaZ);var HWw=/^\/shorts\/?$/;_.ql("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(_.c("kevlar_enable_mss")){_.Vdx(new d2F);var w6w=!0,QX3,Bx;w6w=w6w===void 0?!1:w6w;QX3=QX3===void 0?!1:QX3;Bx=Bx===void 0?{}:Bx;var Txw=Bx.cssRowKey||"",bWB=Bx.combinedSignature||"";!Txw&&window&&window._F_cssRowKey&&(Txw=window._F_cssRowKey,!bWB&&window._F_combinedSignature&&(bWB=window._F_combinedSignature));if(Txw&&typeof window._F_installCss!=="function")throw Error("Ad");var Kaf=Bx.loaderClass||_.Rc,dn=YGF("base-js"),ya0,ZW3=iZ3("",dn);ya0=_.rQ(ZW3);var uA=new Kaf(ya0,Txw,bWB,w6w,QX3),jXq=
Bx.useCors||dn&&dn.hasAttribute("crossorigin"),lWw=Bx.corsMode||dn&&dn.getAttribute("crossorigin");jXq&&(uA.useCors_=jXq);lWw&&(uA.corsMode_=lWw);Bx.urlMaxLength&&(uA.urlMaxLength=Bx.urlMaxLength);Bx.fetchPriority&&(uA.fetchPriority=Bx.fetchPriority);var GOJ=Bq();GOJ.JSC$8144_loader_=uA;GOJ.setBatchModeEnabled(!0)}
(function(){var V=document.querySelector("ytd-app");if(!V)throw Error("Nj");V=new K0({root:V,injector:_.DY()});V.install(LMc);var D={};V.install((D.initialized={priority:10,callback:eFR},D));_.c("wp_lat_b")&&(D={},V.install((D.initialized={priority:10,callback:function(){yC9()}},D)));
D={};V.install((D.rendered={priority:0,callback:jxX},D));D={};V.install((D.rendered={priority:0,callback:function(){_.dm.addLowPriorityJob(function(){_.MAl>1&&(w$L(),yfx())},4E4)}},D));
V.install(MWc);V.install(OcJ);V.install(raW);M8d();V.install(PFV);V.install(W3B);V.install(OwR);V.install(gFR);V.install(dUR);V.install(nrq);V.install(WMB);_.c("kevlar_enable_mss_lazy_load")&&V.install(Mov);V.install(L3X);V.install(U8B);if(!_.EG("IS_SHELL_LOAD")||_.c("kevlar_fetch_initial_data_promise_client")||_.c("sw_nav_preload_pbj")){var f=_.Qx(window.location.href);D=f&&f==="/watch";f=f&&f.match(HWw);D?V.install(PKf):f?V.install(D9c):V.install(njR)}else V.install($ow);V.install(Uoo);_.c("web_enable_prefetching_videos_on_home")&&
V.install(H4w);_.c("start_client_gcf")&&V.install(tWc);V.install(lZZ);(new La6).increment("INSTALLED");V.install(Jn3);V.install(AZB);V.transition("initialized");JC9()})();
_.Ho=[[["aXFjNzl5ODh6a2luZCM3djI=","N2t0ZjJ6djlzdmFsdWUjdnQx"],"YXZqbDhsc2RtQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjb3Jk"]];_.rU=["Y3l0Z3Q0a2s3Z2xvYmFsQ2FsbGJhY2tzIzFwYg==","OXltY2htdzY5b25BYm5vcm1hbGl0eURldGVjdGVkI3g2ZQ==","ZHNzcWxwZHh4b25BZFNraXAjbHRh","NzQ3ZGg4cDJhcmF3X3BsYXllcl9yZXNwb25zZSNrN2o=","bTJtYWc0ZHRvYWRTbG90cyN0ZHE="];_.Yc="Y3l0Z3Q0a2s3Z2xvYmFsQ2FsbGJhY2tzIzFwYg== OXltY2htdzY5b25BYm5vcm1hbGl0eURldGVjdGVkI3g2ZQ== ZHNzcWxwZHh4b25BZFNraXAjbHRh NzQ3ZGg4cDJhcmF3X3BsYXllcl9yZXNwb25zZSNrN2o= aXJlOW55NDZ2d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIzhwdg== aWxicnlvcmNoYWJfc2FfZWYjYjQ1 bTJtYWc0ZHRvYWRTbG90cyN0ZHE=".split(" ");
_._ModuleManager_initialize=function(V,D){if(!_.k4){if(!_.sR)return;_.Vdx(_.sR())}_.k4.setAllModuleInfoString(V,D)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/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','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Rr=function(V,D,f,n,t){var J={};D&&(J[D]=f);n?J.errorType=n:t&&(J.errorReason=t);_.dq(V,J);_.uN()};
_.C0=function(V){var D=_.C_();return _.IQF(D,V,1)};
_.Bt({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 V=this.query;V&&(this.full||V[0]==="("||(V="("+V+")"),this._mq=window.matchMedia(V),this._add(),this.queryHandler(this._mq))},
queryHandler:function(V){this._setQueryMatches(V.matches)}});var uEc;var NxX;var m9X=function(){};
_.P=m9X.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P._createRipple=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
m9X=_.Bt({is:"tp-yt-paper-radio-button",_template:function(){if(NxX!==void 0)return NxX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;uEc===void 0&&(uEc=document.createElement("template"));var n=uEc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return NxX=V},
behaviors:[_.ZXF],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(){_.pO(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var V=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),D=Math.floor(3*V);D%2!==V%2&&D++;this.updateStyles({"--paper-radio-button-ink-size":D+"px"})}})}});var zBw;var RBJ;_.Bt({_template:function(){if(RBJ!==void 0)return RBJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;zBw===void 0&&(zBw=document.createElement("template"));var n=zBw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return RBJ=V},
is:"tp-yt-paper-radio-group",behaviors:[_.uoH],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(V){var D=this._valueToItem(V);if(!D||!D.hasAttribute("disabled")){if(this.selected){D=this._valueToItem(this.selected);if(this.selected==V)if(this.allowEmptySelection)V="";else{D&&(D.checked=!0);return}D&&
(D.checked=!1)}_.iU.select.apply(this,[V]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(V){this._focusPrevious();V.preventDefault();this._activateFocusedItem()},
_onDownKey:function(V){this._focusNext();V.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(V){_.d3V._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(V){_.d3V._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.iU._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.k0._resetTabindices.apply(this,arguments);this.items.forEach(function(V){V.removeAttribute("aria-selected")},this)}});var CKW;_.zk("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var qg=function(){return _.E.apply(this,arguments)||this};
_.v(qg,_.E);_.P=qg.prototype;_.P.computeHasPrimaryIcon=function(V){return!(!V.icon&&!V.thumbnail)};
_.P.computeHasSecondary=function(V){return!(!V.secondaryIcon&&!V.secondaryNotificationText)};
_.P.computeHideSecondaryString=function(V){return!_.c("disable_hide_empty_secondary_string")&&!V.secondaryNotificationText};
_.P.computeCompactLinkStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeHasFitHeight=function(V){return V==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.P.isActiveEndpoint=function(V){return(V=this.get("commandMetadata.webCommandMetadata.url",V))?_.Qx(window.location.href)!=="/account_transfer_channel"&&_.Qx(window.location.href)!=="/gaia_link"&&_.Qx(window.location.href)!=="/channel_switcher"||V!=="/account"?_.Qx(window.location.href)===V:!0:!1};
_.P.onTap=function(){var V;((V=this.data)==null?0:V.serviceEndpoint)&&_.HA(this.hostElement,[this.data.serviceEndpoint])};
qg.prototype.onTap=qg.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qg.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.p("design:type",Boolean)],qg.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.p("design:type",String)],qg.prototype,"compactLinkStyle",void 0);
_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],qg.prototype,"icon",void 0);_.S([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",Object)],qg.prototype,"secondaryIcon",void 0);_.S([_.q({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],qg.prototype,"hasSecondary",void 0);_.S([_.q({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],qg.prototype,"hideSecondaryString",void 0);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qg.prototype,"onTap",null);_.S([_.a({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],qg);
_.Y(qg,"ytd-compact-link-renderer",function(){if(CKW!==void 0)return CKW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CKW=V},{mode:1});var qzV;_.zk("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Xs=function(){var V=_.E.apply(this,arguments)||this;V.role="link";V.tabindex="0";V.actionMap=_.c("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 V};
_.v(Xs,_.E);_.P=Xs.prototype;_.P.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.dU()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.P.getCurrentTheme=function(){return _.ud()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.dU()};
_.P.onThemeSelected=function(V,D){var f=V||D?V:_.Bo(),n=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.egZ(_.Qx(window.location.href));_.eJ(0,165,V);_.eJ(0,174,D);this.prefs.save();n&&_.o4(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.onTap=function(){this.data.serviceEndpoint&&_.HA(this.hostElement,[this.data.serviceEndpoint])};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Xs.prototype.onTap=Xs.prototype.onTap;Xs.prototype.dataChanged=Xs.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Xs.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Sa),_.p("design:type",Object)],Xs.prototype,"paperItemBehaviors",void 0);_.S([_.q(),_.p("design:type",Object)],Xs.prototype,"data",void 0);_.S([_.q({value:function(){return _.Gm()}}),
_.p("design:type",_.x1)],Xs.prototype,"prefs",void 0);_.S([_.q(),_.p("design:type",Object)],Xs.prototype,"label",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Xs.prototype,"role",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Xs.prototype,"tabindex",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xs.prototype,"dataChanged",null);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xs.prototype,"onTap",null);_.S([_.a({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Xs);
_.Y(Xs,"ytd-toggle-theme-compact-link-renderer",function(){if(qzV!==void 0)return qzV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qzV=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
var EjB,Aaf;_.E3=function(V){return!!V.getOptions("captions")};
_.X6v=function(V){return(V=V.getOption("captions","track"))?!!V.displayName:!1};
_.Ao=function(V,D){_.mD(D,V,function(){return EjB[D]},function(f){EjB[D]=f;
if(!_.c("mweb_player_ve_show_ks")){var n=_.Ni(0);n&&f&&_.iC(n,f)}})};
_.ar=function(V){(V=EjB[V])&&_.rW(_.lS(),V)};
EjB={};var aWR;/*

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
*/
_.Bt({_template:function(){if(aWR!==void 0)return aWR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Aaf===void 0&&(Aaf=document.createElement("template"));var n=Aaf;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return aWR=V},
is:"tp-yt-paper-checkbox",behaviors:[_.ZXF],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.pO(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var V=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),D="px",f=V.match(/[A-Za-z]+$/);f!==null&&(D=f[0]);V=parseFloat(V);f=8/3*V;D==="px"&&(f=Math.floor(f),f%2!==V%2&&f++);this.updateStyles({"--paper-checkbox-ink-size":f+
D})}})},
_computeCheckboxClass:function(V,D){var f="";V&&(f+="checked ");D&&(f+="invalid");return f},
_computeCheckmarkClass:function(V){return V?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Kfl._createRipple.call(this)}});var Yzo=new _.L("radioButtonSurveyOptionRenderer"),$90=new _.L("checkboxSurveyOptionRenderer");var iW3;var Szv;var Wac=0,YY=function(){var V=_.E.call(this)||this;V.selected=!1;V.isOverlay=!1;V.inputId="toggle-option-"+Wac;Wac++;return V};
_.v(YY,_.E);YY.prototype.onTap=function(){_.PA(this.hostElement,"ytd-toggle-option-clicked")};
_.S([_.q(),_.p("design:type",String)],YY.prototype,"label",void 0);_.S([_.q(),_.p("design:type",String)],YY.prototype,"inputId",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],YY.prototype,"selected",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],YY.prototype,"isOverlay",void 0);_.S([_.a({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.p("design:paramtypes",[])],YY);
_.Y(YY,"ytd-toggle-option-renderer",function(){if(Szv!==void 0)return Szv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Szv=V},{mode:1});var $Y=function(){var V=_.E.apply(this,arguments)||this;V.isToggleOption=!1;V.isOverlay=!1;return V};
_.v($Y,_.E);$Y.prototype.onTap=function(V){V.preventDefault();this.data&&(V=!this.data.checked,this.set("data.checked",V),_.PA(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:V,value:this.data.value}))};
_.IG.Object.defineProperties($Y.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
$Y.prototype.onTap=$Y.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$Y.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],$Y.prototype,"isToggleOption",void 0);_.S([_.q(),_.p("design:type",Object)],$Y.prototype,"isOverlay",void 0);_.S([_.R("data.responseText"),_.p("design:type",String),_.p("design:paramtypes",[])],$Y.prototype,"label",null);
_.S([_.bU("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],$Y.prototype,"onTap",null);_.S([_.a({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],$Y);
_.Y($Y,"ytd-checkbox-survey-option-renderer",function(){if(iW3!==void 0)return iW3;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iW3=V},{mode:1});var p6v;var LaX;var iA=function(){var V=_.E.apply(this,arguments)||this;V.checked=!1;V.isToggleOption=!1;return V};
_.v(iA,_.E);iA.prototype.onTap=function(){this.data&&(this.checked?_.o4(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.o4(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
iA.prototype.onTap=iA.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iA.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],iA.prototype,"checked",void 0);_.S([_.q(),_.p("design:type",Object)],iA.prototype,"isToggleOption",void 0);_.S([_.bU("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],iA.prototype,"onTap",null);
_.S([_.a({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],iA);
_.Y(iA,"ytd-radio-button-survey-option-renderer",function(){if(LaX!==void 0)return LaX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LaX=V},{mode:1});var S7=function(){var V=_.E.apply(this,arguments)||this;V.disableAnimation=!1;V.isToggleOption=!0;V.followUpSurveyCommand=null;V.selectedRatingEndpoint=null;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;V.styleOverrideAttribute=!0;V.isDarkMode=!1;V.isSubmitted=!1;V.roundedContainer=!0;V.improveShortsResponseRate=_.c("web_improve_shorts_response_rate");V.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 V};
_.v(S7,_.E);_.P=S7.prototype;
_.P.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"}}}}};
_.P.attached=function(){var V=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(f){var n;if((n=f[0])!=null&&n.isIntersecting){_.Zb().reportShown(V.hostElement);var t;(t=V.intersectionObserver)==null||t.unobserve(V.hostElement)}},{rootMargin:"0px",
threshold:.6});var D;(D=this.intersectionObserver)==null||D.observe(this.hostElement)};
_.P.onDarkModeToggledAction=function(V){this.isDarkMode=V};
_.P.dataChanged=function(){var V;if(((V=this.data)==null?void 0:V.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var D;((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var f,n,t,J;this.darkColorPalette=(f=this.data)==null?void 0:(n=f.inlineContent)==null?void 0:(t=n.compactVideoRenderer)==null?void 0:(J=t.thumbnail)==null?
void 0:J.darkColorPalette;var H,Q,T,y;this.lightColorPalette=(H=this.data)==null?void 0:(Q=H.inlineContent)==null?void 0:(T=Q.compactVideoRenderer)==null?void 0:(y=T.thumbnail)==null?void 0:y.lightColorPalette;var Z,l;if(((Z=this.data)==null?0:(l=Z.inlineContent)==null?0:l.compactVideoRenderer)&&this.isShortsStyle){var G,F,k,d;V=_.tI((G=this.data)==null?void 0:(F=G.inlineContent)==null?void 0:(k=F.compactVideoRenderer)==null?void 0:(d=k.thumbnail)==null?void 0:d.thumbnails);_.wI(this.hostElement,
{"--yt-background-url":"url("+V+")"})}};
_.P.handleRequestCompletion=function(){this.hostElement.hidden&&_.PA(this.hostElement,"yt-dismissible-item-dismissed")};
_.P.onPopupClosed=function(V){var D;((D=V.detail)==null?void 0:D.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.o4(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.P.handleInlineSurveyRatingSelect=function(V,D){var f=this;this.selectedRatingEndpoint=V;this.followUpSurveyCommand=D;this.expanded=!!V;this.getOptionRenderers().forEach(function(n,t){f.notifyPath("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked");f.set("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),V=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.o4(this.hostElement,"yt-reel-non-video-content-dismissal-command",[V]))};
_.P.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.o4(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var V,D=(V=this.data)==null?void 0:V.dismissalEndpoint;D&&this.ytComponentBehavior.resolveCommand(D)}};
_.P.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.o4(this.hostElement,"yt-close-popup-action"))};
_.P.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var V=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{V=this.getOptionRenderers().filter(function(n){return n.checked});
if(V.length===0)return;V=V.map(function(n){return n.responseEndpoint})}var D=[];
V.forEach(function(n,t){t!==0&&(n=_.g(n,_.uY))&&n.feedbackToken&&D.push(n.feedbackToken)});
if(V=V[0]){var f={};D.length>0&&(f.extra_feedback_tokens=D);this.ytComponentBehavior.resolveCommand(V,{form:f})}}};
_.P.getOptionRenderers=function(){var V=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(D){V.isSingleSelect=!!_.g(D,Yzo);return V.isSingleSelect?_.g(D,Yzo):_.g(D,$90)}):[]};
_.P.handleInlineSurveyOptionSelect=function(V){V=this.optionSelector.indexOf(V);V!==-1&&this.optionSelector.selectIndex(V)};
_.P.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.P.maybeGetBackgroundColor=function(V){return this.isDarkMode?V.section2Color:V.section3Color};
_.P.colorPaletteChanged=function(){var V=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;V=V&&this.maybeGetBackgroundColor(V);this.dismissibleEl.style.backgroundColor=!V||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.AP(V)};
_.IG.Object.defineProperties(S7.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
S7.prototype.colorPaletteChanged=S7.prototype.colorPaletteChanged;S7.prototype.onPopupClosed=S7.prototype.onPopupClosed;S7.prototype.handleRequestCompletion=S7.prototype.handleRequestCompletion;S7.prototype.dataChanged=S7.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],S7.prototype,"actionHandlerBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],S7.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.Zv("#follow-up-survey-options"),_.p("design:type",Object)],S7.prototype,"optionSelector",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],S7.prototype,"disableAnimation",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"isToggleOption",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"followUpSurveyCommand",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"selectedRatingEndpoint",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],S7.prototype,"expanded",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S7.prototype,"isSlimlineSurveyFollowUp",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S7.prototype,"isShortsStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S7.prototype,"styleOverrideAttribute",void 0);_.S([_.q(),_.p("design:type",Boolean)],S7.prototype,"isSingleSelect",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"isDarkMode",void 0);
_.S([_.q(),_.p("design:type",Object)],S7.prototype,"lightColorPalette",void 0);_.S([_.q(),_.p("design:type",Object)],S7.prototype,"darkColorPalette",void 0);_.S([_.R("selectedRatingEndpoint","isShortsStyle"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],S7.prototype,"isOptionSelected",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S7.prototype,"roundedContainer",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S7.prototype,"improveShortsResponseRate",void 0);_.S([_.Zv("#dismissible"),_.p("design:type",HTMLElement)],S7.prototype,"dismissibleEl",void 0);_.S([_.Zv("#dismiss-button yt-icon-button"),_.p("design:type",HTMLElement)],S7.prototype,"dismissButtonEl",void 0);_.S([_.Zv("#inline-survey-header yt-icon-button"),_.p("design:type",HTMLElement)],S7.prototype,"inlineHeaderDismissButtonEl",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S7.prototype,"dataChanged",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S7.prototype,"handleRequestCompletion",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],S7.prototype,"onPopupClosed",null);
_.S([_.KI("darkColorPalette","lightColorPalette","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S7.prototype,"colorPaletteChanged",null);_.S([_.a({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],S7);
_.Y(S7,"ytd-inline-survey-renderer",function(){if(p6v!==void 0)return p6v;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return p6v=V},{mode:1});var IWR=["en-CA","en","es-MX","fr-CA"];_.OWw=_.MA(function(V){var D=_.Or(V,{isOverlay:!1,isModern:!1}),f=D.captionIconType,n=D.onClick;V=D.ariaLabel;var t=D.ariaPressed,J=D.isOverlay,H=D.isModern;D=_.W2("button",function(y){_.Ao(y,127299)});
var Q=_.jl(function(y){_.ar(127299);n==null||n(y);return!1}),T={};
return _.K("ytm-closed-captioning-button",{class:_.KT("ytmClosedCaptioningButtonHost",(T.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return f()===-1&&J()},T.ytmClosedCaptioningButtonIconDisabled=function(){return f()===-1&&!J()},T))},_.K("button",{el:D,
class:"ytmClosedCaptioningButtonButton",title:V,"aria-label":V,"aria-pressed":t,"on:click":Q},_.K(_.cj,{icon:function(){var y="",Z=H();var l=Z?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";Z=Z?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var G=_.Gm().get("hl");l=!G||IWR.includes(G)?l:Z;Z=f();switch(Z){case -1:case 0:y=l;break;case 1:y=l+"_FILLED";break;default:_.JZ(Z)}return y}})))},"jf");
_.OWw.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Mn=function(V){return function(D,f){var n=V||f.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(D,f,{get:function(){var t;return this.$?this.$[n]:(t=_.yg(this))==null?void 0:t.querySelector("#"+n)},
enumerable:!0,configurable:!0})}};_.hy=function(V){V=V===void 0?!1:V;_.cq.call(this);this.pubSub_=new _.KH(V);_.wX(this,this.pubSub_)};
_.fg(_.hy,_.cq);_.hy.prototype.subscribe=function(V,D,f){return this.isDisposed()?0:this.pubSub_.subscribe(V,D,f)};
_.hy.prototype.unsubscribe=function(V,D,f){return this.isDisposed()?!1:this.pubSub_.unsubscribe(V,D,f)};
_.hy.prototype.unsubscribeByKey=function(V){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(V)};
_.hy.prototype.publish=function(V,D){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var X4B=function(){_.Rr("ypcRedeemFlowStarted")},bp=function(V){_.Rr("ypcRedeemFlowFailed",void 0,void 0,void 0,V)},Enf=function(V,D,f){D&&f&&(V.videos.forEach(function(n){n.videoId===D&&(n.itemId=f)}),V.recommendedVideos.forEach(function(n){n.videoId===D&&(n.itemId=f)}))};var Agq;var aqf;/*

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
*/
_.Bt({_template:function(){if(aqf!==void 0)return aqf;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Agq===void 0&&(Agq=document.createElement("template"));var n=Agq;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return aqf=V},
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(V,D){var f=this._resolveSrc(V);f!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",V===""||D?this._setLoading(!1):(this._resolvedSrc=f,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 V=this.$.sizedImgDiv.style,D=this.$.placeholder.style;V.backgroundSize=D.backgroundSize=this.sizing;V.backgroundPosition=D.backgroundPosition=this.sizing?this.position:"";V.backgroundRepeat=D.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(V){V=_.nO(V,this.$.baseURIAnchor.href);V.length>=2&&V[0]==="/"&&V[1]!=="/"&&(V=(location.origin||location.protocol+"//"+location.host)+V);return V}});var YK0;var $xV;_.Bt({_template:function(){if($xV!==void 0)return $xV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;YK0===void 0&&(YK0=document.createElement("template"));var n=YK0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return $xV=V},
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(V){return V?"false":"true"},
_headingChanged:function(V){var D=this.getAttribute("heading"),f=this.getAttribute("aria-label");typeof f==="string"&&f!==D||this.setAttribute("aria-label",V)},
_computeHeadingClass:function(V){return V?" over-image":""},
_computeAnimated:function(V){return V}});var iuJ=new _.L("addRendererToItemSectionAction");var SKq;var KD=function(){return _.E.apply(this,arguments)||this};
_.v(KD,_.E);KD.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KD.prototype,"rendererBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],KD.prototype,"dismissibleItemBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],KD.prototype,"rendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KD.prototype,"data",void 0);_.S([_.a({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],KD);
_.Y(KD,"ytd-comment-history-entry-renderer",function(){if(SKq!==void 0)return SKq;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return SKq=V},{mode:1});var WOv;_.zk("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.zk("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var yM=function(){return _.E.apply(this,arguments)||this};
_.v(yM,_.E);_.P=yM.prototype;_.P.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onKeyUp=function(V){if(V.keyCode===13)this.onTap()};
_.P.onTap=function(){this.data.recordClickEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var V=this.data.navigationEndpoint;V&&_.g(V,_.u7)&&_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})};
_.P.readChanged=function(){var V;_.JA(this.hostElement,"unread",!((V=this.data)==null?0:V.read))};
_.P.dataChanged=function(){this.data&&_.JA(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.P.computeThumbnailSize=function(){var V;return((V=this.data)==null?0:V.highPriorityNotification)?32:48};
_.P.getEndpointURL=function(V){return V&&!_.g(V,_.u7)?this.componentBehavior.computeHref_(V):null};
_.P.getEndpointData=function(V){return V&&!_.g(V,_.u7)?V:null};
yM.prototype.computeThumbnailSize=yM.prototype.computeThumbnailSize;yM.prototype.dataChanged=yM.prototype.dataChanged;yM.prototype.readChanged=yM.prototype.readChanged;yM.prototype.onKeyUp=yM.prototype.onKeyUp;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],yM.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yM.prototype,"data",void 0);_.S([_.q({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.p("design:type",Number)],yM.prototype,"thumbnailSize",void 0);_.S([_.bU("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],yM.prototype,"onKeyUp",null);
_.S([_.KI("data.read"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yM.prototype,"readChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yM.prototype,"dataChanged",null);_.S([_.KI("data.highPriorityNotification"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yM.prototype,"computeThumbnailSize",null);
_.S([_.a({is:"ytd-notification-renderer",disableElementRegistration:!0})],yM);
_.Y(yM,"ytd-notification-renderer",function(){if(WOv!==void 0)return WOv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WOv=V},{mode:1});var p4Z;var Zi=function(){return _.E.apply(this,arguments)||this};
_.v(Zi,_.E);Zi.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"}}}};
Zi.prototype.computeActionButtonClass=function(V){return!V.actionButtons||V.actionButtons.length<=1?"single-button":V.description?"vertical-buttons":"horizontal-buttons"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Zi.prototype,"data",void 0);_.S([_.a({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Zi);
_.Y(Zi,"ytd-playlist-show-metadata-renderer",function(){if(p4Z!==void 0)return p4Z;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return p4Z=V},{mode:1});var LOW;_.zk("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var jI=function(){return _.E.apply(this,arguments)||this};
_.v(jI,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jI.prototype,"data",void 0);_.S([_.a({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],jI);
_.Y(jI,"ytd-purchase-item-renderer",function(){if(LOW!==void 0)return LOW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LOW=V},{mode:1});var Iq0;var OuR={};OuR.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(V){if(V)return V.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(V){if(V==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.zk("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var lp=function(){return _.E.apply(this,arguments)||this};
_.v(lp,_.E);lp.prototype.onYtNavigate=function(V){var D=this.openPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);D&&(V.stopPropagation(),this.openPopupBehavior.openPopup(D))};
lp.prototype.onYtNavigate=lp.prototype.onYtNavigate;_.S([_.u(OuR.YtSimpleTextSectionBehavior),_.p("design:type",Object)],lp.prototype,"ytSimpleTextSectionBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],lp.prototype,"openPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lp.prototype,"data",void 0);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],lp.prototype,"onYtNavigate",null);_.S([_.a({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],lp);
_.Y(lp,"ytd-simple-text-section-renderer",function(){if(Iq0!==void 0)return Iq0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Iq0=V},{mode:1});var xx0;_.zk("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var GA=function(){return _.E.apply(this,arguments)||this};
_.v(GA,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GA.prototype,"data",void 0);_.S([_.a({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],GA);
_.Y(GA,"ytd-unlimited-page-feature-info-renderer",function(){if(xx0!==void 0)return xx0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return xx0=V},{mode:1});var Muq;var hsc;var eI=function(){return _.E.apply(this,arguments)||this};
_.v(eI,_.E);eI.prototype.dataChanged=function(){if(this.data){var V=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);V&&(V=_.nT(V,screen.width),this.hostElement.style.backgroundImage="url("+V+")")}};
eI.prototype.dataChanged=eI.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eI.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eI.prototype,"dataChanged",null);_.S([_.a({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],eI);
_.Y(eI,"ytd-post-redemption-section-renderer",function(){if(hsc!==void 0)return hsc;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hsc=V},{mode:1});var Ux0;var ce=function(){return _.E.apply(this,arguments)||this};
_.v(ce,_.E);ce.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ce.prototype,"data",void 0);_.S([_.a({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ce);
_.Y(ce,"ytd-ypc-post-redemption-renderer",function(){if(Ux0!==void 0)return Ux0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Ux0=V},{mode:1});_.zk("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var FZ=function(){var V=_.E.apply(this,arguments)||this;V.MIN_CODE_LENGTH=12;V.MAX_CODE_LENGTH=24;return V};
_.v(FZ,_.E);_.P=FZ.prototype;_.P.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.P.created=function(){this.riskService=new _.Ld3;this.loadPaymentThenable=_.Osc(_.XB("YPC_MB_URL"))};
_.P.ready=function(){var V=this;this.code.addEventListener("keypress",function(D){V.onCodeInputKeypress(D)})};
_.P.dataChanged=function(){var V=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(D){D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,f.type==="attributes"&&f.attributeName==="dark"&&V.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.P.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var V=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+V+")")}};
_.P.computeRedeemButton=function(V){(V=this.get("redeemButton.buttonRenderer",V))&&(V=Object.assign({},V,{serviceEndpoint:void 0}));return V};
_.P.onRedeemButtonTap=function(V){V.stopPropagation();X4B();this.redeemCode()};
_.P.redeemCode=function(){var V=this;this.isLoading=!0;var D=this.riskService.init();_.eT([D,this.loadPaymentThenable]).then(function(){var f=V.data.redeemButton.buttonRenderer.serviceEndpoint,n=_.IzL(),t=payments.business.integration.ClientTokenFactory.createClientToken(_.g(f,_.W5F).countryCode,n);n={c:V.code.value.trim(),rd:window.btoa(n),ctk:t};f&&_.DY().resolve(_.fH).resolveCommand(f,{form:Object.assign({},n,{element:V.hostElement})})},function(){V.showGenericError();
bp("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Ah(Error("$l"))})};
_.P.onYtServiceRequestCompleted=function(V){V.stopPropagation();this.isLoading=!1;var D,f;this.errorMessage=(D=V.detail)==null?void 0:(f=D.data)==null?void 0:f.errorMessage;var n,t;this.postRedemptionRenderer=(n=V.detail)==null?void 0:(t=n.data)==null?void 0:t.renderer;var J,H;if(V=(J=V.detail)==null?void 0:(H=J.data)==null?void 0:H.redirectEndpoint)this.isLoading=!0,_.PA(this.hostElement,"yt-navigate",{endpoint:V});this.errorMessage?bp("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
V)&&_.Rr("ypcRedeemFlowSucceeded")};
_.P.onYtServiceRequestError=function(V){V.stopPropagation();this.isLoading=!1;if(V=this.get("detail.error.message",V))this.errorMessage=_.pA(V);bp("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.P.onInvokeInstrumentManagerActionCompleted=function(V){V.stopPropagation();this.redeemCode()};
_.P.onInvokeInstrumentManagerActionError=function(V){V.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",V)){case "instrumentManagerLoadError":this.showGenericError();bp("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();bp("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Rr("ypcRedeemFlowCancelled")}};
_.P.onInput=function(){var V=this;_.Yu(this,"onInput",function(){var D=V.code.value.trim();V.redeemButtonDisabled=D.length<V.MIN_CODE_LENGTH||D.length>V.MAX_CODE_LENGTH},200)};
_.P.onCodeInputKeypress=function(V){V.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(X4B(),this.redeemCode())};
_.P.computeImageUrl=function(V){return V?_.nT(V.thumbnails,600):null};
_.P.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
FZ.prototype.onInvokeInstrumentManagerActionError=FZ.prototype.onInvokeInstrumentManagerActionError;FZ.prototype.onInvokeInstrumentManagerActionCompleted=FZ.prototype.onInvokeInstrumentManagerActionCompleted;FZ.prototype.onYtServiceRequestError=FZ.prototype.onYtServiceRequestError;FZ.prototype.onYtServiceRequestCompleted=FZ.prototype.onYtServiceRequestCompleted;FZ.prototype.dataChanged=FZ.prototype.dataChanged;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],FZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],FZ.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Boolean)],FZ.prototype,"redeemButtonDisabled",void 0);
_.S([_.q(),_.p("design:type",Object)],FZ.prototype,"errorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],FZ.prototype,"postRedemptionRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],FZ.prototype,"observer",void 0);_.S([_.Zv("#code"),_.p("design:type",HTMLInputElement)],FZ.prototype,"code",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FZ.prototype,"dataChanged",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FZ.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FZ.prototype,"onYtServiceRequestError",null);
_.S([_.bU("yt-invoke-instrument-manager-action-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FZ.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.S([_.bU("yt-invoke-instrument-manager-action-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],FZ.prototype,"onInvokeInstrumentManagerActionError",null);_.S([_.a({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],FZ);
_.Y(FZ,"ytd-redeem-code-renderer",function(){if(Muq!==void 0)return Muq;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Muq=V},{mode:1});var V73;_.zk("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var gV=function(){var V=_.E.apply(this,arguments)||this;V.businessEmailDisplayState="HIDE_SECTION";return V};
_.v(gV,_.E);_.P=gV.prototype;_.P.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}}}}}};
_.P.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"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.EX("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.P.onYtServiceRequestCompleted=function(V){var D;if((D=V.detail.data)==null?0:D.businessEmail)this.businessEmail=V.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=V.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=V.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.computeEmailHref=function(V){return"mailto:"+V};
_.P.computeSafeUrl=function(V){if(V)return _.cS(V)};
_.P.onBusinessEmailCaptchaSubmit=function(){var V;(V=this.data)!=null&&V.onBusinessEmailRevealClickCommand&&(V=this.JSC$19272_captchaTextarea.value)&&(V={recaptcha_response_token:V,channel_id:this.data.channelId},_.DY().resolve(_.fH).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},V,{element:this.hostElement})}))};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.IG.Object.defineProperties(gV.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 V,D;return!((V=this.data)==null||!V.primaryLinks)&&!((D=this.data)==null?0:D.links)&&this.data.primaryLinks.every(function(f){return f.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.primaryLinks)&&!((D=this.data)==null?0:D.links)&&!this.shouldShowNewLinks}}});
gV.prototype.onYtServiceRequestCompleted=gV.prototype.onYtServiceRequestCompleted;gV.prototype.dataChanged=gV.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],gV.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.Zv("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],gV.prototype,"JSC$19272_captchaTextarea",void 0);_.S([_.q(),_.p("design:type",Object)],gV.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],gV.prototype,"businessEmailDisplayState",void 0);_.S([_.q(),_.p("design:type",String)],gV.prototype,"businessEmail",void 0);_.S([_.q(),_.p("design:type",String)],gV.prototype,"businessEmailErrorMessage",void 0);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gV.prototype,"hideDetailsSection",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gV.prototype,"dataChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gV.prototype,"shouldShowNewLinks",null);_.S([_.R("data","shouldShowLinks"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gV.prototype,"shouldShowLegacyLinks",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],gV.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],gV);
_.Y(gV,"ytd-channel-about-metadata-renderer",function(){if(V73!==void 0)return V73;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return V73=V},{mode:1});var Dgq;_.zk("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ve=function(){return _.E.apply(this,arguments)||this};
_.v(ve,_.E);ve.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ve.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],ve.prototype,"lockupContainerType",void 0);_.S([_.q(),_.p("design:type",String)],ve.prototype,"thumbnailFixedWidth",void 0);
_.S([_.a({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ve);
_.Y(ve,"ytd-channel-featured-content-renderer",function(){if(Dgq!==void 0)return Dgq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Dgq=V},{mode:1});var ffW;_.zk("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var kM=function(){var V=_.E.apply(this,arguments)||this;V.roundContainer=!0;V.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return V};
_.v(kM,_.E);_.P=kM.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.dataChanged=function(){this.imageWidth=this.imageHeight=24;var V=this.data;V.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!V.style&&V.image&&V.image.thumbnails.length&&(V=V.image.thumbnails[0],this.imageWidth=V.width||0,this.imageHeight=V.height||0)};
_.P.computeSource=function(V){return V.secondarySource?_.LA(V.secondarySource):_.LA(V.source)};
_.P.computeClarifyStyle=function(V){return V?V.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.P.isLargeStyle=function(V){return V==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.P.computeBackgroundStyle=function(V){return V?V.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.P.computeHasActionButton=function(V){return!!V.actionButton};
_.P.computeHasBottomSection=function(V){return!!V.ctaHasBottomSection};
_.P.computeIsSourceMissing=function(V){return V.ctaHasBottomSection===!1?!0:V&&this.computeSource(V)?!1:!0};
_.P.computeSecondaryEndpoint=function(V){return V.secondaryEndpoint||V.endpoint};
kM.prototype.dataChanged=kM.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],kM.prototype,"imageWidth",void 0);_.S([_.q(),_.p("design:type",Number)],kM.prototype,"imageHeight",void 0);
_.S([_.q({computed:"computeSecondaryEndpoint(data)"}),_.p("design:type",Object)],kM.prototype,"secondaryEndpoint",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.p("design:type",Boolean)],kM.prototype,"hasActionButton",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.p("design:type",Boolean)],kM.prototype,"hasBottomSection",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.p("design:type",Boolean)],kM.prototype,"missingSource",void 0);_.S([_.q({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],kM.prototype,"icon",void 0);_.S([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",String)],kM.prototype,"secondaryIcon",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.p("design:type",String)],kM.prototype,"clarifyStyle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.p("design:type",String)],kM.prototype,"backgroundStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kM.prototype,"roundContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],kM.prototype,"amsterdamEnabled",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kM.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-clarification-renderer",disableElementRegistration:!0})],kM);
_.Y(kM,"ytd-clarification-renderer",function(){if(ffW!==void 0)return ffW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ffW=V},{mode:1});var nYq;var t73;var sL=function(){var V=_.E.apply(this,arguments)||this;V.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return V};
_.v(sL,_.E);_.P=sL.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.computeIcon=function(V){return V?"yt-icons:"+V.toLowerCase():null};
_.P.computeUseContacts=function(V){return!!V.contacts&&V.contacts.length>0};
_.P.computePhoneContact=function(V){var D,f;return(D=V.contacts)==null?void 0:(f=D.find(function(n){var t;return(n==null?void 0:(t=n.icon)==null?void 0:t.iconType)==="PHONE"}))==null?void 0:f.actionText};
_.P.computeSmsContact=function(V){var D,f;return(D=V.contacts)==null?void 0:(f=D.find(function(n){var t;return(n==null?void 0:(t=n.icon)==null?void 0:t.iconType)==="SMS"}))==null?void 0:f.actionText};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],sL.prototype,"amsterdamEnabled",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.p("design:type",Boolean)],sL.prototype,"useContacts",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.p("design:type",String)],sL.prototype,"phoneContact",void 0);_.S([_.a({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],sL);
_.Y(sL,"ytd-single-action-emergency-support-renderer",function(){if(t73!==void 0)return t73;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return t73=V},{mode:1});_.zk("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Be=function(){var V=_.E.apply(this,arguments)||this;V.roundedContainer=!0;V.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return V};
_.v(Be,_.E);Be.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Be.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Be.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Be.prototype,"amsterdamEnabled",void 0);
_.S([_.a({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Be);
_.Y(Be,"ytd-emergency-onebox-renderer",function(){if(nYq!==void 0)return nYq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nYq=V},{mode:1});var PAv;_.zk("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var dV=function(){return _.E.apply(this,arguments)||this};
_.v(dV,_.E);dV.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],dV.prototype,"data",void 0);_.S([_.a({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],dV);
_.Y(dV,"ytd-exploratory-results-renderer",function(){if(PAv!==void 0)return PAv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return PAv=V},{mode:1});var oYv;_.zk("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var up=function(){var V=_.E.apply(this,arguments)||this;V.messageData=null;return V};
_.v(up,_.E);_.P=up.prototype;_.P.onServiceRequestCompleted=function(V,D){V=D.actions||[];D=0;for(var f=V.length;D<f;D++){var n=V[D],t=void 0,J=void 0;if((t=_.g(n,_.l7))==null?0:(J=t.item)==null?0:J.messageRenderer)this.messageData=_.g(n,_.l7).item.messageRenderer}};
_.P.dataChanged=function(){var V=this.data;this.hostElement.hidden=!1;_.JA(this.hostElement,"is-channel",V&&!V.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.P.computeThumbnailWidth=function(V){return V?126:56};
_.P.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.P.onSubmitTap=function(){var V=this.data,D=this.selectedResponseIndex;V!==void 0&&D!==void 0&&(V=V.responses[D],V.responseData&&_.DY().resolve(_.fH).resolveCommand(V.responseData,{form:{element:this.hostElement}}))};
_.P.onDismissTap=function(){this.hostElement.hidden=!0;var V=this.data;V!==void 0&&V.dismissalEndpoint&&_.DY().resolve(_.fH).resolveCommand(V.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.updateSelectedResponseIndexFromBinding=function(V){this.selectedResponseIndex=V.detail.value};
up.prototype.onSelectedResponseIndexChange=up.prototype.onSelectedResponseIndexChange;up.prototype.dataChanged=up.prototype.dataChanged;up.prototype.onServiceRequestCompleted=up.prototype.onServiceRequestCompleted;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],up.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],up.prototype,"messageData",void 0);
_.S([_.q(),_.p("design:type",Number)],up.prototype,"selectedResponseIndex",void 0);_.S([_.Zv("#submit-button"),_.p("design:type",HTMLButtonElement)],up.prototype,"submitButton",void 0);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],up.prototype,"onServiceRequestCompleted",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],up.prototype,"dataChanged",null);
_.S([_.KI("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],up.prototype,"onSelectedResponseIndexChange",null);_.S([_.a({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],up);
_.Y(up,"ytd-feedback-elicitation-single-question-renderer",function(){if(oYv!==void 0)return oYv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return oYv=V},{mode:1});var JoR;var Np=function(){return _.E.apply(this,arguments)||this};
_.v(Np,_.E);Np.prototype.computeThumbnailWidth=function(V){return V?602:428};
Np.prototype.updateWideFromBinding=function(V){this.wide=V.detail.value};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Np.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Np.prototype,"wide",void 0);_.S([_.a({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Np);
_.Y(Np,"ytd-newspaper-hero-video-renderer",function(){if(JoR!==void 0)return JoR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return JoR=V},{mode:1});var roR;var mF=function(){return _.E.apply(this,arguments)||this};
_.v(mF,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mF.prototype,"rendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mF.prototype,"data",void 0);_.S([_.a({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],mF);
_.Y(mF,"ytd-newspaper-mini-video-renderer",function(){if(roR!==void 0)return roR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return roR=V},{mode:1});var H0Z;_.zk("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var zA=function(){return _.E.apply(this,arguments)||this};
_.v(zA,_.E);zA.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"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zA.prototype,"data",void 0);_.S([_.a({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],zA);
_.Y(zA,"ytd-newspaper-renderer",function(){if(H0Z!==void 0)return H0Z;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return H0Z=V},{mode:1});var wxB;_.zk("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Rn=function(){var V=_.E.apply(this,arguments)||this;V.isSegment=!1;V.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};V.nextContinuation={continuationType:"playlistVideoListContinuation"};return V};
_.v(Rn,_.E);_.P=Rn.prototype;_.P.attached=function(){_.DY();var V;(V=_.DY().resolve(_.Vx(_.SS)))!=null&&(V.playlistVideoListElement=this.hostElement)};
_.P.detached=function(){var V;(V=_.DY().resolve(_.Vx(_.SS)))!=null&&(V.playlistVideoListElement=void 0);V=_.DY().resolve(_.Vx(_.U$));_.c("web_enable_voting_animation")&&V&&(V.parentElem=void 0,V.videos=[],V.continuationsPresent=!1,V.showRefreshPill=!1)};
_.P.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"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.dataChanged=function(){var V=_.DY().resolve(_.Vx(_.U$));if(_.c("web_enable_voting_animation")&&this.data&&V){var D=_.Pt(this.hostElement).querySelector("#contents");D&&(V.parentElem=D);V.addVideos(this.data.contents)}_.gSu(this.ytReorderableBehavior)};
_.P.onRendererstamperFinished=function(){this.canReorder&&_.vSo(this.ytReorderableBehavior,_.Pt(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.P.onPlaylistReloading=function(){this.isReloading=!0};
_.P.onUpdateSetVideoId=function(V){if(V.detail&&this.data&&this.data.contents){var D=V.detail;V=this.data.contents.findIndex(function(t){var J;return((J=t.playlistVideoRenderer)==null?void 0:J.videoId)===D.videoId});
if(!(V<0)&&D.setVideoId&&(this.set("data.contents."+V+".playlistVideoRenderer.setVideoId",D.setVideoId),_.c("web_enable_voting_animation"))){var f;if(V=_.g((f=this.data.contents[V].playlistVideoRenderer)==null?void 0:f.engagementBar,_.ZsZ)){var n;(n=V.actions)==null||n.forEach(function(t){if(t=_.g(t,_.je3))t.itemId=D.setVideoId})}(f=_.DY().resolve(_.Vx(_.U$)))&&Enf(f,D.videoId,D.setVideoId)}}};
_.P.computeContentsClass=function(V){return V?"reloading":""};
_.P.computeIsSortable=function(V,D){return V&&D>0&&!this.isSegment&&!_.c("shorts_in_playlists_web")};
_.P.computeIsEditable=function(V){return V};
_.P.computeCanReorder=function(V){return V};
_.P.handlePlaylistRemoveVideosAction=function(V){if(this.get("playlistRemoveVideosAction.setVideoIds",V)&&this.data&&this.data.contents){V=_.g(V,_.xko).setVideoIds;for(var D=this.data.contents.length-1;D>=0;){var f=this.data.contents[D].playlistVideoRenderer;f&&f.setVideoId&&V.includes(f.setVideoId)&&this.splice("data.contents",D,1);D--}_.o4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var V=0;V<this.data.contents.length;V++)this.set("data.contents."+V+".playlistVideoRenderer.index",_.pA(String(V+1)))};
_.P.handleDrop=function(V){V=V.currDragItem;var D=_.$F(V.parentNode.childNodes,V),f=this.data.contents.splice(Number(_.LA(V.data.index))-1,1)[0];this.data.contents.splice(D,0,f);D=D?this.get("contents."+(D-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();V=this.buildReorderServiceEndpoint(V.data.setVideoId,D);this.ytComponentBehavior.resolveCommand(V)};
_.P.buildReorderServiceEndpoint=function(V,D){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",V),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",D),this.data.onReorderEndpoint):null};
_.P.handleUpdatePlaylistAction=function(V){var D;(V=_.g((D=_.g(V,_.MPu))==null?void 0:D.updatedRenderer,_.ZNE))&&this.canReorder!==V.canReorder&&this.set("data.canReorder",V.canReorder);V&&V.contents&&(this.set("data.contents",V.contents),this.isReloading=!1);V&&V.continuations&&this.set("data.continuations",V.continuations)};
_.P.handleAddRendererToItemSectionAction=function(V){var D,f=(D=_.g(V,iuJ))==null?void 0:D.renderer,n;f&&((n=_.g(V,iuJ))==null?void 0:n.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,f),V=_.DY().resolve(_.Vx(_.U$)),_.c("web_enable_voting_animation")&&V&&(f&&(D=_.ymU(f))&&V.recommendedVideos.push({itemId:D,videoId:_.lzL(f),voteCount:_.Gxx(f),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.P.isVotingEnabledOnPlaylist=function(V){if(!V)return!1;V=_.r(V);for(V=V.next();!V.done;V=V.next()){var D=void 0;return!!_.g((D=V.value.playlistVideoRenderer)==null?void 0:D.engagementBar,_.ZsZ)}return!1};
_.P.onAppendContinuationItemsActionFinished=function(){var V;this.isVotingEnabledOnPlaylist((V=this.data)==null?void 0:V.contents)&&(this.updateIndices(),V=_.DY().resolve(_.Vx(_.U$)),_.c("web_enable_voting_animation")&&V&&this.data&&V.addVideos(this.data.contents))};
_.P.updateVideoData=function(V){if(V.detail&&this.data&&this.data.contents){var D=V.detail;V=D.toIdx;var f=D.itemId,n=D.newVoteCount,t=D.voteStatus;D=D.hideItem;var J,H,Q=(J=this.data)==null?void 0:(H=J.contents)==null?void 0:H.findIndex(function(l){return _.ymU(l)===f});
if(!(Q<0)){J=this.data.contents[Q];var T;if((T=J.playlistVideoRenderer)==null?0:T.voteCount)J.playlistVideoRenderer.voteCount=n;var y;if(T=_.g((y=J.playlistVideoRenderer)==null?void 0:y.engagementBar,_.ZsZ)){var Z;(Z=T.actions)==null||Z.forEach(function(l){(l=_.g(l,_.je3))&&l.initialState&&(l.initialState.votes=n,l.initialState.status=t)})}this.data.contents.splice(Q,1);
D||this.data.contents.splice(V,0,J);this.updateIndices()}}};
Rn.prototype.updateVideoData=Rn.prototype.updateVideoData;Rn.prototype.onAppendContinuationItemsActionFinished=Rn.prototype.onAppendContinuationItemsActionFinished;Rn.prototype.onUpdateSetVideoId=Rn.prototype.onUpdateSetVideoId;Rn.prototype.onPlaylistReloading=Rn.prototype.onPlaylistReloading;Rn.prototype.onRendererstamperFinished=Rn.prototype.onRendererstamperFinished;Rn.prototype.dataChanged=Rn.prototype.dataChanged;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Rn.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],Rn.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.u(_.kdE),_.p("design:type",Object)],Rn.prototype,"ytReorderableBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],Rn.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Rn.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Rn.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Rn.prototype,"isReloading",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Rn.prototype,"isSegment",void 0);_.S([_.q({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.p("design:type",Boolean)],Rn.prototype,"isSortable",void 0);_.S([_.q({computed:"computeIsEditable(data.isEditable)"}),_.p("design:type",Boolean)],Rn.prototype,"isEditable",void 0);_.S([_.q({computed:"computeCanReorder(data.canReorder)"}),_.p("design:type",Boolean)],Rn.prototype,"canReorder",void 0);
_.S([_.q({value:101}),_.p("design:type",Number)],Rn.prototype,"scrollMargin",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rn.prototype,"dataChanged",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rn.prototype,"onRendererstamperFinished",null);
_.S([_.bU("yt-playlist-reloading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rn.prototype,"onPlaylistReloading",null);_.S([_.bU("yt-update-set-video-id"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rn.prototype,"onUpdateSetVideoId",null);
_.S([_.bU("yt-append-continuation-items-action-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rn.prototype,"onAppendContinuationItemsActionFinished",null);_.S([_.bU("yt-update-video-data-voting-animation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rn.prototype,"updateVideoData",null);_.S([_.a({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Rn);
_.Y(Rn,"ytd-playlist-video-list-renderer",function(){if(wxB!==void 0)return wxB;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return wxB=V},{mode:_.J2("kevlar_poly_si_batch_j047")?1:2});var QrV;var CD=function(){return _.E.apply(this,arguments)||this};
_.v(CD,_.E);CD.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"}}}}};
CD.prototype.onTextWrapperTap=function(V){var D=this.data&&this.data.navigationEndpoint;D&&!_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:D})};
CD.prototype.dataChanged=function(){var V=this.get("data.offerButton.buttonRenderer.serviceEndpoint");V&&V.commandMetadata&&_.g(V.commandMetadata,_.g0)&&_.g(V.commandMetadata,_.g0).fireAutomatically&&_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})};
CD.prototype.dataChanged=CD.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.E_),_.p("design:type",Object)],CD.prototype,"ytdLockupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CD.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],CD.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],CD.prototype,"biggerThumbsStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],CD.prototype,"leftAligned",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CD.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-movie-renderer"})],CD);
_.Y(CD,"ytd-movie-renderer",function(){if(QrV!==void 0)return QrV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return QrV=V},{mode:1});var Tno;var qp=function(){var V=_.E.apply(this,arguments)||this;V.rounded=!0;V.pageAttachedTo=void 0;V.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return V};
_.v(qp,_.E);qp.prototype.attached=function(){this.pageAttachedTo=_.DY().resolve(_.xl).getCurrentPage();_.PA(this.hostElement,"yt-player-attached",this.player)};
qp.prototype.detached=function(){var V;if((V=this.pageAttachedTo)==null?0:V.hostElement)_.PA(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
qp.prototype.dataChanged=function(){var V;if((V=this.data)==null?0:V.videoId)V={video_id:this.data.videoId,autoplay:!0},!_.c("miniplayer_stop_channel_video_autoplay_killswitch")&&_.DY().resolve(_.qw).isMiniplayerActive()&&(V.pause_at_start=!0,V.autoplay=!1),this.player.loadVideoWithPlayerVars(V)};
qp.prototype.handleSignalActionPausePlayer=function(){_.Uo().pause()};
qp.prototype.dataChanged=qp.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],qp.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],qp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qp.prototype,"rounded",void 0);_.S([_.Zv("#player"),_.p("design:type",Object)],qp.prototype,"player",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qp.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],qp);
_.Y(qp,"ytd-channel-video-player-renderer",function(){if(Tno!==void 0)return Tno;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Tno=V},{mode:1});var b0X;var KBv;var yow;var XZ=function(){var V=_.E.apply(this,arguments)||this;V.playing=!1;V.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.fo(V);V.active=!1;return V};
_.v(XZ,_.E);_.P=XZ.prototype;_.P.detached=function(){this.stop()};
_.P.play=function(){var V=this,D,f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return V.active=!0,D=V.get("data.inlinePlaybackEndpoint.watchEndpoint"),f=D.videoId||V.data.videoId,n=D.startTimeSeconds||0,t=D.playerParams||null,_.c("kevlar_player_update_killswitch")?_.b(H,V.playerEl.update({args:{video_id:f,startSeconds:n,player_params:t}}),2):(V.playerEl.loadVideoWithPlayerVars({video_id:f,startSeconds:n,player_params:t,autoplay:!0}),H.jumpTo(2));if(H.nextAddress!=4)return _.b(H,V.playerEl.getPlayerPromise(),
4);J=H.yieldResult;J.unloadModule("annotations_module");J.addEventListener("onStateChange",function(Q){V.onPlayerStateChange(Q)});
_.yz(H)})};
_.P.onPlayerStateChange=function(V){if(this.active)switch(this.playing=V===1,V){case 1:_.PA(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.PA(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.P.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.P.resize=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.playerEl.getPlayerPromise(),2);D=f.yieldResult;D.setSize(NaN,NaN);_.yz(f)})};
_.S([_.q(),_.p("design:type",Object)],XZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],XZ.prototype,"playing",void 0);_.S([_.q(),_.p("design:type",Object)],XZ.prototype,"playerId",void 0);_.S([_.Zv("#player"),_.p("design:type",Object)],XZ.prototype,"playerEl",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],XZ);
_.Y(XZ,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yow!==void 0)return yow;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return yow=V},{mode:1});var Z0c;var jrf;var EL=function(){var V=_.E.apply(this,arguments)||this;V.width=0;return V};
_.v(EL,_.E);_.P=EL.prototype;_.P.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Ty(this,this.onEnded));this.mp4El.addEventListener("error",_.Ty(this,this.onError))};
_.P.detached=function(){this.videoEl.removeEventListener("ended",_.Ty(this,this.onEnded));this.mp4El.removeEventListener("error",_.Ty(this,this.onError))};
_.P.play=function(){var V=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var D=this.videoEl.play();D?D.then(function(){V.handleVideoStartPlaying()}).catch(function(){_.PA(V.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.PA(this.hostElement,"yt-video-thumbnail-not-playing")};
_.P.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.P.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.P.dataChanged=function(){var V;if((V=this.data)==null?0:V.thumbnailPlaceholder)V=_.nT(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+V+")";this.stop();this.autoplay&&this.play()};
_.P.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.P.onEnded=function(){this.stop();_.PA(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.P.onError=function(){_.PA(this.hostElement,"yt-video-thumbnail-error")};
_.P.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.P.getVideoThumbnail=function(V){if(V&&V.length)return V[0]};
EL.prototype.dataChanged=EL.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],EL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],EL.prototype,"animatePlaceholderOnEntrance",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],EL.prototype,"autoplay",void 0);_.S([_.q({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.p("design:type",Object)],EL.prototype,"videoThumbnail",void 0);
_.S([_.q(),_.p("design:type",Boolean)],EL.prototype,"loop",void 0);_.S([_.q(),_.p("design:type",Boolean)],EL.prototype,"isVideoPlaying",void 0);_.S([_.q(),_.p("design:type",Object)],EL.prototype,"width",void 0);_.S([_.Zv("#mp4"),_.p("design:type",HTMLElement)],EL.prototype,"mp4El",void 0);_.S([_.Zv("#placeholder"),_.p("design:type",HTMLElement)],EL.prototype,"placeholderEl",void 0);_.S([_.Zv("#video"),_.p("design:type",HTMLVideoElement)],EL.prototype,"videoEl",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EL.prototype,"dataChanged",null);_.S([_.zy({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],EL);
_.Y(EL,"yt-video-as-thumbnail-details",function(){if(jrf===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Z0c===void 0&&(Z0c=document.createElement("template"));var n=Z0c;f.call(D,n.content.cloneNode(!0),V.content.firstChild);jrf=V}V=jrf;return V},{mode:2});var AJ=function(){var V=_.E.apply(this,arguments)||this;V.disableGridStateAware=!1;V.animationEnabled=_.c("enable_web_ketchup_hero_animation");V.transitioningOut=!1;V.narrow=!1;V.narrower=!1;V.isCarouselInFeed=!1;V.videoTimeoutJobId=0;V.panelTimeoutJobId=0;V.panelTimeoutJobStartMs=0;V.actionMap={"yt-window-resized":"onWindowResized"};return V};
_.v(AJ,_.E);_.P=AJ.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.P.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var V;this.player&&((V=this.data)==null?0:V.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.P.attached=function(){this.onWindowResized()};
_.P.detached=function(){this.clearTimeouts()};
_.P.onWindowResized=function(){this.updateSize()};
_.P.computePanelLayout=function(V){return V&&V.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.playVideo=function(){var V;this.video&&((V=this.data)==null?0:V.videoThumbnail)&&this.video.play();var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.play()};
_.P.stopVideo=function(){var V;this.video&&((V=this.data)==null?0:V.videoThumbnail)&&this.video.stop();var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.stop()};
_.P.transitionOut=function(){var V=this;this.transitioningOut=!0;return new Promise(function(D){var f=function(){_.Pt(V.hostElement).querySelector("#action-button").removeEventListener("animationend",f);_.dm.cancelJob(n);D();V.transitioningOut=!1};
var n=_.gq(_.dm,f,1E3);_.Pt(V.hostElement).querySelector("#action-button").addEventListener("animationend",f);V.player&&(V.player.playing=!1)})};
_.P.computeMetadataOrder=function(V){return V&&V.metadataOrder&&V.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?V.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.P.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.P.computeAvatarSize=function(V){return V&&V.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.P.onContentClick=function(V){if(!_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString()])){var D;if((D=this.data)==null?0:D.navigationEndpoint){var f;this.componentBehavior.resolveCommand((f=this.data)==null?void 0:f.navigationEndpoint)}}};
_.P.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.P.setBackgroundImage=function(V){if(V=this.getBackgroundImageUrl(V))_.Pt(this.hostElement).querySelector("#hero").style.backgroundImage="url("+V+")"};
_.P.setScrimLayer=function(V){var D=this.getScrimLayerColorStops(V);V=((V==null?void 0:V.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(V=180);_.XB("HTML_DIR")==="rtl"&&(V=-V);D&&(_.Pt(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+V+"deg, "+D+")")};
_.P.isNarrower=function(){return this.hostElement.clientWidth<AJ.NARROW_VERSION_SIZE};
_.P.getScrimLayerColorStops=function(){var V,D=(V=this.data)==null?void 0:V.scrimColorValues;if(!D)return null;if(D.length===1)return V=_.aB(D[0]),V+" 0%, "+V+" 100%";if(D.length===3){var f=[0,72,98];return D.map(function(n,t){return _.aB(n)+" "+f[t]+"%"}).join(",")}return null};
_.P.getBackgroundImageUrl=function(V){return V&&V.largeFormFactorBackgroundThumbnail?_.nT((V.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||V.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.P.onPlaying=function(){this.startVideoTimeout()};
_.P.onEnded=function(){this.rotate()};
_.P.startPanelTimeout=function(){var V=this;if(!this.panelTimeoutJobId){var D=this.get("data.minPanelDisplayDurationMs");D&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.gq(_.dm,function(){V.rotate()},D))}};
_.P.startVideoTimeout=function(){var V=this;if(!this.videoTimeoutJobId){_.dm.cancelJob(this.panelTimeoutJobId);var D=Date.now()-this.panelTimeoutJobStartMs;D=Math.max(0,this.get("data.minPanelDisplayDurationMs")-D);D=Math.max(this.get("data.minVideoPlayDurationMs")||0,D);this.videoTimeoutJobId=_.gq(_.dm,function(){V.rotate()},D)}};
_.P.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.dm.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.dm.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.P.rotate=function(){this.clearTimeouts();_.PA(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.IG.Object.defineProperties(AJ.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Pt(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Pt(this.hostElement).querySelector("#video")}}});
_.IG.Object.defineProperties(AJ,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
AJ.prototype.onEnded=AJ.prototype.onEnded;AJ.prototype.onPlaying=AJ.prototype.onPlaying;AJ.prototype.dataChanged=AJ.prototype.dataChanged;_.S([_.u(_.zn),_.p("design:type",Object)],AJ.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],AJ.prototype,"componentBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],AJ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.u(_.KUl),_.p("design:type",Object)],AJ.prototype,"ytBooleanLogicBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],AJ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"disableGridStateAware",void 0);_.S([_.q(),_.p("design:type",Object)],AJ.prototype,"data",void 0);_.S([_.q({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.p("design:type",String)],AJ.prototype,"panelLayout",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"animationEnabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"transitioningOut",void 0);
_.S([_.q({computed:"computeMetadataOrder(data)"}),_.p("design:type",Boolean)],AJ.prototype,"metadataOrder",void 0);_.S([_.q({computed:"computeByline(data)"}),_.p("design:type",Object)],AJ.prototype,"byline",void 0);_.S([_.q({computed:"computeAvatarSize(data)"}),_.p("design:type",Number)],AJ.prototype,"avatarSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"narrow",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"narrower",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"layoutStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AJ.prototype,"isCarouselInFeed",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AJ.prototype,"dataChanged",null);_.S([_.bU("yt-default-promo-panel-renderer-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AJ.prototype,"onPlaying",null);
_.S([_.bU("yt-default-promo-panel-renderer-ended"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AJ.prototype,"onEnded",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],AJ);
_.Y(AJ,"ytd-default-promo-panel-renderer",function(){if(KBv!==void 0)return KBv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return KBv=V},{mode:1});_.zk("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var an=function(){var V=_.E.apply(this,arguments)||this;V.narrower=!1;V.dotMenuVisible=!1;V.paginationThumbnailsVisible=!1;V.active=!0;V.disableGridStateAware=!1;V.actionMap={"yt-window-resized":"onWindowResized"};return V};
_.v(an,_.E);_.P=an.prototype;_.P.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]]"}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.Ty(this,this.onPageTypeChange));this.currentPageSubtype=_.yu(location.pathname);this.onWindowResized()};
_.P.detached=function(){this.jobId&&_.dm.cancelJob(this.jobId);this.updateSizeJobId&&_.dm.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Ty(this,this.onPageTypeChange))};
_.P.onPageTypeChange=function(V){this.active=V.detail.newPageSubtype===this.currentPageSubtype};
_.P.onWindowResized=function(){this.updateSize()};
_.P.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.P.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.P.setCarouselItem=function(V){V>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.dm.cancelJob(this.jobId);var D=this.getCurrentPanelElement();D&&D.stopVideo();this.currentItemIndex=V%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(D||(D=this.getCurrentPanelElement()),D.playVideo()):this.startRotationJob()};
_.P.scrollThumbnails=function(V){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var D=this.getCurrentPaginationElement();if(D){var f=_.Pt(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?f.style.transform="translateX(0)":(D=D.offsetWidth+8,f.style.transform="translateX(-"+D*(V-Math.ceil(Math.floor(this.overlay.offsetWidth/D)/2)+1)+"px)")}}};
_.P.onDataChanged=function(){var V=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.sw(_.dm,function(){V.getCurrentPanelElement().updateSize();V.updateSize()}))};
_.P.getCurrentPanelElement=function(){return _.Pt(_.Pt(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.P.getCurrentPaginationElement=function(){return _.Pt(_.Pt(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.P.getNavigationClass=function(V,D){return V===D?"selected":""};
_.P.getNavigationDurationStyle=function(V){return"animation-duration:"+(this.get("data.carouselItems."+V+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.P.onNavigationTap=function(V){var D=this,f=V.model.index;f!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){D.setCarouselItem(f)}),this.autorotateActive=!1)};
_.P.onVideoThumbnailEnded=function(){var V=this;if(this.shouldRotate()){var D=this.getCurrentPaginationElement();D&&(D.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){D.classList.remove("finished");V.setNextCarouselItem()}))}};
_.P.onVideoThumbnailError=function(){this.startRotationJob()};
_.P.onVideoNotPlaying=function(){this.startRotationJob()};
_.P.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.P.startRotationJob=function(){var V=this;_.dm.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.dm.addLowPriorityJob(function(){V.getCurrentPanelElement().transitionOut().then(function(){V.setNextCarouselItem()})},this.rotationTimeout))};
_.P.computeDotMenuVisible=function(V,D){return!!V&&!!V.carouselItems&&V.carouselItems.length>1&&!V.paginationThumbnails||!!D};
_.P.computePaginationThumbnailsVisible=function(V,D){var f,n;return((n=V==null?void 0:(f=V.paginationThumbnails)==null?void 0:f.length)!=null?n:0)>1&&!D};
_.P.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.computePaginatorAlignment=function(V){return(V==null?void 0:V.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.P.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.P.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.P.isNarrower=function(V){return(V!=null?V:0)<AJ.NARROW_VERSION_SIZE};
an.prototype.activeChanged=an.prototype.activeChanged;an.prototype.onVideoNotPlaying=an.prototype.onVideoNotPlaying;an.prototype.onVideoThumbnailError=an.prototype.onVideoThumbnailError;an.prototype.onVideoThumbnailEnded=an.prototype.onVideoThumbnailEnded;an.prototype.onDataChanged=an.prototype.onDataChanged;_.S([_.u(_.zn),_.p("design:type",Object)],an.prototype,"ytdGridStateAwareBehavior",void 0);
_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],an.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],an.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],an.prototype,"currentItem",void 0);
_.S([_.q(),_.p("design:type",Number)],an.prototype,"currentItemIndex",void 0);_.S([_.q(),_.p("design:type",Number)],an.prototype,"rotationTimeout",void 0);_.S([_.q(),_.p("design:type",Number)],an.prototype,"loopCount",void 0);_.S([_.q({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.p("design:type",String)],an.prototype,"paginatorAlignment",void 0);_.S([_.q(),_.p("design:type",Number)],an.prototype,"jobId",void 0);
_.S([_.q(),_.p("design:type",Number)],an.prototype,"updateSizeJobId",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],an.prototype,"isCarouselInFeed",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],an.prototype,"narrower",void 0);_.S([_.q({computed:"computeDotMenuVisible(data, narrower)"}),_.p("design:type",Object)],an.prototype,"dotMenuVisible",void 0);
_.S([_.q({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.p("design:type",Object)],an.prototype,"paginationThumbnailsVisible",void 0);_.S([_.q({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.p("design:type",String)],an.prototype,"layoutType",void 0);_.S([_.q({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],an.prototype,"autorotateActive",void 0);_.S([_.q(),_.p("design:type",Object)],an.prototype,"active",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],an.prototype,"disableGridStateAware",void 0);_.S([_.Zv("#overlay"),_.p("design:type",HTMLElement)],an.prototype,"overlay",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],an.prototype,"onDataChanged",null);
_.S([_.bU("yt-video-thumbnail-ended"),_.bU("yt-default-promo-panel-renderer-rotate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],an.prototype,"onVideoThumbnailEnded",null);_.S([_.bU("yt-video-thumbnail-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],an.prototype,"onVideoThumbnailError",null);
_.S([_.bU("yt-video-thumbnail-not-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],an.prototype,"onVideoNotPlaying",null);_.S([_.eY("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],an.prototype,"activeChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],an);
_.Y(an,"ytd-carousel-item-renderer",function(){if(b0X!==void 0)return b0X;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return b0X=V},{mode:2});var lff;var GZX;var eZw;var coB;var YM=function(){var V=_.E.apply(this,arguments)||this;V.originalQuery=null;V.originalEndpoint=null;return V};
_.v(YM,_.E);YM.prototype.computeShowOriginalQueryWithoutEndpoint_=function(V,D){return!(!V||D)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],YM.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YM.prototype,"correctedText",void 0);_.S([_.q(),_.p("design:type",Object)],YM.prototype,"correctedQuery",void 0);_.S([_.q(),_.p("design:type",Object)],YM.prototype,"correctedEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],YM.prototype,"originalText",void 0);_.S([_.q(),_.p("design:type",Object)],YM.prototype,"originalQuery",void 0);
_.S([_.q(),_.p("design:type",Object)],YM.prototype,"originalEndpoint",void 0);_.S([_.q({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.p("design:type",Boolean)],YM.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.S([_.zy({is:"yt-search-query-correction",disableElementRegistration:!0})],YM);
_.Y(YM,"yt-search-query-correction",function(){if(coB===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;eZw===void 0&&(eZw=document.createElement("template"));var n=eZw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);coB=V}V=coB;return V},{mode:2});_.zk("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var $M=function(){return _.E.apply(this,arguments)||this};
_.v($M,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$M.prototype,"data",void 0);_.S([_.zy({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],$M);
_.Y($M,"yt-did-you-mean-renderer",function(){if(GZX===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;lff===void 0&&(lff=document.createElement("template"));var n=lff;f.call(D,n.content.cloneNode(!0),V.content.firstChild);GZX=V}V=GZX;return V},{mode:2});var FBW;var gYB;_.zk("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ip=function(){return _.E.apply(this,arguments)||this};
_.v(ip,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ip.prototype,"data",void 0);_.S([_.zy({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ip);
_.Y(ip,"yt-including-results-for-renderer",function(){if(gYB===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;FBW===void 0&&(FBW=document.createElement("template"));var n=FBW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);gYB=V}V=gYB;return V},{mode:2});var vY0;var kZ0;_.zk("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var SI=function(){return _.E.apply(this,arguments)||this};
_.v(SI,_.E);SI.prototype.computeExtraClasses_=function(V,D){var f="";V&&(f+=" "+V.toLowerCase().replace(/_/g,"-"));D&&(f+=" "+D.toLowerCase().replace(/_/g,"-"));return f};
SI.prototype.computeUrlImg_=function(){var V=this.data;V.image&&(_.Pt(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.nT(V.image.thumbnails,Number.MAX_VALUE)+")")};
SI.prototype.computeUrlImg_=SI.prototype.computeUrlImg_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SI.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SI.prototype,"computeUrlImg_",null);_.S([_.zy({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],SI);
_.Y(SI,"yt-music-pass-feature-info-renderer",function(){if(kZ0===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;vY0===void 0&&(vY0=document.createElement("template"));var n=vY0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);kZ0=V}V=kZ0;return V},{mode:2});var srf;var Bnf;_.zk("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var We=function(){return _.E.apply(this,arguments)||this};
_.v(We,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],We.prototype,"data",void 0);_.S([_.zy({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],We);
_.Y(We,"yt-no-results-found-showing-results-for-renderer",function(){if(Bnf===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;srf===void 0&&(srf=document.createElement("template"));var n=srf;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Bnf=V}V=Bnf;return V},{mode:2});var dgc;var us3;_.zk("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var pD=function(){return _.E.apply(this,arguments)||this};
_.v(pD,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pD.prototype,"data",void 0);_.S([_.zy({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],pD);
_.Y(pD,"yt-results-without-quotes-renderer",function(){if(us3===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;dgc===void 0&&(dgc=document.createElement("template"));var n=dgc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);us3=V}V=us3;return V},{mode:2});var NnZ;var mgV;_.zk("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var LD=function(){return _.E.apply(this,arguments)||this};
_.v(LD,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LD.prototype,"data",void 0);_.S([_.zy({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],LD);
_.Y(LD,"yt-search-no-results-renderer",function(){if(mgV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;NnZ===void 0&&(NnZ=document.createElement("template"));var n=NnZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mgV=V}V=mgV;return V},{mode:2});var zZ0;var RZV;_.zk("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var In=function(){return _.E.apply(this,arguments)||this};
_.v(In,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],In.prototype,"data",void 0);_.S([_.zy({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],In);
_.Y(In,"yt-showing-results-for-renderer",function(){if(RZV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;zZ0===void 0&&(zZ0=document.createElement("template"));var n=zZ0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);RZV=V}V=RZV;return V},{mode:2});var CAJ;var q3B;var Xxw;var EYR;var OL=function(){var V=_.E.apply(this,arguments)||this;V.answerExpanded=!1;return V};
_.v(OL,_.E);OL.prototype.toggleAnswer_=function(V){var D=_.x7(V);D&&D.classList.contains("yt-simple-endpoint")||(V.preventDefault(),V.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
OL.prototype.toggleAnswer_=OL.prototype.toggleAnswer_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OL.prototype,"answerExpanded",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OL.prototype,"toggleAnswer_",null);
_.S([_.zy({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],OL);
_.Y(OL,"yt-generic-faq-question-renderer",function(){if(EYR===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Xxw===void 0&&(Xxw=document.createElement("template"));var n=Xxw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);EYR=V}V=EYR;return V},{mode:2});_.zk("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var xM=function(){return _.E.apply(this,arguments)||this};
_.v(xM,_.E);xM.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xM.prototype,"data",void 0);_.S([_.zy({is:"yt-faq-section-renderer",disableElementRegistration:!0})],xM);
_.Y(xM,"yt-faq-section-renderer",function(){if(q3B===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;CAJ===void 0&&(CAJ=document.createElement("template"));var n=CAJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);q3B=V}V=q3B;return V},{mode:2});var Aow;var afw;_.zk("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Mp=function(){return _.E.apply(this,arguments)||this};
_.v(Mp,_.E);
Mp.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mp.prototype,"data",void 0);_.S([_.zy({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Mp);
_.Y(Mp,"yt-offer-item-expanded-renderer",function(){if(afw===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Aow===void 0&&(Aow=document.createElement("template"));var n=Aow;f.call(D,n.content.cloneNode(!0),V.content.firstChild);afw=V}V=afw;return V},{mode:2});var Y3q;var $gq;_.zk("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var hJ=function(){return _.E.apply(this,arguments)||this};
_.v(hJ,_.E);
hJ.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"}}}}};
hJ.prototype.computeFullWidthMode=function(V){return!(!V||!V.fullWidthMode)};
hJ.prototype.computeBorderlessMode=function(V){return!(!V||!V.borderlessMode)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.p("design:type",Boolean)],hJ.prototype,"fullWidthMode",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.p("design:type",Boolean)],hJ.prototype,"borderlessMode",void 0);_.S([_.zy({is:"yt-offer-item-renderer",disableElementRegistration:!0})],hJ);
_.Y(hJ,"yt-offer-item-renderer",function(){if($gq===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Y3q===void 0&&(Y3q=document.createElement("template"));var n=Y3q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);$gq=V}V=$gq;return V},{mode:2});var i0J;var S3R;_.zk("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var UL=function(){return _.E.apply(this,arguments)||this};
_.v(UL,_.E);UL.prototype.computeAriaLevel_=function(V){return this.getLevelID_(V)};
UL.prototype.getLevelID_=function(V){return(V=V.match(/[0-9]+$/))&&V.length==1?V[0]:"1"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UL.prototype,"data",void 0);_.S([_.q({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.p("design:type",String)],UL.prototype,"ariaLevel",void 0);_.S([_.q({value:"heading",reflectToAttribute:!0}),_.p("design:type",String)],UL.prototype,"role",void 0);
_.S([_.q({value:-1,reflectToAttribute:!0}),_.p("design:type",Number)],UL.prototype,"tabindex",void 0);_.S([_.zy({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],UL);
_.Y(UL,"yt-subscription-product-header-renderer",function(){if(S3R===void 0){var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;i0J===void 0&&(i0J=document.createElement("template"));var n=i0J;f.call(D,n.content.cloneNode(!0),V.content.firstChild);S3R=V}V=S3R;return V},{mode:2});var WB0;var pxo;_.zk("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Vo=function(){return _.E.apply(this,arguments)||this};
_.v(Vo,_.E);Vo.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:_.Rt("menuRenderer"),events:!0}}};
Vo.prototype.onStampFinished_=function(){_.Pt(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Vo.prototype.onStampFinished_=Vo.prototype.onStampFinished_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vo.prototype,"data",void 0);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vo.prototype,"onStampFinished_",null);
_.S([_.zy({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Vo);
_.Y(Vo,"yt-subscription-product-renderer",function(){if(pxo===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;WB0===void 0&&(WB0=document.createElement("template"));var n=WB0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);pxo=V}V=pxo;return V},{mode:2});var LBW;var IfW;_.zk("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Dc=function(){return _.E.apply(this,arguments)||this};
_.v(Dc,_.E);Dc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Dc.prototype.imageScrimColorValuesChanged_=function(){var V,D=(V=this.data)==null?void 0:V.imageScrimColorValues;_.Pt(this.hostElement).querySelector("#scrim").style.backgroundColor=D?_.aB(D[0]):"transparent"};
Dc.prototype.imageScrimColorValuesChanged_=Dc.prototype.imageScrimColorValuesChanged_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Dc.prototype,"data",void 0);
_.S([_.KI("data.imageScrimColorValues"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dc.prototype,"imageScrimColorValuesChanged_",null);_.S([_.zy({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Dc);
_.Y(Dc,"yt-subscription-product-upsell-offer-renderer",function(){if(IfW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;LBW===void 0&&(LBW=document.createElement("template"));var n=LBW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);IfW=V}V=IfW;return V},{mode:2});var O0Z;var xgB;var M7w;var hZR;var Ugf;var V0W;var f7=function(){return _.E.apply(this,arguments)||this};
_.v(f7,_.E);f7.prototype.onYtServiceRequestError_=function(V){_.Uw(this.hostElement,V.detail.error.message)};
f7.prototype.onYtServiceRequestError_=f7.prototype.onYtServiceRequestError_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],f7.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],f7.prototype,"collapsible",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],f7.prototype,"isManageRed",void 0);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],f7.prototype,"onYtServiceRequestError_",null);_.S([_.zy({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],f7);
_.Y(f7,"yt-single-ypc-offer-renderer",function(){if(V0W===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Ugf===void 0&&(Ugf=document.createElement("template"));var n=Ugf;f.call(D,n.content.cloneNode(!0),V.content.firstChild);V0W=V}V=V0W;return V},{mode:2});var n7=function(){return _.E.apply(this,arguments)||this};
_.v(n7,_.E);n7.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],n7.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],n7.prototype,"isManageRed",void 0);_.S([_.zy({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],n7);
_.Y(n7,"yt-single-ypc-offer-list-renderer",function(){if(hZR===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;M7w===void 0&&(M7w=document.createElement("template"));var n=M7w;f.call(D,n.content.cloneNode(!0),V.content.firstChild);hZR=V}V=hZR;return V},{mode:2});var Dnv;var f20;_.zk("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var tX=function(){return _.E.apply(this,arguments)||this};
_.v(tX,_.E);tX.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tX.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],tX.prototype,"isManageRed",void 0);_.S([_.zy({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],tX);
_.Y(tX,"yt-ypc-offers-list-renderer",function(){if(f20===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Dnv===void 0&&(Dnv=document.createElement("template"));var n=Dnv;f.call(D,n.content.cloneNode(!0),V.content.firstChild);f20=V}V=f20;return V},{mode:2});_.zk("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var PU=function(){return _.E.apply(this,arguments)||this};
_.v(PU,_.E);
PU.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],PU.prototype,"data",void 0);_.S([_.zy({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],PU);
_.Y(PU,"yt-unlimited-manage-subscription-page-renderer",function(){if(xgB===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;O0Z===void 0&&(O0Z=document.createElement("template"));var n=O0Z;f.call(D,n.content.cloneNode(!0),V.content.firstChild);xgB=V}V=xgB;return V},{mode:2});var ngV;var t03;var oh=function(){return _.E.apply(this,arguments)||this};
_.v(oh,_.E);_.P=oh.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.P.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.onKeypress_=function(V){V.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.P.handleHeaderTap_=function(V){V.preventDefault();V.stopPropagation();this.expandOffers_()};
_.P.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.P.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
oh.prototype.dataChanged_=oh.prototype.dataChanged_;_.S([_.u(_.ja),_.p("design:type",Object)],oh.prototype,"ironA11yKeysBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],oh.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],oh.prototype,"offersVisible_",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oh.prototype,"dataChanged_",null);_.S([_.zy({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],oh);
_.Y(oh,"yt-collapsible-ypc-offer-renderer",function(){if(t03===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;ngV===void 0&&(ngV=document.createElement("template"));var n=ngV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);t03=V}V=t03;return V},{mode:2});var Puq;var ogf;_.zk("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var JX=function(){return _.E.apply(this,arguments)||this};
_.v(JX,_.E);_.P=JX.prototype;_.P.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.P.dataChanged_=function(){if(this.data.backgroundImage){var V=_.nT(this.data.backgroundImage.thumbnails,screen.width),D=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=D?"linear-gradient(180deg, "+D+"), url("+V+")":"url("+V+")";this.data.gtmId&&_.km(this.data.gtmId,_.XB("GL",""))}};
_.P.onYtServiceRequestError_=function(V){_.Uw(this.hostElement,V.detail.error.message)};
_.P.getScrimLayerColorStops_=function(){var V,D,f=(V=this.data.unlimitedHeaderV2Data)==null?void 0:(D=V.unlimitedHeaderV2Data)==null?void 0:D.scrimLayerColors;if(!f)return null;var n=100/f.length;return f.map(function(t,J){J*=n;return _.aB(t)+" "+J+"%"}).join(",")};
_.P.computeLogoWithPadding=function(V){var D,f,n;return(V=(D=V.unlimitedLogoImage)==null?void 0:(f=D.thumbnails)==null?void 0:(n=f[0])==null?void 0:n.height)&&V%31===0?!0:!1};
JX.prototype.onYtServiceRequestError_=JX.prototype.onYtServiceRequestError_;JX.prototype.dataChanged_=JX.prototype.dataChanged_;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.S([_.q({computed:"computeLogoWithPadding(data)"}),_.p("design:type",Boolean)],JX.prototype,"logoWithPadding",void 0);
_.S([_.q(),_.p("design:type",Object)],JX.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JX.prototype,"dataChanged_",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],JX.prototype,"onYtServiceRequestError_",null);_.S([_.zy({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],JX);
_.Y(JX,"yt-unlimited-page-header-renderer",function(){if(ogf===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Puq===void 0&&(Puq=document.createElement("template"));var n=Puq;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ogf=V}V=ogf;return V},{mode:2});var Jyo;var ryq;_.zk("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ry=function(){return _.E.apply(this,arguments)||this};
_.v(ry,_.E);ry.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ry.prototype,"data",void 0);_.S([_.zy({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ry);
_.Y(ry,"yt-unlimited-user-notification-renderer",function(){if(ryq===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Jyo===void 0&&(Jyo=document.createElement("template"));var n=Jyo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ryq=V}V=ryq;return V},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.JBw=_.MA(function(V){var D=_.Or(V,{numberOfChips:5}).numberOfChips;return _.K("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.K(_.FB,{each:function(){return Array(D==null?void 0:D())}},function(){return _.K("div",{class:"ytGhostChipShelfChip"})}))},"vg");_.rBR=_.MA(function(V){var D=_.HW(),f=_.DY().resolve(_.I5);_.B9(function(){requestAnimationFrame(function(){var t;(t=D.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var J;(J=V.onLottieLoaded)==null||J.call(V)})})});
var n={};return _.K("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var t;return((t=V.data)==null?void 0:t.call(V).targetId)||""}},_.K(_.ft,{className:_.KT((n.ytChatLoadingViewModelRtl=f==="rtl",n)),
animationName:"YOUCHAT_LOADER",data:function(){var t;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((t=V.data)==null?void 0:t.call(V).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:D}))},"wg");
}catch(e){_._DumpException(e)}
try{
var keX,s8R,Bwq,drv,u3X,Nw0,mr0,z5f,CB3,iiX,nS,$rv,EAq,YBo,aNB,A4X,Xlc,SBf,Wkw,plo,Lkq,ty,IN3,OiX,h50,Jy,xrw,rY,PZ,HZ,MCJ,oE,Urc,VB0,DNR,fCc,n4w,tBR,o43,wqX,bJ0,KH3,ylZ,ZJo,jVR,GsW,cl0,g40,v4X,kso,sVB,dNV,u1R,NXV,mNR,zOc,ROR,CWZ,Xqf,YRc,aC0,E4J,$N0,AlB,iJq,LHR,pqw,SRw,WH3,Ql,ICV,OJf,MBc,nKo,tQZ,PbW,oKo,JNX,rNX,HGw,wJX,QP3,TcZ,KKw,yNW,ZGB,VQB;
_.D2=function(V){var D=new _.cI("Error accessing DB");return _.Czn().then(function(f){return new Promise(function(n,t){try{var J=f.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(V);J.onsuccess=function(){var H=J.result;n(H?H.value:null)};
J.onerror=function(){D.params={key:V,source:"onerror"};t(D)}}catch(H){D.params={key:V,
thrownError:String(H)},t(D)}})},function(){return null})};
_.vA0=function(V,D){var f=_.Z43(D);f!=="javascript:"&&f!=="data:"&&V.setAttribute("href",D)};
keX=function(V,D){return _.wg(V.entities,"flowStateEntity",D)};
s8R=function(V,D){return _.wg(V.entities,"contextNoteUserRatingEntityPayload",D)};
Bwq=function(V){return _.Ac(V,function(D){return D.languageCode==="en"})};
drv=function(V){var D=fS;if(_.X6v(V))V.setOption("captions","stickyLoading",{}),V.setOption("captions","track",{});else{var f=_.Ac(_.EQ9(V),function(n){return n.displayName===D});
V.setOption("captions","track",f)}};
u3X=function(V){if(!V)return 0;var D=V.getPresentingPlayerType(),f=V.getVideoData();return f&&f.isLive?(V=V.getProgressState(D),V.seekableEnd-V.seekableStart):V.getDuration(D)};
Nw0=function(V,D){for(var f=_.r(Object.keys(V)),n=f.next();!n.done;n=f.next())if(n=n.value,V[n]!==D[n])return!1;return!0};
mr0=function(){return document.getElementById("player-control-overlay")};
z5f=function(V){V!==-1&&!_.c("player_controls_log_creation_killswitch")&&mr0()&&(_.zm("pcu_cs",V),_.zm("pcu_ce"))};
CB3=function(V){return _.K("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(V.subscribeButton?[V.subscribeButton,V.channelAccess]:[V.channelAccess]).map(function(D){return _.K("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.K("div",{class:"yt-profile-identity-info-view-model-wiz--button"},R50(D)))}))};
_.qBZ=function(V){var D=V.data;V=V.hideDivider;var f={};f=(f["yt-profile-identity-info-view-model-wiz__frame"]=!0,f["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!D.channelBanner,f);f={class:_.y6(f)};var n,t={imageBannerViewModel:{image:(n=D.channelBanner)==null?void 0:n.image,style:"IMAGE_BANNER_STYLE_INSET"}};n=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},D.channelBanner?_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
R50(t,{imageBannerViewModel:{isPositionRelative:!0}})):null);t=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},R50(D.avatar));var J;var H=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},D.channelDisplayName),D.verifiedOrOacBadge?_.K("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.K(_.xt,{data:{thumbnails:[{url:(J=D.verifiedOrOacBadge)==null?void 0:J.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);J=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},H,R50(D.threeDotMenu));H=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.K("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.K("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},D.channelHandle),D.channelPronouns&&D.channelHandle?_.K("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.K("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},D.channelPronouns)),_.K("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.K("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},D.leftOfBulletInfo),D.leftOfBulletInfo&&D.rightOfBulletInfo?_.K("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.K("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},D.rightOfBulletInfo)));J=_.K("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},J,H);return _.K("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.K("div",f,n,_.K("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},t,J),D.channelDescription?_.K("div",{class:V?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
" ",D.channelDescription," "):null,CB3(D),V?null:_.K("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
iiX=function(V,D){var f=_.IU(V,{}),n=Xlc("top",D),t=Xlc("bottom",D),J=Xlc("left",D),H=Xlc("right",D);return _.el({top:function(){return nS(f().position,n)},
bottom:function(){return nS(f().position,t)},
left:function(){return nS(f().position,J)},
right:function(){return nS(f().position,H)},
position:function(){return nS(f().positionType,EAq)},
height:function(){return nS(f().height,ty)},
width:function(){return nS(f().width,ty)},
"min-width":function(){return nS(f().minWidth,ty)},
"min-height":function(){return nS(f().minHeight,ty)},
"max-width":function(){return nS(f().maxWidth,ty)},
"max-height":function(){return nS(f().maxHeight,ty)},
"aspect-ratio":function(){return nS(f().aspectRatio,String)},
"margin-top":function(){return nS(f().margin,n)},
"margin-bottom":function(){return nS(f().margin,t)},
"margin-left":function(){return nS(f().margin,J)},
"margin-right":function(){return nS(f().margin,H)},
"padding-top":function(){return nS(f().padding,n)},
"padding-bottom":function(){return nS(f().padding,t)},
"padding-left":function(){return nS(f().padding,J)},
"padding-right":function(){return nS(f().padding,H)},
"flex-direction":function(){return nS(f().flexDirection,A4X)},
"justify-content":function(){return nS(f().justifyContent,aNB)},
"align-items":function(){return nS(f().alignItems,YBo)},
"flex-grow":function(){return nS(f().flexGrow,String)},
"flex-shrink":function(){return nS(f().flexShrink,String)},
"flex-basis":function(){return nS(f().flexBasis,ty)},
"align-self":function(){return nS(f().alignSelf,YBo)},
"flex-wrap":function(){return nS(f().flexWrap,$rv)},
"align-content":function(){return nS(f().alignContent,YBo)}})};
nS=function(V,D){return V!==void 0?D(V):void 0};
$rv=function(V){switch(V){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
EAq=function(V){switch(V){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
YBo=function(V){switch(V){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"}};
aNB=function(V){switch(V){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"}};
A4X=function(V){switch(V){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"}};
Xlc=function(V,D){var f=D==="rtl";switch(V){case "top":var n=SBf;break;case "bottom":n=Wkw;break;case "left":n=plo;break;default:n=Lkq}return function(t){return nS(n(t,f),ty)}};
SBf=function(V){var D=V.top;var f=V.vertical;V=V.all;var n;return(n=D!=null?D:f)!=null?n:V};
Wkw=function(V){var D=V.bottom;var f=V.vertical;V=V.all;var n;return(n=D!=null?D:f)!=null?n:V};
plo=function(V,D){var f=V.left;var n=V.end;var t=V.start;var J=V.horizontal;V=V.all;var H,Q;return(Q=(H=f!=null?f:D?n:t)!=null?H:J)!=null?Q:V};
Lkq=function(V,D){var f=V.right;var n=V.end;var t=V.start;var J=V.horizontal;V=V.all;var H,Q;return(Q=(H=f!=null?f:D?t:n)!=null?H:J)!=null?Q:V};
ty=function(V){var D=V.value;switch(V.unit){case "YPC_DIMENSION_UNIT_POINT":return D+"px";case "YPC_DIMENSION_UNIT_FRACTION":return D+"%";default:return""+D}};
IN3=function(V){switch(V){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"}};
OiX=function(V){var D=V!=null?V:{};V=D.fontRole;var f=D.fontSize;D=D.fontWeight;if(V!==null&&f!==null)switch(V){case "YPC_FONT_ROLE_DISPLAY":switch(f){case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(f){case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return D===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(f){case "YPC_FONT_SIZE_XL":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
h50=function(V,D,f){function n(Z){return Object.values(Z).map(function(l){var G=l.productId;l=l.pricingOptionIndex;return PZ(t(G).pricingOptions,l).pricingOptionId})}
function t(Z){return Q().get(Z)}
function J(Z){Z=n(Z);f(Z)}
var H=oE([V,D],function(Z,l){var G=Z==null?void 0:Z.selectedPricingOptions;Z={};var F=!0;if(G&&l.length)for(var k=_.r(l),d=k.next();!d.done;d=k.next()){d=d.value;var z=xrw(d.pricingOptions,function(O){a:{O=O.pricingOptionId;for(var W=_.r(G),I=W.next();!I.done;I=W.next())if(I.value===O){O=!0;break a}O=!1}return O});
if(z>=0){F=!1;var C=PZ(d.pricingOptions,z),A=void 0;Z[d.groupId]={productId:d.productId,pricingOptionIndex:z,pricingGroupAttributes:(A=C)==null?void 0:A.pricingGroupAttributes}}}F&&l.length&&(F=PZ(l[0].pricingOptions,0),Z[l[0].groupId]={productId:l[0].productId,pricingOptionIndex:0,pricingGroupAttributes:F==null?void 0:F.pricingGroupAttributes});return Z}),Q=oE([D],function(Z){return new Map(Z.map(function(l){return[l.productId,
l]}))}),T=oE([D],function(Z){var l=new Map;
Z=_.r(Z);for(var G=Z.next();!G.done;G=Z.next()){var F=G.value;G=F.groupId;var k=F.productId;F=_.r(Jy(F.pricingOptions));for(var d=F.next();!d.done;d=F.next()){var z=_.r(d.value);d=z.next().value;z=z.next().value;l.set(z.pricingOptionId,{groupId:G,productId:k,index:d,pricingOption:z,pricingGroupAttributes:z.pricingGroupAttributes})}}return l}),y=oE([D],function(Z){var l=new Map;
Z=_.r(Z);for(var G=Z.next();!G.done;G=Z.next()){var F=G.value;G=F.groupId;var k=F.productId,d=void 0;F=_.r(Jy((d=F.pricingGroups)!=null?d:[]));for(d=F.next();!d.done;d=F.next()){var z=_.r(d.value);d=z.next().value;z=z.next().value;l.set(z.pricingGroupId,{groupId:G,productId:k,index:d,pricingGroup:z,pricingGroupAttributes:z.pricingGroupAttributes})}}return l});
return{getProductById:t,isProductSelected:function(Z){var l=t(Z);if(!l)return!1;var G;return((G=H()[l.groupId])==null?void 0:G.productId)===Z},
getSelectedPricingOptions:function(){return Object.values(H()).map(function(Z){var l=Z.productId;Z=Z.pricingOptionIndex;return PZ(t(l).pricingOptions,Z)})},
getSelectedPricingGroupAttributesByGroupId:function(Z){var l;return(Z=(l=H()[Z])==null?void 0:l.pricingGroupAttributes)?Array.from(Z):void 0},
getSelectedProductByGroupId:function(Z){var l;return(Z=(l=H()[Z])==null?void 0:l.productId)?t(Z):void 0},
onProductSelected:function(Z){var l=t(Z);if(l){var G=H(),F;if(((F=G[l.groupId])==null?void 0:F.productId)!==Z){var k,d;F=(d=(k=G[l.groupId])==null?void 0:k.pricingOptionIndex)!=null?d:0;rY(l.pricingOptions)<=F&&(F=0);k=PZ(l.pricingOptions,F);var z;d={};J(Object.assign({},G,(d[l.groupId]={productId:Z,pricingOptionIndex:F,pricingGroupAttributes:(z=k==null?void 0:k.pricingGroupAttributes)!=null?z:[]},d)))}}},
onPricingOptionSelected:function(Z){var l=T().get(Z);if(l){Z=l.groupId;var G=l.productId;l=l.index;var F=H(),k,d;if(((k=F[Z])==null?void 0:k.productId)!==G||((d=F[Z])==null?void 0:d.pricingOptionIndex)!==l){var z,C;k={};J(Object.assign({},F,(k[Z]={productId:G,pricingOptionIndex:l,pricingGroupAttributes:(C=(z=F[Z])==null?void 0:z.pricingGroupAttributes)!=null?C:[]},k)))}}},
onPricingGroupSelected:function(Z){var l=y().get(Z);if(l){Z=l.groupId;var G=l.productId,F=l.pricingGroup.pricingGroupAttributes,k=t(G);if(k){l=H();var d=l[Z].pricingGroupAttributes,z;if(((z=l[Z])==null?void 0:z.productId)!==G||!HZ(MCJ(d,rY(F)),F)){z=Array.from(F);for(F=rY(F);F<rY(d);F++){var C="",A=!1,O=Array.from(z);O.push(PZ(d,F));for(var W=_.r(k.pricingGroups),I=W.next();!I.done;I=W.next())if(I=I.value,HZ(I.pricingGroupAttributes,O)){z.push(PZ(d,F));A=!0;break}else C===""&&rY(I.pricingGroupAttributes)===
O.length&&HZ(MCJ(I.pricingGroupAttributes,z.length),z)&&(C=PZ(I.pricingGroupAttributes,F));A||z.push(C)}C=l[Z].pricingOptionIndex;F=[];A=new Map;O=0;k=_.r(Jy(k.pricingOptions));for(W=k.next();!W.done;W=k.next())I=_.r(W.value),W=I.next().value,I=I.next().value,HZ(I.pricingGroupAttributes,z)&&F.push(W),HZ(I.pricingGroupAttributes,d)&&A.set(W,O++);F.length===0?d=0:(d=A.get(C),d=d!==void 0&&d<F.length?F[d]:F[0]);k={};J(Object.assign({},l,(k[Z]={productId:G,pricingOptionIndex:d,pricingGroupAttributes:z},
k)))}}}},
onClearGroupSelected:function(Z){var l=H();l[Z]&&(l=Object.fromEntries(Object.entries(l).filter(function(G){return _.r(G).next().value!==Z})),J(l))}}};
Jy=function(V){return function f(){var n,t,J,H,Q;return _.Ujd(f,function(T){switch(T.nextAddress){case 1:_.TO(T,2),n=0,t=_.r(V),J=t.next();case 4:if(J.done){T.jumpTo(2);break}H=J.value;Q=_.V8X;return _.b(T,[n++,H],7);case 7:Q(T.yieldResult);J=t.next();T.jumpTo(4);break;case 2:_.Qz(T),_.bK(T,0)}})}()};
xrw=function(V,D){V=_.r(Jy(V));for(var f=V.next();!f.done;f=V.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;if(D(n))return f}return-1};
rY=function(V){var D=0;for(V=V[Symbol.iterator]();!V.next().done;)++D;return D};
PZ=function(V,D){V=_.r(Jy(V));for(var f=V.next();!f.done;f=V.next()){var n=_.r(f.value);f=n.next().value;n=n.next().value;if(f===D)return n}};
HZ=function(V,D){if(!V&&!D)return!0;if(!V||!D)return!1;V=Array.from(V);D=Array.from(D);if(V.length!==D.length)return!1;for(var f=0;f<V.length;f++)if(V[f]!==D[f])return!1;return!0};
MCJ=function(V,D){D=D===void 0?Infinity:D;var f=[];V=_.r(Jy(V));for(var n=V.next();!n.done;n=V.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;if(n>=D)break;n>=0&&f.push(t)}return f};
oE=function(V,D){var f,n;return function(){for(var t=V.map(function(H){return H()}),J=0;J<t.length;J++)if(!f||t[J]!==f[J]){f=t;
n=D.apply(null,_.sz(t));break}return n}};
Urc=function(V,D,f){var n=[];V=_.r(V);for(var t=V.next();!t.done;t=V.next()){t=t.value;var J=void 0;((J=D)==null?0:J.length)&&!HZ(t.pricingGroupAttributes,D)||n.push({pricingOption:t,isSelected:f.includes(t.pricingOptionId)})}return n};
VB0=function(V,D){return _.wg(V.entities,"pdpStateEntity",D)};
DNR=function(V){var D,f;return!!(V.productId&&V.groupId&&((D=V.pricingOptions)==null?0:D.length)&&V.pricingOptions.every(function(n){return n.pricingOptionId})&&((f=V.pricingGroups)==null||!f.length||Array.isArray(V.pricingGroups)&&V.pricingGroups.every(function(n){return n.pricingGroupId&&n.pricingGroupAttributes&&n.pricingGroupAttributes.length>0})))};
fCc=function(V,D,f){return h50(V,oE([D],function(n){return n.filter(DNR)}),f)};
n4w=function(V,D){return D.length===0?[V]:[V.slice(0,D[0]),V.slice(D[0])].filter(function(f){return f.length>0})};
tBR=function(V){switch(V){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""}};
o43=function(V,D,f,n){n=Object.assign({},n);_.m7(n,PWR,{selectedOptionId:V,primaryButtonOverride:f});_.pI().dispatch(_.y1("flowStateEntity",D,n))};
_.HJB=function(){if(!Jlq){var V=_.r(_.HJ(new Map,void 0,"UJImUe"));Jlq=V.next().value;rlf=V.next().value}return Jlq};
wqX=function(V){if(V)return _.HJB()().get(V)};
_.QVV=function(V,D){if(V&&D){var f=_.HJB();f().set(V,D);V=f();rlf(new Map(V))}};
_.TXv=function(V){return{onSubmit:function(){var D;(D=wqX(V()))==null||D.onSubmit()},
isValid:function(){var D=wqX(V());return D?D.isValid():!0},
isSubmitting:function(){var D,f;return!!((D=wqX(V()))==null?0:(f=D.isSubmitting)==null?0:f.call(D))}}};
bJ0=function(V,D){return _.wg(V.entities,"contextNoteFeedEntityPayload",D)};
KH3=function(V,D){switch(V){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return D==null?void 0:D.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return D==null?void 0:D.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return D==null?void 0:D.ratingNotHelpfulText}};
ylZ=function(V,D){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:V.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:V.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:V.deleteDialogTitle}]},dialogMessages:[{runs:[{text:V.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.deleteActionText}]},command:{performCommentActionEndpoint:{action:D}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
ZJo=function(V){V.style.height="auto";V.style.height=V.scrollHeight+"px"};
jVR=function(V){return[V.syncStep,V.asyncStep].filter(function(D){return D!==void 0})};
GsW=function(V){var D,f,n;if(V=(D=V.structuredContextNoteFormSchema)==null?void 0:(f=D.fieldSchemas)==null?void 0:(n=f.noteBody)==null?void 0:n.validationSchema)for(D=_.r(jVR(V)),f=D.next();!f.done;f=D.next()){f=f.value.rules;if(!f)break;f=_.r(f);for(f=f.next();!f.done;f=f.next())return _.g(f.value,_.lCW)}};
cl0=function(V){if(V){V=_.r(jVR(V));for(var D=V.next();!D.done;D=V.next()){D=D.value.rules;if(!D)break;D=_.r(D);for(D=D.next();!D.done;D=D.next())return _.g(D.value,eOR)}}};
g40=function(V){if(V){V=_.r(jVR(V));for(var D=V.next();!D.done;D=V.next()){D=D.value.rules;if(!D)break;D=_.r(D);for(D=D.next();!D.done;D=D.next())return _.g(D.value,FHc)}}};
v4X=function(V){V=/^https?:\/\//.test(V)?V:"http://"+V;try{var D=_.Y4(V)}catch(f){return!1}if(D.toString()!==V)return!1;V=D.JSC$8122_domain_.split(".");return V.length>1&&V.every(function(f){return!!f})};
kso=function(V,D,f,n){var t;n=(t=n.structuredContextNoteData)==null?void 0:t.createCommentEndpoint;if(t=_.g(n,_.nBl))return t.commentText=_.pA(V),t.videoPositionMention=D,t.sources=f,n};
sVB=function(V){return V==null?void 0:V.stringValue};
dNV=function(V,D,f){V=V.map(function(n,t){return{listItemViewModel:{title:n.title,subtitle:n.subtitle,leadingImage:n.leadingImage,trailingImage:t===D?BXw:void 0,rendererContext:{commandContext:{onTap:n.onTap}}}}});
return Object.assign({},f&&{header:{panelHeaderViewModel:{title:f}}},{content:{listViewModel:{listItems:V}}})};
u1R=function(V,D){if(V&&D)switch(D){case "SELECTION_TYPE_BOOL":return V.boolValue;case "SELECTION_TYPE_INT":return V.intValue;case "SELECTION_TYPE_STRING":return V.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return V.privacyStatusValue}};
NXV=function(V){var D;V=(D=V.options)==null?void 0:D.findIndex(function(f){return f.isSelected});
return V===void 0?-1:V};
mNR=function(V,D,f){var n=function(){return V().label},t={},J=_.KT("ytDropdownViewModelLabel",(t.ytDropdownViewModelLabelError=D,t));
return _.K(_.e,{cond:function(){return V().label&&!(f()===-1&&V().label&&!V().placeholderText)},
then:function(){return _.K("div",{class:J},_.K(_.Ow,{text:n}))}})};
zOc=function(V,D){var f={};f=_.KT("ytDropdownViewModelTitle",(f.ytDropdownViewModelTitlePlaceholder=function(){return D()===-1},f));
return _.K("div",{class:f},_.K(_.Ow,{text:function(){var n=V();var t=D();if(t===-1)n=n.placeholderText?n.placeholderText:n.label;else{var J,H;n=(J=n.options)==null?void 0:(H=J[t])==null?void 0:H.title}return n}}))};
ROR=function(V,D){var f=function(){return V().hint};
return _.K(_.th,null,_.K(_.e,{cond:function(){return f()&&!D()},
then:function(){return _.K("div",{class:_.KT("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.K(_.Ow,{text:f,className:"ytDropdownViewModelSupportText"}))}}),_.K(_.e,{cond:D,
then:function(){return _.K("div",{id:"dropdown-view-model-error",role:"alert",class:_.KT("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.K(_.cj,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.K(_.Ow,{text:D,className:"ytDropdownViewModelSupportText"}))}}))};
CWZ=function(V,D){var f=_.DY().resolve(_.Jzl);_.Nl(function(){var n=V().id;n&&f!=null&&f.dropdownMap.set(n,D)})};
Xqf=function(V){V=_.g(V.scheduleButton,qRR);V=_.g(V==null?void 0:V.primaryButton,_.cW);V=_.g(V==null?void 0:V.onTap,_.q3);var D,f,n=((f=_.g(V,_.Tm))==null?void 0:f.commands)||[V];f=_.r(n);for(V=f.next();!V.done&&!(D=_.g(V.value,_.DQl));V=f.next());var t;D=(t=D)==null?void 0:t.createBroadcastRequest;if(!D)throw Error("Qj");return D};
YRc=function(V,D,f){f=f===void 0?{}:f;var n,t;return _.w(function(J){if(n=E4J(D))return J.return(n);(t=AlB(V,D,f))&&aC0(D,t);return J.return(t)})};
aC0=function(V,D){var f=$N0(V);f&&D.then(function(n){_.DY().resolve(_.fC).put(f,new _.nC({innertubeResponse:n}))})};
E4J=function(V){if(V=$N0(V)){var D=_.DY().resolve(_.fC);if(D.has(V))return D.get(V).then(function(f){return f==null?void 0:_.PV(f)})}return null};
$N0=function(V){var D=_.g(V.endpoint,_.pl);if(D!=null&&D.videoId)return D={videoId:D.videoId},_.c("web_imp_player_mute_params")&&(D.mutedAtStart=V.startPlaybackInMutedState),_.W8("inline_playback",D)};
AlB=function(V,D,f){V=_.ie(V,D.endpoint,iJq(D,f)).then(function(n){return n});
return Promise.resolve(V)};
iJq=function(V,D){D=_.c("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!V.startPlaybackInMutedState},D):Object.assign({},{vis:5,autonav:"1"},D);var f;D={contentPlaybackContext:_.ss(D,(f=_.g(V.endpoint.commandMetadata,_.he))==null?void 0:f.url,window.location.href)};_.c("web_imp_player_mute_params")&&(D.overrideMutedAtStart=!V.startPlaybackInMutedState);return D};
LHR=function(V,D){var f=window.MutationObserver;f&&(wY=new f(function(n,t){n=_.r(n);for(var J=n.next();!J.done;J=n.next()){J=J.value;var H;if(H=J.type==="childList"&&J.target)a:{H=V;J=SRw(J.target);H=SRw(H);for(var Q=null,T=0;T<J.length;T++)if(H.includes(J[T])){if(T===0){H=!1;break a}Q=J[T];break}Q?(J=WH3(J,Q),H=WH3(H,Q),H=J<H):H=!1}if(H){D();t.disconnect();break}}}),(f=pqw())&&wY.observe(f,{childList:!0,
subtree:!0}))};
pqw=function(){var V=document.getElementsByTagName("ytd-rich-grid-renderer");if(V.length>0)return V[0];V=document.getElementsByTagName("ytd-section-list-renderer");return V.length>0?V[0]:null};
SRw=function(V){for(var D=[];V;)D.push(V),V=V.parentElement;return D};
WH3=function(V,D){var f=Array.from(D.children);D=V.indexOf(D);return D>0?f.indexOf(V[D-1]):-1};
Ql=function(V,D,f){f=f===void 0?{}:f;return _.Zl(V,f,D)};
ICV=function(V){switch(V){case "MUSIC":return!0;default:return!1}};
OJf=function(V){return V==null?void 0:V.filter(function(D){return D.premiereTrailerBadgeRenderer})};
MBc=function(V){var D,f=V==null?void 0:(D=V.find(function(l){return l.thumbnailOverlayTimeStatusRenderer}))==null?void 0:D.thumbnailOverlayTimeStatusRenderer,n,t;
if((f==null?0:(n=f.icon)==null?0:n.iconType)&&ICV(f==null?void 0:(t=f.icon)==null?void 0:t.iconType)){var J;return{icon:f==null?void 0:(J=f.icon)==null?void 0:J.iconType}}var H,Q;var T=(V=(H=V==null?void 0:(T=V.find(function(l){return l.thumbnailBottomOverlayViewModel}))==null?void 0:T.thumbnailBottomOverlayViewModel)==null?void 0:(Q=H.badges)==null?void 0:Q.find(function(l){var G,F;
return((G=_.g(l,xNw))==null?void 0:(F=G.inlinePlaybackBadgeData)==null?void 0:F.replicateAsTimestamp)===!0}))?_.g(V,xNw):void 0;
if(T==null?0:T.icon){var y,Z;if((T=(y=_.lPY(T==null?void 0:T.icon))==null?void 0:(Z=y.clientResource)==null?void 0:Z.imageName)&&ICV(T))return{icon:T}}return{}};
nKo=function(V,D){var f=hOw,n=_.r(_.HJ(UNV(new VQB(function(){},f,D)),void 0,"PAnyd")),t=n.next().value,J=n.next().value,H=new VQB(function(Q){J(Q)},f,D);
_.BJ(function(){Promise.resolve().then(function(){var Q,T=(Q=V())!=null?Q:{};H.playerControlsData=T;_.c("player_controls_skip_double_signal_old")&&(H.lastSeenPlayerApi=_.RN(T.playerApi));_.c("player_controls_skip_double_signal_old")||(H.lastSeenPlayerApi=_.RN(T.playerApi));Dqq(H)});
_.dc(function(){fJW(H)})},"HikUP");
_.dc(function(){fJW(H)});
return function(){return t()}};
tQZ=function(V){return function(D){var f=V(),n={playerState:D};if(D===1){var t;(t=f.playerApi)==null||t.loadModule("captions")}if(D===0){var J;(J=f.playerApi)==null||J.unloadModule("captions")}(D!==-1||_.c("web_imp_controls_set_player_state_killswitch"))&&f.setState(n)}};
PbW=function(V){return function(D){V().setState({playbackRate:D})}};
oKo=function(V){return function(D){var f=V(),n=f.playerApi,t=n==null?void 0:n.getVideoData(),J=(t==null?void 0:t.isLive)||!1;t=t==null?void 0:t.video_id;J={videoDuration:u3X(n||void 0),isLive:J,videoId:t};J.videoId!==f.videoId&&(J=Object.assign({},_.dpY(n),J));if(D==null?0:D.playertype)J.playerType=D.playertype;if(n){J.captionsAvailable=_.E3(n);D=J;var H;t=(H=n.getStoryboardLevel(n.getNumberOfStoryboardLevels()-1))==null?void 0:H.intervalMs;D.storyboardInterval=t?t/1E3:void 0;J.captionsAvailable&&
(J.captionsEnabled=_.X6v(n))}J.volumeMuted=!(n==null||!n.isMuted());f.setState(J)}};
JNX=function(V){return function(D){var f=V(),n=f.playerApi;if(n){var t=n.getPresentingPlayerType();D={playedTime:D||0,percentLoaded:n.getVideoLoadedFraction(),playerType:t};f.playerState===0&&(D.playedTime=f.videoDuration);f.isLive&&(t=n.getProgressState(t),D.playedTime-=t.seekableStart,D.videoDuration=u3X(n));if(f.playerType===1)n=!1;else{var J;if((J=f.uxConfig)==null?0:J.showCuedOverlay){var H;n=!((H=f.playerApi)==null?0:H.getPlayerStateObject(f.playerType).isDomPaused)}else n=!0}n&&delete D.playedTime;
f.setState(D)}}};
rNX=function(V){return function(){var D=V(),f,n,t,J={volume:(t=(f=D.playerApi)==null?void 0:f.getVolume())!=null?t:0,volumeMuted:!((n=D.playerApi)==null||!n.isMuted())};D.setState(J)}};
HGw=function(V){return function(){var D=V(),f=D.playerApi;if(f){var n={captionsAvailable:_.E3(f)};n.captionsAvailable&&(n.captionsEnabled=_.X6v(f));D.setState(n)}}};
wJX=function(V){return function(){var D=V();if(D.playerApi&&!(D.volumeMuted||D.controlsVisible&&D.isProbablyAScreenreaderUser)){D.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var f;(f=document.querySelector(".player-control-play-pause-icon"))==null||f.focus()}}};
QP3=function(V){return{appApi:Object.assign({},_.cJn(),{showCaptionsToggleToast:function(D){var f,n;(n=(f=V()).showCaptionsToggleToast)==null||n.call(f,D)},
openInMiniplayer:function(){var D,f;(f=(D=V()).openInMiniplayer)==null||f.call(D)}})}};
TcZ=function(V,D){var f,n,t;return!!(V==null?0:(f=V.playerResponse)==null?0:(n=f.playerConfig)==null?0:(t=n.inlinePlaybackConfig)==null?0:t.showScrubbingControls)&&!(D==null?0:D.hideScrubbingControls)};
_.bGq=function(V){var D=!V.miniplayerIsActive;return[5,2,0].includes(V.miniplayerPlaybackState)||D};
KKw={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};yNW=function(V,D){var f,n,t,J,H;_.w(function(Q){if(!D.length)return Q.return([]);f=[];n=_.r(D);for(t=n.next();!t.done;t=n.next())J=t.value,(H=V.resolveIcon(J))&&!V.iconCache[H.url]&&f.push(_.slf(V,H).then(function(){}).catch(function(){}));
return Q.return(Promise.all(f))})};
ZGB=function(V,D){var f=[];D=(new Set(D)).values();D=_.r(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;for(var t=_.r(Object.values(KKw)),J=t.next();!J.done;J=t.next())f.push({iconName:n,iconStyle:J.value})}yNW(V.iconManager,f)};
_.jPq=function(V,D,f){var n=f!=null?f:V.iconsToFetch;n!=null&&n.length?D!==void 0&&D>=0?_.gq(_.dm,function(){ZGB(V,n)},D):ZGB(V,n):Promise.resolve()};
VQB=function(V,D,f){var n=this;this.renderFn=V;this.listeners=D;this.context=f;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var t;this.lastSeenPlayerApi=_.RN((t=this.playerControlsData)==null?void 0:t.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.dpY(),void 0);_.c("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){UNV(n).setState({playerState:-1});n.resetRecentlyNavigatedJobId&&_.dm.cancelJob(n.resetRecentlyNavigatedJobId);
n.recentlyNavigated=!0;n.resetRecentlyNavigatedJobId=_.dm.addJob(function(){n.recentlyNavigated=!1},8,1E4)})};
VQB.prototype.setState=function(V){if(!_.c("mweb_player_skip_no_op_state_changes")||!Nw0(V,this.state))if(this.state=Object.assign({},this.state,V),!_.c("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)V=-1,_.c("player_controls_log_creation_killswitch")||mr0()||(V=(0,_.VW)()),_.zm("pcu_s"),_.zm("pcu_se"),_.zm("pcu_rs"),this.renderFn(UNV(this)),_.zm("pcu_re"),z5f(V),_.dm.addJob(function(){_.zm("pcu_ap")},8)};
var UNV=function(V){var D;var f=_.RN((D=V.playerControlsData)==null?void 0:D.playerApi);return Object.assign({},V.state,{setState:V.boundSetState,domMeasurements:{progressBarLineRect:V.progressBarLineRect},playerApi:f,appApi:V.context.appApi,playerContainer:V.context.playerContainer,playerControlContainer:V.context.playerControlContainer,uxConfig:V.context.uxConfig})},Dqq=function(V){V.listeners.forEach(function(D){V.eventListenerCleanupFunctions.push(D.register(function(){return UNV(V)},function(){return V.getData()}))})},
fJW=function(V){V.eventListenerCleanupFunctions.forEach(function(D){D()});
V.eventListenerCleanupFunctions.length=0};
VQB.prototype.getData=function(){return this.playerControlsData};var To=new _.L("abuseReportFlowState");var lJf=new _.L("feedbackFormFlowState");var G43=new _.L("inputBoxViewModel");var eXB=new _.L("flowNextStepCommand");var cNJ=new _.L("flowPrevStepCommand");var FKq=new _.L("updateFlowCommand");_.gKw=new _.L("flowStepRenderer");_.lCW=new _.L("lengthValidationRule");var eOR=new _.L("regexValidationRule");var FHc=new _.L("selectedValidationRule");var vKJ=new _.L("talkToRecsViewModel");var k4f=new _.L("creatorGoalSetUpFlowDropdownItemViewModel");var sPf=new _.L("creatorGoalSetUpFlowDropdownViewModel");var xNw=new _.L("thumbnailBadgeViewModel");_.BcR=new _.L("radioButtonGroupViewModel");var qRR=new _.L("panelFooterViewModel");var dqw=new _.L("ypcCancelRecurrenceCommand");var uYX=new _.L("cancellationFlowState");var PWR=new _.L("premiumPurchaseFlowState");var Ncv=new _.L("surveyAnswerCardRenderer");var mqf=new _.L("showMoreButtonRenderer");var zXV;var RXR,Cbw=function(){if(RXR!==void 0)return RXR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;zXV===void 0&&(zXV=document.createElement("template"));var n=zXV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return RXR=V};var bu=function(){var V=_.E.apply(this,arguments)||this;V.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";V.goalDescription="";V.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";V.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";V.startButtonId="start-button";V.exampleButtonId="example-button";return V};
_.v(bu,_.E);_.P=bu.prototype;_.P.getGoalDropdownItems=function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.purchaseTargetDropdown,sPf))==null?void 0:D.dropdownItems};
_.P.getTimerDropdownItems=function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.timerDropdown,sPf))==null?void 0:D.dropdownItems};
_.P.getColorDropdownItems=function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.colorDropdown,sPf))==null?void 0:D.dropdownItems};
_.P.getDropdownItemText=function(V){var D;return(D=_.g(V,k4f))==null?void 0:D.itemLabel};
_.P.getDropdownItemValue=function(V){V=_.g(V,k4f);return(V==null?void 0:V.timeLimit)||(V==null?void 0:V.purchaseTarget)||(V==null?void 0:V.eligiblePurchaseType)};
_.P.updateFlowState=function(V){_.o4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:V}])};
_.P.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.P.updateGoalValue=function(V){this.goal=V.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.P.onTextValueChanged=function(V){this.goalDescription=V.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.P.updateTimerValue=function(V){this.timer=V.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.P.updateTierValue=function(V){this.tier=V.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.P.getButtonViewModel=function(V){V=(V==null?void 0:V.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var D,f=_.g((D=this.data)==null?void 0:D.startGoalButton,_.cW);return Object.assign({},f,{state:V})};
_.IG.Object.defineProperties(bu,{template:{configurable:!0,enumerable:!0,get:function(){return Cbw()}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"goal",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"goalDescription",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"timer",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"tier",void 0);
_.S([_.q(),_.p("design:type",Object)],bu.prototype,"startButtonId",void 0);_.S([_.q(),_.p("design:type",Object)],bu.prototype,"exampleButtonId",void 0);_.S([_.zy({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],bu);_.Y(bu,"yt-creator-goal-set-up-flow-view-model",function(){return Cbw()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var q0J;var XJZ;var EKq;var ANq=function(){return _.E.apply(this,arguments)||this};
_.v(ANq,_.E);_.S([_.q(),_.p("design:type",Object)],ANq.prototype,"data",void 0);_.S([_.zy({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ANq);
_.Y(ANq,"yt-survey-answer-card-renderer",function(){if(EKq===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;XJZ===void 0&&(XJZ=document.createElement("template"));var n=XJZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);EKq=V}V=EKq;return V},{mode:2});var aJc;var Y0W;var KS=function(){return _.E.apply(this,arguments)||this};
_.v(KS,_.E);_.P=KS.prototype;_.P.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.P.selectedItemChanged=function(V){_.o4(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[V.feedbackToken||""]}])};
_.P.surveyAnswerCardRendererClicked=function(V){if(V.target&&_.g(V.model.item,Ncv)){var D=V.target;V=_.g(V.model.item,Ncv);V.onTapCommand?_.wN(D,[V.onTapCommand],D):this.data.onTapCommand&&_.wN(D,[this.data.onTapCommand],D);this.selectedItemChanged(V)}};
_.P.checkIsCancellationStyle=function(V){return V==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.P.updateSelectedItemFromBinding=function(V){this.selectedItem=V.detail.value};
KS.prototype.onSelectedItemChanged=KS.prototype.onSelectedItemChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KS.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],KS.prototype,"selectedItem",void 0);_.S([_.q({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],KS.prototype,"isCancellationStyle",void 0);
_.S([_.KI("selectedItem"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KS.prototype,"onSelectedItemChanged",null);_.S([_.zy({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],KS);
_.Y(KS,"yt-survey-flow-step-renderer",function(){if(Y0W===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;aJc===void 0&&(aJc=document.createElement("template"));var n=aJc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Y0W=V}V=Y0W;return V},{mode:2});var yl=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return V};
_.v(yl,_.E);yl.prototype.handleSurveyFlowStepOptionChanged=function(V){this.ytdReduxBehavior.dispatch(_.nA({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:V}));_.o4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:V}}])};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],yl.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],yl.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yl.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],yl);
_.Y(yl,"ytd-survey-flow-step-renderer",function(){if(q0J!==void 0)return q0J;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return q0J=V},{mode:1});var R50;R50=_.eK({avatarViewModel:_.vd,buttonViewModel:_.HO,subscribeButtonViewModel:_.FH,imageBannerViewModel:_.GAY});_.$qW=_.Zn(_.qBZ);_.V$(_.qBZ);var iG0;var Z2=function(){return _.E.apply(this,arguments)||this};
_.v(Z2,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Z2.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Z2.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Z2);
_.Y(Z2,"ytd-channel-history-renderer",function(){if(iG0!==void 0)return iG0;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iG0=V},{mode:1});var S0c;var WKc=function(){return _.E.apply(this,arguments)||this};
_.v(WKc,_.E);_.S([_.q(),_.p("design:type",Object)],WKc.prototype,"data",void 0);_.S([_.a({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],WKc);
_.Y(WKc,"ytd-feature-enablement-info-renderer",function(){if(S0c!==void 0)return S0c;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return S0c=V},{mode:1});var pJJ;var LKW;var j0=function(){var V=_.E.apply(this,arguments)||this;V.textBoxMaxLength=_.c("enable_tvod_campaign_code_integration")?15:12;return V};
_.v(j0,_.E);_.P=j0.prototype;_.P.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.P.onSubmit=function(){var V=this.data.serviceEndpoint,D=_.g(V,_.fL);D&&V&&(D.couponCode=this.userInput,_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}}))};
_.P.validate=function(){var V=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=V&&!this.data.errorMessage;this.showErrorMessage=V&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.c("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.P.computeStyle=function(V){return V};
_.P.computeShowValidationBelowInput=function(V){return V!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.P.updateUserInputFromBinding=function(V){this.userInput=V.currentTarget.value};
_.P.updateShowErrorMessageFromBinding=function(V){this.showErrorMessage=V.detail.value};
_.IG.Object.defineProperties(j0.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
j0.prototype.dataChanged=j0.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],j0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],j0.prototype,"userInput",void 0);_.S([_.q(),_.p("design:type",Boolean)],j0.prototype,"disableApplyButton",void 0);_.S([_.q(),_.p("design:type",Boolean)],j0.prototype,"hideApplyButton",void 0);
_.S([_.q(),_.p("design:type",Boolean)],j0.prototype,"hideErrorMessage",void 0);_.S([_.q(),_.p("design:type",Boolean)],j0.prototype,"showTick",void 0);_.S([_.q(),_.p("design:type",Boolean)],j0.prototype,"showErrorMessage",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],j0.prototype,"couponStyle",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.p("design:type",Boolean)],j0.prototype,"showValidationBelowInput",void 0);_.S([_.q(),_.p("design:type",Object)],j0.prototype,"textBoxMaxLength",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j0.prototype,"dataChanged",null);
_.S([_.R("showTick","showErrorMessage","userInput"),_.p("design:type",String),_.p("design:paramtypes",[])],j0.prototype,"validationState",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],j0);
_.Y(j0,"ytd-ypc-coupon-renderer",function(){if(LKW!==void 0)return LKW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LKW=V},{mode:1});var lu=function(){return _.E.apply(this,arguments)||this};
_.v(lu,_.E);lu.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"}}}};
lu.prototype.computeStyle=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lu.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],lu.prototype,"buttonStyle",void 0);_.S([_.a({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],lu);
_.Y(lu,"ytd-flow-bottom-bar-renderer",function(){if(pJJ!==void 0)return pJJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return pJJ=V},{mode:1});var IJW;var OGX;var xqZ;var Go=function(){return _.E.apply(this,arguments)||this};
_.v(Go,_.E);Go.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Go.prototype.focus=function(V){this.title&&_.ph(this.title,V)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Go.prototype,"data",void 0);_.S([_.Zv("#title"),_.p("design:type",HTMLElement)],Go.prototype,"title",void 0);_.S([_.a({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Go);
_.Y(Go,"ytd-flow-top-bar-renderer",function(){if(xqZ!==void 0)return xqZ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return xqZ=V},{mode:1});var MQc;var hXc;var UqZ;var e0=function(){return _.E.apply(this,arguments)||this};
_.v(e0,_.E);e0.prototype.freeTextValueChanged=function(){_.o4(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
e0.prototype.updateFreeTextValueFromBinding=function(V){this.freeTextValue=V.detail.value};
_.IG.Object.defineProperties(e0.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(D=(V=this.data)==null?void 0:V.responseMaxLength)!=null?D:500,n;return((n=this.freeTextValue)!=null?n:"").length>=f?"maxed-out":""}}});
e0.prototype.freeTextValueChanged=e0.prototype.freeTextValueChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],e0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],e0.prototype,"freeTextValue",void 0);_.S([_.Zv("#user-input"),_.p("design:type",HTMLTextAreaElement)],e0.prototype,"input",void 0);
_.S([_.R("freeTextValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],e0.prototype,"characterLimitClass",null);_.S([_.KI("freeTextValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],e0.prototype,"freeTextValueChanged",null);_.S([_.zy({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],e0);
_.Y(e0,"yt-free-text-input-flow-step-renderer",function(){if(UqZ===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;hXc===void 0&&(hXc=document.createElement("template"));var n=hXc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);UqZ=V}V=UqZ;return V},{mode:2});var cZ=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return V};
_.v(cZ,_.E);cZ.prototype.handleFreeTextFlowStepInputChanged=function(V){_.o4(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:V}}])};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],cZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],cZ.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cZ.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],cZ);
_.Y(cZ,"ytd-free-text-input-flow-step-renderer",function(){if(MQc!==void 0)return MQc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return MQc=V},{mode:1});var Vdw;var DlW;var f9Z=function(){return _.E.apply(this,arguments)||this};
_.v(f9Z,_.E);_.S([_.q(),_.p("design:type",Object)],f9Z.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],f9Z);
_.Y(f9Z,"ytd-metadata-line-renderer",function(){if(DlW!==void 0)return DlW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return DlW=V},{mode:1});var Fx=function(){return _.E.apply(this,arguments)||this};
_.v(Fx,_.E);Fx.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Fx.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Fx.prototype,"isMasthead",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Fx);
_.Y(Fx,"ytd-media-product-renderer",function(){if(Vdw!==void 0)return Vdw;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Vdw=V},{mode:1});var nwR;var gY=function(){return _.E.apply(this,arguments)||this};
_.v(gY,_.E);gY.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
gY.prototype.onBillboardImageLoaded=function(){_.PA(this.hostElement,"yt-refit")};
gY.prototype.onBillboardImageLoaded=gY.prototype.onBillboardImageLoaded;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gY.prototype,"data",void 0);_.S([_.Zv("#billboardImage"),_.p("design:type",Object)],gY.prototype,"billboardImage",void 0);_.S([_.bU("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gY.prototype,"onBillboardImageLoaded",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],gY);
_.Y(gY,"ytd-billboard-masthead-renderer",function(){if(nwR!==void 0)return nwR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nwR=V},{mode:1});var td0;var vZ=function(){var V=_.E.apply(this,arguments)||this;V.smallSize=!1;return V};
_.v(vZ,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],vZ.prototype,"ytComponentBehaviorType",void 0);_.S([_.q(),_.p("design:type",Object)],vZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vZ.prototype,"smallSize",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],vZ);
_.Y(vZ,"ytd-bullet-formatted-string",function(){if(td0!==void 0)return td0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return td0=V},{mode:1});var PaX;var kg=function(){return _.E.apply(this,arguments)||this};
_.v(kg,_.E);kg.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kg.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],kg);
_.Y(kg,"ytd-offer-detail-renderer",function(){if(PaX!==void 0)return PaX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return PaX=V},{mode:1});var ow0;var sA=function(){return _.E.apply(this,arguments)||this};
_.v(sA,_.E);sA.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sA.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],sA);
_.Y(sA,"ytd-offer-detail-step-renderer",function(){if(ow0!==void 0)return ow0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ow0=V},{mode:1});var JhR;var BZ=function(){var V=_.E.apply(this,arguments)||this;V.isInOfferModule=!1;return V};
_.v(BZ,_.E);_.P=BZ.prototype;_.P.computeHasEndpoint=function(){var V;return!((V=this.data)==null||!V.onClickCommand)};
_.P.dataChanged=function(){var V;if((V=this.data)==null?0:V.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")};
_.P.detached=function(){var V;if((V=this.data)==null?0:V.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.P.handleClickEvent=function(){var V;if((V=this.data)==null?0:V.onClickCommand){var D;this.componentBehavior.resolveCommand((D=this.data)==null?void 0:D.onClickCommand)}};
_.P.onContentKeyDown=function(V){V.key==="Enter"?this.handleClickEvent(V):V.key===" "&&V.preventDefault()};
_.P.onContentKeyUp=function(V){V.key===" "&&this.handleClickEvent(V)};
BZ.prototype.dataChanged=BZ.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],BZ.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BZ.prototype,"data",void 0);_.S([_.q({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],BZ.prototype,"hasEndpoint",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],BZ.prototype,"isInOfferModule",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BZ.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],BZ);
_.Y(BZ,"ytd-channel-masthead-renderer",function(){if(JhR!==void 0)return JhR;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return JhR=V},{mode:1});var rhv;var dY=function(){var V=_.E.apply(this,arguments)||this;V.thumbnailObjectFit="CONTAIN";V.thumbnailObjectPosition="LEFT";V.isExpanded=!1;return V};
_.v(dY,_.E);_.P=dY.prototype;_.P.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.P.dataChanged=function(){this.resetStates()};
_.P.computeisTapOnOfferInfoContainerEnabled=function(){var V;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.P.onExpandBtnClick=function(){var V,D=_.g((V=this.data)==null?void 0:V.showMoreButtonRenderer,mqf);D&&_.H5(_.lS(),D.trackingParams);this.isExpanded=!this.isExpanded};
_.P.onOfferInfoClick=function(V){this.isTapOnOfferInfoContainerEnabled&&(_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Oo(_.Os(V)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.P.onBottomBarClick=function(){this.executeTapCommand()};
_.P.executeTapCommand=function(){var V,D=(V=this.data)==null?void 0:V.tapCommand;D&&this.ytComponentBehavior.resolveCommand(D)};
_.P.resetStates=function(){this.isExpanded=!1};
_.IG.Object.defineProperties(dY.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var V=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),D,f,n;return((D=this.data)==null?void 0:D.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&V&&!!((f=this.data)==null?0:(n=f.benefits)==null?0:n.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((D=_.g((V=this.data)==null?void 0:V.showMoreButtonRenderer,mqf))==null?void 0:D.showMoreButtonTitle)||((f=this.data)==null?void 0:f.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((D=_.g((V=this.data)==null?void 0:V.showMoreButtonRenderer,mqf))==null?void 0:D.showLessButtonTitle)||((f=this.data)==null?void 0:f.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var V;return(V=this.showLessButtonTitle)!=null?V:""}var D;return(D=this.showMoreButtonTitle)!=null?D:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((D=this.data)==null?0:D.footerTitle)||((f=this.data)==null?0:f.footerSubtitle))}}});
dY.prototype.dataChanged=dY.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],dY.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",String)],dY.prototype,"thumbnailObjectFit",void 0);
_.S([_.q(),_.p("design:type",String)],dY.prototype,"thumbnailObjectPosition",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.p("design:type",Boolean)],dY.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.S([_.q(),_.p("design:type",Object)],dY.prototype,"isExpanded",void 0);_.S([_.q(),_.p("design:type",Object)],dY.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.footerIcon)"}),_.p("design:type",String)],dY.prototype,"icon",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dY.prototype,"dataChanged",null);_.S([_.R("data.thumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dY.prototype,"hasThumbnail",null);_.S([_.R("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dY.prototype,"enableExpandButton",null);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dY.prototype,"enableOfferContentIcon",null);_.S([_.R("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],dY.prototype,"showMoreButtonTitle",null);_.S([_.R("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],dY.prototype,"showLessButtonTitle",null);
_.S([_.R("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],dY.prototype,"expandedBtnText",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dY.prototype,"enableBottomBar",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],dY);
_.Y(dY,"ytd-offer-card-renderer",function(){if(rhv!==void 0)return rhv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return rhv=V},{mode:1});var HZV;var uu=function(){return _.E.apply(this,arguments)||this};
_.v(uu,_.E);uu.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"}}}};
uu.prototype.onClick=function(V){if(!_.It(V.composedPath()||[],this.hostElement,["A".toString()])){var D,f;if((V=(f=_.g((D=this.data)==null?void 0:D.actionButton,_.RI))==null?void 0:f.command)&&!this.ytComponentBehavior.resolveCommand(V)){var n;(n=_.lS())==null||n.clickCommand(V);_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})}}};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],uu.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uu.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],uu);
_.Y(uu,"ytd-offer-content-renderer",function(){if(HZV!==void 0)return HZV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return HZV=V},{mode:1});var w90;var Nn=function(){return _.E.apply(this,arguments)||this};
_.v(Nn,_.E);Nn.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.IG.Object.defineProperties(Nn.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.title)||!((D=this.data)==null||!D.description)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Nn.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Nn.prototype,"hasHeaderData",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Nn);
_.Y(Nn,"ytd-offer-section-renderer",function(){if(w90!==void 0)return w90;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return w90=V},{mode:1});var Q9J;var mt=function(){return _.E.apply(this,arguments)||this};
_.v(mt,_.E);
mt.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mt.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],mt);
_.Y(mt,"ytd-offer-selection-step-renderer",function(){if(Q9J!==void 0)return Q9J;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Q9J=V},{mode:1});var Tjq;var zo=function(){return _.E.apply(this,arguments)||this};
_.v(zo,_.E);zo.prototype.computeStyle=function(V){return V};
zo.prototype.computeImageWidth=function(V){return V==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.S([_.q({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],zo.prototype,"containerStyle",void 0);_.S([_.q({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.p("design:type",String)],zo.prototype,"imageWidth",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zo.prototype,"data",void 0);
_.S([_.a({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],zo);
_.Y(zo,"ytd-confirmation-masthead-renderer",function(){if(Tjq!==void 0)return Tjq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Tjq=V},{mode:1});var bZc;var RE=function(){return _.E.apply(this,arguments)||this};
_.v(RE,_.E);RE.prototype.computeStyle=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],RE.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],RE.prototype,"containerStyle",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],RE);
_.Y(RE,"ytd-purchase-complete-detail-renderer",function(){if(bZc!==void 0)return bZc;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return bZc=V},{mode:1});var K0R;var CS=function(){var V=_.E.apply(this,arguments)||this;V.scriptsAppended=!1;return V};
_.v(CS,_.E);CS.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"}}}};
CS.prototype.onDataChanged=function(){var V=this.get("data.gtmId");V&&(_.km(V,_.XB("GL","")),this.setupConversionTracking())};
CS.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var V=document.createElement("noscript");V.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(V);this.scriptsAppended=!0}};
CS.prototype.onDataChanged=CS.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CS.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],CS.prototype,"scriptsAppended",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CS.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],CS);
_.Y(CS,"ytd-purchase-complete-step-renderer",function(){if(K0R!==void 0)return K0R;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return K0R=V},{mode:1});var yhZ;var qn=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(qn,_.E);qn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qn.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qn.prototype,"darkerDarkTheme",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],qn);
_.Y(qn,"ytd-ypc-transaction-error-message-renderer",function(){if(yhZ!==void 0)return yhZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return yhZ=V},{mode:1});var ZZR;var j9q;var Xx=function(){var V=_.E.apply(this,arguments)||this;V.handlePhoneVerificationSuccess=function(D){if(V.isValidPhoneVerificationCompletionMessageEvent(D)){var f;((f=V.data)==null?0:f.nextStepCommand)&&V.ytComponentBehavior.resolveCommand(V.data.nextStepCommand)}};
return V};
_.v(Xx,_.E);Xx.prototype.isValidPhoneVerificationCompletionMessageEvent=function(V){if(V.data!=="yt-phone-verification-complete")return!1;V=_.xw(V.origin);return V!==null&&V.includes("youtube.com")};
Xx.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Xx.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xx.prototype,"data",void 0);_.S([_.zy({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Xx);
_.Y(Xx,"yt-feature-enablement-soft-entry-renderer",function(){if(j9q===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;ZZR===void 0&&(ZZR=document.createElement("template"));var n=ZZR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);j9q=V}V=j9q;return V},{mode:1});var l9o;var G2R;var eUW;var chZ;var F0v=function(){return _.E.apply(this,arguments)||this};
_.v(F0v,_.E);_.S([_.q(),_.p("design:type",Object)],F0v.prototype,"data",void 0);_.S([_.zy({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],F0v);
_.Y(F0v,"yt-benefits-item-renderer",function(){if(chZ===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;eUW===void 0&&(eUW=document.createElement("template"));var n=eUW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);chZ=V}V=chZ;return V},{mode:2});var gwW;var vwv;var EA=function(){return _.E.apply(this,arguments)||this};
_.v(EA,_.E);EA.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
EA.prototype.computeisWithoutPadding=function(){var V;return((V=this.data)==null?void 0:V.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],EA.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.p("design:type",Boolean)],EA.prototype,"isWithoutPadding",void 0);_.S([_.zy({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],EA);
_.Y(EA,"yt-benefits-section-renderer",function(){if(vwv===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;gwW===void 0&&(gwW=document.createElement("template"));var n=gwW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);vwv=V}V=vwv;return V},{mode:2});var Ay=function(){return _.E.apply(this,arguments)||this};
_.v(Ay,_.E);Ay.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ay.prototype.computeisUsingLargeWidth=function(){var V;return((V=this.data)==null?void 0:V.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ay.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.p("design:type",Boolean)],Ay.prototype,"isUsingLargeWidth",void 0);_.S([_.zy({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Ay);
_.Y(Ay,"yt-benefits-flow-step-renderer",function(){if(G2R===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;l9o===void 0&&(l9o=document.createElement("template"));var n=l9o;f.call(D,n.content.cloneNode(!0),V.content.firstChild);G2R=V}V=G2R;return V},{mode:2});var k2c;var s9q;var aE=function(){return _.E.apply(this,arguments)||this};
_.v(aE,_.E);aE.prototype.checkIsUsingLargeWidth=function(){var V;return((V=this.data)==null?void 0:V.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.S([_.q(),_.p("design:type",Object)],aE.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.S([_.q({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.p("design:type",Boolean)],aE.prototype,"isUsingLargeWidth",void 0);_.S([_.zy({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],aE);
_.Y(aE,"yt-confirmation-flow-step-renderer",function(){if(s9q===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;k2c===void 0&&(k2c=document.createElement("template"));var n=k2c;f.call(D,n.content.cloneNode(!0),V.content.firstChild);s9q=V}V=s9q;return V},{mode:2});var BjW;var dlB;var uBZ=function(){return _.E.apply(this,arguments)||this};
_.v(uBZ,_.E);_.S([_.q(),_.p("design:type",Object)],uBZ.prototype,"data",void 0);_.S([_.zy({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],uBZ);
_.Y(uBZ,"yt-info-flow-step-renderer",function(){if(dlB===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;BjW===void 0&&(BjW=document.createElement("template"));var n=BjW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);dlB=V}V=dlB;return V},{mode:2});var Njw;var mlo;var zUV=function(){return _.E.apply(this,arguments)||this};
_.v(zUV,_.E);_.S([_.q(),_.p("design:type",Object)],zUV.prototype,"data",void 0);_.S([_.zy({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],zUV);
_.Y(zUV,"yt-info-list-flow-step-renderer",function(){if(mlo===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Njw===void 0&&(Njw=document.createElement("template"));var n=Njw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mlo=V}V=mlo;return V},{mode:2});var RUZ=_.MA(function(V){var D=V.data;return _.K("styled-text-view-model",{class:_.KT("ytStyledTextViewModelHost",function(){return OiX(D().fontAttributes)},function(){return IN3(D().color)})},_.K(_.Ow,{text:function(){return D().text},
ariaLabel:function(){var f,n,t;return(t=(f=D().accessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)!=null?t:""}}))},"kf");
RUZ.idomCompat=!0;var CaW=_.MA(function(V){var D=function(){var t,J,H,Q;return(Q=(H=(t=V.alt)==null?void 0:t.call(V))!=null?H:(J=V.data().accessibilityData)==null?void 0:J.label)!=null?Q:""},f=function(){return V.data().imageWidth},n=function(){return V.data().imageHeight};
return _.K("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.K(_.e,{cond:function(){var t=V.data();if(t){var J,H,Q;var T=((J=_.DY().resolve(_.Vx(_.pm)))==null?0:J())?(H=t.imageDark)!=null?H:t.imageLight:(Q=t.imageLight)!=null?Q:t.imageDark}else T=void 0;return T},
then:function(t){return _.K(_.xt,Object.assign({},V,{data:t,alt:D,targetWidth:f,targetHeight:n,preserveHeight:!0,preserveWidth:!0}))}}))},"lf");
CaW.idomCompat=!0;var Yg=_.MA(function(V){var D=V.data;V=_.IU(function(){return D().slots},[]);
var f=_.IU(function(){return D().layoutProperties},{}),n=_.DY().resolve(_.I5);
return _.K("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:iiX(f,n)},_.K(_.FB,{each:V,keyBy:"INDEX"},function(t){return _.K("div",{class:"ytContainerLayoutViewModelSlot",style:iiX(function(){return t().layoutProperties},n)},_.K(_.BW,{data:function(){return t().contents}},{containerLayoutViewModel:Yg,
badgeViewModel:_.Mh,buttonViewModel:_.HO,styledTextViewModel:RUZ,contentPreviewImageViewModel:function(J){return _.K(_.h8,{data:J.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(J){return _.K(CaW,{data:J.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"mf");
Yg.idomCompat=!0;var qGW=_.MA(function(V){var D=V.data;var f=V.stateFns;var n=function(){var y=D(),Z=y.productId;return!(!y.clearGroupId&&!Z)},t=function(){var y=D(),Z=y.clearGroupId;
return(y=y.productId)?f().isProductSelected(y):Z?f().getSelectedProductByGroupId(Z)==null:!1},J=function(){var y=D(),Z=y.clearGroupId;
if(y=y.productId)f().onProductSelected(y);else if(Z)f().onClearGroupSelected(Z)},H=function(){var y=D(),Z=y.clearGroupId;
if(y=y.productId){var l;return"group:"+(((l=f().getProductById(y))==null?void 0:l.groupId)||"")}return Z?"group:"+Z:""},Q=_.IU(function(){return D().header},[]),T=_.IU(function(){return D().body},[]);
return _.K("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.K(_.e,{cond:function(){return Q().length>0||n()},
then:function(){return _.K("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.K("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.K(_.BW,{data:Q},{containerLayoutViewModel:function(y){return _.K("div",{class:"ytPdpCardSectionViewModelContentItem"},_.K(Yg,{data:y.data}))},
styledTextViewModel:function(y){return _.K("div",{class:"ytPdpCardSectionViewModelContentItem"},_.K(RUZ,{data:y.data}))}})),_.K(_.e,{cond:n,
then:function(){return _.K("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.K(_.kh,{checked:t,name:H,onChange:J}))}}))}}),_.K(_.e,{cond:function(){return T().length>0},
then:function(){return _.K("div",null,_.K(_.BW,{data:T},{containerLayoutViewModel:function(y){return _.K("div",{class:"ytPdpCardSectionViewModelContentItem"},_.K(Yg,{data:y.data}))}}))}}))},"nf");
qGW.idomCompat=!0;var X9W=_.MA(function(V){var D=V.data;var f=V.stateFns;return _.K("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.K(_.e,{cond:function(){return D().banner},
then:function(n){return _.K("div",{class:"ytPdpCardViewModelBanner"},_.K(_.Ow,{text:n}))}}),_.K(_.BW,{data:function(){return D().sections}},{pdpCardSectionViewModel:function(n){n=n.data;
var t={};return _.K("div",{class:_.KT("ytPdpCardViewModelSectionContainer",(t.ytPdpCardViewModelShowDividers=function(){return D().showDividers},t))},_.K(qGW,{data:n,
stateFns:f}))}}))},"of");
X9W.idomCompat=!0;var EwJ=_.MA(function(V){var D=V.data;var f=V.isOverlay;V={};return _.K("pdp-masthead-view-model",{class:_.KT("ytPdpMastheadViewModelHost",(V.ytPdpMastheadViewModelIsOverlay=f,V))},_.K(_.BW,{data:function(){return D().image}},{contentPreviewImageViewModel:_.h8,
themedImageViewModel:function(n){return _.K(CaW,{data:n.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.K(_.e,{cond:function(){return D().title},
then:function(n){return _.K("h1",{class:"ytPdpMastheadViewModelHeading"},_.K(_.Ow,{text:n,isOverlay:f}))}}),_.K(_.FB,{each:function(){var n;
return(n=D().finePrint)!=null?n:[]}},function(n){return _.K("div",{class:"ytPdpMastheadViewModelFinePrint"},_.K(_.Ow,{text:n,
isOverlay:f}))}))},"pf");
EwJ.idomCompat=!0;var Ah0=_.MA(function(V){var D=V.data;var f=V.stateFns;var n=function(){return"pdp-pricing-group-selector-"+D().pricingGroupAttributeIds},t=_.IU(function(){return D().pricingGroupSelectorSectionHeader});
return _.K("pdp-pricing-group-selector-view-model",null,_.K(_.e,{cond:function(){return!!t()},
then:function(){return _.K(_.BW,{data:t},{sectionHeaderViewModel:function(J){J=J.data;var H={};return _.K("div",{class:_.KT("ytPdpPricingGroupSelectorViewModelSectionHeader",(H.ytPdpPricingGroupSelectorViewModelFullBleed=!0,H.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,H))},_.K(_.nQ,{data:J}))}})}}),_.K("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.K(_.FB,{each:function(){var J=f().getSelectedProductByGroupId(D().groupId);
if(!J)return _.mw(Error("Oj`"+D().groupId)),[];var H,Q=(H=D().pricingGroupAttributeIds)!=null?H:[],T;if((T=J.pricingGroups)==null||!T.length||!Q.length)return[];H=J.pricingGroups.filter(function(G){return Q.length?G.pricingGroupAttributes.every(function(F){return Q.includes(F)}):!1});
J=[];if(Q.length>0){H=[].concat(_.sz(H));T=_.r(Q);for(var y=T.next(),Z={};!y.done;Z={targetAttrId:void 0},y=T.next())Z.targetAttrId=y.value,y=H.findIndex(function(G){return function(F){return F.pricingGroupAttributes.includes(G.targetAttrId)}}(Z)),y!==-1&&(J.push(H[y]),H.splice(y,1))}var l=f().getSelectedPricingGroupAttributesByGroupId(D().groupId);
return J.map(function(G){var F=!1;l&&G.pricingGroupAttributes&&(F=HZ(G.pricingGroupAttributes,l));return{pricingGroup:G,isSelected:F}})},
keyBy:function(J){return J.pricingGroup.pricingGroupId}},function(J){return _.K("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.K("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.K(_.BW,{data:function(){return J().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Yg})),_.K("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.K(_.kh,{checked:function(){return J().isSelected},
name:n,onClick:function(){f().onPricingGroupSelected(J().pricingGroup.pricingGroupId)}})))})))},"qf");
Ah0.idomCompat=!0;var a9R=_.MA(function(V){var D=V.data;var f=V.stateFns;var n=function(){var H=f().getSelectedPricingOptions().map(function(y){return y.pricingOptionId}),Q=f().getSelectedProductByGroupId(D().groupId);
if(!Q)return _.mw(Error("Pj`"+D().groupId)),[];var T=f().getSelectedPricingGroupAttributesByGroupId(D().groupId);return Urc(Q.pricingOptions,T,H)},t=_.IU(function(){return D().pricingOptionSelectorSectionHeader}),J=function(){return n().length>1};
return _.K("pdp-pricing-option-selector-view-model",null,_.K(_.e,{cond:function(){return!!t()&&J()},
then:function(){return _.K(_.BW,{data:t},{sectionHeaderViewModel:function(H){H=H.data;var Q={};return _.K("div",{class:_.KT("ytPdpPricingOptionSelectorViewModelSectionHeader",(Q.ytPdpPricingOptionSelectorViewModelFullBleed=!0,Q.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,Q))},_.K(_.nQ,{data:H}))}})}}),_.K(_.e,{cond:J,
then:function(){return _.K("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.K(_.FB,{each:n,keyBy:"INDEX"},function(H){return _.K("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.K("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.K(_.BW,{data:function(){return H().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Yg})),_.K("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.K(_.kh,{checked:function(){return H().isSelected},
onClick:function(){f().onPricingOptionSelected(H().pricingOption.pricingOptionId);var Q=H().pricingOption.onSelectPricingOption;if(Q=_.Xo(Q)){var T;(T=_.DY().resolve(_.fH))==null||T.resolveCommand(Q)}}})))}))}}))},"rf");
a9R.idomCompat=!0;var YGf=_.MA(function(V){var D=V.data;var f=V.stateFns;return _.K("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.K(_.BW,{data:function(){var n,t;return(t=(n=f().getSelectedPricingOptions()[0])==null?void 0:n.primaryButton)!=null?t:D().emptyStateButton}},{buttonViewModel:_.HO}))},"sf");
YGf.idomCompat=!0;var $l0=_.MA(function(V){var D=V.stateFns;return _.K("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.K(_.BW,{data:function(){return D().getSelectedPricingOptions().flatMap(function(f){return f.summaryLines}).filter(function(f){return!!f})}},{containerLayoutViewModel:function(f){return _.K("div",{class:"ytPdpSummaryViewModelLineItem"},_.K(Yg,{data:f.data}))}}))},"tf");
$l0.idomCompat=!0;var iZX=_.MA(function(V){function D(z){var C=H();_.LI(_.XW("pdpStateEntity",C,{key:C,selectedPricingOptions:z}))}
var f=V.data;var n=V.internalScrolling;var t=V.stateFnsForTesting;var J=_.IU(function(){return f().allProducts},[]),H=_.IU(function(){return f().pdpStateEntityKey},""),Q=_.KX(VB0,H),T=_.yT(function(){_.Nq(!0);
var z;return(z=t==null?void 0:t())!=null?z:fCc(Q,J,D)},void 0,"pjJzrd"),y=_.IU(function(){return f().body},[]),Z=_.IU(function(){return f().columnBreakHints},[]),l=function(){return f().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},G=function(){return l()||f().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},F=_.yT(function(){var z=_.pX(f().background),C;
if(z==null?0:(C=z.sources)==null?0:C.length){var A=A===void 0?!0:A;z=_.csZ(void 0,z.sources,void 0,A,A?1E3:void 0,A?void 0:1E3)}else z=null;return z},void 0,"GO4GAe");
V=_.el({"--pdp-view-model-background":function(){return F()?"url("+F()+")":void 0}});
var k={};n=_.KT("ytPdpViewModelHost",(k.ytPdpViewModelHasBackground=function(){return G()||!!F()},k.ytPdpViewModelHasDarkBackground=G,k.ytPdpViewModelHasScrim=l,k.ytPdpViewModelInternalScrolling=_.IU(n,!1),k));
var d=function(z){var C={};return _.KT("ytPdpViewModelItem",(C.ytPdpViewModelFullBleed=function(){return _.DgY(z())==="dividerViewModel"||_.DgY(z())==="sectionHeaderViewModel"},C.ytPdpViewModelNoVerticalPadding=function(){return _.DgY(z())==="sectionHeaderViewModel"},C))};
_.Nl(function(){var z=f().onStartCommand;if(z&&(z=_.Xo(z))){var C;(C=_.DY().resolve(_.fH))==null||C.resolveCommand(z)}});
return _.K("pdp-view-model",{class:n,style:V},_.K("div",{class:"ytPdpViewModelColumnContainer"},_.K(_.FB,{each:function(){return n4w(y(),Z())},
keyBy:"INDEX"},function(z){return _.K("div",{class:"ytPdpViewModelColumn"},_.K(_.BW,{data:z},{containerLayoutViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(Yg,{data:C}))},
dividerViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(_.k8L,{data:C}))},
pdpCardViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(X9W,{data:C,
stateFns:T}))},
pdpMastheadViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(EwJ,{data:C,
isOverlay:G}))},
pdpPricingGroupSelectorViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(Ah0,{data:C,
stateFns:T}))},
pdpPricingOptionSelectorViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(a9R,{data:C,
stateFns:T}))},
pdpPrimaryButtonViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(YGf,{data:C,
stateFns:T}))},
pdpSummaryViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K($l0,{data:C,
stateFns:T}))},
sectionHeaderViewModel:function(C,A){C=C.data;return _.K("div",{class:d(function(){return z()[A()]})},_.K(_.nQ,{data:C}))}}))})))},"uf");
iZX.idomCompat=!0;_.fT(iZX,"pdp-view-model",{props:{data:_.WX,stateFnsForTesting:_.Dn,internalScrolling:_.Dn}});var SGR=_.MA(function(V){var D=V.data;var f=V.className;var n=_.KX(_.V7,function(){return D().flowStateEntityKey});
return _.K("ytm-premium-purchase-button-renderer",{class:_.KT("yt-premium-purchase-button-renderer",f)},_.K(_.BW,{data:function(){var t;return(t=_.g(n(),PWR))==null?void 0:t.primaryButtonOverride}},{buttonRenderer:function(t){return _.K(_.$d,{data:t.data,
className:f})},
buttonViewModel:function(t){return _.K(_.HO,{data:t.data,className:f})}}))},"vf");
SGR.idomCompat=!0;var W0R=_.MA(function(V){var D=V.data;V=V.className;var f=function(){return tBR(D().style)},n=_.KT("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f),t=_.KT("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f);
return _.K("yt-flow-bottom-bar-renderer",{class:_.KT("yt-flow-bottom-bar-renderer",V,f)},_.K(_.BW,{data:function(){return D().secondaryButton}},{buttonRenderer:function(J){return _.K(_.$d,{data:J.data,
className:t})},
buttonViewModel:function(J){return _.K(_.HO,{data:J.data,className:t})},
premiumPurchaseButtonRenderer:function(J){return _.K(SGR,{data:J.data,className:t})}}),_.K(_.BW,{data:function(){return D().primaryButton}},{buttonRenderer:function(J){return _.K(_.$d,{data:J.data,
className:n})},
buttonViewModel:function(J){return _.K(_.HO,{data:J.data,className:n})},
premiumPurchaseButtonRenderer:function(J){return _.K(SGR,{data:J.data,className:n})}}))},"wf");
W0R.idomCompat=!0;_.fT(W0R,"yt-flow-bottom-bar-renderer",{props:{data:_.WX,className:_.WX}});var p9X=_.MA(function(V){var D=_.KT(V.className,"ytOfferSummaryRendererHost");return _.K("yt-offer-summary-renderer",{class:D},_.K("div",{class:"ytOfferSummaryRendererTextContainer"},_.K("div",{class:"ytOfferSummaryRendererEyebrowText"},_.K(_.Ow,{text:function(){return V.data().eyebrowText}})),_.K("div",{class:"ytOfferSummaryRendererTitle"},_.K(_.Ow,{text:function(){return V.data().title}})),_.K("div",{class:"ytOfferSummaryRendererSubtitle"},_.K(_.Ow,{text:function(){return V.data().subtitle}})),
_.K("div",{class:"ytOfferSummaryRendererFeatureListData"},_.K(_.FB,{each:function(){var f;
return(f=V.data().featureListData)!=null?f:[]}},function(f){var n;
return _.K("div",{class:"ytOfferSummaryRendererFeatureList"},_.K(_.cj,{icon:(n=f.icon)==null?void 0:n.iconType,active:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(f.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.K("div",{class:"ytOfferSummaryRendererFeatureListText"},_.K(_.Ow,{text:f.text,
className:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.K("div",{class:"ytOfferSummaryRendererDescription"},_.K(_.Ow,{text:function(){return V.data().description}}))))},"xf");_.fT(_.MA(function(V){var D={};D=_.KT("ytOfferSummaryFlowStepRendererHost",(D.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=V.shouldDisableHeaderTopMargin,D));return _.K("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:D},_.K("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.K("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.K(_.Ow,{text:function(){return V.data().header}})),_.K("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.K(_.Ow,{text:function(){return V.data().subtitle}}))),_.K("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.K(_.BW,{data:function(){return V.data().offerSummary}},{offerSummaryRenderer:function(f){return _.K(p9X,{data:f.data,
className:V.flowClassName})}})))},"yf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Dn,
flowClassName:_.Dn,flowStateEntityKey:_.Dn,shouldDisableHeaderTopMargin:_.Dn}});var L0Z=_.MA(function(V){var D=V.data;var f=V.className;var n=V.flowStateEntityKey;var t=V.selectionStepStyle;V=_.jl(function(T){var y=D(),Z=n==null?void 0:n();T.target&&(T.stopPropagation(),T=Z||"",Z=_.V7(_.pI().getState(),T),y=Object.assign({},Z,{premiumPurchaseFlowState:{selectedOptionId:y.optionId,primaryButtonOverride:y.primaryButtonOverride}}),_.pI().dispatch(_.y1("flowStateEntity",T,y)));return!1});
var J=function(){return(n==null?void 0:n())||""},H=_.KX(_.V7,J);
_.Nl(function(){var T=D(),y=J(),Z=H();T.defaultSelected&&y!==""&&T.primaryButtonOverride&&o43(T.optionId||"",y,T.primaryButtonOverride,Z)});
var Q={};return _.K("ytm-option-item-renderer",{"on:click":V,class:_.KT(f,"ytm-option-item-renderer",(Q["ytm-option-item-renderer--lp2-style"]=function(){return(t==null?void 0:t())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Q))},_.K("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.K("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var T=D(),y=J(),Z=H();Z=_.g(Z,PWR);return(Z?(Z==null?void 0:Z.selectedOptionId)||"":T.defaultSelected&&y!==""?(T==null?void 0:T.optionId)||"":"")===D().optionId},
name:("input"+_.Bk(_.Fj)).toString()})),_.K("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.K(_.e,{cond:function(){return D().eyebrowText},
then:function(){return _.K("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.K(_.Ow,{text:function(){return D().eyebrowText}}))}}),_.K("div",{class:"ytm-option-item-renderer__option-item-title"},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.K(_.Ow,{text:function(){return D().subtitle}})),_.K(_.e,{cond:function(){return D().featureListData},
then:function(){return _.K("div",{class:"ytm-option-item-renderer__feature-list-data"},_.K(_.FB,{each:function(){return D().featureListData||[]}},function(T){var y,Z=(y=T.icon)==null?void 0:y.iconType;
a:switch(T.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":y="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":y="ytm-option-item-renderer__feature-list-icon-small";break a;default:y="ytm-option-item-renderer__feature-list-icon-default"}return _.K("div",{class:"ytm-option-item-renderer__feature-list"},_.K(_.cj,{icon:Z,className:y,active:function(){return T.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.K("div",{class:"ytm-option-item-renderer__feature-list-text"},_.K(_.Ow,{text:T.text,
className:function(){return T.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.K("div",{class:"ytm-option-item-renderer__option-item-description"},_.K(_.Ow,{text:function(){return D().description}}))))},"zf");var I9f=_.MA(function(V){var D=V.data;var f=V.flowClassName;var n=V.flowStateEntityKey;var t=V.selectionStepStyle;return _.K("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.K("div",{class:"yt-option-section-renderer__option-section-header-section"},_.K("div",{class:"yt-option-section-renderer__option-section-header"},_.K(_.Ow,{text:function(){return D().title}}),_.K(_.BW,{data:function(){return D().titleBadge}},{badgeViewModel:function(J){return _.K(_.Mh,
{data:J.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.K(_.e,{cond:function(){return D().subtitle},
then:function(){return _.K("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.K(_.Ow,{text:function(){return D().subtitle}}))}}),_.K(_.e,{cond:function(){return D().featureListData},
then:function(J){return _.K("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.K(_.FB,{each:J},function(H){var Q;return _.K("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.K(_.cj,{icon:(Q=H.icon)==null?void 0:Q.iconType,active:function(){return H.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(H.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.K("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.K(_.Ow,{text:H.text,
className:function(){return H.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.K(_.e,{cond:function(){return D().secondaryTitle},
then:function(){return _.K("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.K(_.Ow,{text:function(){return D().secondaryTitle}}))}}),_.K(_.FB,{each:function(){return D().sectionDisclaimers||[]}},function(J){return _.K("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.K(_.Ow,{text:J}))})),_.K(_.BW,{data:function(){return D().optionItems}},{optionItemRenderer:function(J){return _.K("div",{class:"yt-option-section-renderer__option-item"},_.K(L0Z,{data:J.data,
className:f,flowStateEntityKey:n,selectionStepStyle:t}))}}),_.K(_.e,{cond:function(){return D().offerText},
then:function(){return _.K("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.K(_.Ow,{text:function(){return D().offerText}}))}}))},"Af");
I9f.idomCompat=!0;var OZ0=_.MA(function(V){var D=V.data;var f=V.flowClassName;var n=V.flowStateEntityKey;V=V.isDesktop;var t=function(){var y;return(y=D().flowStateEntityKey)!=null?y:n==null?void 0:n()},J=function(){return(t==null?void 0:t())||""},H=function(){return D().style},Q=_.KX(_.V7,J);
_.Nl(function(){var y=D(),Z=J(),l=Q();!_.g(l,PWR)&&y.noPreselect&&Z!==""&&y.defaultButtonOverride&&o43("default",Z,y.defaultButtonOverride,l)});
var T={};return _.K("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.KT("ytm-option-selection-flow-step-renderer",(T["ytm-option-selection-flow-step-renderer--desktop"]=V,T["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return D().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},T))},_.K("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"},
_.K("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.K(_.Ow,{text:function(){return D().header}})),_.K("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.K(_.Ow,{text:function(){return D().subtitle}}))),_.K(_.BW,{data:function(){return D().optionItems||[]}},{optionItemRenderer:function(y){return _.K("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.K(L0Z,{data:y.data,
className:f,flowStateEntityKey:t,selectionStepStyle:H}))},
optionSectionRenderer:function(y){return _.K("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.K(I9f,{data:y.data,flowClassName:f,flowStateEntityKey:t,selectionStepStyle:H}))}}))},"Bf");
OZ0.idomCompat=!0;_.fT(OZ0,"yt-option-selection-flow-step-renderer",{props:{data:_.WX,flowClassName:_.WX,flowStateEntityKey:_.WX,isDesktop:_.WX}});var Jlq,rlf;_.$g=_.MA(function(V){var D=_.Or(V,{type:1,disablePadding:!1,disablePrimaryButton:!1}),f=D.data,n=D.type;V=D.disablePadding;var t=D.disablePrimaryButton,J=D.onClickPrimaryButton,H=function(){return f().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},Q=function(){return{disabled:t(),
state:t()?"disabled":"active"}},T=function(){return f().leadingLabel||f().trailingLabel};
D={};return _.K("yt-panel-footer-view-model",{class:_.KT("yt-panel-footer-view-model-wiz",(D["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return f().shouldHideDivider},D["yt-panel-footer-view-model-wiz--disable-padding"]=V,D))},_.K(_.e,{cond:T,
then:function(){var y={},Z={};return _.K("div",{class:_.KT("yt-panel-footer-view-model-wiz__text-row",(y["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var l=f();return!(!l.leadingLabel&&!l.trailingLabel||!l.primaryButton&&!l.secondaryButton)},y))},_.K(_.Ow,{text:function(){return f().leadingLabel},
className:_.KT((Z["yt-panel-footer-view-model-wiz--text-padding"]=T,Z))}),_.K(_.Ow,{text:function(){return f().trailingLabel}}))}}),_.K(_.e,{cond:H,
then:function(){var y={};return _.K("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.K("div",{class:_.KT("yt-panel-footer-view-model-wiz__primary-button",(y["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return f().secondaryButton},y))},_.K(_.BW,{data:function(){return f().primaryButton}},{buttonViewModel:function(Z){return _.K(_.HO,{data:Z.data,
buttonOverrides:Q,onClick:J})}})),_.K(_.BW,{data:function(){return f().secondaryButton}},{buttonViewModel:_.HO}))}}),_.K(_.e,{cond:function(){return!H()},
then:function(){var y={},Z={},l={};return _.K("div",{class:_.KT("yt-panel-footer-view-model-wiz__button-row",(y["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===n()},y))},_.K("div",{class:_.KT("yt-panel-footer-view-model-wiz__button-row--left-button",(Z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===n()},Z["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!f().secondaryButton||0===n()},Z["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===n()},Z))},_.K(_.BW,{data:function(){return f().secondaryButton}},{buttonViewModel:_.HO})),_.K("div",{class:_.KT("yt-panel-footer-view-model-wiz__primary-button",(l["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===n()||1===n()},l["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===n()},l))},_.K(_.BW,{data:function(){return f().primaryButton}},{buttonViewModel:function(G){return _.K(_.HO,{data:G.data,
buttonOverrides:Q,onClick:J})}})))}}))},"Cf");
_.$g.idomCompat=!0;_.xlv=_.MA(function(V){V=_.Or(V,{disablePadding:!1});var D=V.data,f=V.disablePadding;V=_.TXv(function(){return D().formId});
var n=V.onSubmit,t=V.isValid,J=V.isSubmitting;return _.K("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.K(_.BW,{data:function(){return D().panelFooter}},{panelFooterViewModel:function(H){return _.K(_.$g,{data:H.data,
onClickPrimaryButton:function(){n()},
disablePrimaryButton:function(){return!t()||J()},
disablePadding:f})}}))},"Df");_.fT(_.xlv,"yt-form-footer-view-model",{props:{data:_.WX,disablePadding:_.WX}});_.fT(_.MA(function(V){return _.K("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.K("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.K(_.e,{cond:function(){var D;return(D=V.data())==null?void 0:D.image},
then:function(D){return _.K(_.xt,{data:D,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.K("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.K(_.Ow,{text:function(){var D;
return(D=V.data())==null?void 0:D.title}})),_.K("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.K(_.Ow,{text:function(){var D;
return(D=V.data())==null?void 0:D.subtitle}})),_.K("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.K(_.BW,{data:function(){var D;
return(D=V.data())==null?void 0:D.viewTipsButton}},{buttonViewModel:_.HO}))))},"Ef"),"yt-contributor-zero-state-view-model",{props:{data:_.WX}});var Md0=_.MA(function(V){var D=_.KX(bJ0,_.IU(function(){var H;return(H=V.data())==null?void 0:H.noteFeedEntityKey},"")),f=_.KX(s8R,_.IU(function(){var H;
return(H=V.data())==null?void 0:H.userRatingEntityKey},"")),n=_.c("enable_user_rating_web"),t=function(){var H,Q,T;
return((H=D())==null?0:H.contributorNote)?(Q=D())==null?void 0:Q.contributorNote:(T=V.data())==null?void 0:T.existingNote},J=function(){var H,Q;
return!!f()&&!!KH3((H=f())==null?void 0:H.helpfulnessValue,(Q=V.data())==null?void 0:Q.noteData)};
return n?_.K("yt-note-view-model",{class:"ytNoteViewModelHost"},_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.K(_.e,{cond:function(){var H,Q;return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.isPinned},
then:function(){return _.K(_.cj,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.K(_.e,{cond:function(){var H,Q;return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.isPublished},
then:function(){return _.K(_.cj,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.K(_.BW,{data:function(){var H;
return(H=V.data())==null?void 0:H.metadata}},{contentMetadataViewModel:_.U9}),_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var H,Q;
return(Q=_.g((H=V.data())==null?void 0:H.metadata,_.pcP))==null?void 0:Q.delimiter}),_.K(_.Ow,{text:function(){var H;
return(H=t())==null?void 0:H.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.K(_.BW,{data:function(){var H,Q,T,y,Z,l,G,F=!!((H=V.data())==null?0:(Q=H.noteData)==null?0:Q.isPinned);H=J();Q=(T=V.data())==null?void 0:T.noteData;T=(y=D())==null?void 0:(Z=y.contributorNote)==null?void 0:Z.deleteAction;y=(l=V.data())==null?void 0:l.overflowButtonNoteWithRatingOnTapOverride;l=(G=V.data())==null?void 0:G.overflowButton;return F?ylZ(Q,T):H?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:y}}:l}},{buttonViewModel:function(H){return _.K(_.HO,{data:H.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.K("div",{class:"ytNoteViewModelNoteContent"},_.K(_.Ow,{text:function(){var H;
return(H=t())==null?void 0:H.text}})),_.K(_.e,{cond:function(){var H,Q;
return!((H=V.data())==null?0:(Q=H.noteData)==null?0:Q.isPinned)},
then:function(){return _.K(_.e,{cond:J,then:function(){return _.K("div",{class:"ytNoteViewModelUserRatingContainer"},_.K(_.Ow,{text:function(){var H,Q;return KH3((H=f())==null?void 0:H.helpfulnessValue,(Q=V.data())==null?void 0:Q.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.K(_.BW,{data:function(){var H;return(H=V.data())==null?void 0:H.userRatingButton}},{buttonViewModel:function(H){return _.K(_.HO,{data:H.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}})):_.K("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.K(_.e,{cond:function(){var H,Q;return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.isPinned},
then:function(){return _.K(_.cj,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.K(_.e,{cond:function(){var H,Q;return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.isPublished},
then:function(){return _.K(_.cj,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.K(_.e,{cond:function(){return n},
then:function(){return _.K(_.BW,{data:function(){var H;return(H=V.data())==null?void 0:H.metadata}},{contentMetadataViewModel:function(H){return _.K(_.U9,{data:H.data})}})}}),_.K(_.Ow,{text:function(){var H,Q;
return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.headerText}}),_.K("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.K(_.Ow,{text:function(){var H,Q;
return(H=V.data())==null?void 0:(Q=H.noteData)==null?void 0:Q.delimiter}})),_.K(_.Ow,{text:function(){var H,Q;
return(H=D())==null?void 0:(Q=H.contributorNote)==null?void 0:Q.publishedTimeText}})),_.K(_.BW,{data:function(){var H,Q,T;
return ylZ((H=V.data())==null?void 0:H.noteData,(Q=D())==null?void 0:(T=Q.contributorNote)==null?void 0:T.deleteAction)}},{buttonViewModel:function(H){return _.K(_.HO,{data:H.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.K("div",{class:"ytNoteViewModelNoteContent"},_.K(_.Ow,{text:function(){var H,Q;
return(H=D())==null?void 0:(Q=H.contributorNote)==null?void 0:Q.text}})))},"Ff");
Md0.idomCompat=!0;_.fT(Md0,"yt-note-view-model",{props:{data:_.WX}});var iu=_.MA(function(V){var D=_.Or(V,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),f=D.label,n=D.text,t=D.placeholder,J=D.hint;V=D.rows;var H=D.overflowStyle,Q=D.outline,T=D.disabled,y=D.disableNewLines,Z=D.characterLimit,l=D.validation,G=D.onInput,F=_.W2("textarea");D=_.r(_.Gk(function(){return n()}));
var k=D.next().value,d=D.next().value;D=_.r(_.HJ(!1,void 0,"fXvinf"));var z=D.next().value,C=D.next().value,A=function(){C(!0)},O=function(){C(!1)};
_.Nl(function(){var aY=F.value,Ed=H(),V0=k();Ed==="expand-vertically"&&V0&&ZJo(aY);F.value.addEventListener("focusin",A);F.value.addEventListener("focusout",O)});
_.dc(function(){F.value.removeEventListener("focusin",A);F.value.removeEventListener("focusout",O)});
var W=function(){var aY;return(aY=l())==null?void 0:aY.validate(k())},I=function(){return Z()&&!W()&&k().length>Z().maxChars},x=function(){return!!W()||I()};
D=_.jl(function(aY){if(!aY.currentTarget)return!1;aY=aY.currentTarget;d(aY.value);H()==="expand-vertically"&&ZJo(aY);G==null||G(aY.value);return!0});
var oY=_.jl(function(aY){y()&&aY.key==="Enter"&&aY.preventDefault();return!1}),wZ=_.jl(function(){F.value.focus()}),ZZ=function(){return t()||f()},sd={},NU={},Bn={};
return _.K("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.K("div",{class:_.KT("ytStandardsTextareaShapeTextareaContainer",(sd.ytStandardsTextareaShapeTextareaContainerOutline=Q,sd.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=T,sd.ytStandardsTextareaShapeTextareaContainerOutlineError=x,sd)),"on:click":wZ},_.K("label",{class:_.KT("ytStandardsTextareaShapeLabel",(NU.ytStandardsTextareaShapeLabelFocused=z,NU.ytStandardsTextareaShapeLabelDisabled=T,NU.ytStandardsTextareaShapeLabelError=
function(){return x()&&!T()},NU.ytStandardsTextareaShapeLabelHidden=function(){return!z()&&!k()&&!!ZZ()},NU))},f),_.K("div",{class:_.KT("ytStandardsTextareaShapePlaceholder",(Bn.ytStandardsTextareaShapePlaceholderVisible=function(){return!z()&&!k()},Bn)),
"aria-hidden":"true"},ZZ),_.K("textarea",{el:F,class:"ytStandardsTextareaShapeTextarea",rows:V,disabled:T,placeholder:ZZ,"on:input":D,"on:keydown":oY},k)),_.K(_.e,{cond:function(){return J()&&!x()},
then:function(){var aY={};return _.K("div",{class:_.KT("ytStandardsTextareaShapeHint",(aY.ytStandardsTextareaShapeHintDisabled=T,aY))},_.K("div",{class:"ytStandardsTextareaShapeHintHintMessage"},J))}}),_.K(_.e,{cond:W,
then:function(){return _.K(hUo,{disabled:T},_.K("div",{class:"ytStandardsTextareaShapeErrorMessage"},W))}}),_.K(_.e,{cond:Z,
then:function(aY){return _.K(_.e,{cond:I,then:function(){return _.K(hUo,{disabled:T},_.K("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return aY().errorMessage}),_.K("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return k().length+"/"+aY().maxChars}))}})}}))},"Gf");
iu.idomCompat={callbacks:{onInput:!0}};var hUo=_.MA(function(V){var D={};return _.K("div",{class:_.KT("ytStandardsTextareaShapeError",(D.ytStandardsTextareaShapeErrorDisabled=V.disabled,D)),role:"alert"},_.K(_.cj,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),V.children)},"Hf");_.Ulq=_.MA(function(V){var D=V.data;return _.K("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.K(iu,{text:V.text,label:function(){var f;return(f=D().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=D().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=D().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=D().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=D().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:V.disabled,disableNewLines:function(){var f;return(f=D().displayProperties)==null?void 0:f.disableNewLines},
onInput:V.onInput,characterLimit:V.characterLimit,validation:V.validation,rows:function(){var f;return(f=D().displayProperties)==null?void 0:f.rows}}))},"If");_.V1W=_.MA(function(V){var D=V.data;return _.K("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.K(iu,{text:V.text,label:function(){var f;return(f=D().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=D().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=D().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=D().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=D().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var f;return(f=D().displayProperties)==null?void 0:f.disableNewLines},
onInput:V.onInput,characterLimit:V.characterLimit,validation:V.validation,rows:function(){var f;return(f=D().displayProperties)==null?void 0:f.rows}}))},"Jf");var D4Z=_.MA(function(V){var D=_.r(_.Gk(function(){var ZZ,sd;return((ZZ=V.data().structuredContextNoteFormSchema)==null?0:(sd=ZZ.initialValues)==null?0:sd.noteBody)?V.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),f=D.next().value,n=D.next().value;
D=_.r(_.Gk(function(){V.data();return!1}));
var t=D.next().value,J=D.next().value;D=_.r(_.Gk(function(){V.data();return!1}));
var H=D.next().value,Q=D.next().value;D=_.r(_.Gk(function(){var ZZ,sd;return((ZZ=V.data().structuredContextNoteFormSchema)==null?0:(sd=ZZ.initialValues)==null?0:sd.timestamp)?V.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var T=D.next().value,y=D.next().value;D=_.r(_.Gk(function(){V.data();return!1}));
var Z=D.next().value,l=D.next().value;D=_.r(_.Gk(function(){var ZZ,sd;return((ZZ=V.data().structuredContextNoteFormSchema)==null?0:(sd=ZZ.initialValues)==null?0:sd.sources)?[V.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var G=D.next().value,F=D.next().value;D=_.r(_.Gk(function(){V.data();return!1}));
var k=D.next().value,d=D.next().value;D=_.r(_.Gk(function(){return!1}));
var z=D.next().value,C=D.next().value;_.Nl(function(){var ZZ;_.QVV((ZZ=V.data().structuredContextNoteFormSchema)==null?void 0:ZZ.id,{isSubmitting:z,onSubmit:function(){C(!0);var sd=kso(f(),T(),G(),V.data()),NU=_.DY().resolve(_.fH);sd&&NU&&NU.resolveCommand(sd,{commandController:{onSuccess:function(){C(!1)}}})},
isValid:function(){return t()&&!H()&&!Z()&&!k()}})});
var A=function(ZZ){if(ZZ!==void 0&&(n(ZZ),!t()&&ZZ.length>0&&J(!0),t())){var sd=GsW(V.data());if(sd){var NU=sd.minLength;sd=sd.maxLength;NU&&ZZ.length<NU?Q(!0):sd&&ZZ.length>sd?Q(!0):Q(!1)}}},O=function(ZZ){if(ZZ!==void 0){y(ZZ);
if(ZZ.length>0){var sd,NU,Bn,aY,Ed=cl0((sd=V.data())==null?void 0:(NU=sd.structuredContextNoteFormSchema)==null?void 0:(Bn=NU.fieldSchemas)==null?void 0:(aY=Bn.timestamp)==null?void 0:aY.validationSchema);if(Ed&&(sd=Ed.regex)&&!(new RegExp(sd)).test(ZZ)){l(!0);return}}l(!1)}},W=function(ZZ){if(ZZ!==void 0){var sd=ZZ.split(/[ \n]/).map(function(NU){return NU.trim()});
F(sd);if(ZZ.length>0)for(ZZ=_.r(sd),sd=ZZ.next();!sd.done;sd=ZZ.next())if(!v4X(sd.value)){d(!0);return}d(!1)}},I=function(){return{validate:function(ZZ){if(t()){var sd=GsW(V.data());
if(sd){var NU=sd.minLength;sd=sd.translations;if(NU&&ZZ.length<NU)return sd==null?void 0:sd.minLengthErrorMessage}}}}},x=function(){var ZZ=GsW(V.data()),sd=ZZ==null?void 0:ZZ.maxLength,NU;
ZZ=ZZ==null?void 0:(NU=ZZ.translations)==null?void 0:NU.maxLengthErrorMessage;if(sd&&ZZ)return{maxChars:sd,errorMessage:ZZ}},oY=function(){return{validate:function(ZZ){if(ZZ){var sd,NU,Bn,aY,Ed=cl0((sd=V.data())==null?void 0:(NU=sd.structuredContextNoteFormSchema)==null?void 0:(Bn=NU.fieldSchemas)==null?void 0:(aY=Bn.timestamp)==null?void 0:aY.validationSchema);
if(Ed&&(sd=Ed.regex,Ed=Ed.translations,sd&&!(new RegExp(sd)).test(ZZ)))return Ed==null?void 0:Ed.regexErrorMessage}}}},wZ=function(){return{validate:function(ZZ){if(ZZ){var sd,NU,Bn,aY,Ed=g40((sd=V.data())==null?void 0:(NU=sd.structuredContextNoteFormSchema)==null?void 0:(Bn=NU.fieldSchemas)==null?void 0:(aY=Bn.sources)==null?void 0:aY.validationSchema);
if(Ed&&(sd=Ed.translations,sd==null?0:sd.selectedErrorMessage))for(ZZ=ZZ.split(/[ \n]/).map(function(V0){return V0.trim()}),ZZ=_.r(ZZ),NU=ZZ.next();!NU.done;NU=ZZ.next())if(!v4X(NU.value))return ZZ=void 0,(ZZ=sd)==null?void 0:ZZ.selectedErrorMessage}}}};
return _.K("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.K("div",{class:"ytStructuredContextNoteViewModelTextField"},_.K(_.BW,{data:function(){var ZZ;return(ZZ=V.data())==null?void 0:ZZ.noteContents}},{textFormFieldViewModel:function(ZZ){return _.K(_.V1W,{data:ZZ.data,
onInput:A,validation:I,characterLimit:x})},
textFieldViewModel:function(ZZ){return _.K(_.Ulq,{data:ZZ.data,onInput:A,validation:I,characterLimit:x})}})),_.K("div",{class:"ytStructuredContextNoteViewModelTextField"},_.K(_.BW,{data:function(){var ZZ;
return(ZZ=V.data())==null?void 0:ZZ.noteTimestamp}},{textFormFieldViewModel:function(ZZ){return _.K(_.V1W,{data:ZZ.data,
onInput:O,validation:oY})},
textFieldViewModel:function(ZZ){return _.K(_.Ulq,{data:ZZ.data,onInput:O,validation:oY})}})),_.K("div",{class:"ytStructuredContextNoteViewModelTextField"},_.K(_.BW,{data:function(){var ZZ;
return(ZZ=V.data())==null?void 0:ZZ.noteSources}},{textFormFieldViewModel:function(ZZ){return _.K(_.V1W,{data:ZZ.data,
onInput:W,validation:wZ})},
textFieldViewModel:function(ZZ){return _.K(_.Ulq,{data:ZZ.data,onInput:W,validation:wZ})}})))},"Kf");
D4Z.idomCompat=!0;_.fT(D4Z,"yt-structured-context-note-view-model",{props:{data:_.WX}});var fYV=_.MA(function(V){var D=_.r(_.Gk(function(){var J;if((J=V.controlled)==null?0:J.call(V))return[];var H;return(((H=V.data())==null?void 0:H.chips)||[]).map(function(Q){Q=_.g(Q,_.EC);if(Q==null?0:Q.selected)return sVB(Q.chipValue)}).filter(function(Q){return Q!==void 0})})),f=D.next().value,n=D.next().value,t=function(J){var H=sVB(J.chipValue);
if(H!==void 0){var Q;if((Q=V.controlled)==null?0:Q.call(V))return void V.controlled().onTap(H);J=f().includes(H)?[].concat(_.sz(f().filter(function(y){return y!==H}))):[].concat(_.sz(f()),[H]);
n(J);var T;if((T=V.uncontrolled)==null?0:T.call(V))V.uncontrolled().onUpdate(J)}};
return _.K("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.K(_.FB,{each:function(){return V.data().chips||[]}},function(J){return _.K("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.K(_.gi,{data:function(){return _.g(J,_.EC)},
selected:function(){var H;if(H=_.g(J,_.EC)){var Q=sVB(H.chipValue);if(Q!==void 0){var T;H=((T=V.controlled)==null?0:T.call(V))?V.controlled().selectedValues.includes(Q):f().includes(Q)}else H=void 0}else H=!1;return H},
callback:t}))}))},"Lf");var nJZ=_.MA(function(V){var D=V.data;var f=function(){var Q;return((Q=D())==null?void 0:Q.flowStateKey)||""},n=_.KX(_.V7,f),t=function(){var Q;
return(Q=_.g(n(),lJf))==null?void 0:Q.chips},J=function(Q){if(Q!==void 0){var T=t()||[];
T=T.find(function(y){return y===Q})?T.filter(function(y){return y!==Q}):[].concat(_.sz(T),[Q]);
T=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.g(n(),lJf),{chips:T})});_.LI(_.y1("flowStateEntity",f(),T))}},H=function(){var Q;
return _.g((Q=D())==null?void 0:Q.inputBox,G43)};
V=_.ZT(function(Q){var T=H();T=!(T==null?0:T.maxChars)||Q.length<=T.maxChars;Q=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.g(n(),lJf),{detail:Q}),abuseReportFlowState:Object.assign({},_.g(n(),To),{navigationEnabled:T})});_.LI(_.y1("flowStateEntity",f(),Q))},150);
return _.K("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.K("div",{class:"ytFeedbackFormViewModelChips"},_.K(_.BW,{data:function(){var Q;return(Q=D())==null?void 0:Q.chipSelection}},{chipSelectionFormFieldViewModel:function(Q){return _.K(fYV,{data:Q.data,
controlled:function(){return{selectedValues:t()||[],onTap:J}}})}})),_.K("div",{class:"ytFeedbackFormViewModelInputBox"},_.K(iu,{text:function(){var Q;
return(Q=_.g(n(),lJf))==null?void 0:Q.detail},
placeholder:function(){var Q;return((Q=H())==null?void 0:Q.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var Q=H();if(Q&&Q.maxChars)return{maxChars:Q.maxChars,errorMessage:Q.maxCharsExceededErrorMessage||""}},
onInput:V})),_.K("div",{class:"ytFeedbackFormViewModelFooterText"},_.K(_.Ow,{text:function(){return D().footerText}})))},"Mf");
nJZ.idomCompat=!0;_.fT(nJZ,"yt-feedback-form-view-model",{props:{data:_.WX}});var t1W=_.MA(function(V){var D=V.data;var f=function(){return D().flowStateKey||""},n=_.KX(keX,f),t=function(){return _.g(n(),To)},J=function(){if(_.c("enable_gff_accessibility_fix")){var H=!0,Q;
if((Q=t())==null?0:Q.navigationEnabled){var T;_.Yt((T=t())==null?void 0:T.navigationCommand);H=!1}Q=Object.assign({},n(),{abuseReportFlowState:Object.assign({},t(),{isReportFormDirty:H})});_.LI(_.y1("flowStateEntity",f(),Q))}else _.Yt((H=t())==null?void 0:H.navigationCommand)};
return _.K("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.K("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.K(_.BW,{data:function(){return D().cancelButton}},{buttonViewModel:function(H){return _.K(_.HO,{data:H.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}}),_.K(_.BW,{data:function(){var H;
if(D().navButton){var Q=Object;var T=Q.assign,y=_.g(D().navButton,_.cW),Z=((H=t())==null?0:H.navigationEnabled)||_.c("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",l,G;H=_.g((l=t())==null?void 0:l.navigationCommand,_.q3);l=(G=_.g(H,_.a2))==null?void 0:G.url;Q={buttonViewModel:T.call(Q,{},y,{state:Z,iconName:l?"OPEN_IN_NEW":""})}}else Q=void 0;return Q}},{buttonViewModel:function(H){return _.K(_.HO,{data:H.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}})))},"Nf");
t1W.idomCompat=!0;_.fT(t1W,"yt-report-form-bottom-bar-view-model",{props:{data:_.WX}});var PEw=_.MA(function(V){var D=V.nextStep;return _.K("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.K("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.K(_.cj,{icon:function(){return D().iconName||""}})),_.K("div",null,_.K(_.Ow,{text:function(){return D().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Of"),oJW=_.MA(function(V){var D=V.data;
var f,n=(f=_.DY().resolve(_.Vx(_.pm)))==null?void 0:f(),t=_.KX(_.V7,function(){return D().flowStateKey||""});
return _.K("yt-report-form-confirmation-page-view-model",{class:function(){var J;return((J=_.g(t(),To))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.K("div",{class:function(){var J;
return((J=_.g(t(),To))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.K(_.xt,{data:function(){return n&&D().imageDark?D().imageDark:D().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.K("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.K("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return D().confirmationHeader}),_.K("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.K(_.Ow,{text:function(){return D().confirmationText}})),_.K("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.K(_.Ow,{text:function(){return D().lawEnforcementText}})),
_.K("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return D().whatToExpectHeader}),_.K(_.e,{cond:function(){return D().nextSteps},
then:function(J){return _.K("div",null,_.K(_.FB,{each:J},function(H){return _.K(PEw,{nextStep:H})}))}}),_.K(_.e,{cond:function(){return D().legalReportText},
then:function(J){return _.K("div",null,_.K(_.Ow,{text:J,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Pf");
oJW.idomCompat=!0;_.fT(oJW,"yt-report-form-confirmation-page-view-model",{props:{data:_.WX}});var JUv=_.MA(function(V){var D=V.data;var f=function(){var J;return((J=_.g(D().inputBox,G43))==null?void 0:J.maxChars)||500},n=function(){return D().flowStateKey||""},t=_.KX(_.V7,n);
V=_.ZT(function(J){J=Object.assign({},t(),{flowFormState:{isValid:J.length<=f()},abuseReportFlowState:{userComments:J,navigationEnabled:!(J.length>f()),isReportFormDirty:!0}});_.pI().dispatch(_.XW("flowStateEntity",n(),J))},150);
_.Nl(function(){var J=Object.assign({},t(),{flowFormState:{isValid:!0}});_.pI().dispatch(_.XW("flowStateEntity",n(),J))});
return _.K("yt-report-form-details-page-view-model",{class:function(){var J;return((J=_.g(t(),To))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.K("h1",{class:function(){var J;
return((J=_.g(t(),To))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return D().detailsPageHeader}),_.K("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.K(_.Ow,{text:function(){return D().bodyText}})),_.K("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.K(iu,{label:function(){var J;
return((J=_.g(D().inputBox,G43))==null?void 0:J.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var J;return{errorMessage:((J=_.g(D().inputBox,G43))==null?void 0:J.maxCharsExceededErrorMessage)||"",maxChars:f()}},
onInput:V})))},"Qf");
JUv.idomCompat=!0;_.fT(JUv,"yt-report-form-details-page-view-model",{props:{data:_.WX}});var rUX=_.MA(function(V){var D=V.data;var f=V.selectedKey;var n=V.onSelected;var t=V.groupName;var J=function(){return D().text},H=function(){return D().attributedText},Q=function(){return D().subtext},T=function(){return D().attributedSubtext},y=_.K("div",{class:"ytRadioButtonItemViewModelLabel"},_.K(_.e,{cond:J,
then:function(){return _.K("div",null,J)}}),_.K(_.e,{cond:H,
then:function(){return _.K(_.Ow,{text:H})}}),_.K(_.e,{cond:Q,
then:function(){return _.K("div",{class:"ytRadioButtonItemViewModelSubText"},Q)}}),_.K(_.e,{cond:T,
then:function(){return _.K("div",{class:"ytRadioButtonItemViewModelSubText"},_.K(_.Ow,{text:T}))}})),Z=function(){if(H()){var G;
return(G=H())==null?void 0:G.content}return J()},l=function(){if(T()){var G;
return(G=T())==null?void 0:G.content}return Q()};
V={};return _.K("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.K(_.kh,{name:t,checked:function(){return!(f==null||!f()||D().key!==(f==null?void 0:f()))},
onChange:function(G){n==null||n(G.target,D(),t==null?void 0:t())},
labelRenderable:function(){return y},
ariaLabel:function(){return l()?Z()+", "+l():Z()},
className:_.KT((V.ytRadioButtonItemViewModelSubTitle=function(){return!!D().subtext},V))}))},"Rf");_.HHJ=_.MA(function(V){var D=V.data;var f=V.onSelected;var n=V.selectedKey;var t=V.groupName;var J=function(){return(t==null?void 0:t())||D().key};
return _.K("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.K("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.K(_.BW,{data:function(){return D().radioButtons}},{radioButtonItemViewModel:function(H){return _.K(rUX,{data:H.data,
onSelected:f,selectedKey:n,groupName:J})}})))},"Sf");var wIR=_.MA(function(V){var D=V.data;var f=_.py("div"),n=function(){return D().flowStateKey||""},t=_.KX(_.V7,n),J=function(){return _.g(t(),To)};
_.BJ(function(){var H,Q;if(((H=J())==null?0:H.isReportFormDirty)&&((Q=J())==null||!Q.navigationEnabled)&&_.c("enable_gff_accessibility_fix")){var T;if(((T=J())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var y;(y=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||y.scrollIntoView()}else{var Z;(Z=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||Z.scrollIntoView()}}},"VvP2Ne");
return _.K("yt-report-form-reason-select-page-view-model",{class:function(){var H;return((H=J())==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.K("h1",{class:function(){var H;
return((H=J())==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return D().pageHeader}),_.K("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.K(_.Ow,{text:function(){return D().bodyText}})),_.K("div",{class:function(){var H;
return((H=J())==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.K(_.e,{cond:function(){var H,Q;
return((H=J())==null?void 0:H.isReportFormDirty)&&!((Q=J())==null?0:Q.navigationEnabled)&&_.c("enable_gff_accessibility_fix")},
then:function(){return _.K("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:f},_.K(_.cj,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.K("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return D().emptyReasonSelectErrorMessage}))}}),_.K(_.HHJ,{data:function(){return _.g(D().radioButtonGroup,_.BcR)},
onSelected:function(H,Q){H=Object.assign({},t(),{abuseReportFlowState:Object.assign({},J(),{reasonKey:Q.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Q.command})});_.LI(_.y1("flowStateEntity",n(),H))},
selectedKey:function(){var H;return(H=J())==null?void 0:H.reasonKey},
groupName:"report-form-reason-select-page"})))},"Tf");
wIR.idomCompat=!0;_.fT(wIR,"yt-report-form-reason-select-page-view-model",{props:{data:_.WX}});var QTV=_.MA(function(V){var D=V.data;var f,n=(f=_.DY().resolve(_.Vx(_.pm)))==null?void 0:f();return _.K("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.K("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.K(_.xt,{data:function(){return n&&D().imageDark?D().imageDark:D().image},
alt:""})),_.K("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.K("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return D().header}),_.K(_.Ow,{text:function(){return D().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Uf");
QTV.idomCompat=!0;_.fT(QTV,"yt-report-form-sign-in-page-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=function(){return D().titleSuperscript},n=function(){return D().answersShelf},t=function(){return D().videoShelf},J=function(){var d;
return(d=D().textInputPlaceholder)==null?void 0:d.content},H=function(){return D().showOpenTextInput&&!_.c("web_hide_explore_hub_until_user_navigates_back_to_home")},Q=function(){var d;
return(d=D().textInputValue)==null?void 0:d.content},T=_.py("input");
_.B9(function(){H()&&Q()&&T.value&&(T.value.value=Q())});
var y=function(d){d=d.target.value.trim();var z=D().onUpdateText;z&&_.Yt(z,{form:{userQuery:d}});D().userQuery=d},Z=_.ZT(function(d){y(d)},150),l=_.jl(function(d){Z(d);
return!1}),G=_.jl(function(d){d.key==="Enter"&&(y(d),(d=D().onNextStepCommand)&&_.Yt(d,{forceClickLogging:!0}));
return!1}),F=_.W2("yt-talk-to-recs-view-model"),k=function(){if(_.c("web_hide_explore_hub_until_user_navigates_back_to_home")){var d,z,C;
(C=(z=(d=F.value)==null?void 0:d.closest("ytd-flow-step-renderer"))==null?void 0:z.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||C.click()}};
return _.K("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:F},_.K("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.K(_.BW,{data:function(){return D().topCornerButton}},{buttonViewModel:_.HO})),_.K("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.K("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.K(_.Ow,{text:function(){return D().title}}),_.K(_.e,{cond:f,
then:function(){return _.K("sup",{class:"ytwTalkToRecsSuperScript"},_.K(_.Ow,{text:f}))}})),_.K("div",{class:"ytwTalkToRecsSubtitle"},_.K(_.Ow,{text:function(){return D().subtitle}})),_.K("div",{class:"ytwTalkToRecsResultsShelf"},_.K(_.e,{cond:n,
then:function(){return _.K(_.BW,{data:n},{chipsShelfViewModel:function(d){return _.K("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.K(_.RQE,{data:d.data,callback:k,enableSingleChipSelection:!0}))}})}}),_.K(_.e,{cond:t,
then:function(){return _.K(_.BW,{data:t},{horizontalShelfViewModel:function(d){return _.K("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.K(_.di,{data:d.data}))}})}})),_.K(_.e,{cond:H,
then:function(){return _.K("div",{class:"ytwTalkToRecsUserInputBox"},_.K("input",{el:T,type:"text",class:"ytwTalkToRecsTextInput",placeholder:J,value:function(){return D().userQuery},
"on:input":l,"on:keyup":G,maxlength:200}))}})))},"Vf"),"yt-talk-to-recs-view-model",{props:{data:_.WX}});var BXw={sources:[{clientResource:{imageName:"CHECK"}}]};_.TOc=_.MA(function(V){var D=_.W2("div");V=_.Or(V,{error:void 0});var f=V.data,n=V.error,t=V.onSelected;V=_.r(_.Gk(function(){return NXV(f())}));
var J=V.next().value,H=V.next().value;CWZ(f,function(G){H(G);var F,k,d=u1R((F=f().options)==null?void 0:(k=F[G])==null?void 0:k.value,f().type);t==null||t(d);D.value.focus()});
V=_.jl(function(){if(!f().disabled){var G=f(),F=J(),k=D.value;G.options&&(G=dNV(G.options,F,G.label),_.DY().resolve(_.Ga).openSheet({viewModel:G},k))}});
var Q=_.WBY(),T=function(){return!!n()},y=function(){return!!f().disabled},Z={},l={};
return _.K("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.K("div",{class:_.KT("ytDropdownViewModelDropdownContainer",(Z.ytDropdownViewModelDropdownContainerErrorBorder=T,Z.ytDropdownViewModelDropdownContainerDisabled=y,Z)),"on:click":V,el:D,role:"combobox",tabindex:0,"on:keydown":Q,"aria-invalid":T,"aria-disabled":y,"aria-describedby":function(){return T()?"dropdown-view-model-error":void 0}},_.K("div",{class:"ytDropdownViewModelText"},mNR(f,T,J),zOc(f,J)),_.K("div",{class:_.KT("ytDropdownViewModelChevronDown",
(l.ytDropdownViewModelChevronDownDisabled=y,l))},_.K(_.cj,{icon:"CHEVRON_DOWN"}))),ROR(f,n))},"Wf");_.fT(_.MA(function(V){var D=V.data;var f=function(t){var J=Xqf(D());J.videoMetadata||(J.videoMetadata={});J.videoMetadata.sponsorshipsMetadata||(J.videoMetadata.sponsorshipsMetadata={});J.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(t)},n=function(t){var J=Xqf(D());
J.scheduledRedirectMetadata||(J.scheduledRedirectMetadata={});J.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(t)};
return _.K("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.K("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.K("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.K(_.Ow,{text:function(){return D().title}}),_.K(_.cj,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.K(_.Ow,{text:function(){return D().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.K(_.BW,{data:function(){return D().tierChoices}},{dropdownViewModel:function(t){return _.K("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.K(_.TOc,{data:t.data,
onSelected:f}))}}),_.K(_.BW,{data:function(){return D().startTimeChoices}},{dropdownViewModel:function(t){return _.K("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.K(_.TOc,{data:t.data,
onSelected:n}))}}),_.K(_.Ow,{text:function(){return D().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.K("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.K(_.BW,{data:function(){return D().scheduleButton}},{panelFooterViewModel:_.$g})))},"Xf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;V=V.className===void 0?"":V.className;var f=_.KX(keX,function(){return D().flowStateEntityKey||""}),n={};
n=_.KT("ytFlowBottomBarViewModelFlowBottomBarButtons",(n.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},n));
var t={},J=_.KT("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",n,(t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},t));
t={};var H=_.KT("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",n,(t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},t));
n={};n=_.KT("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
n));
V=_.KT("ytFlowBottomBarViewModelHost",V);return _.K("yt-flow-bottom-bar-view-model",{class:V},_.K(_.e,{cond:function(){var Q;return(Q=D())==null?void 0:Q.textSection},
then:function(Q){return _.K("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.K(_.Ow,{text:Q}))}}),_.K("div",{class:n},_.K(_.BW,{data:function(){return D().secondaryButton}},{buttonViewModel:function(Q){return _.K(_.HO,{data:Q.data,
className:H})}}),_.K(_.BW,{data:function(){return D().primaryButton}},{buttonViewModel:function(Q){return _.K(_.HO,{data:Q.data,
className:J,buttonOverrides:function(){var T;return{disabled:!((T=f())==null||!T.primaryButtonDisabled)}}})}})))},"Yf"),"yt-flow-bottom-bar-view-model",{props:{data:_.WX,
className:_.Dn}});var bHZ="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),S0=function(){var V=_.E.apply(this,arguments)||this;V.enableScrollingFix=!0;V.bottomBar=!1;V.hideBottomBar=!1;V.fitContent=!1;return V};
_.v(S0,_.E);_.P=S0.prototype;_.P.ready=function(){_.c("enable_pdp_icon_prefetch")&&_.jPq(_.DY().resolve(_.wn),0,bHZ)};
_.P.focus=function(V){this.topBar?_.ph(this.topBar,V):this.paperDialog.focus(V)};
_.P.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$17028_scroller&&(this.JSC$17028_scroller.dialogElement=this.paperDialog,this.JSC$17028_scroller.attached&&typeof this.JSC$17028_scroller.attached==="function"&&this.JSC$17028_scroller.attached())};
_.P.onDataChanged=function(){var V;this.fitContent=!((V=this.data)==null||!V.fitContent);var D;this.bottomBar=!((D=this.data)==null||!D.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.P.onProgressChanged=function(){var V,D,f=((D=(V=this.data)==null?void 0:V.progress)!=null?D:0)*100;this.progressElement.style.width=f+"%"};
_.P.isProgressHidden=function(){var V;return!((V=this.data)==null?0:V.progress)};
_.P.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(V){return _.c("enable_wiz_next_lp2_msof")&&V&&!V.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.IG.Object.defineProperties(S0.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var V;return _.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.g((V=this.data)==null?void 0:V.content,vKJ)}}});
S0.prototype.onProgressChanged=S0.prototype.onProgressChanged;S0.prototype.onDataChanged=S0.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],S0.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S0.prototype,"enableScrollingFix",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S0.prototype,"bottomBar",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S0.prototype,"hideBottomBar",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],S0.prototype,"containsExploreHub",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S0.prototype,"fitContent",void 0);_.S([_.Zv("#progress"),_.p("design:type",HTMLElement)],S0.prototype,"progressElement",void 0);
_.S([_.Zv("#scroller"),_.p("design:type",Object)],S0.prototype,"JSC$17028_scroller",void 0);_.S([_.Zv("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],S0.prototype,"topBar",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S0.prototype,"onDataChanged",null);_.S([_.KI("data.progress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S0.prototype,"onProgressChanged",null);
_.S([_.a({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],S0);
_.Y(S0,"ytd-flow-step-renderer",function(){if(OGX!==void 0)return OGX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OGX=V},{mode:1});var KLB=function(V){this.resolveCommand=V;this.steps={}},yUJ=function(V,D){D=_.r(D||[]);
for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=Object.values(f)[0],t=void 0;if((t=n)==null?0:t.stepId)V.steps[n.stepId]=f}},lYV=function(V,D){var f,n,t,J,H;
return _.w(function(Q){if((f=V.state)==null||!f.currentStepId)return Q.return(void 0);n=ZHJ(V);if(!n)return Q.return(jT3(V));if(t=_.g(n,_.gKw)){var T;((T=t.screenLoggingData)==null?0:T.screenVeType)&&_.P5(_.lS(),t.screenLoggingData.screenVeType);((J=t)==null?0:J.onStepStartCommand)&&V.resolveCommand((H=t)==null?void 0:H.onStepStartCommand,{})}if(t&&D){T=t;var y,Z,l,G;((y=D.flowLoggingData)==null?0:y.eventNamespace)&&((Z=T.flowEventData)==null?0:Z.eventType)&&((l=T.flowEventData)==null?0:l.eventMetadata)&&
((G=D.flowLoggingData)==null?0:G.flowType)&&(y=_.Qu(D.flowLoggingData.eventNamespace,T.flowEventData.eventType,T.flowEventData.eventMetadata),_.T_(_.bd(),y,D.flowLoggingData.flowType));D.steps&&!D.steps.includes(n)&&D.steps.push(n)}return Q.return(n)})};
KLB.prototype.back=function(){var V;(V=this.state)!=null&&V.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
KLB.prototype.handleUpdateFlowCommand=function(V){V.steps&&yUJ(this,V.steps);V.entityUpdateCommand&&this.resolveCommand(V.entityUpdateCommand,{});V.flowContinuationCommand&&(V=V.flowContinuationCommand)&&(this.getFlowContinuationCommand=V);this.awaitFlowContinuation&&(this.awaitFlowContinuation(ZHJ(this)),this.awaitFlowContinuation=void 0)};
KLB.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var jT3=function(V){return _.w(function(D){return V.getFlowContinuationCommand?D.return(new Promise(function(f){V.awaitFlowContinuation=f;V.getFlowContinuationCommand&&V.resolveCommand(V.getFlowContinuationCommand,{flow_state:V.state})})):D.return(Promise.resolve(void 0))})},ZHJ=function(V){var D;
if((D=V.state)!=null&&D.currentStepId)return V.steps[V.state.currentStepId]};var WZ=function(){var V=_.E.apply(this,arguments)||this;V.flowState=new KLB(function(D,f){f=f===void 0?{}:f;_.bS.instance.resolveCommand(D,{form:{form:f,element:V.hostElement}})});
V.initialState=!0;V.isLoading=!1;V.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 V};
_.v(WZ,_.E);_.P=WZ.prototype;_.P.onPopupClosed=function(V){V&&this.hostElement!==V.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.P.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"}}}};
_.P.focus=function(V){var D=this;_.aU(function(){var f=_.Pt(D.hostElement).querySelector("ytd-flow-step-renderer");(f==null?0:f.topBar)?f.focus(V):D.topBar&&_.ph(D.topBar,V)},1)};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.P.computeTopBarHidden=function(V){var D;return!((D=_.g(V,_.gKw))==null||!D.topBarOverride)};
_.P.dataChanged=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1){((D=V.data)==null?0:D.steps)&&yUJ(V.flowState,V.data.steps);if((f=V.data)==null?0:f.flowContinuationCommand){var t=V.flowState,J=V.data.flowContinuationCommand;J&&(t.getFlowContinuationCommand=J)}return _.b(n,lYV(V.flowState,V.data),2)}V.currentFlowStep=n.yieldResult;_.yz(n)})};
_.P.flowChanged=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1){if(!V.flow)return f.return();V.flowState.state=V.flow;V.isLoading=!0;return _.b(f,lYV(V.flowState,V.data),2)}D=f.yieldResult;if(!D||V.flow.isLoading)return f.return();V.currentFlowStep=D;V.initialState=!1;V.isLoading=!1;V.autofocusAndRefit();_.yz(f)})};
_.P.autofocusAndRefit=function(){var V=this,D=_.DY().resolve(_.Vx(_.PO)),f=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),n=document.querySelector("yt-report-form-confirmation-page-view-model"),t=document.querySelector("yt-report-form-details-page-view-model"),J=document.querySelector("yt-report-form-reason-select-page-view-model"),H=document.querySelector("yt-contributor-zero-state-view-model"),
Q=document.querySelector("yt-structured-context-note-view-model"),T=document.querySelector("yt-note-view-model");(!f&&D&&D.isKeyBoardInUse()||n||!f&&t||!f&&J||H||Q||T)&&_.Lh(this.hostElement);_.pO(this,function(){_.PA(V.hostElement,"yt-refit")})};
_.P.handleUpdateFlowCommand=function(V){this.data&&(V=_.g(V,FKq),V.targetId===this.data.targetId&&(V.flowContinuationCommand&&(this.data.flowContinuationCommand=V.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(V),this.autofocusAndRefit()))};
_.P.handleFlowNextStepCommand=function(V){this.data&&this.flow&&this.flow.key&&(V=_.g(V,eXB),V.targetId===this.data.targetId&&(V=V.stepId||"",this.ytdReduxBehavior.dispatch(_.XW("flowStateEntity",this.flow.key,{currentStepId:V,stepIdStack:(this.flow.stepIdStack||[]).concat(V)}))))};
_.P.handleFlowPrevStepCommand=function(V){if(this.data&&this.flow&&this.flow.key&&(V=_.g(V,cNJ),V.targetId===this.data.targetId)){var D=[].concat(_.sz(this.flow.stepIdStack||[]));D.length>1?(D.pop(),this.ytdReduxBehavior.dispatch(_.XW("flowStateEntity",this.flow.key,{currentStepId:D[D.length-1],stepIdStack:D}))):V.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(V.onFirstStepCommand)}};
_.P.handleYpcCancelRecurrenceCommand=function(V){if(this.data&&this.flow&&this.flow.key&&(V=_.g(V,dqw),V.targetId===this.data.targetId&&V.endpointCommand)){var D=_.g(this.flow,uYX);D&&_.g(V.endpointCommand,_.YgV)&&(_.g(V.endpointCommand,_.YgV).feedbackData=D.surveyFeedback);this.ytComponentBehavior.resolveCommand(V.endpointCommand)}};
_.P.handlePartialUpdateFlowStateEntity=function(V){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.XW("flowStateEntity",this.flow.key,V,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
WZ.prototype.flowChanged=WZ.prototype.flowChanged;WZ.prototype.dataChanged=WZ.prototype.dataChanged;WZ.prototype.onPopupClosed=WZ.prototype.onPopupClosed;_.S([_.u(_.dh),_.p("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],WZ.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WZ.prototype,"initialState",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WZ.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Object)],WZ.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],WZ.prototype,"currentFlowStep",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WZ.prototype,"onPopupClosed",null);_.S([_.q({selectorArgs:["data.flowStateEntityKey"],selector:keX}),_.p("design:type",Object)],WZ.prototype,"flow",void 0);_.S([_.Zv("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],WZ.prototype,"topBar",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],WZ.prototype,"dataChanged",null);_.S([_.eY("flow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],WZ.prototype,"flowChanged",null);_.S([_.a({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],WZ);
_.G5V=_.o5()(WZ,"ytd-flow-root-renderer",function(){if(IJW!==void 0)return IJW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IJW=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var eAB;var wY=null;_.fT(_.MA(function(V){return _.K("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.K("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.K(_.Ow,{text:function(){return V.data().text}}),_.K("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Zf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.WX}});var cUJ=_.MA(function(V){var D=V.playerControlsProps;var f=V.isShortsPage;return _.K("yt-bigboard",null,_.K(_.e,{cond:function(){return D().isDragging},
then:function(){return _.K("div",{class:"ytBigboardStoryboardHost"},_.K(_.feJ,{progressBarProps:D,isShortsPage:f}))}}))},"$f");
cUJ.idomCompat=!0;_.pS={ACCOUNT_LABEL:Ql("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Ql("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Ql("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Ql("AD_BADGE_HINT"),AD_BADGE_TEXT:Ql("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Ql("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Ql("AMBIENT_MODE"),AMBIENT_MODE_OFF:Ql("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Ql("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Ql("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Ql("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Ql("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Ql("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Ql("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Ql("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Ql("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Ql("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Ql("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:Ql("AUTO_ZOOM","Auto zoom"),BACK:Ql("BACK"),CANCEL:Ql("CANCEL"),CHANNEL_SWITCHER_LABEL:Ql("CHANNEL_SWITCHER_LABEL"),CLOSE:Ql("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Ql("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:Ql("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:Ql("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Ql("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Ql("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Ql("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Ql("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Ql("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Ql("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Ql("COPIED_TO_CLIPBOARD"),COPY:Ql("COPY"),COPY_DEBUG_INFO:Ql("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Ql("COPY_EMBED_CODE"),
COPY_LINK_LABEL:Ql("COPY_LINK_LABEL"),COPY_VIDEO_URL:Ql("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Ql("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Ql("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Ql("DELETE_FROM_DOWNLOADS"),DIALOG:Ql("DIALOG"),DONE:Ql("DONE"),DOWNLOAD:Ql("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Ql("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Ql("FLAG_CONFIRM"),FLAG_CONTENT:Ql("FLAG_CONTENT"),FLAG_LABEL:Ql("FLAG_LABEL"),FLAG_TITLE:Ql("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Ql("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:Ql("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:Ql("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Ql("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Ql("HIDE_SEARCH_FILTERS_LABEL"),HOME:Ql("HOME","Home"),INVALID_RESPONSE_RECEIVED:Ql("INVALID_RESPONSE_RECEIVED"),LIBRARY:Ql("LIBRARY","Library"),LISTENING:Ql("LISTENING"),LOADING:Ql("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Ql("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Ql("LOOP"),MENU_DESKTOP:Ql("MENU_DESKTOP"),
MENU_EXIT:Ql("MENU_EXIT"),MENU_FEEDBACK:Ql("MENU_FEEDBACK"),MENU_HELP:Ql("MENU_HELP"),MENU_IMPRESSUM:Ql("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Ql("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Ql("MENU_SETTINGS"),MENU_SIGN_IN:Ql("MENU_SIGN_IN"),MENU_TITLE:Ql("MENU_TITLE"),MENU_YOUR_DATA:Ql("MENU_YOUR_DATA"),MORE_INFO:Ql("MORE_INFO"),MORE_OPTIONS:Ql("MORE_OPTIONS"),MUTE_VOLUME:Ql("MUTE_VOLUME"),NEW_PLAYLIST:Ql("NEW_PLAYLIST"),NEXT_VIDEO:Ql("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Ql("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:Ql("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:Ql("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Ql("NOT_FOUND_TITLE"),NO_DOWNLOADS:Ql("NO_DOWNLOADS"),NO_MIC_INPUT:Ql("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Ql("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Ql("OOPS_MESSAGE"),OPEN_APP:Ql("OPEN_APP"),OPEN_YOUTUBE:Ql("OPEN_YOUTUBE"),PAUSE:Ql("PAUSE"),PLAY:Ql("PLAY"),PLAYER_CAPTION:Ql("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Ql("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Ql("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Ql("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Ql("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Ql("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Ql("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Ql("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Ql("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Ql("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Ql("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Ql("PLAYER_MINIMIZE"),PLAYER_NEXT:Ql("PLAYER_NEXT"),PLAYER_PAUSE:Ql("PLAYER_PAUSE"),PLAYER_PLAY:Ql("PLAYER_PLAY"),
PLAYER_PREVIOUS:Ql("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Ql("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Ql("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Ql("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Ql("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Ql("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Ql("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Ql("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Ql("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Ql("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Ql("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Ql("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Ql("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Ql("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Ql("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Ql("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Ql("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Ql("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Ql("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Ql("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Ql("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Ql("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Ql("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Ql("PLAY_ALL"),PLEASE_FIX_ERRORS:Ql("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:Ql("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:Ql("PREVIOUS_VIDEO"),PRIVACY_POLICY:Ql("PRIVACY_POLICY"),RELOAD:Ql("RELOAD"),REQUIRED_LABEL:Ql("REQUIRED_LABEL"),SAVE_PLAYLIST:Ql("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Ql("SCRUB_SLIDE_USER_EDU"),SEARCH:Ql("SEARCH","Search"),
SEARCH_APPEND_LABEL:Ql("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Ql("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:Ql("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Ql("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Ql("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Ql("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Ql("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Ql("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:Ql("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Ql("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Ql("SEEK_SLIDER"),SETTINGS_LABEL:Ql("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Ql("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Ql("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Ql("SHOW_LESS"),SHOW_MORE:Ql("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Ql("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Ql("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Ql("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Ql("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:Ql("SIGN_IN_ON_WEB"),STABLE_VOLUME:Ql("STABLE_VOLUME"),STABLE_VOLUME_OFF:Ql("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Ql("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Ql("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Ql("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Ql("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Ql("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:Ql("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:Ql("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Ql("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Ql("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Ql("TIMESTAMP_SECONDS"),TOGGLE_OFF:Ql("TOGGLE_OFF"),TOGGLE_ON:Ql("TOGGLE_ON"),TRENDING:Ql("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Ql("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Ql("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Ql("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Ql("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Ql("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Ql("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Ql("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Ql("VIDEO_LINK_LABEL")};var FLW=_.MA(function(V){var D=V.playerApi;V=_.W2("button",function(n){_.Ao(n,36843)});
var f=Ql("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.K("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.K("button",{el:V,class:"ytPlayerControlsJumpForwardButtonButton",title:f,"aria-label":f,"on:click":_.jl(function(){_.ar(36843);D&&D().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.K("span",null,_.K(_.cj,{icon:"FAST_FORWARD"}))))},"ag");var gJR=_.MA(function(V){var D=V.appApi;V=_.W2("button",function(n){_.Ao(n,62946)});
var f=Ql("OPEN_IN_MINIPLAYER");return _.K("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.K("button",{el:V,class:"ytMiniplayerButtonButton",title:f,"aria-label":f,"on:click":_.jl(function(){_.ar(62946);var n,t;(t=(n=D()).openInMiniplayer)==null||t.call(n);return!1})},_.K(_.cj,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"bg");var vJq=_.MA(function(V){var D=V.playerApi;V=_.W2("button",function(J){_.Ao(J,142812)});
var f=_.r(_.HJ(!1,void 0,"I3VCyb")),n=f.next().value,t=f.next().value;f=function(){return Ql("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(n()?1:2)})};
return _.K("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.K("button",{el:V,class:"ytPlaybackSpeedButtonButton",title:f,"aria-label":f,"on:click":_.jl(function(){_.ar(142812);if(D){var J=D(),H=n();J.setPlaybackRate(H?1:2);t(!n())}return!1})},_.K("span",null,_.K(_.cj,{icon:function(){return n()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"cg");var k5B=_.MA(function(V){var D=V.title;var f=V.ariaLabel;var n=V.icon;var t=V.command;var J=V.veType;V=_.W2("button",function(H){J&&_.Ao(H,J())});
return _.K("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.K("button",{el:V,class:"ytdThumbnailOverlayButtonButton",title:D,"aria-label":f,"on:click":_.jl(function(){J&&_.ar(J());t&&_.DY().resolve(_.fH).resolveCommand(t())})},_.K(_.cj,{icon:n})))},"dg");var fS="";var sTJ=_.MA(function(V){var D=V.playerControlsProps,f=V.onClickFn;V=_.yT(function(){var J=D(),H=-1;J.captionsAvailable&&(H=J.captionsEnabled?1:0);return H},void 0,"WecR8e");
var n=_.yT(function(){var J=D();return J.captionsAvailable?_.Zl(J.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Zl("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),t=_.yT(function(){var J=D();
J=J.captionsAvailable?J.captionsEnabled:void 0;return J},void 0,"Q17ly");
return _.K("yt-closed-captions-toggle-button",null,_.K(_.OWw,{captionIconType:V,ariaLabel:n,ariaPressed:t,onClick:function(J){var H=D();if(H.captionsAvailable){var Q=H.playerApi;if(Q){var T=H.playerApi;if(T){var y=fS;if(y){T=T.getOption("captions","track");var Z;fS=(Z=T?T.displayName:null)!=null?Z:y}else _.E3(T)?(y=_.EQ9(T),fS=y.length?(Z=Bwq(y))?Z.displayName:y[0].displayName:""):fS=""}drv(Q);_.c("mweb_disable_set_state_captions_killswitch")&&H.setState({captionsEnabled:!H.captionsEnabled})}}var l,
G;(G=(l=H.appApi).showCaptionsToggleToast)==null||G.call(l,H);f==null||f(J)},
isOverlay:!0}))},"eg");var BOR=_.MA(function(V){var D=V.data;return _.K("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.K(_.dD,{data:function(){return{type:16,text:_.r1Z(D().label)}}}))},"fg");var d4V=_.MA(function(V){var D=_.KT("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return V.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return V.size()==="small"?V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.K("animated-seek-arrows",{class:_.KT("ytPlayerControlsAnimatedSeekArrowsHost")},_.K("span",{class:D}),_.K("span",{class:D}),_.K("span",{class:D}))},"gg");
d4V.idomCompat=!0;var uTZ=_.MA(function(){var V=_.Zl("PLAYER_SECONDS",{seconds_placeholder:"30"}),D=_.r(_.HJ(!1,void 0,"Yj8msb")),f=D.next().value,n=D.next().value,t=_.r(_.HJ(!1,void 0,"r9Z50e"));D=t.next().value;var J=t.next().value;t={};var H=_.KT("jumpForwardOverlayOverlay",(t.jumpForwardOverlayOverlayHidden=D,t));_.Nl(function(){var Q=null,T=null,y=function(){Q!==null&&_.kv().cancelJob(Q);T!==null&&_.kv().cancelJob(T);J(!0);n(!0);_.JI(_.kv(),function(){J(!1)});
Q=_.JI(_.kv(),function(){J(!0);T=_.JI(_.kv(),function(){n(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",y);_.dc(function(){window.removeEventListener("jump-forward-clicked",y)})});
return _.K("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.K(_.e,{cond:f,then:function(){return _.K("div",{class:H},_.K(d4V,{direction:1,size:"large"}),_.K("div",null,V))}}))},"hg");var NOf=_.pS.MUTE_VOLUME,m4B=_.pS.UNMUTE_VOLUME,zAf=_.MA(function(V){var D=V.muteIconType;var f=V.onClick;var n=V.useOutlineIcon;var t=V.useDelhiIcons;V=_.W2("button",function(Q){_.Ao(Q,28662)});
var J=function(){var Q=D(),T=n==null?void 0:n(),y=t==null?void 0:t(),Z="",l="";switch(Q){case -1:case 0:Z=T?"VOLUME_OFF":y?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";l=m4B;break;case 1:Z=T?"VOLUME_UP_OUTLINE":y?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";l=NOf;break;case 2:Z=T?"VOLUME_DOWN_OUTLINE":y?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";l=NOf;break;default:_.JZ(Q)}return{iconName:Z,ariaLabel:l}},H=function(){return J().ariaLabel};
return _.K("ytm-mute-button",{class:"ytmMuteButtonHost"},_.K("button",{el:V,class:"ytmMuteButtonButton",title:H,"aria-label":H,"on:click":_.jl(function(Q){_.ar(28662);f==null||f(Q);return!1})},_.K("span",null,_.K(_.cj,{icon:function(){return J().iconName}}))))},"ig");var RA3=_.MA(function(V){var D=V.volumeProps;var f=V.onClickFn;var n=V.useOutlineIcon;var t=V.useDelhiIcons;return _.K("yt-mute-toggle-button",null,_.K(zAf,{muteIconType:function(){var J=D();return J.volumeMuted||J.volume===0?0:J.volume>50?1:2},
onClick:function(J){var H=D().playerApi;H&&(H.isMuted()?H.unMute():H.mute(!1));f==null||f(J)},
useOutlineIcon:function(){return!(n==null||!n())},
useDelhiIcons:function(){return!(t==null||!t())}}))},"jg");
RA3.idomCompat=!0;var CEv=_.MA(function(V){var D=V.data;var f=_.W2("ytm-paid-content-overlay-renderer");return _.K("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:f,"on:animationend":_.jl(function(){f.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.K(_.YC,{command:function(){return D().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.K(_.e,{cond:function(){var n;return(n=D().icon)==null?void 0:n.iconType},
then:function(){return _.K("span",null,_.K(_.cj,{icon:function(){var n;return(n=D().icon)==null?void 0:n.iconType}}))}}),_.K("div",{class:"ytmPaidContentOverlayText"},_.K(_.Ow,{text:function(){return D().text}})),_.K(_.e,{cond:function(){return D().navigationEndpoint},
then:function(){return _.K(_.cj,{icon:"CHEVRON_RIGHT"})}})))},"kg");
CEv.idomCompat=!0;var hOw=[].concat(_.sz([{register:function(V){var D=rNX(V),f;(f=V().playerApi)==null||f.addEventListener("onVolumeChange",D);return function(){}}},
{register:function(V){var D=HGw(V);V=V().playerApi;V==null||V.addEventListener("captionschanged",D);V==null||V.addEventListener("captionssettingschanged",D);V==null||V.addEventListener("onCaptionsTrackListChanged",D);return function(){}}},
{register:function(V){if(!_.c("mweb_screenreader_accessible_player"))return function(){};
var D=wJX(V),f=document.querySelector("video");f==null||f.addEventListener("touchend",D);return function(){f==null||f.removeEventListener("touchend",D)}}},
{register:function(V){if(!_.c("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var D=wJX(V),f=document.querySelector("video");f==null||f.addEventListener("focus",D);return function(){f==null||f.removeEventListener("focus",D)}}}]),[{register:function(V){var D=tQZ(V),f;
(f=V().playerApi)==null||f.addEventListener("onStateChange",D);return function(){}}},
{register:function(V){var D=PbW(V),f;(f=V().playerApi)==null||f.addEventListener("onPlaybackRateChange",D);return function(){}}},
{register:function(V){var D=oKo(V),f;(f=V().playerApi)==null||f.addEventListener("onVideoDataChange",D);return function(){}}},
{register:function(V){var D=JNX(V),f,n;(f=V())==null||(n=f.playerApi)==null||n.addEventListener("onVideoProgress",D);return function(){}}}]);var qbq=_.MA(function(V){var D=V.data;var f=function(){return _.Zl("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+D().playbackRate})};
return _.K(_.e,{cond:function(){return D().playbackRate&&D().playbackRate!==1},
then:function(){return _.K("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.K("div",{class:"ytPlaybackRateOverlayOverlay"},_.K(d4V,{direction:1,size:"small"}),_.K("div",{class:"ytPlaybackRateOverlayLabel"},f)))}})},"lg");var XIB=_.MA(function(V){var D=V.data;return _.K("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.K(_.e,{cond:function(){var f,n=(f=D())==null?void 0:f.playerResponse,t;return n==null?void 0:(t=n.paidContentOverlay)==null?void 0:t.paidContentOverlayRenderer},
then:function(f){return _.K(CEv,{data:f})}}))},"ng"),EJv=_.MA(function(V){var D=V.props;
var f=V.data;var n=V.options;var t=function(){var y,Z,l,G;return(y=f())==null?void 0:(Z=y.playerResponse)==null?void 0:(l=Z.playerConfig)==null?void 0:(G=l.inlinePlaybackConfig)==null?void 0:G.showAudioControls},J=function(){var y,Z;
if(t()&&((y=n())==null?void 0:(Z=y.additionalButton)==null?void 0:Z.button)!==void 0){var l,G,F;y=(l=f())==null?void 0:(G=l.playerApi)==null?void 0:(F=G.getSize())==null?void 0:F.height;if(!(y===void 0||y<180)){var k,d;return(k=n())==null?void 0:(d=k.additionalButton)==null?void 0:d.button}}},H=function(){var y,Z;
return(y=n())==null?void 0:(Z=y.additionalButton)==null?void 0:Z.thumbnailOverlayButtonRenderers},Q=function(){var y,Z;
return(y=n())==null?void 0:(Z=y.additionalButton)==null?void 0:Z.thumbnailOverlayButtonViewModels},T=function(){var y=[_.K(RA3,{volumeProps:D}),
_.K(sTJ,{playerControlsProps:D})];J()===1&&y.push(_.K(FLW,{playerApi:function(){return D().playerApi}}));
J()===2&&y.push(_.K(gJR,{appApi:function(){return D().appApi}}));
J()===3&&y.push(_.K(vJq,{playerApi:function(){return D().playerApi}}));
var Z=H();if(J()===4&&Z){Z=_.r(Z);for(var l=Z.next(),G={};!l.done;G={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$576:void 0},l=Z.next()){l=l.value;G.tooltip$jscomp$2=l.tooltip;var F=void 0,k=void 0;G.ariaLabel$jscomp$21=((F=l.accessibility)==null?void 0:(k=F.accessibilityData)==null?void 0:k.label)||G.tooltip$jscomp$2;F=void 0;G.icon$jscomp$53=(F=l.icon)==null?void 0:F.iconType;G.command$jscomp$576=l.command;G.tooltip$jscomp$2&&G.ariaLabel$jscomp$21&&G.icon$jscomp$53&&
y.push(_.K(k5B,{title:function(d){return function(){return d.tooltip$jscomp$2}}(G),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$21}}(G),
icon:function(d){return function(){return d.icon$jscomp$53}}(G),
command:function(d){return function(){return d.command$jscomp$576}}(G)}))}}Z=Q();
if(J()===4&&Z)for(Z=_.r(Z),l=Z.next(),G={};!l.done;G={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$54:void 0,command$jscomp$577:void 0},l=Z.next())l=l.value,G.tooltip$jscomp$3=l.title,G.ariaLabel$jscomp$22=l.accessibilityText||G.tooltip$jscomp$3,G.icon$jscomp$54=l.iconName,G.command$jscomp$577=_.Xo(l.onTap),G.tooltip$jscomp$3&&G.ariaLabel$jscomp$22&&G.icon$jscomp$54&&y.push(_.K(k5B,{title:function(d){return function(){return d.tooltip$jscomp$3}}(G),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$22}}(G),
icon:function(d){return function(){return d.icon$jscomp$54}}(G),
command:function(d){return function(){return d.command$jscomp$577}}(G)}));
return y};
return _.K(_.e,{cond:t,then:function(){return _.K("div",{class:"ytInlinePlayerControlsTopRightControls"},_.K(_.FB,{each:T},function(y){return _.K("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.K("div",{class:"ytInlinePlayerControlsButtonIcon"},y))}))}})},"og"),Ybf=_.MA(function(V){var D=V.props;
var f=V.data;var n=V.options;V={};V=_.KT("ytInlinePlayerControlsBottomRightControls",(V.ytInlinePlayerControlsBottomRightControlsHidden=function(){var t;return TcZ(f(),n())&&((t=n())==null?void 0:t.insetProgressBar)&&(D().isHovering||D().isDragging)},V));
return _.K("div",{class:V},_.K(AUf,{data:f}),_.K(_.e,{cond:function(){var t;return!((t=n())==null?0:t.hideTimeDisplay)},
then:function(){return _.K(aYX,{props:D,data:f})}}))},"pg"),AUf=_.MA(function(V){var D=V.data;
return _.K(_.BW,{data:function(){var f;return OJf((f=D())==null?void 0:f.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:BOR})},"qg"),aYX=_.MA(function(V){var D=V.props;
var f=V.data;return _.K(_.e,{cond:function(){return D().isLive},
then:function(){return _.K($4o,null)},
else:function(){return _.K(iHZ,{props:D,data:f})}})},"rg"),iHZ=_.MA(function(V){var D=V.props;
var f=V.data;var n=_.yT(function(){var t;return MBc((t=f())==null?void 0:t.thumbnailOverlays)},void 0,"kUmuA");
return _.K("div",{class:_.KT("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.pS.PLAYER_TIME_ELAPSED+" "+_.IiL(D().playedTime)}},_.K(_.dD,{data:function(){var t=_.IiL(D().videoDuration-D().playedTime);
return Object.assign({},{type:16,text:t},n())}}))},"sg"),$4o=_.MA(function(){var V=_.KT("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.K("div",{class:V},_.K(_.dD,{data:{type:17,text:_.pS.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"tg"),SbR=_.MA(function(V){var D=V.props;
var f=V.data;var n=V.options;return _.K(_.rLc,{progressBarProps:D,config:function(){var t,J=_.g((t=f())==null?void 0:t.multiMarkersPlayerBar,_.TWp),H;t=((H=n())==null?0:H.insetProgressBar)?2:1;var Q;H=(Q=n())==null?void 0:Q.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:t,chapterData:J,isInlinePlayback:!0,doSeekOnClick:H,playheadDotBehavior:H?1:0}}})},"ug");_.fT(_.MA(function(V){var D=V.data;var f=V.appApi;var n=V.options;var t=nKo(D,QP3(f));V={};f={};return _.K("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.K("div",{class:_.KT("ytInlinePlayerControlsDarkenedOverlay",(V.ytInlinePlayerControlsDarkenedOverlayShow=function(){return t().isHovering},V))}),_.K(uTZ,null),_.K(qbq,{data:t}),_.K(XIB,{data:D}),_.K(cUJ,{playerControlsProps:t,
isShortsPage:!1}),_.K("div",{class:_.KT((f.ytInlinePlayerControlsControlsHidden=function(){return t().isDragging},f))},_.K(EJv,{props:t,
data:D,options:n}),_.K(Ybf,{props:t,data:D,options:n})),_.K(_.e,{cond:function(){return TcZ(D(),n())},
then:function(){return _.K(SbR,{props:t,data:D,options:n})}}))},"mg"),"yt-inline-player-controls",{props:{data:_.WX,
appApi:_.Dn,options:_.WX}});var LS=function(){var V=_.E.apply(this,arguments)||this;V.opts=null;V.playerControlsData=null;V.playerControlsAppApi={openInMiniplayer:function(){V.openInMiniplayer()}};
V.playerControlsOptions={};V.noAnimation=!1;V.playbackIntentTriggered=!1;V.positionData=null;V.hidden=!0;V.active=!1;V.playing=!1;V.videoPreviewDataIndex=0;V.JSC$17084_playerPromise=null;V.player=null;V.enableAudioControls=!1;V.hasBeenUnmuted=!1;V.captionsHaveBeenTurnedOff=!1;V.JSC$17084_playerEvents=new Map;V.videoPreviewFetchRequest=null;V.scheduledPreviewEndJobId=null;V.JSC$17084_preventProgressSaveTimer=null;V.watchEndpointStartTimeUpdaterInterval=null;V.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};V.windowOnBlurFn=function(){V.deactivate()};
return V};
_.v(LS,_.E);_.P=LS.prototype;
_.P.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.c("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"}}}};
_.P.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$17084_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$17084_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$17084_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$17084_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Ty(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Ty(this,this.onScroll))};
_.P.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Ty(this,this.onScroll))};
_.P.onPageTypeChange=function(){this.deactivate()};
_.P.onWindowResized=function(){this.deactivate()};
_.P.onCaptionsChanged=function(V){V=!!V.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!V);this.setCaptionSize()};
_.P.setCaptionSize=function(){var V;if(this.active&&!this.captionsHaveBeenTurnedOff&&((V=this.player)==null?0:V.getCaptionWindowContainerId())){var D;(D=this.player)==null||D.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.P.currentPageAllowed=function(){return!this.isWatchPage};
_.P.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var V=this.positionData,D=V.initialTopPosition,f=V.initialHorizontalPosition;_.wI(this.hostElement,{"--ytd-video-preview-translate-left":V.finalHorizontalPosition-f+"px","--ytd-video-preview-translate-top":V.finalTopPosition-D+"px","--ytd-video-preview-original-top-position":D+"px","--ytd-video-preview-original-horizontal-position":f+"px",
"--ytd-video-preview-initial-scale":"scale("+V.initialScale+")","--ytd-video-preview-width":V.videoPreviewWidth+"px","--ytd-video-preview-height":V.videoPreviewHeight+"px"});return!0};
_.P.handleOpenVideoPreviewAction=function(V){var D=this,f;return _.w(function(n){if(!D.currentPageAllowed())return n.return(0);D.opts=V;return(f=D.alignVideoPreviewForAnimation(V.thumbnail))?n.return(D.activate()):n.return(0)})};
_.P.onMouseLeave=function(V){this.shouldDeactivateOnMouseLeave(V)&&this.deactivate()};
_.P.onScroll=function(){var V,D;((V=this.opts)==null?0:V.isAutoplay)&&((D=this.opts)==null?0:D.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.P.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.dm.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.P.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.P.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",LS.JSC$17083_DEFAULT_CLICK_LOCATION_BEHAVIOR,LS.JSC$17083_CLICK_LOCATION_ID_MAP)};
_.P.shouldDeactivateOnMouseLeave=function(V){V=V.relatedTarget;if(!V)return!0;var D;return(D=this.opts)!=null&&D.mediaRenderer?!_.oU(this.opts.mediaRenderer).contains(V):!0};
_.P.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.P.onPlaybackStart=function(){var V=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$17084_preventProgressSaveTimer=
_.JI(_.dm,function(){V.resetPreventProgressSaveTimer()},1E4);
var D;if((D=this.opts)==null?0:D.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.JI(_.dm,function(){V.hasMultipleVideoPreviews()?V.startPlaybackForNextVideo():V.deactivate()},this.opts.videoPreviewDurationMs);
var f;this.player.setGlobalCrop(((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.P.getRoundedCornersSize=function(){var V;if((V=this.opts)==null?0:V.roundedCornersSize){var D;return(D=this.opts)==null?void 0:D.roundedCornersSize}var f;if((f=this.opts)==null?0:f.enableRounding){var n;if(((n=this.opts)==null?void 0:n.thumbnailSize)==="small")return 1;var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="medium")return 2;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="large")return 3}return _.c("web_imp_inset_progress_bar")?3:0};
_.P.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.P.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.P.onMediaContainerClick=function(V){this.isShortcutClick(V)||(this.navigateToWatch(V),V.preventDefault(),V.stopPropagation())};
_.P.activate=function(){var V=this,D,f,n,t,J,H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:if(!V.currentPageAllowed())return Z.return(0);f=(D=V.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint;n=_.Yl.instance;if(!f||!n)return Z.return(0);V.playbackIntentTriggered=!0;((t=V.opts)==null?0:t.mediaRenderer)&&((J=V.opts)==null||!J.isAutoplay)&&LHR(V.opts.mediaRenderer,function(){V.deactivate()});
_.pO(V,function(){V.revealPreviewUi()});
H={};_.c("enable_unknown_lact_fix_on_html5")&&(_.DY().resolve(_.ue),H.lact=_.Vf());V.videoPreviewFetchRequest=YRc(n,V.getInlinePlaybackRequestData(V.videoPreviewData),H);_.wx(Z,2);return _.b(Z,V.videoPreviewFetchRequest,4);case 4:Q=Z.yieldResult;if(((T=Q)==null?void 0:(y=T.playabilityStatus)==null?void 0:y.status)==="OK")return Z.return(V.handlePlayerResponse(Q));throw Error("Rj");case 2:_.KW(Z),V.deactivate();case 3:return Z.return(1)}})};
_.P.getInlinePlaybackRequestData=function(V){var D,f=_.c("web_imp_player_mute_params")?((D=this.opts)==null?void 0:D.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:V.inlinePlaybackEndpoint,startPlaybackInMutedState:f}};
_.P.handlePlayerResponse=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l;return _.w(function(G){if(G.nextAddress==1){f=D.getInlinePlaybackVideoId();if(!(((n=V)==null?0:(t=n.videoDetails)==null?0:t.videoId)&&D.currentPageAllowed()&&D.playbackIntentTriggered&&D.opts&&f))return D.deactivate(),G.return(0);if(V.videoDetails.videoId!==f)return G.return(0);D.enableAudioControls=!!((J=V.playerConfig)==null?0:(H=J.inlinePlaybackConfig)==null?0:H.showAudioControls);V.trackingParams=D.getInlinePlaybackTrackingParams();
if(!D.inlinePlayer)return G.return(0);Q={};if(y=_.g((T=D.videoPreviewData)==null?void 0:T.inlinePlaybackEndpoint,_.pl))Q.watch_endpoint=y;if(D.videoPreviewData){var F,k=(F=_.g(D.videoPreviewData.inlinePlaybackEndpoint,_.pl))==null?void 0:F.startTimeSeconds;k!==void 0&&(V.playerConfig||(V.playerConfig={}),V.playerConfig.playbackStartConfig||(V.playerConfig.playbackStartConfig={}),V.playerConfig.playbackStartConfig.startPosition||(V.playerConfig.playbackStartConfig.startPosition={}),V.playerConfig.playbackStartConfig.startSeconds=
k,V.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(k*1E3))}D.inlinePlayer.loadVideoWithPlayerResponse(V,Q);if(D.JSC$17084_playerPromise)return G.jumpTo(2);D.JSC$17084_playerPromise=D.inlinePlayer.getPlayerPromise();return _.b(G,D.JSC$17084_playerPromise,3)}G.nextAddress!=2&&(Z=G.yieldResult,Z.setInlinePreview(!0),Z.setSizeStyle(!1,!0),D.ytPlayerListenerBehavior.listenToPlayerEvents(Z,D.JSC$17084_playerEvents),D.player=Z,_.PA(D.hostElement,"player-api-ready"));((l=D.opts)==
null?0:l.showPlayerControls)&&D.videoPreviewData&&D.player&&(D.playerControlsData={playerResponse:V,isInlinePlayback:!0,thumbnailOverlays:D.videoPreviewData.thumbnailOverlays,playerApi:D.player},D.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!D.unroundCornersForPlayback,additionalButton:D.getAdditionalButtonType(D.videoPreviewData.thumbnailOverlays)});return G.return(2)})};
_.P.revealPreviewUi=function(){var V=this;this.playbackIntentTriggered&&_.q1R(this,function(){V.hasThumbnailPositionChangedSinceTriggered()||(V.updateActiveState(!0),V.noAnimation=!1)})};
_.P.hasThumbnailPositionChangedSinceTriggered=function(){var V=this.positionData,D=this.getThumbnailPositionData();return(V==null?void 0:V.initialTopPosition)!==(D==null?void 0:D.initialTopPosition)||(V==null?void 0:V.initialHorizontalPosition)!==(D==null?void 0:D.initialHorizontalPosition)};
_.P.getThumbnailPositionData=function(){var V,D;if((D=this.opts)==null||!D.thumbnail)return null;D=this.opts.thumbnail;var f=((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?!1:!0;var n=D.getBoundingClientRect();V=n.width;D=n.height;var t=n.top+window.scrollY;n=n.left+window.scrollX;var J=f?Math.ceil(V):V;f=f?Math.ceil(D):D;var H=V/J;V={initialScale:H,initialTopPosition:t-12*H,finalTopPosition:t-12-(f-D)/2,initialHorizontalPosition:n-(12+(J-V)/2),finalHorizontalPosition:n-12-(J-V)/
2,videoPreviewWidth:J,videoPreviewHeight:f};return V};
_.P.updateActiveState=function(V){this.active=V;this.ytdReduxBehavior.dispatch(_.nA({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:V}))};
_.P.stopPlayer=function(V){V=V.resetWatchEndpointStartTime===void 0?!1:V.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(V)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.dm.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.P.deactivate=function(V){V=V===void 0?{}:V;V=V.resetWatchEndpointStartTime===void 0?!1:V.resetWatchEndpointStartTime;wY&&(wY.disconnect(),wY=null);this.stopPlayer({resetWatchEndpointStartTime:V});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.P.isValidThumbnailOverlayButton=function(V,D){V=V.thumbnailOverlayButtonRenderer;var f;return!!V&&!!V.tooltip&&!((f=V.icon)==null||!f.iconType)&&D.includes(V.icon.iconType)};
_.P.isValidThumbnailOverlayButtonViewModel=function(V,D){var f;V=_.g((f=V.thumbnailOverlayButtonViewModel)==null?void 0:f.overlayButton,_.cW);return!!V&&!!V.title&&!!V.iconName&&D.includes(V.iconName)};
_.P.getAdditionalButtonType=function(V){var D=this;if(_.c("web_imp_fastforward_button"))return{button:1};if(_.c("web_imp_miniplayer_button"))return{button:2};if(_.c("web_imp_playback_speed_button"))return{button:3};var f=["BOX_STACK_3"],n=(V||[]).filter(function(J){return D.isValidThumbnailOverlayButton(J,f)}).map(function(J){return J.thumbnailOverlayButtonRenderer});
if(n.length)return{button:4,thumbnailOverlayButtonRenderers:n};var t=["BOX_STACK_3"];V=(V||[]).filter(function(J){return D.isValidThumbnailOverlayButtonViewModel(J,t)}).map(function(J){return _.g(J.thumbnailOverlayButtonViewModel.overlayButton,_.cW)});
if(V.length)return{button:4,thumbnailOverlayButtonViewModels:V}};
_.P.allowCaptions=function(){var V;return!((V=this.opts)==null?0:V.forceCaptionsOff)};
_.P.allowUnmuting=function(){var V;return this.enableAudioControls&&!((V=this.opts)==null?0:V.forceMutedVolume)};
_.P.beginStartTimeUpdater=function(){var V=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.HI(function(){V.updateWatchEndpointStartTime()},1E3)};
_.P.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.P.resetPreventProgressSaveTimer=function(){this.JSC$17084_preventProgressSaveTimer!==null&&(_.dm.cancelJob(this.JSC$17084_preventProgressSaveTimer),this.JSC$17084_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.P.updateWatchEndpointStartTime=function(V){var D=this.videoPreviewData;if(this.player&&D!=null&&D.inlinePlaybackEndpoint&&!this.JSC$17084_preventProgressSaveTimer){V=V?0:Math.floor(this.player.getCurrentTime());var f=_.g(D.navigationEndpoint,_.pl);f&&(f.startTimeSeconds=V);if(D=_.g(D.inlinePlaybackEndpoint,_.pl))D.startTimeSeconds=V}};
_.P.isShortcutClick=function(V){return!!V&&(V.ctrlKey||V.shiftKey||V.metaKey)};
_.P.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.P.openInMiniplayer=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1){f=(D=V.videoPreviewData)==null?void 0:D.navigationEndpoint;if(!f)return n.return();_.b$().lockupActivation=!0;return _.b(n,_.yjV(_.DY().resolve(_.qw),f),2)}_.b$().userActivation=!0;_.yz(n)})};
_.P.navigateToWatch=function(V){var D,f=(D=this.videoPreviewData)==null?void 0:D.navigationEndpoint;if(f){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(f,V,!0);else{if(_.c("web_thumbnail_to_watch_transition")){var n,t;(n=this.opts)==null||(t=n.onNavigateToWatchCallback)==null||t.call(n)}_.PA(this.hostElement,"yt-navigate",{endpoint:f})}this.deactivate()}};
_.P.getInlinePlaybackVideoId=function(){var V,D;return(D=_.g((V=this.videoPreviewData)==null?void 0:V.inlinePlaybackEndpoint,_.pl))==null?void 0:D.videoId};
_.P.getInlinePlaybackTrackingParams=function(){var V,D;return(V=this.videoPreviewData)==null?void 0:(D=V.inlinePlaybackEndpoint)==null?void 0:D.clickTrackingParams};
_.P.hasMultipleVideoPreviews=function(){var V;return!!(((V=this.opts)==null?0:V.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.P.startPlaybackForNextVideo=function(){var V;(V=this.opts)!=null&&V.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())};
_.IG.Object.defineProperties(LS.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.opts)==null?0:V.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.opts)==null||!V.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 V;if(Array.isArray((V=this.opts)==null?void 0:V.videoPreviewData)){var D;return(D=this.opts)==null?void 0:D.videoPreviewData[this.videoPreviewDataIndex]}var f;return(f=this.opts)==null?void 0:f.videoPreviewData}}});
LS.prototype.onIsAdsVideoChange=LS.prototype.onIsAdsVideoChange;LS.prototype.onInlinePreviewIsEnabledChange=LS.prototype.onInlinePreviewIsEnabledChange;LS.prototype.optsChanged=LS.prototype.optsChanged;LS.prototype.onMouseLeave=LS.prototype.onMouseLeave;LS.JSC$17083_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);LS.JSC$17083_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"}];
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],LS.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],LS.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],LS.prototype,"componentBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],LS.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.O_.YtSparklesClickLocationBehavior),_.p("design:type",Object)],LS.prototype,"ytSparklesClickLocationBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LS.prototype,"opts",void 0);_.S([_.q(),_.p("design:type",Object)],LS.prototype,"playerControlsData",void 0);
_.S([_.q(),_.p("design:type",Object)],LS.prototype,"playerControlsAppApi",void 0);_.S([_.q(),_.p("design:type",Object)],LS.prototype,"playerControlsOptions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LS.prototype,"noAnimation",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LS.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LS.prototype,"active",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LS.prototype,"playing",void 0);_.S([_.q({selector:_.ePU}),_.p("design:type",Boolean)],LS.prototype,"inlinePreviewIsEnabled",void 0);_.S([_.q(),_.p("design:type",String)],LS.prototype,"pagePath",void 0);_.S([_.q({selector:_.zq}),_.p("design:type",Boolean)],LS.prototype,"isWatchPage",void 0);_.S([_.R("videoPreviewData"),_.p("design:type",Object),_.p("design:paramtypes",[])],LS.prototype,"thumbnailData",null);
_.S([_.R("opts","active"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"hidePlayerControls",null);_.S([_.R("opts"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"isAdsVideo",null);_.S([_.R("opts"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"roundedCornersSmall",null);
_.S([_.R("opts"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"roundedCornersMedium",null);_.S([_.R("opts"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"roundedCornersLarge",null);_.S([_.R("opts"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LS.prototype,"unroundCornersForPlayback",null);
_.S([_.R("opts","videoPreviewDataIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],LS.prototype,"videoPreviewData",null);_.S([_.q(),_.p("design:type",Object)],LS.prototype,"videoPreviewDataIndex",void 0);_.S([_.Zv("#inline-player"),_.p("design:type",Object)],LS.prototype,"inlinePlayer",void 0);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],LS.prototype,"onMouseLeave",null);
_.S([_.eY("opts"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LS.prototype,"optsChanged",null);_.S([_.eY("inlinePreviewIsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LS.prototype,"onInlinePreviewIsEnabledChange",null);_.S([_.KI("isAdsVideo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LS.prototype,"onIsAdsVideoChange",null);
_.S([_.a({is:"ytd-video-preview",disableElementRegistration:!0})],LS);
_.Y(LS,"ytd-video-preview",function(){if(eAB!==void 0)return eAB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return eAB=V},{mode:2});
}catch(e){_._DumpException(e)}
try{
var xb0,MX3,hz0;xb0=function(V){return _.c("kevlar_watch_cinematics_invisible")||V.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_fullscreen")||V.theater&&!V.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_theater")};
MX3=function(){var V=document.createElement("canvas"),D=V.getContext("2d");if(!D)throw Error("dm");_.mv(V,{position:"absolute",width:"100%",height:"100%"});return{element:V,context:D}};
hz0=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.c("kevlar_watch_cinematics_css_blur")};
_.Ub3=function(V,D,f){return Math.abs(V-D)<=(f||1E-6)};
_.Vwv=function(V,D){return V==D?!0:V&&D?V.width==D.width&&V.height==D.height:!1};_.DDB=new _.L("notificationActionRenderer");var fVv=function(V){var D=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.wU;this.element.addEventListener("load",function(){D.loaded=!0;D.resolver.resolve(D.element)});
this.element.addEventListener("error",function(){D.failed=!0});
this.element.src=V};var n6V=function(V,D){this.image=V;this.frame=D};
n6V.prototype.drawToCanvas=function(V,D){var f=this.frame.width/this.frame.columns,n=this.frame.height/this.frame.rows,t=D.offsetX,J=D.offsetY;xb0(D)?(V.fillStyle=D.fullscreen?"#000":"#0f0f0f",V.fillRect(t,J,(D==null?void 0:D.width)||f,(D==null?void 0:D.height)||n)):V.drawImage(this.image,this.frame.column*f,this.frame.row*n,f,n,t,J,(D==null?void 0:D.width)||f,(D==null?void 0:D.height)||n)};
var twv=function(V){this.color=V};
twv.prototype.drawToCanvas=function(V,D){var f=D.offsetX,n=D.offsetY,t=D.width,J=D.height;V.fillStyle=xb0(D)?D.fullscreen?"#000":"#0f0f0f":this.color;V.fillRect(f,n,t,J)};var D0=function(V,D){_.hy.call(this);this.playerApi=D;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.bB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();P5X(this,V);o6c(this);this.update()};
_.v(D0,_.hy);D0.prototype.addEventListeners=function(){var V=this,D=function(){V.update()},f=function(t){V.paused||(t.type==="newdata"&&(V.mosaics.clear(),JGX(V),fV(V)),o6c(V),V.update())},n=function(){V.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",D);this.playerApi.addEventListener("onVideoDataChange",f);this.playerApi.addEventListener("onStateChange",n);this.addOnDisposeCallback(function(){V.playerApi.removeEventListener("onVideoProgress",D);V.playerApi.removeEventListener("onVideoDataChange",f);V.playerApi.removeEventListener("onStateChange",n)})};
var P5X=function(V,D){V.cinematicContainerRenderer!==D&&(V.cinematicContainerRenderer=D,JGX(V),fV(V),V.colorStoreUpdateJobId=_.dm.addLowPriorityJob(function(){var f;if((f=V.cinematicContainerRenderer.colorStore)!=null&&f.sampledColors){f=Infinity;for(var n=_.r(V.cinematicContainerRenderer.colorStore.sampledColors),t=n.next();!t.done;t=n.next()){t=t.value;var J=Number(t.key);J!==0&&J<f&&(f=J);J=_.aB(t.value);V.colorStore.set(t.key,J)}V.colorStoreTimeInterval=f}}))},JGX=function(V){V.colorStoreUpdateJobId&&
(_.dm.cancelJob(V.colorStoreUpdateJobId),V.colorStoreUpdateJobId=void 0);
V.colorStore.clear();V.currentStoryboardColor=void 0},rGf=function(V,D){var f;
return(f=V.getStoryboardFrame(D))==null?void 0:f.url};
D0.prototype.onPlayerStateChange=function(){this.update()};
D0.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var o6c=function(V){var D=V.getStoryboardFrame(0);D&&(D=new _.bB(D.width/D.columns,D.height/D.rows),_.Vwv(V.currentStoryboardSize,D)||(V.currentStoryboardSize=D,V.publish("STORYBOARD_SIZE_CHANGED",V.currentStoryboardSize)))},HeW=function(V,D){V.currentStoryboardIndex=D;
V.pendingStoryboardIndex=NaN;D=V.getStoryboardFrame(V.currentStoryboardIndex);V.currentStoryboard=new n6V(V.mosaics.get(D.url).element,D);V.publish("STORYBOARD_CHANGED",V.currentStoryboard);V.lastUpdateTime=(0,_.VW)()};
D0.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var fV=function(V){V.currentStoryboardIndex=NaN;V.pendingStoryboardIndex=NaN;V.currentStoryboard&&(V.currentStoryboard=void 0,V.publish("STORYBOARD_CHANGED",void 0));V.lastUpdateTime=NaN};
D0.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)fV(this);else{var V=this.playerApi.getPlayerState(1);if(V===-1||V===5||V===0)fV(this);else if(isNaN(this.lastUpdateTime)||!((0,_.VW)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(V=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){V=""+Math.round(V*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var D=this.colorStore.get(V);D?D!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=D,this.currentStoryboard=new twv(D),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.VW)()):(_.zP(new _.cI("Could not find color for timestamp: "+V,this.cinematicContainerRenderer)),fV(this))}else fV(this);else wQR(this,V)}};
var wQR=function(V,D){var f=V.getStoryboardFrameIndex(D);if(f!==V.currentStoryboardIndex&&f!==V.pendingStoryboardIndex){D=rGf(V,f);var n=V.mosaics.get(D);n?n.loaded&&HeW(V,f):(V.pendingStoryboardIndex=f,f=new fVv(D),V.mosaics.set(D,f),f.resolver.promise.then(function(){if(!V.isDisposed()&&!V.paused&&!isNaN(V.pendingStoryboardIndex)){var t=rGf(V,V.pendingStoryboardIndex);if(t){var J;(J=V.mosaics.get(t))!=null&&J.loaded&&HeW(V,V.pendingStoryboardIndex)}else fV(V)}}))}};
D0.prototype.getStoryboardFrameIndex=function(V){var D=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(V,D)};
D0.prototype.getStoryboardFrame=function(V){var D=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,f,n;return((n=(f=this.playerApi).getStoryboardFrame)==null?void 0:n.call(f,V,D))||null};
D0.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var tQ=function(V,D,f,n){n=n===void 0?!1:n;_.cq.call(this);this.cinematicContainerRenderer=D;this.playerApi=f;this.theater=this.fullscreen=!1;var t;this.ambientLightThemeEnabled=!n&&!!(D==null?0:(t=D.config)==null?0:t.enableInLightTheme);this.ambientFullscreenEnabled=n&&_.c("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=n&&_.c("web_cinematic_theater_mode");this.container=document.createElement("div");V.appendChild(this.container);var J;if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")||
(D==null?0:(J=D.config)==null?0:J.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);QZV(this);V=this.ambientV2Container||this.container;this.backCanvas=MX3();this.frontCanvas=MX3();V.appendChild(this.backCanvas.element);V.appendChild(this.frontCanvas.element);this.storyboardManager=new D0(D,this.playerApi);_.wX(this,this.storyboardManager);this.addEventListeners();T6R(this)?beR(this,100+nV(this)*3*2,100+nV(this)*3*2):Ku0(this);
yGq(this,this.storyboardManager.currentStoryboard)};
_.v(tQ,_.cq);var QZV=function(V){V.ambientV2Container?Zec(V):(_.mv(V.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+jZ0(V)+", "+lVc(V)+")"}),hz0()&&_.mv(V.container,"filter","blur("+_.tU("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Zec=function(V){if(V.ambientV2Container){var D=V.playerApi.getVideoAspectRatio();
_.mv(V.container,{"aspect-ratio":""+D,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.mv(V.ambientV2Container,{"aspect-ratio":""+D,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+jZ0(V)+", "+lVc(V)+")"});hz0()&&_.mv(V.ambientV2Container,"filter","blur("+_.tU("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
tQ.prototype.setFullscreen=function(V,D){this.fullscreen=V;this.theater=!!D;QZV(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),V=this.storyboardManager.currentStoryboard,GfW(this),V&&eWc(this,V)};
tQ.prototype.addEventListeners=function(){var V=this,D=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(t){yGq(V,t)}),f=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Ku0(V)});
this.addOnDisposeCallback(function(){V.storyboardManager.unsubscribeByKey(D);V.storyboardManager.unsubscribeByKey(f)});
if(this.ambientV2Container){var n=function(){Zec(V)};
this.playerApi.addEventListener("onVideoDataChange",n);this.addOnDisposeCallback(function(){V.playerApi.removeEventListener("onVideoDataChange",n)})}};
var Ku0=function(V){if(!T6R(V)){var D=V.storyboardManager.currentStoryboardSize;isNaN(D.width)||isNaN(D.height)||beR(V,Number(D.width)+nV(V)*3*2,Number(D.height)+nV(V)*3*2)}},beR=function(V,D,f){V.backCanvas.element.width=D;
V.backCanvas.element.height=f;V.frontCanvas.element.width=D;V.frontCanvas.element.height=f},T6R=function(V){return V.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},yGq=function(V,D,f){f=f===void 0?!1:f;
var n=V.frontCanvas.element.getAnimations()[0];n?(n.pause(),V.backCanvas.context.globalAlpha=Number(getComputedStyle(V.frontCanvas.element).opacity),V.frontCanvas.element.style.opacity="0",n.finish()):V.backCanvas.context.globalAlpha=1;V.backCanvas.context.drawImage(V.frontCanvas.element,0,0,V.backCanvas.element.width,V.backCanvas.element.height);GfW(V);D&&eWc(V,D);D=D?V.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.tU("cinematic_watch_fade_out_duration",500);n=_.tU("cinematic_watch_transition_frame_rate")/
1E3;var t={};n&&(t={easing:"steps("+Math.round(D*n)+")"});(f===void 0?0:f)||V.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:D,iterations:1},t));V.frontCanvas.element.style.opacity="1"},GfW=function(V){var D=V.ambientLightThemeEnabled||V.ambientTheaterModeEnabled,f=V.ambientLightThemeEnabled||V.ambientFullscreenEnabled;
V.frontCanvas.context.fillStyle=V.theater&&D||V.fullscreen&&f?"#000":"#0f0f0f";hz0()||(V.frontCanvas.context.filter="blur(0)");V.frontCanvas.context.fillRect(0,0,V.frontCanvas.element.width,V.frontCanvas.element.height)},eWc=function(V,D){hz0()||(V.frontCanvas.context.filter="blur("+nV(V)+"px)");
V.frontCanvas.context.globalAlpha=V.ambientFullscreenEnabled||V.ambientTheaterModeEnabled?_.tU("cinematic_watch_effect_letterbox_opacity",.8):_.tU("cinematic_watch_effect_opacity",.4);var f={offsetX:nV(V)*3,offsetY:nV(V)*3,theater:V.theater,fullscreen:V.fullscreen};T6R(V)&&(f.width=100,f.height=100);D.drawToCanvas(V.frontCanvas.context,f);V.frontCanvas.context.globalAlpha=1},nV=function(V){var D;
return(D=V.cinematicContainerRenderer.config.blurStrength)!=null?D:5},jZ0=function(V){var D,f;
if((V.fullscreen||V.theater)&&((D=V.cinematicContainerRenderer.config)==null?0:(f=D.watchFullscreenConfig)==null?0:f.colorSourceWidthMultiplier))return V.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var n;return(n=V.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?n:V.cinematicContainerRenderer.config.colorSourceSizeMultiplier},lVc=function(V){var D,f;
if((V.fullscreen||V.theater)&&((D=V.cinematicContainerRenderer.config)==null?0:(f=D.watchFullscreenConfig)==null?0:f.colorSourceHeightMultiplier))return V.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var n;return(n=V.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?n:V.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
tQ.prototype.disposeInternal=function(){_.cq.prototype.disposeInternal.call(this);this.container.remove()};
tQ.prototype.clear=function(){yGq(this,void 0,!0)};
tQ.prototype.pause=function(){this.storyboardManager.pause()};var cGv;cGv=_.yE(function(){var V,D,f=!((D=(V=document.createElement("canvas")).getContext)==null||!D.call(V,"2d")),n;V=!((n=CSS)==null||!n.supports("filter: blur(0)"));n=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var t;return f&&V&&n&&!((t=CSS)==null||!t.supports("aspect-ratio: 1 / 1"))});
_.PF=function(V,D){_.hy.call(this);this.container=V;this.playerApi=D;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Fuv(this);this.update()};
_.v(_.PF,_.hy);_.g6W=function(V){var D=document.documentElement.hasAttribute("dark");V.isDarkModeEnabled=D;V.update()};
_.v63=function(V,D){V.settingEnabled=D;V.update()};
_.PF.prototype.setFullscreen=function(V,D){this.fullscreen=V;this.theater=!!D;this.update()};
_.kfc=function(V,D){V.cinematicContainerRenderer=D;V.cinematicContainerRenderer&&(V.cinematicsVe=_.Bj(V.isShorts()?227858:159022),_.oj(_.lS(),V.cinematicsVe),V.loggingClientData={watchCinematicContainerData:{presentationStyle:V.cinematicContainerRenderer.presentationStyle}});V.update()};
_.PF.prototype.isShorts=function(){var V,D;return((V=this.cinematicContainerRenderer)==null?void 0:(D=V.config)==null?void 0:D.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.PF.prototype.isAllowed=function(){var V;if(V=cGv()){var D,f,n;V=((f=this.cinematicContainerRenderer)==null?void 0:f.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((n=this.cinematicContainerRenderer)==null||!n.colorStore)||((D=this.cinematicContainerRenderer)==null?void 0:D.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(V)if(_.c("web_cinematics_pausing")){var t,J;V=this.isDarkModeEnabled||!!((t=this.cinematicContainerRenderer)==
null?0:(J=t.config)==null?0:J.enableInLightTheme)}else{var H,Q;t=!!((H=this.cinematicContainerRenderer)==null?0:(Q=H.config)==null?0:Q.enableInLightTheme)&&(_.XB("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);V=this.isDarkModeEnabled||t}if(H=V){var T,y;H=!((y=(T=this.prefersReducedMotionQuery)==null?void 0:T.matches)!=null&&y)}return H};
_.sZX=function(V){(V=V.currentCinematicEffect)!=null&&(V=V.storyboardManager,V.paused=!1,o6c(V),V.update())};
_.PF.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Fuv=function(V){if(!_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var D=window.matchMedia("(prefers-reduced-motion: reduce)"),f=function(){V.update()};
D.addListener(f);V.addOnDisposeCallback(function(){D.removeListener(f)});
return D}};
_.PF.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var V=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new tQ(this.container,V,this.playerApi,this.isDarkModeEnabled),_.wX(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var D=this.currentCinematicEffect;D.cinematicContainerRenderer!==
V&&(D.cinematicContainerRenderer=V,P5X(D.storyboardManager,V),QZV(D));V=_.Gm();_.eJ(0,194,!0);V.save();V=_.Ni();this.cinematicsVe&&V&&_.SJ(V,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(V=_.Ni(),this.cinematicsVe&&V&&_.WA(V,[this.cinematicsVe],!1,this.loggingClientData),_.Mr(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.IG.Object.defineProperties(_.PF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var kh3;var syR;_.Bt({_template:function(){if(syR!==void 0)return syR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=
V.content,f=D.insertBefore;kh3===void 0&&(kh3=document.createElement("template"));var n=kh3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return syR=V},
is:"tp-yt-iron-pages",behaviors:[_.sp,_.iU],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var eMR;_.cwB=function(){if(_.c("kevlar_home_skeleton")&&!eMR){var V=document.querySelector("#home-page-skeleton");V&&(_.zm("hgcr"),_.ZC(V),eMR=!0)}};
eMR=!1;_.Fg=new _.L("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var wZq,TYZ,bS3,KtX,yyX,ZSJ,jEw,l20,em3,cyB,FtV,koR,BYo,dn3,sEB,ggR,vgc,mnV;_.HSq=function(V,D,f){D=D===void 0?5:D;if(D!==0){var n=typeof V==="function"?V():document.querySelector(V);n?(f==null?0:f.enableSmartFocus)?_.MQd(n):n.focus():setTimeout(function(){_.HSq(V,D-1,f)},500)}};
wZq=function(V){return String.raw.apply(String,[{raw:V}].concat(_.sz(_.gQ.apply(1,arguments).map(function(D){return D instanceof Array?D.join(""):D}))))};
TYZ=function(V){var D=_.gQ.apply(1,arguments);if(!Array.isArray(V)||!Array.isArray(V.raw)||V.length!==V.raw.length||!_.kM9&&V===V.raw||!(_.kM9&&!_.sMF||_.wQ(V))||D.length+1!==V.length)throw new TypeError("ea");return new QEc(Object.freeze({strings:Object.freeze(V),args:Object.freeze(D)}))};
bS3=function(V){return _.P2x(_.tnZ(V&16777215))<.5};
KtX=function(V,D,f){var n=f.minimumRowsOfVideosBetweenSections===void 0?1:f.minimumRowsOfVideosBetweenSections;return V<(f.minimumRowsOfVideosAtStart===void 0?2:f.minimumRowsOfVideosAtStart)||D!==null&&V-D<=n?!1:!0};
yyX=function(V,D){var f=0,n=0;V=_.r(V);for(var t=V.next();!t.done;t=V.next()){var J=t.value;if(J.richItemRenderer)J.richItemRenderer.rowIndex=n,J.richItemRenderer.colIndex=f++,f===D&&(f=0,n++);else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.rowIndex=n,J.richGroupRenderer.colIndex=f,f+=J.richGroupRenderer.numColumns,f===D&&(f=0,n++);else if(J.richSectionRenderer){var H=t=void 0;if(J=_.g((t=J)==null?void 0:(H=t.richSectionRenderer)==null?void 0:H.content,_.NTo))J.rowIndex=
n++}}};
ZSJ=function(V,D){var f=D.contentElement;D=D.rendererToTagNameMap;if(f&&D&&D.size!==0){for(var n=new Map,t=_.r(f.children),J=t.next();!J.done;J=t.next()){J=J.value;var H=J.tagName.toLowerCase(),Q=n.get(H);Q||(Q=[],n.set(H,Q));Q.push(J)}if(n.size!==0)for(t=Math.min(V.length,f.children.length),J=new Map,H=0;H<t;H++){Q=Object.keys(V[H])[0];Q=D.get(Q);if(!Q)break;var T=J.get(Q);T===void 0&&(T=0,J.set(Q,T));var y=n.get(Q);if(!y||T>=y.length)break;J.set(Q,T+1);Q=y[T];T=f.children[H];T!==Q&&(_.DBU=!0,_.f4F.set(Q,
!0),f.insertBefore(Q,T),_.f4F.delete(Q),_.DBU=!1)}}};
jEw=function(V,D,f,n,t,J,H){n=n===void 0?{}:n;if(!V||!V.length)return[];V=V.slice();var Q=[],T=[];t=null;for(var y=0,Z=function(C){T.sort(function(W,I){return I.skippedOnRow-W.skippedOnRow});
for(var A,O=(A=T.shift())==null?void 0:A.content;O;)!O.richSectionRenderer&&C||Q.push(O),A=void 0,O=(A=T.shift())==null?void 0:A.content},l=void 0;V.length>0||T.length>0;){for(var G=[],F=D;F>0;){var k=void 0,d=void 0,z=(d=T[0]&&T[0].skippedOnRow<y?(k=T.shift())==null?void 0:k.content:void 0)!=null?d:V.shift();
if(!z)break;if(z.richItemRenderer)k=z.richItemRenderer.targetId,d=void 0,k&&((d=H)==null?0:d.has(k))&&(k=H.get(k),!l||k&&k.timestamp>l.timestamp)&&(l=k),G.push(z),F--;else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.numColumns<=F?(G.push(z),F-=z.richGroupRenderer.numColumns):F===D&&z.richGroupRenderer.numColumns>D?(G.push({richGroupRenderer:Object.assign({},z.richGroupRenderer,{numColumns:D})}),F=0):T.push({content:z,skippedOnRow:y});else if(z.richSectionRenderer)if(KtX(y,
t,n)&&F===D){Q.push(z);t=y;y++;continue}else T.push({content:z,skippedOnRow:y});else if(z.continuationItemRenderer){Z(!0);Q.push(z);F=0;break}if(F===0)Q.push.apply(Q,_.sz(G));else if(!f&&V.length===0){Z(!1);Q.push.apply(Q,_.sz(G));F=0;break}}y++;l&&(Q.push(l.content),y++);l=void 0}yyX(Q,D);J&&ZSJ(Q,J);return Q};
l20=function(){return _.gQ.apply(0,arguments).flat().filter(function(V){return V}).join(";")};
em3=function(){return TYZ(Gov,l20.apply(null,_.sz(_.gQ.apply(0,arguments))))};
cyB=function(V){switch(V){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
FtV=function(V){return V.talkToRecs};
koR=function(V,D){if(D){var f=_.Ol().getState().entities.flowStateEntity,n=ggR(V),t=[D];n&&n!==D&&t.push(n);var J=!0,H;if(f&&V.flowStateEntityKey&&((H=f[V.flowStateEntityKey])==null?void 0:H.primaryButtonDisabled)!==void 0){var Q;J=!((Q=f[V.flowStateEntityKey])==null||!Q.primaryButtonDisabled)}vgc(V,n!=null?n:D,t,J)}};
BYo=function(V){return _.yX(_.Ol(),function(D){return D.entities.flowStateEntity},function(D,f){if(V.flowStateEntityKey){var n,t=D==null?void 0:(n=D[V.flowStateEntityKey])==null?void 0:n.currentStepId,J;
f=f==null?void 0:(J=f[V.flowStateEntityKey])==null?void 0:J.currentStepId;J=_.Ol().getState().talkToRecs;if(t&&t!==f){var H;D=(D==null?void 0:(H=D[V.flowStateEntityKey])==null?void 0:H.stepIdStack)||Object.keys(J.stepStates);H=!sEB(J==null?void 0:J.stepStates[t]);vgc(V,t,D,H)}}})};
dn3=function(V){return _.yX(_.Ol(),FtV,function(D){var f=ggR(V);if(f){var n=Object.keys(D.stepStates);D=!sEB(D==null?void 0:D.stepStates[f]);vgc(V,f,n,D)}})};
sEB=function(V){var D=Object.keys((V==null?void 0:V.selectionStates)||{}).reduce(function(J,H){return J||(V==null?void 0:V.selectionStates[H].isSelected)},!1),f,n,t=!!(V==null?0:(f=V.userQuery)==null?0:(n=f.userQuery)==null?0:n.trim());
return D||t};
ggR=function(V){if(V.flowStateEntityKey){var D,f,n=(D=_.Ol().getState().entities.flowStateEntity)==null?void 0:(f=D[V.flowStateEntityKey])==null?void 0:f.currentStepId;if(n)return n}};
vgc=function(V,D,f,n){_.Ol().dispatch(_.y1("flowStateEntity",V.flowStateEntityKey,{currentStepId:D,stepIdStack:f,key:V.flowStateEntityKey,primaryButtonDisabled:n}))};
_.uxq=function(V,D){return _.wg(V.entities,"youchatPendingResponseEntity",D)};
_.NYf=function(V){return function(D){_.LI(_.y1("youchatPendingResponseEntity",V,{entityKey:V,isPendingResponse:D}))}};
mnV=function(V){V==null||V.addEventListener("DOMLoaded",function(){V.goToAndPlay(V.totalFrames-48,!0)})};
_.U0=function(V){this.__isSoyCss=!0;this.css=wZq.apply(null,[V.strings].concat(_.sz(V.args)))};
_.U0.prototype.toString=function(){return this.css};
var QEc=function(){_.U0.apply(this,arguments)};
_.v(QEc,_.U0);var Gov=_.WV(["",""]);var zmR;var Rm0;_.Bt({_template:function(){if(Rm0!==void 0)return Rm0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
var D=V.content,f=D.insertBefore;zmR===void 0&&(zmR=document.createElement("template"));var n=zmR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return Rm0=V},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Cuc=new _.L("talkToRecsFlowRenderer");var qAw=new _.L("flowRootRenderer");var XZX=new _.L("learningJourneyQuizViewModel");var EgJ=new _.L("chipsShelfViewModel");var AyB=new _.L("responsiveContainerConfiguration");var a2f=new _.L("horizontalShelfViewModel");_.YAR=new _.L("engagementPanelSectionListRenderer");var $nJ=new _.L("conversationResourceViewModel");var iSZ=function(){this.horizontal=!1},SAR=function(V,D){V.horizontal=D};
iSZ.prototype.position=function(V,D,f,n){n=n===void 0?1:n;V=this.delta(V)*n+D;n=Math.max(D,f);return V>=Math.min(D,f)&&V<=n?V:f};
iSZ.prototype.axis=function(V){V=this.direction(V);return V==="up"||V==="down"?"Y":"X"};var HU=function(V,D,f){D=D===void 0?_.F_():D;this.target=V;this.manager=D;this.touchAction=f;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
HU.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(_.sz(this.events)));for(var V=_.r(this.events),D=V.next();!D.done;D=V.next())this.listen(D.value)}};
HU.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.sz(this.events)));for(var V=_.r(this.events),D=V.next();!D.done;D=V.next())this.unlisten(D.value)}};
HU.prototype.listen=function(V){this.eventMap[V]&&this.target.addEventListener(V,this.eventMap[V])};
HU.prototype.unlisten=function(V){this.eventMap[V]&&this.target.removeEventListener(V,this.eventMap[V])};var wy=function(){iSZ.apply(this,arguments)};
_.v(wy,iSZ);wy.prototype.direction=function(V){var D=V.detail;V=D.deltaY;D=D.deltaX;return V&&!this.horizontal?V>0?"down":"up":D&&this.horizontal?D>0?"right":"left":"none"};
wy.prototype.distance=function(V){return Math.abs(this.delta(V))};
wy.prototype.delta=function(V){var D=this.direction(V),f=V.detail;V=f.deltaX;f=f.deltaY;return D==="up"||D==="down"?f||0:V||0};
wy.prototype.velocity=function(V){var D=this.direction(V),f=V.detail;V=f.velocityX;f=f.velocityY;return Math.abs(D==="up"||D==="down"?f||0:V||0)};_.Qo=function(V,D,f,n,t,J){t=t===void 0?new wy:t;J=J===void 0?_.F_():J;HU.call(this,D,J,n);var H=this;this.element=V;this.target=D;this.config=f;this.input=t;this.manager=J;this.events=["panstart","panmove","panend"];this.onPanStart=function(){H.config.draggingClass&&H.element.classList.add(H.config.draggingClass);H.config.startAction&&H.config.startAction()};
this.onPanMove=function(Q){var T=WtR(H,Q);if(T){H.move(Q,T);T.fade&&H.fade(Q,T);var y=H.input.direction(Q);T.moveAction&&T.moveAction(pZc(H,Q,T),y)}};
this.onPanEnd=function(Q){var T,y,Z,l,G,F;return _.w(function(k){if(k.nextAddress==1){H.animationRequestId&&cancelAnimationFrame(H.animationRequestId);H.animationRequestId=void 0;T=WtR(H,Q);if(!T)return k.return();y=T;Z=y.triggerAction;l=y.fade;G=y.disableFinish;F=y.translateBack;var d=H.input.velocity(Q),z=H.input.distance(Q),C=H.threshold(T);return d>.3&&z>10||z>C?G?k.jumpTo(6):l?_.b(k,Ltc(H,Q),6):_.b(k,I2B(H,Q,T),6):F?_.b(k,H.translateBack(Q),3):k.jumpTo(3)}k.nextAddress!=3&&Z&&Z();H.config.draggingClass&&
H.element.classList.remove(H.config.draggingClass);H.reset();_.yz(k)})};
V=Object.keys(f.triggers);this.directions=new Set(V);SAR(this.input,this.directions.has("right")||this.directions.has("left"))};
_.v(_.Qo,HU);_.Qo.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var WtR=function(V,D){D=V.input.direction(D);return V.config.triggers[D]};
_.Qo.prototype.move=function(V,D){var f=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var n=f.input.axis(V),t=f.input.position(V,f.config.startPosition,D.endPosition,D.moveRatio||1);f.element.style.transform="translate"+n+"("+t+"px)";f.animationRequestId=void 0}))};
var pZc=function(V,D,f){var n=f.moveRatio||1;f=Math.abs(V.config.startPosition-f.endPosition);return Math.min(V.input.distance(D)*n,f)/f};
_.Qo.prototype.fade=function(V,D){var f=D.endOpacity;V=pZc(this,V,D);V>0&&(this.element.style.opacity=""+(((f||0)-1)*V+1))};
_.Qo.prototype.threshold=function(V){return V.threshold?V.threshold:Math.abs(V.endPosition-this.config.startPosition)/3};
var I2B=function(V,D,f){var n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return n=V.input.delta(D)+V.config.startPosition,t=V.input.axis(D),J=f,H=J.endPosition,Q=J.transitionEndPosition,y=(T=Q)!=null?T:H,_.b(Z,V.element.animate([{transform:"translate"+t+"("+n+"px)"},{transform:"translate"+t+"("+y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.element.style.transform="translate"+t+"("+y+"px)";_.yz(Z)})};
_.Qo.prototype.translateBack=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1){if(!D.element.style.transform)return t.return();f=D.input.axis(V);n=D.config.startPosition;return _.b(t,D.element.animate([{transform:D.element.style.transform},{transform:"translate"+f+"("+n+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}D.element.style.transform="translate"+f+"("+n+"px)";_.yz(t)})};
var Ltc=function(V,D){var f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return f=V.input.delta(D)+V.config.startPosition,n=V.input.axis(D),t=f+70,J=V.element.style.opacity===""?1:V.element.style.opacity,_.b(H,V.element.animate([{transform:"translate"+n+"("+f+"px)",opacity:J},{transform:"translate"+n+"("+t+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.element.style.transform="translate"+n+"("+t+"px)";V.element.style.opacity="0";_.yz(H)})};var TE=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.scrollRate=3;V.autoScrollAnimationStart=0;V.autoScrollPaused=!1;V.autoScrollRafId=0;return V};
_.v(TE,_.lU);_.P=TE.prototype;_.P.created=function(){var V=this;this.boundAutoScrollHandler=function(D){V.autoScroll(D)}};
_.P.detached=function(){this.hostElement.removeEventListener("mouseout",_.Ty(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Ty(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Ty(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.P.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Ty(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Ty(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Ty(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Ty(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Ty(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Ty(this,this.endAutoScroll)),this.endAutoScroll())};
_.P.autoScroll=function(V){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=V);var D;if(D=!this.autoScrollPaused&&this.scrollTarget)D=this.scrollTarget,D=D.scrollHeight-D.scrollTop!==D.clientHeight;D&&(D=1E3/this.scrollRate,V-=this.autoScrollAnimationStart,V>D&&(this.scrollTarget.scrollTop+=Math.ceil(V/D),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.P.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.P.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
TE.prototype.autoScrollEnabledChanged=TE.prototype.autoScrollEnabledChanged;_.S([_.q(),_.p("design:type",Object)],TE.prototype,"scrollRate",void 0);_.S([_.q(),_.p("design:type",Object)],TE.prototype,"scrollTarget",void 0);_.S([_.q(),_.p("design:type",Boolean)],TE.prototype,"autoScrollEnabled",void 0);_.S([_.KI("autoScrollEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TE.prototype,"autoScrollEnabledChanged",null);_.S([_.Gy()],TE);_.OSc=[TE.prototype];var xn0;var bl=function(){var V=_.E.apply(this,arguments)||this;V.buttonUpdate=_.c("web_button_rework");V.dismissButtonOverrides=_.c("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;V.forceDarkTheme=!1;V.forceLightTheme=!1;V.dynamicTextHeight=94;V.hasOverflowButton=!1;V.isInfeedModernization=!1;return V};
_.v(bl,_.E);_.P=bl.prototype;_.P.computeUrlImg=function(V){if(V)return _.tI(V.thumbnails)};
_.P.getLogoHeight=function(V){return this.logoWithPadding(V)?"31":"24"};
_.P.getLogoClassName=function(V){return this.logoWithPadding(V)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.P.logoWithPadding=function(V){var D,f;return(V=(D=V.thumbnails)==null?void 0:(f=D[0])==null?void 0:f.height)&&V%31===0?!0:!1};
_.P.sendImpressionEndpoints=function(V){V.impressionEndpoints&&_.HA(this.hostElement,V.impressionEndpoints)};
_.P.observeBasicPalette=function(){var V,D,f=(V=this.data)==null?void 0:(D=V.colorData)==null?void 0:D.basicColorPaletteData;f?_.Na(this.hostElement,f):_.Na(this.hostElement,{})};
_.P.observeDataChanged=function(){var V;this.dynamicTextHeight=((V=this.data)==null?0:V.supplementalText)?74:94;var D;this.hasSupplementalText=!((D=this.data)==null||!D.supplementalText);if(_.c("web_button_rework")){var f,n,t,J;V=(f=this.data)==null?void 0:(n=f.actionButton)==null?void 0:(t=n.buttonRenderer)==null?void 0:(J=t.colorData)==null?void 0:J.basicColorPaletteData;var H,Q,T;if(!((H=this.data)==null?0:(Q=H.actionButton)==null?0:(T=Q.buttonRenderer)==null?0:T.style)&&V){this.computeIsInfeedModernization(this.data)||
(V.borderColor=V.foregroundTitleColor);var y,Z;this.set("data.actionButton.buttonRenderer",_.sB.unsafeClone((y=this.data)==null?void 0:(Z=y.actionButton)==null?void 0:Z.buttonRenderer))}}};
_.P.observeDataForCounterfactual=function(){if(_.c("kevlar_banner_cf_extra_logging")){var V;((V=this.data)==null?0:V.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.P.computeSupplementalStyle=function(){var V;if((V=this.data)!=null&&V.supplementalText){var D,f,n;if((D=this.data)==null?0:(f=D.colorData)==null?0:(n=f.basicColorPaletteData)==null?0:n.foregroundActivatedColor)return V=_.AP(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+V+"; --yt-endpoint-hover-color:"+V+"; --yt-endpoint-visited-color:"+V+"; --yt-formatted-string-bold-font-weight:700;"}};
_.P.computeForcedDarkTheme=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.actionButton)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.style,t,J,H;V=bS3(((t=this.data)==null?void 0:(J=t.colorData)==null?void 0:(H=J.basicColorPaletteData)==null?void 0:H.backgroundColor)||0);return n&&V};
_.P.computeForcedLightTheme=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.actionButton)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.style,t,J,H;V=!bS3(((t=this.data)==null?void 0:(J=t.colorData)==null?void 0:(H=J.basicColorPaletteData)==null?void 0:H.backgroundColor)||0);return n&&V};
_.P.computeHasOverflowButton=function(V){return!!V.overflowButton};
_.P.computeHasTitle=function(V){return!!V.title};
_.P.computeTitleMaxFontSize=function(V){return this.computeHasOverflowButton(V)?28:64};
_.P.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.P.computeIsInfeedModernization=function(){var V,D,f,n,t=(V=this.data)==null?void 0:(D=V.actionButton)==null?void 0:(f=D.buttonRenderer)==null?void 0:(n=f.colorData)==null?void 0:n.basicColorPaletteData;return(t==null?void 0:t.backgroundColor)===452984831||(t==null?void 0:t.backgroundColor)===218103808};
bl.prototype.observeDataForCounterfactual=bl.prototype.observeDataForCounterfactual;bl.prototype.observeDataChanged=bl.prototype.observeDataChanged;bl.prototype.observeBasicPalette=bl.prototype.observeBasicPalette;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],bl.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],bl.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bl.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bl.prototype,"buttonUpdate",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],bl.prototype,"hasSupplementalText",void 0);_.S([_.q(),_.p("design:type",Object)],bl.prototype,"dismissButtonOverrides",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Boolean)],bl.prototype,"hasTitle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.p("design:type",Object)],bl.prototype,"forceDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.p("design:type",Object)],bl.prototype,"forceLightTheme",void 0);_.S([_.q(),_.p("design:type",Object)],bl.prototype,"dynamicTextHeight",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Object)],bl.prototype,"hasOverflowButton",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.p("design:type",Object)],bl.prototype,"isInfeedModernization",void 0);_.S([_.KI("data.colorData.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bl.prototype,"observeBasicPalette",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bl.prototype,"observeDataChanged",null);_.S([_.KI("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bl.prototype,"observeDataForCounterfactual",null);_.S([_.a({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],bl);
_.Y(bl,"ytd-banner-promo-renderer",function(){if(xn0!==void 0)return xn0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return xn0=V},{mode:1});var M0R;var hm3;var UnV;var K7=function(){return _.E.apply(this,arguments)||this};
_.v(K7,_.E);_.S([_.q(),_.p("design:type",Object)],K7.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.S([_.a({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],K7);
_.Y(K7,"ytd-hashtag-grid-tile-renderer",function(){if(UnV!==void 0)return UnV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return UnV=V},{mode:1});var yo=function(){return _.E.apply(this,arguments)||this};
_.v(yo,_.E);yo.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
yo.prototype.updateRichGridTrendingHashtagsVisibility=function(){var V,D;if(((V=this.data)==null||!V.isExpanded)&&(D=this.data)!=null&&D.tiles){V=this.data.tiles.length;D=V>this.richGridItemsPerRow?this.richGridItemsPerRow+1:V;var f=Math.ceil(V/D);this.fullyVisibleRows=V%D===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
yo.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
yo.prototype.updateRichGridTrendingHashtagsVisibility=yo.prototype.updateRichGridTrendingHashtagsVisibility;_.S([_.q(),_.p("design:type",Object)],yo.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Number)],yo.prototype,"fullyVisibleRows",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],yo.prototype,"isShowMoreVisible",void 0);_.S([_.q({selector:_.N_,value:0}),_.p("design:type",Number)],yo.prototype,"richGridItemsPerRow",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],yo.prototype,"ytdReduxBehavior",void 0);_.S([_.KI("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yo.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.S([_.a({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],yo);
_.Y(yo,"ytd-hashtag-grid-shelf-renderer",function(){if(hm3!==void 0)return hm3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return hm3=V},{mode:1});var Vr3;var DSo;var Zc=function(){var V=_.E.apply(this,arguments)||this;V.visibleVideos=[];V.hiddenVideos=[];V.modern=_.c("web_modern_buttons");V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(Zc,_.E);_.P=Zc.prototype;_.P.attached=function(){var V=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.onDarkModeToggledAction(V)};
_.P.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"}}}};
_.P.dataChanged=function(){var V=this;this.requestElementsPerRow();var D,f;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(f=this.data)==null?void 0:f.lightColorData;var n;if((n=this.currentColorPalette)==null?0:n.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.pO(this,function(){V.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.computeIsFirstFeedItem=function(V){return V};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V);this.data&&(this.currentColorPalette=V?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.P.getCurrentLogo=function(V,D){if(V)return D?V.darkLogoImage:V.lightLogoImage};
_.P.computeTitleStyle=function(V){var D;if((D=this.data)!=null&&D.title&&V&&V.textPrimary!==void 0)return"color:"+_.AP(V.textPrimary)+";"};
_.P.computeSubtitleStyle=function(V){var D;if((D=this.data)!=null&&D.subtitle&&V&&V.textSecondary!==void 0)return"color:"+_.AP(V.textSecondary)+";"};
_.P.computeDismissIconStyle=function(V){if(this.data&&this.data.dismissButton&&V&&V.textPrimary!==void 0)return"--yt-button-color:"+_.AP(V.textPrimary)+";"};
_.P.computeOverflowButtonStyle=function(V){if(this.data&&this.data.overflowButton&&V&&V.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.AP(V.textPrimary)+";--yt-spec-icon-active-other:"+_.AP(V.textPrimary)+";"};
_.P.computeBackgroundStyle=function(V){if(V&&this.data){var D="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.tI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&(D+='background-image:url("'+f+'");')}V.backgroundColor!==void 0&&(D+="background-color:"+_.aB(V.backgroundColor)+";");return D}};
_.P.computeButton=function(){var V,D=Object.assign({},_.g((V=this.data)==null?void 0:V.showMoreButton,_.RI));if(this.modern&&D){D.style="STYLE_MONO_OUTLINE";var f;if(V=(f=this.currentColorPalette)==null?void 0:f.textPrimary)D.colorData={basicColorPaletteData:{foregroundTitleColor:V,borderColor:V}}}return D};
_.P.shouldShowBottomButton=function(V,D){return!(V==null?0:V.header)&&!(V==null||!V.primaryButton)&&D<3};
_.P.checkExpanded=function(V){this.isExpanded=V&&V.content?this.hiddenVideos.length===0:!0};
_.P.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.P.getLogoHeight=function(V){return this.logoWithPadding(V)?"26":"20"};
_.P.getLogoImageId=function(V){return this.logoWithPadding(V)?"logo-image-with-padding":"logo-image"};
_.P.computeHasSectionHeader=function(V){return!!V.header};
_.P.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var V;if((V=this.data.primaryButton)==null?0:V.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 D;((D=this.data.dismissButton)==null?0:D.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var f,n;((f=this.data)==null?0:(n=f.primaryButton)==null?0:n.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.P.setVisibleVideos=function(V){if(this.data&&this.data.content)if(this.data.content.length){var D=this.data.content.length;this.data.header?V?(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.slimItemsPerRow),D)):(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow),D)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(D,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow),D)):(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow-1),D))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.P.setHasMovieRenderer=function(){var V;if((V=this.data)!=null&&V.content){var D;this.hasMovieRenderer=!!_.g((D=this.data)==null?void 0:D.content[0],_.r_V)}else this.hasMovieRenderer=!1};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.P.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var V=_.r(this.hiddenMediaRenderers),D=V.next();!D.done;D=V.next())D.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(V=_.Pt(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&V.focus()}};
_.P.updateTitleSpec=function(){var V;(V=this.data)!=null&&V.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.P.logoWithPadding=function(V){var D,f,n;return(V=(D=this.getCurrentLogo(V,this.isDarkTheme))==null?void 0:(f=D.thumbnails)==null?void 0:(n=f[0])==null?void 0:n.height)&&V%31===0?!0:!1};
_.P.onUpdateElementsPerRowAction=function(V,D,f){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V);f&&this.slimItemsPerRow!==f&&(this.slimItemsPerRow=f)};
Zc.prototype.slimItemsPerRowChanged=Zc.prototype.slimItemsPerRowChanged;Zc.prototype.elementsPerRowChanged=Zc.prototype.elementsPerRowChanged;Zc.prototype.dataChanged=Zc.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Zc.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Zc.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Zc.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Zc.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Zc.prototype,"currentColorPalette",void 0);_.S([_.q(),_.p("design:type",Array)],Zc.prototype,"visibleVideos",void 0);_.S([_.q(),_.p("design:type",Array)],Zc.prototype,"hiddenVideos",void 0);
_.S([_.q(),_.p("design:type",Object)],Zc.prototype,"primaryButton",void 0);_.S([_.q({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],Zc.prototype,"elementsPerRow",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Zc.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Zc.prototype,"isExpanded",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Zc.prototype,"largeTitle",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Zc.prototype,"hasMovieRenderer",void 0);_.S([_.q(),_.p("design:type",Number)],Zc.prototype,"slimItemsPerRow",void 0);_.S([_.q(),_.p("design:type",Boolean)],Zc.prototype,"showLightVideoMetadata",void 0);_.S([_.q(),_.p("design:type",Boolean)],Zc.prototype,"showDarkVideoMetadata",void 0);_.S([_.q(),_.p("design:type",Number)],Zc.prototype,"videoMetadataColor",void 0);
_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],Zc.prototype,"miniMode",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],Zc.prototype,"isFirstFeedItem",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.p("design:type",Boolean)],Zc.prototype,"hasSectionHeader",void 0);
_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Zc.prototype,"roundedContainer",void 0);_.S([_.jY("#visible-video-container ytd-rich-grid-media"),_.p("design:type",Array)],Zc.prototype,"visibleMediaRenderers",void 0);_.S([_.jY("#hidden-video-container ytd-rich-grid-media"),_.p("design:type",Array)],Zc.prototype,"hiddenMediaRenderers",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Zc.prototype,"modern",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zc.prototype,"dataChanged",null);_.S([_.KI("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zc.prototype,"elementsPerRowChanged",null);_.S([_.KI("slimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zc.prototype,"slimItemsPerRowChanged",null);
_.S([_.a({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Zc);
_.Y(Zc,"ytd-brand-video-shelf-renderer",function(){if(DSo!==void 0)return DSo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return DSo=V},{mode:1});var fjV;var jF=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(jF,_.E);_.P=jF.prototype;_.P.attached=function(){var V=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.onDarkModeToggledAction(V)};
_.P.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"}}}};
_.P.dataChanged=function(){this.requestElementsPerRow();var V,D;this.currentColorPalette=this.isDarkTheme?(V=this.data)==null?void 0:V.darkColorData:(D=this.data)==null?void 0:D.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.P.computeIsFirstFeedItem=function(V){return V};
_.P.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V);this.data&&(this.currentColorPalette=V?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(V),this.updateButtonPalette())};
_.P.shouldShowThumbnailInMetadata=function(V){return V<=1};
_.P.computeVideoMetadataColor=function(){if(this.data){var V;if((V=this.currentColorPalette)==null?0:V.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.P.computeTitleStyle=function(V){var D;if((D=this.data)!=null&&D.title&&V&&V.textPrimary!==void 0)return"color:"+_.AP(V.textPrimary)+";"};
_.P.computeSubtitleStyle=function(V){var D;if((D=this.data)!=null&&D.subtitle&&V&&V.textSecondary!==void 0)return"color:"+_.AP(V.textSecondary)+";"};
_.P.computeOverflowButtonStyle=function(V){if(this.data&&this.data.overflowButton&&V.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.AP(V.textPrimary)+";--yt-spec-icon-active-other:"+_.AP(V.textPrimary)+";"};
_.P.computeBackgroundStyle=function(V){if(V&&this.data){var D="";V.backgroundColor!==void 0&&(D+="background-color:"+_.aB(V.backgroundColor)+";");return D}};
_.P.computeHasOverflowButton=function(V){return!!V.overflowButton};
_.P.updateButtonPalette=function(){if(this.data){var V;if((V=this.data.primaryButton)==null?0:V.buttonRenderer){var D;if((D=this.currentColorPalette)==null?0:D.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var f;((f=this.currentColorPalette)==null?0:f.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)})}}};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
_.P.updateTitleSpec=function(){var V;(V=this.data)!=null&&V.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")};
_.P.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
jF.prototype.elementsPerRowChanged=jF.prototype.elementsPerRowChanged;jF.prototype.dataChanged=jF.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],jF.prototype,"ytdDismissibleItemBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],jF.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],jF.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jF.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],jF.prototype,"currentColorPalette",void 0);_.S([_.q(),_.p("design:type",Object)],jF.prototype,"primaryButton",void 0);
_.S([_.q({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],jF.prototype,"elementsPerRow",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],jF.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],jF.prototype,"titleSize",void 0);_.S([_.q(),_.p("design:type",Number)],jF.prototype,"videoMetadataColor",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],jF.prototype,"miniMode",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],jF.prototype,"isFirstFeedItem",void 0);_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],jF.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Boolean)],jF.prototype,"hasOverflowButton",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jF.prototype,"dataChanged",null);_.S([_.KI("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jF.prototype,"elementsPerRowChanged",null);_.S([_.a({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],jF);
_.Y(jF,"ytd-brand-video-singleton-renderer",function(){if(fjV!==void 0)return fjV;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return fjV=V},{mode:_.J2("kevlar_poly_si_batch_j070")?1:2});var nUc;var trq=_.MA(function(V){var D=V.data;return _.K(_.xt,{data:function(){return D().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(D().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var f=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":f=88;break a;default:f=88}return f},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return D().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Gi"),oU0=_.MA(function(V){var D=V.metadataRow;
var f=V.delimiter;return _.K(_.FB,{each:function(){return D().textParts||[]},
keyBy:"INDEX"},function(n,t){return _.K(_.th,null,_.K(_.Ow,{text:n,noWrap:!0,userInput:!0}),_.K(PZV,{delimiter:f,max:function(){return D().textParts.length},
index:t}))})},"Hi"),PZV=_.MA(function(V){var D=V.delimiter;
var f=V.max;var n=V.index;return _.K(_.e,{cond:function(){return(D==null?void 0:D())&&f()-1>n()},
then:function(){return _.K("span",null,D)}})},"Ii"),Jwo=_.MA(function(V){var D=V.data;
V={};return _.K("yt-profile-page-header-information-view-model",{class:_.KT("profile-page-header-information-view-model-wiz",(V["profile-page-header-information-view-model-wiz--mobile"]=!1,V))},_.K(_.e,{cond:function(){return D().onTap},
then:function(){return _.K(_.YC,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Xo(D().onTap)}},_.K(_.BW,{data:function(){return D().thumbnail}},{profilePageHeaderThumbnailViewModel:trq}))},
else:function(){return _.K("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.K(_.BW,{data:function(){return D().thumbnail}},{profilePageHeaderThumbnailViewModel:trq}))}}),_.K("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.K(_.e,{cond:function(){return D().onTap},
then:function(){return _.K(_.BW,{data:function(){return D().title}},{profilePageHeaderTitleViewModel:function(f){var n=f.data;
return _.K(_.YC,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Xo(n().onTap)}},_.K(_.Ow,{text:function(){return n().title}}))}})},
else:function(){return _.K(_.BW,{data:function(){return D().title}},{profilePageHeaderTitleViewModel:function(f){var n=f.data;
return _.K(_.Ow,{text:function(){return n().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.K(_.BW,{data:function(){return D().metadata}},{profilePageHeaderMetadataViewModel:function(f){var n=f.data;
return _.K(_.e,{cond:function(){return n().metadataRows},
then:function(t){return _.K("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.K(_.FB,{each:t,keyBy:"INDEX"},function(J,H){return _.K(_.th,null,_.K(oU0,{metadataRow:J,delimiter:" \u2022 "}),_.K(PZV,{delimiter:" \u2022 ",max:function(){return t().length},
index:H}))}))}})}})))},"Ji");
Jwo.idomCompat=!0;_.fT(Jwo,"yt-profile-page-header-information-view-model",{props:{data:_.WX}});var ll=function(){return _.E.apply(this,arguments)||this};
_.v(ll,_.E);ll.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ll.prototype,"data",void 0);_.S([_.a({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],ll);
_.Y(ll,"ytd-effect-pivot-header-view-model",function(){if(nUc!==void 0)return nUc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return nUc=
V},{mode:1});var rwq;var GE=function(){return _.E.apply(this,arguments)||this};
_.v(GE,_.E);GE.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GE.prototype,"data",void 0);_.S([_.a({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],GE);
_.Y(GE,"ytd-source-pivot-header-renderer",function(){if(rwq!==void 0)return rwq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return rwq=V},{mode:1});_.HKZ=_.MA(function(V){var D=V.data;var f=function(){var n;return _.XO((n=D())==null?void 0:n.rendererContext)};
V={};return _.K("content-list-item-view-model",{el:_.h2(_.Ew(function(){return D().rendererContext})),
class:_.KT("ytContentListItemViewModelHost",(V.ytContentListItemViewModelTappable=f,V)),role:function(){return f()?"listitem":void 0},
tabindex:function(){return f()?0:void 0}},_.K("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.K("div",{class:"ytContentListItemViewModelImageContainer"},_.K(_.e,{cond:function(){return D().image},
then:function(n){return _.K(_.xt,{data:n,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.K(_.BW,{data:function(){var n;
return(n=D())==null?void 0:n.avatar}},{avatarViewModel:_.vd})),_.K("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.K("div",{class:_.KT("ytContentListItemViewModelTitle",function(){a:{switch(D().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var n="ytContentListItemViewModelProminentTitle";
break a}n=void 0}return n})},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:"ytContentListItemViewModelMetadata"},_.K(_.BW,{data:function(){return D().metadata}},{contentMetadataViewModel:function(n){return _.K(_.U9,{data:n.data,
layout:1})}})))),_.K("div",{class:"ytContentListItemViewModelActionButton"},_.K(_.BW,{data:function(){var n;
return(n=D())==null?void 0:n.actionButton}},{buttonViewModel:_.HO,
toggleButtonViewModel:_.FA})))},"Ki");_.fT(_.MA(function(V){var D=function(){return V.data().background},f=function(){return V.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},n=function(){return V.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.K("yt-card-view-model",{class:_.KT("ytCardViewModelHost",V.className)},_.K(_.V4,{contentId:function(){return V.data().contentId}},function(){return _.K("div",{class:_.KT("ytCardViewModelCardViewModelInner",function(){return cyB(V.data().cardStyle)})},_.K(_.BW,{data:D},{cinematicContainerViewModel:function(t){return _.K(_.TVF,{data:t.data})}}),_.K("div",{class:"ytCardViewModelContentWrapper"},_.K(_.e,{cond:function(){return!f()},
then:function(){var t={};return _.K("div",{class:"ytCardViewModelTopContent"},_.K(_.BW,{data:function(){return V.data().topContent}},{contentListItemViewModel:function(J){return _.K(_.HKZ,{data:J.data})}}),_.K("div",{class:_.KT("ytCardViewModelInlineTrailingAction",(t.ytCardViewModelInlineCenterTrailingAction=n,t))},_.K(_.BW,{data:function(){return V.data().trailingAction}},{buttonViewModel:function(J){return _.K(_.HO,{data:J.data})}})))}}),_.K("div",{class:"ytCardViewModelBodyContent"},_.K(_.BW,
{data:function(){return V.data().bodyContent}},{contentListItemViewModel:function(t){return _.K(_.HKZ,{data:t.data})}}))),_.K(_.e,{cond:function(){return f()},
then:function(){return _.K("div",{class:"ytCardViewModelOverlayTrailingAction"},_.K(_.BW,{data:function(){return V.data().trailingAction}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data})}}))}}))}))},"Li"),"yt-card-view-model",{props:{data:_.WX,
className:_.WX}});_.fT(_.MA(function(V){var D=function(){return _.g(V.data().flowRoot,qAw)};
_.Nl(function(){var f=D(),n=function(){},t=function(){};
if(f){var J,H,Q,T=((Q=_.g((J=D())==null?void 0:(H=J.steps)==null?void 0:H[0],_.gKw))==null?void 0:Q.stepId)||"";koR(f,T);n=BYo(f);t=dn3(f)}_.dc(function(){var y=D();y&&_.Ol().dispatch(_.y1("flowStateEntity",y.flowStateEntityKey));n();n=function(){};
t();t=function(){}})});
return _.K("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.K(_.V4,{contentId:function(){return V.data().contentId}},function(){return _.K("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.K(_.e,{cond:D,
then:function(f){return _.K(_.G5V,{data:f})}}))}))},"Mi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.WX}});_.fT(_.MA(function(){return _.K("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.K("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.K("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.K(_.JBw,null)),_.K(_.dyL,{data:{rows:1},isExploreHub:!0}))},"Ni"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.fT(_.MA(function(V){var D=V.data;var f=V.standardUnitMinWidth;V=_.r((0,_.zHr)(D));var n=V.next().value,t=V.next().value,J=function(){var Q,T=(Q=n())==null?void 0:Q.contents;return T==null||T.length===0},H=function(){t(Object.assign({},n(),{contents:[]}))};
return _.K("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.h2(_.MG({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Q=_.g(D().chipsShelf,EgJ);if(Q!=null&&Q!=null&&Q.autoselectChipOnVisible){var T,y,Z=_.g(Q==null?void 0:(T=Q.contents)==null?void 0:T[(y=Q.autoselectedChipIndex)!=null?y:0],_.EC);Z&&Z.tapCommand&&_.Yt(Z.tapCommand)}}}))},_.K(_.V4,{contentId:function(){return D().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.K("div",null,_.K("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.K(_.BW,{data:function(){return D().header}},{sectionHeaderViewModel:function(Q){return _.K(_.nQ,{data:Q.data,
disableHorizontalPadding:!0})}})),_.K("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.K(_.BW,{data:function(){return D().chipsShelf}},{chipsShelfViewModel:function(Q){return _.K(_.RQE,{data:Q.data,
callback:H,enableSingleChipSelection:!0})}})),_.K("div",null,_.K(_.e,{cond:J,
then:function(){return _.K("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.K(_.dyL,{data:{rows:1},isExploreHub:!0}))}}),_.K(_.BW,{data:function(){var Q;
return(Q=n())==null?void 0:Q.contents}},{richShelfRenderer:function(Q){return _.K(_.Rb6,{data:Q.data,
isInnerShelf:!0,standardUnitMinWidth:f})}})))}))},"Oi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.WX,
standardUnitMinWidth:_.WX}});var eF=function(){return _.E.apply(this,arguments)||this};
_.v(eF,_.E);
eF.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}}};
eF.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.S([_.u(_.dh),_.p("design:type",Object)],eF.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],eF.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eF.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Number)],eF.prototype,"standardUnitMinWidth",void 0);_.S([_.a({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],eF);
_.Y(eF,"ytd-rich-section-renderer",function(){if(Vr3!==void 0)return Vr3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Vr3=V},{mode:_.J2("kevlar_poly_si_batch_j029")?
1:2});_.fT(_.$qW,"yt-profile-identity-info-view-model",{props:{data:_.WX,hideDivider:_.WX}});_.fT(_.cJH,"yt-page-header-view-model",{props:{data:_.WX,noPadding:_.WX,enableBanner:_.WX,cinematicContainerTopbarOffset:_.WX,allowCinematicContainerOverflow:_.WX,displayAsSidebar:_.WX,displayAsPanel:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=function(){var t;return(t=D().numColumns)!=null?t:2},n=function(){return f()>1?3:2};
V={};return _.K("ytd-rich-grid-group",{class:_.KT("ytdRichGridGroupHost",(V.ytdRichGridGroupHostFirstColumn=function(){return D().colIndex===0},V)),
style:_.el({"--ytd-rich-grid-group-num-columns":f,"--ytd-rich-grid-items-per-group":n})},_.K("div",{class:"ytdRichGridGroupContents"},_.K(_.BW,{data:function(){var t;return(t=D().contents)==null?void 0:t.slice(0,n())}},{richItemRenderer:function(t){return _.K(_.m$Y,{data:t.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Pi"),"ytd-rich-grid-group",{props:{data:_.WX}});var cU=function(){var V=_.E.apply(this,arguments)||this;V.resizeOnObserverInit=!1;V.isInlinePreviewDisabled=_.c("web_disable_inline_preview");V.disableStickyFilterBar=!1;V.transparentBackgroundChipsBar=!1;V.hideChipsBar=!1;V.isWatchDefaultLayout=!0;V.continuationShowButton=!1;V.rowReducedHorizontalMargin=!1;V.useCompactList=!1;V.manualDownloadsPresent=!1;V.smartDownloadsPresent=!1;V.shouldRenderDownloadsBanner=!1;V.hasOptedIntoSmartDownloads=!1;V.elementsPerRow=4;V.typographyBump=!1;V.showGnomeContents=
!1;V.showExploreHubContents=!1;V.slimItemsPerRow=1;V.pageLoadingFromNavigation=!1;V.loggingRefactor=_.c("kevlar_rich_grid_logging_fix");V.resizeObserver=null;V.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"};V.rendererToTagNameMap=
new Map(Object.entries(V.contentMapping()).map(function(D){var f=_.r(D);D=f.next().value;f=f.next().value;return[D,f.component]}));
V.insertedContent=new Map;return V};
_.v(cU,_.E);_.P=cU.prototype;_.P.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var V=_.r(_.Pt(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),D=V.next();!D.done;D=V.next())D.value.useCompactList=this.useCompactList};
_.P.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var V=_.r(_.Pt(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),D=V.next();!D.done;D=V.next())D=D.value,D.sizing=this.sizing,D.typographyBump=this.typographyBump};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.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]]"}}}};
_.P.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}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.Ty(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19463_throttledOnResize=new _.I7(this.resizeObserved,_.tU("rich_grid_resize_delay_ms",50),this)};
_.P.detached=function(){var V;(V=this.resizeObserver)==null||V.disconnect();document.removeEventListener("yt-page-type-changed",_.Ty(this,this.onPageChange))};
_.P.insertRichSection=function(V){var D=V.richItemTargetId;V=V.richSectionRendererToInsert;D&&V&&(this.insertedContent.set(D,{content:V,timestamp:Date.now()}),this.reflowContent())};
_.P.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeIsInlinePreviewEnabled=function(V,D,f){return _.c("web_disable_inline_preview")?!1:!f&&_.bGq({miniplayerIsActive:V,miniplayerPlaybackState:D})};
_.P.computeSizing=function(){var V=_.pZd(this.data);if(V||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return V?this.useCompactList?"COMPACT":V:this.miniMode?"COMPACT":_.c("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.P.updateItemMinAndMaxWidth=function(){var V=_.tU("rich_grid_max_item_width",500);V>0&&_.wI(this.hostElement,{"--ytd-rich-grid-item-max-width":V+"px"});var D;V=this.getRichItemMinWidth((D=this.hostElement)==null?void 0:D.clientWidth);V>0&&_.wI(this.hostElement,{"--ytd-rich-grid-item-min-width":V+"px"})};
_.P.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.P.resizeObserved=function(){_.JR(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.P.navigateBackToHome=function(){_.c("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var V=_.DY().resolve(_.xl).isOnWatch(),D,f=((D=_.yu(location.pathname))==null?void 0:D.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(f)||V)&&this.gnomeContents&&_.c("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);V&&this.exploreHubContents&&_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Ol().dispatch(_.nA({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.P.onPageChange=function(){var V=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.c("disable_chip_select_on_nav")||_.JR(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.dm.addJob(function(){V.pageLoadingFromNavigation=!1;_.c("disable_chip_select_on_nav")&&_.c("h5_reset_cache_and_filter_before_update_masthead")&&V.resetCacheAndIsFilteredFeed();V.setMasthead();V.maybeSetBigYoodle();V.forceRefreshAndLog();V.terminateVideoPreview();_.c("web_hide_gnome_until_user_navigates_back_to_home")&&
(V.dataChanged(),_.pO(V,function(){if(V.showGnomeContents){var D=Array.from(_.Pt(V.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(n){n=_.Pt(n).querySelector("ytd-rich-shelf-renderer");return!!n&&n.isGnomeShelf()});
if(D){D=D.offsetTop-V.contentsElement.offsetTop;var f=_.DY().resolve(_.xl).getCurrentPage();f&&f.getPageScrollingElement().scrollTo({top:D,behavior:"smooth"})}}}));
_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(V.dataChanged(),_.pO(V,function(){if(V.showExploreHubContents&&!_.c("web_explore_hub_no_scroll")){var D=Array.from(_.Pt(V.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(n){return!!n.querySelector("ytd-talk-to-recs-flow-renderer")});
if(D){D=D.offsetTop-V.contentsElement.offsetTop;var f=_.DY().resolve(_.xl).getCurrentPage();f&&f.getPageScrollingElement().scrollTo({top:D,behavior:"smooth"})}}}))},8)):((_.c("web_hide_gnome_until_user_navigates_back_to_home")||_.c("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.P.dataChanged=function(){var V=this,D=_.tU("web_rich_grid_row_margin",0);D>0&&_.wI(this.hostElement,{"--ytd-rich-grid-row-margin":D+"px"});_.JR(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.pO(this,function(){V.updateRichItemGridPositions();V.contentsElement&&_.wI(V.hostElement,{"--ytd-rich-grid-content-offset-top":V.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.P.initResizeObserver=function(){var V=this;if(window.ResizeObserver){var D;(D=this.resizeObserver)==null||D.disconnect();var f=!1;this.resizeObserver=new ResizeObserver(function(){if(f){var n;(n=V.resizeObserver)==null||n.disconnect();var t;(t=V.JSC$19463_throttledOnResize)==null||t.fire();requestAnimationFrame(function(){var H;(H=V.JSC$19463_throttledOnResize)==null||H.fire();V.initResizeObserver()})}else if(f=!0,V.resizeOnObserverInit){var J;
(J=V.JSC$19463_throttledOnResize)==null||J.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.P.contentLengthChanged=function(){if(_.c("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.JR(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.updateElementsPerRow=function(){_.JR(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.nA({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.nA({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.P.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.P.onRichShelfRendererCollapse=function(V){if(this.shownItems){var D=V.detail;V=this.shownItems.findIndex(function(n){var t,J;return((J=_.g(n==null?void 0:(t=n.richSectionRenderer)==null?void 0:t.content,_.NTo))==null?void 0:J.trackingParams)===D});
var f=V+1;V<0||f>=this.contentsElement.children.length||!this.shownItems[f].richItemRenderer||this.contentsElement.children[f].scrollIntoView({behavior:"smooth",block:"start"})}};
_.P.onSoftReloadPage=function(){this.scrollUpToTop()};
_.P.handleRerenderDownloadsData=function(){_.c("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.P.handlePlaylistRemoveVideosAction=function(V){var D;if(((D=_.g(V,_.xko))==null?0:D.setVideoIds)&&this.data&&this.data.contents){V=_.g(V,_.xko).setVideoIds;for(D=this.data.contents.length-1;D>=0;){var f=_.g(this.data.contents[D],_.vc);(f=f&&_.g(f.content,_.zN))&&f.setVideoId&&V.includes(f.setVideoId)&&this.splice("data.contents",D,1);D--}this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var V=0;V<this.data.contents.length;V++)this.set("data.contents."+V+".richItemRenderer.index",_.pA(String(V+1)))};
_.P.hasTopRowInlinePlayableVideoWithEndorsement=function(V){var D;return!((D=V.slice(0,this.getItemsPerRow()))==null||!D.some(function(f){var n;f=_.g(f==null?void 0:(n=f.richItemRenderer)==null?void 0:n.content,_.qT);var t;return(f==null?void 0:f.inlinePlaybackEndpoint)&&(f==null?void 0:(t=f.thumbnailOverlays)==null?void 0:t.some(function(J){return J.thumbnailOverlayEndorsementRenderer}))}))};
_.P.refreshGridLayoutNew=function(V,D,f,n){var t=n.postsPerRow;var J=n.slimItemsPerRow;var H=n.gameCardsPerRow;n=n.miniGameCardsPerRow;var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return!1;var T;if((T=this.data.responsiveContainerConfiguration)==null?0:T.responsiveSize){var y=_.EWn(this.data.responsiveContainerConfiguration,this.containerWidth),Z;Q=_.WW(Object.assign({},y,{standardUnitMinWidth:(Z=this.data)==null?void 0:Z.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&y.isCompactList)}else Q=_.WW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(y=this.data)==null?void 0:y.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=Q.typographyBump;Z=!1;if(V||this.elementsPerRow!==Q.numItems||this.postsPerRow!==t||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
H||this.miniGameCardsPerRow!==n||this.gutter!==Q.gutter)Z=this.elementsPerRow!==Q.numItems,this.elementsPerRow=Q.numItems,this.postsPerRow=t,this.slimItemsPerRow=J,this.gameCardsPerRow=H,this.miniGameCardsPerRow=n,this.gutter=Q.gutter,this.itemWidth=Q.itemWidth,this.reflowContent(D),_.wI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Q.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(f);this.ytdReduxBehavior.dispatch(_.nA({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:Q.maxContainerWidth}));return Z};
_.P.refreshGridLayout=function(V,D){var f,n=(f=this.hostElement)==null?void 0:f.clientWidth;this.containerWidth=this.adjustRichGridWidth(n,!0);var t;if((t=this.data)==null||!t.contents||!this.containerWidth)return V&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.c("rg_pending_reflow_ks")&&(V=!0,this.pendingForceReflow=!1);f=this.getRichItemMinWidth(n);var J=this.isShortsPanel?146:194,H=this.getMiniGameCardMinWidth(),Q=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
n=f=this.calcElementsPerRow(f,Q);(t=f<=3&&this.miniModeAllowed())&&(f=this.calcElementsPerRow(240,4));var T=this.calcMaxSlimElementsPerRow(f,Q,this.isDefaultGrid);Q=this.calcElementsPerRow(J,T);var y=this.calcElementsPerRow(this.isCompactGrid?J:154,T);J=this.calcElementsPerRow(this.isCompactGrid?J:H,T);H=!1;if(this.sizing)return this.refreshGridLayoutNew(V,D,t,{postsPerRow:n,slimItemsPerRow:Q,gameCardsPerRow:y,miniGameCardsPerRow:J});if(V||this.elementsPerRow!==f||this.postsPerRow!==n||this.slimItemsPerRow!==
Q||this.gameCardsPerRow!==y||this.miniGameCardsPerRow!==J)H=this.elementsPerRow!==f,this.elementsPerRow=f,this.postsPerRow=n,this.slimItemsPerRow=Q,this.gameCardsPerRow=y,this.miniGameCardsPerRow=J,this.reflowContent(D),this.updateElementsPerRow(),_.wI(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)&&_.wI(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(t);_.JR(this.hostElement,"yt-rich-grid-layout-refreshed");return H};
_.P.getRichItemMinWidth=function(V){var D=_.tU("rich_grid_min_item_width",310);if(!_.c("kevlar_disable_min_width_override")){var f,n;D=(n=(f=this.data)==null?void 0:f.minItemWidth)!=null?n:D}return D+_.Ayn(V)};
_.P.calcMaxSlimElementsPerRow=function(V,D,f){return(f===void 0?0:f)?V===1?2:V%2===0?_.c("web_shorts_2_by_3_reduce_items_per_row")&&V>=4?V/2*3-1:V/2*3:_.c("web_shorts_2_by_3_reduce_items_per_row")&&V>=3?V+1:V+2:D*2};
_.P.adjustRichGridWidth=function(V,D){var f=_.c("disable_rich_grid_guide_compensation");if(!this.isWatch&&!f){f=_.DY().resolve(_.Vx(_.Rx));var n=f==null?void 0:f.guideElement;if(!(!f||f.getData()||n!=null&&n.opened||f.getMiniGuideVisible()))if(f.canFitPersistentGuide(V)&&f.getGuideExpandsAutomatically()){var t,J,H=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(J=t.getPropertyValue("--app-drawer-width"))==null?void 0:J.replace("px",""));V-=H||0}else if(f.canFitMiniGuide(V)){var Q;
t=Number((H=window.getComputedStyle(this.hostElement))==null?void 0:(Q=H.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:Q.replace("px",""));V-=t||0}}V>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(V-=D?32:48));return V};
_.P.calcElementsPerRow=function(V,D){var f=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),n=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((f+n)/(V+n))||1,D)};
_.P.reflowContent=function(V){var D=this;if(!this.isReflowing){this.isReflowing=!0;var f,n,t=!!((f=this.data)==null?0:(n=f.contents)==null?0:n.some(function(F){return _.g(F,_.fY)}));
f=this.getItemsPerRow();var J;n=(J=this.data)==null?void 0:J.reflowOptions;V&&(_.zm("rgr_s"),_.pO(this,function(){_.zm("rgr_nrf")}));
V={};(J=_.Pt(this.hostElement).querySelector("#contents"))&&(V={contentElement:J,rendererToTagNameMap:this.rendererToTagNameMap});J=(J=this.data.contents)?J.slice():[];var H=(_.c("web_hide_gnome_behind_feed_filter_chip")||_.c("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,Q=_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,T=-1,y=-1;if(this.isHomePage&&Q){for(Q=0;Q<J.length;Q++){var Z=void 0,l=void 0;_.g((Z=J[Q])==null?void 0:
(l=Z.richSectionRenderer)==null?void 0:l.content,Cuc)&&(y=Q)}y>-1&&(this.exploreHubContents=J.splice(y,1))}if(this.isHomePage&&H){for(y=0;y<J.length;y++)l=Z=void 0,(Q=_.g((Z=J[y])==null?void 0:(l=Z.richSectionRenderer)==null?void 0:l.content,_.NTo))&&H&&(l=Z=void 0,Q=_.g((Z=Q)==null?void 0:(l=Z.contents)==null?void 0:l[0],_.vc),Z=void 0,_.g((Z=Q)==null?void 0:Z.content,_.NHl)&&(T=y));T>-1&&(this.gnomeContents=J.splice(T,1))}var G=jEw(J,f,t,n,this.getRichGridStyle(),V,this.insertedContent);t=function(){D.shownItems=
G;D.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(G),_.pO(this,t)):t()}};
_.P.getFirstRowItems=function(V){for(var D=[],f=0;f<V.length;f++){var n=void 0,t=void 0,J=void 0,H=void 0,Q=void 0,T=void 0;if(((n=V[f])==null?void 0:(t=n.richItemRenderer)==null?void 0:t.rowIndex)===0||((J=V[f])==null?void 0:(H=J.richGroupRenderer)==null?void 0:H.rowIndex)===0||((Q=V[f])==null?void 0:(T=Q.richSectionRenderer)==null?void 0:T.rowIndex)===0)D.push(V[f]);else break}return D};
_.P.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.P.handleChipCloudChipSelectAction=function(V,D){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.c("web_hide_gnome_behind_feed_filter_chip")&&(D?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.P.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.c("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.P.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.c("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.P.terminateVideoPreview=function(){_.JR(this.hostElement,"yt-terminate-video-preview-action")};
_.P.updateRichItemGridPositions=function(){var V={gridData:{gridColumnCount:this.elementsPerRow}},D;if((D=this.data)==null?0:D.trackingParams)this.loggingRefactor?_.lS().stateChanged(this.data.trackingParams,V):(D=_.Ni())&&_.I4(D,_.gs(this.data.trackingParams),V);_.JR(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.miniModeAllowed=function(){return _.c("disable_channels_mini_mode")?!1:this.isChannelPage};
_.P.getMiniGameCardMinWidth=function(){return 154};
_.P.updateMiniMode=function(V){this.miniMode=this.miniModeAllowed()&&V;this.ytdReduxBehavior.dispatch(_.nA({type:"SET_RICH_GRID_MINI_MODE",payload:V}))};
_.P.isCurrentPage=function(){return location.pathname===this.pagePath};
_.P.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var V=_.DY().resolve(_.xl).getCurrentPage();V&&V.setScrollTop(0)}};
_.P.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.P.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.P.maybeSetBigYoodle=function(){var V,D=(V=this.data)==null?void 0:V.bigYoodle;this.bigYoodleData!==D&&(this.bigYoodleData=D)};
_.P.setMasthead=function(){var V;((V=this.data)==null?0:V.masthead)?this.mastheadData=this.data.masthead:_.c("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.P.getRichGridStyle=function(){var V,D;return(D=(V=this.data)==null?void 0:V.style)!=null?D:"RICH_GRID_STYLE_UNKNOWN"};
_.P.onIsShortsGridChange=function(){var V=this.ytdReduxBehavior,D=V.dispatch,f=this.getRichGridStyle();D.call(V,_.nA({type:"SET_RICH_GRID_STYLE",payload:f}))};
_.IG.Object.defineProperties(cU.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var V=_.DY().resolve(_.xl).getCurrentPage(),D,f,n;return(((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_audio_pivot"||_.c("web_enable_channel_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_channel_pivot"||_.c("web_enable_effect_pivot_panel")&&((n=this.data)==null?void 0:n.targetId)==="browse-feedFEsfv_effect_pivot")&&(V==null?void 0:V.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("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 V;return!((V=this.data)==null?0:V.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var V;return((V=_.DY().resolve(_.xl).getCurrentPage())==null?void 0:V.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var V;return((V=_.DY().resolve(_.xl).getCurrentPage())==null?void 0:V.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 V;return this.hideChipsBar||(((V=this.data)==null?void 0:V.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.c("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="watch-next-feed"&&!_.c("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?0:V.enableContentSpecificAspectRatio)||((D=this.data)==null?0:(f=D.responsiveContainerConfiguration)==null?0:f.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.tU("web_continuation_handler_margin",0):0}}});
cU.prototype.onIsShortsGridChange=cU.prototype.onIsShortsGridChange;cU.prototype.onReloadContinuationFinish=cU.prototype.onReloadContinuationFinish;cU.prototype.reflowContent=cU.prototype.reflowContent;cU.prototype.handleRerenderDownloadsData=cU.prototype.handleRerenderDownloadsData;cU.prototype.onRichShelfRendererCollapse=cU.prototype.onRichShelfRendererCollapse;cU.prototype.onRequestElementsPerRow=cU.prototype.onRequestElementsPerRow;cU.prototype.contentLengthChanged=cU.prototype.contentLengthChanged;
cU.prototype.dataChanged=cU.prototype.dataChanged;cU.prototype.onSizingChange=cU.prototype.onSizingChange;cU.prototype.onUseCompactListChange=cU.prototype.onUseCompactListChange;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],cU.prototype,"ironResizableBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],cU.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],cU.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],cU.prototype,"componentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],cU.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],cU.prototype,"miniMode",void 0);_.S([_.q({value:[]}),_.p("design:type",Array)],cU.prototype,"shownItems",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],cU.prototype,"isReflowing",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],cU.prototype,"isFilteredFeed",void 0);_.S([_.q({selector:_.Z9X}),_.p("design:type",Boolean)],cU.prototype,"guideIsExpanded",void 0);
_.S([_.q({selectorArgs:["entitySelectorType"],selector:function(V,D){if(_.c("kevlar_modern_downloads_page")&&D&&D!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(D){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":D=V.entities;var f=_.sl(D),n=_.BR(D),t=_.RPc(V),J=_.zPR(V),H=_.C79(V),Q=_.oBZ(D),T=_.es(f),y=_.dg(D);return _.NpY(f,n,Q,_.wcY(D),t,J,T,y,H,_.Xc9(V),_.RW(V));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return V=_.sl(V.entities),_.zzc(V);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return V=
_.nBY(V.entities),_.Rzd(V);default:_.zP(new _.cI("Error: entitySelectorType defined but not matched in selector.",V,D))}}}),
_.p("design:type",Object)],cU.prototype,"entityDrivenRichGridData",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"resizeOnObserverInit",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"bigYoodleData",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"mastheadData",void 0);_.S([_.q(),_.p("design:type",Boolean)],cU.prototype,"isInlinePreviewDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"disableStickyFilterBar",void 0);
_.S([_.q(),_.p("design:type",Object)],cU.prototype,"transparentBackgroundChipsBar",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cU.prototype,"hideChipsBar",void 0);_.S([_.q(),_.p("design:type",Object)],cU.prototype,"isWatchDefaultLayout",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cU.prototype,"continuationShowButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cU.prototype,"rowReducedHorizontalMargin",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cU.prototype,"useCompactList",void 0);_.S([_.q({selector:function(V){return _.BR(V.entities).length>0}}),
_.p("design:type",Object)],cU.prototype,"manualDownloadsPresent",void 0);_.S([_.q({selector:function(V){return _.sl(V.entities).length>0}}),
_.p("design:type",Object)],cU.prototype,"smartDownloadsPresent",void 0);_.S([_.q({selector:_.zPR}),_.p("design:type",Object)],cU.prototype,"shouldRenderDownloadsBanner",void 0);_.S([_.q({selector:_.RPc}),_.p("design:type",Object)],cU.prototype,"hasOptedIntoSmartDownloads",void 0);_.S([_.KI("useCompactList"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"onUseCompactListChange",null);
_.S([_.KI("sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"onSizingChange",null);_.S([_.q({selector:_.cTF}),_.p("design:type",Number)],cU.prototype,"miniplayerPlaybackState",void 0);_.S([_.q({selector:_.mq}),_.p("design:type",Boolean)],cU.prototype,"miniplayerIsActive",void 0);
_.S([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],cU.prototype,"isInlinePreviewEnabled",void 0);_.S([_.q({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.p("design:type",String)],cU.prototype,"sizing",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cU.prototype,"elementsPerRow",void 0);
_.S([_.q(),_.p("design:type",Object)],cU.prototype,"typographyBump",void 0);_.S([_.q(),_.p("design:type",Number)],cU.prototype,"itemWidth",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],cU.prototype,"headerElement",void 0);_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],cU.prototype,"contentsElement",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"dataChanged",null);
_.S([_.eY("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"contentLengthChanged",null);_.S([_.bU("yt-request-elements-per-row"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"onRequestElementsPerRow",null);
_.S([_.bU("yt-rich-shelf-renderer-collapse"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cU.prototype,"onRichShelfRendererCollapse",null);_.S([_.eY("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"handleRerenderDownloadsData",null);
_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],cU.prototype,"entitySelectorType",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isSub",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isWatch",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isShortsPanel",null);_.S([_.q({reflectToAttribute:!0}),_.R("isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"reducedTopMargin",null);_.S([_.q({reflectToAttribute:!0}),_.R("data","isWatch","isWatchDefaultLayout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"noTopMargin",null);
_.S([_.q({reflectToAttribute:!0}),_.R("isInlinePreviewEnabled","shownItems"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"topRowEndorsement",null);_.S([_.R("data.header"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"hideHeader",null);_.S([_.bU("yt-rich-grid-reflow"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],cU.prototype,"reflowContent",null);
_.S([_.bU("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"onReloadContinuationFinish",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isSlimGrid",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isShortsGrid",null);
_.S([_.R("data","isSlimGrid","isShortsGrid"),_.q(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"noRichItemGutterMargins",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isShortsGridSlim",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isCompactGrid",null);
_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"isDefaultGrid",null);_.S([_.R("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"hideChipsBarOnHome",null);_.S([_.R("data.targetId"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"hideChipsBarOnWatch",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cU.prototype,"onIsShortsGridChange",null);_.S([_.R("data.enableContentSpecificAspectRatio"),_.q(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cU.prototype,"force16By9ThumbnailAspectRatio",null);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],cU.prototype,"continuationTriggerOffset",null);_.S([_.a({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],cU);
_.Y(cU,"ytd-rich-grid-renderer",function(){if(M0R!==void 0)return M0R;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return M0R=V},{mode:2});var wa3=_.MA(function(V){var D=V.thumbsUp,f=V.thumbsDown,n=V.rightAlignThumbs;V=_.r(_.HJ(!1,void 0,"FjNDrf"));var t=V.next().value,J=V.next().value;V=_.r(_.HJ(!1,void 0,"Tphjfb"));var H=V.next().value,Q=V.next().value;V={};return _.K("div",{class:_.KT("ytwThumbsUpDownThumbs",(V.ytwThumbsUpDownRightAlign=function(){return n==null?void 0:n()},V))},_.K(_.FA,{data:D,
onToggle:function(T){J(T);H()&&Q(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}),_.K(_.FA,{data:f,
onToggle:function(T){Q(T);t()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}))},"Qi");
wa3.idomCompat=!0;var TBX=_.MA(function(V){var D=function(){return V.data().pendingStateEntityKey||""},f=_.KX(_.uxq,D),n=function(){var Q;
if(!(Q=V.disabled())){var T;Q=!((T=f())==null||!T.isPendingResponse)}return Q},t=_.r(_.HJ(em3(""),void 0,"aC8eBe")),J=t.next().value,H=t.next().value;
_.B9(function(){requestAnimationFrame(function(){var Q=V.data().onShowAnimationMs||0;Q=Q>0?em3("--chip-animation-duration: "+Q+"ms;"):em3("");H(Q)})});
return _.K("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:J},_.K(_.FB,{each:function(){return V.data().chipData||[]},
keyBy:"REFERENCE"},function(Q){return _.K(Qgo,{data:Q,disabled:n,pendingStateKey:D,onError:V.onError})}))},"Ri"),Qgo=_.MA(function(V){var D=_.py("button"),f=_.r(_.HJ(!0,void 0,"NaMiCd")),n=f.next().value,t=f.next().value,J=function(){return V.data().text.content},H=_.jl(function(Q){var T,y,Z,l,G,F,k,d;
return _.w(function(z){switch(z.nextAddress){case 1:Q.stopPropagation();if(V.disabled())return z.return();y=String(Math.floor(((T=_.ra())==null?void 0:T.getCurrentTime())||0)*1E3);Z="youchat-"+Date.now();l=function(){_.Em(V.data().onClick||{});var C={continuationCommand:{token:V.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},A={inputComposerFormData:{clientMessageId:Z,playerOffsetMs:y}};return new Promise(function(O,W){_.Em(C,{form:{formData:A},commandController:{onSuccess:function(I,
x){O(x)},
onServerError:function(I,x){W(x.error)}}})})};
G=_.NYf(V.pendingStateKey());G(!0);_.HSq("#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");t(!1);_.wx(z,2);return _.b(z,l(),4);case 4:_.YJ(z,3);break;case 2:F=_.KW(z),(d=(k=V).onError)==null||d.call(k,F);case 3:G(!1),_.yz(z)}})});
return _.K(_.e,{cond:n,then:function(){return _.K("div",{class:"ytwYouChatChipsDataChipWrapper"},_.K("button",{el:D,class:"ytwYouChatChipsDataChip","data-disabled":V.disabled,"on:click":H,tabindex:0},J))}})},"Si");var bKB=_.MA(function(V){var D=V.data;return _.K("yt-conversation-resource-view-model",{class:_.KT("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.K(_.BW,{data:function(){var f,n;return((f=D().conversationResourceData)==null?void 0:(n=f.learningGuideData)==null?void 0:n.sections)||[]}},{expandableMetadataViewModel:function(f){return _.K(_.jlw,{data:f.data})}}))},"Ti");
bKB.idomCompat=!0;var K2W=_.MA(function(V){var D=function(){var x;return(x=V.data().text)==null?void 0:x.content},f=function(){var x,oY;
return(x=V.data().webData)==null?void 0:(oY=x.textResult)==null?void 0:oY.content},n=_.DY().resolve(_.I5),t=_.HW(),J=function(){return V.data().chatResponseStyle},H=function(){return!V.data().transparentBackground},Q=function(){return V.data().rightAlignThumbs},T=function(){return V.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||V.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},y=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:T()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:V.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},Z=function(){var x;
return V.data().webData||((x=V.data().text)==null?void 0:x.content)||V.data().videoResultsData||V.data().conversationResourceViewModel||V.data().quiz},l=function(){return!!V.data().sectionHeader||Z()},G=function(){var x;
return(x=V.data().videoResultsData)==null?void 0:x.videoShelf},F=function(){var x;
return _.g(((x=V.data().videoResultsData)==null?void 0:x.videoShelf)||{},a2f)},k=function(){var x;
return(x=V.data().webData)==null?void 0:x.sourcesShelf},d=function(){var x;
return _.g(((x=V.data().webData)==null?void 0:x.sourcesShelf)||{},a2f)},z=function(){return _.g(V.data().conversationResourceViewModel||{},$nJ)},C=function(){return _.g(V.data().quiz||{},XZX)},A=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:V.data().thumbsDownViewModel&&V.data().thumbsUpViewModel},O=function(){return _.g(V.data().thumbsUpViewModel,_.FO)},W=function(){return _.g(V.data().thumbsDownViewModel,_.FO)};
_.B9(function(){requestAnimationFrame(function(){var x;(x=V.shouldAnimateIcon)!=null&&x.call(V)&&mnV(t.lottieEl)})});
var I={};return _.K("you-chat-item-view-model",{class:_.KT("ytwYouChatItemViewModelYouChatItemViewModel",(I.ytwYouChatItemViewModelColumnLayout=function(){return T()},I)),
"data-target-id":function(){return V.data().id||""}},_.K(_.e,{cond:function(){return V.data().removeIcon?!1:l()},
then:function(){var x={};return _.K("div",{"aria-hidden":"true"},_.K(_.ft,{className:_.KT("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelRtl=n==="rtl",x.ytwYouChatItemViewModelHidden=function(){return!(V.data().hideIcon||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:l())},x)),
animationName:"YOUCHAT_ICON",data:y,animationRef:t}))}}),_.K(_.e,{cond:l,
then:function(){var x={};return _.K("div",{class:_.KT("ytwYouChatItemViewModelHost",(x.ytwYouChatItemViewModelHostNoPadding=function(){return!!V.data().sectionHeader&&!Z()},x.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
x.ytwYouChatItemViewModelGradientBackground=H,x)),
role:"alert"},_.K(_.e,{cond:D,then:function(oY){return _.K(_.NI,{text:oY})}}),_.K(_.BW,{data:function(){return V.data().sectionHeader}},{sectionHeaderViewModel:function(oY){var wZ={};
return _.K(_.nQ,{data:oY.data,className:_.KT("ytwYouChatItemViewModelSectionHeader",(wZ.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!V.data().sectionHeader&&!Z()},wZ))})}}),_.K(_.e,{cond:f,
then:function(oY){return _.K(_.NI,{text:oY})}}),_.K(_.e,{cond:G,
then:function(){return _.K("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.K(_.di,{data:F,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.K(_.e,{cond:k,
then:function(){return _.K("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.K(_.di,{data:d,hasPeek:!0,disableArrows:!1}))}}),_.K(_.e,{cond:z,
then:function(){return _.K(bKB,{data:z})}}),_.K(_.e,{cond:C,
then:function(){return _.K(_.nMu,{data:C})}}),_.K(_.e,{cond:A,
then:function(){return _.K(wa3,{thumbsUp:O,thumbsDown:W,rightAlignThumbs:Q})}}))}}),_.K(_.e,{cond:function(){return V.data().chipsData},
then:function(x){return _.K(TBX,{data:x,disabled:V.pending,onError:V.onError})}}))},"Ui");
K2W.idomCompat={callbacks:{onError:!0,onSend:!0}};var yw3=_.MA(function(V){var D=function(){return V.data().choiceSelectedText},f=function(){return V.data().hasGradientBackground},n={};
return _.K("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.K(_.e,{cond:D,then:function(){return _.K("div",{class:"ytYouChatUserTurnChoiceSelected"},_.K(_.Ow,{text:D}))}}),_.K("div",{class:_.KT("ytYouChatUserTurnUserMessage",(n.ytYouChatUserTurnGradientBackground=f,n.ytYouChatUserTurnDefaultBackground=function(){return!f()},n))},function(){return V.data().text}))},"Vi");var ZKB=_.MA(function(V){var D=_.r((0,_.qTY)(V.data)).next().value;return _.K("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return V.data().targetId||""}},_.K(_.BW,{data:function(){return V.data().header}},{chipBarViewModel:_.vku}),_.K(_.BW,{data:function(){return D().contents}},{accordionViewModel:_.oMF,
alertBannerViewModel:_.mfY,chatLoadingViewModel:_.rBR,chatUserTurnViewModel:yw3,learningJourneyLoaderViewModel:_.fi6,lockupViewModel:function(f){return _.K(_.nv,{data:f.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:V.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(f){return _.K(K2W,{data:f.data,pending:!1})}}))},"Wi");_.fT(_.MA(function(V){var D=_.r((0,_.qTY)(V.data)).next().value,f=_.W2("yt-section-list-renderer"),n=_.r(_.HJ(void 0,void 0,"rQpPgc")),t=n.next().value,J=n.next().value,H=function(){var Q;return _.g((Q=V.data().sectionListLayoutConfiguration)==null?void 0:Q.layoutConfiguration,AyB)};
_.Nl(function(){var Q,T=(Q=f.value)==null?void 0:Q.clientWidth;if(H()){Q=H();var y=Q.responsiveSize;T=T<528?"CONTAINER_SIZE_NARROW":T<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var Z=_.r(Q.responsiveMap||[]);for(var l=Z.next();!l.done;l=Z.next())if(l=l.value,l.containerSize===T){Z=l.containerType;break b}Z=void 0}if(Z&&y){b:{if(Z==="CONTAINER_TYPE_VERTICAL_LIST")if(y==="RESPONSIVE_SIZE_STANDARD"){if(T!=="CONTAINER_SIZE_NARROW"){l="50%";break b}}else{l=T==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}l=void 0}Q={responsiveSize:y,containerSize:T,containerType:Z,force16By9ThumbnailAspectRatio:!Q.enableContentSpecificAspectRatio,contentPreviewWidth:l,fullbleed:(Z==="CONTAINER_TYPE_VERTICAL_LIST"||Z==="CONTAINER_TYPE_GRID")&&T==="CONTAINER_SIZE_NARROW"&&!1}}else Q=void 0}else Q=void 0;J(Q)});
return _.K("yt-section-list-renderer",{class:_.KT("ytSectionListRendererHost",V.className),el:f,"data-target-id":function(){return V.data().targetId||""}},_.K(_.BW,{data:function(){return D().contents}},{itemSectionRenderer:function(Q){return _.K(ZKB,{data:Q.data,
containerLayoutConfig:t})}}))},"Xi"),"yt-section-list-renderer",{props:{data:_.WX,
className:_.Dn}});var jgV;var ljV;var GQJ=function(){return _.E.apply(this,arguments)||this};
_.v(GQJ,_.E);_.S([_.q(),_.p("design:type",Object)],GQJ.prototype,"data",void 0);_.S([_.zy({is:"yt-alert-renderer",disableElementRegistration:!0})],GQJ);
_.Y(GQJ,"yt-alert-renderer",function(){if(ljV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;jgV===void 0&&(jgV=document.createElement("template"));var n=jgV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ljV=V}V=ljV;return V},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.vjc=function(V,D){var f,n;D=D===void 0?{}:D;var t,J,H,Q,T,y,Z,l,G,F,k,d;return _.w(function(z){switch(z.nextAddress){case 1:t=D;J=t.shouldWrap===void 0?!0:t.shouldWrap;H=t.skipTransitionTimeoutMs===void 0?300:t.skipTransitionTimeoutMs;Q=t.beforeTransition;T=t.afterTransition;if(!J||!document.startViewTransition||document.visibilityState==="hidden")return z.return(V());f=window.innerWidth;n=window.innerHeight;y=!1;(Z=Q)==null||Z();_.wx(z,2);l=document.startViewTransition(V);G=setTimeout(function(){l.skipTransition();
y=!0},H);
return _.b(z,l.ready,4);case 4:return clearTimeout(G),_.b(z,l.finished,5);case 5:clearTimeout(G);(F=T)==null||F();_.YJ(z,0);break;case 2:k=_.KW(z),(d=T)==null||d(),k&&!y&&document.visibilityState!=="hidden"&&f===window.innerWidth&&n===window.innerHeight&&_.NG(k),_.yz(z)}})};
_.Ng=function(){for(var V=Array(36),D=0,f,n=0;n<36;n++)n==8||n==13||n==18||n==23?V[n]="-":n==14?V[n]="4":(D<=2&&(D=33554432+Math.random()*16777216|0),f=D&15,D>>=4,V[n]=_.EtV[n==19?f&3|8:f]);return V.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 kOo=_.WV(['<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>']),
sXc=_.goF(kOo);sXc.setAttribute("style","display: none;");document.head.appendChild(sXc.content);_.mB=_.G2Z(function(V){var D=_.yh("DIV");V&&(D.className=V);D.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";V=_.yh("DIV");_.vpV(V,"200px","200px");D.appendChild(V);document.body.appendChild(D);V=D.offsetWidth-D.clientWidth;_.ZC(D);return V});var BxW;var d9w;var zZ=function(){var V=_.E.apply(this,arguments)||this;V.icon=null;return V};
_.v(zZ,_.E);zZ.prototype.dismiss=function(){_.PA(this.hostElement,"yt-live-chat-error-message-dismiss")};
zZ.prototype.computeIcon=function(V){return V&&V.iconType?"yt-icons:"+V.iconType.toLowerCase():"yt-icons:close"};
_.S([_.q(),_.p("design:type",Object)],zZ.prototype,"data",void 0);_.S([_.q({computed:"computeIcon(data.icon)"}),_.p("design:type",Object)],zZ.prototype,"icon",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],zZ);
_.Y(zZ,"yt-live-chat-error-message-renderer",function(){if(d9w===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;BxW===void 0&&(BxW=document.createElement("template"));var n=BxW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);d9w=V}V=d9w;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var kpo,sff,B$X,dKJ,CwW,qVB,Xso,E_W,Ap0,BF,aGR,YV3,de,$Kf,iB3,SVR,Wnc,psR,Lno,IGc,OBv,xKR,Mio,hp3,UKX,VxJ,D$R,fzq,nQc,tx0,PDo,oQf,um,JmX,rmv,HsV,T8V,bsw,Kdf,ymo,ZsR,jeX,w0J,Qeo,Gxw,ebR,cmJ,FdB,gQc,lzJ,kxV;kpo=function(V,D){return _.wg(V.entities,"timedMarkersListSyncEntity",D)};
sff=function(V,D){return _.wg(V.entities,"liveReactionsDataEntity",D)};
B$X=function(V,D){V=_.wg(V.entities,"booleanEntity",D);return!(!V||!V.value)};
dKJ=function(V,D){var f=_.Ni();f&&V&&_.Y8(f,_.gs(V),D)};
_.ui0=function(){_.c("web_watch_log_theater_mode")&&_.Nnc("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.N$c=function(V,D,f){if(!V.includes("START_TIME_PLACEHOLDER")||!V.includes("END_TIME_PLACEHOLDER"))return V;var n=new Date(0),t=new Date(0);n.setUTCMilliseconds(D);t.setUTCMilliseconds(f);return V.replace("START_TIME_PLACEHOLDER",_.$y(n,7)).replace("END_TIME_PLACEHOLDER",_.$y(t,7))};
_.mKv=function(V){return V.watch.isWatchActive};
_.zpZ=function(V){return _.uf(V)||_.Ns(V)||_.CAL(V)};
_.RpW=function(V){return!_.zpZ(V)};
_.sF=function(V){return V.watch.watchScrollTop};
CwW=function(V){return V.watch.isLiveChatCollapsed};
qVB=function(V){return V.watch.openEngagementPanels};
Xso=function(V,D){return _.wg(V.entities,"booleanEntity",D)};
E_W=function(){return function(V){_.LI(_.y1("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:V}))}};
Ap0=function(V){switch(V){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}};
BF=function(V,D,f){var n=_.Xo(f);V&&D&&n&&V.getPlayerPromise().then(function(t){_.zac(n)&&_.uN();(new _.vG(t)).executeCommand(n,D);_.c("continue_playback_on_desktop_companion_click")||t.pauseVideo()})};
aGR=function(V){var D=_.hI(),f;if(f=_.Yw("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;f=(n=f())==null?void 0:n.layoutId}else f=null;BF(D,f,V)};
YV3=function(V){var D=_.hI(),f;if(f=_.Yw("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;f=(n=f())==null?void 0:n.layoutId}else f=null;BF(D,f,V)};
de=function(V,D){var f=V<0?"-":"";V=Math.abs(V);var n=Math.floor(V/3600),t=Math.floor(V)%3600,J=Math.floor(t/60);t=Math.floor(t)%60;var H="";(D===void 0?0:D)&&(H="."+Math.round((V-Math.floor(V))*10));return n>0?f+n+":"+(J<10?"0"+J:""+J)+":"+(t<10?"0"+t:""+t)+H:f+J+":"+(t<10?"0"+t:""+t)+H};
$Kf=function(V){var D=V.match(/[^0-9:\.]/g);if(D&&D.length>0)return null;V=V.split(":");if(V.length===0||V.length>3)return null;D=1;for(var f=0;V.length>0;){var n=V.pop();if(n===void 0)break;var t=Number(n);if(n===""||isNaN(t))return null;f+=t*D;D*=60}return f};
iB3=function(V,D,f,n){V=Math.max(f,V);D=Math.min(D,n-f);V+D>n?(f=n,V=f-D):f=V+D;return{start:V,end:f}};
SVR=function(V,D,f,n,t,J){V<f?V=f:V+t>n&&(V=n-t);D>n&&(D=n);D=Math.min(V+J,Math.max(V+t,D));return{start:V,end:D}};
Wnc=function(V,D,f,n,t,J){D>n?D=n:D-t<f&&(D=f+t);V<f&&(V=f);V=Math.min(D-t,Math.max(D-J,V));return{start:V,end:D}};
psR=function(V){return _.c("web_transcript_cue_id_killswitch")?String(V):"ytd-transcript-renderer_"+V};
Lno=function(V){return _.c("web_transcript_cue_id_killswitch")?!0:V.startsWith("ytd-transcript-renderer")};
IGc=function(V){var D=_.hI(),f;if(f=_.Yw("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;f=(n=f())==null?void 0:n.layoutId}else f=null;BF(D,f,V)};
OBv=function(V){V.style.height="auto";V.style.height=Math.min(V.scrollHeight||20,80)+"px"};
xKR=function(V,D,f){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:D,hasGradientBackground:f}}],insertByPositionInSection:{sectionTargetId:V,position:"INSERTION_POSITION_LAST"}}}]}}}};
Mio=function(V){var D=_.hI(),f;f=(f=_.Yw("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;BF(D,f,V)};
hp3=function(V){var D=_.hI(),f;f=(f=_.Yw("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;BF(D,f,V)};
UKX=function(V,D){D=D===void 0?!1:D;if(V.simpleText)V=[{text:V.simpleText}];else{var f;V=((f=V.runs)!=null?f:[]).map(function(n){return Object.assign({},n)})}if(D)for(D=_.r(V),f=D.next();!f.done;f=D.next())f.value.bold=!0;
return V};
VxJ=function(V){var D=V.startEndTimeTemplate,f=V.startTimeUtcMillis;V=V.endTimeUtcMillis;if(D&&f&&V)return _.pA(_.N$c(_.LA(D),Number(f),Number(V)))};
D$R=function(V,D){var f,n,t=V==null?void 0:(f=V.viewCount)==null?void 0:(n=f.videoViewCountRenderer)==null?void 0:n.shortViewCount;if(!D&&t)return t;var J,H;return V==null?void 0:(J=V.viewCount)==null?void 0:(H=J.videoViewCountRenderer)==null?void 0:H.viewCount};
fzq=function(V,D){var f=V==null?void 0:V.relativeDateText;return!D&&f?[f,!0]:[V==null?void 0:V.dateText,!1]};
nQc=function(V,D,f,n,t){n=n===void 0?!0:n;t=t===void 0?"":t;var J=D$R(V,D),H=_.r(fzq(V,D)),Q=H.next().value;H=H.next().value;D=D?V==null?void 0:V.sponsorsOnlyFirstTimeLongText:V==null?void 0:V.sponsorsOnlyFirstTimeShortText;var T=[];f&&J&&T.push(J);!f&&H||!Q||T.push(Q);V=[].concat(_.sz(T),[D,V==null?void 0:V.stationName,V==null?void 0:V.rating,V?VxJ(V):void 0,V==null?void 0:V.upNextProgramText,V==null?void 0:V.superTitleLink]).filter(function(y){return!!y});
f={runs:[]};for(J=0;J<V.length;J++)f.runs.push.apply(f.runs,_.sz(UKX(V[J],n))),J<V.length-1&&f.runs.push({text:" "+t+" ",bold:n});return f};
tx0=function(V){if(V)return{runs:[{text:V,bold:!0}]}};
PDo=function(V){var D,f,n,t;if(V=V==null?void 0:(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.results)==null?void 0:(t=n.results)==null?void 0:t.contents){var J,H;return(H=(J=V.find(function(Q){return!!Q.videoPrimaryInfoRenderer}))==null?void 0:J.videoPrimaryInfoRenderer)==null?void 0:H.updatedMetadataEndpoint}};
oQf=function(V,D){var f;return(f=V.sourceConfigs)==null?void 0:f.find(function(n){return n.videoId===D})};
um=function(V){return V==="End of video"||V==="End of playlist"};
JmX=function(V){var D,f,n,t;return(D=V.getWatchNextResponse())==null?void 0:(f=D.contents)==null?void 0:(n=f.twoColumnWatchNextResults)==null?void 0:(t=n.playlist)==null?void 0:t.playlist};
rmv=function(V){var D,f,n,t,J,H;return(D=JmX(V))==null?void 0:(f=D.playlistButtons)==null?void 0:(n=f.menuRenderer)==null?void 0:(t=n.topLevelButtons)==null?void 0:(J=t[0])==null?void 0:(H=J.playlistLoopButtonRenderer)==null?void 0:H.playlistLoopStateEntityKey};
HsV=function(V){var D=_.DY().resolve(_.zI),f;return(D=(f=_.g(D.getAutoplayEndpoint(),_.pl))==null?void 0:f.playlistId)&&D===V};
T8V=function(V,D,f,n,t){function J(){_.dm.cancelJob(Nc);var H=w0J(D,f/V.getPlaybackRate()),Q=H.hours,T=H.minutes;H=(H.seconds*1E3||6E4)/V.getPlaybackRate();V.setVideoTimeLeft(Qeo(Q,T));n&&V.getPlayerState()!==0&&V.setSleepTimerTimeLeft(Qeo(Q,T,!0));(Q>0||T>0)&&!t&&(Nc=_.lf(_.dm,J,H))}
_.dm.cancelJob(Nc);Nc=_.lf(_.dm,J)};
bsw=function(V,D,f){function n(){_.dm.cancelJob(mG);var t=w0J(D,f),J=t.hours;t=t.minutes;var H=6E4/V.getPlaybackRate();if(J>0||t>0)V.setSleepTimerTimeLeft(Qeo(J,t,!0)),mG=_.lf(_.dm,n,H)}
_.dm.cancelJob(mG);mG=_.lf(_.dm,n)};
Kdf=function(V,D){var f=V.getVolume()/(D/500),n=function(t){_.dm.cancelJob(zY);var J=Math.floor(t-f);V.setVolume(J,!1);J>0&&(zY=_.lf(_.dm,function(){n(J)},500))};
_.dm.cancelJob(zY);zY=_.lf(_.dm,function(){n(V.getVolume())})};
ymo=function(V,D){_.dm.cancelJob(zY);D&&V.syncVolume()};
ZsR=function(){var V={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Zl("SLEEP_TIMER_DISRUPTED")}}}}};_.DY().resolve(_.fH).resolveCommand(V)};
jeX=function(V){return(V.getDuration()-V.getProgressState().current)*1E3};
w0J=function(V,D){V=V+D-(0,_.VW)();if(V<=0)return{hours:0,minutes:0,seconds:0};var f=new lzJ(0,0,0,0,0,0,V);V=f.getHours();D=f.getMinutes();f=f.getSeconds();f!==0&&D++;D!==0&&D%60===0&&(V++,D=0);return{hours:V,minutes:D,seconds:f}};
Qeo=function(V,D,f){return V>0&&D>0?f?_.Zl("TIME_LEFT_HOURS_MINUTES",{hours:V.toString(),minutes:D.toString()}):_.Zl("TIME_HOURS_MINUTES",{hours:V.toString(),minutes:D.toString()}):V>0?f?_.jJ("TIME_LEFT_HOURS",V):_.jJ("TIME_HOURS",V):f?_.Zl("TIME_LEFT_MINUTES",{minutes:D.toString()}):_.Zl("TIME_MINUTES",{minutes:D.toString()})};
Gxw=function(V,D){if(V.timelyActions)return V.timelyActions.find(function(f){var n;return((n=_.g(f,RR))==null?void 0:n.cueRangeId)===D})};
ebR=function(V){var D=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.tu(V);V.keyMap_.forEach(function(f,n){_.i3(D,n)||this.remove(n)},V)};
cmJ=function(V,D){V.reloadContinuationItemsCommandMatcher=D};
_.CV=function(V,D){V.insertBefore(D,V.childNodes[0]||null)};
FdB=function(V){if(V>=48&&V<=57||V>=96&&V<=106||V>=65&&V<=90||_.Hb&&V==0)return!0;switch(V){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 _.rf;default:return!1}};
gQc=function(V){if(V.altKey&&!V.ctrlKey||V.metaKey||V.keyCode>=112&&V.keyCode<=123)return!1;if(FdB(V.keyCode))return!0;switch(V.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!_.rf;default:return V.keyCode<166||V.keyCode>183}};
lzJ=function(V,D,f,n,t,J,H){this.date=typeof V==="number"?new Date(V,D||0,f||1,n||0,t||0,J||0,H||0):new Date(V&&V.getTime?V.getTime():_.Vd())};
_.fg(lzJ,_.jq);_.P=lzJ.prototype;_.P.getHours=function(){return this.date.getHours()};
_.P.getMinutes=function(){return this.date.getMinutes()};
_.P.getSeconds=function(){return this.date.getSeconds()};
_.P.getMilliseconds=function(){return this.date.getMilliseconds()};
_.P.getUTCDay=function(){return this.date.getUTCDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.P.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.P.setHours=function(V){this.date.setHours(V)};
_.P.setMinutes=function(V){this.date.setMinutes(V)};
_.P.setSeconds=function(V){this.date.setSeconds(V)};
_.P.setMilliseconds=function(V){this.date.setMilliseconds(V)};
_.P.setUTCHours=function(V){this.date.setUTCHours(V)};
_.P.setUTCMinutes=function(V){this.date.setUTCMinutes(V)};
_.P.setUTCSeconds=function(V){this.date.setUTCSeconds(V)};
_.P.setUTCMilliseconds=function(V){this.date.setUTCMilliseconds(V)};
_.P.add=function(V){_.jq.prototype.add.call(this,V);V.hours&&this.setUTCHours(this.date.getUTCHours()+V.hours);V.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+V.minutes);V.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+V.seconds)};
_.P.JSC$9367_toIsoString=function(V){var D=_.jq.prototype.JSC$9367_toIsoString.call(this,V);return V?D+"T"+_.Uk(this.getHours(),2)+":"+_.Uk(this.getMinutes(),2)+":"+_.Uk(this.getSeconds(),2):D+"T"+_.Uk(this.getHours(),2)+_.Uk(this.getMinutes(),2)+_.Uk(this.getSeconds(),2)};
_.P.equals=function(V){return this.getTime()==V.getTime()};
_.P.toString=function(){return this.JSC$9367_toIsoString()};
_.P.clone=function(){var V=new lzJ(this.date);V.firstDayOfWeek_=this.firstDayOfWeek_;V.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return V};
_.vQq=function(V){return _.nA({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:V}})};
kxV=new _.L("imageTileRenderer");var seR=new _.L("adGridCardCollectionViewModel");var B8o=new _.L("carouselTitleViewModel");var d$3=new _.L("ctaCarouselItemViewModel");var unW=new _.L("textFieldViewModel");_.N8B=new _.L("engagementPanelHeaderShowNavigationButtonCommand");var m$3=new _.L("hideEngagementPanelScrimAction");var zbR=new _.L("setActivePanelItemAction");var RbX=new _.L("showEngagementPanelScrimAction");var CDR=new _.L("updateEngagementPanelAction");var qvq=new _.L("updateSearchInVideoResultsAction");var X0w=new _.L("transcriptCueGroupRenderer");var EQv=new _.L("transcriptCueRenderer");var Amw=new _.L("transcriptFooterRenderer");var azq=new _.L("engagementPanelAdSubtitleRenderer");var Yvw=new _.L("videoDescriptionFantasySectionViewModel");var $$f=new _.L("deleteClipEngagementPanelCommand");var isB=new _.L("loopCommand");var SvB=new _.L("changeCreatorEndscreenVisibilityCommand");var WdZ=new _.L("liveChatCallForQuestionsRenderer");var p0J=new _.L("updateTimedMarkersSyncObserverCommand");var RR=new _.L("timelyActionViewModel");var LdX=new _.L("timelyActionsOverlayViewModel");var IzJ=new _.L("repeatChapterCommand");var OsZ=new _.L("watchPlayerOverflowMenuCommand");var x$B=new _.L("compositeVideoOverlayRenderer");var Mx3=new _.L("sortFilterSubMenuRenderer");var hb0=new _.L("switchListItemViewModel");var U$W=new _.L("inputComposerViewModel");var VVV=new _.L("transcriptEditSegmentCommand");var Djf=new _.L("transcriptUpdateSegmentTextCommand");var fKo=new _.L("transcriptSearchBoxRenderer");var nZV=new _.L("transcriptSegmentListRenderer");var tVv=new _.L("transcriptSegmentRenderer");_.Px3=new _.L("updateDateTextAction");var oZV=new _.L("updateTitleAction");var Jjf=new _.L("updateViewershipAction");var rj0=new _.L("carouselLockupRenderer");var HPJ=new _.L("expandableVideoDescriptionBodyRenderer");var wPR=new _.L("videoDescriptionYouchatSectionViewModel");_.qc=_.tU("kevlar_watch_page_horizontal_margin",24);_.QSX=_.tU("kevlar_watch_page_columns_top_padding",24);_.T9c=426+_.qc*2;_.XJ=_.tU("kevlar_watch_two_column_width_threshold",1E3);_.bP3=_.qc*2;_.KV0=_.tU("kevlar_watch_secondary_width",402);_.yj0=_.tU("kevlar_watch_max_player_width",1280);_.ZP0=_.tU("kevlar_watch_flexy_metadata_height",136);_.jSB=_.bP3+310+_.qc;_.lKR=_.bP3+360+_.qc;var GBJ={PAUSE_CHAT:18};var e1q;var cjX;var EF=function(){return _.E.apply(this,arguments)||this};
_.v(EF,_.E);EF.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
EF.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var V=_.g(this.data.button,_.cW);V&&(V.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.IG.Object.defineProperties(EF,{template:{configurable:!0,enumerable:!0,get:function(){if(cjX===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;e1q===void 0&&(e1q=document.createElement("template"));var n=e1q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);cjX=V}V=cjX;return V}}});
_.S([_.u(_.qd),_.p("design:type",Object)],EF.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({selectorArgs:["data.enabledEntityKey"],selector:B$X,observer:"onEnabledChange"}),_.p("design:type",Boolean)],EF.prototype,"enabled",void 0);_.S([_.q(),_.p("design:type",Object)],EF.prototype,"data",void 0);_.S([_.zy({is:"yt-disableable-button-view-model",noInjection:!0})],EF);var FVW;var gZR;var vZv=["transVert01","transVert02","transVert03"],kBV="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),AQ=function(){var V=_.E.apply(this,arguments)||this;V.emojiManager=_.Ct;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};V.reactionBuckets=[];V.noEmojiIdentifier="NO_EMOJI";return V};
_.v(AQ,_.E);_.P=AQ.prototype;_.P.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.P.desktopFountainEmojiSizePxChanged=function(){_.wI(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.P.createUserReactionAnimation=function(V){this.createEmojiAnimation(V,!0)};
_.P.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var V;((V=this.data)==null?0:V.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.y1("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.sz(this.emojiContainer.children)).forEach(function(D){D.remove()})};
_.P.detached=function(){this.cleanupFountain()};
_.P.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var V;this.reactionBuckets=_.sB.unsafeClone((V=this.emojiFountainData)==null?void 0:V.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.P.processEmojiBucket=function(V){var D=this;if(this.reactionBuckets&&!(V>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var f=this.reactionBuckets[V];this.generateEmojiAnimations(f);if(V<this.reactionBuckets.length-1){var n;if(f==null?0:(n=f.duration)==null?0:n.seconds)this.emojiBucketTimerId=setTimeout(function(){D.processEmojiBucket(V+1)},Number(f.duration.seconds)*1E3)}}};
_.P.generateEmojiAnimations=function(V){var D=this,f=this.getRandomEmojiIdFromBucketWithOverride(V);if(f&&f!==this.noEmojiIdentifier){var n=0;V.targetEps?(n=this.linearInterpolateBounded(1,20,100,12,V.emojiSizeIndex||0),this.createEmojiAnimation(f,!1,V.emojiAnimationMs,n),n=this.getEmojiDelayMsFromTargetEps(V.targetEps)):(this.createEmojiAnimation(f),n=this.getEmojiDelayMsFromDistribution(V.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){D.generateEmojiAnimations(V)},n)}};
_.P.getRandomEmojiIdFromBucketWithOverride=function(V){if(!(V&&V.reactionsData&&V.reactionsData.length&&V.totalReactions))return this.noEmojiIdentifier;for(var D=V.totalReactions,f=1,n=_.r(V.reactionsData),t=n.next();!t.done;t=n.next())t=t.value,(t.reactionWeightOverride||t.reactionWeightOverride===0)&&t.reactionCount&&(D-=t.reactionCount,f-=t.reactionWeightOverride);n=!0;f<0&&(n=!1,D=V.totalReactions,f=1);if(n&&f>0&&D===0)if(f===1){t=0;for(var J=_.r(V.reactionsData),H=J.next();!H.done;H=J.next())H=
H.value,H.reactionCount&&H.reactionCount>0&&t++;t=1/t;J=_.r(V.reactionsData);for(H=J.next();!H.done;H=J.next())H.value.reactionWeightOverride=t}else for(t=1/(1-f),J=_.r(V.reactionsData),H=J.next();!H.done;H=J.next())H=H.value,H.reactionWeightOverride&&(H.reactionWeightOverride*=t);t=Math.random();J=0;H=_.r(V.reactionsData);for(var Q=H.next();!Q.done;Q=H.next())if(Q=Q.value,Q.reactionCount&&(J=(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&n?J+Q.reactionWeightOverride:J+f*Q.reactionCount/
D,J>t&&(Q.reactionCount--,V.totalReactions--,Q=this.reactionItemToEmojiString(Q),Q!==this.noEmojiIdentifier)))return Q;return this.noEmojiIdentifier};
_.P.reactionItemToEmojiString=function(V){if(V.unicodeEmojiId)return V.unicodeEmojiId;if(V.emoteId)return V.emoteId;if(V.videoReactionType)switch(V.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.P.createEmojiAnimation=function(V,D,f,n){D=D===void 0?!1:D;this.lastEmojiRequestedForTesting=V;var t=V.startsWith("yt-icons:"),J=_.z0(this.emojiManager,V);if(J||t){var H=document.createElement("emoji");H.classList.add("yt-emoji-fountain-view-model");H.classList.add(vZv[Math.floor(Math.random()*vZv.length)]);var Q=document.createElement("div");Q.classList.add("yt-emoji-fountain-view-model");Q.classList.add("horizontal-container");Q.classList.add(kBV[Math.floor(Math.random()*kBV.length)]);D?(f=document.createElement("div"),
f.classList.add("user-reaction-bubble"),f.classList.add("yt-emoji-fountain-view-model"),Q.appendChild(f)):(f&&(H.style.animationDuration=f+"ms",Q.style.animationDuration=f+"ms"),n&&(H.style.width=n+"px",H.style.height=n+"px"));t?(t=document.createElement("yt-icon"),t.polymerController.icon=V,n&&(t.style.width=n+"px",t.style.height=n+"px"),V=t):V=this.emojiManager.createEmoji(J,!1);V.classList.add("yt-emoji-fountain-view-model");Q.appendChild(V);H.appendChild(Q);this.emojiContainer.appendChild(H);
H.addEventListener("animationend",function(){H.remove()});
var T,y;if((T=this.data)==null?0:(y=T.loggingDirectives)==null?0:y.trackingParams)D=D?_.Bj(183501):_.Bj(183500),dKJ(this.data.loggingDirectives.trackingParams,D),_.auR(D);setTimeout(function(){H&&H.remove()},2E3)}};
_.P.getEmojiDelayMsFromDistribution=function(V){return Math.random()*(V||1)*1E3};
_.P.getEmojiDelayMsFromTargetEps=function(V){return Math.random()*2*(1/V)*1E3};
_.P.linearInterpolateBounded=function(V,D,f,n,t){t=Math.min(Math.max(t,V),f);return(D*(f-t)+n*(t-V))/(f-V)};
AQ.prototype.onEmojiFountainDataEntityUpdate=AQ.prototype.onEmojiFountainDataEntityUpdate;AQ.prototype.desktopFountainEmojiSizePxChanged=AQ.prototype.desktopFountainEmojiSizePxChanged;AQ.prototype.isActiveChanged=AQ.prototype.isActiveChanged;_.S([_.q(),_.p("design:type",_.m9)],AQ.prototype,"emojiManager",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],AQ.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],AQ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],AQ.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(V,D){return _.wg(V.entities,"emojiFountainDataEntity",D)}}),
_.p("design:type",Object)],AQ.prototype,"emojiFountainData",void 0);_.S([_.q(),_.p("design:type",Boolean)],AQ.prototype,"isActive",void 0);_.S([_.KI("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AQ.prototype,"isActiveChanged",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AQ.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",String)],AQ.prototype,"lastEmojiRequestedForTesting",void 0);
_.S([_.q({value:function(){return _.tU("desktop_fountain_emoji_size_px",20)}}),
_.p("design:type",Number)],AQ.prototype,"desktopFountainEmojiSizePx",void 0);_.S([_.KI("desktopFountainEmojiSizePx"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AQ.prototype,"desktopFountainEmojiSizePxChanged",null);_.S([_.Zv("#emoji-container"),_.p("design:type",HTMLElement)],AQ.prototype,"emojiContainer",void 0);
_.S([_.KI("emojiFountainData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AQ.prototype,"onEmojiFountainDataEntityUpdate",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],AQ);
_.Y(AQ,"yt-emoji-fountain-view-model",function(){if(gZR===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;FVW===void 0&&(FVW=document.createElement("template"));var n=FVW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);gZR=V}V=gZR;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var sSc;var B9J;var aR=function(){return _.E.apply(this,arguments)||this};
_.v(aR,_.E);aR.prototype.onChoiceChanged=function(){this.data&&_.wI(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
aR.prototype.onChoiceChanged=aR.prototype.onChoiceChanged;_.S([_.q(),_.p("design:type",Object)],aR.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aR.prototype,"onChoiceChanged",null);_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],aR);
_.Y(aR,"yt-live-chat-banner-poll-choice",function(){if(B9J===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;sSc===void 0&&(sSc=document.createElement("template"));var n=sSc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);B9J=V}V=B9J;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var djR;var uMB;var Ya=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework_with_live");V.small=!1;return V};
_.v(Ya,_.E);Ya.prototype.computeIsSmall=function(){var V;return((V=this.buttonOverrides)==null?void 0:V.size)==="S"};
Ya.prototype.computeId=function(){return this.data&&this.data.targetId};
_.S([_.u(_.X_.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],Ya.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],Ya.prototype,"id",void 0);_.S([_.q(),_.p("design:type",Object)],Ya.prototype,"buttonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],Ya.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ya.prototype,"modern",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.p("design:type",Object)],Ya.prototype,"small",void 0);_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-button"})],Ya);
_.Y(Ya,"yt-live-chat-button",function(){if(uMB===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;djR===void 0&&(djR=document.createElement("template"));var n=djR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);uMB=V}V=uMB;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var N9q;var mjw;var $a=function(){var V=_.E.apply(this,arguments)||this;V.inCollapsedBanner=!1;V.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};V.questionButtonOverrides={style:"mono",type:"filled"};return V};
_.v($a,_.E);_.P=$a.prototype;_.P.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]]"}}}}}};
_.P.onContextMenuButtonClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
_.P.onYtRendererstamperFinished=function(){this.menuButton=_.Pt(this.hostElement).querySelector("#menu-button")};
_.P.dataChanged=function(){var V,D;if((D=_.g((V=this.data)==null?void 0:V.overflowMenuButton,_.RI))==null?0:D.command)this.data.contextMenuEndpoint=_.g(this.data.overflowMenuButton,_.RI).command};
_.P.onButtonClick=function(){var V,D=_.g((V=this.data)==null?void 0:V.askQuestionButton,_.RI);if(D){if(D.trackingParams&&(V=_.gs(D.trackingParams))){var f=_.Ni();f&&_.p6(f,V)}_.PA(this.hostElement,"innertube-command",D.command)}};
$a.prototype.onYtRendererstamperFinished=$a.prototype.onYtRendererstamperFinished;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],$a.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],$a.prototype,"ytLiveChatItemBehavior",void 0);_.S([_.q({observer:"dataChanged"}),_.p("design:type",Object)],$a.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$a.prototype,"inCollapsedBanner",void 0);_.S([_.q(),_.p("design:type",Object)],$a.prototype,"buttonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],$a.prototype,"questionButtonOverrides",void 0);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$a.prototype,"onYtRendererstamperFinished",null);
_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],$a);
_.Y($a,"yt-live-chat-call-for-questions-renderer",function(){if(mjw===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;N9q===void 0&&(N9q=document.createElement("template"));var n=N9q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mjw=V}V=mjw;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var z1w={};z1w.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 V=this;window.requestAnimationFrame(function(){V.restoreFocusNode_||(V.restoreFocusNode_=document.activeElement);var D=_.OTU(V.hostElement);D.length&&D[D.length-1].focus()})},
isAttachedChanged_:function(V,D){V?this.focusChild_():D&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(V){this.hidden||_.Os(V).indexOf(this.hostElement)!==-1||(V.stopPropagation(),this.focusChild_())}};var R1B;var Cxv;var im=function(){return _.E.apply(this,arguments)||this};
_.v(im,_.E);im.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
im.prototype.onClick=function(V){V.target!==this.confirmButton&&V.target!==this.cancelButton&&(this.hidden=!0)};
_.S([_.Zv("#confirm_button"),_.p("design:type",Object)],im.prototype,"confirmButton",void 0);_.S([_.Zv("#cancel_button"),_.p("design:type",Object)],im.prototype,"cancelButton",void 0);_.S([_.q(),_.p("design:type",qMv)],im.prototype,"data",void 0);_.S([_.q({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],im.prototype,"hidden",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(z1w.YtLiveChatDialogBehavior),_.p("design:type",Object)],im.prototype,"ytLiveChatDialogBehavior",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],im);
var qMv=_.Y(im,"yt-live-chat-dialog-renderer",function(){if(Cxv===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;R1B===void 0&&(R1B=document.createElement("template"));var n=R1B;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Cxv=V}V=Cxv;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var XPZ;var EZ0,Ajv=function(){if(EZ0!==void 0)return EZ0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;XPZ===void 0&&(XPZ=document.createElement("template"));var n=XPZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return EZ0=V};var aKW;var YMX;var Sj=function(){var V=_.E.apply(this,arguments)||this;V.tooltip=null;V.data=null;V.id="";V.active=!1;V.icon="";V.disabled=!1;V.showTooltip=!1;V.useToggledActiveState=!0;V.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return V};
_.v(Sj,_.E);_.P=Sj.prototype;
_.P.dataChanged=function(){var V;((V=this.data)==null?0:V.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,_.Ht)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var D;if((D=this.data)==null?0:D.disabled)this.disabled=!0};
_.P.computeId=function(V){return V};
_.P.computeIcon=function(V,D){if(!V)return"";if(this.useToggledActiveState)return"yt-icons:"+V.toLowerCase();var f,n;return D&&((f=this.data)==null?0:(n=f.toggledIcon)==null?0:n.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+V.toLowerCase()};
_.P.logPDGEntryPoint=function(){_.nLc(_.Qu("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")};
_.P.immediatelyShowTooltip=function(){var V=_.Pt(this.hostElement).querySelector("#tooltip");V.animationDelay=0;V.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};V.show()};
_.P.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.P.onClick=function(V){var D;((D=this.data)==null?0:D.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(),V.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.PA(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.P.computeShowTooltip=function(V,D){return!!(V&&V.tooltip&&D)};
_.P.maybeUpdateTooltipText=function(){var V=this,D;if((D=this.data)==null?0:D.tooltip){var f=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Ht)(V.tooltip).textContent=f},250)}};
_.P.handleLiveChatActions=function(V){var D=this;V.length&&(this.id!=="creator"&&this.id!=="product-picker"||V.forEach(function(f){(f=D.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",f))&&f.durationSec===f.fullDurationSec&&D.startBubble(D.colorFromDecimal(f.startBackgroundColor))}))};
_.P.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.P.startBubble=function(V){_.wI(this.hostElement,{"--yt-live-chat-monetization-button-glow":V});this.hostElement.setAttribute("bubble","")};
_.P.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.P.colorFromDecimal=function(V){typeof V==="string"&&(V=Number(V));return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
Sj.prototype.onAnimationEnd=Sj.prototype.onAnimationEnd;Sj.prototype.disabledChanged=Sj.prototype.disabledChanged;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Sj.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.X_.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],Sj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sj.prototype,"data",void 0);_.S([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],Sj.prototype,"id",void 0);_.S([_.q({notify:!0,reflectToAttribute:!0}),_.p("design:type",Object)],Sj.prototype,"active",void 0);
_.S([_.q({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.p("design:type",Object)],Sj.prototype,"icon",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Sj.prototype,"disabled",void 0);_.S([_.q({computed:"computeShowTooltip(data, disabled)"}),_.p("design:type",Object)],Sj.prototype,"showTooltip",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Sj.prototype,"useToggledActiveState",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"dataChanged",null);_.S([_.KI("disabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"disabledChanged",null);_.S([_.bU("animationend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Sj.prototype,"onAnimationEnd",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Sj);
_.Y(Sj,"yt-live-chat-icon-toggle-button-renderer",function(){if(YMX===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;aKW===void 0&&(aKW=document.createElement("template"));var n=aKW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);YMX=V}V=YMX;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var $jB;var iP3;var WF=function(){return _.E.apply(this,arguments)||this};
_.v(WF,_.E);WF.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S([_.q(),_.p("design:type",Object)],WF.prototype,"data",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],WF);
_.Y(WF,"yt-live-chat-message-input-prompt-header-renderer",function(){if(iP3===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;$jB===void 0&&($jB=document.createElement("template"));var n=$jB;f.call(D,n.content.cloneNode(!0),V.content.firstChild);iP3=V}V=iP3;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var SM3;var WVR;var pP0;var LVV;var IKf;var OPf;var xj0=function(){return _.E.apply(this,arguments)||this};
_.v(xj0,_.E);_.S([_.q(),_.p("design:type",Object)],xj0.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],xj0);
_.Y(xj0,"yt-live-chat-message-subtext-renderer",function(){if(OPf===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;IKf===void 0&&(IKf=document.createElement("template"));var n=IKf;f.call(D,n.content.cloneNode(!0),V.content.firstChild);OPf=V}V=OPf;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var pV=function(){var V=_.E.apply(this,arguments)||this;V.subtextOnBottom=!1;V.buttonOverrides={style:"mono",type:"tonal"};return V};
_.v(pV,_.E);pV.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pV.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pV.prototype,"subtextOnBottom",void 0);_.S([_.q(),_.p("design:type",Object)],pV.prototype,"buttonOverrides",void 0);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],pV);
_.Y(pV,"yt-live-chat-message-renderer",function(){if(LVV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;pP0===void 0&&(pP0=document.createElement("template"));var n=pP0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);LVV=V}V=LVV;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var MVV;var h1X;var LV=function(){var V=_.E.apply(this,arguments)||this;V.isRemovable=!1;V.hasPrefilledText=!1;V.isInputDirty=!1;V.overCharacterLimit=!1;V.underCharacterLimit=!1;V.showErrorMessage=!1;return V};
_.v(LV,_.E);_.P=LV.prototype;_.P.computeId=function(){return this.data.id};
_.P.computeInputData=function(){return this.data.inputData};
_.P.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.P.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.P.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.P.getLiveChatRichMessageInput=function(){return _.Pt(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.P.clearInput=function(){_.Pt(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.P.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.P.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.P.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.P.handleTextInputCharCountChanged=function(V){V=V.detail&&V.detail.characterCount;V!==void 0&&(this.characterCount=V,V!==0&&(this.isInputDirty=!0))};
_.P.onInputFocusOut=function(){this.isInputDirty=!0};
_.P.onClickCloseButton=function(){_.PA(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
LV.prototype.handleTextInputCharCountChanged=LV.prototype.handleTextInputCharCountChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LV.prototype,"data",void 0);_.S([_.q({computed:"computeId(data.id)"}),_.p("design:type",String)],LV.prototype,"id",void 0);_.S([_.q({computed:"computeInputData(data.inputData)"}),_.p("design:type",Object)],LV.prototype,"inputData",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.p("design:type",Object)],LV.prototype,"isRemovable",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.p("design:type",Object)],LV.prototype,"hasPrefilledText",void 0);_.S([_.q({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.p("design:type",Number)],LV.prototype,"charactersRemaining",void 0);
_.S([_.q(),_.p("design:type",Number)],LV.prototype,"characterCount",void 0);_.S([_.q(),_.p("design:type",Object)],LV.prototype,"isInputDirty",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.p("design:type",Object)],LV.prototype,"overCharacterLimit",void 0);_.S([_.q({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.p("design:type",Object)],LV.prototype,"underCharacterLimit",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.p("design:type",Object)],LV.prototype,"showErrorMessage",void 0);_.S([_.bU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],LV.prototype,"handleTextInputCharCountChanged",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],LV);
_.Y(LV,"yt-live-chat-poll-editor-input",function(){if(h1X===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;MVV===void 0&&(MVV=document.createElement("template"));var n=MVV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);h1X=V}V=h1X;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Ujc;var V83;var Df3={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},IR=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_button_rework_with_live");V.closeButtonOverrides={iconPosition:"icon-only"};V.startButtonOverrides={style:"mono",type:"filled"};V.addOptionButtonOverrides={style:"mono",type:"text"};return V};
_.v(IR,_.E);_.P=IR.prototype;
_.P.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"}}}}};
_.P.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var V;_.g((V=this.data)==null?void 0:V.startButton,_.RI)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.computeId=function(){return this.data&&this.data.id||""};
_.P.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.P.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.P.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.P.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.P.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var V=0;V<this.pollEditorInfoWithDefaults.minPollOptions;V++)this.addPollOptionData()};
_.P.getIsValidPoll=function(){var V=this;if(!this.pollEditorInfoWithDefaults)return!1;var D=this.pollEditorInfoWithDefaults,f=D.minPollOptionChars,n=D.maxPollOptionChars,t=D.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>D.maxPollQuestionChars)return!1;D=_.Pt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(D).every(function(J,H){J=J.characterCount;!J&&t[H]&&(J=V.ytRendererBehavior.getSimpleString(t[H]).length);return J!==void 0&&J>=f&&J<=n})};
_.P.isValidPollChanged=function(){var V;_.g((V=this.data)==null?void 0:V.startButton,_.RI)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.addPollOptionData=function(){var V=this.pollEditorInfoWithDefaults,D=V.maxPollOptionChars,f=V.optionPlaceholderText,n=V.customOptionPlaceholderText,t=V.pollOptionData;this.currentNumPollOptions>=V.maxPollOptions||(V={liveChatPollOptionInput:{inputData:{placeholder:n[this.currentNumPollOptions]||f,maxCharacterLimit:D},maxCharacterLimit:D,minCharacterLimit:V.minPollOptionChars,hasPrefilledText:!!n[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=V.minPollOptions}},t.charCountErrorText&&
(V.liveChatPollOptionInput.charCountErrorText=t.charCountErrorText),t.charsRemainingAltLabel&&(V.liveChatPollOptionInput.charsRemainingAltLabel=t.charsRemainingAltLabel),t.removeOptionAltText&&(V.liveChatPollOptionInput.removeOptionAltText=t.removeOptionAltText),this.push("pollOptionsData",V),t=Array.from(_.Pt(_.Pt(this.hostElement).querySelector("#poll-options")).children),t.forEach(function(J,H){J.polymerController.set("data.id",H)}),_.Pt(t[t.length-1]).querySelector("#input").focus())};
_.P.getPollOptionInputValues=function(){var V=this,D=[],f=_.Pt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),n=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(f).forEach(function(t,J){var H=null;t=t.getLiveChatRichMessageInput();var Q;(t==null?0:(Q=t.textSegments)==null?0:Q.length)?H=_.Eo(t):n[J]&&(H=V.formattedStringToLiveChatRichMessageInput(n[J]));D.push(H)});
return D};
_.P.requestCreateAndStartPoll=function(V){var D=this.getPollOptionInputValues();if(!D.some(function(n){return!n})){D={optionText:D};
var f=_.Pt(_.Pt(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.liveChatRichMessageInput&&(D.questionText=_.Eo(f.liveChatRichMessageInput));_.HA(this.hostElement,[V,D])}};
_.P.selectedChanged=function(){if(this.selected){var V=_.Pt(_.Pt(this.hostElement).querySelector("#start-button")).firstElementChild;if(V){var D;(D=_.Pt(V).querySelector("#button")||_.oU(V).querySelector("button"))==null||D.focus()}}};
_.P.handleTextInputChanged=function(V){var D;((D=V.target)==null?void 0:D.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=V.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.P.handleStartButtonAction=function(V){V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),(V=V.detail.args[1])&&this.requestCreateAndStartPoll(V))};
_.P.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(V){this.createPollRequestInFlight=!1;(V=V.detail&&V.detail.data)&&V.success&&(_.PA(this.hostElement,"picker-cancelled"),_.o4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.P.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");_.o4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.P.handlePollEditorInputClosed=function(V){var D=this.pollOptionsData.findIndex(function(f){return f.liveChatPollOptionInput.id===V.detail.id});
this.splice("pollOptionsData",D,1);this.isValidPoll=this.getIsValidPoll()};
_.P.onPickerCancelled=function(){this.reset()};
_.P.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var V=_.Pt(_.Pt(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.setLiveChatRichMessageInput(null);if(V=_.Pt(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){V=_.r(Array.from(V));for(var D=V.next();!D.done;D=V.next())D.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.P.formattedStringToLiveChatRichMessageInput=function(V){return V.simpleText?{text_segments:[V.simpleText]}:{text_segments:V.runs}};
_.IG.Object.defineProperties(IR.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(Df3,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
IR.prototype.onPickerCancelled=IR.prototype.onPickerCancelled;IR.prototype.handlePollEditorInputClosed=IR.prototype.handlePollEditorInputClosed;IR.prototype.handleServiceRequestCompleted=IR.prototype.handleServiceRequestCompleted;IR.prototype.handleServiceRequestSent=IR.prototype.handleServiceRequestSent;IR.prototype.handleTextInputChanged=IR.prototype.handleTextInputChanged;IR.prototype.selectedChanged=IR.prototype.selectedChanged;IR.prototype.isValidPollChanged=IR.prototype.isValidPollChanged;
IR.prototype.shouldInitializePollChanged=IR.prototype.shouldInitializePollChanged;IR.prototype.dataChanged=IR.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IR.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IR.prototype,"modern",void 0);
_.S([_.q(),_.p("design:type",Object)],IR.prototype,"closeButtonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],IR.prototype,"startButtonOverrides",void 0);_.S([_.q(),_.p("design:type",Object)],IR.prototype,"addOptionButtonOverrides",void 0);_.S([_.q({computed:"computeId(data.id)",reflectToAttribute:!0}),_.p("design:type",String)],IR.prototype,"id",void 0);_.S([_.q({value:function(){return[]}}),
_.p("design:type",Array)],IR.prototype,"pollOptionsData",void 0);_.S([_.R("pollEditorInfoWithDefaults"),_.p("design:type",Object),_.p("design:paramtypes",[])],IR.prototype,"pollQuestionData",null);_.S([_.q({value:0}),_.p("design:type",Number)],IR.prototype,"pollQuestionCharacterCount",void 0);_.S([_.R("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],IR.prototype,"pollQuestionCharactersRemaining",null);
_.S([_.q({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.p("design:type",Boolean)],IR.prototype,"overQuestionCharacterLimit",void 0);_.S([_.R("data.pollEditorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],IR.prototype,"pollEditorInfoWithDefaults",null);_.S([_.q({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.p("design:type",Number)],IR.prototype,"currentNumPollOptions",void 0);
_.S([_.q({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.p("design:type",Boolean)],IR.prototype,"hasMaxNumPollOptions",void 0);_.S([_.R("pollEditorInfoWithDefaults","pollOptionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IR.prototype,"shouldInitializePoll",null);_.S([_.q(),_.p("design:type",Object)],IR.prototype,"isValidPoll",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],IR.prototype,"createPollRequestInFlight",void 0);_.S([_.q(),_.p("design:type",Object)],IR.prototype,"selected",void 0);_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.p("design:type",Boolean)],IR.prototype,"showQuestionErrorMessage",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"dataChanged",null);_.S([_.KI("shouldInitializePoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"shouldInitializePollChanged",null);_.S([_.KI("isValidPoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"isValidPollChanged",null);
_.S([_.KI("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"selectedChanged",null);_.S([_.bU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],IR.prototype,"handleTextInputChanged",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"handleServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],IR.prototype,"handleServiceRequestCompleted",null);
_.S([_.bU("yt-live-chat-poll-editor-input-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],IR.prototype,"handlePollEditorInputClosed",null);_.S([_.bU("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IR.prototype,"onPickerCancelled",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],IR);
_.Y(IR,"yt-live-chat-poll-editor-panel-renderer",function(){if(V83===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Ujc===void 0&&(Ujc=document.createElement("template"));var n=Ujc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);V83=V}V=V83;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var fmX;var nkR;var OF=function(){return _.E.apply(this,arguments)||this};
_.v(OF,_.E);OF.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
OF.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.IG.Object.defineProperties(OF.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var V,D;return(V=this.data)==null?void 0:(D=V.title)==null?void 0:D.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var V;return _.Xo((V=this.data)==null?void 0:V.onTapCommand)}}});
_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],OF.prototype,"ytEndpointBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OF.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],OF.prototype,"itemId",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OF.prototype,"hasPromotion",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],OF.prototype,"innertubeCommand",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],OF);
_.Y(OF,"yt-live-chat-product-picker-panel-item-view-model",function(){if(nkR===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;fmX===void 0&&(fmX=document.createElement("template"));var n=fmX;f.call(D,n.content.cloneNode(!0),V.content.firstChild);nkR=V}V=nkR;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var t8V;var PcR;var xa=function(){var V=_.E.apply(this,arguments)||this;V.id="product-picker";V.selected=!1;V.closeButtonId="close-button";V.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return V};
_.v(xa,_.E);_.P=xa.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var V=_.Pt(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");V.length&&V[0].focus()};
_.P.onCloseBuyFlow=function(){_.PA(this.hostElement,"picker-cancelled")};
_.P.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");var V;((V=this.data)==null?0:V.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.closeButton,_.cW))};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.PA(this.hostElement,"picker-cancelled")};
xa.prototype.observeSelected=xa.prototype.observeSelected;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],xa.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xa.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xa.prototype,"id",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xa.prototype,"selected",void 0);_.S([_.q(),_.p("design:type",Object)],xa.prototype,"closeButtonId",void 0);_.S([_.KI("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xa.prototype,"observeSelected",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],xa);
_.Y(xa,"yt-live-chat-product-picker-panel-view-model",function(){if(PcR===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;t8V===void 0&&(t8V=document.createElement("template"));var n=t8V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);PcR=V}V=PcR;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var okf;var JCV;var Mc=function(){var V=_.E.apply(this,arguments)||this;V.iconId="";V.icon="";V.disabled=!1;V.systemIcons=_.c("kevlar_system_icons");return V};
_.v(Mc,_.E);_.P=Mc.prototype;_.P.attached=function(){_.c("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"))};
_.P.computeIconId=function(V){return V&&V.icon&&V.icon.iconType?V.icon.iconType.toLowerCase():""};
_.P.computeIcon=function(V){return V&&V.icon&&V.icon.iconType?(V=V.icon.iconType.toLowerCase(),(V.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+V):""};
_.P.computeDisabled=function(V){return!!V};
_.P.computeCommand=function(V,D){return D?void 0:V};
_.P.computeTooltip=function(V,D){return D&&V?V:""};
_.P.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.IG.Object.defineProperties(Mc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.c("live_chat_compute_product_button_aria_label"))return"";var V="",D,f,n;if((D=this.data)==null?0:(f=D.text)==null?0:(n=f.runs)==null?0:n.length)V=this.data.text.runs[0].text||"";else{var t,J;if((t=this.data)==null?0:(J=t.text)==null?0:J.simpleText)V=this.data.text.simpleText}var H,Q,T;if((H=this.data)==null?0:(Q=H.subtext)==null?0:(T=Q.runs)==null?0:T.length)V&&(V+=". "),V+=this.data.subtext.runs[0].text||
"";else{var y,Z;if((y=this.data)==null?0:(Z=y.subtext)==null?0:Z.simpleText)V&&(V+=". "),V+=this.data.subtext.simpleText}return V}}});
_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],Mc.prototype,"ytEndpointBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mc.prototype,"data",void 0);_.S([_.q({computed:"computeIconId(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Mc.prototype,"iconId",void 0);
_.S([_.q({computed:"computeIcon(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Mc.prototype,"icon",void 0);_.S([_.q({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.p("design:type",Object)],Mc.prototype,"disabled",void 0);_.S([_.q({computed:"computeCommand(data.command, disabled)"}),_.p("design:type",Object)],Mc.prototype,"command",void 0);_.S([_.q({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.p("design:type",String)],Mc.prototype,"tooltip",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Mc.prototype,"systemIcons",void 0);_.S([_.R("data.text","data.subtext"),_.q(),_.p("design:type",String),_.p("design:paramtypes",[])],Mc.prototype,"ariaLabel",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Mc);
_.Y(Mc,"yt-live-chat-product-button-renderer",function(){if(JCV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;okf===void 0&&(okf=document.createElement("template"));var n=okf;f.call(D,n.content.cloneNode(!0),V.content.firstChild);JCV=V}V=JCV;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var rC3;var Hr0;var hQ=function(){var V=_.E.apply(this,arguments)||this;V.selected=!1;V.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 V};
_.v(hQ,_.E);_.P=hQ.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.computeId=function(V){return V.id||""};
_.P.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled")};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var V=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");V.length&&V[0].focus()};
_.P.onCloseBuyFlow=function(){_.PA(this.hostElement,"picker-cancelled")};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.PA(this.hostElement,"picker-cancelled")};
hQ.prototype.observeSelected=hQ.prototype.observeSelected;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hQ.prototype,"data",void 0);
_.S([_.q({computed:"computeId(data)",reflectToAttribute:!0}),_.p("design:type",String)],hQ.prototype,"id",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hQ.prototype,"selected",void 0);_.S([_.KI("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hQ.prototype,"observeSelected",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],hQ);
_.Y(hQ,"yt-live-chat-product-picker-renderer",function(){if(Hr0===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;rC3===void 0&&(rC3=document.createElement("template"));var n=rC3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Hr0=V}V=Hr0;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var wzR;var Q63;var T7J;var brv;var UF=function(){return _.E.apply(this,arguments)||this};
_.v(UF,_.E);UF.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()};
UF.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
UF.prototype.created=function(){this.ids={background:_.Ng(),maskOne:_.Ng(),maskTwo:_.Ng(),gradient:_.Ng(),largeBackground:_.Ng(),largeGradientOne:_.Ng(),largeGradientTwo:_.Ng(),largeGradientPath:_.Ng()}};
UF.prototype.maybeLoadAnimationBackground=UF.prototype.maybeLoadAnimationBackground;_.S([_.q({value:!1}),_.p("design:type",Boolean)],UF.prototype,"useLargeBackground",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],UF.prototype,"useAnimationBackground",void 0);_.S([_.q({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.p("design:type",Boolean)],UF.prototype,"useRegularBackground",void 0);
_.S([_.q(),_.p("design:type",Object)],UF.prototype,"ids",void 0);_.S([_.q(),_.p("design:type",Object)],UF.prototype,"lottieAnimation",void 0);_.S([_.Zv("#animation-background"),_.p("design:type",HTMLDivElement)],UF.prototype,"animationBackground",void 0);_.S([_.KI("useAnimationBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UF.prototype,"maybeLoadAnimationBackground",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],UF);
_.Y(UF,"yt-live-interactivity-component-background",function(){if(brv===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;T7J===void 0&&(T7J=document.createElement("template"));var n=T7J;f.call(D,n.content.cloneNode(!0),V.content.firstChild);brv=V}V=brv;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var VL=function(){var V=_.E.apply(this,arguments)||this;V.characterCount=0;V.showInputErrorMessage=!1;V.startQnaRequestInFlight=!1;V.modern=_.c("web_button_rework_with_live");V.buttonOverrides={style:"mono",type:"filled"};V.closeButtonOverrides={iconPosition:"icon-only"};V.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return V};
_.v(VL,_.E);_.P=VL.prototype;
_.P.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]]"}}}}}};
_.P.onCharacterCountChanged=function(V){var D,f,n,t,J=(f=_.g(this==null?void 0:(D=this.data)==null?void 0:D.creatorCallForQuestions,WdZ))==null?void 0:(n=f.inputField)==null?void 0:(t=n.liveChatTextInputFieldRenderer)==null?void 0:t.maxCharacterLimit,H,Q;J!=null&&(V==null?void 0:(H=V.detail)==null?void 0:H.characterCount)!=null&&_.g(this==null?void 0:(Q=this.data)==null?void 0:Q.startButton,_.RI)&&(D=V.detail.characterCount>J,this.set("data.startButton.buttonRenderer.isDisabled",V.detail.characterCount===
0||D),this.showInputErrorMessage=D)};
_.P.onCloseClick=function(){_.PA(this.hostElement,"picker-cancelled");_.o4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onPickerCancelled=function(){var V=_.Pt(this.hostElement).querySelector("#qna-creator-text-input-field");V&&V.setLiveChatRichMessageInput(null)};
_.P.handleOpenQnaStartPanel=function(){var V=_.Pt(this.hostElement).querySelector("#qna-creator-text-input-field");V&&V.focus()};
_.P.handleStartButtonAction=function(V){var D=this;if(V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),V=V.detail.args[1])){var f=_.Pt(this.hostElement).querySelector("#qna-creator-text-input-field"),n;(f==null?0:(n=f.liveChatRichMessageInput)==null?0:n.textSegments)&&f.liveChatRichMessageInput.textSegments.length!==0&&(n={rich_message:_.Eo(f.liveChatRichMessageInput)},_.HA(this.hostElement,[V,n]).then(function(){_.PA(D.hostElement,"picker-cancelled")}))}};
_.P.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(V){var D;V=V==null?void 0:(D=V.detail)==null?void 0:D.data;(V==null?0:V.actions)&&V.actions.length>0?this.startQnaRequestInFlight=!1:_.o4(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
VL.prototype.handleServiceRequestError=VL.prototype.handleServiceRequestError;VL.prototype.handleServiceRequestCompleted=VL.prototype.handleServiceRequestCompleted;VL.prototype.handleServiceRequestSent=VL.prototype.handleServiceRequestSent;VL.prototype.onPickerCancelled=VL.prototype.onPickerCancelled;VL.prototype.onCharacterCountChanged=VL.prototype.onCharacterCountChanged;_.S([_.q(),_.p("design:type",Object)],VL.prototype,"characterCount",void 0);
_.S([_.q(),_.p("design:type",Object)],VL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],VL.prototype,"showInputErrorMessage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],VL.prototype,"startQnaRequestInFlight",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],VL.prototype,"modern",void 0);_.S([_.q(),_.p("design:type",Object)],VL.prototype,"buttonOverrides",void 0);
_.S([_.q(),_.p("design:type",Object)],VL.prototype,"closeButtonOverrides",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],VL.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.u(_.qC.YtLiveChatItemBehavior),_.p("design:type",_.XA)],VL.prototype,"ytLiveChatItemBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],VL.prototype,"ytActionHandlerBehavior",void 0);_.S([_.bU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],VL.prototype,"onCharacterCountChanged",null);_.S([_.bU("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VL.prototype,"onPickerCancelled",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VL.prototype,"handleServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],VL.prototype,"handleServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],VL.prototype,"handleServiceRequestError",null);_.S([_.a({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],VL);
_.Y(VL,"yt-live-chat-qna-start-panel-renderer",function(){if(Q63===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;wzR===void 0&&(wzR=document.createElement("template"));var n=wzR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Q63=V}V=Q63;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KPc;var yCV;var DL=function(){return _.E.apply(this,arguments)||this};
_.v(DL,_.E);DL.prototype.dismiss=function(){_.PA(this.hostElement,"yt-live-chat-error-message-dismiss")};
DL.prototype.edit=function(){_.PA(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.S([_.q(),_.p("design:type",Object)],DL.prototype,"data",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],DL);
_.Y(DL,"yt-live-chat-text-actions-error-message-renderer",function(){if(yCV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;KPc===void 0&&(KPc=document.createElement("template"));var n=KPc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);yCV=V}V=yCV;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Zr3;var j6X;var lmW;var G8V;var fq=function(){var V=_.E.apply(this,arguments)||this;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.newnessDotEligible=!1;return V};
_.v(fq,_.E);fq.prototype.sendReaction=function(){var V,D,f=((V=this.data)==null?void 0:V.emojiId)||((D=this.data)==null?void 0:D.emoteId),n;f&&((n=this.data)==null?0:n.shouldTriggerAnimation)&&_.o4(this.hostElement,"yt-create-user-reaction-animation",[f]);var t;(V=_.Xo((t=this.data)==null?void 0:t.onTap))&&_.Km(V,this.hostElement);this.showNewnessDot&&_.o4(this.hostElement,"yt-hide-newness-dot")};
fq.prototype.onClick=function(V){(!V||V.clientX||V.clientY)&&this.sendReaction()};
fq.prototype.onKeyDown=function(V){V.key!=="Enter"&&V.key!==" "||V.repeat||this.sendReaction()};
_.IG.Object.defineProperties(fq.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!(((V=this.data)==null?0:V.emojiId)||((D=this.data)==null?0:D.emoteId))}}});
_.S([_.q(),_.p("design:type",Object)],fq.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],fq.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],fq.prototype,"newnessDotEligible",void 0);_.S([_.R("data.maybeShowNewnessDot"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fq.prototype,"showNewnessDot",null);_.S([_.R("data.emojiId","data.emoteId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fq.prototype,"useYtImage",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],fq);
_.Y(fq,"yt-reaction-control-panel-button-view-model",function(){if(G8V===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;lmW===void 0&&(lmW=document.createElement("template"));var n=lmW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);G8V=V}V=G8V;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var eQ0;var cC3;var nq=function(){var V=_.E.apply(this,arguments)||this;V.reactionControlPanelExpanded=!1;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.newnessDotEligible=!1;return V};
_.v(nq,_.E);_.P=nq.prototype;_.P.expandedButtonsChanged=function(){var V,D;_.wI(this.hostElement,{"--expanded-buttons-height":((D=(V=this.expandedButtonsData)==null?void 0:V.length)!=null?D:0)*36+"px"})};
_.P.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}}};
_.P.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.P.onMouseLeave=function(){var V=this;this.collapseTimer=setTimeout(function(){V.reactionControlPanelExpanded=!1},500)};
_.P.onFocusIn=function(){this.onMouseEnter()};
_.P.onFocusOut=function(){this.onMouseLeave()};
_.P.onCollapsedButtonFocusIn=function(){var V=this;setTimeout(function(){var D;(D=V.expandedButtons.querySelector("button"))==null||D.focus()},100)};
_.P.onCollapsedButtonFocusOut=function(V){V.stopPropagation()};
_.IG.Object.defineProperties(nq.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var V,D;return _.sB.unsafeClone((V=this.liveReactionsData)==null?void 0:V.emojiButtonData)||((D=this.data)==null?void 0:D.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var V;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((V=this.data)==null||!V.maybeShowNewnessDot)}}});
nq.prototype.expandedButtonsChanged=nq.prototype.expandedButtonsChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],nq.prototype,"ytLiveChatReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nq.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],nq.prototype,"reactionControlPanelExpanded",void 0);_.S([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:sff}),_.p("design:type",Object)],nq.prototype,"liveReactionsData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],nq.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],nq.prototype,"newnessDotEligible",void 0);
_.S([_.R("liveReactionsData","data.expandedButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],nq.prototype,"expandedButtonsData",null);_.S([_.R("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.q({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],nq.prototype,"showNewnessDot",null);_.S([_.Zv("#expanded-buttons"),_.p("design:type",HTMLElement)],nq.prototype,"expandedButtons",void 0);
_.S([_.KI("expandedButtonsData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nq.prototype,"expandedButtonsChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],nq);
_.Y(nq,"yt-reaction-control-panel-view-model",function(){if(cC3===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;eQ0===void 0&&(eQ0=document.createElement("template"));var n=eQ0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);cC3=V}V=cC3;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var tH=new _.qY("yt-live-chat"),FPB=Date.parse("2024-7-24"),PL=function(){var V=_.E.apply(this,arguments)||this;V.emojiManager=_.Ct;V.newnessDotEligible=!1;V.newnessDotImpressionCounted=!1;V.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return V};
_.v(PL,_.E);_.P=PL.prototype;_.P.emojiCustomizationEnabledChanged=function(){var V;((V=this.data)==null?0:V.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((V=tH.getCreationTime("emoji-customization-count"))&&V<FPB&&tH.set("emoji-customization-count","0"),V=Number(tH.get("emoji-customization-count"))||0,V<3&&(this.newnessDotEligible=!0,tH.set("emoji-customization-count",(V+1).toString())),this.newnessDotImpressionCounted=!0)};
_.P.hideNewnessDot=function(){this.newnessDotEligible=!1;tH.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.P.handleReactionsMute=function(V){var D=_.Ni(),f=_.Bj(206221),n={checkboxData:{state:V?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};D&&_.p6(D,f,n);this.reactionsMuted=V};
_.P.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.P.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}}};
_.IG.Object.defineProperties(PL.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var V;return(!((V=this.liveReactionsData)==null||!V.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
PL.prototype.liveReactionsSettingChanged=PL.prototype.liveReactionsSettingChanged;PL.prototype.emojiCustomizationEnabledChanged=PL.prototype.emojiCustomizationEnabledChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.qd),_.p("design:type",Object)],PL.prototype,"ytLiveChatReduxBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],PL.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],PL.prototype,"data",void 0);_.S([_.q(),_.p("design:type",_.m9)],PL.prototype,"emojiManager",void 0);_.S([_.q(),_.p("design:type",Object)],PL.prototype,"newnessDotEligible",void 0);_.S([_.q(),_.p("design:type",Object)],PL.prototype,"newnessDotImpressionCounted",void 0);
_.S([_.q({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:B$X}),_.p("design:type",Boolean)],PL.prototype,"liveReactionsSetting",void 0);_.S([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:sff}),_.p("design:type",Object)],PL.prototype,"liveReactionsData",void 0);_.S([_.q({value:function(){var V=_.c("enable_lwe_web_mute"),D=tH.get("allow-reactions");return D===void 0?!1:!D&&V}}),
_.p("design:type",Boolean)],PL.prototype,"reactionsMuted",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],PL.prototype,"liveReactionsEnabled",null);_.S([_.KI("data.emojiCustomizationEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PL.prototype,"emojiCustomizationEnabledChanged",null);
_.S([_.KI("liveReactionsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PL.prototype,"liveReactionsSettingChanged",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],PL);
_.Y(PL,"yt-reaction-control-panel-overlay-view-model",function(){if(j6X===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Zr3===void 0&&(Zr3=document.createElement("template"));var n=Zr3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);j6X=V}V=j6X;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var gkv={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(V){var D=this.$.pickers.selected;if(D){_.Pt(this.hostElement).removeAttribute(D+"-open");var f="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(f="#picker-buttons",D==="emoji"&&_.Pt(this.hostElement).querySelector("#emoji-picker-button")&&(f="#emoji-picker-button"));if(f=_.Pt(this.hostElement).querySelector(f).querySelector("#"+D))f.active=!1}f=V;D==V&&(f=null);D!=
V&&_.Pt(this.hostElement).setAttribute(V+"-open","");this.$.pickers.selected=f;_.o4(this.hostElement,"yt-live-chat-picker-changed",[f])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var oo=function(){var V=_.E.apply(this,arguments)||this;V.numSentMessages=0;V.timeoutDurationMs=0;V.timeoutMs=0;V.lastTimeoutTimeMs=0;V.pendingMessageId="";V.hasFiredInitialFocusActions=!1;V.isBeforeFocusEnabled=!0;V.id="";V.characterCount=0;V.maxCharacterLimit=0;V.remainingCharacterCount=0;V.inputExpanded=!1;V.buttonOverrides={iconPosition:"icon-only"};V.inReplyPanel=!1;V.countdownRatio=0;V.isTooltipVisible=!1;V.tooltipTimeout=1E4;V.systemIcons=_.c("kevlar_system_icons");V.tallerEmojiPicker=_.c("live_chat_taller_emoji_picker");
V.sendReplyMessageInFlight=!1;V.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"};V.onResize=function(){V.maybeToggleCharacterCount()};
return V};
_.v(oo,_.E);_.P=oo.prototype;
_.P.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"}}}};
_.P.attached=function(){window.addEventListener("resize",this.onResize)};
_.P.detached=function(){window.removeEventListener("resize",this.onResize)};
_.P.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.P.sendMessage=function(){var V=this,D,f,n,t;return _.w(function(J){if(V.sendDisabled)return J.return();V.isTooltipVisible&&_.o4(V.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(V.data.sendButton&&V.data.sendButton.buttonRenderer){V.input.completeEmojis();D=V.data.sendButton.buttonRenderer.serviceEndpoint;if(!D)return J.return();n=((f=_.g(D,_.Um6))==null?void 0:f.clientIdPrefix)||"";t={client_message_id:n+String(V.numSentMessages++),rich_message:_.Eo(V.input.liveChatRichMessageInput)};
V.pendingMessageId=t.client_message_id;V.inReplyPanel&&(V.sendReplyMessageInFlight=!0);_.HA(V.hostElement,[D,t]);V.input.setLiveChatRichMessageInput(null)}_.yz(J)})};
_.P.handleSendButtonAction=function(V){V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),this.sendMessage())};
_.P.onSendCompleted=function(V,D){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(V=this.get("timeoutDurationUsec",D.data))&&this.handleTimeout(Number(V)/1E3);this.errorMessage=this.get("errorMessage",D.data);this.pendingMessageId=""};
_.P.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.o4(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.P.handlePickerButtonToggle=function(V){V=V.detail.targetId;this.ytPickerBehavior.togglePicker_(V);if(V==="emoji")this.input.focus();else if(V==="qna-start-panel"){var D,f;(D=_.Pt(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(f=D.querySelector("#qna-creator-text-input-field"))==null||f.focus()}};
_.P.onComponentReplaced=function(V){var D,f;V.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((D=V.replacement.liveChatMessageInputRenderer)==null?0:(f=D.headerRenderer)==null?0:f.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.P.onEmojiSelect=function(V){this.input.focus();this.input.insertEmoji(V.detail)};
_.P.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.P.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.o4(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.o4(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.P.onOpenPopupAction=function(V,D){var f=this;D===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.o4(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.P.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.P.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.P.focusChanged=function(){this.maybeToggleCharacterCount()};
_.P.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var V=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",V>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.P.computeId=function(){return this.data&&this.data.targetId||""};
_.P.computeSendDisabled=function(V,D,f,n){V=!!(!V||D&&V>D||n);(D=_.Pt(this.hostElement).querySelector("#send-button"))&&D.children.length&&(D.children[0].disabled=V);return V};
_.P.handleTimeout=function(V){this.timeoutDurationMs=this.timeoutMs=V;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.P.updateTimeout=function(V){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(V-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=V,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.P.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.P.onErrorMessageEdit=function(V){this.input.setLiveChatRichMessageInput(V.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.P.errorMessageChanged=function(){var V=this;_.aU(function(){_.o4(V.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.P.computeAuthorNameColor=function(V){var D;if(_.c("live_chat_author_name_color_usernames")&&(V==null?0:(D=V.authorName)==null?0:D.simpleText))return _.v2Y(_.k7Z(V.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(V==null?0:V.authorSeedColorArgb))return _.v2Y(_.Hr(V.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var f;return _.c("live_chat_simple_color_usernames")&&(V==null?0:(f=V.authorName)==null?0:f.simpleText)&&(V==null?0:V.authorUsernameColorLight)&&
(V==null?0:V.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Hr(V.authorUsernameColorDark):_.Hr(V.authorUsernameColorLight):""};
_.P.onIsTooltipVisibleChanged=function(){var V=_.Pt(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){V.hidden=!1;V.setAttribute("role","alert")},0):(V.hidden=!0,V.removeAttribute("role"))};
_.P.onFocusedChanged=function(V){this.inputFocused=V.detail.value};
_.IG.Object.defineProperties(oo.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 V;return!((V=this.data)==null||!V.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.pickers)==null?void 0:D.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return V?this.ytRendererBehavior.getSimpleString(V):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
oo.prototype.onIsTooltipVisibleChanged=oo.prototype.onIsTooltipVisibleChanged;oo.prototype.errorMessageChanged=oo.prototype.errorMessageChanged;oo.prototype.onErrorMessageEdit=oo.prototype.onErrorMessageEdit;oo.prototype.onErrorMessageDismiss=oo.prototype.onErrorMessageDismiss;oo.prototype.focusChanged=oo.prototype.focusChanged;oo.prototype.characterCountChanged=oo.prototype.characterCountChanged;oo.prototype.onEmojiSelect=oo.prototype.onEmojiSelect;oo.prototype.handlePickerButtonToggle=oo.prototype.handlePickerButtonToggle;
oo.prototype.onSendError=oo.prototype.onSendError;oo.prototype.onSendCompleted=oo.prototype.onSendCompleted;oo.prototype.sendMessage=oo.prototype.sendMessage;oo.prototype.dataChanged=oo.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],oo.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(gkv.YtPickerBehavior),_.p("design:type",Object)],oo.prototype,"ytPickerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.X_.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],oo.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"hasFiredInitialFocusActions",void 0);
_.S([_.q(),_.p("design:type",Object)],oo.prototype,"isBeforeFocusEnabled",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"data",void 0);_.S([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],oo.prototype,"id",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"characterCount",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"maxCharacterLimit",void 0);
_.S([_.q(),_.p("design:type",Object)],oo.prototype,"remainingCharacterCount",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oo.prototype,"inputExpanded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],oo.prototype,"inputFocused",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],oo.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.S([_.q(),_.p("design:type",_.aK)],oo.prototype,"participantsManager",void 0);
_.S([_.q(),_.p("design:type",Object)],oo.prototype,"buttonOverrides",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oo.prototype,"inReplyPanel",void 0);_.S([_.R("characterCount, maxCharacterLimit, countdownActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"sendDisabled",null);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"countdownRatio",void 0);
_.S([_.R("countdownRatio"),_.p("design:type",Number),_.p("design:paramtypes",[])],oo.prototype,"countdownStrokeDashOffset",null);_.S([_.R("countdownRatio"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"countdownActive",null);_.S([_.R("data.interactionMessage"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"hasInteractionMessage",null);
_.S([_.R("data.emojiPickerButton"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"hasEmojiPickerButton",null);_.S([_.R("data, characterCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"showAvatar",null);_.S([_.R("data.pickers"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oo.prototype,"hasProductPickerPanelViewModel",null);
_.S([_.q(),_.p("design:type",Object)],oo.prototype,"errorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"genericErrorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"isTooltipVisible",void 0);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"tooltipTimeout",void 0);_.S([_.R("data.onInitialFocusCommand"),_.p("design:type",String),_.p("design:paramtypes",[])],oo.prototype,"tooltipMessage",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oo.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oo.prototype,"tallerEmojiPicker",void 0);_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],oo.prototype,"authorNameColor",null);_.S([_.q(),_.p("design:type",Object)],oo.prototype,"sendReplyMessageInFlight",void 0);_.S([_.Zv("#input"),_.p("design:type",_.AM6)],oo.prototype,"input",void 0);
_.S([_.Zv("#count"),_.p("design:type",HTMLElement)],oo.prototype,"count",void 0);_.S([_.Zv("#input-container"),_.p("design:type",HTMLElement)],oo.prototype,"inputContainer",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"dataChanged",null);_.S([_.bU("yt-live-chat-send-message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],oo.prototype,"sendMessage",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.LT]),_.p("design:returntype")],oo.prototype,"onSendCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"onSendError",null);
_.S([_.bU("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oo.prototype,"handlePickerButtonToggle",null);_.S([_.bU("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oo.prototype,"onEmojiSelect",null);
_.S([_.KI("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"characterCountChanged",null);_.S([_.KI("inputFocused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"focusChanged",null);_.S([_.bU("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"onErrorMessageDismiss",null);
_.S([_.bU("yt-live-chat-error-message-edit"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],oo.prototype,"onErrorMessageEdit",null);_.S([_.KI("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"errorMessageChanged",null);_.S([_.KI("isTooltipVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"onIsTooltipVisibleChanged",null);
_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],oo);
_.Y(oo,"yt-live-chat-message-input-renderer",function(){if(WVR===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;SM3===void 0&&(SM3=document.createElement("template"));var n=SM3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);WVR=V}V=WVR;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var vkc;var k8o;var JH=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.firedOnClickCommand=!1;V.inReplyPanel=!1;return V};
_.v(JH,_.E);
JH.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"}}}};
JH.prototype.onButtonToggle=function(V){V.target.disabled||this.ytPickerBehavior.togglePicker_(V.detail.targetId)};
JH.prototype.onClick=function(){var V=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.o4(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return V.firedOnClickCommand=!1},5E3))};
_.IG.Object.defineProperties(JH.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.panels)==null?void 0:D.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}}});
JH.prototype.onButtonToggle=JH.prototype.onButtonToggle;_.S([_.u(gkv.YtPickerBehavior),_.p("design:type",Object)],JH.prototype,"ytPickerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],JH.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],JH.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Object)],JH.prototype,"firedOnClickCommand",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],JH.prototype,"inReplyPanel",void 0);_.S([_.R("data.pickers"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],JH.prototype,"hasProductPickerPanelViewModel",null);
_.S([_.bU("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],JH.prototype,"onButtonToggle",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],JH);
_.Y(JH,"yt-live-chat-restricted-participation-renderer",function(){if(k8o===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;vkc===void 0&&(vkc=document.createElement("template"));var n=vkc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);k8o=V}V=k8o;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var r4=function(){var V=_.E.apply(this,arguments)||this;V.genericErrorMessage=_.pA("Error, try again.");V.inReplyPanel=!1;V.hideBorder=!1;return V};
_.v(r4,_.E);r4.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}}}}}};
_.IG.Object.defineProperties(r4,{template:{configurable:!0,enumerable:!0,get:function(){return Ajv()}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r4.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],r4.prototype,"genericErrorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],r4.prototype,"inReplyPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r4.prototype,"hideBorder",void 0);
_.S([_.zy({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],r4);_.Y(r4,"yt-live-chat-engagement-panel-input-renderer",function(){return Ajv()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var s6f,B7J;s6f=_.Bj(115994);B7J=_.Bj(115993);_.HL=function(V,D,f){var n=this;var t=f.dragDownAction;this.layer=0;this.JSC$20112_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$20112_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var J=_.lS();_.J6(J,s6f,this.layer);_.J6(J,B7J,this.layer);this.dragDownAction=function(){t();_.at(J,{visualElement:n.fullscreen?s6f:B7J})};
this.gesture=new _.Qo(V,D,this.JSC$20112_watchConfig,"pandown");this.attach()};
_.HL.prototype.attach=function(){this.gesture.attach()};
_.HL.prototype.detach=function(){this.gesture.detach()};
_.HL.prototype.update=function(V){this.fullscreen=V;this.gesture.config=V?this.JSC$20112_watchFullScreenConfig:this.JSC$20112_watchConfig};var dff={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(V){if(V&&V.length==1&&Array.isArray(V[0].loggingUrls)){V=_.sB.unsafeClone(V[0]);var D=this.macros||{},f=this.getAdModuleClient_();if(!f)return _.Qv();V.loggingUrls.forEach(function(n){if(n.baseUrl){var t=n.baseUrl;var J=D;J=J===void 0?{}:J;t=f.getOptions().includes("replaceUrlMacros")?_.VgL(f,"replaceUrlMacros",{url:t,additionalMapping:J}):t;n.baseUrl=t}},this);
V=[V]}return _.HA(this.hostElement,V)},
getAdModuleClient_:function(){var V=_.hI(this);return V?(V=V.getPlayer())?new _.vG(V):null:null}}]};var uDX;var w4=function(){var V=_.E.apply(this,arguments)||this;V.isCollapsed=!1;V.modernPanels=_.c("kevlar_watch_modern_panels");V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return V};
_.v(w4,_.E);_.P=w4.prototype;_.P.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.onDonateTap=function(){var V=this.get("data.donateButton.buttonRenderer.command");if(V){var D=_.Ni(),f=this.get("data.donateButton.buttonRenderer.trackingParams");D&&f&&_.p6(D,_.gs(f));this.ytOpenPopupBehavior.openPopup(V)}};
_.P.onShowMore=function(){this.isCollapsed=!1;var V=_.Ni(),D=this.get("data.expandButton.buttonRenderer.trackingParams");V&&D&&_.p6(V,_.gs(D))};
_.P.onShowLess=function(){this.isCollapsed=!0};
_.P.dataChanged=function(){_.wI(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.handleUpdate=function(V){if(V=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",V))this.set("data.startLabel",V.startLabel),this.set("data.endLabel",V.endLabel),this.set("data.progress",V.progress),this.set("data.amountRaisedLabel",V.amountRaisedLabel),this.dataChanged()};
_.P.handleOpenPopupAction=function(V){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",V)&&_.o4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.P.computeHeaderBackgroundUrl=function(V,D){if(V)return D?V.headerBackgroundDarkUrl:V.headerBackgroundUrl};
_.P.isProgressBarVisible=function(V){return!(!V||V.progress===void 0)};
_.P.headerBackgroundClass=function(){return _.XB("HTML_DIR")==="rtl"?"flip":""};
w4.prototype.dataChanged=w4.prototype.dataChanged;_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],w4.prototype,"ytOpenPopupBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],w4.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],w4.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],w4.prototype,"isCollapsed",void 0);_.S([_.q({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.p("design:type",String)],w4.prototype,"headerBackgroundUrl",void 0);_.S([_.q(),_.p("design:type",Boolean)],w4.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],w4.prototype,"modernPanels",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],w4.prototype,"dataChanged",null);_.S([_.a({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],w4);
_.Y(w4,"ytd-donation-shelf-renderer",function(){if(uDX!==void 0)return uDX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return uDX=V},{mode:1});var N73;var mf3=function(){return _.E.apply(this,arguments)||this};
_.v(mf3,_.E);_.S([_.q(),_.p("design:type",Object)],mf3.prototype,"data",void 0);_.S([_.a({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],mf3);
_.Y(mf3,"ytd-donation-unavailable-renderer",function(){if(N73!==void 0)return N73;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return N73=V},{mode:1});var zQ3;var QL=function(){return _.E.apply(this,arguments)||this};
_.v(QL,_.E);QL.prototype.computeIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QL.prototype,"data",void 0);_.S([_.a({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],QL);
_.Y(QL,"ytd-limited-state-message-renderer",function(){if(zQ3!==void 0)return zQ3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return zQ3=V},{mode:1});var RQW;var TW=function(){return _.E.apply(this,arguments)||this};
_.v(TW,_.E);TW.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
TW.prototype.onTap=function(V){var D=this.data&&this.data.endpoint;D&&!_.It(_.Os(V),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.PA(this.hostElement,"yt-navigate",{endpoint:D})};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TW.prototype,"data",void 0);_.S([_.a({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],TW);
_.Y(TW,"ytd-autotagging-metadata-renderer",function(){if(RQW!==void 0)return RQW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return RQW=V},{mode:1});var CcV;var b_=function(){return _.E.apply(this,arguments)||this};
_.v(b_,_.E);b_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],b_.prototype,"data",void 0);_.S([_.a({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],b_);
_.Y(b_,"ytd-autotagging-metadata-row-renderer",function(){if(CcV!==void 0)return CcV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return CcV=V},{mode:1});var qf3;var XzV;var Kq=function(){var V=_.E.apply(this,arguments)||this;V.engagementPanelContent=!1;return V};
_.v(Kq,_.E);Kq.prototype.computeHasDividerLine=function(V,D){return V&&!D};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Kq.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.p("design:type",Boolean)],Kq.prototype,"hasDividerLine",void 0);_.S([_.q(),_.p("design:type",Object)],Kq.prototype,"engagementPanelContent",void 0);
_.S([_.a({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Kq);
_.Y(Kq,"ytd-metadata-row-header-renderer",function(){if(XzV!==void 0)return XzV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return XzV=V},{mode:1});var Ekw;var yL=function(){return _.E.apply(this,arguments)||this};
_.v(yL,_.E);yL.prototype.computeHasDividerLine=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],yL.prototype,"hasDividerLine",void 0);_.S([_.a({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],yL);
_.Y(yL,"ytd-metadata-row-renderer",function(){if(Ekw!==void 0)return Ekw;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Ekw=V},{mode:1});var ACW;var ZL=function(){return _.E.apply(this,arguments)||this};
_.v(ZL,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZL.prototype,"data",void 0);_.S([_.a({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],ZL);
_.Y(ZL,"ytd-metadata-with-image-row-renderer",function(){if(ACW!==void 0)return ACW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ACW=V},{mode:1});var amR;var jA=function(){var V=_.E.apply(this,arguments)||this;V.rounded=!0;V.fixie=!1;V.fullWidth=!1;return V};
_.v(jA,_.E);_.P=jA.prototype;_.P.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onDataChanged=function(){var V=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(D){V.onEndpointLinkKeyPress(D)}))};
_.P.onEndpointLinkKeyPress=function(V){V.target===this.endpointLink&&V.keyCode===13&&_.PA(this.hostElement,"click")};
_.P.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var V;if((V=this.data)==null?0:V.endpoint)_.wN(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.P.onYtNavigate=function(V){this.endpointHref||(V.stopPropagation(),V.preventDefault())};
_.P.onInformationButtonContainerClick=function(V){V.target.id!=="information-button-container"&&(V.stopPropagation(),V.preventDefault())};
_.P.computeStyle=function(V){return V};
_.P.computeIsThumbnailStyle=function(V){return V==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.P.computeThumbnailWidth=function(V){switch(V){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}};
_.P.computeThumbnailObjectFit=function(V){switch(V){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.IG.Object.defineProperties(jA.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
jA.prototype.onYtNavigate=jA.prototype.onYtNavigate;jA.prototype.onClick=jA.prototype.onClick;jA.prototype.onDataChanged=jA.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],jA.prototype,"componentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],jA.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],jA.prototype,"componentStyle",void 0);_.S([_.q({computed:"computeIsThumbnailStyle(data.style)"}),_.p("design:type",Boolean)],jA.prototype,"isThumbnailStyle",void 0);_.S([_.q({computed:"computeThumbnailObjectFit(data.style)"}),_.p("design:type",String)],jA.prototype,"thumbnailObjectFit",void 0);
_.S([_.q({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],jA.prototype,"thumbnailWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jA.prototype,"rounded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jA.prototype,"fixie",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jA.prototype,"fullWidth",void 0);_.S([_.Zv("#endpoint-link"),_.p("design:type",HTMLAnchorElement)],jA.prototype,"endpointLink",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jA.prototype,"onDataChanged",null);_.S([_.R("data.endpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],jA.prototype,"endpointHref",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],jA.prototype,"onClick",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jA.prototype,"onYtNavigate",null);_.S([_.a({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],jA);
_.Y(jA,"ytd-rich-metadata-renderer",function(){if(amR!==void 0)return amR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return amR=V},{mode:_.J2("kevlar_poly_si_batch_j075")?1:2});var YfZ;var l_=function(){var V=_.E.apply(this,arguments)||this;V.fixie=!1;V.fullWidth=!1;return V};
_.v(l_,_.E);l_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
l_.prototype.computeHasDividerLine=function(V){return V};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],l_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],l_.prototype,"hasDividerLine",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],l_.prototype,"fixie",void 0);_.S([_.q(),_.p("design:type",Object)],l_.prototype,"fullWidth",void 0);
_.S([_.a({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],l_);
_.Y(l_,"ytd-rich-metadata-row-renderer",function(){if(YfZ!==void 0)return YfZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return YfZ=V},{mode:1});var GW=function(){var V=_.E.apply(this,arguments)||this;V.engagementPanelContent=!1;V.fixie=!1;V.fullWidth=!1;return V};
_.v(GW,_.E);
GW.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"}}}};
GW.prototype.computeCollapsibleItems=function(V,D,f){return V===void 0||D===void 0||f===void 0||f?[]:V.slice(D)};
GW.prototype.computeAlwaysShownItems=function(V,D){return V&&V.length?V.slice(0,D):[]};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GW.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],GW.prototype,"collapsed",void 0);
_.S([_.q({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.p("design:type",Array)],GW.prototype,"alwaysShownItems",void 0);_.S([_.q({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.p("design:type",Array)],GW.prototype,"collapsibleItems",void 0);_.S([_.q(),_.p("design:type",Object)],GW.prototype,"engagementPanelContent",void 0);_.S([_.q(),_.p("design:type",Object)],GW.prototype,"fixie",void 0);
_.S([_.q(),_.p("design:type",Object)],GW.prototype,"fullWidth",void 0);_.S([_.a({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],GW);
_.Y(GW,"ytd-metadata-row-container-renderer",function(){if(qf3!==void 0)return qf3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qf3=V},{mode:1});var $fZ;var eA=function(){var V=_.E.apply(this,arguments)||this;V.currentPageUrl="";V.baseUrl="";V.isHiddenByUser=null;V.hidden=!1;V.showAboveScrim=!1;V.watchNextGrid=_.c("kevlar_watch_grid");V.modernButtons=_.c("web_modern_buttons");V.roundedContainer=!0;V.noBorder=!1;V.roundBackground=!_.c("live_chat_round_background_killswitch");V.overflowHideChat=_.c("live_chat_overflow_hide_chat");V.forceDarkTheme=!1;V.theaterWatchWhile=!1;V.isListeningForPlayerProgress=!1;V.JSC$20148_playerEvents=new Map;V.isFrameReady=
!1;V.player=null;V.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 V};
_.v(eA,_.E);_.P=eA.prototype;_.P.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.JR(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.P.created=function(){var V=this;this.handleIframeEventListener=function(D){V.handleIframeEvent(D)};
this.handleKeyboardEventListener=function(D){V.handleKeyboardEvent(D)};
this.JSC$20148_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20148_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20148_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20148_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20148_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.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()};
_.P.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};
_.P.computeBaseUrl=function(V){var D="/live_chat";this.isChatReplay()&&(D="/live_chat_replay");return _.U7(_.hi(_.Mm(_.Y4(V),D),null),"").toString()};
_.P.dataChanged=function(){_.c("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.P.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var V=this.url;if(this.isChatReplay()&&this.player){var D=Math.floor(this.player.getProgressState().current*1E3);V=_.iW(_.Y4(V),"playerOffsetMs",D.toString()).toString()}D=this.chatframe;try{var f=V==="about:blank"?_.Bdx:_.cS(V),n=D.contentDocument.location,t=_.kx(f);t!==void 0&&n.replace(t)}catch(J){D.src=V}}};
_.P.collapsedChanged=function(){_.PA(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.P.handleIframeEvent=function(V){if(V&&this.baseUrl.startsWith(V.origin)&&V.source===this.chatframe.contentWindow&&_.VV(V.data))if(V.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(V);else if(V.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(V.data["yt-show-feedback-dialog"]){var D=_.DY().resolve(_.Vx(_.OV6));if(D){var f=V.ports,n;f&&f.length&&(n=function(){f[0].postMessage({})});
V=V.data["yt-show-feedback-dialog"];D.showFeedbackDialog(V.customProductData,V.feedbackContent,n,V.bucket)}}else if(V.data["yt-show-survey"])_.PA(this.hostElement,"yt-show-survey",V.data["yt-show-survey"]);else if(V.data["yt-purchase-membership"])_.DY().resolve(_.fH).resolveCommand(V.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(V.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(V.data["yt-tunnel-out-live-service-request"]);else if(V.data["yt-user-activity"])_.Ui();
else if(V.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(V.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(V.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(V.data["yt-open-popup"]);else if(V.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(V.data["yt-log-flow-logging-event-command"]);else if(V.data["yt-hide-live-chat"])this.onShowHideChat();else V.data["yt-report-moderation-state-log"]&&
this.player&&(D={cpn:this.player.getVideoData().cpn},_.dq("liveChatBeingModerated",D))};
_.P.attachLiveChatResponseVeTrackingParams=function(V){V=_.gs(V);var D=_.Ni(),f=_.Yw("liveChatRenderer.trackingParams",this.data);D&&f&&_.Y8(D,_.gs(f),V)};
_.P.handleBuyflowMessages=function(V){var D=V.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,f=V.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,n=V.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.hbY(_.nY(_.IB),D.replace(/-/g,"+").replace(/_/g,"/"),function(t){V.ports[0].postMessage({success:!0,buyFlowResponse:t})},void 0,function(t){V.ports[0].postMessage({success:!1,
error:t&&t.message||"Buyflow rejected without error."})},_.Gm().get("hl"),void 0,function(){V.ports[0].postMessage({closed:!0})},f,n)};
_.P.setupPlayerProgressRelay=function(){var V=this;if(!this.isListeningForPlayerProgress){var D=_.Uo();D!=null&&D.getPlayerPromise&&(D.getPlayerPromise().then(function(f){V.playerApiReady(f)}),this.isListeningForPlayerProgress=!0)}};
_.P.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.P.playerApiReady=function(V){this.setPlayer(V)};
_.P.playerProgressHandler=function(){if(this.player){var V=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":V.current})}};
_.P.playerAdStartHandler=function(V){this.postToContentWindow({"yt-player-ad-start":V})};
_.P.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.P.playerStateChangeHandler=function(V){this.postToContentWindow({"yt-player-state-change":V})};
_.P.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20148_playerEvents);V&&(this.player=V,this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$20148_playerEvents),_.PA(this.hostElement,"player-api-ready"))};
_.P.liveChatPageUrl=function(V,D,f,n){return!f||D?"about:blank":f.liveChatRenderer?(D=_.Y4(this.currentPageUrl).JSC$8122_queryData_,ebR(D),V=_.Y4(V),D.add("continuation",f.liveChatRenderer.continuations[0].reloadContinuationData.continuation),f=_.dU()==="USER_INTERFACE_THEME_DARK",(n||f)&&D.add("dark_theme","true"),_.hi(V,D),n=_.Y4(V.toString()),f=n.JSC$8122_queryData_,"SESSION_INDEX"in _.CZ&&(f.add("authuser",_.XB("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.CZ&&f.add("pageId",_.XB("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.CZ&&f.add("sdc",_.XB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),n.toString()):""};
_.P.isCollapsed=function(V,D){return D!==null?D:this.isChatReplay()||V&&V.conversationBarRenderer&&V.conversationBarRenderer.availabilityMessage?!0:V?V.liveChatRenderer?V.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.c("live_chat_hide_premiere_replay_message")||V.conversationBarRenderer&&V.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.P.isHidden=function(V,D,f){var n=D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage,t=D&&D.liveChatRenderer&&D.liveChatRenderer.showHideButton,J=D&&D.liveChatRenderer&&D.liveChatRenderer.showButton;return f&&V&&!n&&!J||!f&&V&&!n&&!t?!0:D&&D.liveChatRenderer&&D.liveChatRenderer.initialDisplayState?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.P.computeButtonOverride=function(V,D){if(V&&D)return{type:"outline"}};
_.P.setCollapsedState=function(V){_.g(V,_.AiP)&&(this.isHiddenByUser=!!_.g(V,_.AiP).collapsed,!this.isHiddenByUser&&_.c("enable_teaser_framework_web_client")&&_.o4(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.P.forwardReduxActionToIframe=function(V){this.postToContentWindow({"yt-live-chat-forward-redux-action":V})};
_.P.onLoopRangeChange=function(V){this.showAboveScrim=!(V==null||!V.postId)};
_.P.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.P.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.P.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.P.sendDarkThemePostMessage=function(V){this.postToContentWindow({"yt-live-chat-set-dark-theme":V})};
_.P.onLiveChatBuyFlowCallback=function(V){this.postToContentWindow({"yt-live-chat-buy-flow-callback":V})};
_.P.handleKeyboardEvent=function(V){(0,_.sB.containsValue)(GBJ,V.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:V.type,keyCode:V.keyCode}})};
_.P.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.P.postToContentWindow=function(V){if(this.isFrameReady)try{var D=window.location.protocol+"//"+window.location.host,f;(f=this.chatframe)!=null&&f.contentWindow?this.chatframe.contentWindow.postMessage(V,D):_.zP(new _.cI("Tried posting a message to an iframe with no content window",V))}catch(n){_.NG(n)}};
_.P.shouldHideChatFrame=function(V){return V&&_.c("hide_live_chat_button_when_collapsed")};
_.IG.Object.defineProperties(eA.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.c("live_chat_overflow_hide_chat")||_.c("web_watch_chat_hide_button_killswitch"))return _.c("live_chat_overflow_hide_chat");var V,D,f,n;return!!((V=this.data)==null?0:(D=V.liveChatRenderer)==null?0:(f=D.header)==null?0:(n=f.liveChatHeaderRenderer)==null?0:n.collapseButton)}}});
eA.prototype.collapsedChanged=eA.prototype.collapsedChanged;eA.prototype.urlChanged=eA.prototype.urlChanged;eA.prototype.dataChanged=eA.prototype.dataChanged;eA.prototype.onShowHideChat=eA.prototype.onShowHideChat;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],eA.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],eA.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],eA.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],eA.prototype,"ytOpenPopupBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eA.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],eA.prototype,"currentPageUrl",void 0);
_.S([_.q({computed:"computeBaseUrl(currentPageUrl,data)"}),_.p("design:type",Object)],eA.prototype,"baseUrl",void 0);_.S([_.q({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.p("design:type",String)],eA.prototype,"url",void 0);_.S([_.q(),_.p("design:type",Object)],eA.prototype,"isHiddenByUser",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.p("design:type",Object)],eA.prototype,"hidden",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.p("design:type",Boolean)],eA.prototype,"collapsed",void 0);_.S([_.q({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.p("design:type",Boolean)],eA.prototype,"hideChatFrame",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"showAboveScrim",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"watchNextGrid",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eA.prototype,"modernButtons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"noBorder",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eA.prototype,"roundBackground",void 0);
_.S([_.q({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.p("design:type",Object)],eA.prototype,"toggleButtonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],eA.prototype,"overflowHideChat",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"forceDarkTheme",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eA.prototype,"enableShowWithoutHideChatButton",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],eA.prototype,"theaterWatchWhile",void 0);_.S([_.Zv("#chatframe"),_.p("design:type",HTMLIFrameElement)],eA.prototype,"chatframe",void 0);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eA.prototype,"onShowHideChat",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eA.prototype,"dataChanged",null);
_.S([_.KI("url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eA.prototype,"urlChanged",null);_.S([_.KI("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eA.prototype,"collapsedChanged",null);_.S([_.a({is:"ytd-live-chat-frame",disableElementRegistration:!0})],eA);
_.Y(eA,"ytd-live-chat-frame",function(){if($fZ!==void 0)return $fZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return $fZ=V},{mode:1});var irW;var cL=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_modern_buttons");V.buttonOverrides={style:"call-to-action",type:"filled"};return V};
_.v(cL,_.E);cL.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=_.AP(this.data.backgroundColor)))};
cL.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var V=this.getFormattedStringLoggingDirectives(this.data.headline);V&&this.rendererBehavior.logExplicitClick(V)}};
cL.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var V=this.getFormattedStringLoggingDirectives(this.data.description);V&&this.rendererBehavior.logExplicitClick(V)}};
cL.prototype.getFormattedStringLoggingDirectives=function(V){return V&&V.runs&&V.runs.length>0&&V.runs[0]&&V.runs[0].loggingDirectives?V.runs[0].loggingDirectives:null};
cL.prototype.dataChanged=cL.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cL.prototype,"rendererBehavior",void 0);_.S([_.u(dff.YtMacroReplacementBehavior),_.p("design:type",Object)],cL.prototype,"macroReplacementBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cL.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],cL.prototype,"navigationEndpoint",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],cL.prototype,"enableColors",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cL.prototype,"modern",void 0);_.S([_.q(),_.p("design:type",Object)],cL.prototype,"buttonOverrides",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cL.prototype,"dataChanged",null);_.S([_.a({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],cL);
_.Y(cL,"ytd-action-basic-immersive-content-renderer",function(){if(irW!==void 0)return irW;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return irW=V},{mode:1});var Sf0;var WPq;var Fl=function(){return _.E.apply(this,arguments)||this};
_.v(Fl,_.E);Fl.prototype.dataChanged=function(){var V;((V=this.data)==null?void 0:V.backgroundColor)!==void 0&&_.wI(this.hostElement,{"--bgu-color":_.AP(this.data.backgroundColor)})};
Fl.prototype.onImageTileClick=function(){var V;((V=this.data)==null?0:V.navigationEndpoint)&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var D;((D=this.data)==null?0:D.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.IG.Object.defineProperties(Fl.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.data)==null?void 0:V.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 V;return((V=this.data)==null?void 0:V.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var V,D,f;if(((V=this.data)==null?void 0:(D=V.detailsLine)==null?void 0:D.texts)!=null&&((f=this.data)==null?void 0:f.detailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.detailsLine.texts.map(function(t){return t.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var V,D,f;if(((V=this.data)==null?void 0:(D=V.optionalDetailsLine)==null?void 0:D.texts)!=null&&((f=this.data)==null?void 0:f.optionalDetailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.optionalDetailsLine.texts.map(function(t){return t.text}).join("")}return null}}});
Fl.prototype.dataChanged=Fl.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fl.prototype,"rendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Fl.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Fl.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.backgroundColor"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fl.prototype,"hasBackgroundColor",null);
_.S([_.R("data.objectFit"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fl.prototype,"getObjectFit",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.tileRenderingStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fl.prototype,"hasTileMetadata",null);_.S([_.R("data.detailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fl.prototype,"getSecondaryDetails",null);
_.S([_.R("data.optionalDetailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fl.prototype,"getOptionalDetails",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fl.prototype,"dataChanged",null);_.S([_.a({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Fl);
_.Y(Fl,"ytd-image-tile-renderer",function(){if(WPq!==void 0)return WPq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WPq=V},{mode:1});var pzV;var g4=function(){return _.E.apply(this,arguments)||this};
_.v(g4,_.E);g4.prototype.getOpenLinkIcon=function(){return _.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
g4.prototype.onSitelinkTap=function(){_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.c("kevlar_command_handler_migration_killswitch"))_.wN(this.hostElement,this.data.clickCommands,this.hostElement);else for(var V=_.r(this.data.clickCommands),D=V.next();!D.done;D=V.next())this.ytComponentBehavior.resolveCommand(D.value)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],g4.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],g4.prototype,"rendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],g4.prototype,"data",void 0);_.S([_.a({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],g4);
_.Y(g4,"ytd-sitelink-renderer",function(){if(pzV!==void 0)return pzV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pzV=V},{mode:1});var vL=function(){var V=_.E.apply(this,arguments)||this;V.paddingFix=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return V};
_.v(vL,_.E);vL.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"}}}};
vL.prototype.dataChanged=function(){var V=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;V.ytMacroReplacementBehavior.sendServiceRequestAction([D])})};
vL.prototype.shouldHideFooter=function(V){return!(V&&_.c("use_ads_engagement_panel_desktop_footer_cta"))};
_.IG.Object.defineProperties(vL.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.imageTileRenderers)===void 0||((D=this.data)==null?void 0:D.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var n;return(n=_.g(f,kxV))==null?void 0:n.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.imageTileRenderers)===void 0||((D=this.data)==null?void 0:D.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var n;return((n=_.g(f,kxV))==null?void 0:n.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
vL.prototype.dataChanged=vL.prototype.dataChanged;_.S([_.u(dff.YtMacroReplacementBehavior),_.p("design:type",Object)],vL.prototype,"ytMacroReplacementBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vL.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],vL.prototype,"paddingFix",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vL.prototype,"removeBorderFromImageTiles",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vL.prototype,"useFooteredMetadataRenderingStyle",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vL.prototype,"dataChanged",null);_.S([_.a({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],vL);
_.Y(vL,"ytd-action-engagement-panel-content-renderer",function(){if(Sf0!==void 0)return Sf0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Sf0=V},{mode:1});var LPB;var Imo=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;V=_.W2("ad-grid-card-image-full-metadata-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});return _.K("ad-grid-card-image-full-metadata-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:V,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.K(_.b9,{data:n.data,
customCommandResolver:f})}})),_.K("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.K(_.e,{cond:function(){return D().headline},
then:function(n){return _.K(_.Ow,{text:n,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.K(_.e,{cond:function(){return D().detailsLine},
then:function(n){return _.K("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.K(_.BW,{data:n},{adDetailsLineViewModel:function(t){return _.K(_.fv,{data:t.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.K(_.e,{cond:function(){return D().secondaryDetailsLine},
then:function(n){return _.K("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.K(_.BW,{data:n},{adDetailsLineViewModel:function(t){return _.K(_.fv,{data:t.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"fj");var OrX=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;V=_.W2("ad-grid-card-image-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});return _.K("ad-grid-card-image-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:V,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.K(_.b9,{data:n.data,
customCommandResolver:f})}}),_.K("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.K(_.BW,{data:function(){return D().adCardBadge}},{adCardBadgeViewModel:_.gWo})))},"gj");var xf3=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;V=_.W2("ad-grid-card-text-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});return _.K("ad-grid-card-text-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:V,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.K(_.e,{cond:function(){return D().title},
then:function(n){return _.K(_.Ow,{text:n,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.K("div",{class:function(){return _.c("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.K(_.FB,{each:function(){var n;
return((n=D())==null?void 0:n.descriptions)||[]},
keyBy:"INDEX"},function(n){return _.K(_.Ow,{text:n,className:function(){return _.c("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.K("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.K(_.BW,{data:function(){return D().moreInfoButton}},{adButtonViewModel:function(n){return _.K(_.xd,{data:n.data,
customCommandResolver:f})}})))},"hj");var M8c=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;var n=V.adGridCardCollectionStyle;V=_.W2("ad-grid-card-collection-view-model");_.hk(V,{visibilityCallback:function(t){var J,H=(J=D().interaction)==null?void 0:J.onFirstVisible;t&&H&&_.Yt(H)},
showOption:_.I1});return _.K("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:V,style:function(){return"grid-template-columns: repeat("+Ap0(n?n():D().style)+", minmax(0, 1fr));"}},_.K(_.BW,{data:function(){var t;
return(t=D())==null?void 0:t.gridCards}},{adGridCardImageViewModel:function(t){return _.K(OrX,{data:t.data,
customCommandResolver:f})},
adGridCardImageFullMetadataViewModel:function(t){return _.K(Imo,{data:t.data,customCommandResolver:f})},
adGridCardTextViewModel:function(t){return _.K(xf3,{data:t.data,customCommandResolver:f})}}))},"ij");_.fT(_.MA(function(V){var D=V.data;V=_.W2("panel-text-icon-image-tiles-button-layout-content-view-model");_.SK(V,function(){return D().interaction},aGR);
_.hk(V,{visibilityCallback:function(f){var n,t=(n=D().interaction)==null?void 0:n.onFirstVisible;f&&t&&_.Yt(t)},
showOption:_.I1});return _.K("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:V},_.K("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.K(_.e,{cond:_.mD9("(min-width: "+((0,_.mB)()+_.XJ)+"px)"),then:function(){return _.K(_.BW,{data:function(){return D().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.K(M8c,{data:f.data,
customCommandResolver:aGR})}})},
else:function(){return _.K(_.BW,{data:function(){return D().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.K(M8c,{data:f.data,
customCommandResolver:aGR,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.K("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.K(_.BW,{data:function(){return D().adButton}},{adButtonViewModel:function(f){return _.K(_.xd,{data:f.data,
customCommandResolver:aGR})}})))},"jj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;V=_.W2("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.SK(V,function(){return D().interaction},YV3);
_.hk(V,{visibilityCallback:function(f){var n,t=(n=D().interaction)==null?void 0:n.onFirstVisible;f&&t&&_.Yt(t)},
showOption:_.I1});return _.K("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:V},_.K("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.K(_.BW,{data:function(){if(_.mD9("(min-width: "+((0,_.mB)()+_.XJ)+"px)")())var f=D().adGridCardCollection;else{f=Object.assign({},_.g(D().adGridCardCollection,seR));var n;f.gridCards!==void 0&&((n=f.gridCards)==null?void 0:n.length)>1?f.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":f.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";f={adGridCardCollectionViewModel:f}}return f}},{adGridCardCollectionViewModel:function(f){return _.K(M8c,{data:f.data,
customCommandResolver:YV3})}})),_.K("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.K(_.BW,{data:function(){return D().adButton}},{adButtonViewModel:function(f){return _.K(_.xd,{data:f.data,
customCommandResolver:YV3})}})))},"kj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.WX}});var kH=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return V};
_.v(kH,_.E);_.P=kH.prototype;_.P.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"}}}};
_.P.attached=function(){this.getDataFromPlayerAndRender()};
_.P.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.P.getDataFromPlayerAndRender=function(){var V=this,D=_.hI(this.hostElement);D&&D.getPlayerPromise().then(function(f){V.getCachedDataAndListen(f)})};
_.P.getCachedDataAndListen=function(V){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=V)};
_.P.resolveCachedActions=function(){var V=_.Yw("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(V=V&&V())&&!_.sB.isEmpty(V)&&this.sendUpdateEngagementPanelAction(V);(V=(V=_.Yw("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&V())&&!_.sB.isEmpty(V)&&this.sendChangeEngagementPanelVisibilityAction(V);(V=(V=_.Yw("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&V())&&!_.sB.isEmpty(V)&&this.sendScrollToEngagementPanelCommand(V)};
_.P.sendUpdateEngagementPanelAction=function(V){var D;_.o4(this.hostElement,"yt-update-engagement-panel-action",[(D=_.sB.get(V,"action"))!=null?D:V])};
_.P.sendChangeEngagementPanelVisibilityAction=function(V){_.o4(this.hostElement,"yt-change-engagement-panel-visibility-action",[V])};
_.P.sendScrollToEngagementPanelCommand=function(V){_.o4(this.hostElement,"yt-scroll-to-engagement-panel-command",[V])};
_.P.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.c("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.zP(Error("nm"))};
kH.prototype.dataChanged=kH.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],kH.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],kH.prototype,"componentBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],kH.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kH.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],kH.prototype,"player",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kH.prototype,"dataChanged",null);_.S([_.a({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],kH);
_.Y(kH,"ytd-ads-engagement-panel-content-renderer",function(){if(LPB!==void 0)return LPB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return LPB=V},{mode:1});var hQX;var sZ=function(){var V=_.E.apply(this,arguments)||this;V.player=null;V.JSC$20185_playerEvents=new Map;V.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return V};
_.v(sZ,_.E);_.P=sZ.prototype;_.P.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]]"}}}}}};
_.P.created=function(){this.player=null;this.JSC$20185_playerEvents=new Map;this.JSC$20185_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20185_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20185_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20185_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.attached=function(){var V=this,D=_.hI();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));D&&D.getPlayerPromise().then(function(f){V.setPlayer(f);V.set("isPageLoad",!1)})};
_.P.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20185_playerEvents);this.set("player",V);V&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$20185_playerEvents),V.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.P.onLoopRangeChange=function(V){var D=_.DY().resolve(_.Vx(_.xl));if((!D||D.isOnWatch())&&this.hostElement.clientHeight){var f;!V&&((f=this.data)==null?0:f.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.P.onVideoProgress=function(V){var D,f,n=((D=this.player)==null?void 0:(f=D.getPresentingPlayerType)==null?void 0:f.call(D))===2;this.isAdPlaying!==n&&this.set("isAdPlaying",n);var t;if(!n&&(t=this.player)!=null&&t.getLoopRange()){f=this.player.getLoopRange();D=f.startTimeMs;f=f.endTimeMs;n=this.player.getProgressState(1).seekableStart;var J;D<n*1E3&&((J=this.data)==null?0:J.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
V=f<V*1E3;var H;((H=this.player)==null?0:H.getLoopRange())&&V&&this.player.seekTo(D/1E3)}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onYtDeleteClipEngagementPanelCommand=function(V){_.g(V,$$f).command&&this.ytComponentBehavior.resolveCommand(_.g(V,$$f).command)};
_.IG.Object.defineProperties(sZ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pA("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],sZ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],sZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],sZ.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],sZ.prototype,"isAdPlaying",void 0);_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],sZ.prototype,"isPageLoad",void 0);_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],sZ.prototype,"isDarkTheme",void 0);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sZ.prototype,"voteCount",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sZ.prototype,"channelEndpoint",null);_.S([_.R("channelEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],sZ.prototype,"channelHref",null);_.S([_.a({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],sZ);
_.Y(sZ,"ytd-clip-attribution-renderer",function(){if(hQX!==void 0)return hQX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hQX=V},{mode:1});var UfB;var BL=function(){var V=_.E.apply(this,arguments)||this;V.player=null;V.JSC$20190_playerEvents=new Map;return V};
_.v(BL,_.E);_.P=BL.prototype;_.P.created=function(){this.player=null;this.JSC$20190_playerEvents=new Map;this.JSC$20190_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20190_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20190_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.attached=function(){var V=this,D=_.hI();D&&D.getPlayerPromise().then(function(f){V.setPlayer(f);V.set("isPageLoad",!1)})};
_.P.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20190_playerEvents);this.set("player",V);if(V){this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$20190_playerEvents);var D;(V==null?void 0:(D=V.getPresentingPlayerType)==null?void 0:D.call(V))===2&&this.playerAdStartHandler()}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onVideoProgress=function(){var V,D,f=((V=this.player)==null?void 0:(D=V.getPresentingPlayerType)==null?void 0:D.call(V))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],BL.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],BL.prototype,"isAdPlaying",void 0);
_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],BL.prototype,"isPageLoad",void 0);_.S([_.a({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],BL);
_.Y(BL,"ytd-clip-section-footer-renderer",function(){if(UfB!==void 0)return UfB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return UfB=V},{mode:1});var VI0;var DpJ;var d4=function(){return _.E.apply(this,arguments)||this};
_.v(d4,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],d4.prototype,"data",void 0);_.S([_.a({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],d4);
_.Y(d4,"ytd-clip-ad-state-renderer",function(){if(DpJ!==void 0)return DpJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return DpJ=V},{mode:1});var fiX;var u_=function(){var V=_.E.apply(this,arguments)||this;V.value="";V.valid=!1;V.userChangedValue=!1;V.disabled=!1;V.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return V};
_.v(u_,_.E);_.P=u_.prototype;_.P.detached=function(){this.userChangedValue=!1};
_.P.handleKeyDown=function(V){if(_.rf)var D=13;else _.zxX&&_.Hb?D=13:D=13;V.keyCode===D&&V.preventDefault()};
_.P.handleInput=function(){var V=_.Pt(this.hostElement).querySelector("#title");if(V){var D=(V.value||"").replace(/\r|\n/g," ");this.set("value",D);V.value=D;this.valid=V.validate();this.userChangedValue=!0}};
_.P.handleBlur=function(){this.valid=_.Pt(this.hostElement).querySelector("#title").validate()};
_.P.onValueChanged=function(){_.PA(this.hostElement,"title-changed",{title:this.value})};
_.P.onValidChanged=function(){_.PA(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.P.setInput=function(V,D){var f=_.Pt(this.hostElement).querySelector("#title");f&&(f.value=V,this.handleInput(),D&&(f.invalid=!1,this.valid=!0))};
_.P.onClipCreationDisable=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable=function(){this.set("disabled",!1)};
_.P.onClipCreationVisibilityChange=function(V){var D=this;V.visible?requestAnimationFrame(function(){var f;((f=_.Pt(D.hostElement).querySelector("#title"))==null?void 0:f.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
u_.prototype.onValidChanged=u_.prototype.onValidChanged;u_.prototype.onValueChanged=u_.prototype.onValueChanged;u_.prototype.handleBlur=u_.prototype.handleBlur;u_.prototype.handleInput=u_.prototype.handleInput;u_.prototype.handleKeyDown=u_.prototype.handleKeyDown;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],u_.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],u_.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],u_.prototype,"value",void 0);_.S([_.q(),_.p("design:type",Object)],u_.prototype,"valid",void 0);_.S([_.q(),_.p("design:type",Object)],u_.prototype,"userChangedValue",void 0);_.S([_.q(),_.p("design:type",Object)],u_.prototype,"disabled",void 0);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],u_.prototype,"handleKeyDown",null);
_.S([_.bU("input"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u_.prototype,"handleInput",null);_.S([_.bU("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u_.prototype,"handleBlur",null);_.S([_.KI("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u_.prototype,"onValueChanged",null);
_.S([_.KI("valid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u_.prototype,"onValidChanged",null);_.S([_.a({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],u_);
_.Y(u_,"ytd-clip-creation-text-input-renderer",function(){if(fiX!==void 0)return fiX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fiX=V},{mode:1});var nMc;var tIw;var PpR;var oMV;var JJR;var Nt=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};V.pendingStoryboardImages_={};V.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];V.tickLabelInterval=30;V.mediumTickInterval=5;V.largeTickInterval=15;V.aboveRulerHeight=32;V.rulerHeight=50;V.smallTickHeight=4;V.mediumTickHeight=8;V.largeTickHeight=16;V.mediaListeners_=
{};return V};
_.v(Nt,_.E);_.P=Nt.prototype;_.P.attached=function(){var V=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(D){D=_.r(["screen and (min-resolution: "+D+")","screen and (max-resolution: "+D+")"]);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=window.matchMedia(f);n&&(V.mediaListeners_[f]=V.updatePixelRatio_.bind(V),n.addEventListener?n.addEventListener("change",V.mediaListeners_[f]):n.addListener?n.addListener(V.mediaListeners_[f]):delete V.mediaListeners_[f])}})};
_.P.detached=function(){this.setPlayer(null);for(var V=_.r(Object.keys(this.mediaListeners_)),D=V.next();!D.done;D=V.next()){var f=D.value;D=this.mediaListeners_[f];(f=window.matchMedia(f))&&(f.removeEventListener?f.removeEventListener("change",D):f.removeListener&&f.removeListener(D))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.P.onVisibilityChangedAction_=function(V){var D=this;V.visible&&!this.player_&&(V=_.hI())&&V.getPlayerPromise().then(function(f){D.setPlayer(f)})};
_.P.setPlayer=function(V){V&&this.set("player_",V)};
_.P.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.P.setUpCanvas_=function(){var V=this.rulerWidth,D=this.devicePixelRatio_,f=this.visible;this.set("canvasReady_",!1);if(f&&D!==0){f=this.aboveRulerHeight+this.rulerHeight;var n=_.Pt(this.hostElement).querySelector("#ticks");n.width=V*D;n.height=f*D;n.style.width=V+"px";n.style.height=f+"px";n.getContext("2d").scale(D,D);this.set("canvasReady_",!0)}};
_.P.drawRuler_=function(V,D,f,n,t,J,H,Q,T,y,Z,l){V&&f&&D&&(V=_.Pt(this.hostElement).querySelector("#ticks"),D=V.getContext("2d"),D.clearRect(0,0,V.width,V.height),D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),D.lineWidth=2,D.beginPath(),D.moveTo(0,this.aboveRulerHeight),D.lineTo(V.width,this.aboveRulerHeight),D.moveTo(0,V.height),D.lineTo(V.width,V.height),D.stroke(),this.drawRulerTicks_(V,J,t,n),this.drawStoryboardImages_(V,f,J,t,n),D.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
D.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(H-J,n,!1),this.rulerHeight),f=this.timeToPixels_(Q-J,n,!1),D.fillRect(f,this.aboveRulerHeight,V.width-f,this.rulerHeight),this.drawSpeedLines_(V,J,l))};
_.P.drawRulerTicks_=function(V,D,f,n){var t=V.getContext("2d");t.save();t.lineWidth=1;for(var J=Math.floor(Math.max(0,D-this.tickLabelInterval));J<D+f;J++){t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var H=(J-D)*n;t.beginPath();t.moveTo(H,V.height);var Q=this.smallTickHeight;J%this.largeTickInterval===0?Q=this.largeTickHeight:J%this.mediumTickInterval===0&&(Q=this.mediumTickHeight);t.lineTo(H,V.height-Q);t.stroke();J%this.tickLabelInterval===0&&(t.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),t.fillText(de(J),H+4,12),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.moveTo(H,0),t.lineTo(H,this.aboveRulerHeight),t.stroke())}t.restore()};
_.P.percentToHex_=function(V){V=Math.round(V*255).toString(16);V.length<2&&(V="0"+V);return V};
_.P.drawSpeedLines_=function(V,D,f){var n=V.getContext("2d");n.save();var t=Math.min(25,Math.abs(f)-15)/25,J=V.width*.3*t,H=V.width*-.3,Q=V.width*1.3,T=this.aboveRulerHeight;V=V.height;var y=Math.round(4*t),Z=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");Z.length<7&&(Z="#"+Z.substring(1,4).repeat(2));var l=this.percentToHex_(.5+t/2);l=Z+l;Z+="00";if(t>0)for(t=0;t<y;t++){var G=H+Math.random()*(Q-H),F=T+Math.random()*(V-T),k=J+D%J,d=n.createLinearGradient(G,F,G+k,F);
f<0?(d.addColorStop(0,l),d.addColorStop(.4,l),d.addColorStop(.9,Z)):(d.addColorStop(.1,Z),d.addColorStop(.6,l),d.addColorStop(1,l));n.strokeStyle=d;n.lineWidth=1;n.beginPath();n.moveTo(G,F);n.lineTo(G+k,F);n.stroke()}n.restore()};
_.P.getStoryboardForTime_=function(V,D,f){f===void 0&&(f=D.getNumberOfStoryboardLevels()-1);V=D.getStoryboardFrameIndex(V,f);return D.getStoryboardFrame(V,f)};
_.P.drawStoryboardImages_=function(V,D,f,n,t){if(!this.disabled){V=V.getContext("2d");var J=this.getStoryboardForTime_(0,D);if(J){var H=J.width/J.columns;J=J.height/J.rows;var Q=H/J,T=this.rulerHeight*Q;T=this.tickLabelInterval*(Q<this.tickLabelInterval*t/this.rulerHeight?1/Math.floor(this.tickLabelInterval*t/T):Math.round(T/(this.tickLabelInterval*t)));var y=T*t,Z=this.rulerHeight,l=y/this.rulerHeight,G=Math.floor(Math.max(0,f-T));for(G-=G%T;G<f+n;G+=T){var F=this.getStoryboardForTime_(G,D),k=this.getPreloadedStoryboard_(F.url);
if(k){var d=(G-f)*t,z=this.aboveRulerHeight,C=F.column*H,A=F.row*J;if(Q<l){var O=Z/(y/Q);F=H;O*=J;A+=(J-O)/2}else F=y/(Z*Q)*H,O=J,C+=(H-F)/2;V.drawImage(k,C,A,F,O,d,z,y,Z)}else this.fetchStoryboardImage_(F)}}}};
_.P.getPreloadedStoryboard_=function(V){return this.storyboardImages_.find(function(D){if(D.src==V)return!0;var f=D.src.indexOf(V);return f!=-1&&f==D.src.length-V.length})};
_.P.fetchStoryboardImage_=function(V){var D=this,f=this.getPreloadedStoryboard_(V.url),n=this.pendingStoryboardImages_[V.url];f||n!==void 0||(f=new Promise(function(t){var J=new Image(V.width,V.height);J.src=V.url;J.onload=function(){t(J)};
J.onerror=function(){t(null)}}),this.pendingStoryboardImages_[V.url]=f,f.then(function(t){t&&D.push("storyboardImages_",t);
return t}).finally(function(){delete D.pendingStoryboardImages_[V.url]}))};
_.P.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.P.timeToPixels_=function(V,D,f){V*=D;return f===void 0||f?V+"px":V};
_.P.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Nt.prototype.drawRuler_=Nt.prototype.drawRuler_;Nt.prototype.setUpCanvas_=Nt.prototype.setUpCanvas_;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Nt.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Nt.prototype,"start",void 0);_.S([_.q({value:30}),_.p("design:type",Number)],Nt.prototype,"end",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],Nt.prototype,"visible",void 0);_.S([_.q(),_.p("design:type",Object)],Nt.prototype,"player_",void 0);_.S([_.q(),_.p("design:type",Number)],Nt.prototype,"tickSpacing",void 0);_.S([_.q(),_.p("design:type",Number)],Nt.prototype,"windowSizeSec",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Nt.prototype,"rulerWidth",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Nt.prototype,"rulerShift",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],Nt.prototype,"canvasReady_",void 0);_.S([_.q({value:function(){return[]}}),
_.p("design:type",Array)],Nt.prototype,"storyboardImages_",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Nt.prototype,"disabled",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Nt.prototype,"forceRender_",void 0);_.S([_.q({value:1}),_.p("design:type",Number)],Nt.prototype,"devicePixelRatio_",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Nt.prototype,"windowSpeed",void 0);
_.S([_.KI("visible","devicePixelRatio_","rulerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nt.prototype,"setUpCanvas_",null);
_.S([_.KI("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.p("design:returntype")],Nt.prototype,"drawRuler_",null);_.S([_.zy({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Nt);
_.Y(Nt,"yt-clip-creation-scrubber-canvas",function(){if(JJR===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);JJR=V}V=JJR;return V},
{mode:2});var rJJ;var HDV;var mQ=function(){var V=_.E.apply(this,arguments)||this;V.start=0;V.end=30;V.visible=!1;V.draggingLeft_=!1;V.draggingRight_=!1;V.draggingRuler_=!1;V.draggingWindow_=!1;V.seekableStart=0;V.seekableEnd=0;V.rulerWidth_=0;V.rulerShift_=0;V.windowSlideSpeed=0;V.disabled=!1;V.initialized=!1;V.durationAccessibilityLabel="";V.activeLoopRange_=!1;V.rulerDragMouseStart_=0;V.rulerDragRulerStart_=0;V.rulerDragStartTime_=0;V.rulerDragEndTime_=0;V.dragMouseLastX_=0;V.scrollInterval_=null;V.scrubberVe_=null;V.boundHandlers_=
{};V.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return V};
_.v(mQ,_.E);_.P=mQ.prototype;
_.P.created=function(){var V=this;this.JSC$20203_playerEvents=new Map;this.JSC$20203_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20203_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20203_playerEvents.set("onStateChange",this.onStateChange_);var D={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(D).forEach(function(f){V.boundHandlers_[f]=D[f].bind(V)})};
_.P.attached=function(){this.activeLoopRange_=!1;_.Pt(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Pt(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Bj(156731)};
_.P.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Pt(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Pt(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.P.onVisibilityChangedAction_=function(V){var D=this;V.visible&&!this.player_&&(V=_.hI())&&V.getPlayerPromise().then(function(f){D.setPlayer(f)})};
_.P.setPlayer=function(V){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20203_playerEvents);V&&(this.set("player_",V),this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$20203_playerEvents))};
_.P.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.beginHandleDrag_=function(V){this.disabled||(V.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=V.clientX,V.target===_.Pt(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():V.target===_.Pt(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.P.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.P.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.P.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.P.beginRulerDrag_=function(V){this.disabled||(V.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=V.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.P.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.P.beginWindowScroll_=function(){var V=this;this.scrollInterval_=setInterval(function(){var D=V.windowSlideSpeed;if(D=_.Ub3(V.start,V.boundedRulerStartLimit_())?D-.1:_.Ub3(V.end,V.boundedRulerEndLimit_())?D+.1:0){var f=V.capRulerOffset_(V.rulerShift_+D);f==V.rulerShift_?D=0:(V.set("rulerShift_",f),_.PA(V.hostElement,"set-fixed-length-range",{start:V.start+D,duration:V.end-V.start}))}V.set("windowSlideSpeed",D)},33)};
_.P.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.P.endDrag_=function(){this.logClick();var V=void 0;this.draggingRight_?V=this.end-1:this.draggingLeft_&&(V=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,V);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))};
_.P.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.P.updateRulerSize_=function(){this.set("rulerWidth_",_.Pt(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.P.handleMouseDrag_=function(V){V.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(V):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(V):this.draggingWindow_&&this.handleWindowDrag_(V))};
_.P.handleRulerDrag_=function(V){V=this.pixelsToTime_(V.clientX-this.rulerDragMouseStart_);V=this.capRulerOffset_(this.rulerDragRulerStart_-V);this.set("rulerShift_",V);var D=this.rulerDragStartTime_-(this.rulerDragRulerStart_-V);_.PA(this.hostElement,"set-fixed-length-range",{start:D,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-V)-D})};
_.P.handleWindowDrag_=function(V){var D=V.clientX-this.dragMouseLastX_;this.dragMouseLastX_=V.clientX;V=this.pixelsToTime_(D);_.PA(this.hostElement,"set-fixed-length-range",{start:this.start+V,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.capRulerOffset_=function(V){var D=this.seekableStart-this.pixelsToTime_(16),f=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(D,V),f)};
_.P.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.P.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.P.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.P.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.P.handleWindowHandleDrag_=function(V){var D=V.clientX-this.dragMouseLastX_;this.dragMouseLastX_=V.clientX;V=this.pixelsToTime_(D);if(this.draggingLeft_){var f=this.start+V;var n=this.end}else this.draggingRight_&&(f=this.start,n=this.end+V);_.PA(this.hostElement,"set-range",{start:f,end:n,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.onVideoProgress_=function(V){this.disabled||(V=this.timeToPixels_(V-this.rulerShift_,this.tickSpacing_),_.Pt(this.hostElement).querySelector("#playhead").style.transform="translateX("+V+")")};
_.P.onClipCreationDisable_=function(){this.endDrag_()};
_.P.timeToPixels_=function(V,D,f){V*=D;return f===void 0||f?V+"px":V};
_.P.pixelsToTime_=function(V){return V/this.tickSpacing_};
_.P.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.centerRuler_=function(V,D,f){this.set("rulerShift_",this.capRulerOffset_(V+(D-V)/2-f/2))};
_.P.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.P.updateLoopRange_=function(V,D,f,n,t,J,H){V&&(D&&n&&!f?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(V.pauseVideo(),V.seekTo(t,!1,void 0,void 0,50)):this.draggingRight_?(V.pauseVideo(),V.seekTo(J-.1,!1,void 0,void 0,50)):(H!==void 0?V.seekTo(H,!0,void 0,void 0,50):(D=V.getCurrentTime(),D<t||D>J?V.seekTo(t,!0,void 0,void 0,50):V.seekTo(D,!0,void 0,void 0,50)),V.playVideo()),V.setLoopRange({startTimeMs:t*1E3,endTimeMs:J*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(V.getCurrentTime())):
this.activeLoopRange_&&(V.setLoopRange(null),this.activeLoopRange_=!1))};
_.P.updateHandles_=function(){_.Pt(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Pt(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.P.updateRuler_=function(){var V=this.end,D=this.start,f=this.draggableStartLimit_(),n=this.draggableEndLimit_();(D<f-.001||V>n+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.computeDurationLabel_=function(V,D){return V?V.replace("$clip_length",parseFloat(D).toFixed(1)):""};
_.P.computeDuration_=function(V,D){return this.isValidTime_(V)&&this.isValidTime_(D)&&V<D?D-V:0};
_.P.isValidTime_=function(V){return isNaN(parseFloat(V))||V<0?!1:this.player_?V>=this.seekableStart&&V<=this.seekableEnd:!0};
_.P.computeWindowSizeSec_=function(V,D,f){return Math.min((V||12E4)/1E3,f-D)};
_.P.computeTickSpacing_=function(V,D){return D?D/V:1};
_.P.onDragStateChanged_=function(){_.PA(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.P.centerRangeOnTime_=function(V){var D=this.duration;V=iB3(V-D/2,D,this.seekableStart,this.seekableEnd);_.PA(this.hostElement,"set-fixed-length-range",{start:V.start,duration:V.end-V.start})};
_.P.nearlyLessThan_=function(V,D,f){return V+(f===void 0?1E-6:f)<D};
_.P.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var V=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(V,this.start)||this.nearlyLessThan_(this.end,V))&&this.centerRangeOnTime_(V)}};
_.P.onStateChange_=function(V){this.visible&&!this.disabled&&V==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.P.computeDragState_=function(V,D,f,n){return V?"left":D?"right":f?"ruler":n?"window":"none"};
_.P.logClick=function(){var V=_.Ni(),D=_.u8();V&&D&&this.scrubberVe_&&(_.c("combine_ve_grafts")?_.oj(_.lS(),this.scrubberVe_,D):_.Y8(V,D,this.scrubberVe_),_.p6(V,this.scrubberVe_))};
mQ.prototype.onDragStateChanged_=mQ.prototype.onDragStateChanged_;mQ.prototype.updateRuler_=mQ.prototype.updateRuler_;mQ.prototype.updateHandles_=mQ.prototype.updateHandles_;mQ.prototype.onUpdateLoopRange=mQ.prototype.onUpdateLoopRange;mQ.prototype.onInitializedChanged_=mQ.prototype.onInitializedChanged_;mQ.prototype.onVisibleChanged_=mQ.prototype.onVisibleChanged_;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mQ.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",Object)],mQ.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"start",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"end",void 0);_.S([_.q({computed:"computeDuration_(start, end)"}),_.p("design:type",Number)],mQ.prototype,"duration",void 0);
_.S([_.q(),_.p("design:type",String)],mQ.prototype,"lengthTemplate",void 0);_.S([_.q({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.p("design:type",String)],mQ.prototype,"durationLabel",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"visible",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"player_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"draggingLeft_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"draggingRight_",void 0);
_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"draggingRuler_",void 0);_.S([_.q({value:!1}),_.p("design:type",Object)],mQ.prototype,"draggingWindow_",void 0);_.S([_.q({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.p("design:type",Number)],mQ.prototype,"tickSpacing_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"seekableStart",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"seekableEnd",void 0);
_.S([_.q(),_.p("design:type",Number)],mQ.prototype,"windowSizeMs",void 0);_.S([_.q({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.p("design:type",Number)],mQ.prototype,"windowSizeSec_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"rulerWidth_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"rulerShift_",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"windowSlideSpeed",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],mQ.prototype,"disabled",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"initialized",void 0);_.S([_.q(),_.p("design:type",Object)],mQ.prototype,"durationAccessibilityLabel",void 0);_.S([_.q({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.p("design:type",String)],mQ.prototype,"dragState",void 0);
_.S([_.KI("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"onVisibleChanged_",null);_.S([_.KI("initialized"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"onInitializedChanged_",null);_.S([_.KI("player_","visible","disabled","initialized","start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"onUpdateLoopRange",null);
_.S([_.KI("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"updateHandles_",null);_.S([_.KI("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"updateRuler_",null);
_.S([_.KI("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mQ.prototype,"onDragStateChanged_",null);_.S([_.zy({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],mQ);
_.Y(mQ,"yt-clip-creation-scrubber-view",function(){if(HDV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;rJJ===void 0&&(rJJ=document.createElement("template"));var n=rJJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);HDV=V}V=HDV;return V},{mode:2});var zW=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};V.startHighlightTimeout=0;V.endHighlightTimeout=0;return V};
_.v(zW,_.E);_.P=zW.prototype;_.P.attached=function(){var V=this;this.startInput.addEventListener("input",function(D){return V.handleStartInput_(D)});
this.endInput.addEventListener("input",function(D){return V.handleEndInput_(D)});
this.startInput.addEventListener("focusout",function(D){return V.handleStartBlur_(D)});
this.endInput.addEventListener("focusout",function(D){return V.handleEndBlur_(D)})};
_.P.setPlayer=function(V){this.set("player_",V)};
_.P.onSetFixedLengthRange_=function(V){var D=V.detail;V=D.start;var f=D.duration,n=D.startLimit;D=D.endLimit;n||(n=this.seekableStart_);D||(D=this.seekableEnd_);V=iB3(V,f,n,D);this.start=V.start;this.end=V.end};
_.P.onSetRange_=function(V){var D=V.detail;V=D.start;var f=D.end,n=D.startLimit;D=D.endLimit;n||(n=this.seekableStart_);D||(D=this.seekableEnd_);if(V=SVR(V,f,n,D,this.minLengthSec,this.maxLengthSec))this.start=V.start,this.end=V.end};
_.P.updateInputs_=function(){var V=this.end,D=this.start;this.startInput.focused||(this.startInput.value=de(D,!0));this.endInput.focused||(this.endInput.value=de(V,!0))};
_.P.handleStartInput_=function(V){V=$Kf(V.target.value);if(V===null)this.set("startValid",!1);else{var D=this.end,f=SVR(V,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("endWillUpdate",f.end!==D),this.set("startValid",f.start===V)):this.set("startValid",!1)}};
_.P.handleEndInput_=function(V){V=$Kf(V.target.value);if(V===null)this.set("endValid",!1);else{var D=this.start,f=Wnc(this.start,V,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("startWillUpdate",f.start!==D),this.set("endValid",f.end===V)):this.set("endValid",!1)}};
_.P.handleStartBlur_=function(V){V=$Kf(V.target.value);V===null?this.startInput.value=de(this.start,!0):this.forceUpdateInputs_(SVR(V,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.handleEndBlur_=function(V){V=$Kf(V.target.value);V===null?this.endInput.value=de(this.end,!0):this.forceUpdateInputs_(Wnc(this.start,V,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.forceUpdateInputs_=function(V){V&&(this.start=V.start,this.end=V.end);this.startInput.value=de(this.start,!0);this.endInput.value=de(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.P.initializeClipRange_=function(){var V=this.seekableEnd_,D=this.seekableStart_,f=this.visible_,n=this.player_;if(!n||!f||D===null||!V)this.set("initialized",!1);else if(!this.initialized){var t=n.getCurrentTime(),J=this.getDefaultLengthSec_();f=n.getVideoData();var H=n.getPlayerState()==1,Q=f.isLive;J=Math.min(J,V-D);t=Math.max(0,t);V=Q?Wnc(t-J,t,D,V,this.minLengthSec,this.maxLengthSec):H?iB3(t-J/2,J,D,V):iB3(t,J,D,V);this.start=V.start;this.end=V.end;this.set("initialized",!0);f.isLive&&n.seekTo(V.start);
this.startInput.value=de(this.start,!0);this.endInput.value=de(this.end,!0)}};
_.P.onStartChanged_=function(){var V=this;_.PA(this.hostElement,"start-changed",{start:this.start});var D;isNaN((D=this.oldStart)!=null?D:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){V.set("highlightStart",!1);V.startHighlightTimeout=0;V.oldStart=V.start},3E3))};
_.P.onEndChanged_=function(){var V=this;_.PA(this.hostElement,"end-changed",{end:this.end});var D;isNaN((D=this.oldEnd)!=null?D:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){V.set("highlightEnd",!1);V.endHighlightTimeout=0;V.oldEnd=V.end},3E3))};
_.P.onVisibilityChangedAction_=function(V){var D=this;this.set("visible_",V.visible);this.visible_&&!this.player_&&(V=_.hI())&&V.getPlayerPromise().then(function(f){D.setPlayer(f)})};
_.P.computeMinLengthSec_=function(V){return V/1E3||5};
_.P.computeMaxLengthSec_=function(V){return V/1E3||60};
_.P.computeDefaultLengthSec_=function(V){return V/1E3};
_.P.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.P.computeSeekableStart_=function(V,D){return V&&D?V.getProgressState(1).seekableStart:0};
_.P.computeSeekableEnd_=function(V,D){return V&&D?V.getProgressState(1).seekableEnd:0};
_.P.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.P.onDragState_=function(V){this.set("highlightStart",V.detail.startChanging);this.set("highlightEnd",V.detail.endChanging)};
zW.prototype.onDragState_=zW.prototype.onDragState_;zW.prototype.onEndChanged_=zW.prototype.onEndChanged_;zW.prototype.onStartChanged_=zW.prototype.onStartChanged_;zW.prototype.initializeClipRange_=zW.prototype.initializeClipRange_;zW.prototype.updateInputs_=zW.prototype.updateInputs_;zW.prototype.onSetRange_=zW.prototype.onSetRange_;zW.prototype.onSetFixedLengthRange_=zW.prototype.onSetFixedLengthRange_;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],zW.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zW.prototype,"data",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],zW.prototype,"start",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],zW.prototype,"startValid",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zW.prototype,"startWillUpdate",void 0);_.S([_.q({value:30}),_.p("design:type",Number)],zW.prototype,"end",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],zW.prototype,"endValid",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zW.prototype,"endWillUpdate",void 0);_.S([_.q({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.p("design:type",Number)],zW.prototype,"minLengthSec",void 0);
_.S([_.q({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.p("design:type",Number)],zW.prototype,"maxLengthSec",void 0);_.S([_.q({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.p("design:type",Number)],zW.prototype,"defaultLengthSec",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],zW.prototype,"visible_",void 0);_.S([_.q(),_.p("design:type",Object)],zW.prototype,"player_",void 0);
_.S([_.q({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.p("design:type",Number)],zW.prototype,"seekableStart_",void 0);_.S([_.q({computed:"computeSeekableEnd_(player_, visible_)"}),_.p("design:type",Number)],zW.prototype,"seekableEnd_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],zW.prototype,"initialized",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zW.prototype,"disabled",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zW.prototype,"highlightStart",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zW.prototype,"highlightEnd",void 0);_.S([_.Zv("#start"),_.p("design:type",HTMLInputElement)],zW.prototype,"startInput",void 0);_.S([_.Zv("#end"),_.p("design:type",HTMLInputElement)],zW.prototype,"endInput",void 0);
_.S([_.bU("set-fixed-length-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"onSetFixedLengthRange_",null);_.S([_.bU("set-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"onSetRange_",null);_.S([_.KI("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"updateInputs_",null);
_.S([_.KI("player_","visible_","seekableStart_","seekableEnd_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"initializeClipRange_",null);_.S([_.KI("start"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"onStartChanged_",null);_.S([_.KI("end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"onEndChanged_",null);
_.S([_.bU("clips-drag-state"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"onDragState_",null);_.S([_.zy({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],zW);
_.Y(zW,"yt-clip-creation-scrubber-renderer",function(){if(oMV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PpR===void 0&&(PpR=document.createElement("template"));var n=PpR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);oMV=V}V=oMV;return V},{mode:2});var Ro=function(){var V=_.E.apply(this,arguments)||this;V.player_=null;V.JSC$20217_playerEvents=new Map;V.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return V};
_.v(Ro,_.E);_.P=Ro.prototype;_.P.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"}}}};
_.P.created=function(){this.JSC$20217_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20217_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20217_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20217_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.P.detached=function(){this.setPlayer(null)};
_.P.onVisibilityChangedAction_=function(V){var D=this,f;if((f=this.data)==null?0:f.externalVideoId){var n;this.videoId=(n=this.data)==null?void 0:n.externalVideoId}this.getPlayer().then(function(t){if(V.visible)D.returnTime=t.getCurrentTime(),D.isAtLiveHead=t.getProgressState().isAtLiveHead;else{var J=D.returnTime;D.isAtLiveHead&&(J=Number.POSITIVE_INFINITY);t.seekTo(J,void 0,void 0,void 0,51)}})};
_.P.getPlayer=function(){var V=this;if(!this.player_){var D=_.hI();if(D)return D.getPlayerPromise().then(function(f){V.setPlayer(f);return f})}return Promise.resolve(this.player_)};
_.P.setPlayer=function(V){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20217_playerEvents);if(V){this.player_=V;var D;((D=this.data)==null?0:D.externalVideoId)||this.set("videoId",V.getVideoData().video_id||"");var f;(V==null?void 0:(f=V.getPresentingPlayerType)==null?void 0:f.call(V))===2&&(this.set("isAdPlaying",!0),_.o4(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$20217_playerEvents)}};
_.P.ready=function(){_.Pt(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.P.onTitleChanged_=function(V){this.set("titleValue",V.detail.title)};
_.P.onStartChanged_=function(V){this.set("start",V.detail.start)};
_.P.onEndChanged_=function(V){this.set("end",V.detail.end)};
_.P.onTitleValidChanged_=function(V){this.set("titleValid",V.detail.valid)};
_.P.onStartValidChanged_=function(V){this.set("startValid",V.detail.valid)};
_.P.onEndValidChanged_=function(V){this.set("endValid",V.detail.valid)};
_.P.onVideoDataChange_=function(){var V;if((V=this.data)==null||!V.externalVideoId){var D;this.set("videoId",((D=this.player_)==null?void 0:D.getVideoData().video_id)||"")}};
_.P.computeFormValid_=function(V,D,f,n){return!!(V&&D&&f&&n)};
_.P.computeCancelButton_=function(V,D,f){return V&&_.g(V,_.RI)?{buttonRenderer:Object.assign({},_.g(V,_.RI),{isDisabled:D||f})}:null};
_.P.computeSubmitButton_=function(V,D,f){return V&&_.g(V,_.RI)?{buttonRenderer:Object.assign({},_.g(V,_.RI),{command:void 0,isDisabled:!this.formValid||D||f})}:null};
_.P.computeSubmitCommand_=function(V){return V||null};
_.P.onSubmit_=function(V){var D=this;V.stopPropagation();V.preventDefault();this.submitCommand_&&(V={},V.comment_text=this.titleValue,V.clip_external_video_id=this.videoId,V.clip_offset_ms=parseInt(this.start*1E3,10),V.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.HA(this.hostElement,[this.submitCommand_,V]).then(function(){D.set("isLoading_",!1)},function(){D.set("isLoading_",!1)}))};
_.P.playerAdStartHandler_=function(){_.o4(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler_=function(){_.o4(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.P.onVideoProgress_=function(){var V=this;this.getPlayer().then(function(D){var f,n=(D==null?void 0:(f=D.getPresentingPlayerType)==null?void 0:f.call(D))===2;V.isAdPlaying!==n&&(n?V.playerAdStartHandler_():V.playerAdEndHandler_())})};
Ro.prototype.onEndValidChanged_=Ro.prototype.onEndValidChanged_;Ro.prototype.onStartValidChanged_=Ro.prototype.onStartValidChanged_;Ro.prototype.onTitleValidChanged_=Ro.prototype.onTitleValidChanged_;Ro.prototype.onEndChanged_=Ro.prototype.onEndChanged_;Ro.prototype.onStartChanged_=Ro.prototype.onStartChanged_;Ro.prototype.onTitleChanged_=Ro.prototype.onTitleChanged_;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",Object)],Ro.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ro.prototype,"data",void 0);_.S([_.q({value:""}),_.p("design:type",String)],Ro.prototype,"titleValue",void 0);
_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ro.prototype,"titleValid",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Ro.prototype,"start",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Ro.prototype,"startValid",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Ro.prototype,"end",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Ro.prototype,"endValid",void 0);_.S([_.q({value:""}),_.p("design:type",String)],Ro.prototype,"videoId",void 0);
_.S([_.q({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.p("design:type",Boolean)],Ro.prototype,"formValid",void 0);_.S([_.q({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.p("design:type",Object)],Ro.prototype,"submitButton_",void 0);_.S([_.q({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.p("design:type",Object)],Ro.prototype,"submitCommand_",void 0);
_.S([_.q({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.p("design:type",Object)],Ro.prototype,"cancelButton_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ro.prototype,"isLoading_",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Ro.prototype,"isAdPlaying",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],Ro.prototype,"returnTime",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Ro.prototype,"isAtLiveHead",void 0);
_.S([_.bU("title-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onTitleChanged_",null);_.S([_.bU("start-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onStartChanged_",null);_.S([_.bU("end-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onEndChanged_",null);
_.S([_.bU("title-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onTitleValidChanged_",null);_.S([_.bU("start-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onStartValidChanged_",null);_.S([_.bU("end-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ro.prototype,"onEndValidChanged_",null);
_.S([_.zy({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Ro);
_.Y(Ro,"yt-clip-creation-renderer",function(){if(tIw===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;nMc===void 0&&(nMc=document.createElement("template"));var n=nMc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);tIw=V}V=tIw;return V},{mode:2});var Cq=function(){return _.E.apply(this,arguments)||this};
_.v(Cq,_.E);Cq.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"}}}};
Cq.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(V){return V.hasOwnProperty("clipCreationRenderer")})&&_.o4(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Cq.prototype.onPanelContentVisibleChanged=Cq.prototype.onPanelContentVisibleChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],Cq.prototype,"ytVisibilityBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Cq.prototype,"ytdReduxBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Cq.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Cq.prototype,"panelContentVisible",void 0);_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cq.prototype,"onPanelContentVisibleChanged",null);_.S([_.a({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Cq);
_.Y(Cq,"ytd-clip-section-renderer",function(){if(VI0!==void 0)return VI0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VI0=V},{mode:1});var weW;var qt=function(){return _.E.apply(this,arguments)||this};
_.v(qt,_.E);_.P=qt.prototype;
_.P.onKeyDown=function(V){if(this.snippetElements.length!==0&&(V=V.keyCode,V===38||V===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);V===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Nw(this.highlightedIndex,-1,this.snippetElements.length);V=this.snippetElements.length;var D=this.highlightedIndex%V;this.highlightedIndex=D*V<0?D+V:D;V=this.snippetElements[this.highlightedIndex];this.highlightSnippet(V);this.ensureVisible(V)}};
_.P.onKeyUp=function(V){var D=this;gQc(V)&&(V.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.dm.cancelJob(this.inputTimerId),this.inputTimerId=_.dm.addLowPriorityJob(function(){D.typedValue&&(D.fetchSnippets(D.typedValue),D.logInputGesture(D.data))},1E3))};
_.P.onClick=function(V){(V=_.elV(V.target,null,"snippet-item"))&&this.selectSnippet(V)};
_.P.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.P.ready=function(){var V=this;this.inputElement.addEventListener("focus",function(){V.snippetsWrapper.style.removeProperty("display")})};
_.P.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.P.getSourceTimelines=function(){if(!this.data)return[];var V=[];if(this.data.searchInVideoSources)for(var D=_.r(this.data.searchInVideoSources),f=D.next();!f.done;f=D.next())f=f.value,f==="SEARCH_IN_VIDEO_SOURCE_ASR"?V.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):f==="SEARCH_IN_VIDEO_SOURCE_OCR"&&V.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return V};
_.P.fetchSnippets=function(V){var D=_.o4(this.hostElement,"yt-get-current-video-id-action")[0],f=this.getSourceTimelines();V={getSearchInVideoCommand:{externalVideoId:D,query:V!=null?V:"",sourceTimelines:f},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})};
_.P.filterSnippets=function(V,D){var f=this;if(D){this.filteredSnippets=(0,_.sB.unsafeClone)(V);var n=RegExp(_.igx(D),"i");this.filteredSnippets=this.filteredSnippets.filter(function(H){return n.test(f.ytRendererBehavior.getSimpleString(H.snippet))});
V=_.r(this.filteredSnippets);for(var t=V.next();!t.done;t=V.next()){t=t.value;var J=this.ytRendererBehavior.getSimpleString(t.snippet);t.snippet={runs:[{text:J.substring(0,J.toLowerCase().indexOf(D))},{text:J.substring(J.toLowerCase().indexOf(D),J.toLowerCase().indexOf(D)+D.length),bold:!0},{text:J.substring(J.toLowerCase().indexOf(D)+D.length,J.length)}]}}}else this.filteredSnippets=V};
_.P.onUpdateSearchInVideoResults=function(V){if(!(this.snippets.length>0)){var D,f,n;if((n=(D=_.g(V,qvq))==null?void 0:(f=D.results)==null?void 0:f.length)!=null&&n){var t;this.filteredSnippets=this.snippets=((t=_.g(V,qvq))==null?void 0:t.results).map(function(J){var H,Q,T;return{startMs:J==null?void 0:(H=J.searchInVideoResultRenderer)==null?void 0:H.startMs,startTimeText:J==null?void 0:(Q=J.searchInVideoResultRenderer)==null?void 0:Q.startTimeText,snippet:J==null?void 0:(T=J.searchInVideoResultRenderer)==
null?void 0:T.snippet}})}}};
_.P.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};
_.P.highlightSnippet=function(V){V.classList.add("highlighted")};
_.P.removeSnippetHighlight=function(V){V.classList.remove("highlighted")};
_.P.selectSnippet=function(V){this.typedValue=String(V.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(V);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.P.ensureVisible=function(V){var D=this.snippetsWrapper.scrollTop,f=D+this.snippetsWrapper.clientHeight,n=V.offsetTop-this.snippetsWrapper.offsetTop;V=n+V.clientHeight;n<D?this.snippetsWrapper.scrollTop-=D-n:V>f&&(this.snippetsWrapper.scrollTop+=V-f)};
_.P.seekPlayer=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1){if(!V)return n.jumpTo(0);D=Number(V.dataset.startOffset);return _.b(n,_.Uo().getPlayerPromise(),3)}f=n.yieldResult;f.seekTo(D/1E3,!0);f.wakeUpControls();_.yz(n)})};
_.P.logInputGesture=function(V){var D=_.Ni();D&&(V==null?0:V.trackingParams)&&_.L6(D,_.gs(V.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.P.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("typed-value-changed",this.typedValue))};
_.P.updateTypedValueFromBinding=function(V){this.typedValue=V.currentTarget.value};
qt.prototype.typedValueChangedForBinding=qt.prototype.typedValueChangedForBinding;qt.prototype.dataChanged=qt.prototype.dataChanged;qt.prototype.panelContentVisibleChanged=qt.prototype.panelContentVisibleChanged;qt.prototype.onClick=qt.prototype.onClick;qt.prototype.onKeyUp=qt.prototype.onKeyUp;qt.prototype.onKeyDown=qt.prototype.onKeyDown;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qt.prototype,"data",void 0);_.S([_.q({value:[]}),_.p("design:type",Array)],qt.prototype,"snippets",void 0);_.S([_.q({value:[]}),_.p("design:type",Array)],qt.prototype,"filteredSnippets",void 0);_.S([_.q({value:[]}),_.p("design:type",Array)],qt.prototype,"snippetElements",void 0);
_.S([_.Zv("#siv-input"),_.p("design:type",HTMLElement)],qt.prototype,"inputElement",void 0);_.S([_.Zv("#siv-snippets-wrapper"),_.p("design:type",HTMLElement)],qt.prototype,"snippetsWrapper",void 0);_.S([_.q(),_.p("design:type",String)],qt.prototype,"typedValue",void 0);_.S([_.q({value:-1}),_.p("design:type",Number)],qt.prototype,"highlightedIndex",void 0);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[_.bG]),_.p("design:returntype")],qt.prototype,"onKeyDown",null);
_.S([_.bU("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[_.bG]),_.p("design:returntype")],qt.prototype,"onKeyUp",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],qt.prototype,"onClick",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],qt.prototype,"panelContentVisible",void 0);
_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qt.prototype,"panelContentVisibleChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qt.prototype,"dataChanged",null);_.S([_.KI("typedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qt.prototype,"typedValueChangedForBinding",null);
_.S([_.a({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],qt);
_.Y(qt,"ytd-search-in-video-renderer",function(){if(weW!==void 0)return weW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return weW=V},{mode:1});var QnV;var Xl=function(){return _.E.apply(this,arguments)||this};
_.v(Xl,_.E);Xl.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Xl.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]]"}}}}}};
Xl.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var V,D,f,n,t=(D=_.g((V=this.data)==null?void 0:V.onClickCommand,_.jt))==null?void 0:(f=D.item)==null?void 0:(n=f.notificationTextRenderer)==null?void 0:n.successResponseText;t&&_.Sa9(this.hostElement,t)}};
_.IG.Object.defineProperties(Xl.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return this.isProductPlaceholder&&((V=this.data)==null?void 0:(D=V.hiddenProductOptions)==null?void 0:D.showDropCountdown)&&!!((f=this.data)==null?0:(n=f.hiddenProductOptions)==null?0:n.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var V;return!this.isProductPlaceholder&&!((V=this.data)==null?0:V.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null?0:V.priceReplacementText)&&!((D=this.data)==null||!D.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Xl.prototype,"componentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xl.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"useCenterLayoutContainer",null);_.S([_.q({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],Xl.prototype,"buttonOverride",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"isProductPlaceholder",null);
_.S([_.R("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"showDropCountdown",null);_.S([_.R("isProductPlaceholder","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"showBrandName",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"showPriceReplacementText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"showPrice",null);
_.S([_.R("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xl.prototype,"showMetadata",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Xl);
_.Y(Xl,"ytd-product-list-item-renderer",function(){if(QnV!==void 0)return QnV;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return QnV=V},{mode:1});var TVV;var EZ=function(){return _.E.apply(this,arguments)||this};
_.v(EZ,_.E);EZ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
EZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
EZ.prototype.panelContentVisibleChanged=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return V.playerApi?f.jumpTo(2):_.b(f,_.Uo().getPlayerPromise(),3);f.nextAddress!=2&&(V.playerApi=f.yieldResult);(D=V.playerApi)==null||D.productsInVideoVisibilityUpdated(!!V.panelContentVisible);_.yz(f)})};
EZ.prototype.panelContentVisibleChanged=EZ.prototype.panelContentVisibleChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],EZ.prototype,"panelContentVisible",void 0);_.S([_.q(),_.p("design:type",Object)],EZ.prototype,"data",void 0);
_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],EZ.prototype,"panelContentVisibleChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],EZ);
_.Y(EZ,"ytd-product-list-renderer",function(){if(TVV!==void 0)return TVV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return TVV=V},{mode:1});var bDq;var AH=function(){var V=_.E.apply(this,arguments)||this;V.hideTimestamps=!!_.J5("hide-transcript-timestamps");V.currentCueIndex=-1;V.flatCues=[];V.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};V.TEST_ONLY={getFlatCues:function(){return V.flatCues}};
return V};
_.v(AH,_.E);_.P=AH.prototype;_.P.hideTimestampsChanged=function(){_.oC("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.dataChanged=function(){var V;if((V=this.data)!=null&&V.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;V=_.r(this.data.cueGroups);for(var D=V.next();!D.done;D=V.next()){D=_.r(_.g(D.value,X0w).cues);for(var f=D.next();!f.done;f=D.next())this.flatCues.push(Number(_.g(f.value,EQv).startOffsetMs))}}};
_.P.onYtPlayerTimeChanged=function(V){if(!(V<0)){for(var D=this.currentCueIndex,f=D;;){var n=f>=0?this.flatCues[f]/1E3:-1;if(V+.5<n)--f;else if(n=f+1<this.flatCues.length?this.flatCues[f+1]/1E3:Infinity,V+.5>n)f+=1;else break}f!==D&&(D>=0&&((V=this.getCueElement(D))&&V.classList.remove("active"),(D=this.getCueGroupElement(D))&&D.classList.remove("active")),(D=this.getCueElement(f))&&D.classList.add("active"),(D=this.getCueGroupElement(f))&&D.classList.add("active"),this.currentCueIndex=f,this.isHovered||
this.scrollElementToTop(f))}};
_.P.scrollElementToTop=function(V){V=this.getCueElement(V>=3?V-3:0);this.hostElement.scrollTop=Math.min(V.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.getCueElement=function(V){return _.Pt(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[V]+'"]')};
_.P.getCueGroupElement=function(V){return(V=this.getCueElement(V))&&V.parentElement?V.parentElement.parentElement:null};
_.P.onTap=function(V){var D=_.x7(V);V.target.classList.contains("cue")&&this.seekCueElement(D)};
_.P.onKeyPress=function(V){V.keyCode==13&&(V=_.elV(V.target,null,"cue"))&&this.seekCueElement(V)};
_.P.seekCueElement=function(V){V=Number(V.getAttribute("start-offset"));_.o4(this.hostElement,"yt-transcript-player-seek",[V/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
AH.prototype.onMouseLeave=AH.prototype.onMouseLeave;AH.prototype.onMouseEnter=AH.prototype.onMouseEnter;AH.prototype.onKeyPress=AH.prototype.onKeyPress;AH.prototype.onTap=AH.prototype.onTap;AH.prototype.dataChanged=AH.prototype.dataChanged;AH.prototype.hideTimestampsChanged=AH.prototype.hideTimestampsChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],AH.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],AH.prototype,"hideTimestamps",void 0);_.S([_.q(),_.p("design:type",Boolean)],AH.prototype,"isHovered",void 0);_.S([_.KI("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AH.prototype,"hideTimestampsChanged",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AH.prototype,"dataChanged",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],AH.prototype,"onTap",null);_.S([_.bU("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],AH.prototype,"onKeyPress",null);
_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AH.prototype,"onMouseEnter",null);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AH.prototype,"onMouseLeave",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],AH);
_.Y(AH,"ytd-transcript-body-renderer",function(){if(bDq!==void 0)return bDq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return bDq=V},{mode:1});var KFR;var ao=function(){var V=_.E.apply(this,arguments)||this;V.darkerPanels=_.c("web_watch_darker_panels");return V};
_.v(ao,_.E);ao.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ao.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ao.prototype,"darkerPanels",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],ao);
_.Y(ao,"ytd-transcript-footer-renderer",function(){if(KFR!==void 0)return KFR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return KFR=V},{mode:1});var yJ3;var ZDv;var YH=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.showClearButton=!1;return V};
_.v(YH,_.E);_.P=YH.prototype;_.P.handleInput=function(V){var D=this;V.target.value.length?_.Yu(this,"ytdTranscriptSearchBoxSearch",function(){D.emitSearchEvent(V)},500):(_.NbL(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=V.target.value.length>0};
_.P.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.P.handleClick=function(){var V,D=(V=this.data)==null?void 0:V.trackingParams;D&&_.H5(_.lS(),D)};
_.P.handleClear=function(){_.NbL(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var V,D,f=(D=_.g((V=this.data)==null?void 0:V.clearButton,_.RI))==null?void 0:D.trackingParams;f&&_.H5(_.lS(),f);this.clear()};
_.P.emitSearchEvent=function(V){_.PA(this.hostElement,"yt-transcript-search-box-search",{query:V.target.value});var D,f;(V=(f=_.g((D=this.data)==null?void 0:D.searchButton,_.RI))==null?void 0:f.trackingParams)&&_.H5(_.lS(),V)};
_.P.emitClearEvent=function(){_.PA(this.hostElement,"yt-transcript-search-box-clear")};
_.IG.Object.defineProperties(YH.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Pt(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YH.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],YH.prototype,"systemIcons",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],YH);
_.Y(YH,"ytd-transcript-search-box-renderer",function(){if(ZDv!==void 0)return ZDv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZDv=V},{mode:1});var jnR;var liB;var $H=function(){return _.E.apply(this,arguments)||this};
_.v($H,_.E);$H.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var V,D;this.sectionHeaderAriaLabel=(V=this.data)==null?void 0:(D=V.accessibility)==null?void 0:D.accessibilityData.label}};
$H.prototype.fireSelectedEvent=function(V){_.PA(this.hostElement,"ytd-transcript-section-header",{startMs:V})};
$H.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
$H.prototype.handleKeyPress=function(V){this.data&&V.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.IG.Object.defineProperties($H.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.data)==null?void 0:V.enableTappableTranscriptHeader)!=null?D:!1}}});
$H.prototype.dataChanged=$H.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],$H.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],$H.prototype,"sectionHeaderAriaLabel",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$H.prototype,"enableTappableTranscriptHeader",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$H.prototype,"dataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],$H);
_.Y($H,"ytd-transcript-section-header-renderer",function(){if(liB!==void 0)return liB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return liB=V},{mode:1});var GA3;var eoR;var i_=function(){var V=_.E.apply(this,arguments)||this;V.isEditMode=!1;V.touchCaptionsEnabled=!1;V.deleteCaptionCorrectionPopupCommand=null;V.voteCaptionCorrectionPopupCommand=null;V.roundedContainer=!0;V.mouseOver=!1;V.textChanged=!1;V.messages={suggest_correction:_.Zl("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Zl("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Zl("submit_correction",void 0,"Submit for review"),cancel_correction:_.Zl("cancel_correction",
void 0,"Cancel"),replay_segment:_.Zl("replay_segment",void 0,"Re-play segment"),delete_correction:_.Zl("delete_correction",void 0,"Delete correction")};V.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return V};
_.v(i_,_.E);_.P=i_.prototype;_.P.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)};
_.P.handleDelete=function(V){if(this.deleteCaptionCorrectionPopupCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);V.stopPropagation()}};
_.P.handleSubmit=function(V){if(this.data&&this.data.submitCaptionCorrectionCommand&&(V.stopPropagation(),this.textChanged)){var D;V=(D=_.g(this.data.submitCaptionCorrectionCommand,_.tzo))==null?void 0:D.params;D=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:V,correctionText:String(this.ironTextAreaElement.value),originalText:_.LA(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(D);this.isEditMode=!1}};
_.P.handleUpdateSegmentText=function(V){(V=_.g(V,Djf))&&V.targetId&&this.data&&V.targetId===this.data.targetId&&(V.userCorrection&&(this.editedText=V.userCorrection),V.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.LA(this.data.snippet)),V.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=V.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=V.voteCaptionCorrectionPopupCommand?
V.voteCaptionCorrectionPopupCommand:null,V.accessibility&&(this.segmentAriaLabel=V.accessibility.accessibilityData.label))};
_.P.handleCancel=function(V){this.isEditMode=!1;V.stopPropagation();this.logClientVe(159409)};
_.P.handleEditSegmentCommand=function(V){(V=_.g(V,VVV))&&V.targetId&&this.data&&V.targetId===this.data.targetId&&this.handleEdit()};
_.P.handleEditButtonClick=function(V){this.data&&(this.handleEdit(),V.stopPropagation())};
_.P.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var V;(V=this.ironTextAreaElement.textarea)==null||V.focus();this.logClientVe(159407)}};
_.P.handleMouseEnter=function(){this.mouseOver=!0};
_.P.handleMouseLeave=function(){this.mouseOver=!1};
_.P.handleReplay=function(V){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),V.stopPropagation(),this.logClientVe(159408))};
_.P.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()))};
_.P.handleKeypress=function(V){this.data&&(this.isEditMode?V.stopPropagation():this.isEnterPress(V)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(V)&&this.logClientVe(138758))};
_.P.handleTextboxClick=function(V){V.stopPropagation()};
_.P.handleTextboxKeydown=function(V){this.isControlEnterPress(V)?this.handleSubmit(V):V.key==="Escape"&&this.handleCancel(V)};
_.P.handleTextboxKeyup=function(){this.textChanged=_.LA(this.latestText)!==String(this.ironTextAreaElement.value)};
_.P.fireSelectedEvent=function(V){_.PA(this.hostElement,"yt-transcript-segment-selected",{startMs:V})};
_.P.fireReplayEvent=function(V,D){_.PA(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(V-100,0),endMs:D})};
_.P.fireEditEvent=function(V,D){_.PA(this.hostElement,"yt-transcript-segment-edit",{startMs:V,endMs:D})};
_.P.isEnterPress=function(V){return V.key==="Enter"||V.code==="Enter"||V.code==="NumpadEnter"||V.keyCode===13?!0:!1};
_.P.isControlEnterPress=function(V){var D=V.key==="Enter"||V.code==="Enter"||V.code==="NumpadEnter"||V.keyCode===13;return(V.ctrlKey||V.metaKey)&&D};
_.P.isCopyPress=function(V){var D=V.ctrlKey;return V.key==="c"&&D};
_.P.logClick=function(){var V,D=(V=this.data)==null?void 0:V.trackingParams;D&&_.H5(_.lS(),D)};
_.P.logClientVe=function(V){_.rW(_.lS(),_.Bj(V))};
_.IG.Object.defineProperties(i_.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}}});
i_.prototype.handleMouseLeave=i_.prototype.handleMouseLeave;i_.prototype.handleMouseEnter=i_.prototype.handleMouseEnter;i_.prototype.dataChanged=i_.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],i_.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],i_.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],i_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i_.prototype,"isEditMode",void 0);_.S([_.q(),_.p("design:type",Object)],i_.prototype,"touchCaptionsEnabled",void 0);_.S([_.q(),_.p("design:type",Object)],i_.prototype,"editedText",void 0);_.S([_.q(),_.p("design:type",Object)],i_.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.S([_.q(),_.p("design:type",Object)],i_.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.S([_.q(),_.p("design:type",String)],i_.prototype,"segmentAriaLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i_.prototype,"roundedContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i_.prototype,"mouseOver",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],i_.prototype,"textChanged",void 0);_.S([_.q(),_.p("design:type",Object)],i_.prototype,"messages",void 0);
_.S([_.Zv("#suggestion"),_.p("design:type",Object)],i_.prototype,"ironTextAreaElement",void 0);_.S([_.R("data","editedText"),_.p("design:type",Object),_.p("design:paramtypes",[])],i_.prototype,"latestText",null);_.S([_.R("touchCaptionsEnabled","isEditMode"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],i_.prototype,"enableEditButton",null);
_.S([_.R("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],i_.prototype,"enableUndoButton",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i_.prototype,"dataChanged",null);_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i_.prototype,"handleMouseEnter",null);
_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],i_.prototype,"handleMouseLeave",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],i_);
_.Y(i_,"ytd-transcript-segment-renderer",function(){if(eoR!==void 0)return eoR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return eoR=V},{mode:1});var SA=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};V.isError=!1;V.darkerPanels=_.c("web_watch_darker_panels");V.useParentMaxHeight=_.c("web_watch_transscript_use_parent_max_height");V.segmentOffsets=[];V.segmentIndex=-1;return V};
_.v(SA,_.E);_.P=SA.prototype;_.P.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"}}}}};
_.P.segmentsChanged=function(){this.updateOffsets()};
_.P.onYtPlayerTimeChanged=function(V){for(var D=this.segmentIndex,f=D;;){if(f>=0){var n=this.segmentOffsets[f].start;var t=this.segmentOffsets[f].isAutoScrollable}else n=-1,t=!0;var J=V+.5;if(!t){n=f+1<this.segmentOffsets.length?this.segmentOffsets[f+1].start:Infinity;if(J>=n){f+=1;continue}f=-1;break}if(J<n)n=f-1>=0&&this.segmentOffsets[f-1].isAutoScrollable,t=f===0||n?1:2,f-=t;else if(t=f+1<this.segmentOffsets.length&&this.segmentOffsets[f+1].isAutoScrollable?1:2,n=f+t<this.segmentOffsets.length?
this.segmentOffsets[f+t].start:Infinity,J>n)f+=t;else{if(f<0)break;f<this.segmentOffsets.length&&J>this.segmentOffsets[f].end&&(f=-1);break}}if(D!==f){if(D>=0){var H;(H=this.getSegmentElement(D))==null||H.classList.remove("active")}this.segmentIndex=f;if(!(f<0)){var Q;(Q=this.getSegmentElement(f))==null||Q.classList.add("active");this.isHovered||this.scrollElementToTop(f)}}};
_.P.handleSegmentEdit=function(V){V.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=V.target,_.o4(this.hostElement,"yt-transcript-player-edit",[V.detail.startMs/1E3,V.detail.endMs/1E3]))};
_.P.handleSegmentSelected=function(V){_.o4(this.hostElement,"yt-transcript-player-seek",[V.detail.startMs/1E3])};
_.P.handleSegmentReplay=function(V){_.o4(this.hostElement,"yt-transcript-player-replay",[V.detail.startMs/1E3,V.detail.endMs/1E3])};
_.P.handleSectionHeaderSelected=function(V){_.o4(this.hostElement,"yt-transcript-player-seek",[V.detail.startMs/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.onRetryButtonClick=function(){_.PA(this.hostElement,"transcript-retry-button-click")};
_.P.getSegmentElement=function(V){return _.Pt(this.hostElement).querySelector(":nth-child("+(V+1)+")")};
_.P.scrollElementToTop=function(V){V=this.getSegmentElement(V>=2?V-2:0);this.hostElement.scrollTop=Math.min(V.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(V){var D,f=(D=V.transcriptSegmentRenderer)!=null?D:V.transcriptSectionHeaderRenderer;return{start:Number(f.startMs)/1E3,end:Number(f.endMs)/1E3,isAutoScrollable:V.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.P.clearHighlightedSegments=function(){var V=_.Pt(this.hostElement);V=_.r(V.querySelectorAll("ytd-transcript-segment-renderer"));for(var D=V.next();!D.done;D=V.next())D.value.classList.remove("active")};
_.IG.Object.defineProperties(SA.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.searchResultSegments)||((D=this.data)==null?void 0:D.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
SA.prototype.onMouseLeave=SA.prototype.onMouseLeave;SA.prototype.onMouseEnter=SA.prototype.onMouseEnter;SA.prototype.handleSectionHeaderSelected=SA.prototype.handleSectionHeaderSelected;SA.prototype.handleSegmentReplay=SA.prototype.handleSegmentReplay;SA.prototype.handleSegmentSelected=SA.prototype.handleSegmentSelected;SA.prototype.handleSegmentEdit=SA.prototype.handleSegmentEdit;SA.prototype.segmentsChanged=SA.prototype.segmentsChanged;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],SA.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SA.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],SA.prototype,"isError",void 0);
_.S([_.q(),_.p("design:type",Object)],SA.prototype,"noResultLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],SA.prototype,"darkerPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],SA.prototype,"useParentMaxHeight",void 0);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],SA.prototype,"segments",null);
_.S([_.R("segments","noResultLabel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SA.prototype,"displayNoResults",null);_.S([_.KI("segments"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SA.prototype,"segmentsChanged",null);_.S([_.bU("yt-transcript-segment-edit"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SA.prototype,"handleSegmentEdit",null);
_.S([_.bU("yt-transcript-segment-selected"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SA.prototype,"handleSegmentSelected",null);_.S([_.bU("yt-transcript-segment-replay"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SA.prototype,"handleSegmentReplay",null);
_.S([_.bU("ytd-transcript-section-header"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SA.prototype,"handleSectionHeaderSelected",null);_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SA.prototype,"onMouseEnter",null);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SA.prototype,"onMouseLeave",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],SA);
_.Y(SA,"ytd-transcript-segment-list-renderer",function(){if(GA3!==void 0)return GA3;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return GA3=V},{mode:1});var WL=function(){var V=_.E.apply(this,arguments)||this;V.hideTimestamps=!!_.J5("hide-transcript-timestamps");V.isLoadingTranscripts=!1;V.darkerPanels=_.c("web_watch_darker_panels");V.isError=!1;V.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return V};
_.v(WL,_.E);_.P=WL.prototype;_.P.headerChanged=function(){var V,D;this.baseGetTranscriptsCommand=(D=_.g((V=this.data)==null?void 0:V.header,fKo))==null?void 0:D.onTextChangeCommand};
_.P.bodyChanged=function(){var V=this.getBodyRenderer();V&&(V.initialSegments&&(this.initialTranscriptsRenderer=V),V.noResultLabel&&(this.noResultLabel=V.noResultLabel),V.retryLabel&&(this.retryLabel=V.retryLabel))};
_.P.detached=function(){this.clearSearchBoxText()};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.P.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"}}}};
_.P.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.P.fireSearch=function(V){var D=this;if(V){var f=V.detail.query;if(this.baseGetTranscriptsCommand){var n;V=(n=_.g(this.baseGetTranscriptsCommand,_.EN6))==null?void 0:n.params;var t;n=_.g((t=this.data)==null?void 0:t.footer,Amw);var J;if((t=(J=_.g(n==null?void 0:n.languageMenu,Mx3))==null?void 0:J.subMenuItems)&&t.length>0&&(J=t.find(function(T){return T.selected}))){var H,Q;
V=(H=J.continuation)==null?void 0:(Q=H.reloadContinuationData)==null?void 0:Q.continuation}H=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:V,searchQuery:f}});this.ytComponentBehavior.resolveCommand(H,{commandController:{onServerError:function(){D.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});cmJ(this.ytContinuationHandlerBehavior,function(){return f===D.getCurrentSearchBoxText()})}}};
_.P.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.P.onRetryButtonClick=function(){this.isError=!1;var V={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:V}))};
_.P.hideTimestampsChanged=function(){_.oC("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.handleSignalActionCopyTranscript=function(){var V=this,D=this.getBodyRenderer();D&&(D=((D==null?void 0:D.searchResultSegments)||(D==null?void 0:D.initialSegments)||[]).map(function(f){return _.g(f,tVv)}).filter(function(f){return!!f}).map(function(f){return{snippet:f.snippet||{runs:[{text:""}]},
startTimeText:f.startTimeText||{simpleText:""}}}).map(function(f){var n=(f.snippet.runs||[]).reduce(function(t,J){return t+J.text},"");
return V.hideTimestamps?n:f.startTimeText.simpleText+" "+n}).join("\n"),this.copyToClipboard(D))};
_.P.copyToClipboard=function(V){navigator.clipboard&&navigator.clipboard.writeText(V)};
_.P.getCurrentSearchBoxText=function(){var V;return(V=this.searchBox)==null?void 0:V.value};
_.P.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.P.getBodyRenderer=function(){var V;return _.g((V=this.data)==null?void 0:V.body,nZV)};
_.P.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.IG.Object.defineProperties(WL.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Pt(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
WL.prototype.hideTimestampsChanged=WL.prototype.hideTimestampsChanged;WL.prototype.searchCleared=WL.prototype.searchCleared;WL.prototype.fireSearch=WL.prototype.fireSearch;WL.prototype.onReloadContinuationFinish=WL.prototype.onReloadContinuationFinish;WL.prototype.bodyChanged=WL.prototype.bodyChanged;WL.prototype.headerChanged=WL.prototype.headerChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],WL.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WL.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WL.prototype,"hideTimestamps",void 0);
_.S([_.q(),_.p("design:type",Object)],WL.prototype,"isLoadingTranscripts",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],WL.prototype,"darkerPanels",void 0);_.S([_.q(),_.p("design:type",Object)],WL.prototype,"isError",void 0);_.S([_.KI("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WL.prototype,"headerChanged",null);
_.S([_.eY("data.body"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WL.prototype,"bodyChanged",null);_.S([_.bU("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WL.prototype,"onReloadContinuationFinish",null);_.S([_.bU("yt-transcript-search-box-search"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],WL.prototype,"fireSearch",null);
_.S([_.bU("yt-transcript-search-box-clear"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WL.prototype,"searchCleared",null);_.S([_.KI("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WL.prototype,"hideTimestampsChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],WL);
_.Y(WL,"ytd-transcript-search-panel-renderer",function(){if(jnR!==void 0)return jnR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return jnR=V},{mode:1});var pq=function(){var V=_.E.apply(this,arguments)||this;V.player=null;V.playerPollJobId=0;return V};
_.v(pq,_.E);_.P=pq.prototype;_.P.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.P.onLoadReloadContinuation=function(V){_.c("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:V.target.data.continuation}}):(V={clickTrackingParams:V.target.data.clickTrackingParams,getTranscriptEndpoint:{params:V.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}}))};
_.P.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"}}}};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.P.attached=function(){this.updatePlayerListening()};
_.P.detached=function(){this.updatePlayerListening()};
_.P.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.P.startPlayerListening=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return(D=_.hI())?_.b(f,D.getPlayerPromise(),2):f.return();V.player=f.yieldResult;V.playerPollJobId=_.dm.addLowPriorityJob(function(){V.getPlayerVideoProgress()},1E3);
V.player.addEventListener("onCueRangeEnter",function(n){V.onCueRangeEnter(n)});
V.player.addEventListener("onCueRangeExit",function(n){V.onCueRangeExit(n)});
V.player.addEventListener("onStateChange",function(n){V.onPlayerStateChange(n)});
V.player.addEventListener("SEEK_TO",function(n){V.onPlayerSeek(n)});
_.yz(f)})};
_.P.getPlayerVideoProgress=function(){var V=this;_.dm.cancelJob(this.playerPollJobId);if(this.player){var D=this.player.getCurrentTime();_.o4(this.hostElement,"yt-player-time-changed",[D])}this.playerPollJobId=_.dm.addLowPriorityJob(function(){V.getPlayerVideoProgress()},1E3)};
_.P.stopPlayerListening=function(){this.player=null;_.dm.cancelJob(this.playerPollJobId)};
_.P.onPlayerStateChange=function(V){V===2&&this.removePendingCue()};
_.P.onPlayerSeek=function(V){var D;if(D=this.pendingReplayCueId)D=this.pendingReplayCueId,D=V===(_.c("web_transcript_cue_id_killswitch")?Number(D):Number(D.split("_")[1]));D||this.removePendingCue()};
_.P.onCueRangeEnter=function(V){Lno(V)&&(this.pendingReplayCueId=V)};
_.P.onCueRangeExit=function(V){Lno(V)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.P.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.P.onYtTranscriptPlayerSeek=function(V){this.player&&this.player.seekTo(V,!0)};
_.P.onYtTranscriptPlayerReplay=function(V,D){this.player&&(this.player.addCueRange(psR(V),V,D),this.player.seekTo(V,!0),this.player.playVideo())};
_.P.onYtTranscriptPlayerEdit=function(V,D){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(psR(V),V,D),this.player.seekTo(V,!0))};
pq.prototype.onLoadReloadContinuation=pq.prototype.onLoadReloadContinuation;pq.prototype.panelContentVisibleChanged=pq.prototype.panelContentVisibleChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pq.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],pq.prototype,"panelContentVisible",void 0);_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pq.prototype,"panelContentVisibleChanged",null);
_.S([_.bU("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],pq.prototype,"onLoadReloadContinuation",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],pq);
_.Y(pq,"ytd-transcript-renderer",function(){if(yJ3!==void 0)return yJ3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return yJ3=V},{mode:1});var cJB;var FFo;var Lq=function(){return _.E.apply(this,arguments)||this};
_.v(Lq,_.E);Lq.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.wN(this.hostElement,[this.data.clickCommand],this.hostElement))};
Lq.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.mB)()+_.XJ)+"px)"};
Lq.prototype.updateShouldHideFromBinding=function(V){this.shouldHide=V.detail.value};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Lq.prototype,"rendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Lq.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Lq.prototype,"shouldHide",void 0);_.S([_.a({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Lq);
_.Y(Lq,"ytd-ad-engagement-panel-banner-renderer",function(){if(FFo!==void 0)return FFo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FFo=V},{mode:_.J2("kevlar_poly_si_batch_j070")?1:2});var gMX;var Io=function(){var V=_.E.apply(this,arguments)||this;V.modernPanels=_.c("kevlar_watch_modern_panels");V.buttonUpdate=_.c("web_modern_buttons");V.adsSemanticText=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return V};
_.v(Io,_.E);Io.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.S([_.q(),_.p("design:type",Object)],Io.prototype,"data",void 0);_.S([_.q({computed:"computeHideDefaultAdBadge(data)"}),_.p("design:type",Boolean)],Io.prototype,"hideDefaultAdBadge",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Io.prototype,"modernPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Io.prototype,"buttonUpdate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Io.prototype,"adsSemanticText",void 0);
_.S([_.a({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Io);
_.Y(Io,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(gMX!==void 0)return gMX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gMX=V},{mode:1});var vM3;var OZ=function(){var V=_.E.apply(this,arguments)||this;V.darkerPanels=_.c("web_watch_darker_panels");V.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");V.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");V.modernPanels=_.c("kevlar_watch_modern_panels");V.headerClickListener=function(D){V.onHeaderClick(D)};
V.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return V};
_.v(OZ,_.E);_.P=OZ.prototype;_.P.computeAdsInfoButton=function(){if(_.c("web_modern_buttons")){var V,D;return(D=_.g((V=this.data)==null?void 0:V.subtitleComplex,azq))==null?void 0:D.adInfoRenderer}};
_.P.updateHeaderClickListener=function(){var V,D,f;((V=this.data)==null?0:V.navigationEndpoint)||((D=this.data)==null?0:D.onClickCommand)||_.g((f=this.data)==null?void 0:f.visibilityButton,_.C9)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.P.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}}}}}};
_.P.collapsedChanged=function(){var V;(V=this.data)!=null&&V.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.c("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.P.focus=function(V){var D=this;this.titleElement&&_.dm.addJob(function(){_.ph(D.titleElement,V)},0,500)};
_.P.computeTitleAriaLabel=function(V){var D=[];if(V.title){var f,n;D.push(this.ytRendererBehavior.getSimpleString(V.title)||((f=V.title.accessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label))}V.contextualInfo&&D.push(this.ytRendererBehavior.getSimpleString(V.contextualInfo));return D.join(" ")};
_.P.onHeaderClick=function(V){this.shouldTriggerHeaderClick(V)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.wN(this.hostElement,[this.data.onClickCommand],this.hostElement)):(V=this.getVisibilityToggleButton())&&V.click())};
_.P.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var V=_.g(this.data.visibilityButton,_.RI)||_.g(this.data.visibilityButton,_.C9);V&&this.ytRendererBehavior.logExplicitClick(V)}};
_.P.getVisibilityToggleButton=function(){var V=_.Pt(this.hostElement).querySelector("#visibility-button").firstElementChild;return(V==null?void 0:V.is)==="ytd-toggle-button-renderer"?V:null};
_.P.shouldTriggerHeaderClick=function(V){return!_.It(_.Os(V),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.P.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(V){V=_.g(V,_.N8B);this.targetId&&(V==null?void 0:V.targetId)===this.targetId&&(V=V.navigationButton)&&this.set("data.navigationButton",V)};
_.IG.Object.defineProperties(OZ.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!!(((V=this.entity)==null?0:V.isActionButtonHidden)||this.hideActionButton)}}});
OZ.prototype.collapsedChanged=OZ.prototype.collapsedChanged;OZ.prototype.updateHeaderClickListener=OZ.prototype.updateHeaderClickListener;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],OZ.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],OZ.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OZ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],OZ.prototype,"targetId",void 0);_.S([_.q(),_.p("design:type",Boolean)],OZ.prototype,"collapsed",void 0);_.S([_.q(),_.p("design:type",Boolean)],OZ.prototype,"hideActionButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OZ.prototype,"shortsPanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OZ.prototype,"liveChatEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],OZ.prototype,"learningChatEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OZ.prototype,"darkerPanels",void 0);_.S([_.Zv("#title"),_.p("design:type",HTMLElement)],OZ.prototype,"titleElement",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],OZ.prototype,"headerElement",void 0);
_.S([_.q({computed:"computeAdsInfoButton(data)"}),_.p("design:type",Object)],OZ.prototype,"adsInfoButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OZ.prototype,"enableSqueezebackPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OZ.prototype,"enableAnchoredPanel",void 0);_.S([_.q({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(V,D){return _.wg(V.entities,"engagementPanelTitleHeaderEntity",D)}}),
_.p("design:type",Object)],OZ.prototype,"entity",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],OZ.prototype,"modernPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OZ.prototype,"adsSemanticText",null);_.S([_.KI("data","data.navigationEndpoint","data.onClickCommand"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OZ.prototype,"updateHeaderClickListener",null);
_.S([_.eY("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OZ.prototype,"collapsedChanged",null);_.S([_.R("entity","hideActionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OZ.prototype,"isActionButtonHidden",null);_.S([_.a({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],OZ);
_.Y(OZ,"ytd-engagement-panel-title-header-renderer",function(){if(vM3!==void 0)return vM3;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return vM3=V},{mode:1});var kAR;var xH=function(){return _.E.apply(this,arguments)||this};
_.v(xH,_.E);xH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xH.prototype,"data",void 0);_.S([_.a({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],xH);
_.Y(xH,"ytd-macro-markers-info-item-renderer",function(){if(kAR!==void 0)return kAR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return kAR=V},{mode:1});var snq;var uZJ=function(V,D,f,n,t,J){_.cq.call(this);var H=this;this.JSC$20319_containerElement=V;this.hostElement=D;this.supportedSyncItems=f;this.syncEntityKey=n;this.options=t;this.renderLazyListItems=J;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;BVW(this);dp0(this);this.JSC$20319_scrollAnimation=new _.zX(function(Q){V.scrollTop=Q});
_.wX(this,this.JSC$20319_scrollAnimation);this.addOnDisposeCallback(function(){H.exitBrowsingMode(!1);H.activeItem&&H.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.v(uZJ,_.cq);var BVW=function(V){var D=_.yX(_.DY().resolve(_.C1),function(f){return f.entities.markersEngagementPanelSyncEntity||{}},function(f,n){var t;
f[V.syncEntityKey]!==n[V.syncEntityKey]&&((t=f[V.syncEntityKey])==null?void 0:t.activeItemIndex)!==void 0&&V.updatePanelActiveItem(f[V.syncEntityKey].activeItemIndex)});
V.unsubscribeFromTimedMarkersListSyncEntity=D;V.addOnDisposeCallback(D);NVR(V)},NVR=function(V){var D=_.DY().resolve(_.C1);
D=_.mBL(D.getState(),V.syncEntityKey);(D==null?void 0:D.activeItemIndex)!==void 0&&(D=V.getItemByIndex(D.activeItemIndex))&&V.setActiveItem(D)},dp0=function(V){var D=new _.I7(V.onScroll,50,V);
_.wX(V,D);var f=function(){D.fire()};
V.JSC$20319_containerElement.addEventListener("scroll",f);V.addOnDisposeCallback(function(){V.JSC$20319_containerElement.removeEventListener("scroll",f)})};
_.P=uZJ.prototype;
_.P.updatePanelActiveItem=function(V){var D=this.getItemByIndex(V);if(D){if(this.setActiveItem(D),this.contentVisible)if(this.browsingMode){var f;((f=this.options)==null?void 0:f.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(V=mp0(this),D.offsetTop<this.JSC$20319_containerElement.clientHeight+this.JSC$20319_containerElement.scrollTop&&V&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));zoW(this)}else this.scrollToItem(D)}else _.zP(new _.cI("Could not find "+this.supportedSyncItems+
" sync child to set active.",V,this.JSC$20319_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.P.getItemByIndex=function(V){var D;(D=this.renderLazyListItems)==null||D.call(this,V);D=this.JSC$20319_containerElement.querySelectorAll(this.supportedSyncItems);if(D.length>V)return D[V]};
_.P.setActiveItem=function(V){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));V.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=V};
_.P.scrollToItem=function(V){V=this.getScrollPositionForItem(V);this.JSC$20319_containerElement.scrollTop!==V&&this.JSC$20319_scrollAnimation.start(this.JSC$20319_containerElement.scrollTop,V,300)};
_.P.getScrollPositionForItem=function(V){if(this.JSC$20319_containerElement.querySelectorAll(this.supportedSyncItems)[0]===V)return 0;var D,f=((D=this.options)==null?0:D.percentOffset)?this.JSC$20319_containerElement.clientHeight*this.options.percentOffset:0;V=_.R8(V).y+this.JSC$20319_containerElement.scrollTop-(_.R8(this.JSC$20319_containerElement).y+f);return Math.max(0,Math.min(V,this.JSC$20319_containerElement.scrollHeight-this.JSC$20319_containerElement.offsetHeight))};
_.P.onScroll=function(){this.activeItemBelowSyncPosition=mp0(this);if(this.activeItem&&!this.JSC$20319_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20319_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var V;switch((V=this.options)==null?void 0:V.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Ro3(this));zoW(this);break;default:this.enterBrowsingMode(!0)}}};
_.P.enterBrowsingMode=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1){if(D.browsingMode)return t.return();D.browsingMode=!0;V&&D.hostElement.classList.add("browsing-mode");D.playerExitBrowsingModeListener=function(){D.exitBrowsingMode(!1)};
return _.b(t,_.JY(),2)}f=t.yieldResult;(n=f)==null||n.addEventListener("SEEK_TO",D.playerExitBrowsingModeListener);_.yz(t)})};
_.P.exitBrowsingMode=function(V){V=V===void 0?!0:V;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),V&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1)return V.playerExitBrowsingModeListener?_.b(n,_.JY(),3):n.jumpTo(0);D=n.yieldResult;(f=D)==null||f.removeEventListener("SEEK_TO",V.playerExitBrowsingModeListener);V.playerExitBrowsingModeListener=void 0;_.yz(n)})};
var zoW=function(V){var D;((D=V.options)==null?void 0:D.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Ro3(V)?V.hostElement.classList.remove("browsing-mode"):V.activeItem&&V.hostElement.classList.add("browsing-mode"))},mp0=function(V){if(!V.activeItem)return!1;
var D,f=((D=V.options)==null?0:D.percentOffset)?V.JSC$20319_containerElement.clientHeight*V.options.percentOffset:0;return V.activeItem.offsetTop>=V.JSC$20319_containerElement.scrollTop+f},Ro3=function(V){if(!V.activeItem)return!1;
var D=V.activeItem.offsetTop+14<=V.JSC$20319_containerElement.scrollTop+V.JSC$20319_containerElement.clientHeight;return V.activeItem.offsetTop+V.activeItem.clientHeight-14>=V.JSC$20319_containerElement.scrollTop&&D};
uZJ.prototype.panelContentVisibleChanged=function(V){(this.contentVisible=V)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Cpv=function(V,D){V.syncEntityKey=D;var f;(f=V.unsubscribeFromTimedMarkersListSyncEntity)==null||f.call(V);BVW(V)},qLc=function(V,D){V.options=D};var Mt=function(){var V=_.E.apply(this,arguments)||this;V.browsingMode=!1;V.modern=_.c("web_button_rework");V.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return V};
_.v(Mt,_.E);_.P=Mt.prototype;_.P.activeItemChanged=function(){if(!_.c("synced_panel_scrolling_controller")){var V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.P.created=function(){var V=this;_.c("synced_panel_scrolling_controller")||(this.JSC$20323_scrollAnimation=new _.zX(function(D){V.contents.scrollTop=D}),this.boundExitBrowsingMode=function(){V.exitBrowsingMode(!1)})};
_.P.detached=function(){if(_.c("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.P.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"}}}};
_.P.dataChanged=function(){var V=this;_.c("synced_panel_scrolling_controller")?_.pO(this,function(){if(V.scrollController){var D;(D=V.scrollController)==null||D.exitBrowsingMode(!1);var f,n,t;(n=V.scrollController)==null||Cpv(n,(t=(f=V.data)==null?void 0:f.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key");var J,H,Q;(Q=V.scrollController)==null||qLc(Q,{percentOffset:(J=V.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(H=V.data)==null?void 0:H.floatingPillType})}else{var T,
y,Z,l;V.scrollController=new uZJ(V.contents,V.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(l=(T=V.data)==null?void 0:T.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key",{percentOffset:(y=V.data)==null?void 0:y.selectedItemAlignmentPercentOffset,floatingPillType:(Z=V.data)==null?void 0:Z.floatingPillType},function(G){V.renderLazyListItems(G)})}V.scrollController.panelContentVisibleChanged(!!V.panelContentVisible)}):this.exitBrowsingMode()};
_.P.computeButtonShape=function(){var V=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){V.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.P.computeSyncEnabled=function(V){return!(V==null||!V.syncButtonLabel)};
_.P.renderLazyListItems=function(V){for(var D=this.contents.children,f=0,n=0;n<D.length;n++){var t=void 0;(t=D[n].ytLazyListBehavior)==null||t.fillRemainingListItems();var J=void 0,H=void 0;t=_.g((J=this.data)==null?void 0:(H=J.contents)==null?void 0:H[n],_.$WF);H=J=void 0;if((J=t)==null?0:(H=J.contents)==null?0:H.length)f+=t.contents.length;if(f>=V)break}};
_.P.getItemByIndex=function(V){this.renderLazyListItems(V);var D=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(D.length>V)return D[V]};
_.P.setActiveItem=function(V){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);V.active!==void 0&&(V.active=!0);this.currentActiveItem=V};
_.P.handleSetActivePanelItemAction=function(V){if((V=_.g(V,zbR))&&this.panelTargetId===V.panelTargetId){V=V.itemIndex;if(_.c("synced_panel_scrolling_controller")){var D,f;var n=(f=(D=this.data)==null?void 0:D.syncModelEntityKey)!=null?f:"default-macro-markers-list-renderer-entity-key"}else{var t;n=(t=this.data)==null?void 0:t.syncModelEntityKey}if(n){var J;((J=this.syncEntity)==null?void 0:J.activeItemIndex)!==V&&this.ytdReduxBehavior.dispatch(_.y1("markersEngagementPanelSyncEntity",n,{key:n,activeItemIndex:V}))}else this.updatePanelActiveItem(V)}};
_.P.updatePanelActiveItem=function(V){var D=this.getItemByIndex(V);D?(this.setActiveItem(D),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(D)):_.zP(new _.cI("Could not find ytd-macro-markers-list-renderer sync child to set active.",V,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.P.scrollToItem=function(V){V=this.getScrollPositionForItem(V);this.contents.scrollTop!==V&&this.JSC$20323_scrollAnimation.start(this.contents.scrollTop,V,300)};
_.P.getScrollPositionForItem=function(V){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===V)return 0;V=_.R8(V).y+this.contents.scrollTop-_.R8(this.contents).y-this.getStickyHeaderHeight(V);return Math.min(V,this.contents.scrollHeight-this.contents.offsetHeight)};
_.P.getStickyHeaderHeight=function(V){if(V.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var D,f,n;return(n=(D=V.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(f=D.header)==null?void 0:f.offsetHeight)!=null?n:0}return 0};
_.P.onScroll=function(){_.c("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20323_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.P.enterBrowsingMode=function(){var V=this;return _.w(function(D){if(D.nextAddress==1){if(V.browsingMode)return D.return();V.browsingMode=!0;return _.b(D,_.Uo().getPlayerPromise(),2)}V.player=D.yieldResult;V.player.addEventListener("SEEK_TO",V.boundExitBrowsingMode);_.yz(D)})};
_.P.exitBrowsingMode=function(V){this.browsingMode&&(this.browsingMode=!1,(V===void 0||V)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.P.onSyncClick=function(){if(_.c("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.exitBrowsingMode()}else this.exitBrowsingMode()};
_.P.panelContentVisibleChanged=function(){if(_.c("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Mt.prototype.panelContentVisibleChanged=Mt.prototype.panelContentVisibleChanged;Mt.prototype.dataChanged=Mt.prototype.dataChanged;Mt.prototype.activeItemChanged=Mt.prototype.activeItemChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Mt.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Mt.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mt.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Mt.prototype,"useCustomColors",void 0);_.S([_.q({computed:"computeSyncEnabled(data)"}),_.p("design:type",Boolean)],Mt.prototype,"syncEnabled",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Mt.prototype,"panelTargetId",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Mt.prototype,"panelContentVisible",void 0);_.S([_.Zv("#contents"),_.p("design:type",HTMLElement)],Mt.prototype,"contents",void 0);_.S([_.Zv("#sync-container"),_.p("design:type",HTMLElement)],Mt.prototype,"syncContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Mt.prototype,"browsingMode",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Mt.prototype,"modern",void 0);_.S([_.q({selectorArgs:["data.syncModelEntityKey"],selector:_.mBL}),_.p("design:type",Object)],Mt.prototype,"syncEntity",void 0);_.S([_.KI("syncEntity.activeItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mt.prototype,"activeItemChanged",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mt.prototype,"dataChanged",null);_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mt.prototype,"panelContentVisibleChanged",null);_.S([_.a({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Mt);
_.Y(Mt,"ytd-macro-markers-list-renderer",function(){if(snq!==void 0)return snq;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return snq=V},{mode:1});var Xe0;var hH=function(){return _.E.apply(this,arguments)||this};
_.v(hH,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hH.prototype,"data",void 0);_.S([_.a({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],hH);
_.Y(hH,"ytd-error-corrections-section-item-renderer",function(){if(Xe0!==void 0)return Xe0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Xe0=V},{mode:1});var EMv;var UZ=function(){return _.E.apply(this,arguments)||this};
_.v(UZ,_.E);UZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],UZ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UZ.prototype,"data",void 0);_.S([_.a({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],UZ);
_.Y(UZ,"ytd-error-corrections-section-renderer",function(){if(EMv!==void 0)return EMv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return EMv=V},{mode:1});var AJZ;var Vs=function(){return _.E.apply(this,arguments)||this};
_.v(Vs,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Vs.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vs.prototype,"data",void 0);_.S([_.a({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Vs);
_.Y(Vs,"ytd-topic-link-renderer",function(){if(AJZ!==void 0)return AJZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return AJZ=V},{mode:1});var aiv;var DM=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("kevlar_modern_sd_v2");V.modernLockupV2=_.c("modernize_structured_description_playlist_lockups_v2");V.modernTypography=_.c("web_modern_typography");return V};
_.v(DM,_.E);DM.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],DM.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],DM.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],DM.prototype,"modernLockupV2",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],DM.prototype,"modernTypography",void 0);_.S([_.a({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],DM);
_.Y(DM,"ytd-video-description-course-section-renderer",function(){if(aiv!==void 0)return aiv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return aiv=V},{mode:1});var YL0;var fU=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("kevlar_modern_sd_v2");V.modernTypography=_.c("web_modern_typography");return V};
_.v(fU,_.E);fU.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fU.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],fU.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],fU.prototype,"modernTypography",void 0);
_.S([_.a({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],fU);
_.Y(fU,"ytd-video-description-files-section-renderer",function(){if(YL0!==void 0)return YL0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return YL0=V},{mode:1});var $pX;var nU=function(){return _.E.apply(this,arguments)||this};
_.v(nU,_.E);nU.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nU.prototype,"data",void 0);_.S([_.a({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],nU);
_.Y(nU,"ytd-video-description-gaming-section-renderer",function(){if($pX!==void 0)return $pX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return $pX=V},{mode:1});var iD3;var tz=function(){var V=_.E.apply(this,arguments)||this;V.isExpanded=!1;return V};
_.v(tz,_.E);tz.prototype.computeHasDefaultMetadataEndpoint=function(V){var D;V=V==null?void 0:(D=V.defaultMetadata)==null?void 0:D.runs;return!(!V||V.length!==1||!V[0].navigationEndpoint)};
tz.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.IG.Object.defineProperties(tz.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tz.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],tz.prototype,"isExpanded",void 0);_.S([_.q({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],tz.prototype,"hasDefaultMetadataEndpoint",void 0);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tz.prototype,"isExpandable",null);_.S([_.R("data","isExpandable","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tz.prototype,"showExpandedMetadata",null);_.S([_.a({is:"ytd-info-row-renderer",disableElementRegistration:!0})],tz);
_.Y(tz,"ytd-info-row-renderer",function(){if(iD3!==void 0)return iD3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iD3=V},{mode:1});var SL0;var Pu=function(){var V=_.E.apply(this,arguments)||this;V.currentIndex=0;V.supportComponentResize=!0;V.modern=_.c("kevlar_modern_sd_v2");V.JSC$20349_lastScrollContainerWidth=NaN;return V};
_.v(Pu,_.E);_.P=Pu.prototype;
_.P.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"}}}};
_.P.getItemsPath=function(){return"videoLockups"};
_.P.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.P.onIronResize=function(){this.updateVideoLockupStyles()};
_.P.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.P.updateVideoLockupStyles=function(){var V;this.JSC$20349_scrollContainer!==void 0&&(V=this.videoLockups)!=null&&V.length&&(V=this.JSC$20349_scrollContainer.clientWidth,V!==this.JSC$20349_lastScrollContainerWidth&&(this.JSC$20349_lastScrollContainerWidth=V,_.wI(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(V*.8,415)+"px"}),_.PA(this.hostElement,"iron-resize")))};
_.IG.Object.defineProperties(Pu.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var V=[],D;if((D=this.data)==null||!D.carouselLockups)return V;D=_.r(this.data.carouselLockups);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;((n=_.g(f,rj0))==null?0:n.videoLockup)&&V.push(_.g(f,rj0).videoLockup)}return V}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoLockups)==null||!V.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var V=[],D;if((D=this.data)==null||!D.carouselLockups)return V;var f;return(f=_.g(this.data.carouselLockups[this.scrollCount],rj0))==null?void 0:f.infoRows}}});
Pu.prototype.dataChanged=Pu.prototype.dataChanged;Pu.prototype.onIronResize=Pu.prototype.onIronResize;Pu.prototype.hiddenChanged=Pu.prototype.hiddenChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Pu.prototype,"componentBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],Pu.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Pu.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Pu.prototype,"inlineStructuredDescription",void 0);_.S([_.q({value:2}),_.p("design:type",Number)],Pu.prototype,"initialCount",void 0);_.S([_.q(),_.p("design:type",Object)],Pu.prototype,"currentIndex",void 0);
_.S([_.q(),_.p("design:type",Number)],Pu.prototype,"scrollCount",void 0);_.S([_.q(),_.p("design:type",Object)],Pu.prototype,"supportComponentResize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Pu.prototype,"contentHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Pu.prototype,"modern",void 0);_.S([_.Zv("#scroll-container"),_.p("design:type",HTMLDivElement)],Pu.prototype,"JSC$20349_scrollContainer",void 0);
_.S([_.KI("contentHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pu.prototype,"hiddenChanged",null);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Pu.prototype,"videoLockups",null);_.S([_.R("videoLockups"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Pu.prototype,"hasVideoLockups",null);
_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pu.prototype,"onIronResize",null);_.S([_.R("data","scrollCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],Pu.prototype,"infoRows",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pu.prototype,"dataChanged",null);_.S([_.a({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Pu);
_.Y(Pu,"ytd-video-description-music-section-renderer",function(){if(SL0!==void 0)return SL0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return SL0=V},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var WF3;var oM=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("kevlar_modern_sd_v2");V.modernTypography=_.c("web_modern_typography");return V};
_.v(oM,_.E);oM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.S([_.q({}),_.p("design:type",Object)],oM.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oM.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oM.prototype,"modernTypography",void 0);
_.S([_.a({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],oM);
_.Y(oM,"ytd-video-description-transcript-section-renderer",function(){if(WF3!==void 0)return WF3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WF3=V},{mode:1});var peW;_.fT(_.MA(function(V){var D=_.KX(_.FBR,function(){return V.data().firstProviderLinkStatusEntityKey}),f=_.KX(_.FBR,function(){return V.data().secondProviderLinkStatusEntityKey}),n=function(){var t,J;
return((t=D())==null?void 0:t.linked)||((J=f())==null?void 0:J.linked)};
return _.K("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.K(_.Ow,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return V.data().sectionTitle}}),_.K(_.Ow,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return n()?V.data().connectedMessage:V.data().notConnectedMessage}}),_.K(_.e,{cond:n,
then:function(){return _.K(_.BW,{data:function(){return V.data().connectedButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.K(_.e,{cond:function(){return!n()},
then:function(){return _.K(_.BW,{data:function(){return V.data().notConnectedButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"lj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;return _.K("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.K("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.K(_.Ow,{text:function(){return D().sectionTitle}})),_.K("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.K(_.Ow,{text:function(){return D().bodyHeader}})),_.K("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.K(_.Ow,{text:function(){return D().bodyText}})),_.K(_.e,
{cond:function(){return D().attributionText},
then:function(){return _.K("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.K(_.Ow,{text:function(){return D().attributionText}}))}}))},"mj"),"how-this-was-made-section-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){return _.K("yt-video-description-youchat-section-view-model",{class:_.KT("ytVideoDescriptionYouchatSectionViewModelHost")},_.K("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.K(_.Ow,{text:function(){return V.data().sectionTitle}})),_.K("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.K(_.Ow,{text:function(){return V.data().subHeaderText}})),_.K("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.K(_.HO,{data:function(){return _.g(V.data().primaryButton,
_.cW)}})))},"nj"),"yt-video-description-youchat-section-view-model",{props:{data:_.WX}});var Jz=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return V};
_.v(Jz,_.E);_.P=Jz.prototype;
_.P.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}}}}}};
_.P.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.P.dataChanged=function(){var V,D;this.hasDescriptionOnly=!(((V=this.data)==null?void 0:(D=V.items)==null?void 0:D.length)!==1||!_.g(this.data.items[0],HPJ))};
_.P.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.P.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.P.autoFocusDescription=function(){var V;((V=_.DY().resolve(_.Vx(_.PO)))==null?0:V.isKeyBoardInUse())&&this.description&&_.Lh(this.description)};
_.P.resize=function(){if(_.c("kevlar_disable_sd_resize"))this.JSC$20357_cardList&&_.PA(this.JSC$20357_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.PA(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.PA(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.P.scrollToSection=function(V){if(V=this.getSectionElement(V))_.o4(this.hostElement,"yt-scroll-to-watch-element",[V]),V.focus()};
_.P.getSectionElement=function(V){switch(V){case "infocards-item-section":var D;return(D=this.infocardsSection)!=null?D:null;case "transcript-item-section":var f;return(f=this.transcriptSection)!=null?f:null;case "how-this-was-made-section-item-section":var n;return(n=this.howThisWasMadeSection)!=null?n:null;case "files-item-section":var t;return(t=this.filesSection)!=null?t:null;default:return null}};
_.P.handleSetActiveItemAction=function(V){var D=_.g(V,zbR),f=D&&(D==null?void 0:D.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20357_cardList;if(D&&f){V=this.currentActiveChapter;var n=this.currentActiveProblem;D=f==null?void 0:f.getItemByIndex(D.itemIndex);var t=f=!0;D&&(D.active=!0,D.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(f=V!==D,t=!1,this.currentActiveChapter=D):(D==null?void 0:D.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(f=!1,t=n!==D,this.currentActiveProblem=D));V&&f&&(V.active=!1);n&&t&&(n.active=!1)}};
_.IG.Object.defineProperties(Jz.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Jz.prototype.onYtExpanderMoreTapped=Jz.prototype.onYtExpanderMoreTapped;Jz.prototype.onHiddenChanged=Jz.prototype.onHiddenChanged;Jz.prototype.dataChanged=Jz.prototype.dataChanged;Jz.prototype.panelContentVisibleChanged=Jz.prototype.panelContentVisibleChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Jz.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],Jz.prototype,"ironResizableBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Jz.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Jz.prototype,"panelContentVisible",void 0);_.S([_.q(),_.p("design:type",Boolean)],Jz.prototype,"hasDescriptionOnly",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jz.prototype,"inlineStructuredDescription",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jz.prototype,"hidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jz.prototype,"shortsPanel",void 0);_.S([_.q(),_.p("design:type",Object)],Jz.prototype,"videoSummary",void 0);_.S([_.q(),_.p("design:type",Object)],Jz.prototype,"merchShelf",void 0);
_.S([_.R("videoSummary"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jz.prototype,"showVideoSummary",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jz.prototype,"engagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jz.prototype,"watchWhileSdp",void 0);_.S([_.Zv("ytd-expandable-video-description-body-renderer"),_.p("design:type",Object)],Jz.prototype,"description",void 0);
_.S([_.Zv("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],Jz.prototype,"JSC$20357_cardList",void 0);_.S([_.Zv("ytd-horizontal-card-list-renderer[center-items]"),_.p("design:type",Object)],Jz.prototype,"problemWalkthroughCardList",void 0);_.S([_.Zv("ytd-shelf-renderer"),_.p("design:type",Object)],Jz.prototype,"shelfSection",void 0);_.S([_.Zv("ytd-video-description-music-section-renderer"),_.p("design:type",Object)],Jz.prototype,"musicMetadataSection",void 0);
_.S([_.Zv("ytd-video-description-infocards-section-renderer"),_.p("design:type",Object)],Jz.prototype,"infocardsSection",void 0);_.S([_.Zv("ytd-video-description-transcript-section-renderer"),_.p("design:type",Object)],Jz.prototype,"transcriptSection",void 0);_.S([_.Zv("how-this-was-made-section-view-model"),_.p("design:type",Object)],Jz.prototype,"howThisWasMadeSection",void 0);_.S([_.Zv("ytd-video-description-files-section-renderer"),_.p("design:type",Object)],Jz.prototype,"filesSection",void 0);
_.S([_.KI("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jz.prototype,"panelContentVisibleChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jz.prototype,"dataChanged",null);_.S([_.KI("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jz.prototype,"onHiddenChanged",null);
_.S([_.bU("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jz.prototype,"onYtExpanderMoreTapped",null);_.S([_.a({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Jz);
_.Y(Jz,"ytd-structured-description-content-renderer",function(){if(peW!==void 0)return peW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return peW=V},{mode:2});var LFo;var IiJ;var rd=function(){return _.E.apply(this,arguments)||this};
_.v(rd,_.E);rd.prototype.computeAriaLabel=function(V){var D,f;return(V==null?void 0:(D=V.accessibility)==null?void 0:(f=D.accessibilityData)==null?void 0:f.label)||_.Zl("LOADING",void 0,"Loading")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],rd.prototype,"data",void 0);_.S([_.q({computed:"computeAriaLabel(data)"}),_.p("design:type",String)],rd.prototype,"ariaLabel",void 0);_.S([_.zy({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],rd);
_.Y(rd,"yt-content-loading-renderer",function(){if(IiJ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;LFo===void 0&&(LFo=document.createElement("template"));var n=LFo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);IiJ=V}V=IiJ;return V},{mode:_.J2("kevlar_poly_si_batch_j043")?1:2});_.fT(_.MA(function(V){var D=_.r(_.HJ(!1,void 0,"QkPiwb")),f=D.next().value,n=D.next().value;D=_.r(_.HJ(!1,void 0,"AFECB"));var t=D.next().value,J=D.next().value;_.Nl(function(){var T=_.g(V.data().collaboratePlaylistCollaborationSetting,hb0);T&&n(T.switchedOnByDefault);var y=_.g(V.data().allowNewCollaboratorsPlaylistCollaborationSetting,hb0);y&&J(y.switchedOnByDefault);if(!T&&!y||!T&&V.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")n(!0),J(!0)});
var H=function(T){n(T);J(T);var y=V.data().playlistCollaborationEntityKey||"";var Z=_.pI().getState();(Z=_.wg(Z.entities,"playlistCollaborationEntity",y))&&(Z==null?void 0:Z.isCollaborative)===T||_.pI().dispatch(_.y1("playlistCollaborationEntity",y,Object.assign({},Z,{isCollaborative:T})))},Q=function(T){J(T)};
return _.K("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.K("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.K(_.BW,{data:function(){return V.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.K(_.irE,{data:T.data,
onSwitch:H})}})),_.K(_.e,{cond:f,
then:function(){return _.K(_.th,null,_.K("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.K(_.BW,{data:function(){return V.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.K(_.irE,{data:T.data,
onSwitch:Q,overrideDisabled:!1})}})),_.K(_.e,{cond:t,
then:function(){return _.K("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.K(_.BW,{data:function(){return V.data().copyLinkButton}},{buttonViewModel:_.HO}))}}),_.K("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.K(_.BW,{data:function(){return V.data().playlistCollaborators}},{contentListItemViewModel:_.HKZ})))}}))},"oj"),"playlist-collaboration-view-model",{props:{data:_.WX}});var ODX=_.MA(function(V){var D=V.data;var f=V.customCommandResolver;return _.K(_.th,null,_.K("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.K(_.BW,{data:function(){return D().adAvatar}},{adAvatarViewModel:function(n){return _.K(_.gUP,{data:n.data,
customCommandResolver:f})}})),_.K("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.K(_.e,{cond:function(){return D().headline},
then:function(n){return _.K(_.Ow,{text:n,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.K("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.K(_.BW,{data:function(){return D().adBadge}},{adBadgeViewModel:function(n){return _.K(_.DS,{data:n.data,
hasDot:function(){return D().primaryDetailsLine!==void 0},
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.K(_.BW,{data:function(){return D().primaryDetailsLine}},{adDetailsLineViewModel:function(n){return _.K(_.fv,{data:n.data,
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"pj"),xpc=_.MA(function(V){var D=V.data;
var f=V.customCommandResolver;V=_.W2("ad-avatar-lockup-view-model");_.SK(V,function(){return D().interaction},f);
_.hk(V,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});return _.K("ad-avatar-lockup-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:V,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K(_.kw,null,_.K(_.gj,{when:function(){return D().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.K(ODX,{data:D,
customCommandResolver:f})}),_.K(_.v9,null,function(){return null})))},"qj");_.fT(_.MA(function(V){var D=V.data;var f=V.panelContentVisibility;V=_.W2("panel-ad-header-image-lockup-view-model");_.SK(V,function(){return D().interaction},IGc);
_.hk(V,{visibilityCallback:function(t){var J,H=(J=D().interaction)==null?void 0:J.onFirstVisible;t&&H&&_.Yt(H)},
showOption:_.I1});_.mK(function(){var t,J;if(J=_.Yw("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;J=(H=J())==null?void 0:H.onLayoutVisibleCallback}else J=null;(t=J)==null||t()});
var n=function(){return f()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.K("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:V},_.K("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.K("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.K(_.e,{cond:_.mD9("(min-width: "+((0,_.mB)()+_.XJ)+"px) or (max-width: 600px)"),then:function(){return _.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(t){return _.K(_.b9,{data:t.data,
targetHeight:80,customCommandResolver:IGc})}})}})),_.K("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.K("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.K(_.BW,{data:function(){return D().adAvatarLockup}},{adAvatarLockupViewModel:function(t){return _.K(xpc,{data:t.data,
customCommandResolver:IGc})}})),_.K(_.e,{cond:n,
then:function(){return _.K(_.BW,{data:function(){return D().adButton}},{adButtonViewModel:function(t){return _.K(_.xd,{data:t.data,
customCommandResolver:IGc})}})},
else:function(){return _.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:_.HO})}}),_.K("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.K(_.BW,{data:function(){var t=_.g(D().toggleButton,_.FO);
return{toggleButtonViewModel:Object.assign({},t,{isTogglingDisabled:!0,isToggled:n()})}}},{toggleButtonViewModel:_.FA})))))},"rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.WX,
panelContentVisibility:_.WX}});_.fT(_.MA(function(V){var D=function(){return _.g(V.data().inputComposerViewModel,U$W)},f=function(){var k;
return((k=D())==null?void 0:k.youchatPendingResponseEntityKey)||""},n=_.KX(_.uxq,f),t=function(){var k;
return!((k=n())==null||!k.isPendingResponse)},J=_.r(_.HJ(!0,void 0,"DR0q1d")),H=J.next().value,Q=J.next().value,T=function(){return D().sectionTargetId||"youchat_messages_section"};
J=_.py("yt-chat-input-view-model");var y=_.W2("textarea"),Z=_.KX(Xso,"chat_input_view_model_state"),l=E_W(),G=function(){var k;return!((k=Z())==null||!k.value)};
_.Nl(function(){var k;if(!G()&&((k=D())==null?0:k.welcomeFeatureContinuation)){k={continuationCommand:{token:D().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var d,z=String(Math.floor(((d=_.ra())==null?void 0:d.getCurrentTime())||0)*1E3);d={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:z}};_.Em(k,{form:{formData:d}});l(!0)}var C=T(),A;(A=_.DY().resolve(_.Vx(_.e2)))==null||A.addEventListener("yt-navigate-start",function(){_.vW.remove(C);l(!1)},
{once:!0})});
var F=function(){var k=y.value.value;y.value.value="";OBv(y.value);var d,z=((d=D())==null?void 0:d.enableGradientColorBg)||!1;d=xKR(T(),k,z);_.Em(d);var C=_.NYf(f()),A;_.Yt(((A=D())==null?void 0:A.onSubmitCommand)||{});C(!0);var O;A=String(Math.floor(((O=_.ra())==null?void 0:O.getCurrentTime())||0)*1E3);var W;O={continuationCommand:{token:(W=D())==null?void 0:W.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};k={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:k,
playerOffsetMs:A}};_.Em(O,{form:{formData:k},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){var I=T();_.Em({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:I}}]}}});C(!1)}}})};
return _.K("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:J},_.K("div",{class:"chatInputViewModelChatInputWrapper"},_.K("form",{class:"chatInputViewModelChatInputForm"},_.K("textarea",{class:"chatInputViewModelChatInput",el:y,"on:keydown":_.jl(function(k){var d=t()||!1;OBv(y.value);d||k.key!=="Enter"||k.shiftKey||(k.preventDefault(),F());return!1}),
"on:keyup":_.jl(function(){Q(y.value.value.length===0);return!1}),
placeholder:function(){var k,d;var z=_.g((d=D())==null?void 0:d.inputFormField,unW);return z==null?void 0:(k=z.contentProperties)==null?void 0:k.placeholderText},
rows:1}),_.K(_.HO,{data:function(){return _.g(V.data().sendButton,_.cW)},
onClick:function(k){k.preventDefault();F();Q(y.value.value.length===0)},
buttonOverrides:function(){return{disabled:H()||t()}}})),_.K(_.Ow,{className:"chatInputViewModelChatDisclaimer",
text:function(){var k;return(k=_.g(V.data().disclaimer,_.iN6))==null?void 0:k.text}})))},"sj"),"yt-chat-input-view-model",{props:{data:_.WX}});var MIX=["engagement-panel-clip-create","engagement-panel-clip-view"],hoJ=0,Hu=function(){var V=_.E.apply(this,arguments)||this;var D;V.headerData=(D=V.data)==null?void 0:D.header;V.darkerPanels=_.c("web_watch_darker_panels");V.matchContentTheme=_.c("web_watch_panel_content_match_theme");V.disableAutoFill=!1;V.isFullscreen=!1;V.isTheaterMode=!1;V.modernPanels=_.c("kevlar_watch_modern_panels");V.liveChatReplyPanel=!1;V.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");V.disableBackdropFilter=
_.c("web_disable_backdrop_filter");V.trackEngagementPanelVisibility=_.c("web_watch_track_engagement_panel_visibility");V.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 V};
_.v(Hu,_.E);_.P=Hu.prototype;
_.P.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(V){var D;return(V==null?void 0:(D=V.webComponentHint)==null?void 0:D.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"}}}};
_.P.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var V;if((V=this.hostElement.parentElement)==null?0:V.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.P.detached=function(){this.updateTheaterDisablement()};
_.P.showPanel=function(){var V=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.dm.addJob(function(){V.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.P.maybeScrollToItemSection=function(V){var D=this,f,n=V==null?void 0:(f=V.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;n&&_.dm.addJob(function(){var t;(t=D.sectionListRendererElement)==null||t.scrollToItemSection(n)},8)};
_.P.hidePanel=function(){var V=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.dm.addJob(function(){V.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.P.updatePanel=function(V,D,f,n){var t=this;if((V=V==null?void 0:V.engagementPanelSectionListRenderer)||n){if(V){n=V.header;var J=V.content,H=V.footer;(V=V.targetId)&&this.set("data.targetId",V);n&&this.set("data.header",n);J&&this.set("data.content",J);H&&this.set("data.footer",H)}else n&&(V=n.content,J=n.secondaryHeaderContent,(n=n.targetId)&&this.set("data.targetId",n),V&&this.set("data.content",V),J&&(this.secondaryHeaderData=J));this.updateChildVisibilityProperties();if(D){var Q;_.c("kevlar_update_panel_focus_scroll_killswitch")||
(Q={preventScroll:!0});this.focus(Q)}_.pO(this,function(){_.PA(t.hostElement,"yt-refit");t.maybeScrollToItemSection(f)})}};
_.P.computeHeaderData=function(){var V,D=(0,_.sB.unsafeClone)((V=this.data)==null?void 0:V.header);if(D){V=new _.L(Object.keys(D)[0]);var f=_.g(D,V),n=_.g(this.secondaryHeaderData,V);n&&_.m7(D,V,Object.assign({},n,f))}return D};
_.P.getReloadContinuation=function(){var V,D,f,n=_.r(((V=this.data)==null?void 0:(D=V.content)==null?void 0:(f=D.sectionListRenderer)==null?void 0:f.continuations)||[]);for(V=n.next();!V.done;V=n.next())if(V=V.value,V.reloadContinuationData)return V.reloadContinuationData.continuation};
_.P.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var V;((V=this.data)==null?0:V.targetId)&&(V=this.contentElement.firstElementChild)&&V.setAttribute("panel-target-id",this.data.targetId)};
_.P.forwardPopupClosedToFlowRootRenderer=function(){var V=_.Pt(this.hostElement).querySelector("ytd-flow-root-renderer");if(V)V.onPopupClosed()};
_.P.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var V;if(!MIX.includes((V=this.theaterDisablementPanelIdentifier)!=null?V:""))if(V=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode,V=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||V,_.c("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||V){var D;this.visibility=(D=this.data)==null?void 0:D.visibility;var f;this.trackEngagementPanelVisibility&&((f=this.data)==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var n,t,J,H;this.contentEmpty=!!(((n=this.data)==null?0:(t=n.content)==null?0:t.structuredDescriptionContentRenderer)&&Object.keys((J=this.data)==null?void 0:(H=J.content)==null?void 0:
H.structuredDescriptionContentRenderer).length===0);(D=_.DY().resolve(_.lM))&&D.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.P.isTheaterModeChanged=function(){_.c("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.isFullscreenChanged=function(){_.c("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.focus=function(V){if(this.header)this.header.focus(V);else{var D;(D=_.Pt(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||D.focus(V)}};
_.P.visibilityChanged=function(){if(!_.c("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var V=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",n=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=n||!this.lastVisibility,J,H,Q=(J=this.data)==null?void 0:(H=J.identifier)==null?void 0:H.tag,
T;if(((T=this.data)==null?0:T.onShowCommands)&&V&&t)_.wN(this.hostElement,this.data.onShowCommands,this.hostElement),Q&&_.Ol().dispatch(_.nA({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Q}}));else{var y;((y=this.data)==null?0:y.onHideCommands)&&D&&f&&(_.wN(this.hostElement,this.data.onHideCommands,this.hostElement),Q&&_.Ol().dispatch(_.nA({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Q}})))}V&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*hoJ++));_.c("kevlar_watch_focus_on_engagement_panels")&&
V&&n&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.P.notifyVisibilityChanged=function(V){var D;_.JR(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,V,(D=this.data)==null?void 0:D.targetId])};
_.P.updateTheaterDisablement=function(){if(!_.c("kevlar_watch_theater_disablement_killswitch")){var V=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&MIX.includes(V)&&!_.c("watch_next_grid_ignore_disallowed_panels")){var D=_.uf(_.Ol().getState()),f=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";V!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():f?(this.originalTheaterState===void 0&&(this.originalTheaterState=D,this.theaterDisablementPanelIdentifier=
V),D&&_.o4(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.P.clearTheaterDisablement=function(){_.o4(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.P.updateChildVisibilityProperties=function(){this.hostElement||_.c("kevlar_panel_property_init_killswitch")||this._enableProperties();var V=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=V);var D,f=(D=this.headerElement)==null?void 0:D.firstElementChild;if(f&&!this.adHeaderImageLockupViewModel){D=V==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";f.collapsed=D;f=_.Pt(f).querySelector("#visibility-button");if(!f)return;(f=f.firstElementChild)&&
f.polymerController.is==="ytd-toggle-button-renderer"&&f.polymerController.data.isToggled!==D&&f.polymerController.set("data.isToggled",D)}var n;if(D=(n=this.contentElement)==null?void 0:n.firstElementChild)if(V&&V!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")D.removeAttribute("panel-content-visible");else{D.setAttribute("panel-content-visible","");var t;(t=D.markDirty)==null||t.call(D)}};
_.P.onYtChangeEngagementPanelVisibilityAction=function(V){var D=this,f,n=(f=this.data)==null?void 0:f.targetId,t,J,H;f=((t=this.data)==null?void 0:(J=t.identifier)==null?void 0:J.tag)||((H=this.data)==null?void 0:H.panelIdentifier);var Q=_.g(V,_.pbl),T;V=n&&(Q==null?void 0:Q.targetId)===n||f&&(Q==null?void 0:(T=Q.panelIdentifier)==null?void 0:T.tag)===f;this.dialog&&V&&(Q==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(n==="engagement-panel-comments-section"?_.o4(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.o4(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",f]));!_.c("kevlar_use_engagement_panel_management_component")&&V&&(n=Q.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!n?_.dm.addJob(function(){D.visibility=Q.visibility},2,this.hideDelayMs):this.visibility=Q.visibility,Q.visibility&&this.notifyVisibilityChanged(Q.visibility))};
_.P.onYtScrollToEngagementPanelCommand=function(V){var D,f=(D=this.data)==null?void 0:D.targetId,n,t,J;D=((n=this.data)==null?void 0:(t=n.identifier)==null?void 0:t.tag)||((J=this.data)==null?void 0:J.panelIdentifier);V=_.g(V,_.t$U);var H;(f&&(V==null?void 0:V.targetId)===f||D&&(V==null?void 0:(H=V.panelIdentifier)==null?void 0:H.tag)===D)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.o4(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.P.attachVEs=function(V){var D,f;(V==null?0:(D=V.content)==null?0:(f=D.productListRenderer)==null?0:f.trackingParams)&&_.lS().graftServerVe(V.content.productListRenderer.trackingParams);var n,t;(V==null?0:(n=V.content)==null?0:(t=n.transcriptRenderer)==null?0:t.trackingParams)&&_.lS().graftServerVe(V.content.transcriptRenderer.trackingParams)};
_.P.onYtUpdateEngagementPanelAction=function(V){var D,f=(D=this.data)==null?void 0:D.targetId;V=_.g(V,CDR);f&&(V==null?void 0:V.targetId)===f&&(this.updatePanel({engagementPanelSectionListRenderer:{header:V==null?void 0:V.header,content:V==null?void 0:V.content}},!1),this.attachVEs(V))};
_.P.onYtShowEngagementPanelScrimAction=function(V){var D,f=(D=this.data)==null?void 0:D.targetId;V=_.g(V,RbX);f&&(V==null?void 0:V.engagementPanelTargetId)===f&&(this.scrimmed=!0)};
_.P.onYtHideEngagementPanelScrimAction=function(V){var D,f=(D=this.data)==null?void 0:D.targetId;V=_.g(V,m$3);f&&(V==null?void 0:V.engagementPanelTargetId)===f&&(this.scrimmed=!1)};
_.P.getIdentifier=function(){var V,D,f;return((V=this.data)==null?void 0:V.panelIdentifier)||((D=this.data)==null?void 0:(f=D.identifier)==null?void 0:f.tag)};
_.P.getSurface=function(){var V,D;return(V=this.data)==null?void 0:(D=V.identifier)==null?void 0:D.surface};
_.IG.Object.defineProperties(Hu.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var V=this.getIdentifier();return V==="engagement-panel-youchat"||V==="PAyouchat"}}});
Hu.prototype.visibilityChanged=Hu.prototype.visibilityChanged;Hu.prototype.isFullscreenChanged=Hu.prototype.isFullscreenChanged;Hu.prototype.isTheaterModeChanged=Hu.prototype.isTheaterModeChanged;Hu.prototype.dataChanged=Hu.prototype.dataChanged;Hu.prototype.forwardPopupClosedToFlowRootRenderer=Hu.prototype.forwardPopupClosedToFlowRootRenderer;Hu.prototype.onYtRendererstamperFinished=Hu.prototype.onYtRendererstamperFinished;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Hu.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Hu.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Hu.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"data",void 0);
_.S([_.q({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.p("design:type",Object)],Hu.prototype,"headerData",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"secondaryHeaderData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"visibility",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"contentEmpty",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"scrimmed",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"dialog",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"dropdown",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"darkerPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"matchContentTheme",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"disableAutoFill",void 0);
_.S([_.q({reflectToAttribute:!0,value:_.c("optimal_reading_width_comments_ep")}),_.p("design:type",Boolean)],Hu.prototype,"optimalReadingWidthComments",void 0);_.S([_.q(),_.p("design:type",Number)],Hu.prototype,"hideDelayMs",void 0);_.S([_.q({selector:_.Ns,reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"isFullscreen",void 0);_.S([_.q({selector:_.uf,reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"isTheaterMode",void 0);
_.S([_.q(),_.p("design:type",Number)],Hu.prototype,"showDelayMs",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.targetId"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hu.prototype,"targetId",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hu.prototype,"webSize",null);_.S([_.q(),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hu.prototype,"hideFooterBorder",null);
_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"isWatch",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"originalTheaterState",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"theaterDisablementPanelIdentifier",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"modernPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"isWatchWhilePanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"shortsPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"liveChatEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hu.prototype,"learningChatEngagementPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"liveChatReplyPanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"enableAnchoredPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Hu.prototype,"disableBackdropFilter",void 0);_.S([_.q(),_.p("design:type",Object)],Hu.prototype,"trackEngagementPanelVisibility",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],Hu.prototype,"headerElement",void 0);_.S([_.Zv("#header > *"),_.p("design:type",HTMLElement)],Hu.prototype,"header",void 0);
_.S([_.Zv("ytd-section-list-renderer"),_.p("design:type",Object)],Hu.prototype,"sectionListRendererElement",void 0);_.S([_.Zv("panel-ad-header-image-lockup-view-model"),_.p("design:type",HTMLElement)],Hu.prototype,"adHeaderImageLockupViewModel",void 0);_.S([_.Zv("#content"),_.p("design:type",HTMLElement)],Hu.prototype,"contentElement",void 0);
_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"onYtRendererstamperFinished",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.S([_.eY("data","isFullscreen","isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"dataChanged",null);
_.S([_.KI("isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"isTheaterModeChanged",null);_.S([_.KI("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"isFullscreenChanged",null);_.S([_.KI("visibility"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hu.prototype,"visibilityChanged",null);
_.S([_.a({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Hu);
_.Y(Hu,"ytd-engagement-panel-section-list-renderer",function(){if(cJB!==void 0)return cJB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return cJB=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var UpB;var wd=function(){var V=_.E.apply(this,arguments)||this;V.lastRenderedPanelIds=new Set;V.visiblePanels=[];V.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return V};
_.v(wd,_.E);_.P=wd.prototype;_.P.dataChanged=function(){if(this.data){for(var V=[],D=_.r(this.data),f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0,t=void 0,J=(n=f)==null?void 0:(t=n.engagementPanelSectionListRenderer)==null?void 0:t.visibility;t=n=void 0;((n=f)==null?0:(t=n.engagementPanelSectionListRenderer)==null?0:t.targetId)&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&V.push(f)}this.visiblePanels=V}else this.visiblePanels=[]};
_.P.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}}};
_.P.withoutVisiblePanelById=function(V){return this.visiblePanels.filter(function(D){var f;return((f=D.engagementPanelSectionListRenderer)==null?void 0:f.targetId)!==V})};
_.P.onYtChangeEngagementPanelVisibilityAction=function(V){var D=this,f=_.g(V,_.pbl);if(this.data&&(f==null?0:f.targetId)&&(f==null?0:f.visibility)){var n,t=(n=this.data.find(function(H){var Q;return((Q=H.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===f.targetId}))==null?void 0:n.engagementPanelSectionListRenderer;
if(t){var J=this.withoutVisiblePanelById(f.targetId);f.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(V=this.data.find(function(H){var Q;return((Q=H.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===f.targetId}))&&(J=[V].concat(_.sz(J)));
this.hideDelayMs&&f.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.length===0?_.dm.addJob(function(){t.visibility=f.visibility;D.visiblePanels=J},10,this.hideDelayMs):(t.visibility=f.visibility,this.visiblePanels=J);
_.JR(this.hostElement,"yt-engagement-panels-visible-changed",[J])}}};
_.P.onRendererstamperFinished=function(){var V=new Set(this.visiblePanels.map(function(D){var f;return(f=D.engagementPanelSectionListRenderer)==null?void 0:f.targetId}));
this.handlePanelVisibilityChange(V,this.lastRenderedPanelIds);this.lastRenderedPanelIds=V};
_.P.handlePanelVisibilityChange=function(V,D){V=V===void 0?new Set:V;D=D===void 0?new Set:D;if(this.data)for(var f=_.r(this.data),n=f.next();!n.done;n=f.next()){n=n.value;var t=void 0,J=void 0,H=(t=n)==null?void 0:(J=t.engagementPanelSectionListRenderer)==null?void 0:J.targetId;if(H&&(t=D.has(H),J=V.has(H),H=void 0,!t&&J?(J=t=void 0,H=(t=n)==null?void 0:(J=t.engagementPanelSectionListRenderer)==null?void 0:J.onShowCommands):t&&!J&&(J=t=void 0,H=(t=n)==null?void 0:(J=t.engagementPanelSectionListRenderer)==
null?void 0:J.onHideCommands),H))for(n=_.r(H),H=n.next();!H.done;H=n.next())this.ytComponentBehavior.resolveCommand(H.value)}};
wd.prototype.onRendererstamperFinished=wd.prototype.onRendererstamperFinished;wd.prototype.dataChanged=wd.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],wd.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],wd.prototype,"lastRenderedPanelIds",void 0);_.S([_.q(),_.p("design:type",Number)],wd.prototype,"hideDelayMs",void 0);_.S([_.q(),_.p("design:type",Array)],wd.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],wd.prototype,"visiblePanels",void 0);_.S([_.q(),_.p("design:type",Boolean)],wd.prototype,"isWatchWhilePanel",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wd.prototype,"dataChanged",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wd.prototype,"onRendererstamperFinished",null);_.S([_.a({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],wd);
_.Y(wd,"ytd-watch-engagement-panels",function(){if(UpB!==void 0)return UpB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return UpB=V},{mode:1});var VF3;var Qs=function(){return _.E.apply(this,arguments)||this};
_.v(Qs,_.E);Qs.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.$x(_.Pt(this.hostElement).querySelector("#text"),_.C3P(_.EFU,this.data.companionLegalText))};
Qs.prototype.computeAutoScrollEnabled=function(V,D){return V&&!D};
Qs.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Qs.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Qs.prototype.expandedChanged=Qs.prototype.expandedChanged;Qs.prototype.dataChanged=Qs.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.OSc),_.p("design:type",Object)],Qs.prototype,"ytdAutoScrollBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Qs.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Qs.prototype,"expanded",void 0);
_.S([_.q({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.p("design:type",Boolean)],Qs.prototype,"autoScrollEnabled",void 0);_.S([_.q(),_.p("design:type",String)],Qs.prototype,"expanderIcon",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qs.prototype,"dataChanged",null);
_.S([_.KI("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qs.prototype,"expandedChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Qs);
_.Y(Qs,"ytd-companion-legal-text-renderer",function(){if(VF3!==void 0)return VF3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VF3=V},{mode:1});var D5W;var TM=function(){var V=_.E.apply(this,arguments)||this;V.buttonUpdate=_.c("web_modern_buttons");V.kevlarWatchGrid=_.c("kevlar_watch_grid");V.centerAlignDescription=_.c("action_companion_center_align_description");V.truncateDomain=_.c("action_companion_truncate_domain");return V};
_.v(TM,_.E);_.P=TM.prototype;_.P.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.P.getOnLayoutVisibleCallback=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.P.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",TM.JSC$20404_DEFAULT_AD_BADGE_RENDERER);var V=this.getOnLayoutVisibleCallback();V&&V()}};
_.P.getButtonRenderer=function(V){return V.actionButton&&_.g(V.actionButton,_.RI)?(delete _.g(V.actionButton,_.RI).navigationEndpoint,_.g(V.actionButton,_.RI)):{}};
_.P.onClick=function(V){var D=this;if((!_.c("web_modern_buttons")||!_.It(_.Os(V),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){V=_.hI();var f=this.getLayoutId();V&&f&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(n){(new _.vG(n)).executeCommand(D.data.navigationEndpoint,f)}):_.c("kevlar_companion_resolve_command_killswitch")?_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.o4(this.hostElement,"yt-companion-ad-clicked",["action-companion",f])}};
_.IG.Object.defineProperties(TM.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?0:(D=V.detailsLine)==null?0:(f=D.adRating)==null?0:f.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 V,D,f,n;return((V=this.data)==null?0:(D=V.detailsLine)==null?0:(f=D.adRating)==null?0:(n=f.ratingIcon)==null?0:n.iconType)?_.Qa(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return((V=this.data)==null?0:(D=V.detailsLine)==null?0:(f=D.texts)==null?0:(n=f[0])==null?0:n.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 V,D;return((V=this.data)==null?0:(D=V.description)==null?0:D.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var V=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return V?V.indexOf("/default_banner")!==-1:!0}}});
TM.prototype.onClick=TM.prototype.onClick;TM.prototype.dataChanged=TM.prototype.dataChanged;TM.JSC$20404_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TM.prototype,"rendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TM.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],TM.prototype,"buttonUpdate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],TM.prototype,"kevlarWatchGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],TM.prototype,"centerAlignDescription",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],TM.prototype,"truncateDomain",void 0);
_.S([_.q({computed:"computeButtonOverride(buttonUpdate)"}),_.p("design:type",Object)],TM.prototype,"buttonOverride",void 0);_.S([_.R("data.detailsLine.adRating.ratingText"),_.p("design:type",Object),_.p("design:paramtypes",[])],TM.prototype,"getRating",null);_.S([_.R("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],TM.prototype,"computeRatingHidden",null);
_.S([_.R("data.detailsLine.adRating.ratingIcon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],TM.prototype,"iconType",null);_.S([_.R("data.detailsLine.texts.0.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],TM.prototype,"getDetailsLine",null);_.S([_.R("getDetailsLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],TM.prototype,"computeDetailsLineHidden",null);
_.S([_.R("data.description.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],TM.prototype,"getDescriptionText",null);_.S([_.R("getDescriptionText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],TM.prototype,"computeDescriptionTextHidden",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],TM.prototype,"interactionLoggingClientData",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],TM.prototype,"hideBanner",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TM.prototype,"dataChanged",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],TM.prototype,"onClick",null);_.S([_.a({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],TM);
_.Y(TM,"ytd-action-companion-ad-renderer",function(){if(D5W!==void 0)return D5W;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return D5W=V},{mode:_.J2("kevlar_poly_si_batch_j067")?1:2});var fcw;var nzJ;var bP=function(){var V=_.E.apply(this,arguments)||this;V.buttonUpdate=_.c("web_modern_buttons");V.hideLegacyBanner=_.c("enable_dsa_one_click_ata_translators_infeed_elements");V.adInfoButtonStyle="mono";V.adInfoButtonType="text";V.noDotAdBadge=!0;return V};
_.v(bP,_.E);_.P=bP.prototype;_.P.getOnLayoutVisibleCallback=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.P.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 V=this.data.image.thumbnail.thumbnails[0];this.imageSrc=V.url?_.cS(V.url):void 0;this.imageWidth=V.width||0;this.imageHeight=V.height||0}this.data.clickthroughEndpoint&&_.g(this.data.clickthroughEndpoint,_.a2)&&(V=_.g(this.data.clickthroughEndpoint,_.a2).url,_.c("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
V||"":V?(V=_.cS(V),this.clickThroughUrl=_.y2(V)):this.clickThroughUrl=void 0);(V=this.getOnLayoutVisibleCallback())&&V()}};
_.P.onClick=function(V){_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(V)};
_.P.handleClick=function(){var V=this;this.data&&this.data.clickthroughEndpoint&&(_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(D){V.macroReplacementBehavior.sendServiceRequestAction([D])}),_.o4(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.P.onLoad=function(){_.JR(this.hostElement,"yt-refit-popups-action")};
_.IG.Object.defineProperties(bP.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}}});
bP.prototype.onLoad=bP.prototype.onLoad;bP.prototype.onClick=bP.prototype.onClick;bP.prototype.dataChanged=bP.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bP.prototype,"rendererBehavior",void 0);_.S([_.u(dff.YtMacroReplacementBehavior),_.p("design:type",Object)],bP.prototype,"macroReplacementBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bP.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bP.prototype,"buttonUpdate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bP.prototype,"hideLegacyBanner",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bP.prototype,"adInfoButtonStyle",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bP.prototype,"adInfoButtonType",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bP.prototype,"macros",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bP.prototype,"interactionLoggingClientData",null);_.S([_.q(),_.p("design:type",String)],bP.prototype,"clickThroughUrl",void 0);_.S([_.q(),_.p("design:type",_.T6)],bP.prototype,"imageSrc",void 0);_.S([_.q(),_.p("design:type",Number)],bP.prototype,"imageWidth",void 0);_.S([_.q(),_.p("design:type",Number)],bP.prototype,"imageHeight",void 0);_.S([_.q(),_.p("design:type",Object)],bP.prototype,"noDotAdBadge",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bP.prototype,"dataChanged",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bP.prototype,"onClick",null);_.S([_.bU("load"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bP.prototype,"onLoad",null);_.S([_.a({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bP);
_.Y(bP,"ytd-image-companion-renderer",function(){if(nzJ!==void 0)return nzJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return nzJ=V},{mode:_.J2("kevlar_poly_si_batch_j067")?1:2});var tFX;var KU=function(){return _.E.apply(this,arguments)||this};
_.v(KU,_.E);_.P=KU.prototype;_.P.dataChanged=function(){this.set("data.adBadge",KU.JSC$20413_DEFAULT_AD_BADGE_RENDERER);if(this.data){var V=this.getOnLayoutVisibleCallback();V&&V()}};
_.P.getOnLayoutVisibleCallback=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.P.onCompanionClicked=function(V){this.data&&(V.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.o4(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.P.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var V=_.hI(),D=this.getLayoutId(),f=this.data.clickToAdvSiteEndpoint;V&&D&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(n){(new _.vG(n)).executeCommand(f,D)}):_.PA(this.hostElement,"yt-navigate",{endpoint:f})}};
_.P.sendTrackingPings=function(V){if(V&&V.length!==0&&V[0].loggingUrls&&(V=V[0].loggingUrls.map(this.getBaseUrl)))for(var D=0;D<V.length;D++)_.Ye(V[D])};
_.P.getBaseUrl=function(V){return V.baseUrl||""};
_.IG.Object.defineProperties(KU.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.Yw("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}}});
KU.prototype.onCompanionClicked=KU.prototype.onCompanionClicked;KU.prototype.dataChanged=KU.prototype.dataChanged;KU.JSC$20413_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KU.prototype,"data",void 0);_.S([_.Zv("#title"),_.p("design:type",HTMLElement)],KU.prototype,"shopTitle",void 0);
_.S([_.eY("data.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KU.prototype,"dataChanged",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],KU.prototype,"interactionLoggingClientData",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],KU.prototype,"onCompanionClicked",null);
_.S([_.a({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],KU);
_.Y(KU,"ytd-shopping-companion-renderer",function(){if(tFX!==void 0)return tFX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return tFX=V},{mode:1});_.fT(_.MA(function(V){var D=V.data;var f=_.W2("banner-image-layout-view-model");_.SK(f,function(){return D().interaction},Mio);
_.hk(f,{visibilityCallback:function(n){var t,J=(t=D().interaction)==null?void 0:t.onFirstVisible;n&&J&&_.Yt(J)},
showOption:_.I1});_.mK(function(){var n,t;t=(t=_.Yw("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(n=t)==null||n()});
return _.K("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.jl(function(){_.JR(f.value,"yt-refit-popups-action")}),
el:f,"aria-label":function(){var n,t;return(n=D().interaction)==null?void 0:(t=n.accessibility)==null?void 0:t.label}},_.K("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.K(_.b9,{data:n.data,
targetHeight:80,customCommandResolver:Mio})}})),_.K("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.K("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.K(_.BW,{data:function(){return D().adBadge}},{adBadgeViewModel:function(n){return _.K(_.DS,{data:n.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.K("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:_.HO}))))},"tj"),"banner-image-layout-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;V=_.W2("top-banner-image-text-icon-buttoned-layout-view-model");_.SK(V,function(){return D().interaction},hp3);
_.hk(V,{visibilityCallback:function(f){var n,t=(n=D().interaction)==null?void 0:n.onFirstVisible;f&&t&&_.Yt(t)},
showOption:_.I1});_.mK(function(){var f,n;n=(n=_.Yw("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.onLayoutVisibleCallback:null;(f=n)==null||f()});
return _.K("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:V},_.K("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.K(_.BW,{data:function(){return D().adImage}},{adImageViewModel:function(f){return _.K(_.b9,{data:f.data,
targetHeight:80,customCommandResolver:hp3})}})),_.K("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.K("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.K(_.BW,{data:function(){return D().adAvatarLockup}},{adAvatarLockupViewModel:function(f){return _.K(xpc,{data:f.data,
customCommandResolver:hp3})}})),_.K(_.BW,{data:function(){return D().adButton}},{adButtonViewModel:function(f){return _.K(_.xd,{data:f.data,
customCommandResolver:hp3})}}),_.K("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.K(_.BW,{data:function(){return D().menu}},{buttonViewModel:_.HO}))))},"uj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.WX}});var PlJ={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"},ys=function(){var V=_.E.apply(this,arguments)||this;V.updateCompanionDataJobId=0;V.contentVideoId=null;V.player=null;V.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return V};
_.v(ys,_.E);_.P=ys.prototype;_.P.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:PlJ}}};
_.P.attached=function(){var V=this,D=_.hI();D&&D.getPlayerPromise().then(function(f){V.getCachedDataAndListen(f)})};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.P.updateRendererStamper=function(){var V={};if(this.data)for(var D in PlJ)if(this.data[D]){V[D]=this.data[D];break}if(this.oneofRenderer!=void 0||Object.keys(V).length)this.oneofRenderer=V};
_.P.getCachedDataAndListen=function(V){var D=this.retrieveCachedCompanionData();D&&Object.keys(D).length&&this.receiveCompanionData(D);this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=V};
_.P.retrieveCachedCompanionData=function(){return _.fx.yt&&_.fx.yt.www&&_.fx.yt.www.ads&&_.fx.yt.www.ads.eventcache&&_.fx.yt.www.ads.eventcache.getLastCompanionData?_.fx.yt.www.ads.eventcache.getLastCompanionData():null};
_.P.receiveCompanionData=function(V){V&&Object.keys(V).length?(this.contentVideoId=V.contentVideoId,this.setCompanionData(V)):this.setCompanionData(V)};
_.P.setCompanionData=function(V){this.cancelPendingCompanionAdJobs();if(V){this.updateCompanionDataJobId=0;for(var D in PlJ)PlJ.hasOwnProperty(D)&&(this.data[D]=void 0);V.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",V.shoppingCompanionCarouselRenderer):V.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",V.imageCompanionAdRenderer):V.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",V.actionCompanionAdRenderer),_.JR(this.hostElement,
"yt-hide-unlimited-offer-module"),_.JR(this.hostElement,"yt-hide-tvfilm-offer-module")):V.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",V.bannerImageLayoutViewModel):V.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",V.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.P.dataChanged=function(){var V=this,D=_.hI();D?D.getPlayerPromise().then(function(f){V.contentVideoId&&f.getVideoUrl().includes("v="+V.contentVideoId)||(V.cancelPendingCompanionAdJobs(),V.updateRendererStamper())}):_.$w(Error("om"))};
_.P.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.dm.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.P.handleCompanionAdClicked=function(V,D){this.player.onAdUxClicked(V,D);this.player.pauseVideo()};
ys.prototype.dataChanged=ys.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ys.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],ys.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ys.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],ys.prototype,"oneofRenderer",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ys.prototype,"dataChanged",null);_.S([_.a({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],ys);
_.Y(ys,"ytd-companion-slot-renderer",function(){if(fcw!==void 0)return fcw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return fcw=V},{mode:_.J2("kevlar_poly_si_batch_j067")?
1:2});var ozv;var ZM=function(){return _.E.apply(this,arguments)||this};
_.v(ZM,_.E);ZM.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
ZM.prototype.dataChanged=ZM.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],ZM.prototype,"companionSlotData",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZM.prototype,"dataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],ZM);
_.Y(ZM,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(ozv!==void 0)return ozv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ozv=V},{mode:1});var JX3;var jp=function(){var V=_.E.apply(this,arguments)||this;V.skinnyMode=!1;V.COMPACT_EVENT_COUNT=4;V.onShelfToggleButtonTap=function(){V.logTap(V.data);V.showingMore=!V.showingMore};
V.onShelfToggleButtonFocus=function(){V.showingMore||(V.logTap(V.data),V.showingMore=!0,_.pO(V,function(){var D=V.COMPACT_EVENT_COUNT-1,f;(f=_.Pt(V.hostElement).querySelector("#event-"+D))==null||f.focus()}))};
return V};
_.v(jp,_.E);_.P=jp.prototype;_.P.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.P.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.P.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Ty(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Ty(this.infoTooltip,this.infoTooltip.hide))};
_.P.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Ty(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Ty(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Ty(this.infoTooltip,this.infoTooltip.hide))};
_.P.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)};
_.P.onShowingMoreChanged=function(){var V;this.showingMoreChanged((V=this.showingMore)!=null?V:!1)};
_.P.showingMoreChanged=function(V){var D=this.get("data.events")||[];this.set("restEvents",D.slice(1,V?D.length:this.COMPACT_EVENT_COUNT).map(function(f){return f.ticketEventRenderer}));
D.slice(0,V?D.length:this.COMPACT_EVENT_COUNT).forEach(function(f){var n=_.Ni();f=f.ticketEventRenderer.trackingParams;_.u8()&&n&&f&&(f=_.gs(f),n&&_.iC(n,f))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.P.computeAriaLabel=function(V){return V.subtitle1+", "+V.subtitle2};
_.P.logTap=function(V){_.u8()&&this.ytRendererBehavior.logExplicitClick(V)};
_.P.isKeyboardAction=function(V){return this.get("detail.x",V)===0&&this.get("detail.y",V)===0};
_.P.onFirstEventTap=function(V){V.target&&this.handleTap(V.target,this.firstEvent,this.isKeyboardAction(V))};
_.P.onTicketLinkTap=function(V){V.target&&this.handleTap(V.target,V.model.item,this.isKeyboardAction(V))};
_.P.handleTap=function(V,D,f){if(D.buttonCommand)if(D.hasMultipleOffers)Object.assign(_.g(D.buttonCommand,_.Fb),{properties:{source:f?"keyboard":"tap"}}),this.logTap(D),this.popupPositionTarget=V,_.wN(this.hostElement,[D.buttonCommand],this.hostElement);else{var n;if((n=_.g(D.buttonCommand,_.a2))==null?0:n.url)this.logTap(D),_.R3(window,_.g(D.buttonCommand,_.a2).url)}};
jp.prototype.onShowingMoreChanged=jp.prototype.onShowingMoreChanged;jp.prototype.dataChanged=jp.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jp.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],jp.prototype,"firstEvent",void 0);_.S([_.q(),_.p("design:type",Object)],jp.prototype,"restEvents",void 0);_.S([_.q(),_.p("design:type",String)],jp.prototype,"imageUrl",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jp.prototype,"showingMore",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],jp.prototype,"canShowMore",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],jp.prototype,"skinnyMode",void 0);_.S([_.q(),_.p("design:type",HTMLElement)],jp.prototype,"popupPositionTarget",void 0);_.S([_.Zv("#banner-info-tooltip"),_.p("design:type",Object)],jp.prototype,"infoTooltip",void 0);
_.S([_.Zv("#info-container"),_.p("design:type",HTMLElement)],jp.prototype,"infoContainer",void 0);_.S([_.Zv("#shelf-toggler"),_.p("design:type",HTMLElement)],jp.prototype,"shelfToggleButton",void 0);_.S([_.Zv("#separator"),_.p("design:type",HTMLDivElement)],jp.prototype,"separator",void 0);_.S([_.q(),_.p("design:type",String)],jp.prototype,"shelfTogglerLabelText",void 0);_.S([_.q(),_.p("design:type",String)],jp.prototype,"shelfTogglerIcon",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jp.prototype,"dataChanged",null);_.S([_.eY("showingMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jp.prototype,"onShowingMoreChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],jp);
_.Y(jp,"ytd-ticket-shelf-renderer",function(){if(JX3!==void 0)return JX3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return JX3=V},{mode:1});var rXq;var H70;var lP=function(){return _.E.apply(this,arguments)||this};
_.v(lP,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lP.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],lP);
_.Y(lP,"ytd-comments-entry-point-message-renderer",function(){if(H70!==void 0)return H70;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return H70=V},{mode:1});var wUv;var GM=function(){return _.E.apply(this,arguments)||this};
_.v(GM,_.E);_.IG.Object.defineProperties(GM.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.teaserAvatar)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GM.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],GM.prototype,"hasAvatar",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],GM);
_.Y(GM,"ytd-comments-entry-point-teaser-renderer",function(){if(wUv!==void 0)return wUv;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return wUv=V},{mode:1});var Qhc;var ep=function(){return _.E.apply(this,arguments)||this};
_.v(ep,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ep.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],ep);
_.Y(ep,"ytd-comments-simplebox-renderer",function(){if(Qhc!==void 0)return Qhc;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Qhc=V},{mode:1});var cu=function(){var V=_.E.apply(this,arguments)||this;V.fullHeight=!_.c("comment_teaser_full_height_kill_switch")&&_.c("kevlar_watch_grid");return V};
_.v(cu,_.E);cu.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"}}}};
cu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
cu.prototype.onTap=function(){var V=this.tapCommand;V&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(V))};
cu.prototype.onKeyUp=function(V){if(V.keyCode===13)this.onTap()};
_.IG.Object.defineProperties(cu.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.onTap)return this.data.onTap;var D,f;if(((D=this.data)==null?0:D.teaserContent)||((f=this.data)==null?0:f.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)!=null&&V.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
cu.prototype.onKeyUp=cu.prototype.onKeyUp;cu.prototype.onTap=cu.prototype.onTap;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cu.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],cu.prototype,"fullHeight",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"tapCommand",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"simpleboxPlaceholder",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cu.prototype,"hasSimpleboxPlaceholder",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"simpleboxAvatar",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"teaserContent",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cu.prototype,"hasTeaserContent",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"teaserAvatar",null);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cu.prototype,"hasTeaserAvatar",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"messageText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cu.prototype,"contentRenderer",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cu.prototype,"hasContents",null);
_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cu.prototype,"hasContentRenderer",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cu.prototype,"onTap",null);_.S([_.bU("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[_.bG]),_.p("design:returntype")],cu.prototype,"onKeyUp",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],cu);
_.Y(cu,"ytd-comments-entry-point-header-renderer",function(){if(rXq!==void 0)return rXq;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return rXq=V},{mode:1});var Tyc;_.c("web_enable_sink_animated_rolling_character_and_number")?_.fT(_.IEl,"yt-animated-rolling-number",{props:{numberText:_.WX,numberValue:_.WX,heightPx:_.WX,fontSizeMultiplier:_.WX,shouldAnimate:_.WX,forceRollUp:_.WX}}):_.wk(_.vIL,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var b7o=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),K_f={numberText:"",heightPx:2*b7o,shouldAnimate:!1},Fq=function(){var V=_.E.apply(this,arguments)||this;V.usingAnimatedComponents=!0;V.wasDetailed=!1;V.JSC$20450_browserSupportsAnimation=_.c("web_supports_animations_api");V.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};V.detailed=!1;V.shouldAnimate=!1;V.viewCountProps=K_f;V.dateTextProps=
K_f;V.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");return V};
_.v(Fq,_.E);_.P=Fq.prototype;_.P.resetAnimationState=function(){this.shouldAnimate=!1};
_.P.updateDynamicMetadata=function(){if(this.JSC$20450_browserSupportsAnimation){if(!this.detailed){var V,D,f,n;var t=(V=this.videoPrimaryInfoRenderer)==null?void 0:(D=V.viewCount)==null?void 0:(f=D.videoViewCountRenderer)==null?void 0:(n=f.extraShortViewCount)==null?void 0:n.simpleText;var J,H,Q,T;var y=(J=this.videoPrimaryInfoRenderer)==null?void 0:(H=J.viewCount)==null?void 0:(Q=H.videoViewCountRenderer)==null?void 0:(T=Q.shortViewCount)==null?void 0:T.simpleText}if(!y){var Z,l,G,F;t=(Z=this.videoPrimaryInfoRenderer)==
null?void 0:(l=Z.viewCount)==null?void 0:(G=l.videoViewCountRenderer)==null?void 0:(F=G.unlabeledViewCountValue)==null?void 0:F.simpleText;var k,d,z,C;y=(k=this.videoPrimaryInfoRenderer)==null?void 0:(d=k.viewCount)==null?void 0:(z=d.videoViewCountRenderer)==null?void 0:(C=z.viewCount)==null?void 0:C.simpleText}var A,O,W;V=Number((A=this.videoPrimaryInfoRenderer)==null?void 0:(O=A.viewCount)==null?void 0:(W=O.videoViewCountRenderer)==null?void 0:W.originalViewCount);var I,x;A=(I=this.videoPrimaryInfoRenderer)==
null?void 0:(x=I.relativeDateText)==null?void 0:x.simpleText;var oY;I=!((oY=this.videoPrimaryInfoRenderer)==null||!oY.relativeDateText);if(t&&y&&V&&(A||!I)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;oY=y.split(new RegExp("("+t+")"));t=tx0(oY[0]);var wZ;y={numberText:(wZ=oY[1])!=null?wZ:"",numberValue:V,heightPx:2*b7o,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var ZZ;wZ=((ZZ=oY[2])!=null?ZZ:"")+"  ";this.setViewCount(y,t,tx0(wZ));
if(!this.detailed&&I){t=A.split(/(\d+)/);ZZ=tx0(t[0]);var sd;wZ={numberText:(sd=t[1])!=null?sd:"",heightPx:2*b7o,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var NU;sd=((NU=t[2])!=null?NU:"")+"  ";this.setDateText(wZ,ZZ,tx0(sd))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.P.setViewCount=function(V,D,f){_.LA(D)!==_.LA(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=D);this.viewCountProps.numberText!==(V==null?void 0:V.numberText)&&(this.viewCountProps=V||K_f);_.LA(f)!==_.LA(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=f)};
_.P.setDateText=function(V,D,f){_.LA(D)!==_.LA(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=D);this.dateTextProps.numberText!==(V==null?void 0:V.numberText)&&(this.dateTextProps=V||K_f);_.LA(f)!==_.LA(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=f)};
_.P.onYtUpdateViewershipAction=function(V){this.videoPrimaryInfoRenderer&&(_.g(V,Jjf).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.g(V,Jjf).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.g(V,Jjf).viewCount)))};
_.P.onYtUpdateDateTextAction=function(V){if(this.videoPrimaryInfoRenderer){V=_.g(V,_.Px3).dateText;this.shouldAnimate=!0;var D;((D=this.videoPrimaryInfoRenderer)==null?0:D.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",V):this.set("videoPrimaryInfoRenderer.dateText",V)}};
_.IG.Object.defineProperties(Fq.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return nQc(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.LA(nQc(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.LA(this.viewCountPreNumberText),this.viewCountProps.numberText,_.LA(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.LA(this.dateTextPreNumberText),this.dateTextProps.numberText,_.LA(this.dateTextPostNumberText)].join("")}}});
Fq.prototype.updateDynamicMetadata=Fq.prototype.updateDynamicMetadata;Fq.prototype.resetAnimationState=Fq.prototype.resetAnimationState;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Fq.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Fq.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Fq.prototype,"videoPrimaryInfoRenderer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"detailed",void 0);_.S([_.q(),_.p("design:type",Object)],Fq.prototype,"shouldAnimate",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"viewCountPreNumberText",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"viewCountProps",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"viewCountPostNumberText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"dateTextPreNumberText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"dateTextProps",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"dateTextPostNumberText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Fq.prototype,"metadataBadgesInDescription",void 0);_.S([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.p("design:type",Object),_.p("design:paramtypes",[])],Fq.prototype,"infoText",null);
_.S([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.p("design:type",String),_.p("design:paramtypes",[])],Fq.prototype,"descriptionInfoTooltipText",null);_.S([_.R("detailed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Fq.prototype,"showDescriptionInfoTooltip",null);
_.S([_.R("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],Fq.prototype,"animatedViewCountAccessibilityLabel",null);_.S([_.R("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],Fq.prototype,"animatedDateTextAccessibilityLabel",null);
_.S([_.KI("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fq.prototype,"resetAnimationState",null);_.S([_.KI("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fq.prototype,"updateDynamicMetadata",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Fq);
_.Y(Fq,"ytd-watch-info-text",function(){if(Tyc!==void 0)return Tyc;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Tyc=V},{mode:1});var yXv;var Z7W=_.MA(function(V){var D=V.data;var f=V.setTapCommand;_.BJ(function(){var n=_.Xo(D().onTap);f(n)},"X4onJd");
return _.K("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.K(_.BW,{data:function(){return D().avatar}},{avatarViewModel:_.vd}),_.K("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.K("span",null,function(){return D().simpleboxText})))},"vj");var jhv=_.MA(function(V){return _.K("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.K(_.e,{cond:function(){return _.g(V.data().avatar,_.AY)},
then:function(D){return _.K(_.vd,{data:D,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.K("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.K(_.Ow,{text:function(){return V.data().teaserText}})))},"wj");var lcR=_.MA(function(V){var D=V.data;var f=V.setTapCommand;_.BJ(function(){var n=_.Xo(D().onTap);f(n)},"PmAol");
return _.K("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.K(_.BW,{data:function(){return D().teasers}},{commentsEntryPointTeaserViewModel:jhv}))},"xj");var GEf=_.MA(function(V){var D=V.data;var f=V.setTapCommand;_.BJ(function(){var n=_.Xo(D().onTap);f(n)},"Nh3Hjd");
return _.K("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.K(_.Ow,{text:function(){return D().messageText}}))},"yj");var e3R=_.MA(function(V){var D=V.data;var f=V.setTapCommand;var n=V.isDisabled;_.BJ(function(){var t=(n==null?0:n())?void 0:_.Xo(D().onTap);f(t)},"omeiWe");
return _.K("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.K(_.cj,{icon:function(){return D().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.K(_.e,{cond:function(){return D().image},
then:function(t){return _.K(_.xt,{data:t,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.K(_.Ow,{text:function(){return D().text},
className:function(){return D().image||D().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.K(_.BW,{data:function(){return D().button}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:n==null?void 0:n()}}})}}))},"zj");var cXq=_.MA(function(V){var D=V.data;var f=V.itemIndex;var n=V.selectedIndex;var t=V.indexUpdatedCallback;var J=V.observer;V=V.title;var H=_.W2("yt-carousel-item-view-model",function(l){_.c("web_metadata_carousel_elref_bugfix")&&J&&J().observe(l)}),Q=function(l){f()===n()&&t(l)},T=_.CT(CwW),y=_.CT(qVB),Z=function(){var l,G,F;
return((l=D())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!T()||((G=D())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&y().includes("PAposts_by_host")||((F=D())==null?void 0:F.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&y().includes("PAyouchat")};
_.Nl(function(){_.c("web_metadata_carousel_elref_bugfix")||J&&J().observe(H.value)});
return _.K("yt-carousel-item-view-model",{el:H,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":V},_.K(_.BW,{data:function(){var l,G;return(G=(l=_.g(D().carouselItem,d$3))==null?void 0:l.textCarousel)!=null?G:D().carouselItem}},{textCarouselItemViewModel:function(l){return _.K(e3R,{data:l.data,
setTapCommand:Q,isDisabled:Z})},
commentTeaserCarouselItemViewModel:function(l){return _.K(lcR,{data:l.data,setTapCommand:Q})},
commentInputBoxCarouselItemViewModel:function(l){return _.K(Z7W,{data:l.data,setTapCommand:Q})},
commentsEntryPointMessageViewModel:function(l){return _.K(GEf,{data:l.data,setTapCommand:Q})}}))},"Aj");var F_W=_.MA(function(V){var D=V.numDots;var f=V.activeIndex;return _.K("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.K(_.FB,{each:function(){return Array.from({length:D()})},
keyBy:"INDEX"},function(n,t){return _.K("div",{class:function(){var J={};return _.y6("ytCarouselDotsShapeDot",(J.ytCarouselDotsShapeDotActive=t===f(),J))}})}))},"Bj");var gzv=_.MA(function(V){var D=V.data;var f=V.handleCarouselNavigation;var n=V.numItems;var t=V.selectedIndex;var J=function(){return{disabled:t()===0}},H=function(){return{disabled:t()===n()-1}};
return _.K("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.K("div",null,_.K("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return D().title}),_.K(_.e,{cond:function(){return D().subtitle},
then:function(Q){return _.K("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return D().subtitleAccessibilityText}},Q)}})),_.K(_.e,{cond:function(){return n()>1},
then:function(){return _.K("div",{class:"ytCarouselTitleViewModelNavigation"},_.K(F_W,{numDots:n,activeIndex:t}),_.K(_.e,{cond:function(){return D().previousButton},
then:function(Q){return _.K(_.BW,{data:Q},{buttonViewModel:function(T){return _.K(_.HO,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(-1)},
buttonOverrides:J})}})}}),_.K(_.e,{cond:function(){return D().nextButton},
then:function(Q){return _.K(_.BW,{data:Q},{buttonViewModel:function(T){return _.K(_.HO,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(1)},
buttonOverrides:H})}})}}))}}))},"Cj");_.fT(_.MA(function(V){var D=V.data;var f,n=_.W2("yt-video-metadata-carousel-view-model"),t=_.W2("div",function(I){if(_.c("web_metadata_carousel_elref_bugfix")){var x=function(){var oY=I.offsetWidth*d(),wZ=24*(d()-1);G(oY+wZ)};
x();window.ResizeObserver&&(f=new ResizeObserver(x),f.observe(I))}}),J=_.XB("HTML_DIR")==="rtl",H=!1,Q=0,T=0;
V=_.r(_.HJ(0,void 0,"f4aYxe"));var y=V.next().value,Z=V.next().value;V=_.r(_.HJ(0,void 0,"kU9O9"));var l=V.next().value,G=V.next().value;V=_.r(_.HJ(!1,void 0,"GqphDd"));var F=V.next().value,k=V.next().value,d=function(){var I,x,oY;return(oY=(I=D())==null?void 0:(x=I.carouselTitles)==null?void 0:x.length)!=null?oY:0},z=function(){t.value&&t.value.scrollLeft!==Q&&Z((J?t.value.scrollLeft<Q:t.value.scrollLeft>Q)?Math.min(y()+1,d()-1):Math.max(y()-1,0))},C;
window.IntersectionObserver&&(C=new IntersectionObserver(function(I){I=_.r(I);for(var x=I.next();!x.done;x=I.next())if(x.value.isIntersecting){if(H){H=!1;break}z()}else Z(T)},{threshold:.2}));
_.BJ(function(){if(t.value){var I=(J?-1:1)*(l()/d()+12)*(F()&&C?T:y());typeof t.value.scrollTo==="function"?t.value.scrollTo({left:I,behavior:"smooth"}):t.value.scrollLeft=I;Q=I;T=F()&&C?T:y()}},"ZP1VMb");
var A,O=function(I){A=I};
_.Nl(function(){if(!_.c("web_metadata_carousel_elref_bugfix")){var I=function(){var oY=t.value.offsetWidth*d(),wZ=24*(d()-1);G(oY+wZ)};
I();if(window.ResizeObserver){var x=new ResizeObserver(I);x.observe(t.value);_.dc(function(){x.disconnect();C&&C.disconnect()})}}});
_.dc(function(){if(_.c("web_metadata_carousel_elref_bugfix")){var I;(I=f)==null||I.disconnect();var x;(x=C)==null||x.disconnect()}});
var W=function(I){I=y()+I;I>=0&&I<d()&&(H=!0,Z(I))};
return _.K("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:n,"on:click":_.jl(function(I){if(_.CX(_.R7(I),n.value,["BUTTON".toString()])||!A)return!1;_.DY().resolve(_.fH).resolveCommand(A,{forceClickLogging:!0});return!1}),
"on:touchstart":_.jl(function(){k(!0);return!1}),
"on:touchend":_.jl(function(){C||z();k(!1);return!1}),
hidden:function(){var I,x;return!((I=D())==null?0:(x=I.carouselItems)==null?0:x.length)}},_.K("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.K(_.e,{cond:function(){return D().carouselTitles},
then:function(I){return _.K(_.BW,{data:function(){return I()[F()&&C?T:y()]}},{carouselTitleViewModel:function(x){return _.K(gzv,{data:x.data,
handleCarouselNavigation:W,numItems:d,selectedIndex:y})}})}})),_.K("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:t},_.K("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+l()+"px;"}},_.K(_.e,{cond:function(){return D().carouselItems},
then:function(I){return _.K(_.FB,{each:I},function(x,oY){return _.K(_.BW,{data:function(){return x}},{carouselItemViewModel:function(wZ){return _.K(cXq,{data:wZ.data,
itemIndex:oY,selectedIndex:y,indexUpdatedCallback:O,observer:C,title:function(){a:{var ZZ=oY();var sd,NU=(sd=D())==null?void 0:sd.carouselTitles;if(NU&&(ZZ=NU[ZZ])){var Bn;ZZ=(Bn=_.g(ZZ,B8o))==null?void 0:Bn.title;break a}ZZ=void 0}return ZZ}})}})})}}))))},"Dj"),"yt-video-metadata-carousel-view-model",{props:{data:_.WX}});var vzX=_.c("web_action_buttons_update_owner_width")?32:12,gd=function(){var V=_.E.apply(this,arguments)||this;V.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");V.descriptionCollapsed=!0;V.useFadedScrimDescription=_.c("kevlar_enable_faded_scrim_on_description");V.skinnyMode=!1;V.playlist=!1;V.isDark=document.documentElement.hasAttribute("dark");V.disableVideoOwnerOnTap=_.c("swatchie_video_owner_on_tap_ks");V.swatcherooDelayLoad=_.c("swatcheroo_enable_ghost_cards");V.primaryMenuWidth=
0;V.videoId="";V.titleHeadlineXs=_.c("web_watch_typography_title_headline_xs");V.titleHeadlineS=_.c("web_watch_typography_title_headline_s");V.titleHeadlineM=_.c("web_watch_typography_title_headline_m");V.titleHashtagBlackLinkified=_.c("web_title_hashtag_black_linkified");V.titleHashtagGreyLinkified=_.c("web_title_hashtag_grey_linkified");V.actionButtonsUpdateOwnerWidth=_.c("web_action_buttons_update_owner_width");V.shouldForceIconOnly=!1;V.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};V.isFullscreen=!1;V.isTheaterMode=!1;return V};
_.v(gd,_.E);_.P=gd.prototype;_.P.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.P.updateOwnerAndDescriptionPosition=function(){_.c("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.CV(this.bottomRowElement,this.ownerElement)):(_.CV(this.bottomRowElement,this.descriptionElement),_.CV(this.topRowElement,this.ownerElement)))};
_.P.titleOnTap=function(V){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||this.handleExpandDescriptionCommands()}};
_.P.videoOwnerOnTap=function(V){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.P.detached=function(){var V=this,D;return _.w(function(f){(D=V.resizeObserver)==null||D.disconnect();_.yz(f)})};
_.P.maybeAttachResizeObserver=function(){var V=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.I7(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){V.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.P.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var V=this.hostElement.clientWidth,D=Math.max(this.largerItemWrap?400:350,V/2-vzX);if(_.c("web_action_buttons_update_owner_width")){var f;D=(((f=document.getElementById("owner"))==null?void 0:f.clientWidth)||0)+vzX}this.actionsOnSeparateLine=this.primaryMenuWidth>V-D?!0:!1}};
_.P.stripAttributedDescription=function(V){return{content:V.content.replace(/[\r\n]{2,}/g,"\n")}};
_.P.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("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:_.c("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"}}}};
_.P.videoPrimaryInfoRendererChanged=function(){var V;if((V=this.videoPrimaryInfoRenderer)==null?0:V.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.P.videoSecondaryInfoRendererChanged=function(){var V,D;(D=(V=this.descriptionInlineExpander).collapse)==null||D.call(V);this.descriptionExpandClientVe=_.Bj(110509);this.descriptionCollapseClientVe=_.Bj(110510);V=_.Ni();D=_.u8();V&&D&&(_.c("combine_ve_grafts")?(_.oj(_.lS(),this.descriptionExpandClientVe,D),_.oj(_.lS(),this.descriptionCollapseClientVe,D)):_.$8(V,D,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.P.structuredDescriptionContentRendererChanged=function(){_.c("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.P.updateTopLevelIconsOnly=function(){var V=this;_.c("top_level_update_killswitch")||this.menu&&_.dm.addLowPriorityJob(function(){V.menu.topLevelIconsOnly=V.skinnyMode},_.tU("swathceroo_delay_flexible_menu_update",100))};
_.P.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.c("web_action_buttons_minimize_subscribe")};
_.P.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.P.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.P.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.P.onYtTextInlineExpanderExpandedChanged=function(){if(!_.c("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var V,D;(D=(V=this.structuredDescriptionContentRendererElement).resize)==null||D.call(V)}};
_.P.onRenderStamperFinished=function(V){(V==null?void 0:V.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.P.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.P.onYtExpanderLessTapped=function(){var V,D=(V=this.videoSecondaryInfoRenderer)==null?void 0:V.showLessCommand;D&&this.ytComponentBehavior.resolveCommand(D)};
_.P.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.P.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.P.onDescriptionClick=function(V){if(!_.It(_.Os(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.c("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.P.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.P.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.P.logCollapseClick=function(){var V=_.Ni();V&&this.descriptionCollapseClientVe&&_.p6(V,this.descriptionCollapseClientVe)};
_.P.logExpandClick=function(){var V=_.Ni();V&&this.descriptionExpandClientVe&&_.p6(V,this.descriptionExpandClientVe)};
_.P.collapseDescription=function(){this.descriptionCollapsed=!0};
_.P.scrollToTopOfContainer=function(){_.o4(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.P.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.P.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.P.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.P.resize=function(){if(this.descriptionInlineExpander){var V,D;(D=(V=this.descriptionInlineExpander).resize)==null||D.call(V)}else _.zP(new _.cI("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var f;(f=this.menu)==null||f.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.c("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.P.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var V,D,f,n,t=_.c("web_action_buttons_update_owner_width")?(f=(V=_.Pt(this.menu).querySelector("#button-shape"))==null?void 0:V.clientWidth)!=null?f:0:(n=(D=_.Pt(this.menu).querySelector("#button"))==null?void 0:D.clientWidth)!=null?n:0,J,H;V=((H=(J=_.Pt(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:J.clientWidth)!=null?H:0)+8+t;var Q,T;t=(T=(Q=_.Pt(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:Q.children.length)!=null?T:2;V<=8*t||(this.primaryMenuWidth=V)}};
_.P.onYtUpdateTitleAction=function(V){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.g(V,oZV).title)};
_.P.onYtUpdateDescriptionAction=function(V){if(V=_.g(V,_.H_E)){var D,f=!((D=this.videoSecondaryInfoRenderer)==null||!D.attributedDescription);V.isEmpty||!V.description&&!V.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):V.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",V.attributedDescription):V.description&&(f?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.zK(V.description)):this.set("videoSecondaryInfoRenderer.description",V.description))}};
_.P.onYtDarkModeToggledAction=function(V){this.isDark=V};
_.P.registerPanel=function(){if(!_.c("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var V=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode;V=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||V;var D=_.DY().resolve(_.lM);D&&!V&&D.registerPanel("engagement-panel-structured-description",this)}};
_.P.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.P.showPanel=function(V){this.expandDescription();var D=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;D.resize();var f,n=V==null?void 0:(f=V.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;n?_.dm.addJob(function(){D==null||D.scrollToSection(n)},8):this.scrollToTopOfContainer()};
_.P.isVisible=function(){return!this.descriptionCollapsed};
_.P.getReloadContinuation=function(){};
_.P.hidePanel=function(){};
_.P.updatePanel=function(){};
_.IG.Object.defineProperties(gd.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.structuredDescriptionContentRenderer)!=null&&V.items){var D;V=_.r((D=this.structuredDescriptionContentRenderer)==null?void 0:D.items);for(D=V.next();!D.done;D=V.next())if(D=_.g(D.value,_.oGu))return D}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoPrimaryInfoRenderer)==null?0:V.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!!((V=this.videoSecondaryInfoRenderer)==null?0:(D=V.owner)==null?0:(f=D.videoOwnerRenderer)==null?0:f.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.c("swatchie_sd_new_line_strip_ks")){var V,D;if((V=this.videoSecondaryInfoRenderer)==null?0:(D=V.attributedDescription)==null?0:D.content){var f,n;return(n=this.stripAttributedDescription((f=this.videoSecondaryInfoRenderer)==null?void 0:f.attributedDescription))!=null?n:{runs:[]}}}var t,J,H,Q;return(Q=(H=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.description)!=null?H:(J=this.videoSecondaryInfoRenderer)==null?
void 0:J.attributedDescription)!=null?Q:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.videoSecondaryInfoRenderer)==null?void 0:V.headerRuns)!=null?D:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.commentsEntryPointHeaderRenderer)==null||!V.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoMetadataCarousel)==null||!V.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.tU("swatchie_desc_lines",3):this.hasTeaserCarousel?_.tU("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var V,D,f=Object.assign({},(V=this.videoSecondaryInfoRenderer)==null?void 0:(D=V.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0&&!(f.rows.length<=f.collapsedItemCount))return f.rows=f.rows.slice(f.collapsedItemCount),f.collapsedItemCount=0,f}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var V,D,f=Object.assign({},(V=this.videoSecondaryInfoRenderer)==null?void 0:(D=V.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0)return f.rows=f.rows.slice(0,f.collapsedItemCount),f.collapsedItemCount=f.rows.length,f}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!((V=this.structuredDescriptionContentRenderer)==null?0:(D=V.items)==null?0:D.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 V;return(V=this.videoSecondaryInfoRenderer)==null?void 0:V.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.videoSecondaryInfoRenderer)==null?0:(D=V.owner)==null?0:(f=D.videoOwnerRenderer)==null?0:f.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return!!((V=this.videoPrimaryInfoRenderer)==null?0:(D=V.videoActions)==null?0:(f=D.menuRenderer)==null?0:(n=f.flexibleItems)==null?0:n.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Lm(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Lm(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var V=this;if(_.c("web_title_hashtag_grey_delinkified")){var D,f=_.sB.unsafeClone((D=this.videoPrimaryInfoRenderer)==null?void 0:D.title);(D=f==null?void 0:f.runs)&&D.forEach(function(n){if(n==null?0:n.navigationEndpoint)n.textColor=4284506208,V.isDark&&(n.textColor=4289374890)});
return f}return(f=this.videoPrimaryInfoRenderer)==null?void 0:f.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.c("web_title_hashtag_black_delinkified")||_.c("web_title_hashtag_grey_delinkified")}}});
gd.prototype.resetDescriptionState=gd.prototype.resetDescriptionState;gd.prototype.registerPanel=gd.prototype.registerPanel;gd.prototype.onYtExpanderLessTapped=gd.prototype.onYtExpanderLessTapped;gd.prototype.onYtExpanderMoreTapped=gd.prototype.onYtExpanderMoreTapped;gd.prototype.onRenderStamperFinished=gd.prototype.onRenderStamperFinished;gd.prototype.onYtTextInlineExpanderExpandedChanged=gd.prototype.onYtTextInlineExpanderExpandedChanged;gd.prototype.onYtTextInlineExpanderCollapseClicked=gd.prototype.onYtTextInlineExpanderCollapseClicked;
gd.prototype.onYtTextInlineExpanderExpandClicked=gd.prototype.onYtTextInlineExpanderExpandClicked;gd.prototype.moveActionsElement=gd.prototype.moveActionsElement;gd.prototype.updateShouldForceIconOnly=gd.prototype.updateShouldForceIconOnly;gd.prototype.updateTopLevelIconsOnly=gd.prototype.updateTopLevelIconsOnly;gd.prototype.structuredDescriptionContentRendererChanged=gd.prototype.structuredDescriptionContentRendererChanged;gd.prototype.videoSecondaryInfoRendererChanged=gd.prototype.videoSecondaryInfoRendererChanged;
gd.prototype.videoPrimaryInfoRendererChanged=gd.prototype.videoPrimaryInfoRendererChanged;gd.prototype.maybeUpdateActionsOnSeparateLine=gd.prototype.maybeUpdateActionsOnSeparateLine;gd.prototype.updateOwnerAndDescriptionPosition=gd.prototype.updateOwnerAndDescriptionPosition;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],gd.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],gd.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],gd.prototype,"ytdReduxBehavior",void 0);_.S([_.Zv("#above-the-fold"),_.p("design:type",HTMLElement)],gd.prototype,"aboveTheFoldContainer",void 0);_.S([_.Zv("#menu ytd-menu-renderer"),_.p("design:type",Object)],gd.prototype,"menu",void 0);
_.S([_.Zv("#description-inline-expander"),_.p("design:type",Object)],gd.prototype,"descriptionInlineExpander",void 0);_.S([_.Zv("#faded-structured-description"),_.p("design:type",Object)],gd.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.S([_.Zv("#structured-description"),_.p("design:type",Object)],gd.prototype,"structuredDescriptionContentRendererElement",void 0);_.S([_.Zv("#title"),_.p("design:type",HTMLElement)],gd.prototype,"titleElement",void 0);
_.S([_.Zv("#description"),_.p("design:type",HTMLElement)],gd.prototype,"descriptionElement",void 0);_.S([_.Zv("#description-interaction"),_.p("design:type",Object)],gd.prototype,"descriptionInteraction",void 0);_.S([_.Zv("#owner"),_.p("design:type",HTMLElement)],gd.prototype,"ownerElement",void 0);_.S([_.Zv("#top-row"),_.p("design:type",HTMLElement)],gd.prototype,"topRowElement",void 0);_.S([_.Zv("#bottom-row"),_.p("design:type",HTMLElement)],gd.prototype,"bottomRowElement",void 0);
_.S([_.Zv("#actions"),_.p("design:type",HTMLElement)],gd.prototype,"actionsElement",void 0);_.S([_.Zv("#bottom-actions"),_.p("design:type",HTMLElement)],gd.prototype,"bottomActionsElement",void 0);_.S([_.Zv("#ytd-watch-info-text"),_.p("design:type",Object)],gd.prototype,"watchInfoTextElement",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"videoPrimaryInfoRenderer",void 0);
_.S([_.q(),_.p("design:type",Object)],gd.prototype,"videoSecondaryInfoRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"commentsEntryPointHeaderRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"videoMetadataCarousel",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"structuredDescriptionContentRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"videoSummary",void 0);
_.S([_.q(),_.p("design:type",Object)],gd.prototype,"merchShelf",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"infoPanelBelowMetadata",void 0);_.S([_.R("structuredDescriptionContentRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"productShelf",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"metadataBadgesInDescription",void 0);
_.S([_.R("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"shouldHideBadges",null);_.S([_.R("productShelf","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"shouldShowProductShelf",null);_.S([_.q(),_.p("design:type",Boolean)],gd.prototype,"isWatchFlexy",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"descriptionCollapsed",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],gd.prototype,"useFadedScrimDescription",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"skinnyMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"largerItemWrap",null);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"playlist",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"clarifyBox",void 0);
_.S([_.q(),_.p("design:type",Object)],gd.prototype,"playerAds",void 0);_.S([_.q(),_.p("design:type",Boolean)],gd.prototype,"isDark",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],gd.prototype,"actionsOnSeparateLine",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"disableVideoOwnerOnTap",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"swatcherooDelayLoad",void 0);
_.S([_.q(),_.p("design:type",Boolean)],gd.prototype,"suppressTopLevelMetadataRows",void 0);_.S([_.q(),_.p("design:type",Object)],gd.prototype,"primaryMenuWidth",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"videoId",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"titleHeadlineXs",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"titleHeadlineS",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"titleHeadlineM",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"titleHashtagBlackLinkified",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"titleHashtagGreyLinkified",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.S([_.q(),_.p("design:type",Object)],gd.prototype,"shouldForceIconOnly",void 0);_.S([_.eY("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"updateOwnerAndDescriptionPosition",null);_.S([_.eY("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.S([_.R("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"descriptionText",null);_.S([_.R("videoSecondaryInfoRenderer.headerRuns"),_.p("design:type",Array),_.p("design:paramtypes",[])],gd.prototype,"headerRuns",null);_.S([_.q({value:!1}),_.R("commentsEntryPointHeaderRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"hasTeaser",null);
_.S([_.q({value:!1,reflectToAttribute:!0}),_.R("videoMetadataCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"hasTeaserCarousel",null);_.S([_.q({value:3}),_.R("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"descriptionMaxLines",null);_.S([_.R("videoSecondaryInfoRenderer.metadataRowContainer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"collapsibleMetadataRows",null);
_.S([_.R("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"alwaysVisibleMetadataRows",null);_.S([_.R("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"hasInlineStructuredDescription",null);
_.S([_.R("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"showInlineStructuredDescription",null);_.S([_.R("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"descriptionExpandCommand",null);
_.S([_.R("videoSecondaryInfoRenderer.owner"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"videoOwnerCommand",null);_.S([_.q({reflectToAttribute:!0}),_.R("videoPrimaryInfoRenderer.videoActions"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"flexMenuEnabled",null);_.S([_.q({selector:_.Ns,reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"isFullscreen",void 0);
_.S([_.q({selector:_.uf,reflectToAttribute:!0}),_.p("design:type",Object)],gd.prototype,"isTheaterMode",void 0);_.S([_.R("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"showAttributedStringDescription",null);_.S([_.R("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"showFormattedStringDescription",null);
_.S([_.R("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gd.prototype,"showFadedStructuredDescription",null);_.S([_.eY("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"videoPrimaryInfoRendererChanged",null);_.S([_.R("videoPrimaryInfoRenderer.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"videoTitle",null);
_.S([_.R("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],gd.prototype,"noEndpoints",null);_.S([_.eY("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"videoSecondaryInfoRendererChanged",null);
_.S([_.KI("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"structuredDescriptionContentRendererChanged",null);_.S([_.KI("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"updateTopLevelIconsOnly",null);
_.S([_.KI("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"updateShouldForceIconOnly",null);_.S([_.KI("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"moveActionsElement",null);_.S([_.bU("yt-text-inline-expander-expand-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.S([_.bU("yt-text-inline-expander-collapse-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.S([_.bU("yt-text-inline-expander-expanded-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gd.prototype,"onRenderStamperFinished",null);_.S([_.bU("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"onYtExpanderMoreTapped",null);_.S([_.bU("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"onYtExpanderLessTapped",null);
_.S([_.KI("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"registerPanel",null);_.S([_.KI("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gd.prototype,"resetDescriptionState",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-watch-metadata"})],gd);
_.Y(gd,"ytd-watch-metadata",function(){if(yXv!==void 0)return yXv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return yXv=V},{mode:2});_.z3w=function(V){_.cq.call(this);this.JSC$20472_watchApi=V;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;kEZ(this);shB(this);ByZ(this);d5c(this);ugv(this);NyR(this);m50(this)};
_.v(_.z3w,_.cq);var ByZ=function(V){var D=function(){_.c("kevlar_is_pupi_enabled")||vu(V)};
V.JSC$20472_watchApi.getRoot().addEventListener("yt-player-updated",D);V.addOnDisposeCallback(function(){V.JSC$20472_watchApi.getRoot().removeEventListener("yt-player-updated",D)})},ugv=function(V){if(_.c("kevlar_endscreen_auto_theater_mode")){var D=V.JSC$20472_watchApi.subscribeToActiveChanged(function(){R3J(V)},!1);
V.addOnDisposeCallback(D)}},kEZ=function(V){var D,f,n,t,J;
_.w(function(H){if(H.nextAddress==1)return _.b(H,V.JSC$20472_watchApi.playerApi,2);D=H.yieldResult;f=function(Q){Q=!!Q;kR(V)&&(Q=Q?2:1,_.OC.getInstance().setState(Q,!0,!1))};
n=function(Q){Q&&_.RpW(_.Ol().getState())&&(_.o4(V.JSC$20472_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),V.temporaryTheaterMode=!0)};
t=function(Q){_.c("kevlar_player_update_autonav_on_new_data")&&Q.type==="newdata"&&(_.c("kevlar_is_pupi_enabled")||vu(V))};
J=function(Q){V.onPlayerStateChange(Q)};
_.c("kevlar_endscreen_auto_theater_mode")&&D.addEventListener("onAutonavCancelled",n);D.addEventListener("onAutonavChangeRequest",f);D.addEventListener("onVideoDataChange",t);D.addEventListener("onStateChange",J);V.addOnDisposeCallback(function(){D.removeEventListener("onAutonavChangeRequest",f);D.removeEventListener("onVideoDataChange",t);D.removeEventListener("onStateChange",J);_.c("kevlar_endscreen_auto_theater_mode")&&D.removeEventListener("onAutonavCancelled",n)});
_.yz(H)})},shB=function(V){V.JSC$20472_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){V.autonavCancelledBySignal=!0;
_.c("kevlar_is_pupi_enabled")||vu(V)});
V.JSC$20472_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(D,f,n){f&&vu(V,n)});
V.JSC$20472_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){kR(V)&&_.OC.getInstance().setState(2,!0,!0)});
V.JSC$20472_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){kR(V)&&_.OC.getInstance().setState(1,!0,!0)});
V.addOnDisposeCallback(function(){V.JSC$20472_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");V.JSC$20472_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");V.JSC$20472_watchApi.unregisterActionHandler("yt-enable-autoplay-command");V.JSC$20472_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},d5c=function(V){var D=V.JSC$20472_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){m50(V)}),f=V.JSC$20472_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){NyR(V)});
V.addOnDisposeCallback(function(){V.JSC$20472_watchApi.unsubscribeByKey(D);V.JSC$20472_watchApi.unsubscribeByKey(f)})},m50=function(V){V.autonavCancelledBySignal=!1;
_.c("kevlar_is_pupi_enabled")||vu(V)},NyR=function(V){var D=V.JSC$20472_watchApi.getWatchNextResponse(),f,n;
var t=(D=(n=_.g(D==null?void 0:(t=D.playerOverlays)==null?void 0:(f=t.playerOverlayRenderer)==null?void 0:f.autonavToggle,_.QjH))==null?void 0:n.enabled)?2:1;_.c("kevlar_is_pupi_enabled")?_.OC.getInstance().setState(t,!1,!1):vu(V);_.c("web_persist_server_autonav_state_on_client")&&typeof D==="boolean"&&_.v1X(t===2)},kR=function(V){if(V.autonavCancelledBySignal)return!1;
var D,f,n,t;return!!((D=V.JSC$20472_watchApi.getWatchNextResponse())==null?0:(f=D.contents)==null?0:(n=f.twoColumnWatchNextResults)==null?0:(t=n.autoplay)==null?0:t.autoplay)};
_.z3w.prototype.onPlayerStateChange=function(V){if(V===0){V=!_.OC.getInstance().isAutoplaySetExplicitly();var D=this.JSC$20472_watchApi.getWatchNextResponse(),f,n,t,J;D=_.g(D==null?void 0:(f=D.contents)==null?void 0:(n=f.twoColumnWatchNextResults)==null?void 0:(t=n.autoplay)==null?void 0:(J=t.autoplay)==null?void 0:J.autoplayExplicitChoiceDialogRenderer,_.zNU);kR(this)&&V&&D&&_.bS.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:D},popupType:"DIALOG"}})}else R3J(this)};
var R3J=function(V){V.temporaryTheaterMode&&(V.temporaryTheaterMode=!1,_.o4(V.JSC$20472_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},vu=function(V,D){D=D===void 0?!1:D;
var f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20472_watchApi.playerApi,2);f=n.yieldResult;kR(V)?f.setAutonavState(_.OC.getInstance().getState(),D):f.setAutonavState(1,D);_.yz(n)})};var ClR={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.XU3=function(V){_.cq.call(this);var D=this;this.JSC$20477_watchApi=V;var f=this.JSC$20477_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qnZ(D)});
this.addOnDisposeCallback(function(){D.JSC$20477_watchApi.unsubscribeByKey(f)});
qnZ(this)};
_.v(_.XU3,_.cq);var qnZ=function(V){var D=V.JSC$20477_watchApi.getPlayerResponse(),f=V.JSC$20477_watchApi.getWatchNextResponse();if(!_.OPF(D==null?void 0:D.playabilityStatus,f==null?void 0:f.playerOverlays)){var n;var t=D==null?void 0:(n=D.playabilityStatus)==null?void 0:n.errorScreen}V.JSC$20477_watchApi.provideRenderingData("ERROR_SCREEN",t)};var EzZ=_.MA(function(V){var D=V.data;V=_.c("web_watch_video_details_hide_subtitle");var f=_.c("web_watch_video_details_single_line_title"),n=_.jl(function(){var Q=D().onTap;Q&&_.DY().resolve(_.fH).resolveCommand(Q)}),t={},J={},H={};
return _.K("yt-player-overlay-video-details-renderer",{class:_.KT("ytPlayerOverlayVideoDetailsRendererHost",(t.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.c("web_watch_video_details_transparent_background"),t)),"on:click":n,role:"button"},_.K("h2",{class:_.KT("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return f},J))},_.K(_.Ow,{text:function(){return D().title}})),_.K("div",{class:_.KT("ytPlayerOverlayVideoDetailsRendererSubtitle",
(H.ytPlayerOverlayVideoDetailsRendererHideSubtitle=V,H))},_.K(_.Ow,{text:function(){return D().subtitle}})))},"Ej");var sP={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},AXX=_.MA(function(V){var D=V.data;var f=_.CT(_.Ns),n=_.c("web_watch_action_bar_resize_buttons"),t=_.c("delhi_modern_web_player_icons")&&!_.c("enable_web_delhi_icons"),J=function(){return n&&!f()?{size:"M"}:void 0};
V={};return _.K("yt-player-quick-action-buttons",{class:_.KT("ytPlayerQuickActionButtonsHost",(V.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!f()},V))},_.K(_.FB,{each:function(){if(t){var H=D();
H=JSON.parse(JSON.stringify(H));for(var Q=_.r(H),T=Q.next();!T.done;T=Q.next()){var y=T.value,Z=void 0;T=_.g((Z=_.g(y,_.d0))==null?void 0:Z.toggleButtonViewModel,_.FO);var l=void 0;Z=_.g((l=_.g(y,_.Bc))==null?void 0:l.toggleButtonViewModel,_.FO);l=_.g(y,_.cW);y=_.g(y,_.FO);if(T)Z=_.g(T.defaultButtonViewModel,_.cW),T=_.g(T.toggledButtonViewModel,_.cW),Z&&Z.iconName&&(Z.iconName=sP[Z.iconName]),T&&T.iconName&&(T.iconName=sP[T.iconName]);else if(Z)T=_.g(Z.defaultButtonViewModel,_.cW),Z=_.g(Z.toggledButtonViewModel,
_.cW),T&&T.iconName&&(T.iconName=sP[T.iconName]),Z&&Z.iconName&&(Z.iconName=sP[Z.iconName]);else if(l)l.iconName&&(l.iconName=sP[l.iconName]);else if(y){T=_.g(y.defaultButtonViewModel,_.cW);Z=_.g(y.toggledButtonViewModel,_.cW);y=void 0;if((y=T)==null?0:y.iconName)T.iconName=sP[T.iconName];T=void 0;if((T=Z)==null?0:T.iconName)Z.iconName=sP[Z.iconName]}}}else H=D();return H}},function(H){return _.K(_.BW,{data:function(){return H}},{buttonViewModel:function(Q){return _.K(_.HO,{data:Q.data,
buttonOverrides:J})},
likeButtonViewModel:function(Q){return _.K(_.s8,{data:Q.data,buttonShapeOverrideables:J,disableIconAnimation:!0})},
dislikeButtonViewModel:function(Q){return _.K(_.kE,{data:Q.data,buttonShapeOverrideables:J})},
toggleButtonViewModel:function(Q){return _.K(_.FA,{data:Q.data,buttonShapeOverrides:J})}})}))},"Fj");_.Ynv=function(V){_.cq.call(this);var D=this;this.JSC$20482_watchApi=V;V=_.r(_.HJ({},void 0,"ufFdVc"));this.quickActionsViewModel=V.next().value;this.setQuickActionsViewModel=V.next().value;V=_.r(_.HJ({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=V.next().value;this.setPlayerOverlayVideoDetailsRenderer=V.next().value;var f=this.JSC$20482_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){acq(D)});
this.addOnDisposeCallback(function(){D.JSC$20482_watchApi.unsubscribeByKey(f)});
acq(this)};
_.v(_.Ynv,_.cq);
var acq=function(V){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k;_.w(function(d){if(d.nextAddress==1)return _.b(d,V.JSC$20482_watchApi.playerApi,2);D=d.yieldResult;f=V.JSC$20482_watchApi.getWatchNextResponse();J=(n=f)==null?void 0:(t=n.playerOverlays)==null?void 0:t.playerOverlayRenderer;Q=_.g((H=J)==null?void 0:H.fullscreenQuickActionsBar,_.bNE);(y=(T=V).setQuickActionsViewModel)==null||y.call(T,Q||{});Q&&$5R(V,D);G=(Z=J)==null?void 0:(l=Z.videoDetails)==null?void 0:l.playerOverlayVideoDetailsRenderer;(k=(F=
V).setPlayerOverlayVideoDetailsRenderer)==null||k.call(F,G||{});G&&i7q(V,D);_.yz(d)})},$5R=function(V,D){if(!V.quickActionButtonsContainer){V.quickActionButtonsContainer=document.createElement("div");
D.setFullscreenQuickActions(V.quickActionButtonsContainer);var f=function(){return V.quickActionsViewModel().quickActionButtons||[]},n=_.sG(V.quickActionButtonsContainer,function(){return _.K(AXX,{data:f})});
V.addOnDisposeCallback(function(){D.setFullscreenQuickActions(void 0);n()})}},i7q=function(V,D){if(!V.playerOverlayVideoDetailsRendererContainer){V.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
D.setPlayerOverlayVideoDetailsRenderer(V.playerOverlayVideoDetailsRendererContainer);var f=_.sG(V.playerOverlayVideoDetailsRendererContainer,function(){return _.K(EzZ,{data:V.playerOverlayVideoDetailsRenderer})});
V.addOnDisposeCallback(function(){D.setPlayerOverlayVideoDetailsRenderer(void 0);f()})}};_.Bu=function(V){_.cq.call(this);var D=this;this.JSC$20487_watchApi=V;this.JSC$20487_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;V=_.yX(_.Ol(),_.Ns,function(f){D.onFullscreenChanged(f)});
this.addOnDisposeCallback(V);V=_.yX(_.Ol(),_.sF,function(f){D.onWatchScroll(f)});
this.addOnDisposeCallback(V);_.c("kevlar_watch_while_v2")&&(V=_.yX(_.Ol(),_.mq,function(f){Sn0(D,f)}),this.addOnDisposeCallback(V));
W_q(this);pU0(this);L_o();this.onWatchScroll(_.sF(_.Ol().getState()));_.EG("START_IN_FULL_WINDOW_MODE")&&this.JSC$20487_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.v(_.Bu,_.cq);var W_q=function(V){V.JSC$20487_watchApi.registerActionHandler("yt-fullscreen-change-action",function(D){var f=V.JSC$20487_watchApi.isActive();D&&!f||_.Ol().dispatch(_.nA({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!D}}))});
V.addOnDisposeCallback(function(){V.JSC$20487_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},pU0=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20487_watchApi.playerApi,2);D=n.yieldResult;f=function(){V.onFullerscreenEduClicked()};
D.addEventListener("onFullerscreenEduClicked",f);V.addOnDisposeCallback(function(){D.removeEventListener("onFullerscreenEduClicked",f)});
_.yz(n)})};
_.Bu.prototype.onFullscreenChanged=function(V){var D=this,f;return _.w(function(n){if(n.nextAddress==1)return D.isFullscreen=!!_.UX(),_.b(n,D.JSC$20487_watchApi.playerApi,2);f=n.yieldResult;D.JSC$20487_miniplayerActive||f.setFauxFullscreen(D.isFullscreen);if(V&&(D.JSC$20487_watchApi.focusOnPlayer(),!D.fullerscreenEduButtonShownThisPlayback)){D.fullerscreenEduButtonShownThisPlayback=!0;var t=_.J5("yt-fullerscreen-edu-button-shown-count")||0;_.oC("yt-fullerscreen-edu-button-shown-count",t+1,31536E3);
D.updateFullerscreenEduButtonSubtleModeState()}_.yz(n)})};
var Sn0=function(V,D){var f;_.w(function(n){if(n.nextAddress==1)return V.JSC$20487_miniplayerActive=D,_.b(n,V.JSC$20487_watchApi.playerApi,2);f=n.yieldResult;f.setFauxFullscreen(!V.JSC$20487_miniplayerActive&&V.isFullscreen);_.yz(n)})};
_.Bu.prototype.onWatchScroll=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return _.c("external_fullscreen_with_edu")?_.b(t,D.JSC$20487_watchApi.playerApi,2):t.return();f=t.yieldResult;n=V<=0;D.shouldShowFullerscreenEdu!==n&&(D.shouldShowFullerscreenEdu=n,f.updateFullerscreenEduButtonVisibility(!D.shouldShowFullerscreenEdu));_.yz(t)})};
_.Bu.prototype.onFullerscreenEduClicked=function(){this.JSC$20487_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var V=_.J5("yt-fullerscreen-edu-button-click-count")||0;_.oC("yt-fullerscreen-edu-button-click-count",V+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Bu.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var V=this,D,f,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return D=_.J5("yt-fullerscreen-edu-button-click-count")||0,f=_.J5("yt-fullerscreen-edu-button-shown-count")||0,n=_.tU("external_fullscreen_button_click_threshold"),t=_.tU("external_fullscreen_button_shown_threshold"),J=D>=n||f>=t,_.b(Q,V.JSC$20487_watchApi.playerApi,2);H=Q.yieldResult;H.updateFullerscreenEduButtonSubtleModeState(J);_.yz(Q)})};
_.Bu.prototype.disposeInternal=function(){_.cq.prototype.disposeInternal.call(this);var V=_.UX();_.c("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vv(V)};
var L_o=function(){if(_.c("web_watch_add_viewport_meta_tag")){var V=document.querySelector("meta[name=viewport]"),D=document.head;D&&!V&&(V=document.createElement("meta"),V.name="viewport",V.content="width=device-width, initial-scale=1.0, viewport-fit=cover",D.appendChild(V))}};_.dd=function(V){_.cq.call(this);var D=this;this.JSC$20491_watchApi=V;this.jobId=0;this.pendingRequestId=void 0;var f=this.JSC$20491_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){IcZ(D)});
this.addOnDisposeCallback(function(){D.JSC$20491_watchApi.unsubscribeByKey(f)});
IcZ(this)};
_.v(_.dd,_.cq);var O7R=function(V){_.dm.cancelJob(V.jobId);V.pendingRequestId=void 0},IcZ=function(V){O7R(V);
var D=PDo(V.JSC$20491_watchApi.getWatchNextResponse());if(D){var f=250,n,t=(n=_.g(D,_.yTp))==null?void 0:n.initialDelayMs;_.c("web_watch_updated_metadata_server_initial_delay")&&t&&(f=t);V.jobId=_.dm.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(D)},f)}};
_.dd.prototype.fetchUpdatedMetadata=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C;return _.w(function(A){switch(A.nextAddress){case 1:D&&(n={continuation:D});if(!_.c("web_get_updated_metadata_fantasy_panel_continuation_params")){A.jumpTo(2);break}t=_.DY().resolve(_.lM);J="PAsports_fantasy";return _.b(A,t.isVisible(J,!0),3);case 3:A.yieldResult&&(y=(Q=(H=t).getUpdatePanelContinuationData)==null?void 0:(T=Q.call(H,J))==null?void 0:T.updatePanelContinuationRequest)&&(n||(n={}),n.clientParams=
{panelContinuationParams:{panelContinuation:y}});case 2:Z=_.DY().resolve(_.CR);if(!Z)return _.NG(Error("pm")),A.return();l={};f.pendingRequestId=l;return _.b(A,_.ie(Z,V,n),4);case 4:G=A.yieldResult;if(l!==f.pendingRequestId)return A.return();d=(F=G)==null?void 0:(k=F.continuation)==null?void 0:k.timedContinuationData;((z=d)==null?0:z.continuation)&&((C=d)==null?0:C.timeoutMs)&&(f.jobId=_.dm.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(V,d.continuation)},d.timeoutMs));
_.yz(A)}})};
_.dd.prototype.disposeInternal=function(){_.cq.prototype.disposeInternal.call(this);O7R(this)};var x5R=_.MA(function(V){var D=_.jl(function(){var n=V.data().videoId;if(V.active())n=_.U2(n),_.DY().resolve(_.fH).resolveCommand(n);else{var t=V.playerApi(),J=t.getAvailableAudioTracks(),H,Q,T=(H=V.sourceVideoConfig().audioTracks)==null?void 0:(Q=H.find(function(y){return y.isDefaultForSource}))==null?void 0:Q.id;
if(J=J.find(function(y){return y.getLanguageInfo().getId()===T}))t.setAudioTrack(J,!0),t.setCompositeParam({activeVideoId:n}),V.setActiveSourceId(n)}}),f={};
return _.K("ytw-composite-source-video-overlay",{class:_.KT("ytwCompositeSourceVideoOverlayHost",(f.ytwCompositeSourceVideoOverlayActive=V.active,f.ytwCompositeSourceVideoOverlayInteracting=V.interacting,f)),style:_.el({left:function(){var n;return((n=V.data().topLeftCornerX)!=null?n:0)*100+"%"},
top:function(){var n;return((n=V.data().topLeftCornerY)!=null?n:0)*100+"%"},
width:function(){var n;return((n=V.data().width)!=null?n:0)*100+"%"},
height:function(){var n;return((n=V.data().height)!=null?n:0)*100+"%"}}),
"on:click":D},_.K("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Gj");var MFX=_.MA(function(V){var D=_.r(_.Gk(function(){var H,Q=(H=V.data().sources)==null?void 0:H.find(function(T){return T.isActive});
if(Q)return Q.videoId})),f=D.next().value,n=D.next().value;
D=_.r(_.HJ(!1,void 0,"WI4BUb"));var t=D.next().value,J=D.next().value;return _.K("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.jl(function(){J(!0)}),
"on:mouseout":_.jl(function(){J(!1)})},_.K(_.e,{cond:function(){return V.data().sources},
then:function(H){return _.K(_.FB,{each:H},function(Q){return _.K(x5R,{data:Q,active:function(){return Q.videoId===f()},
setActiveSourceId:n,interacting:t,playerApi:V.playerApi,sourceVideoConfig:function(){return oQf(V.compositeVideoConfig(),Q.videoId)}})})}}))},"Hj");_.VMX=function(V){_.cq.call(this);this.JSC$20507_watchApi=V;V=_.r(_.HJ({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=V.next().value;this.setCompositeVideoOverlayRenderer=V.next().value;V=_.r(_.HJ({},void 0,"U5hcq"));this.compositeVideoConfig=V.next().value;this.setCompositeVideoConfig=V.next().value;h30(this);U5B(this)};
_.v(_.VMX,_.cq);var h30=function(V){var D=V.JSC$20507_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){U5B(V)});
V.addOnDisposeCallback(function(){V.JSC$20507_watchApi.unsubscribeByKey(D)})},DXf=function(V){var D;
return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20507_watchApi.playerApi,2);D=f.yieldResult;D.setCompositeVideoOverlayRendererComponent(V.container);_.yz(f)})},fIw=function(V){var D;
return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20507_watchApi.playerApi,2);D=f.yieldResult;D.setCompositeVideoOverlayRendererComponent(void 0);_.yz(f)})},nTc=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20507_watchApi.playerApi,2);D=n.yieldResult;V.container=document.createElement("div");f=_.sG(V.container,function(){return _.K(MFX,{data:V.compositeVideoOverlayRenderer,compositeVideoConfig:V.compositeVideoConfig,playerApi:D})});
V.addOnDisposeCallback(f);_.yz(n)})},U5B=function(V){var D,f,n,t,J,H,Q,T;
_.w(function(y){return y.nextAddress==1?(D=V.JSC$20507_watchApi.getPlayerResponse(),J=_.g((f=D)==null?void 0:(n=f.overlay)==null?void 0:(t=n.playerControlsOverlayRenderer)==null?void 0:t.compositeVideoOverlay,x$B),T=(H=D)==null?void 0:(Q=H.playerConfig)==null?void 0:Q.compositeVideoConfig,J&&V.setCompositeVideoOverlayRenderer(J),T&&V.setCompositeVideoConfig(T),J&&T?V.container?y.jumpTo(6):_.b(y,nTc(V),6):tMV(V)?_.b(y,fIw(V),0):y.jumpTo(0)):tMV(V)?y.jumpTo(0):_.b(y,DXf(V),0)})},tMV=function(V){var D;
return!((D=V.container)==null||!D.parentElement)};
_.VMX.prototype.disposeInternal=function(){tMV(this)&&fIw(this);_.cq.prototype.disposeInternal.call(this)};_.H3q=function(V){_.cq.call(this);var D=this;this.JSC$20513_watchApi=V;var f=this.JSC$20513_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var n=D.JSC$20513_watchApi.getPlayerResponse();if(n){var t,J;if(n=_.g((t=n.endscreen)==null?void 0:(J=t.endscreenRenderer)==null?void 0:J.hideButton,_.FO)){var H;(H=D.setEndscreenHideButton)==null||H.call(D,n);PJv(D)}}});
this.addOnDisposeCallback(function(){D.JSC$20513_watchApi.unsubscribeByKey(f)});
V=_.r(_.HJ({},void 0,"PPHRb"));this.endscreenHideButton=V.next().value;this.setEndscreenHideButton=V.next().value;oT0(this);J9J(this);r93(this)};
_.v(_.H3q,_.cq);var PJv=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return V.creatorEndscreenHideButtonContainer?n.return():_.b(n,V.JSC$20513_watchApi.playerApi,2);D=n.yieldResult;V.creatorEndscreenHideButtonContainer=document.createElement("div");_.SB(V.creatorEndscreenHideButtonContainer,!1);D.setCreatorEndscreenHideButton(V.creatorEndscreenHideButtonContainer);f=_.sG(V.creatorEndscreenHideButtonContainer,function(){return _.K(_.FA,{data:V.endscreenHideButton,useOutlinedIcon:!0})});
V.addOnDisposeCallback(function(){f();var t;(t=D)==null||t.setCreatorEndscreenHideButton(void 0)});
_.yz(n)})},oT0=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20513_watchApi.playerApi,2);D=n.yieldResult;f=function(){V.creatorEndscreenHideButtonContainer&&_.SB(V.creatorEndscreenHideButtonContainer,!0)};
D.addEventListener("endscreenelementshown",f);V.addOnDisposeCallback(function(){var t;(t=D)==null||t.removeEventListener("endscreenelementshown",f)});
_.yz(n)})},J9J=function(V){var D=function(){V.creatorEndscreenHideButtonContainer&&_.SB(V.creatorEndscreenHideButtonContainer,!1)},f=V.JSC$20513_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",D),n=V.JSC$20513_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",D);
V.addOnDisposeCallback(function(){V.JSC$20513_watchApi.unsubscribeByKey(f);V.JSC$20513_watchApi.unsubscribeByKey(n)})},r93=function(V){V.JSC$20513_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(D){var f=_.g(D,SvB);
V.JSC$20513_watchApi.playerApi.then(function(n){n==null||n.setCreatorEndscreenVisibility(!!f.hide)})});
V.addOnDisposeCallback(function(){V.JSC$20513_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.QQZ=function(V){_.cq.call(this);this.JSC$20519_watchApi=V;wDo(this)};
_.v(_.QQZ,_.cq);var wDo=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20519_watchApi.playerApi,2);D=n.yieldResult;f=function(t){_.Ol().dispatch(_.nA({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:t}}))};
D.addEventListener("onRetroModeChanged",f);V.addOnDisposeCallback(function(){D.removeEventListener("onRetroModeChanged",f)});
_.yz(n)})};var mG=0,Nc=0,zY=0;var T_q;T_q=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.uP=function(V){_.cq.call(this);this.JSC$20532_watchApi=V;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;b3v(this)};
_.v(_.uP,_.cq);
var b3v=function(V){var D,f,n;_.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$20532_watchApi.playerApi,2);D=t.yieldResult;if(V.isDisposed())return t.return();V.sessionStorage=_.F3J("yt-sleep-timer");V.sessionStorage||_.zP(new _.cI("SessionStorage for Sleep Timer is undefined."));((f=V.sessionStorage)==null?void 0:f.get("yt-sleep-timer"))==="true"&&(ZsR(),(n=V.sessionStorage)==null||n.remove("yt-sleep-timer"),D.syncVolume());KUq(V,D);y9w(V,D);Z3Z(V,D);_.yz(t)})},KUq=function(V,D){var f=function(y){V.onSleepTimerSettingsChanged(y,
D)},n=function(y){V.onPlayerStateChange(y,D)},t=function(){V.onLoopChange(D)},J=function(){V.onCloseMiniplayer(D)},H=function(){T8V(D,(0,_.VW)(),jeX(D),V.selectedOption==="End of video",D.getPlayerState()!==1)},Q=function(){V.onSeekComplete(D)},T=function(){_.dm.cancelJob(Nc);
var y=D.getCurrentTime()>=D.getDuration(),Z=V.selectedOption==="End of video"||V.selectedOption==="End of playlist"&&!HsV(V.playlistId);y&&Z&&jQJ(V,D)};
D.addEventListener("onSleepTimerSettingsChanged",f);D.addEventListener("onLoopChange",t);D.addEventListener("onLoopRangeChange",t);D.addEventListener("onStateChange",n);D.addEventListener("onCloseMiniplayer",J);D.addEventListener("onSleepTimerFeatureAvailable",H);D.addEventListener("SEEK_COMPLETE",Q);D.addEventListener("onAdStart",T);V.addOnDisposeCallback(function(){D.removeEventListener("onSleepTimerSettingsChanged",f);D.removeEventListener("onLoopChange",t);D.removeEventListener("onLoopRangeChange",
t);D.removeEventListener("onStateChange",n);D.removeEventListener("onCloseMiniplayer",J);D.removeEventListener("onSleepTimerFeatureAvailable",H);D.removeEventListener("SEEK_COMPLETE",Q);D.removeEventListener("onAdStart",T)})},y9w=function(V,D){var f=V.JSC$20532_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var n=D.getVideoData().video_id,t,J=(t=JmX(V.JSC$20532_watchApi))==null?void 0:t.playlistId;
V.pauseAutonavPlayback&&(D.pauseVideo(),D.syncVolume(),V.pauseAutonavPlayback=!1);if(V.selectedOption==="End of video"&&n!==V.videoId)NV(V,D);else{if(V.selectedOption==="End of playlist"){t=HsV(V.playlistId);if(J!==V.playlistId){NV(V,D);break a}t?t&&lIJ(V,D):GFq(V,D)}V.videoId=n;V.playlistId=J}}});
V.addOnDisposeCallback(function(){V.JSC$20532_watchApi.unsubscribeByKey(f)})},Z3Z=function(V,D){var f=_.DY().resolve(_.C1),n=_.yX(f,_.l8x,function(J){J&&V.selectedOption!=="Off"&&NV(V,D)}),t=V.JSC$20532_watchApi.subscribeToActiveChanged(function(J){var H,Q;
return _.w(function(T){if(T.nextAddress==1)return _.b(T,_.b$().navigationFinishPromise,2);H=!_.knP();Q=_.DY().resolve(_.qw).isMiniplayerActive();J||!um(V.selectedOption)||Q||H||NV(V,D);_.yz(T)})},!1);
f=_.yX(f,function(J){return J.entities.playlistLoopStateEntity||{}},function(J){J=J===void 0?{}:J;
var H=rmv(V.JSC$20532_watchApi);if(H){var Q;((Q=J[H])==null?void 0:Q.state)==="PLAYLIST_LOOP_STATE_ALL"&&um(V.selectedOption)&&NV(V,D)}});
V.addOnDisposeCallback(n);V.addOnDisposeCallback(f);V.addOnDisposeCallback(t)};
_.uP.prototype.onSleepTimerSettingsChanged=function(V,D){switch(V){case "Off":this.selectedOption!=="Off"&&NV(this,D);break;case "End of video":case "End of playlist":exX(this,V,D);break;default:exX(this,V,D,T_q.get(V))}};
_.uP.prototype.onLoopChange=function(V){(V.getLoopVideo()||V.getLoopRange())&&um(this.selectedOption)&&NV(this,V)};
_.uP.prototype.onCloseMiniplayer=function(V){um(this.selectedOption)&&NV(this,V)};
var exX=function(V,D,f,n){c9v(V,f);V.selectedOption=D;V.videoId=f.getVideoData().video_id;V.playlistId="";var t;(t=V.sessionStorage)==null||t.set("yt-sleep-timer","true");V.adjustmentsCount++;T8V(f,(0,_.VW)(),jeX(f),V.selectedOption==="End of video");if(V.selectedOption==="End of video")GFq(V,f),FU0(V,f);else if(V.selectedOption==="End of playlist"){FU0(V,f);var J,H;V.playlistId=(H=(J=JmX(V.JSC$20532_watchApi))==null?void 0:J.playlistId)!=null?H:"";HsV(V.playlistId)||GFq(V,f)}else n&&(V.presetFadeSchedulerId=
_.lf(_.dm,function(){Kdf(f,15E3)},n-15E3),V.presetPauseSchedulerId=_.lf(_.dm,function(){jQJ(V,f)},n),bsw(f,(0,_.VW)(),n))},jQJ=function(V,D){if(V.JSC$20532_watchApi.isActive()){var f={dismissDialogEndpoint:{}};
var n={commandExecutorCommand:{commands:[f,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};f={buttonViewModel:{title:_.Zl("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:f}}};n={buttonViewModel:{title:_.Zl("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:n}}};var t={dialogHeaderViewModel:{headline:{content:_.Zl("SLEEP_TIMER_ENDED_TITLE")}}},
J={basicContentViewModel:{paragraphs:[{text:{content:_.Zl("SLEEP_TIMER_ENDED_TEXT")}}]}};f={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:t,content:J,footer:{panelFooterViewModel:{primaryButton:f,secondaryButton:n,shouldHideDivider:!0}}}}}}};_.DY().resolve(_.fH).resolveCommand(f,{form:{element:V}})}else ZsR();gTq(V,!1);vTB(V,D);D.pauseVideo();_.OC.getInstance().getState()===2&&D.getPlayerState()===5&&(V.pauseAutonavPlayback=!0)},NV=function(V,D){gTq(V,!0);
vTB(V,D);ZsR()},vTB=function(V,D){c9v(V,D);
V.selectedOption="Off";V.videoId="";V.playlistId="";V.adjustmentsCount=0;var f;(f=V.sessionStorage)==null||f.remove("yt-sleep-timer");_.dm.cancelJob(mG);D.resetSleepTimerMenuSettings()},gTq=function(V,D){D={timer_length_adjustment_times_during_session:V.adjustmentsCount-1,
is_session_cancelled:D};switch(V.selectedOption){case "Off":D.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":D.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":D.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:D.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",D.option_duration_in_minutes=T_q.get(V.selectedOption)/6E4}_.dq("sleepTimerSessionFinishEvent",D)};
_.uP.prototype.onPlayerStateChange=function(V,D){V===1?T8V(D,(0,_.VW)(),jeX(D),this.selectedOption==="End of video"):V===0?(_.dm.cancelJob(Nc),D.setVideoTimeLeft(Qeo(0,0))):V===2&&_.dm.cancelJob(Nc);this.selectedOption==="End of video"?V===0?jQJ(this,D):V===2&&ymo(D):this.selectedOption!=="End of playlist"||HsV(this.playlistId)||(V===0?jQJ(this,D):V===2&&ymo(D))};
_.uP.prototype.onSeekComplete=function(V){V.getPlayerState()===2&&T8V(V,(0,_.VW)(),jeX(V),this.selectedOption==="End of video",!0)};
_.uP.prototype.onCueRangeEnter=function(V,D){V==="sleep-timer-fade-audio"&&Kdf(D,(D.getDuration()-D.getProgressState().current)*1E3)};
_.uP.prototype.onCueRangeExit=function(V,D){V==="sleep-timer-fade-audio"&&D.getPlayerState()!==0&&ymo(D,!0)};
var GFq=function(V,D){D.addCueRange("sleep-timer-fade-audio",D.getDuration()-15,D.getDuration());D.addEventListener("onCueRangeEnter",function(f){V.onCueRangeEnter(f,D)});
D.addEventListener("onCueRangeExit",function(f){V.onCueRangeExit(f,D)})},lIJ=function(V,D){D.removeCueRange("sleep-timer-fade-audio");
D.removeEventListener("onCueRangeEnter",function(f){V.onCueRangeEnter(f,D)});
D.removeEventListener("onCueRangeExit",function(f){V.onCueRangeExit(f,D)})},c9v=function(V,D){um(V.selectedOption)?lIJ(V,D):(_.dm.cancelJob(V.presetPauseSchedulerId),_.dm.cancelJob(V.presetFadeSchedulerId),V.presetPauseSchedulerId=0,V.presetFadeSchedulerId=0);
ymo(D,!0)},FU0=function(V,D){D.setLoop(!1);
D.setLoopVideo(!1);D.setLoopRange(null);(V=rmv(V.JSC$20532_watchApi))&&_.DY().resolve(_.C1).dispatch(_.y1("playlistLoopStateEntity",V,{key:V,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.dXv=function(V){_.cq.call(this);this.JSC$20535_watchApi=V;kFc(this);sQv(this);B_q(this);V=V.getRoot();if(V.is==="ytd-watch-flexy"||V.is==="ytd-watch-grid")V.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.ui0();_.c("web_watch_log_theater_mode_cookie_state")&&_.ZY.get("wide","0")==="1"&&_.Nnc("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.v(_.dXv,_.cq);var kFc=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20535_watchApi.playerApi,2);D=n.yieldResult;f=function(t){uIV(V,!!t)};
D.addEventListener("SIZE_CLICKED",f);V.addOnDisposeCallback(function(){D.removeEventListener("SIZE_CLICKED",f)});
_.yz(n)})},sQv=function(V){V.JSC$20535_watchApi.registerActionHandler("yt-toggle-theater-mode",function(D,f){uIV(V,D,f===void 0?!0:f)});
V.addOnDisposeCallback(function(){V.JSC$20535_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.dXv.prototype.getState=function(){return _.uf(_.Ol().getState())};
var uIV=function(V,D,f){f=f===void 0?!0:f;var n,t,J,H=_.c("enable_player_resize_transition")&&!!V.JSC$20535_watchApi.getWatchNextResponse()&&!((n=V.JSC$20535_watchApi.getWatchNextResponse())==null?0:(t=n.contents)==null?0:(J=t.twoColumnWatchNextResults)==null?0:J.conversationBar);_.vjc(function(){_.Ol().dispatch(_.nA({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:D}}));_.c("theater_mode_scroll_to_top_killswitch")||V.JSC$20535_watchApi.scrollWatchTo(0,!1);_.UX()&&_.c("external_fullscreen")&&_.Vv(document.documentElement);
B_q(V);f&&_.j1("wide",D?"1":"0",-1);_.o4(V.JSC$20535_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);V.JSC$20535_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:D});D&&_.ui0()},{shouldWrap:H})},B_q=function(V){var D;
_.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20535_watchApi.playerApi,2);D=f.yieldResult;D.setSizeStyle(!0,V.getState());_.yz(f)})};var zx3=function(V){_.cq.call(this);var D=this;this.playerApi=V;this.timeToPanelSyncKeyMap={};var f;if(V==null?0:(f=V.isReady)==null?0:f.call(V)){f=_.yX(_.DY().resolve(_.C1),function(t){return t.entities.timedMarkersListSyncEntity||{}},function(t,J){t=t===void 0?{}:t;
J=J===void 0?{}:J;for(var H=_.r(Object.keys(J)),Q=H.next();!Q.done;Q=H.next())Q=Q.value,t[Q]!==J[Q]&&N_V(D,J[Q]);J=_.r(Object.keys(t));for(H=J.next();!H.done;H=J.next())H=H.value,Q=t[H],D.timeToPanelSyncKeyMap[H]&&mXJ(D,Q)});
this.addOnDisposeCallback(f);var n=function(t){D.onCueRangeEnter(t)};
V.addEventListener("onCueRangeEnter",n);this.addOnDisposeCallback(function(){var t;(t=V.removeEventListener)==null||t.call(V,"onCueRangeEnter",n)})}};
_.v(zx3,_.cq);
var mXJ=function(V,D){var f,n;if((f=V.playerApi)==null?0:(n=f.isReady)==null?0:n.call(f)){var t;if((f=D==null?void 0:(t=D.timedListData)==null?void 0:t.sections)&&D!=null&&D.key)for(t=_.r(f),f=t.next();!f.done;f=t.next())if(f=f.value,f.timedSyncDataList&&f.sectionId)for(n=0;n<f.timedSyncDataList.length;n++){var J=f.timedSyncDataList[n];J.syncItemId&&V.playerApi.addCueRange(f.sectionId+"_"+D.key+"_"+J.syncItemId,Number(J.videoTimeMs)/1E3,n===f.timedSyncDataList.length-1?0x8000000000000:Number(f.timedSyncDataList[n+
1].videoTimeMs)/1E3)}}},N_V=function(V,D){var f,n;
if((f=V.playerApi)==null?0:(n=f.isReady)==null?0:n.call(f)){var t;if((f=D==null?void 0:(t=D.timedListData)==null?void 0:t.sections)&&D!=null&&D.key)for(t=_.r(f),f=t.next();!f.done;f=t.next())if(f=f.value,f.timedSyncDataList&&f.sectionId){n=_.r(f.timedSyncDataList);for(var J=n.next();!J.done;J=n.next())J=J.value,J.syncItemId&&V.playerApi.removeCueRange(f.sectionId+"_"+D.key+"_"+J.syncItemId)}}};
zx3.prototype.onCueRangeEnter=function(V){for(var D=_.r(Object.keys(this.timeToPanelSyncKeyMap)),f=D.next();!f.done;f=D.next()){f=f.value;var n=_.r(V.split("_"+f+"_")),t=n.next().value;n=n.next().value;if(t&&n){V=_.DY().resolve(_.C1);D=this.timeToPanelSyncKeyMap[f];var J=_.mBL(V.getState(),D);f=Rx0(f,t,n);if(f===-1)break;f={activeSyncId:n,activeItemIndex:f,activeSectionInfo:{sectionIdentifier:t}};J?V.dispatch(_.XW("markersEngagementPanelSyncEntity",D,f)):V.dispatch(_.y1("markersEngagementPanelSyncEntity",
D,Object.assign({},{key:D},f)));break}}};
var Rx0=function(V,D,f){var n=_.DY().resolve(_.C1),t,J;V=(t=kpo(n.getState(),V))==null?void 0:(J=t.timedListData)==null?void 0:J.sections;if(!V)return-1;t=0;J=_.r(V);for(V=J.next();!V.done;V=J.next()){V=V.value;n=V.timedSyncDataList||[];if(V.sectionId===D)return D=n.findIndex(function(H){return H.syncItemId===f}),D===-1?D:t+D;
t+=n.length}return-1};_.XDo=function(V){_.cq.call(this);var D=this;this.JSC$20548_watchApi=V;this.unresolvedCommands=[];this.JSC$20548_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(f){CJZ(D,f)});
this.addOnDisposeCallback(function(){D.JSC$20548_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
qNB(this)};
_.v(_.XDo,_.cq);var qNB=function(V){var D;_.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20548_watchApi.playerApi,2);D=f.yieldResult;if(V.isDisposed())return f.return();V.timedSyncObserver=new zx3(D);V.unresolvedCommands.length&&(V.unresolvedCommands.forEach(function(n){return CJZ(V,n)}),V.unresolvedCommands=[]);
_.wX(V,V.timedSyncObserver);_.yz(f)})},CJZ=function(V,D){if(V.timedSyncObserver){var f=_.g(D,p0J);
if(f&&f.timedSyncEntityKey&&f.panelSyncEntityKey){V=V.timedSyncObserver;D=f.timedSyncEntityKey;var n=f.panelSyncEntityKey;f=!!f.isEnabled;f=f===void 0?!0:f;var t=_.DY().resolve(_.C1);t=kpo(t.getState(),D);f?V.timeToPanelSyncKeyMap[D]||(V.timeToPanelSyncKeyMap[D]=n,mXJ(V,t)):(delete V.timeToPanelSyncKeyMap[D],N_V(V,t))}}else V.unresolvedCommands.push(D)};var ET0=_.MA(function(V){var D=V.data,f=V.maybeLogSmartSkipClientData,n=null,t=null,J=_.c("web_enable_auto_focus_for_timely_action_button"),H=function(){n=document.activeElement},Q=function(){D().smartSkipMetadata&&(n=document.activeElement,_.HSq(function(){return t}))},T=function(Z){if(D().smartSkipMetadata&&(!Z||Z.key!=="Enter")){n&&n.isConnected&&(_.HSq(function(){return n}),n=null);
var l;(l=t)==null||l.blur()}};
V=_.jl(function(){f==null||f(!0,D());return!1});
var y=_.h2(_.Ew(function(){return D().rendererContext},{onTap:function(Z,l){l({disableClickTracking:!0})}}),_.MG({visibilityCallback:function(Z){if(J)Z?t&&D().smartSkipMetadata&&(Q(),document.addEventListener("focusin",H)):(document.removeEventListener("focusin",H),T());
else if(Z){Z=_.qs(D().rendererContext);var l=Number(D().maxVisibleDurationMilliseconds),G,F=(G=_.g(D().rendererContext,_.Z8))==null?void 0:G.label;Z&&l&&F&&(G={label:F,command:Z,durationMs:l},_.DY().resolve(_.TZ).enqueue(G))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.B9(function(){if(J){var Z;if((t=(Z=y.value)==null?void 0:Z.querySelector("button"))&&D().smartSkipMetadata){var l;(l=y.value)==null||l.addEventListener("keydown",T)}}});
_.dc(function(){J&&(t&&D().smartSkipMetadata&&t.removeEventListener("keydown",T),document.removeEventListener("focusin",H),T())});
return _.K("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:y,"on:click":V},_.K(_.BW,{data:function(){return D().content}},{buttonViewModel:_.HO}))},"Ij");var A93=_.MA(function(V){var D=V.data,f=V.playerApi,n=_.DY().resolve(_.jMF);V=_.r(_.Gk(function(){D()}));
var t=V.next().value,J=V.next().value,H=function(){return Gxw(D(),t())},Q=function(y,Z){var l,G,F=(l=_.g(Z==null?void 0:Z.rendererContext,_.GK))==null?void 0:(G=l.loggingDirectives)==null?void 0:G.trackingParams;
if((Z=Z==null?void 0:Z.smartSkipMetadata)&&Z.loggingData&&(G=Z.loggingData,Z=G.algorithmId,l=G.startMilliseconds,G=G.endMilliseconds,Z&&l!==void 0&&G!==void 0)){var k,d;y={smartSkipData:Object.assign({},{versionName:Z,startMediaTimeMs:l,endMediaTimeMs:G},y&&{userInteractionMediaTimeMs:(Math.floor(((k=_.hI())==null?void 0:(d=k.getPlayer())==null?void 0:d.getCurrentTime())||0)*1E3).toString()})};k=_.Ni();var z;F&&(z=_.gs(F));k&&z&&_.I4(k,z,y)}},T=function(y,Z){var l=Gxw(D(),y);
if(l){var G=_.g(l,RR),F;if(F=Z)F=f(),l=_.g(l,RR),F=l!=null&&l.smartSkipMetadata?!(F==null?0:F.isSameMarkerTypeVisible((l==null?void 0:l.smartSkipMetadata.markerKey)||"")):!0;if(F){var k,d;(G==null?0:(k=G.smartSkipMetadata)==null?0:(d=k.loggingData)==null?0:d.isCounterfactual)||(Q(!1,G),J(y))}else Z||t()!==y||J(void 0)}};
_.BJ(function(){var y=D().timelyActions;if(y){y=_.r(y);for(var Z=y.next();!Z.done;Z=y.next()){Z=_.g(Z.value,RR);var l=void 0;(l=Z)!=null&&l.cueRangeId&&n.timelyActionsMap.set(Z.cueRangeId,T)}_.dc(function(){n.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.K("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.K(_.BW,{data:H},{timelyActionViewModel:function(y){return _.K(ET0,{data:y.data,maybeLogSmartSkipClientData:function(){Q(!0,_.g(H(),RR))}})}}))},"Jj");_.YNB=function(V){_.cq.call(this);this.JSC$20560_watchApi=V;V=_.r(_.HJ({},void 0,"pLDp2"));this.timelyActionsOverlay=V.next().value;this.setTimelyActionsOverlay=V.next().value;aIB(this)};
_.v(_.YNB,_.cq);var aIB=function(V){var D,f,n,t;_.w(function(J){if(J.nextAddress==1)return $XR(V),i3B(V),V.timelyActionsContainer=document.createElement("div"),_.b(J,V.JSC$20560_watchApi.playerApi,2);D=J.yieldResult;(n=(f=D).insertTimelyActionUi)==null||n.call(f,V.timelyActionsContainer);t=_.sG(V.timelyActionsContainer,function(){return _.K(A93,{data:V.timelyActionsOverlay,playerApi:D})});
V.addOnDisposeCallback(t);_.yz(J)})},i3B=function(V){var D=V.JSC$20560_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$XR(V)});
V.addOnDisposeCallback(function(){V.JSC$20560_watchApi.unsubscribeByKey(D)})},$XR=function(V){var D=V.JSC$20560_watchApi.getWatchNextResponse();
if(D){var f,n;if(D=_.g((f=D.playerOverlays)==null?void 0:(n=f.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel,LdX)){var t;(t=V.setTimelyActionsOverlay)==null||t.call(V,D)}}};_.WUB=function(V){_.cq.call(this);this.JSC$20564_watchApi=V;SNX(this)};
_.v(_.WUB,_.cq);var SNX=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20564_watchApi.playerApi,2);D=n.yieldResult;f=function(t){_.bS.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.g(t,_.DDB)},popupType:"TOAST"}})};
D.addEventListener("onYtShowToast",f);V.addOnDisposeCallback(function(){D.removeEventListener("onYtShowToast",f)});
_.yz(n)})};var pD0,O3v,Vjw,LUR,IIJ,UXB,MMR,hxc,DcR,f0v;pD0=!1;_.xXq=function(V){_.cq.call(this);this.JSC$20567_watchApi=V;this.fullscreen=this.theater=!1;LUR(this);IIJ(this);O3v(this)};
_.v(_.xXq,_.cq);O3v=function(V){var D,f,n;_.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$20567_watchApi.playerApi,2);D=t.yieldResult;if(V.isDisposed())return t.return();f=V.JSC$20567_watchApi.getElement("CINEMATICS");if(!f)return t.return();V.JSC$20567_cinematicController=new _.PF(f,D);_.wX(V,V.JSC$20567_cinematicController);_.g6W(V.JSC$20567_cinematicController);MMR(V,_.Ztn());n=V.JSC$20567_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(J){hxc(V,J)});
V.addOnDisposeCallback(function(){V.JSC$20567_watchApi.unsubscribeByKey(n)});
UXB(V);hxc(V,V.JSC$20567_cinematicController.isAllowed());_.c("web_cinematic_manager_redux_killswitch")?_.mE(V,V.fullscreen,V.theater):Vjw(V);DcR(V);_.yz(t)})};
Vjw=function(V){V.fullscreen=_.Ns(_.Ol().getState());V.theater=_.uf(_.Ol().getState());_.mE(V,V.fullscreen,V.theater);var D=_.yX(_.Ol(),_.Ns,function(n){V.fullscreen=n;_.mE(V,V.fullscreen,V.theater)}),f=_.yX(_.Ol(),_.uf,function(n){V.theater=n;
_.mE(V,V.fullscreen,V.theater)});
V.addOnDisposeCallback(D);V.addOnDisposeCallback(f)};
LUR=function(V){var D=V.JSC$20567_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UXB(V)});
V.addOnDisposeCallback(function(){V.JSC$20567_watchApi.unsubscribeByKey(D)})};
IIJ=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20567_watchApi.playerApi,2);D=n.yieldResult;f=function(t){MMR(V,t)};
D.addEventListener("cinematicSettingsToggleChange",f);V.addOnDisposeCallback(function(){D.removeEventListener("cinematicSettingsToggleChange",f)});
_.yz(n)})};
UXB=function(V){var D=V.JSC$20567_watchApi.getWatchNextResponse(),f;D=_.g(D==null?void 0:(f=D.pageVisualEffects)==null?void 0:f[0],_.Fg);var n;(n=V.JSC$20567_cinematicController)==null||_.kfc(n,D)};
MMR=function(V,D){var f;(f=V.JSC$20567_cinematicController)==null||_.v63(f,D);f0v(V)};
hxc=function(V,D){var f;_.w(function(n){if(n.nextAddress==1)return _.c("kevlar_watch_cinematics_invisible")&&(D=!1),_.b(n,V.JSC$20567_watchApi.playerApi,2);f=n.yieldResult;f.updateCinematicSettings(D);f0v(V);_.yz(n)})};
DcR=function(V){var D=_.Gm();if(_.c("kevlar_measure_ambient_mode_idle")&&!D.getFlag(192)&&!pD0){pD0=!0;var f=_.gq(_.dm,function(){_.DY().resolve(_.evw).start(1E4)},5E3);
V.addOnDisposeCallback(function(){_.dm.cancelJob(f);_.DY().resolve(_.evw).stop()})}};
_.mE=function(V,D,f){V.fullscreen=D;V.theater=f;var n;(n=V.JSC$20567_cinematicController)==null||n.setFullscreen(V.fullscreen,V.theater);if(_.c("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(V.theater||V.fullscreen){var t;(t=V.JSC$20567_cinematicController)==null||_.sZX(t)}else if((V=V.JSC$20567_cinematicController)!=null){var J;(J=V.currentCinematicEffect)==null||J.pause()}};
f0v=function(V){if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")){var D;V.JSC$20567_watchApi.getRoot().toggleCinematicsActive(!((D=V.JSC$20567_cinematicController)==null||!D.isEnabled()))}};_.oaw=function(V){_.cq.call(this);var D=this;this.JSC$20570_watchApi=V;this.commentsReady=!1;this.setCommentsJobId=0;V=_.yX(_.Ol(),_.sF,function(){na0(D)});
this.addOnDisposeCallback(V);var f=this.JSC$20570_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){tjW(D)}),n=this.JSC$20570_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){tjW(D)});
this.addOnDisposeCallback(function(){D.JSC$20570_watchApi.unsubscribeByKey(f);D.JSC$20570_watchApi.unsubscribeByKey(n)});
var t=function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&PmW(D,"false")};
this.JSC$20570_watchApi.getRoot().addEventListener("yt-page-data-will-update",t);this.addOnDisposeCallback(function(){D.JSC$20570_watchApi.getRoot().removeEventListener("yt-page-data-will-update",t)});
tjW(this)};
_.v(_.oaw,_.cq);var tjW=function(V){V.commentsReady=!1;_.dm.cancelJob(V.setCommentsJobId);V.setCommentsJobId=_.gq(_.dm,function(){na0(V)},1E3)},na0=function(V){if(!V.commentsReady){_.zm("cmi");
_.dm.cancelJob(V.setCommentsJobId);var D,f,n,t,J=(D=V.JSC$20570_watchApi.getWatchNextResponse())==null?void 0:(f=D.contents)==null?void 0:(n=f.twoColumnWatchNextResults)==null?void 0:(t=n.results)==null?void 0:t.results.contents;D=void 0;if(J&&J.length)for(J=_.r(J),f=J.next();!f.done;f=J.next())if(f=f.value,t=n=void 0,((n=f)==null?void 0:(t=n.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"){_.c("web_watch_provide_undefined_comments")?D=f.itemSectionRenderer:V.JSC$20570_watchApi.provideRenderingData("COMMENTS",
f.itemSectionRenderer);PmW(V,"true");break}_.c("web_watch_provide_undefined_comments")&&V.JSC$20570_watchApi.provideRenderingData("COMMENTS",D);V.commentsReady=!0;V.JSC$20570_watchApi.dispatchEvent("yt-watch-comments-ready")}},PmW=function(V,D){var f;
(f=V.JSC$20570_watchApi.getElement("COMMENTS"))==null||f.setAttribute("canScheduleJobs",D)};_.qV=function(V){_.cq.call(this);var D=this;this.JSC$20573_watchApi=V;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.c("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.c("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.c("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.tU("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)JQR(this);
else{var f=this.JSC$20573_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){zM(D);RM(D)}),n=this.JSC$20573_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){CU(D);
RM(D)});
this.JSC$20573_watchApi.getRoot().is==="ytd-watch-grid"&&_.c("swatcheroo_pbs_load_grid")&&(rQW(this),HVX(this));this.addOnDisposeCallback(function(){D.JSC$20573_watchApi.unsubscribeByKey(f);D.JSC$20573_watchApi.unsubscribeByKey(n);_.dm.cancelJob(D.provideRichGridJobId)});
zM(this);CU(this)}};
_.v(_.qV,_.cq);var JQR=function(V){var D=V.JSC$20573_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){V.providePlayerJobId=_.sw(_.dm,function(){zM(V);RM(V)},V.provideAllDataDelayMs)}),f=V.JSC$20573_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){V.provideWatchNextJobId=_.sw(_.dm,function(){CU(V);
RM(V)},V.provideAllDataDelayMs)}),n=V.JSC$20573_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){V.provideWatchNextJobId=_.sw(_.dm,function(){CU(V);
RM(V)},V.provideAllDataDelayMs)});
V.JSC$20573_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.gq(_.dm,function(){zM(V);CU(V);RM(V)},100)});
V.JSC$20573_watchApi.addPageDisposeJob(function(){_.dm.cancelJob(V.provideWatchNextJobId);_.dm.cancelJob(V.providePlayerJobId)});
V.addOnDisposeCallback(function(){V.JSC$20573_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");V.JSC$20573_watchApi.unsubscribeByKey(D);V.JSC$20573_watchApi.unsubscribeByKey(f);V.JSC$20573_watchApi.unsubscribeByKey(n);_.dm.cancelJob(V.providePlayerJobId);_.dm.cancelJob(V.provideWatchNextJobId)});
zM(V);CU(V)},zM=function(V){var D=V.JSC$20573_watchApi.getPlayerResponse(),f,n,t=(n=D==null?void 0:(f=D.playabilityStatus)==null?void 0:f.messageRenderers)!=null?n:[],J,H;
D=(H=D==null?void 0:(J=D.playabilityStatus)==null?void 0:J.messages)!=null?H:[];J=_.r(D);for(H=J.next();!H.done;H=J.next())t.push({alertRenderer:{text:_.pA(H.value),type:"WARNING"}});V.JSC$20573_watchApi.provideRenderingData("ALERTS",t)},CU=function(V){var D=[],f,n,t,J=V.JSC$20573_watchApi.getWatchNextResponse(),H,Q,T,y,Z=J==null?void 0:(H=J.contents)==null?void 0:(Q=H.twoColumnWatchNextResults)==null?void 0:(T=Q.results)==null?void 0:(y=T.results)==null?void 0:y.contents;
if(Z)for(H=_.r(Z),Q=H.next();!Q.done;Q=H.next())if(Q=Q.value,Q.videoPrimaryInfoRenderer)var l=Q;else if(Q.videoSecondaryInfoRenderer){var G=Q;y=T=void 0;Q=Object.assign({},(T=Q.videoSecondaryInfoRenderer)==null?void 0:(y=T.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(Q.rows&&Q.collapsedItemCount!==void 0){Q.rows=Q.rows.slice(0,Q.collapsedItemCount).filter(function(WH){return!!WH.richMetadataRowRenderer});
Q.collapsedItemCount=Q.rows.length;var F={metadataRowContainerRenderer:Q}}}else if(Q.merchandiseShelfRenderer)var k=Q;else if(Q.ticketShelfRenderer)var d=Q;else if(Q.expandableMetadataRenderer)var z=Q;else if(Q.itemSectionRenderer)if(T=Q.itemSectionRenderer.contents,y=void 0,V.directlyProvideComments&&((y=Q.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section")_.zm("cmi"),V.JSC$20573_watchApi.provideRenderingData("COMMENTS",Q.itemSectionRenderer);else if(T)for(Q=_.r(T),T=
Q.next();!T.done;T=Q.next())if(T=T.value,T.commentsEntryPointHeaderRenderer)var C=T;else if(T.clarificationRenderer||T.infoPanelContainerRenderer||T.infoPanelContentRenderer||T.emergencyOneboxRenderer){D.push(T);var A=A||!!G}else T.limitedStateMessageRenderer?n=T:T.videoMetadataCarouselViewModel&&(t=T);if(_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&k&&d){var O=k;k=void 0}if(V.provideWatchNextSecondaryResults){var W,I,x;V.JSC$20573_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
J==null?void 0:(W=J.contents)==null?void 0:(I=W.twoColumnWatchNextResults)==null?void 0:(x=I.secondaryResults)==null?void 0:x.secondaryResults)}if(V.JSC$20573_watchApi.getRoot().is==="ytd-watch-grid"){var oY,wZ;V.JSC$20573_watchApi.provideRenderingData("LIVE_CHAT",J==null?void 0:(oY=J.contents)==null?void 0:(wZ=oY.twoColumnWatchNextResults)==null?void 0:wZ.conversationBar)}var ZZ,sd,NU,Bn;(W=J==null?void 0:(ZZ=J.contents)==null?void 0:(sd=ZZ.twoColumnWatchNextResults)==null?void 0:(NU=sd.secondaryResults)==
null?void 0:(Bn=NU.secondaryResults)==null?void 0:Bn.offerModule)&&(W.donationShelfRenderer||W.donationUnavailableRenderer)&&V.JSC$20573_watchApi.getRoot().is!=="ytd-watch-grid"&&(f=W);ZZ=V.JSC$20573_watchApi.getPlayerResponse();if(!ZZ||!_.OPF(ZZ.playabilityStatus,J==null?void 0:J.playerOverlays)){var aY;if(J==null?0:(aY=J.contents)==null?0:aY.singleColumnWatchNextResults){var Ed,V0;var kf=J==null?void 0:(Ed=J.contents.singleColumnWatchNextResults.results)==null?void 0:(V0=Ed.results)==null?void 0:
V0.contents}else{var mY,Ko,Eu,y0;aY=!!(Z==null?0:(mY=Z[0])==null?0:(Ko=mY.itemSectionRenderer)==null?0:(Eu=Ko.contents)==null?0:(y0=Eu[0])==null?0:y0.backgroundPromoRenderer);var BH,wu;mY=!!(J==null?0:(BH=J.contents)==null?0:(wu=BH.twoColumnWatchNextResults)==null?0:wu.secondaryResults);aY&&!mY&&(kf=Z)}}Z=D[0];BH=D[1];A&&D.length===1&&(BH=Z,Z=void 0);V.JSC$20573_watchApi.provideRenderingData("PRIMARY_INFO",l);V.JSC$20573_watchApi.provideRenderingData("SECONDARY_INFO",G);V.JSC$20573_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
C);V.JSC$20573_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",t);V.JSC$20573_watchApi.provideRenderingData("CLARIFICATION",Z);V.JSC$20573_watchApi.provideRenderingData("RICH_METADATA",F);V.JSC$20573_watchApi.provideRenderingData("MERCH_SHELF",k);_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&V.JSC$20573_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",O);V.JSC$20573_watchApi.provideRenderingData("TICKET_SHELF",d);V.JSC$20573_watchApi.provideRenderingData("LIMITED_STATE",n);V.JSC$20573_watchApi.getRoot().is!==
"ytd-watch-grid"&&V.JSC$20573_watchApi.provideRenderingData("DONATION_SHELF",f);V.JSC$20573_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",kf);V.JSC$20573_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",BH);V.JSC$20573_watchApi.provideRenderingData("EXPANDABLE_METADATA",z);if(V.swatcherooProvideAllDataOnScheduledJob){var lF,rZ,wP,gP,uX,cH;l=J==null?void 0:(lF=J.contents)==null?void 0:(rZ=lF.twoColumnWatchNextResults)==null?void 0:(wP=rZ.secondaryResults)==null?void 0:(gP=wP.secondaryResults)==
null?void 0:(uX=gP.results)==null?void 0:(cH=uX[0])==null?void 0:cH.richGridRenderer;V.JSC$20573_watchApi.provideRenderingData("RICH_GRID_RENDERER",l)}};
_.qV.prototype.hasCompanionAds=function(V){var D,f;return(f=V==null?void 0:(D=V.adPlacements)==null?void 0:D.some(function(n){var t,J,H,Q;return(n==null?void 0:(t=n.adPlacementRenderer)==null?void 0:(J=t.renderer)==null?void 0:J.actionCompanionAdRenderer)||(n==null?void 0:(H=n.adPlacementRenderer)==null?void 0:(Q=H.renderer)==null?void 0:Q.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?f:!1};
var RM=function(V){if(!_.c("swaterdoo_ps_wn_handle_ks")){V.swatcherooProvideAllDataOnScheduledJob||HVX(V,3E3);var D=V.JSC$20573_watchApi.getPlayerResponse(),f,n,t,J,H,Q=(f=V.JSC$20573_watchApi.getWatchNextResponse())==null?void 0:(n=f.contents)==null?void 0:(t=n.twoColumnWatchNextResults)==null?void 0:(J=t.secondaryResults)==null?void 0:(H=J.secondaryResults)==null?void 0:H.offerModule;D=V.hasCompanionAds(D);var T,y;f=(Q==null?void 0:(T=Q.tvfilmOfferModuleRenderer)==null?void 0:T.clientShouldSuppressIfCompanionAdDisplayed)||
(Q==null?void 0:(y=Q.unlimitedOfferModuleRenderer)==null?void 0:y.suppressIfCompanionAds);T=D&&f;V.JSC$20573_watchApi.getRoot().is==="ytd-watch-grid"&&V.JSC$20573_watchApi.provideRenderingData("OFFER_MODULE",T?void 0:Q)}},HVX=function(V,D){_.c("swatcheroo_pbs_load_grid")&&(V.provideRichGridJobId&&_.dm.cancelJob(V.provideRichGridJobId),V.provideRichGridJobId=_.sw(_.dm,function(){V.provideRichGridJobId=0;
var f,n,t,J,H,Q,T,y=(f=V.JSC$20573_watchApi.getWatchNextResponse())==null?void 0:(n=f.contents)==null?void 0:(t=n.twoColumnWatchNextResults)==null?void 0:(J=t.secondaryResults)==null?void 0:(H=J.secondaryResults)==null?void 0:(Q=H.results)==null?void 0:(T=Q[0])==null?void 0:T.richGridRenderer;y&&V.JSC$20573_watchApi.provideRenderingData("RICH_GRID_RENDERER",y)},D))},rQW=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20573_watchApi.playerApi,2);D=n.yieldResult;f=function(){V.onPlaybackStart()};
D.addEventListener("onPlaybackStartExternal",f);V.addOnDisposeCallback(function(){D.removeEventListener("onPlaybackStartExternal",f)});
_.yz(n)})};
_.qV.prototype.onPlaybackStart=function(){HVX(this)};_.QRv=function(V){_.cq.call(this);var D=this;this.JSC$20583_watchApi=V;V.playerApi.then(function(f){D.player=f});
this.gestures=new _.HL(this.JSC$20583_watchApi.getRoot(),V.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.mKv(_.Ol().getState())&&_.sF(_.Ol().getState())<=0)if(_.Ns(_.Ol().getState())){var f;(f=D.player)==null||f.toggleFullscreen()}else _.o4(D.JSC$20583_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wFB(this)};
_.v(_.QRv,_.cq);var wFB=function(V){var D=_.yX(_.Ol(),_.Ns,function(f){V.onFullscreenChanged(f)});
V.addOnDisposeCallback(D);D=_.yX(_.Ol(),_.sF,function(f){V.gestures&&(f>0?V.gestures.detach():V.gestures.attach())});
V.addOnDisposeCallback(D)};
_.QRv.prototype.onFullscreenChanged=function(V){this.gestures&&this.gestures.update(V)};_.bVo=function(V){_.cq.call(this);var D=this;this.JSC$20586_watchApi=V;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(V.subscribeToActiveChanged(function(f){D.onActiveChanged(f)}));
TeJ(this)};
_.v(_.bVo,_.cq);var KGw=function(V){if(_.c("swatcheroo_page_dispose_all_watch_data"))V.pageDisposalDataTypes=Object.values(ClR).filter(function(f){return f!=="PLAYLIST"});
else if(_.c("swatcheroo_page_dispose_rich_grid")){var D;(D=V.pageDisposalDataTypes)==null||D.push("RICH_GRID_RENDERER")}},TeJ=function(V){_.c("swatcheroo_enable_ghost_cards")&&(KGw(V),V.JSC$20586_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.dm.cancelJob(V.clearDataJobId);
V.clearDataJobId=0}),V.runPageDisposeJob=function(){var D=_.DY().resolve(_.xl).getDestinationPageType()==="watch";
V.clearDataJobId=_.sw(_.dm,V.runClearDataJob,D?0:_.tU("web_watch_delay_page_dispose_ms",1E4))},V.runClearDataJob=function(){yQR(V)},V.runOnYtNavigateAwayFinish=function(){V.clearDataJobId&&(_.dm.cancelJob(V.clearDataJobId),V.clearDataJobId=0,yQR(V))},document.addEventListener("yt-navigate-finish",V.runOnYtNavigateAwayFinish),V.JSC$20586_watchApi.addPageDisposeJob(V.runPageDisposeJob),V.addOnDisposeCallback(function(){V.JSC$20586_watchApi.removePageDisposeJob(V.runPageDisposeJob);
V.JSC$20586_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",V.runOnYtNavigateAwayFinish)}))},yQR=function(V){V.pageDisposalDataTypes.forEach(function(D){V.JSC$20586_watchApi.provideRenderingData(D,void 0)});
V.clearDataJobId=0};
_.bVo.prototype.onActiveChanged=function(V){V&&((V=document.querySelector("#watch-page-skeleton"))&&_.ZC(V),ZVZ(this),document.body.removeAttribute("no-y-overflow"),_.EG("IS_SHELL_LOAD")&&_.cwB())};
var ZVZ=function(V){_.w(function(D){if(D.nextAddress==1)return _.b(D,V.JSC$20586_watchApi.playerApi,2);_.LL();_.yz(D)})};var jRB;jRB=_.c("kevlar_watch_while_counterfactual")?0:.25;_.Xq=function(V){_.cq.call(this);this.JSC$20589_watchApi=V;this.JSC$20589_watchWhileEnabled=_.c("kevlar_watch_while_v2");this.pipEnabled=_.c("web_enable_pip_on_miniplayer");l0V(this);GYR(this);efZ(this)};
_.v(_.Xq,_.cq);var l0V=function(V){V.JSC$20589_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){cQV(V)});
V.addOnDisposeCallback(function(){V.JSC$20589_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},GYR=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20589_watchApi.playerApi,2);D=n.yieldResult;f=function(){cQV(V)};
D.addEventListener("onCollapseMiniplayer",f);V.addOnDisposeCallback(function(){D.removeEventListener("onCollapseMiniplayer",f)});
_.yz(n)})},efZ=function(V){var D=V.JSC$20589_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&D&&V.JSC$20589_watchWhileEnabled&&(V.playerIntersectionObserver=new IntersectionObserver(function(f){V.handleIntersect(f)},{threshold:[jRB]}),V.playerIntersectionObserver.observe(D),V.addOnDisposeCallback(function(){var f;
(f=V.playerIntersectionObserver)==null||f.disconnect()}))},cQV=function(V){var D,f,n;
_.w(function(t){if(t.nextAddress==1){D=_.DY().resolve(_.xl);f=D.data;n=_.GAX(f.response,f.playerResponse);_.b$().miniplayerButtonActivation=!0;if(V.pipEnabled)return _.b$().watchPipActivation=!0,t.jumpTo(2);_.DY().resolve(_.qw).collapse();return _.b(t,_.b$().navigationFinishPromise,2)}if(t.nextAddress!=4)return _.b$().currentEndpoint=n.watchEndpoint||null,_.b(t,_.DY().resolve(_.qw).activate(V.JSC$20589_watchApi.getElement("PLAYER"),n,f),4);_.b$().userActivation=!0;_.yz(t)})};
_.Xq.prototype.handleIntersect=function(V){FGX(this,V[V.length-1])};
var FGX=function(V,D){V.watchWhileJobId&&_.dm.cancelJob(V.watchWhileJobId);V.watchWhileJobId=_.dm.addLowPriorityJob(function(){var f,n;return _.w(function(t){if(t.nextAddress==1)return V.watchWhileJobId=void 0,f=_.DY().resolve(_.qw),D.intersectionRatio>jRB?f.isMiniplayerActive()?_.b(t,f.deactivate(),0):t.jumpTo(0):(n=!f.isMiniplayerActive())?_.b(t,gaf(V),5):t.jumpTo(4);t.nextAddress!=4&&(n=t.yieldResult);if(!n)return t.jumpTo(0);_.b$().watchWhileActivation=!0;return _.b(t,vaf(V),0)})},100)},gaf=function(V){return _.w(function(D){return D.nextAddress==
1?_.c("kevlar_watch_while_paused")?D.return(!0):_.b(D,V.isPlayerPlaying(),2):D.return(D.yieldResult)})};
_.Xq.prototype.isPlayerPlaying=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20589_watchApi.playerApi,2);D=f.yieldResult;return f.return(D.getPlayerStateObject().isPlaying)})};
var vaf=function(V){var D,f;return _.w(function(n){D=_.DY().resolve(_.xl).data;f=_.GAX(D.response,D.playerResponse);_.b$().currentEndpoint=f.watchEndpoint||null;return _.b(n,_.DY().resolve(_.qw).activate(V.JSC$20589_watchApi.getElement("PLAYER"),f,D),0)})};_.Be3=function(V){_.cq.call(this);this.JSC$20593_watchApi=V;kY0(this);sRW(this)};
_.v(_.Be3,_.cq);var sRW=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20593_watchApi.playerApi,2);D=n.yieldResult;f=function(t){var J;t.sessionData&&t.sessionData.itct&&(J=t.sessionData.itct);var H=t.watchEndpoint;if(H&&t.sessionData&&t.sessionData.autonav)H=_.Iyd(H,J);else{var Q;H=_.U2(t.videoId,(Q=t.listId)!=null?Q:void 0,J)}J={endpoint:H};t.sessionData&&(J.tempData=t.sessionData);V.JSC$20593_watchApi.dispatchEvent("yt-navigate",J)};
D.addEventListener("onPlayVideo",f);V.addOnDisposeCallback(function(){D.removeEventListener("onPlayVideo",f)});
_.yz(n)})},kY0=function(V){var D=function(f){V.onYtNavigate(f)};
V.JSC$20593_watchApi.getRoot().addEventListener("yt-navigate",D);V.addOnDisposeCallback(function(){V.JSC$20593_watchApi.getRoot().removeEventListener("yt-navigate",D)})};
_.Be3.prototype.onYtNavigate=function(V){var D=this,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){if(l.nextAddress==1){if(!((f=V.detail)==null?0:(n=f.endpoint)==null?0:n.watchEndpoint))return l.return();t=V.detail.endpoint.watchEndpoint;J=D.JSC$20593_watchApi.getWatchNextResponse();Q=_.g((H=J)==null?void 0:H.currentVideoEndpoint,_.pl);if(!Q)return l.return();if(t.videoId!==Q.videoId||t.playlistId&&t.playlistId!==Q.playlistId||typeof t.startTimeSeconds!=="number")return l.jumpTo(0);V.stopPropagation();
(T=_.c("kevlar_watch_while_v2")&&!_.c("kevlar_watch_while_counterfactual"))&&_.DY().resolve(_.qw).isMiniplayerActive()||D.JSC$20593_watchApi.scrollWatchTo(0,!0);return _.b(l,D.JSC$20593_watchApi.playerApi,3)}y=l.yieldResult;Z=t.startTimeSeconds;y.seekTo(Z,void 0,void 0,void 0,84);y.wakeUpControls();Z<y.getDuration()&&y.playVideo();_.yz(l)})};_.uJR=function(V){_.cq.call(this);var D=this;this.JSC$20596_watchApi=V;var f=this.JSC$20596_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dcw(D)});
this.addOnDisposeCallback(function(){D.JSC$20596_watchApi.unsubscribeByKey(f)});
dcw(this)};
_.v(_.uJR,_.cq);var dcw=function(V){var D=V.JSC$20596_watchApi.getWatchNextResponse();if(D){var f,n=[].concat(_.sz((f=D==null?void 0:D.engagementPanels)!=null?f:[]));n.unshift.apply(n,_.sz(Nef(D)));V.JSC$20596_watchApi.provideRenderingData("ENGAGEMENT_PANELS",n)}},mcR=function(V){var D,f,n,t=(D=V.engagementPanels)==null?void 0:(f=D.find(function(F){var k;
return((k=F.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(n=f.engagementPanelSectionListRenderer.content)==null?void 0:n.structuredDescriptionContentRenderer,J;
if(_.g(t==null?void 0:(J=t.items)==null?void 0:J.find(function(F){return!!_.g(F,wPR)}),wPR))return!0;
var H,Q,T,y;if(V=(((H=V.contents)==null?void 0:(Q=H.twoColumnWatchNextResults)==null?void 0:(T=Q.results)==null?void 0:(y=T.results)==null?void 0:y.contents)||[]).find(function(F){return F.videoPrimaryInfoRenderer})){var Z,l,G;
return(((Z=V.videoPrimaryInfoRenderer)==null?void 0:(l=Z.videoActions)==null?void 0:(G=l.menuRenderer)==null?void 0:G.flexibleItems)||[]).some(function(F){F=_.g(F,_.CyH);if(!F)return!1;var k,d;F=(k=F.topLevelButton)==null?void 0:(d=k.buttonViewModel)==null?void 0:d.onTap;if(!F)return!1;k=_.Xo(F);if(!k)return!1;var z;return((z=_.g(k,_.dK))==null?void 0:z.panelIdentifier)==="PAyouchat"})}return!1},Nef=function(V){var D=[];
if(!_.c("web_watch_inject_placeholder_fantasy_panel_killswitch")){var f,n,t,J=(f=V.engagementPanels)==null?void 0:(n=f.find(function(Q){var T;return((T=Q.engagementPanelSectionListRenderer)==null?void 0:T.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(t=n.engagementPanelSectionListRenderer.content)==null?void 0:t.structuredDescriptionContentRenderer,H;
_.g(J==null?void 0:(H=J.items)==null?void 0:H.find(function(Q){return!!_.g(Q,Yvw)}),Yvw)&&(f=_.qvY("PAsports_fantasy"),f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D.push(f))}mcR(V)&&(V=_.qvY("PAyouchat"),V.engagementPanelSectionListRenderer.targetId="PAyouchat",V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D.push(V));
return D};_.Rfq=function(V){_.cq.call(this);this.JSC$20599_watchApi=V;zfZ(this)};
_.v(_.Rfq,_.cq);var zfZ=function(V){V.JSC$20599_watchApi.registerActionHandler("yt-loop-command",function(D){Cmo(V,D)});
V.JSC$20599_watchApi.registerActionHandler("yt-repeat-chapter-command",function(D){qFo(V,D)});
V.addOnDisposeCallback(function(){V.JSC$20599_watchApi.unregisterActionHandler("yt-loop-command");V.JSC$20599_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Cmo=function(V,D){var f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20599_watchApi.playerApi,2);f=n.yieldResult;_.g(D,isB).loop?(f.setLoopRange({startTimeMs:Number(_.g(D,isB).startTimeMs),endTimeMs:Number(_.g(D,isB).endTimeMs),postId:_.g(D,isB).postId,type:"clips"}),f.playVideo()):f.setLoopRange(null);_.yz(n)})},qFo=function(V,D){var f,n;
_.w(function(t){if(t.nextAddress==1)return _.b(t,V.JSC$20599_watchApi.playerApi,2);f=t.yieldResult;n=_.g(D,IzJ).repeat;n==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(f.setLoopRange({startTimeMs:Number(_.g(D,IzJ).startTimeMs),endTimeMs:Number(_.g(D,IzJ).endTimeMs),type:"repeatChapter"}),f.playVideo()):n==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&f.setLoopRange(null);_.yz(t)})};_.Eaw=function(V){_.cq.call(this);this.JSC$20604_watchApi=V;XFw(this)};
_.v(_.Eaw,_.cq);var XFw=function(V){V.JSC$20604_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(D){AQZ(V,D)});
V.addOnDisposeCallback(function(){V.JSC$20604_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},AQZ=function(V,D){var f,n,t,J,H,Q,T,y,Z,l,G;
_.w(function(F){if(F.nextAddress==1)return _.b(F,V.JSC$20604_watchApi.playerApi,2);f=F.yieldResult;if(J=(t=(n=_.g(D,OsZ))==null?void 0:n.highlightedMenuItemKey)!=null?t:"")(Q=(H=f).highlightSettingsMenuItem)==null||Q.call(H,J);if(Z=(y=(T=_.g(D,OsZ))==null?void 0:T.openMenuItemKey)!=null?y:"")(G=(l=f).openSettingsMenuItem)==null||G.call(l,Z);_.yz(F)})};var a0c=_.HR("/youtube/app/watch/player_state","playerStateEntity");_.$cX=function(V){_.cq.call(this);this.JSC$20607_watchApi=V;YFW(this)};
_.v(_.$cX,_.cq);var iVf=function(V){switch(V){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"}},YFW=function(V){var D,f;
_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20607_watchApi.playerApi,2);D=n.yieldResult;f=function(t){V.onPlayerStateChange(t)};
D.addEventListener("onStateChange",f);V.addOnDisposeCallback(function(){D.removeEventListener("onStateChange",f)});
_.yz(n)})};
_.$cX.prototype.onPlayerStateChange=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,D.JSC$20607_watchApi.playerApi,2);f=t.yieldResult;n=f.getVideoData().video_id;_.pI().dispatch(_.y1("playerStateEntity",a0c,{key:a0c,playerState:iVf(V),videoId:n}));_.yz(t)})};_.WGZ=function(V){_.cq.call(this);var D=this;this.JSC$20611_watchApi=V;this.enableExternalPlaylistPanelInPlayer=_.c("delhi_web_player_use_external_playlist_panel");_.DY().resolve(_.zI).setPlayer(this.JSC$20611_watchApi.getElement("PLAYER"));V=this.JSC$20611_watchApi.subscribeToActiveChanged(function(f){D.onActiveChanged(f)});
this.addOnDisposeCallback(V);SFR(this)};
_.v(_.WGZ,_.cq);var SFR=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return V.enableExternalPlaylistPanelInPlayer?_.b(n,V.JSC$20611_watchApi.playerApi,2):n.return();D=n.yieldResult;f=function(){if(V.playlistPanelElement)V.playlistPanelElement.onToggleExpanded()};
D.addEventListener("onToggleExternalPlaylistPanel",f);V.addOnDisposeCallback(function(){D.removeEventListener("onToggleExternalPlaylistPanel",f)});
_.yz(n)})};
_.WGZ.prototype.onActiveChanged=function(V){var D=this,f=_.DY().resolve(_.zI),n=function(){pFZ(D)};
V?(this.playlistPanelElement=this.JSC$20611_watchApi.getElement("PLAYLIST_PANEL"))?(f.setPlaylistComponent(this.playlistPanelElement),f.addEventListener("yt-playlist-data-updated",n),this.addOnDisposeCallback(function(){f.removeEventListener("yt-playlist-data-updated",n)}),pFZ(this)):_.$w(Error("qm")):(f.removeEventListener("yt-playlist-data-updated",n),f.cancelVideoSkip())};
var pFZ=function(V){var D=_.DY().resolve(_.zI);V.JSC$20611_watchApi.provideRenderingData("PLAYLIST",D.getPlaylistData())};_.EP=function(V){_.cq.call(this);var D=this;this.JSC$20614_watchApi=V;this.onPageScroll=function(){D.scrollThrottle.fire();D.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.I7(this.onThrottledScroll,200,this);_.wX(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.I7(this.onMastheadThrottledScroll,50,this);_.wX(this,this.mastheadScrollThrottle);this.animation=new _.zX(function(f){D.JSC$20614_watchApi.getRoot().setScrollTop(f)});
V=_.yX(_.Ol(),_.Ns,function(){D.onFullscreenChanged()});
this.addOnDisposeCallback(V);LGR(this);I0W(this);this.onThrottledScroll()};
_.v(_.EP,_.cq);
_.EP.prototype.onFullscreenChanged=function(){var V=this,D=this.JSC$20614_watchApi.getRoot();!this.pageScrollElement&&D.pageScrollElement?(this.pageScrollElement=D.pageScrollElement,D.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){V.pageScrollElement&&V.pageScrollElement.removeEventListener("scroll",V.onPageScroll)})):this.pageScrollElement&&!D.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var LGR=function(V){window.addEventListener("scroll",V.onPageScroll);V.addOnDisposeCallback(function(){window.removeEventListener("scroll",V.onPageScroll)})},I0W=function(V){V.JSC$20614_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(D){a:{var f;
if(f=V.JSC$20614_watchApi.getRoot().contains(D)&&!V.animation.isAnimating()){f=D.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var n,t,J=(D==null?void 0:(n=D.parentElement)==null?void 0:(t=n.parentElement)==null?void 0:t.id)==="fixed-secondary";f=!(f&&J)}if(f){if(_.c("kevlar_watch_scroll_manager_absolute_offset_killswitch"))n=D.offsetTop;else for(n=0,t=D;t!==null;)n+=t.offsetTop,n-=t.scrollTop,t=t.offsetParent;t=n;n=t-24;D=t+D.offsetHeight+24;t=V.JSC$20614_watchApi.getRoot().getPageScrollingElement();
f=V.JSC$20614_watchApi.getRoot().getScrollTop();J=f+t.clientHeight-56;if(n<f+56)D=n-56;else if(D>J)D-=t.clientHeight;else break a;V.scrollWatchTo(Math.max(0,D),!0)}}});
V.addOnDisposeCallback(function(){V.JSC$20614_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.EP.prototype.onThrottledScroll=function(){var V=_.Ol(),D=V.dispatch,f=this.JSC$20614_watchApi.getRoot().getScrollTop();D.call(V,_.nA({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:f}}))};
_.EP.prototype.onMastheadThrottledScroll=function(){this.JSC$20614_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20614_watchApi.getRoot().getScrollTop())};
_.EP.prototype.scrollWatchTo=function(V,D){(D===void 0?0:D)?this.animation.start(this.JSC$20614_watchApi.getRoot().getScrollTop(),Math.max(0,V),500):this.JSC$20614_watchApi.getRoot().setScrollTop(V)};_.MjB=function(V){_.cq.call(this);var D=this;this.JSC$20617_watchApi=V;var f=this.JSC$20617_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){OVX(D)}),n=this.JSC$20617_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xcJ(D)});
this.addOnDisposeCallback(function(){D.JSC$20617_watchApi.unsubscribeByKey(f);D.JSC$20617_watchApi.unsubscribeByKey(n)});
OVX(this);xcJ(this)};
_.v(_.MjB,_.cq);
var OVX=function(V){var D,f,n,t=(n=(D=V.JSC$20617_watchApi.getPlayerResponse())==null?void 0:(f=D.videoDetails)==null?void 0:f.title)!=null?n:"";V.JSC$20617_watchApi.dispatchEvent("yt-update-title",t)},xcJ=function(V){var D,f,n,t,J,H,Q,T=(Q=((H=(D=V.JSC$20617_watchApi.getWatchNextResponse())==null?void 0:(f=D.contents)==null?void 0:(n=f.twoColumnWatchNextResults)==null?void 0:(t=n.results)==null?void 0:(J=t.results)==null?void 0:J.contents)!=null?H:[]).find(function(y){return!!y.videoPrimaryInfoRenderer}))==null?
void 0:Q.videoPrimaryInfoRenderer;
(D=_.LA(T==null?void 0:T.title))&&V.JSC$20617_watchApi.dispatchEvent("yt-update-title",D)};_.UcZ=function(V){_.cq.call(this);this.JSC$20620_watchApi=V;hfq(this)};
_.v(_.UcZ,_.cq);var hfq=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$20620_watchApi.playerApi,2);D=n.yieldResult;f=function(){V.onYpcContentRequest()};
D.addEventListener("onYpcContentRequest",f);V.addOnDisposeCallback(function(){D.removeEventListener("onYpcContentRequest",f)});
_.yz(n)})};
_.UcZ.prototype.onYpcContentRequest=function(){var V,D,f,n,t,J=(V=this.JSC$20620_watchApi.getWatchNextResponse())==null?void 0:(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.secondaryResults)==null?void 0:(t=n.secondaryResults)==null?void 0:t.offerModule,H,Q,T,y;V=(y=(T=(Q=(H=J==null?void 0:J.episodeOfferModuleRenderer)!=null?H:J==null?void 0:J.movieOfferModuleRenderer)!=null?Q:J==null?void 0:J.unlimitedOfferModuleRenderer)!=null?T:J==null?void 0:J.liveOfferModuleRenderer)!=
null?y:J==null?void 0:J.tvfilmOfferModuleRenderer;var Z,l,G;J=(G=J==null?void 0:(Z=J.tvfilmOfferModuleRenderer)==null?void 0:(l=Z.actionButtons)==null?void 0:l.length)!=null?G:0;l=Math.max(J-1,0);var F,k,d;Z=(d=V==null?void 0:(F=V.offerButton)==null?void 0:F.buttonRenderer)!=null?d:V==null?void 0:(k=V.actionButtons)==null?void 0:k[l].buttonRenderer;var z,C;(F=(C=(z=Z==null?void 0:Z.navigationEndpoint)!=null?z:Z==null?void 0:Z.serviceEndpoint)!=null?C:Z==null?void 0:Z.command)&&_.bS.instance.resolveCommand(F)};
}catch(e){_._DumpException(e)}
try{
var hAo,OHc,LLf;_.IYZ=function(){var V=_.sB.clone(pIf),D;return(new _.Qf(function(f,n){V.onSuccess=function(t){_.X1U(t)?f(new LLf(t)):n(new _.IE("Request failed, status="+_.JU(t),"net.badstatus",t))};
V.onError=function(t){n(new _.IE("Unknown request error","net.unknown",t))};
V.onTimeout=function(t){n(new _.IE("Request timed out","net.timeout",t))};
D=_.T5("//googleads.g.doubleclick.net/pagead/id",V)})).thenCatch(function(f){if(f instanceof _.Sb){var n;
(n=D)==null||n.abort()}return _.Br(f)})};
_.x40=function(V){a:{var D="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(D="EMBEDDED_PLAYER_MODE_PFL");var f=V.raw_embedded_player_response;if(!f&&(V=V.embedded_player_response))try{f=JSON.parse(V)}catch(t){break a}if(f)b:for(var n in OHc)if(OHc[n]==f.embeddedPlayerMode){D=OHc[n];break b}}return D==="EMBEDDED_PLAYER_MODE_PFL"};
_.M1J=function(){if(_.c("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.tNY())return Error("uf");var V=_.XB("PLAYER_VARS",{});if(_.sB.get(V,"privembed",!1)=="1")return Error("vf");if(_.x40(V))return Error("wf")};
hAo=function(V){switch(V){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:_.JZ(V,"unknown result type")}};
_.U4X=function(V,D,f){D=_.DC9[D];f={detected:V===0,source:D.bxj,detectionResult:hAo(V),contentCpn:f};_.dq("biscottiBasedDetection",f);_.j1r.increment(D.bxj,V);D.oBC!==void 0&&_.ql("CATSTAT",_.UdY(V,D))};
_.OA=function(V,D){var f={};f.key=V;f.value=D;return _.Czn().then(function(n){return new Promise(function(t,J){try{var H=n.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(f);H.onsuccess=function(){t()};
H.onerror=function(){J()}}catch(Q){J(Q)}})})};
_.DYR=function(){var V=_.tU("user_engagement_experiments_rate_limit_ms"),D=Vkc.get("last-user-engagement-exp-trigger-timestamp");return!D||(0,_.VW)()>=D+V?(Vkc.set("last-user-engagement-exp-trigger-timestamp",(0,_.VW)()),!0):!1};
_.xg=function(V,D,f,n,t){D=D===void 0?null:D;f=f===void 0?null:f;n=n===void 0?null:n;t=t===void 0?null:t;V={youThereEventType:V};f&&(V.lactThresholdMs=f.lactThresholdMs,V.mediaPosSec=f.promptDelaySec,V.lactServerRequestMs=f.lactServerRequestMs,V.triggerReason=f.triggerReason);t!=null&&(V.renderingMediaPosSec=Math.round(t));D||(D=_.Ni());D&&(V.clientScreenNonce=D);n&&(V.clientPlaybackNonce=n);_.dq("youThere",V)};
OHc={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"};LLf=function(V){this.xhr=V};
_.IE=function(V,D,f){_.VY.call(this,V+", errorCode="+D);this.errorCode=D;this.xhr=f;this.name="PromiseAjaxError"};
_.v(_.IE,_.VY);var pIf={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Vkc=new _.qY("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.WLR=function(V){return _.nA({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:V})};
}catch(e){_._DumpException(e)}
try{
var $R,T4f,KQf,yHR,Zq3,joZ,GWJ,B4W,dtR,ulq,lLV,bqW,gHw,FQJ,zeX;_.Qov=function(){var V=window.location.hash;V.charAt(0)==="#"&&(V=V.charAt(1)==="!"?V.substring(2):V.substring(1));return _.W9(V)};
$R=function(V,D,f){var n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,D(),2);n=t.yieldResult;f(n,V);_.yz(t)})};
T4f=function(){return _.w(function(V){return V.nextAddress==1?_.b(V,(_.M1J()!==void 0?_.Br(Error("xf")):_.IYZ()).then(function(){return 1},function(D){if(D.message==="Biscotti id is disabled")return 3;
_.zP("Failed fetching bid");return 0}),2):V.return(V.yieldResult)})};
KQf=function(){var V=_.Ul("MDJoeGs3OGUweXQtaGF2ZW4tZW1iZWQtcGxheWVyI3N5MA=="),D=_.Ul("Y21zYnRibnM4aWZyYW1lIzRubQ==");return document.querySelector(D+bqW+V)?0:1};
yHR=function(){return _.a$U(_.Yc)};
Zq3=function(){return _.YYZ()===0?0:_.$dF()};
joZ=function(){return _.LpY(_.r53([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
GWJ=function(){return _.mdd(lLV)};
_.eeq=function(V){_.w(function(D){switch(D.nextAddress){case 1:return _.b(D,$R("b.f_",T4f,V),2);case 2:return _.b(D,$R("j.s_",_.u_x,V),3);case 3:return _.b(D,$R("r.s_",_.sC9,V),4);case 4:return _.b(D,$R("e.h_",GWJ,V),5);case 5:if(!_.c("ab_det_sc_inj")){D.jumpTo(6);break}return _.b(D,$R("s.i_",_.Em3,V),6);case 6:if(_.c("ab_deg_unex_thr")){D.jumpTo(8);break}return _.b(D,$R("a.o_",_.qYX,V),8);case 8:if(_.c("ks_get_o_pp")){D.jumpTo(10);break}return _.b(D,$R("g.o_",_.CVn,V),10);case 10:if(_.c("ks_det_gpbl")){D.jumpTo(12);
break}return _.b(D,$R("p.i_",_.Rrc,V),12);case 12:return _.b(D,$R("f.i_",_.y5x,V),14);case 14:return _.b(D,$R("a.b_",_.vmc,V),15);case 15:return _.b(D,$R("p.m_",_.l$R,V),16);case 16:if(!_.c("ab_det_el_h_v2")){D.jumpTo(17);break}return _.b(D,$R("n.h_",joZ,V),17);case 17:return _.b(D,$R("o.p_",yHR,V),19);case 19:return _.b(D,$R("e.i_",KQf,V),20);case 20:if(_.c("ab_det_apm"))return _.b(D,$R("o.a_",Zq3,V),0);D.jumpTo(0)}})};
_.cH0=function(V,D){V={videoId:V};D&&(V.playlistId=D);return V};
_.vHJ=function(){if(_.tNY()){var V=_.XB("PLAYER_VARS",{});if(_.sB.get(V,"privembed",!1)!="1"&&!_.x40(V)){var D=function(){FQJ=!0;"google_ad_status"in window?_.ql("DCLKSTAT",1):_.ql("DCLKSTAT",2)};
try{_.EX("//static.doubleclick.net/instream/ad_status.js",D)}catch(f){}gHw.push(_.dm.addLowPriorityJob(function(){if(!(FQJ||"google_ad_status"in window)){try{_.xmF("//static.doubleclick.net/instream/ad_status.js",D)}catch(f){}FQJ=!0;_.ql("DCLKSTAT",3)}},5E3))}}};
_.iP=function(V,D,f){f=f===void 0?!1:f;var n=Math.max(V.width,_.T9c);if(_.c("kevlar_watch_feed_big_thumbs")&&V.width>=1550-_.mB()&&V.height>=800)n-=_.lKR;else if(V.width>=_.XJ){var t=_.bP3+_.KV0+_.qc;_.c("kevlar_watch_feed_big_thumbs")&&(t=_.jSB);n-=t}else n-=_.bP3;n=Math.min(n,_.yj0);t=240;f&&(t=380);D<.5624||(!_.c("kevlar_watch_flexy_disable_small_window_sizing")&&(V.height<630&&V.width>=657||V.height>=630&&V.width>=_.XJ&&V.width<1327)?t=360:!_.c("kevlar_watch_flexy_disable_large_window_sizing")&&
V.height>=630&&V.width>=1327&&(t=480));var J=Math.min(n*D,V.height-(56+_.QSX+_.ZP0));J=Math.max(J,t);D<1?n=J/D:V.width>=_.XJ&&(n=_.iP(V,.5625,f).width);return new _.bB(Math.round(n),Math.round(J))};
_.kWR=function(V){var D=0;V.indexOf("h")!=-1&&(V=V.split("h"),D=V[0]*60*60,V=V[1]);V.indexOf("m")!=-1&&(V=V.split("m"),D=V[0]*60+D,V=V[1]);V.indexOf("s")!=-1?(V=V.split("s"),D=V[0]*1+D):D=V*1+D;return D};
_.soJ=function(){_.tU("service_worker_push_logged_out_prompt_watches")!=-1&&_.D2("WatchCount").then(function(V){V>=100||_.OA("WatchCount",V+1)})};
B4W=function(V){var D=V.externalVideoId||"";return D?V.isShortsEligible?"https://www.youtube.com/shorts/"+D:"https://www.youtube.com/watch?v="+D:""};
dtR=function(V){var D=[];V.viewCount&&D.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:V.viewCount});V.likeCount&&D.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:V.likeCount});return D};
ulq=function(V){var D,f,n={"@context":"https://schema.org","@type":"VideoObject",description:_.LA(V.description),duration:"PT"+(V.lengthSeconds||"0")+"S",embedUrl:V.embed?V.embed.iframeUrl:"",name:_.LA(V.title),thumbnailUrl:((D=V.thumbnail)==null?void 0:(f=D.thumbnails)==null?void 0:f.map(function(Z){return Z&&Z.url||""}))||[],
uploadDate:V.publishDate};_.c("mweb_video_schema_id_killswitch")||(n["@id"]=B4W(V));D=dtR(V);D.length&&(n.interactionStatistic=D);V.category&&(n.genre=V.category);V.ownerChannelName&&(n.author=V.ownerChannelName);V.liveBroadcastDetails&&(n.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:V.liveBroadcastDetails.startTimestamp,endDate:V.liveBroadcastDetails.endTimestamp}]);if(V.learningResource){V=V.learningResource;n["@type"]=["VideoObject","LearningResource"];var t;if((t=V.learningResourceType)==
null?0:t.length)n.learningResourceType=V.learningResourceType[0];var J;if((J=V.educationalAlignment)==null?0:J.length)n.educationalAlignment={"@type":"AlignmentObject",targetName:V.educationalAlignment[0]};var H;if((H=V.educationalLevel)==null?0:H.length){t=V.educationalLevel[0];var Q;if((Q=V.educationalLevelCountry)==null?0:Q.length)t+=" ("+V.educationalLevelCountry+")";n.educationalLevel=t}var T,y;if(((T=V.learningResourceType)==null?0:T.length)&&V.learningResourceType[0]==="Problem walkthrough"&&
((y=V.problemDescriptions)==null?0:y.length))for(n.hasPart=[],Q=_.r(V.problemDescriptions),T=Q.next();!T.done;T=Q.next())t=T.value,T=t.problemDescriptionText,y=t.startOffset,t=t.url,T&&y!==void 0&&t&&n.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:T,text:T,startOffset:y,url:t})}return n};
_.N4V=function(V){return _.nA({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:V}})};
lLV=[[["YzNqcnphZWRqcHJpbWFyeSM0NGc=",null,null],[null,["ejc4dGoxMmIxeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjdGZ0","ZHl4b2cxdXRwc3R5bGUtc2NvcGUjMXVi"],null],["dDRrdDlqdGJ2bWFzdGhlYWQtYWQjaGgx",["ZmRsdW1jZTA4eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNyMGw="],null],[null,["aTUwZXlpeHQ5eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM4b20=","MWkyNjc0aTZ3c3R5bGUtc2NvcGUjaDc3"],null],[null,["NDdzbnBoOXA1eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN5dmE=","N3JxZ3JqZHZwc3R5bGUtc2NvcGUjeHJ1"],null],[null,["NmRyOTFhM2Z4eXRkLWFkLXNsb3QtcmVuZGVyZXIjeGNu"],
null]],[["ZmVmNTM4ZzZycGxheWVyLWFkcyNvdHU=",null,null]],[["bnVvaTkydDJ0ZGVzY3JpcHRpb24taW5uZXIjeTRh",null,null],[null,null,"YjkzYmNwZTRqeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIzdlbA=="],["cWwzNDBhdWk2bWFpbiNpdHM=",["b3Z2azRxaWtkeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI3RnZA=="],null]]];bqW="#";gHw=[];FQJ=!1;_.mtX=["engagement-panel-ads"];zeX=new _.L("updateSentimentBarStateCommand");_.ReV=new _.L("showSurveyCommand");_.Sp=new _.L("changeMarkersVisibilityCommand");var qZw,XL3,YZR,aL3,AH3,Wu;_.C_R=function(V,D){this.playerProvider_=V;this.actionSenderElement_=D;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.C_R.prototype.reset=function(){qZw(this);this.isUserPredictedAbsent_=!1};
qZw=function(V,D){!V.youThereData_||V.showWarningJob_||D!==void 0&&D||(_.xg("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Ni(),V.youThereData_,V.clientPlaybackNonce_),_.uN());_.dm.cancelJob(V.showWarningJob_);V.showWarningJob_=0;_.dm.cancelJob(V.showBlockingWarningJob_);V.showBlockingWarningJob_=0;_.dm.cancelJob(V.pausePlaybackJob_);V.pausePlaybackJob_=0;V.youThereData_=null;V.clientPlaybackNonce_=void 0;V.inYouThereFlow_=!1};
_.EHV=function(V,D){var f,n,t;_.w(function(J){if(J.nextAddress==1)return V.reset(),_.b(J,V.playerProvider_().getPlayerPromise(),2);f=J.yieldResult;V.clientPlaybackNonce_=f.getVideoData().cpn;V.youThereData_=D.configData.youThereData;if(!V.youThereData_)return J.return();if(V.youThereData_.triggerReason&&V.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.DYR())return _.xg("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Ni(),V.youThereData_,V.clientPlaybackNonce_),J.return();n=V.youThereData_.promptDelaySec;
t=f.getCurrentTime();V.showWarningJob_=_.dm.addLowPriorityJob(function(){return _.w(function(H){V.showWarningJob_=0;return _.b(H,XL3(V),0)})},Math.max(n-t,0)*1E3);
_.yz(J)})};
XL3=function(V){var D,f,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,V.playerProvider_().getPlayerPromise(),2);if(Q.nextAddress!=3)return D=Q.yieldResult,f=D.getCurrentTime(),_.b(Q,AH3(V),3);n=Q.yieldResult;if(!n||!V.youThereData_)return Q.return();if(_.c("check_user_lact_at_prompt_shown_time_on_web")&&(t=parseInt(V.youThereData_.lactThresholdMs,10),_.Vf()<t))return _.xg("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Ni(),V.youThereData_,V.clientPlaybackNonce_),Q.return();if(V.youThereData_.playbackPauseDelayMs<=
0)return aL3(V),Q.return();!_.c("external_fullscreen")&&(J=_.UX())&&(V.ignoreFullscreenExitUserActivity_=!0,_.dm.addLowPriorityJob(function(){V.ignoreFullscreenExitUserActivity_=!1},2E3),_.Vv(J));
V.youThereData_.showToastWarningPrompt&&(Wu(V,V.youThereData_.showWarningActions),V.inYouThereFlow_=!0,_.xg("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Ni(),V.youThereData_,V.clientPlaybackNonce_,f),_.xg("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Ni(),V.youThereData_,V.clientPlaybackNonce_,f));H=0;V.youThereData_.blockingPromptDelayMs&&(H=V.youThereData_.blockingPromptDelayMs);V.showBlockingWarningJob_=_.dm.addLowPriorityJob(function(){return _.w(function(T){V.showBlockingWarningJob_=0;return _.b(T,
YZR(V),0)})},H);
_.yz(Q)})};
YZR=function(V){var D,f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,AH3(V),2);D=t.yieldResult;if(!V.youThereData_)return t.return();D&&(V.youThereData_.showBlockingWarningAction&&(_.xg("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Ni(),V.youThereData_,V.clientPlaybackNonce_),(f=_.g(V.youThereData_.showBlockingWarningAction,_.Tm))?Wu(V,f.commands):Wu(V,[V.youThereData_.showBlockingWarningAction]),V.inYouThereFlow_=!0),n=V.youThereData_.playbackPauseDelayMs,V.pausePlaybackJob_=
_.dm.addLowPriorityJob(function(){return _.w(function(J){V.pausePlaybackJob_=0;return _.b(J,aL3(V),0)})},n));
_.yz(t)})};
aL3=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,AH3(V),2);D=f.yieldResult;if(!V.youThereData_)return f.return();D&&(_.xg("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Ni(),V.youThereData_,V.clientPlaybackNonce_),Wu(V,V.youThereData_.showPausedActions),V.inYouThereFlow_=!0);_.yz(f)})};
_.C_R.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var V=_.g(this.youThereData_.userActiveDuringFlowAction,_.Tm);V?Wu(this,V.commands):Wu(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.xg("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Ni(),this.youThereData_,this.clientPlaybackNonce_),_.uN());qZw(this,!0)}_.$tv(this,!1)};
_.iqw=function(V){_.xg("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Ni(),V.youThereData_,V.clientPlaybackNonce_)};
AH3=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.playerProvider_().getPlayerPromise(),2);D=n.yieldResult;f=D.getPlayerState();return n.return(f==-1||f==1||f==3)})};
_.$tv=function(V,D){var f;_.w(function(n){if(n.nextAddress==1){if(V.isUserPredictedAbsent_==D)return n.jumpTo(0);V.isUserPredictedAbsent_=D;return _.b(n,V.playerProvider_().getPlayerPromise(),3)}f=n.yieldResult;f.setUserEngagement(D);D&&_.xg("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Ni(),V.youThereData_,V.clientPlaybackNonce_);_.yz(n)})};
Wu=function(V,D){if(_.c("handle_service_request_actions")||_.c("kevlar_youthere_service_endpoint_actions_killswitch"))_.wN(V.actionSenderElement_,D,V.actionSenderElement_);else{D=_.r(D);for(var f=D.next();!f.done;f=D.next())f=f.value,f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.sendPost?_.HA(V.actionSenderElement_,[f]):_.wN(V.actionSenderElement_,[f],V.actionSenderElement_)}};var SZc;var WQR;var pU=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return V};
_.v(pU,_.E);pU.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var V=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(V=this.data.percentIfLiked||0,this.activated=!0):(V=this.data.percentIfIndifferent||0,this.activated=!1);_.Pt(this.hostElement).querySelector("#like-bar").style.width=V+"%"}};
pU.prototype.handleUpdateSentimentBarStateCommand=function(V){this.data&&this.set("data.likeStatus",_.g(V,zeX).likeStatus)};
pU.prototype.observeLikeStatus=pU.prototype.observeLikeStatus;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],pU.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pU.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],pU.prototype,"activated",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],pU.prototype,"systemIcons",void 0);_.S([_.KI("data.likeStatus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pU.prototype,"observeLikeStatus",null);_.S([_.a({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],pU);
_.Y(pU,"ytd-sentiment-bar-renderer",function(){if(WQR!==void 0)return WQR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WQR=V},{mode:1});var pL0;var LU=function(){var V=_.E.apply(this,arguments)||this;V.small=!0;return V};
_.v(LU,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],LU.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LU.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],LU.prototype,"small",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],LU);
_.Y(LU,"ytd-video-view-count-renderer",function(){if(pL0!==void 0)return pL0;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pL0=V},{mode:_.J2("kevlar_poly_si_batch_j080")?1:2});var IM=function(){var V=_.E.apply(this,arguments)||this;V.infoFormattedStrings=[];V.wrapVideoActions=_.c("kevar_watch_wrap_video_actions");V.hideSentimentBar=_.c("kevlar_watch_hide_sentiment_bar");V.actionMap={};return V};
_.v(IM,_.E);_.P=IM.prototype;_.P.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.P.dataChanged=function(){_.c("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.P.computeInfoFormattedStrings=function(V){if(!V)return[];var D=[];V.dateText&&D.push(V.dateText);V.stationName&&D.push(V.stationName);V.rating&&D.push(V.rating);V.startEndTimeTemplate&&V.startTimeUtcMillis&&V.endTimeUtcMillis&&D.push(_.pA(_.N$c(_.LA(V.startEndTimeTemplate),Number(V.startTimeUtcMillis),Number(V.endTimeUtcMillis))));V.upNextProgramText&&D.push(V.upNextProgramText);return D};
_.P.scheduleInitialUpdatedMetadataRequest=function(){var V,D=(V=this.data)==null?void 0:V.updatedMetadataEndpoint;if(D){var f;V=Number((f=_.g(D,_.yTp))==null?void 0:f.initialDelayMs);f=isNaN(V)?250:V;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),f)}};
_.P.setSentimentBarWidth=function(){var V=this;_.pO(this,function(){var D=_.Pt(V.hostElement).querySelector("ytd-menu-renderer");if(D){D=D.topLevelButtons;for(var f=0,n=0;n<D.length;n++){var t=D[n],J=V.get("toggleButtonSupportedData.toggleButtonIdData.id",t.data);if(J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||J==="TOGGLE_BUTTON_ID_TYPE_LIKE")f+=t.clientWidth+8;else break}f&&(V.sentiment.style.width=f-8+" px")}})};
_.P.fetchUpdatedMetadata=function(V){var D;V&&(D={continuation:V});var f;(V=(f=this.data)==null?void 0:f.updatedMetadataEndpoint)&&_.DY().resolve(_.fH).resolveCommand(V,{form:Object.assign({},D,{element:this.hostElement})})};
_.P.onYtServiceRequestSent=function(V,D){D.endpoint&&_.g(D.endpoint,_.$V)&&(this.hasUpdateSentimentBarStateCommands()&&!_.c("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.g(D.endpoint,_.$V).status),this.setSentimentBarWidth())};
_.P.hasUpdateSentimentBarStateCommands=function(){var V,D,f,n,t=(n=(V=this.data)==null?void 0:(D=V.videoActions)==null?void 0:(f=D.menuRenderer)==null?void 0:f.topLevelButtons)!=null?n:[];V=_.r(t);for(D=V.next();!D.done;D=V.next()){D=D.value;t=n=f=void 0;var J=(f=D.toggleButtonRenderer)==null?void 0:(n=f.toggleButtonSupportedData)==null?void 0:(t=n.toggleButtonIdData)==null?void 0:t.id;if(J==="TOGGLE_BUTTON_ID_TYPE_LIKE"||J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){n=f=void 0;D=(n=_.g((f=D.toggleButtonRenderer)==
null?void 0:f.defaultServiceEndpoint,_.Tm))==null?void 0:n.commands;if(!D)break;D=_.r(D);for(f=D.next();!f.done;f=D.next())if(_.g(f.value,zeX))return!0}}return!1};
_.P.onYtServiceRequestCompleted=function(V,D){var f;(V=(f=D.data)==null?void 0:f.loggingDirectives)&&_.SfY(_.lS(),V);this.get("continuation.timedContinuationData",D.data)&&this.data&&this.data.updatedMetadataEndpoint&&(D=D.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,D.continuation),D.timeoutMs))};
_.P.computeHasDateText=function(V){return!!V&&!!V.dateText};
_.IG.Object.defineProperties(IM.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return!((n=(V=this.data)==null?void 0:(D=V.videoActions)==null?void 0:(f=D.menuRenderer)==null?void 0:f.flexibleItems)==null||!n.length)}}});
IM.prototype.onYtServiceRequestCompleted=IM.prototype.onYtServiceRequestCompleted;IM.prototype.onYtServiceRequestSent=IM.prototype.onYtServiceRequestSent;IM.prototype.dataChanged=IM.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],IM.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.xm.YtTaskEmitterBehavior),_.p("design:type",Object)],IM.prototype,"ytTaskEmitterBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IM.prototype,"data",void 0);_.S([_.q({computed:"computeInfoFormattedStrings(data)"}),_.p("design:type",Array)],IM.prototype,"infoFormattedStrings",void 0);
_.S([_.q({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],IM.prototype,"hasDateText",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IM.prototype,"wrapVideoActions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IM.prototype,"hideSentimentBar",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IM.prototype,"flexMenuEnabled",null);
_.S([_.Zv("#sentiment"),_.p("design:type",Object)],IM.prototype,"sentiment",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IM.prototype,"dataChanged",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],IM.prototype,"onYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],IM.prototype,"onYtServiceRequestCompleted",null);
_.Y(IM,"ytd-video-primary-info-renderer",function(){if(SZc===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);SZc=V}V=SZc;return V},{mode:1});var LQf;var OP=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return V};
_.v(OP,_.E);_.P=OP.prototype;_.P.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"}}}};
_.P.dataChanged=function(){var V;this.descriptionToggled=!((V=this.data)==null||!V.defaultExpanded);var D;this.collapsed=this.descriptionAlwaysCollapsed||!((D=this.data)==null?0:D.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Bj(110509);this.showLessClientVe=_.Bj(110510);V=_.Ni();D=_.u8();V&&D&&_.$8(V,D,[this.showMoreClientVe,this.showLessClientVe])};
_.P.onYtExpanderMoreTapped=function(){var V,D=(V=this.data)==null?void 0:V.showMoreCommand;D&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(D);(V=_.Ni())&&this.showMoreClientVe&&_.p6(V,this.showMoreClientVe)};
_.P.onYtExpanderLessTapped=function(){var V=_.Ni();V&&this.showLessClientVe&&_.p6(V,this.showLessClientVe);var D;(V=(D=this.data)==null?void 0:D.showLessCommand)&&this.componentBehavior.resolveCommand(V)};
_.P.handleUpdateDateTextAction=function(V){this.data&&this.data.dateText&&this.set("data.dateText",_.g(V,_.Px3).dateText)};
_.P.handleUpdateDescriptionAction=function(V){if(V=_.g(V,_.H_E))V.isEmpty||!V.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.zK(V.description)):this.set("data.description",V.description)};
_.P.onYtChangeEngagementPanelVisibilityAction=function(V){if(_.c("web_structured_description_show_more")||_.c("web_engagement_panel_open_description")){var D,f=(D=_.g(V,_.pbl))==null?void 0:D.targetId,n;V=((n=_.g(V,_.pbl))==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";f==="engagement-panel-structured-description"&&V&&(this.descriptionToggled=!0)}};
_.P.updateCollapsedFromBinding=function(V){this.collapsed=V.detail.value};
_.P.updateDescriptionToggledFromBinding=function(V){this.descriptionToggled=V.detail.value};
_.P.updateCanCollapseFromBinding=function(V){this.canCollapse=V.detail.value};
_.IG.Object.defineProperties(OP.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer;return!!f&&!!f.rows&&f.rows.length>f.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.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}}});
OP.prototype.onYtExpanderLessTapped=OP.prototype.onYtExpanderLessTapped;OP.prototype.onYtExpanderMoreTapped=OP.prototype.onYtExpanderMoreTapped;OP.prototype.dataChanged=OP.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],OP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],OP.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OP.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],OP.prototype,"collapsed",void 0);_.S([_.q(),_.p("design:type",Boolean)],OP.prototype,"descriptionToggled",void 0);
_.S([_.q(),_.p("design:type",Boolean)],OP.prototype,"canCollapse",void 0);_.S([_.q(),_.p("design:type",Object)],OP.prototype,"subscribeButtonData",void 0);_.S([_.q(),_.p("design:type",Number)],OP.prototype,"descriptionCollapsedHeight",void 0);_.S([_.q(),_.p("design:type",Object)],OP.prototype,"structuredDescriptionContentRenderer",void 0);_.S([_.q({value:function(){return _.c("web_watch_description_always_collapsed")}}),
_.p("design:type",Boolean)],OP.prototype,"descriptionAlwaysCollapsed",void 0);_.S([_.Zv("#description"),_.p("design:type",HTMLDivElement)],OP.prototype,"description",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OP.prototype,"dataChanged",null);_.S([_.bU("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OP.prototype,"onYtExpanderMoreTapped",null);
_.S([_.bU("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OP.prototype,"onYtExpanderLessTapped",null);_.S([_.R("data.metadataRowContainer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"metadataCollapsible",null);_.S([_.R("data","structuredDescriptionContentRenderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"hasInlineStructuredDescription",null);
_.S([_.R("data.attributedDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"hasAttributedDescription",null);_.S([_.R("hasInlineStructuredDescription","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"loadStructuredDescription",null);_.S([_.R("data","structuredDescriptionContentRenderer","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"showInlineStructuredDescription",null);
_.S([_.R("data","hasInlineStructuredDescription","metadataCollapsible"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OP.prototype,"descriptionAlwaysCollapsible",null);
_.Y(OP,"ytd-video-secondary-info-renderer",function(){if(LQf===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);LQf=V}V=LQf;return V},{mode:2});var ILo;var xR=function(){return _.E.apply(this,arguments)||this};
_.v(xR,_.E);xR.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:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xR.prototype.activate=function(V){V.appendTo(this.player);V.getPlayerPromise().then(function(D){D.setMinimized(!0)});
this.active=!0};
xR.prototype.deactivate=function(){var V=this.player.firstElementChild;V.getPlayerPromise().then(function(D){D.setMinimized(!1)});
this.active=!1;return V};
xR.prototype.onScrollUpTap=function(){var V=_.DY().resolve(_.xl).getCurrentPage();V&&V.setScrollTop(0)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],xR.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xR.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],xR.prototype,"active",void 0);
_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.p("design:type",Boolean)],xR.prototype,"darkLaunch",void 0);_.S([_.Zv("#player"),_.p("design:type",HTMLDivElement)],xR.prototype,"player",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],xR);
_.Y(xR,"ytd-miniplayer-bar-renderer",function(){if(ILo!==void 0)return ILo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ILo=V},{mode:1});_.fT(_.MA(function(V){var D=_.W2("script");_.BJ(function(){var f;if(f=JSON)f=ulq(V.data()),f=_.Ee(JSON.stringify(f).replace(/</g,"\\u003C"));var n=V.data(),t=_.LA(n.title).trim().length===0,J=!n.publishDate||n.publishDate.trim().length===0,H,Q,T,y,Z=!((H=n.thumbnail)==null?0:(Q=H.thumbnails)==null?0:Q.length)||!((T=n.thumbnail)==null?0:T.thumbnails[0].url)||((y=n.thumbnail)==null?void 0:y.thumbnails[0].url.trim().length)===0;D.value&&f&&!(t||J||Z)&&_.a3(D.value,f)},"I9AhLd");
return _.K("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.K("script",{el:D,type:"application/ld+json"}))},"Kj"),"player-microformat-renderer",{props:{data:_.Dn}});
}catch(e){_._DumpException(e)}
try{
var Dtq,JHR;_.VA3=function(V){return V.watch.watchWindowSize};
Dtq=function(V,D,f,n){if(V.isLockupToWatchTransitionEnabled){if(D){var t={};V.viewTransitionCoordinator.registerElement(D,(t["lockup-to-watch"]="player-lockup-to-watch",t["watch-next-appears"]="player-watch-next-loaded",t))}f&&(D={},V.viewTransitionCoordinator.registerElement(f,(D["lockup-to-watch"]="below-lockup-to-watch",D["watch-next-appears"]="below-watch-next-loaded",D)));n&&(f={},V.viewTransitionCoordinator.registerElement(n,(f["watch-next-appears"]="secondary-watch-next-loaded",f)))}};
_.fLv=function(V){return _.nA({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:V}})};
JHR=function(V){_.cq.call(this);var D=this;this.JSC$20624_watchApi=V;V=_.yX(_.Ol(),_.CAL,function(){nHX(D)});
this.addOnDisposeCallback(V);V=_.yX(_.Ol(),_.VA3,function(){nHX(D)});
this.addOnDisposeCallback(V);tAq(this);P_Z(this);oHB()};
_.v(JHR,_.cq);var tAq=function(V){var D=function(n){_.Ol().dispatch(_.vQq(n.matches))},f=window.matchMedia("(max-width: "+(999+_.mB())+"px)");
f.addListener(D);V.addOnDisposeCallback(function(){f.removeListener(D)});
D(f)},P_Z=function(V){V.JSC$20624_watchApi.registerActionHandler("yt-window-resized",function(){oHB()});
V.addOnDisposeCallback(function(){V.JSC$20624_watchApi.unregisterActionHandler("yt-window-resized")})},oHB=function(){var V=_.FS();
_.Ol().dispatch(_.nA({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:V.width,height:V.height}}}))},nHX=function(V){var D;
_.w(function(f){if(f.nextAddress==1)return _.b(f,V.JSC$20624_watchApi.playerApi,2);D=f.yieldResult;D.setSize(NaN,NaN);_.yz(f)})};var rHZ=function(V){_.cq.call(this);var D=_.DY().resolve(_.cx);Dtq(D,V.getElement("PLAYER_CONTAINER"),V.getElement("BELOW_THE_PLAYER"),V.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var f=V.getElement("PLAYER_CONTAINER"),n=V.getElement("BELOW_THE_PLAYER"),t=V.getElement("SECONDARY");D.isLockupToWatchTransitionEnabled&&(f&&_.$C(D.viewTransitionCoordinator,f),n&&_.$C(D.viewTransitionCoordinator,n),t&&_.$C(D.viewTransitionCoordinator,t))})};
_.v(rHZ,_.cq);_.Az=function(V){_.hy.call(this);var D=this;this.rootElement=V;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return D.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){D.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.v(_.Az,_.hy);_.P=_.Az.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(V){return this.rootElement.getElement(V)};
_.P.setPlayerResponse=function(V){this.playerResponse=V;this.publish("PLAYER_RESPONSE_UPDATED",V)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(V){this.watchNextResponse===V?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=V,this.publish("WATCH_NEXT_RESPONSE_UPDATED",V))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(V,D){var f=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var n={};_.$b(_.Yb.getInstance(),(n[V]=D,n),this.getRoot())}else this.actionHandlers.has(V)||(this.actionHandlers.set(V,[]),n={},_.$b(_.Yb.getInstance(),(n[V]=function(){var t=_.gQ.apply(0,arguments);return(f.actionHandlers.get(V)||[]).map(function(J){return J.apply(null,_.sz(t))})},n),this.getRoot())),this.actionHandlers.get(V).push(D)};
_.P.unregisterActionHandler=function(V){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.iN(_.Yb.getInstance(),(D[V]=!0,D),this.getRoot())}else(D=this.actionHandlers.get(V))?(D.pop(),D.length===0&&(D={},_.iN(_.Yb.getInstance(),(D[V]=!0,D),this.getRoot()),this.actionHandlers.delete(V))):_.zP(new _.cI("Attempted to unregister an action handler which is not registered.",V))};
_.P.addPageDisposeJob=function(V){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.px(this.rootElement.pageDisposeJobs,V)};
_.P.removePageDisposeJob=function(V){this.rootElement.pageDisposeJobs&&_.IY(this.rootElement.pageDisposeJobs,V)};
_.P.dispatchEvent=function(V,D){_.PA(this.rootElement,V,D)};
_.P.provideRenderingData=function(V,D){this.rootElement.provideRenderingData(V,D)};
_.P.scrollWatchTo=function(V,D){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(V,D)};
_.P.focusOnPlayer=function(){var V=this.getElement("PLAYER");_.pO(V,function(){if(V&&V.firstElementChild){var D=V.querySelector(".html5-video-player");D&&(_.LE(_.DY().resolve(_.ue)),D.focus())}else _.zP(Error("rm"))})};
_.P.updateCinematicFullscreenConfig=function(){if(_.c("web_cinematic_manager_redux_killswitch")){var V=!!this.rootElement.theater,D=!!this.rootElement.fullscreen,f;(f=this.watchCinematicManager)==null||_.mE(f,D,V)}};
_.P.subscribeToActiveChanged=function(V,D){D=D===void 0?!0:D;var f=_.yX(_.Ol(),_.mKv,function(n){V(n)});
D&&V(_.mKv(_.Ol().getState()));return f};
_.P.isActive=function(){return _.mKv(_.Ol().getState())};
_.P.onAttached=function(){var V=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(V=_.DY().resolve(_.hlZ).retriever.getFlag(_.biE));(V||_.EG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var HqV=function(V){return V.getRoot().is==="ytd-watch-flexy"||V.getRoot().is==="ytd-watch-grid"},aM=function(V){return V.getRoot().is==="ytd-watch-fixie"};
_.Az.prototype.initPersistentModules=function(){if(aM(this)||HqV(this)&&_.c("kevlar_watch_flexy_theater_manager")){var V=new _.dXv(this);_.wX(this,V)}V=new _.bVo(this);_.wX(this,V);V=new _.Bu(this);_.wX(this,V);V=new _.qV(this);_.wX(this,V);V=new _.$cX(this);_.wX(this,V);V=new _.uP(this);_.wX(this,V);if(aM(this)||HqV(this)&&_.c("kevlar_watch_flexy_playlist_manager"))V=new _.WGZ(this),_.wX(this,V);_.c("web_thumbnail_to_watch_transition")&&(V=new rHZ(this),_.wX(this,V))};
_.Az.prototype.initOrDisposeActiveModules=function(V){V?(this.watchScrollManager=new _.EP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Be3(this)),this.activeModules.push(new _.z3w(this)),aM(this)&&this.activeModules.push(new JHR(this)),this.activeModules.push(new _.MjB(this)),this.activeModules.push(new _.Xq(this)),(aM(this)||_.c("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.XU3(this)),this.activeModules.push(new _.Rfq(this)),
(aM(this)||_.c("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.UcZ(this)),(aM(this)||_.c("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.WUB(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.xXq(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Eaw(this)),_.c("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.QRv(this)),
V=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&!V&&this.activeModules.push(new _.oaw(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.dd(this)),this.activeModules.push(new _.XDo(this)),this.activeModules.push(new _.uJR(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.YNB(this)),_.c("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.H3q(this)),
_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.VMX(this)),_.c("web_fullscreen_components")&&this.activeModules.push(new _.Ynv(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.QQZ(this))):(_.h4(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Az.prototype.disposeInternal=function(){_.hy.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.IG.Object.defineProperties(_.Az.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var gUR,vU,vUR,kQc,BBw,dSw,sgc,u8J;gUR=function(){var V=_.cA();V.info||(V.info={});return V.info};
vU=function(V){return Math.round(_.k8()+V)};
vUR=function(){var V;if(_.c("csi_use_performance_navigation_timing")){var D,f,n,t=_.vA==null?void 0:(V=_.vA.getEntriesByType)==null?void 0:(D=V.call(_.vA,"navigation"))==null?void 0:(f=D[0])==null?void 0:(n=f.toJSON)==null?void 0:n.call(f);t?(t.requestStart=vU(t.requestStart),t.responseEnd=vU(t.responseEnd),t.redirectStart=vU(t.redirectStart),t.redirectEnd=vU(t.redirectEnd),t.domainLookupEnd=vU(t.domainLookupEnd),t.connectStart=vU(t.connectStart),t.connectEnd=vU(t.connectEnd),t.responseStart=vU(t.responseStart),
t.secureConnectionStart=vU(t.secureConnectionStart),t.domainLookupStart=vU(t.domainLookupStart),t.isPerformanceNavigationTiming=!0,V=t):V=_.vA.timing}else V=_.c("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.vA.timing)):_.vA.timing;return V};
kQc=function(){if(_.vA.getEntriesByType){var V=_.vA.getEntriesByType("paint");if(V=_.Ac(V,function(f){return f.name==="first-paint"}))return vU(V.startTime)}var D;
_.c("csi_use_performance_navigation_timing")?D=_.vA.getEntriesByType("first-paint")[0].startTime:D=_.vA.timing.msFirstPaint;return D?Math.max(0,D):0};
BBw=function(){var V=window.location.protocol,D=_.vA.getEntriesByType("resource");D=_.Pb(D,function(f){return f.name.indexOf(V+"//fonts.gstatic.com/s/")===0});
(D=sgc(D,function(f,n){return n.duration>f.duration?n:f}))&&D.startTime>0&&D.responseEnd>0&&(_.s2("wffs",vU(D.startTime)),_.s2("wffe",vU(D.responseEnd)))};
dSw=function(V,D){V=document.querySelector(V);if(!V)return!1;var f="",n=V.nodeName;n==="SCRIPT"?(f=V.src,f||(f=V.getAttribute("data-timing-href"))&&(f=window.location.protocol+f)):n==="LINK"&&(f=V.href);_.q8(document)&&V.setAttribute("nonce",_.q8(document));return f?(V=_.vA.getEntriesByName(f))&&V[0]&&(V=V[0],f=_.k8(),_.s2("rsf_"+D,f+Math.round(V.fetchStart)),_.s2("rse_"+D,f+Math.round(V.responseEnd)),V.transferSize!==void 0&&V.transferSize===0)?!0:!1:!1};
_.kz=function(V,D){_.a9(function(){_.gN("").info.actionType=V;D&&_.ql("TIMING_AFT_KEYS",D);_.ql("TIMING_ACTION",V);var f=_.x7x(_.XB("TIMING_INFO",{}));Object.keys(f).length>0&&_.BA(f);f={isNavigation:!0,actionType:_.XkL(_.XB("TIMING_ACTION"))};var n=_.XB("PREVIOUS_ACTION");n&&(f.previousAction=_.XkL(n));if(n=_.XB("CLIENT_PROTOCOL"))f.httpProtocol=n;if(n=_.XB("CLIENT_TRANSPORT"))f.transportProtocol=n;(n=_.Ni())&&n!=="UNDEFINED_CSN"&&(f.clientScreenNonce=n);n=_.O$U();if(n===1||n===-1)f.isVisible=!0;
n=_.d73().loadType==="cold";var t=gUR();n||(n=t.yt_lt==="cold");if(n){f.loadType="cold";n=gUR();t=vUR();var J=_.k8(),H=_.XB("CSI_START_TIMESTAMP_MILLIS",0);H>0&&!_.c("embeds_web_enable_csi_start_override_killswitch")&&(J=H);J&&(_.s2("srt",t.responseStart),n.prerender!==1&&_.$7U(J));n=kQc();n>0&&_.s2("fpt",n);n=vUR();n.isPerformanceNavigationTiming&&_.BA({performanceNavigationTiming:!0},void 0);_.s2("nreqs",n.requestStart,void 0);_.s2("nress",n.responseStart,void 0);_.s2("nrese",n.responseEnd,void 0);
n.redirectEnd-n.redirectStart>0&&(_.s2("nrs",n.redirectStart,void 0),_.s2("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(_.s2("ndnss",n.domainLookupStart,void 0),_.s2("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(_.s2("ntcps",n.connectStart,void 0),_.s2("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=_.k8()&&n.connectEnd-n.secureConnectionStart>0&&(_.s2("nstcps",n.secureConnectionStart,void 0),_.s2("ntcpe",n.connectEnd,void 0));_.vA&&"getEntriesByType"in
_.vA&&BBw();n=[];if(document.querySelector&&_.vA&&_.vA.getEntriesByName)for(var Q in u8J)u8J.hasOwnProperty(Q)&&(t=u8J[Q],dSw(Q,t)&&n.push(t));if(n.length>0)for(f.resourceInfo=[],Q=_.r(n),n=Q.next();!n.done;n=Q.next())f.resourceInfo.push({resourceCache:n.value})}_.BA(f);f=_.FQ();f.preLoggedGelInfos||(f.preLoggedGelInfos=[]);Q=f.preLoggedGelInfos;f=_.NAF();n=void 0;for(t=0;t<Q.length;t++)if(J=Q[t],J.loadType){n=J.loadType;break}if(_.d73().loadType==="cold"&&(f.loadType==="cold"||n==="cold")){n=_.uuL();
t=_.FQ();t=t.gelTicks?t.gelTicks:t.gelTicks={};for(var T in n)if(!(T in t))if(typeof n[T]==="number")_.s2(T,_.dN(T));else if(_.c("log_repeated_ytcsi_ticks"))for(J=_.r(n[T]),H=J.next();!H.done;H=J.next())H=H.value,_.s2(T.slice(1),H);T={};n=!1;Q=_.r(Q);for(t=Q.next();!t.done;t=Q.next())n=t.value,_.Cl(f,n),_.Cl(T,n),n=!0;n&&_.BA(T)}_.VhR(!0);T=_.XB("TIMING_ACTION");_.Yw("ytglobal.timingready_")&&T&&_.wE9()&&_.U7X()&&_.L69()})()};
sgc=function(V,D){return Array.prototype.reduce.call(V,D,{duration:0})};
u8J={'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 NBV={};NBV.YtVisibilityRootBehavior=[_.QuV.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Mr(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.XB("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var V=_.XB("INNERTUBE_CLIENT_NAME")!=="WEB";_.c("kevlar_use_vimio_behavior")&&V&&_.rf6()}}];_.sn={};_.sn.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(V){V.detail.contextProvider=this;V.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
NBV.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Sl();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(V){var D=this;this.pageCount+=1;_.c("kevlar_use_vimio_behavior")&&(_.XB("INNERTUBE_CLIENT_NAME")==="WEB"?_.dm.addJob(function(){D.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(V)},
loadPage_:function(V){this.data=V},
ytPageBehaviorActiveObserver_:function(V){var D=this;_.c("kevlar_use_vimio_behavior")&&(V?_.XB("INNERTUBE_CLIENT_NAME")==="WEB"?_.dm.addJob(function(){D.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(V){if(!this.setScrollTopJobId_){var D=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){D.setScrollTopJobId_=0;var f=_.DY().resolve(_.Vx(_.ue));f&&_.LE(f);this.getPageScrollingElement().scrollTop=V}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.cN(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var F2B;var gy=function(){var V=_.E.apply(this,arguments)||this;V.playerListenerConfig=null;V.actionMap={"yt-show-watch-page-survey":"openSurvey"};return V};
_.v(gy,_.E);_.P=gy.prototype;_.P.dataChanged=function(){var V=this,D=_.hI();D&&D.getPlayerPromise().then(function(n){V.maybeRemovePlayerListeners(n)});
var f=this.data&&this.data.survey;f&&((f=(f=f.singleOptionSurveyRenderer||f.checkboxSurveyRenderer||f.multiStageSurveyRenderer)&&f.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(D,f):this.openSurvey())};
_.P.triggerWatchPageSurvey=function(V,D){var f=this,n,t,J,H,Q,T,y,Z,l;return _.w(function(G){if(G.nextAddress==1)return V?_.b(G,V.getPlayerPromise(),2):G.return();f.player=G.yieldResult;if(!f.player)return G.return();n={};t=_.r(D);for(J=t.next();!J.done;J=t.next())H=J.value,Q=_.r(f.createEventListenerPair(H)),T=Q.next().value,y=Q.next().value,Z=T,l=y,Z&&l&&(n[Z]=l,f.ytPlayerListenerBehavior.listenToPlayerEvent(f.player,Z,l));f.playerListenerConfig=n;_.yz(G)})};
_.P.createEventListenerPair=function(V){var D=V.playbackEventTrigger;return D?this.handlePlaybackTrigger(D):(V=V.watchTimeTrigger)?this.handleWatchTimeTrigger(V):[void 0,void 0]};
_.P.handleWatchTimeTrigger=function(V){var D=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var f=V.videoWatchFraction,n=V.watchTimeSec;return n&&f?["onVideoProgress",function(){D.player&&D.isWatchTimeConditionMet(D.player,f,n)&&D.showSurvey()}]:[void 0,
void 0]};
_.P.isWatchTimeConditionMet=function(V,D,f){var n=V.getProgressState(),t=n.current-this.lastKnownPlaybackPosition;t<5&&(this.accumulatedMediaTime+=t);this.lastKnownPlaybackPosition=n.current;n=Math.round(this.accumulatedMediaTime/n.duration*1E3)/1E3;return V.getPresentingPlayerType&&V.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>f||n>D)};
_.P.handlePlaybackTrigger=function(V){var D=this;V=V.playbackEvent;if(V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var f="onStateChange";var n=function(t){t===0&&D.showSurvey()}}else V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(f="onVideoProgress",n=function(t){D.player&&D.player.getPresentingPlayerType&&D.player.getPresentingPlayerType()===1&&t&&D.showSurvey()}):V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(f="onAdEnd",n=this.showSurvey);
return[f,n]};
_.P.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.P.openSurvey=function(){var V=this,D=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.WLR(!!D));_.dm.addJob(function(){V.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:D}})},0,0)};
_.P.maybeRemovePlayerListeners=function(V){if(this.playerListenerConfig){for(var D=_.r(Object.keys(this.playerListenerConfig)),f=D.next();!f.done;f=D.next())f=f.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(V,f,this.playerListenerConfig[f]);this.playerListenerConfig=null}};
gy.prototype.dataChanged=gy.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],gy.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],gy.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],gy.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],gy.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],gy.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],gy.prototype,"playerListenerConfig",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],gy.prototype,"lastKnownPlaybackPosition",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],gy.prototype,"accumulatedMediaTime",void 0);_.S([_.q(),_.p("design:type",Object)],gy.prototype,"player",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gy.prototype,"dataChanged",null);_.S([_.a({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],gy);
_.Y(gy,"ytd-survey-trigger-renderer",function(){if(F2B!==void 0)return F2B;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return F2B=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
var bBX=new _.L("promotedSparklesWebRenderer");var Knw=new _.L("relatedChipCommand");var ypJ;var ZB0;var jj=function(){return _.E.apply(this,arguments)||this};
_.v(jj,_.E);jj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jj.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],jj);
_.Y(jj,"ytd-compact-tvfilm-entry-point-renderer",function(){if(ZB0!==void 0)return ZB0;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ZB0=V},{mode:1});var jfc;var lGc;var GpJ;var lm=function(){return _.E.apply(this,arguments)||this};
_.v(lm,_.E);lm.prototype.ready=function(){this.initializeDefs()};
lm.prototype.initializeDefs=function(){var V=this.meta.byKey("yt-icons"),D=_.Pt(V).querySelector("#star"),f=_.Pt(V).querySelector("#star_half");V=_.Pt(V).querySelector("#star_border");D&&this.defs.appendChild(D.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0))};
lm.prototype.percentChanged=function(){for(var V=this.rating;V.firstChild;)V.removeChild(V.firstChild);var D=Math.round(this.percent/10);V=Math.floor(D/2);D%=2;var f=5-V-D;this.appendStars("star",V,0);this.appendStars("star_half",D,V);this.appendStars("star_border",f,V+D)};
lm.prototype.appendStars=function(V,D,f){for(var n=0;n<D;n++){var t=(18+this.spacing)*(n+f),J=document.createElementNS("http://www.w3.org/2000/svg","use");_.vA0(J,"#"+V);J.setAttribute("x",""+t);J.setAttribute("y","0");this.rating.appendChild(J)}};
lm.prototype.percentChanged=lm.prototype.percentChanged;_.S([_.Zv("#defs"),_.p("design:type",HTMLElement)],lm.prototype,"defs",void 0);_.S([_.Zv("#rating"),_.p("design:type",HTMLElement)],lm.prototype,"rating",void 0);_.S([_.q(),_.p("design:type",Number)],lm.prototype,"percent",void 0);_.S([_.q({value:6}),_.p("design:type",Number)],lm.prototype,"spacing",void 0);_.S([_.q({value:_.ZA.create("iron-meta",{type:"iconset"})}),_.p("design:type",_.FK)],lm.prototype,"meta",void 0);
_.S([_.KI("percent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lm.prototype,"percentChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-ratings"})],lm);
_.Y(lm,"ytd-ratings",function(){if(GpJ!==void 0)return GpJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return GpJ=V},{mode:1});var GY=function(){return _.E.apply(this,arguments)||this};
_.v(GY,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],GY.prototype,"data",void 0);_.S([_.a({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],GY);
_.Y(GY,"ytd-offer-review-renderer",function(){if(lGc!==void 0)return lGc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lGc=V},{mode:1});var ej=function(){var V=_.E.apply(this,arguments)||this;V.badges=[{textBadge:{label:_.pA("CC")}}];return V};
_.v(ej,_.E);_.P=ej.prototype;_.P.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.P.dataChanged=function(){var V=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(V&&V.commandMetadata&&_.g(V.commandMetadata,_.g0)&&_.g(V.commandMetadata,_.g0).fireAutomatically)_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}});else{var D;V&&((D=_.g(V,_.g0))==null?0:D.fireAutomatically)&&_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})}};
_.P.isEmptyContent=function(V){return this.isStorefrontEntryPointEmpty(V)&&this.shouldHideOfferModule(V)};
_.P.isStorefrontEntryPointEmpty=function(V){return!V||!V.storefrontEntryPoint};
_.P.shouldHideOfferModule=function(V){return!!V.hideVideoDetails};
_.P.isOfferModuleNavigationInactive=function(V){return!V.navigationEndpoint&&!V.serviceEndpoint};
_.P.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ej.prototype.dataChanged=ej.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ej.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.p("design:type",Boolean)],ej.prototype,"hidden",void 0);
_.S([_.q(),_.p("design:type",Object)],ej.prototype,"badges",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ej.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ej);
_.Y(ej,"ytd-movie-offer-module-renderer",function(){if(jfc!==void 0)return jfc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jfc=V},{mode:1});var epB;var cF=function(){return _.E.apply(this,arguments)||this};
_.v(cF,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],cF.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cF.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],cF);
_.Y(cF,"ytd-media-masthead-renderer",function(){if(epB!==void 0)return epB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return epB=V},{mode:1});var cpw;_.fT(_.ZDl,"course-metadata-view-model",{props:{data:_.Dn,isOverlay:_.Dn}});var FJ=function(){var V=_.E.apply(this,arguments)||this;V.isMetadataVisible=!1;V.modernPanels=_.c("kevlar_watch_modern_panels");V.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return V};
_.v(FJ,_.E);_.P=FJ.prototype;
_.P.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"}}}}};
_.P.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.P.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.P.expanderChanged=function(){var V;if((V=this.data)==null?0:V.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.P.isExpandButtonToggled=function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.expandMetadataButton,_.FO))==null?void 0:D.isToggled};
_.P.onVisibilityButtonClick=function(){var V;if((V=this.data)==null?0:V.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.P.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
FJ.prototype.expanderChanged=FJ.prototype.expanderChanged;FJ.prototype.dataChanged=FJ.prototype.dataChanged;FJ.prototype.descriptionChanged=FJ.prototype.descriptionChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],FJ.prototype,"actionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],FJ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],FJ.prototype,"isMetadataVisible",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],FJ.prototype,"modernPanels",void 0);_.S([_.Zv("#expander"),_.p("design:type",Object)],FJ.prototype,"expander",void 0);_.S([_.KI("data.description"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FJ.prototype,"descriptionChanged",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FJ.prototype,"dataChanged",null);_.S([_.KI("isMetadataVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FJ.prototype,"expanderChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],FJ);
_.Y(FJ,"ytd-tvfilm-offer-module-renderer",function(){if(cpw!==void 0)return cpw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return cpw=V},{mode:2});var FnB;var ge=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return V};
_.v(ge,_.E);ge.prototype.dataChanged=function(){this.hostElement.hidden=!1};
ge.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
ge.prototype.onThumbnailTap=function(V){this.data&&this.data.serviceEndpoint&&(_.DY().resolve(_.fH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),V.stopPropagation())};
ge.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
ge.prototype.dataChanged=ge.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ge.prototype,"rendererBehaviors",void 0);_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],ge.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ge.prototype,"data",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ge.prototype,"dataChanged",null);_.S([_.a({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],ge);
_.Y(ge,"ytd-unlimited-offer-module-renderer",function(){if(FnB!==void 0)return FnB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FnB=V},{mode:1});var g_V;var v_R;var vF=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return V};
_.v(vF,_.E);vF.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
vF.prototype.handleRelatedChipCommand=function(V){V=_.g(V,Knw);var D=V.contents;D?_.JR(this.hostElement,"yt-item-section-replace-action",[D,V.targetSectionIdentifier]):_.JR(this.hostElement,"yt-item-section-continuation-action",[V.continuationData,V.targetSectionIdentifier])};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],vF.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vF.prototype,"data",void 0);_.S([_.zy({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],vF);
_.Y(vF,"yt-related-chip-cloud-renderer",function(){if(v_R===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;g_V===void 0&&(g_V=document.createElement("template"));var n=g_V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);v_R=V}V=v_R;return V},{mode:2});var ka=function(){var V=_.E.apply(this,arguments)||this;V.isTwoColumns=!0;V.hideOfferModules=!1;V.watchFeedBigThumbs=_.c("kevlar_watch_feed_big_thumbs");V.watchNextGridHideChips=_.c("kevlar_watch_grid_hide_chips");V.eligibleToSwitchToGrid=_.c("web_watch_eligible_to_switch_to_grid");V.disableShortsShelfHeightOverride=_.c("web_shorts_wn_shelf_ratio_tuning");V.isWatchNextGrid=!1;V.reuseComponents=!_.c("kevlar_watch_grid");V.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return V};
_.v(ka,_.E);_.P=ka.prototype;
_.P.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:!_.c("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}}};
_.P.getItemsPath=function(){return"data.results"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.P.created=function(){this.ytLazyListBehavior.initialCount=1};
_.P.ready=function(){_.wI(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%"})};
_.P.resultsChanged=function(){if(this.data&&this.data.results){for(var V=this.data.results,D=null,f=null,n=0;n<V.length;n++)V[n].relatedChipCloudRenderer?D=V[n].relatedChipCloudRenderer:V[n].itemSectionRenderer&&(f=V[n].itemSectionRenderer);if(D&&f)for(this.set("data.continuations",[]),V=_.g(D.content,_.E9U).chips,D=0;D<V.length;D++)if(n=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",V[D]),n.loadCached||!n.contents){n.contents=f.contents;break}}};
_.P.dataChanged=function(){var V=this,D;if((D=this.data)!=null&&D.results&&this.hasAllowedInstreamAd(this.playerData)){if(D=this.data.results.filter(function(Q){return!!Q.promotedSparklesWebRenderer})){for(var f=0;f<D.length;f++){var n=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",D[f]);
if(n)for(var t=0;t<n.length;t++)n[t]&&n[t].baseUrl&&_.Ye(n[t].baseUrl)}this.set("data.results",this.data.results.filter(function(Q){return!Q.promotedSparklesWebRenderer}))}if(D=this.data.results.filter(function(Q){return!!V.getSparklesAd(Q)})){D=_.r(D);
for(t=D.next();!t.done;t=D.next())if(n=f=void 0,t=(f=this.getSparklesAd(t.value))==null?void 0:(n=f.errorCommand)==null?void 0:n.loggingUrls)for(f=_.r(t),n=f.next();!n.done;n=f.next())(n=n.value)&&n.baseUrl&&_.Ye(n.baseUrl);var J,H;this.set("data.results",(J=this.data)==null?void 0:(H=J.results)==null?void 0:H.filter(function(Q){return!Q.adSlotRenderer}))}}};
_.P.getSparklesAd=function(V){var D,f;V=_.g((D=V.adSlotRenderer)==null?void 0:(f=D.fulfillmentContent)==null?void 0:f.fulfilledLayout,_.W$V);return _.g(V==null?void 0:V.renderingContent,bBX)};
_.P.hasAllowedInstreamAd=function(V){V=this.get("adPlacements",V)||[];for(var D=0;D<V.length;D++){var f=this.get("adPlacementRenderer.config.adPlacementConfig",V[D]);if(f&&f.suppressDisplayAd)return!0}return!1};
_.P.computeHideUnlimitedOfferModule=function(V,D){return V&&V.offerModule&&D&&V.offerModule.unlimitedOfferModuleRenderer&&V.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(D)?!0:!1};
_.P.hideUnlimitedOfferModuleChanged=function(){var V=_.Pt(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");V&&(V.hidden=this.hideUnlimitedOfferModule)};
_.P.updateLockupContainerTypes=function(V){if(this.eligibleToSwitchToGrid){var D;(D=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||D.forEach(function(f){f.containerType=V})}};
_.P.computeHideTvfilmOfferModule=function(V,D){var f,n;return!!((V==null?0:(f=V.offerModule)==null?0:(n=f.tvfilmOfferModuleRenderer)==null?0:n.clientShouldSuppressIfCompanionAdDisplayed)&&D&&this.hasCompanionAds(D))};
_.P.hideTvfilmOfferModuleChanged=function(){var V=_.Pt(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");V&&(V.hidden=this.hideTvfilmOfferModule)};
_.P.hasCompanionAds=function(V){V=this.get("adPlacements",V)||[];for(var D=0;D<V.length;D++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",V[D]))return!0;var f=void 0,n=void 0,t=void 0;if(!_.c("web_watch_top_banner_companion_check_killswitch")&&((f=V[D])==null?0:(n=f.adPlacementRenderer)==null?0:(t=n.renderer)==null?0:t.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.P.hasSuppressedResults=function(V){return V==null?!0:V.filter(function(D){return!D.continuationItemRenderer&&!D.compactPromotedVideoRenderer&&!D.promotedSparklesWebRenderer}).length===0};
_.P.computeShowButton=function(V,D){return this.isWatchNextGrid?V:V||this.hasSuppressedResults(D)};
_.P.showButtonChanged=function(){if(this.isWatchNextGrid){var V=_.Pt(this.hostElement).querySelector("ytd-rich-grid-renderer");V&&this.showButton!==null&&(V.continuationShowButton=this.showButton)}else{V=_.Pt(this.hostElement).querySelector("yt-next-continuation");var D=_.Pt(this.hostElement).querySelector("ytd-continuation-item-renderer"),f=_.Pt(this.hostElement).querySelector("ytd-item-section-renderer");V&&(V.showButton=this.showButton);D&&(D.showButton=this.showButton);f&&(f.continuationShowButton=
this.showButton)}};
_.P.continuationTap=function(V){var D;if(((D=this.data)==null?void 0:D.continuations)!=null&&V.target.tagName==="TP-YT-PAPER-BUTTON")for(V=this.data.continuations,D=0;D<V.length;D++)V[D].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(V[D].nextContinuationData||{})};
_.P.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("shown-items-changed",this.shownItems))};
_.IG.Object.defineProperties(ka.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.shownItems)==null||!V.some(function(D){return!!D.lockupViewModel||D.compactVideoRenderer}))}}});
ka.prototype.shownItemsChangedForBinding=ka.prototype.shownItemsChangedForBinding;ka.prototype.showButtonChanged=ka.prototype.showButtonChanged;ka.prototype.hideTvfilmOfferModuleChanged=ka.prototype.hideTvfilmOfferModuleChanged;ka.prototype.updateLockupContainerTypes=ka.prototype.updateLockupContainerTypes;ka.prototype.hideUnlimitedOfferModuleChanged=ka.prototype.hideUnlimitedOfferModuleChanged;ka.prototype.dataChanged=ka.prototype.dataChanged;ka.prototype.resultsChanged=ka.prototype.resultsChanged;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],ka.prototype,"ytLazyListBehavior",void 0);_.S([_.u(_.iq.YtNextContinuationBehavior),_.p("design:type",Object)],ka.prototype,"ytNextContinuationBehavior",void 0);
_.S([_.u(_.$D),_.p("design:type",Object)],ka.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ka.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],ka.prototype,"playerData",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],ka.prototype,"autoFill",void 0);_.S([_.q({value:60}),_.p("design:type",Number)],ka.prototype,"targetFramerate",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"isTwoColumns",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"hideOfferModules",void 0);_.S([_.q(),_.p("design:type",Object)],ka.prototype,"shownItems",void 0);_.S([_.q({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.p("design:type",Boolean)],ka.prototype,"hideUnlimitedOfferModule",void 0);
_.S([_.q({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.p("design:type",Boolean)],ka.prototype,"hideTvfilmOfferModule",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"watchFeedBigThumbs",void 0);_.S([_.q(),_.p("design:type",Object)],ka.prototype,"watchNextGridHideChips",void 0);_.S([_.q(),_.p("design:type",Object)],ka.prototype,"eligibleToSwitchToGrid",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"disableShortsShelfHeightOverride",void 0);_.S([_.q({selector:_.mf,reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"isGridViewEnabled",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],ka.prototype,"showMoreButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ka.prototype,"isWatchNextGrid",void 0);
_.S([_.q({computed:"computeShowButton(showMoreButton, data.results)"}),_.p("design:type",Boolean)],ka.prototype,"showButton",void 0);_.S([_.eY("data.results.*"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"resultsChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"dataChanged",null);
_.S([_.KI("hideUnlimitedOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"hideUnlimitedOfferModuleChanged",null);_.S([_.R("isGridViewEnabled","containsLockups","data"),_.q({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],ka.prototype,"lockupContainerType",null);
_.S([_.KI("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],ka.prototype,"updateLockupContainerTypes",null);_.S([_.KI("hideTvfilmOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"hideTvfilmOfferModuleChanged",null);_.S([_.KI("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"showButtonChanged",null);
_.S([_.KI("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ka.prototype,"shownItemsChangedForBinding",null);_.S([_.R("shownItems"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ka.prototype,"containsLockups",null);
_.Y(ka,"ytd-watch-next-secondary-results-renderer",function(){if(ypJ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);ypJ=V}V=ypJ;return V},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.OqX={};
_.OqX.YtdWatchBehavior=[_.U.YtRendererBehavior,_.ax.YtPlayerListenerBehavior,_.V8.YtRendererstamperBehavior,_.D6.YtActionHandlerBehavior,_.sn.YtPageBehavior,_.bz.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 _.EG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.EG("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_error_screen_fix")}},
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 _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("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 _.tU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tU("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!_.c("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("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 _.c("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.c("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("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 V={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:_.C0(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.C0(["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"||_.c("swa_prov_panels_ks")?V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},V.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return V},
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 V=this;this.watchController=void 0;this.pageDisposeJobs=[function(){V.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||V.clearComments_()},
function(){V.clearPlayerAds_()},
function(){V.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;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.C_R(function(){return _.Ma(V)},this.hostElement);
this.pageDisposeJobs.push(function(){V.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){V.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.tV;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;_.c("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));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ty(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(V){V&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:V}),V.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(V){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=V,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(V){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||V||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(V){this.active!==void 0&&(this.fullscreen=V,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(V){this.active!==void 0&&(_.PA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(V>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(V){this.initCsi_();this.updatePageData_(V)},
updatePageData_:function(V){var D=this;if(V)if(this.data===V){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=V;this.playlist&&_.N1({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zm("nw");this.loading=!1;_.gq(_.dm,function(){D.initDclkstatus_();var n,t=((n=D.player)==null?void 0:n.getVideoData().cpn)||"";_.eeq(function(J,H){_.U4X(J,H,t)})})},
onPageLoadWithSameData_:function(){_.c("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 V=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!V);this.set("loadingData.playlistLoading",V&&V!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),V=this.watchNextSkeletonEl_.firstElementChild;V;)V.classList.remove("hidden"),V=V.nextElementSibling;if(_.c("kevlar_watch_frame0_loading_state")){var D,f,n;V=(D=this.loadingData)==null?void 0:(f=D.endpoint)==null?void 0:(n=f.watchEndpoint)==null?void 0:n.videoId;var t;V&&(t="https://i.ytimg.com/vi/"+V+"/frame0.jpg");_.Pt(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var V=_.Pt(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&V&&(V.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var D,f;(f=(D=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(D);var n,t;(t=(n=this.watchMetadata).resize)==null||t.call(n)}_.c("kevlar_watch_frame0_loading_state")&&(_.Pt(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(V){var D=_.Pt(this.hostElement).querySelector(V);D?_.Dl(D,!1):_.zP(new _.cI("Overscroll monitor not found for component: ",V))},
removeSplitScrollMouseTrap:function(V){var D=_.Pt(this.hostElement).querySelector(V);D?_.f6(D):_.zP(new _.cI("Disposal component for  overscroll monitoring not found: ",V))},
onLoadingChanged_:function(V){V?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(V){var D=this;V?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dm.addLowPriorityJob(function(){D.onWindowResized_(_.FS(!0))})},
updateTheaterModeState_:function(V){if(!_.c("kevlar_watch_flexy_theater_manager")){V=V||this.fullWindowMode_;if(this.theater!==void 0||V)this.theater=V;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();V&&_.ui0()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.c("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var V=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.c("external_fullscreen")&&this.fullscreen&&(V=!0);_.c("web_watch_error_screen_fix")&&(V=this.fullBleedPlayer);V=V?_.Pt(this.hostElement).querySelector("#player-full-bleed-container"):_.Pt(this.hostElement).querySelector("#player-container-inner");var D=this.getPlayerContainer(),f=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");D.parentElement!==V&&(f&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.Ma(this).appendTo(V,D),_.c("web_watch_error_screen_fix")||V.appendChild(_.Pt(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var V=_.Pt(this.hostElement).querySelector("#error-screen"),D=this.fullBleedPlayer?_.Pt(this.hostElement).querySelector("#player-full-bleed-container"):_.Pt(this.hostElement).querySelector("#player");V.parentElement!==D&&D.appendChild(V)},
deactivateMiniplayerAndResetPlayer:function(){var V=this;return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.DY().resolve(_.qw).deactivate(),2);V.updatePlayerLocation();_.yz(D)})},
updateCinematicsLocation:function(){var V=this.getElement("CINEMATICS");if(V){var D=this.getCinematicsLocationContainer();V.parentElement!==D&&D.appendChild(V);var f;(f=this.watchController)==null||f.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.Pt(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Pt(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(V,D,f){var n=document.documentElement.hasAttribute("dark"),t=n&&_.c("web_cinematic_theater_mode"),J=n&&_.c("web_cinematic_fullscreen");n=!n&&this.cinematicLightTheme;return f||V&&t||D&&J||(D||V)&&n},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var V=this,D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.DY().resolve(_.zI).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,_.c("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.dm.addLowPriorityJob(function(){_.JR(V.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var f,n,t;if((f=this.data)==null?0:(n=f.contents)==null?0:(t=n.twoColumnWatchNextResults)==null?0:t.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,H;((J=this.data)==null?0:(H=J.contents)==null?0:H.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(V){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData);V&&V.playabilityStatus&&(D=this.isVideoPlayable_(V.playabilityStatus,this.getPlayerOverlays_(this.data)),V=this.isLiveStreamOffline_(V.playabilityStatus),D&&!V||_.pO(this,function(){_.zm("pbu")}));
this.setPlayerAds_();_.JR(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(V,D){if((_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"))&&this.playerData&&D)return this.playerData.videoDetails},
watchPageActiveChanged_:function(V){_.Ol().dispatch(_.fLv(this.active));V?this.activate_():this.deactivate_()},
attached:function(){var V=this;this.watchController=new _.Az(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);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var D=_.Ma(this);_.c("kevlar_disable_prepare_player")||
D.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.DY().resolve(_.zI).setPlayer(D);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();D={"--ytd-watch-flexy-scrollbar-width":_.mB()+"px"};this.is==="ytd-watch-grid"&&(D["--ytd-watch-flexy-sidebar-width"]=_.KV0+"px",D["--ytd-watch-grid-horizontal-page-margins"]=_.qc+"px",D["--ytd-watch-grid-columns-top-margins"]=_.QSX+"px",D["--ytd-watch-grid-min-player-height-medium"]="360px");!_.tU("kv_pl_mx_sz_ks")&&
_.tU("kevlar_watch_max_player_width")&&(D["--ytd-watch-flexy-max-player-width-wide-screen"]=_.yj0+"px");_.tU("kevlar_watch_flexy_metadata_height")&&(D["--ytd-watch-flexy-space-below-player"]=_.ZP0+"px");this.safeUpdateStyles(D);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.HL(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return V.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Pt(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var V=_.mB(),D=_.XJ+V,f=D;this.fixedPanels&&(D+=_.KV0);var n=657+V;V=1327+V;_.Pt(this.hostElement).querySelector("#two-column-query").query="(min-width: "+D+"px)";_.Pt(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(D+"px) and (max-width: ")+(V+"px)");_.Pt(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(V+"px)");
_.Pt(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+f+"px)"},
calculateCurrentPlayerSize_:function(){var V=_.Pt(this.hostElement).querySelector("#miniplayer-bar").firstChild,D=this.squeezeback&&!_.c("web_watch_squeezeback_player_size_killswitch");return V&&V.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||D||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.bB(NaN,NaN):_.iP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.iP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mr(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var V=this;this.onWindowResized_(_.FS());_.c("browse_skeleton_removal_on_watch_killswitch")||_.EG("IS_SHELL_LOAD")&&_.cwB();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var D=_.Ma(this);D.addEventListener("yt-player-updated",_.Ty(this,this.onPlayerUpdated_));D.getPlayerPromise().then(function(f){V.playerApiReady_(f)});
_.c("kevlar_watch_flexy_playlist_manager")||(D=_.DY().resolve(_.zI),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&D.addEventListener("yt-navigate",_.Ty(this,this.onYtNavigate_)),D.setPlaylistComponent(_.Pt(this.hostElement).querySelector("#playlist")),D.addEventListener("yt-playlist-data-updated",_.Ty(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dm.addLowPriorityJob(function(){_.PA(V.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ma(this).removeEventListener("yt-player-updated",_.Ty(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.c("kevlar_watch_flexy_playlist_manager")){var V=_.DY().resolve(_.zI);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&V.removeEventListener("yt-navigate",_.Ty(this,this.onYtNavigate_));
V.cancelVideoSkip();V.removeEventListener("yt-playlist-data-updated",_.Ty(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.PA(this.hostElement,"yt-autonav-pause-player",!1);V=_.UX();_.c("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vv(V)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(V){this.player&&this.player.updateVideoData({rvs:V.rvs})},
getPageContents:function(V){return V&&V.contents&&V.contents.twoColumnWatchNextResults&&V.contents.twoColumnWatchNextResults.results&&V.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(V){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",V)},
onRetrieveLocation_:function(V,D){D.hasComments?D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):D.locationRetrieved("/related_ajax",void 0);V.stopPropagation()},
onSubscriptionChanged_:function(V,D){this.player&&(D?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.kz("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Pt(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Pt(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(V){this.player=V;this.setPlayerState(V.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.LL()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(V,D){D=D===void 0?!0:D;_.UX()&&_.c("external_fullscreen")&&_.Vv(document.documentElement);this.theaterRequested_=V;D&&_.j1("wide",V?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.o4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.PA(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(V){_.R2(V,typeof this.player),this.player&&_.R2(V,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var V;((V=this.player)==null?0:V.isFullscreen())?this.player.toggleFullscreen():_.o4(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(V,D){return this.loading?D:!!Object.keys(V).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(V){if(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next())D=D.value,D.youThereRenderer&&_.EHV(this.youThereManager_,D.youThereRenderer)}},
setPlaylistData_:function(V){return V||{}},
userEngagementConfigDataChanged_:function(V){if(V)if(V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var D=this.youThereManager_;_.Vf()<V.lowEngagementThresholdMs||_.$tv(D,!0)}else V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.o4(this.hostElement,"yt-autonav-pause-user-engagement",[V])},
isPlayerUnavailable_:function(V,D,f){return!!V&&!this.isVideoPlayable_(V,f)&&!D},
getPlayerOverlays_:function(V){return(V==null?void 0:V.playerOverlays)||null},
isVideoPlayable_:function(V,D){if(!V)return!1;var f=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",V)||this.get("errorScreen.ypcTrailerRenderer",V);V=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",V);var t;D=D==null?void 0:(t=D.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!f||!!n||!!V||!!D},
hasWatchNextResponseErrorRenderer:function(V){var D=this.getPageContents(V),f,n,t,J,H;return!(V==null?0:(f=V.contents)==null?0:(n=f.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((t=D[0])==null?0:(J=t.itemSectionRenderer)==null?0:(H=J.contents[0])==null?0:H.backgroundPromoRenderer)},
isLiveStreamOffline_:function(V){return V?V.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(V,D,f){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.c("web_no_skip_video_on_verification_checks")?(V==null?void 0:V.status)&&t.includes(V.status):V&&V.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",V);J==void 0&&(J=!0);!f||this.isVideoPlayable_(V,this.getPlayerOverlays_(D))||
n||t||!J||_.DY().resolve(_.zI).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.soJ()},
onPlayerFeedbackStartRequest_:function(V){_.o4(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:V}])},
onPlayerFeedbackArticleRequest_:function(V){_.o4(this.hostElement,"yt-help-dialog-requested",[V])},
onPlayerYpcContentRequest_:function(){var V,D,f,n,t,J,H,Q,T=((V=this.data)==null?NaN:(D=V.contents)==null?NaN:(f=D.twoColumnWatchNextResults)==null?NaN:(n=f.secondaryResults)==null?NaN:(t=n.secondaryResults)==null?NaN:(J=t.offerModule)==null?NaN:(H=J.tvfilmOfferModuleRenderer)==null?NaN:(Q=H.actionButtons)==null?NaN:Q.length)-1;V=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];D=_.r(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=D.next();!f.done;f=D.next())for(f=f.value,n=_.r(V),t=n.next();!t.done;t=n.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.Km(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(V){_.PA(this.hostElement,"yt-autonav-pause-player",V)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(V){V()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.PA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(V)},
setPlayerState:function(V){_.Ol().dispatch(_.gEu(V))},
onPlayerSubscribe_:function(V){_.o4(this.hostElement,"yt-player-subscribe",[V])},
onPlayerUnsubscribe_:function(V){_.o4(this.hostElement,"yt-player-unsubscribe",[V])},
onPlayerAdYtShowToast_:function(V){_.o4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:V.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(V){if(V)return V},
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(V){return!_.c("web_watch_move_summary_to_sd")&&!!V},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.c("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var V,D,f,n;this.watchNextSecondaryResults=(V=this.data)==null?void 0:(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.secondaryResults)==null?void 0:n.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.c("swatcheroo_pbs_load_grid")&&!_.c("swatcheroo_provide_all_data_on_scheduled_job")){_.dm.cancelJob(this.setRichGridJobId_);var V,D,f,n,t,J,H;this.setRichGridRendererData((V=this.data)==null?void 0:(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.secondaryResults)==null?void 0:(t=n.secondaryResults)==null?void 0:(J=t.results)==null?void 0:(H=J[0])==null?
void 0:H.richGridRenderer)}},
setRichGridRendererData:function(V){this.richGridRendererData=V},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var V,D=(V=this.data)==null?void 0:V.engagementPanels;if(D==null?0:D.length){V=null;D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;if(((n=f.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){V=f;break}}var t,J,H;V=(t=V)==null?void 0:(J=t.engagementPanelSectionListRenderer)==null?void 0:(H=J.content)==null?void 0:H.structuredDescriptionContentRenderer;if(V==null?0:V.items){t=
[];J=_.r(V.items);for(H=J.next();!H.done;H=J.next()){H=H.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var Q=n=f=D=V=void 0,T=void 0,y=(V=H.horizontalCardListRenderer)==null?void 0:(D=V.header)==null?void 0:(f=D.richListHeaderRenderer)==null?void 0:(n=f.navigationButton)==null?void 0:(Q=n.buttonRenderer)==null?void 0:(T=Q.command)==null?void 0:T.commandExecutorCommand;y&&y.commands&&(y.commands=y.commands.filter(function(Z){return!_.g(Z,_.N8B)}))}H.expandableVideoDescriptionBodyRenderer||
H.videoDescriptionHeaderRenderer||t.push(H)}return{items:t}}}},
constructWarning_:function(V){return{text:_.pA(V),type:"WARNING"}},
isPlaShelfEnabled_:function(V){if((this.get("adPlacements",V)||[]).length)return!0;V=this.get("playerAds",V)||[];return!(!V.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",V[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var V=this;_.PA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var D=this.getScrollTop()>0;this.gestures_&&(D?this.gestures_.detach():this.gestures_.attach());D!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=D,_.Ma(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(V.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.PA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var V=this;this.commentsReady=!1;_.dm.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.gq(_.dm,function(){V.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zm("cmi");_.dm.cancelJob(this.setCommentsJobId_);var V=this.getPageContents(this.data);if(V&&V.length){V=_.r(V);for(var D=V.next();!D.done;D=V.next())if(D=D.value,this.get("itemSectionRenderer.sectionIdentifier",D)==="comment-item-section"){this.comments=D.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.PA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zm("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(V,D){var f=_.g(D.endpoint,_.pl);f&&(!(D=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==D.videoId||f.playlistId&&f.playlistId!==D.playlistId||f.index!==void 0&&f.index!==D.index||typeof f.startTimeSeconds!=="number"||(V.stopPropagation(),this.setScrollTop(0),_.Ma(this).getPlayerPromise().then(function(n){var t=f.startTimeSeconds;n.seekTo(t);n.wakeUpControls();t<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var V=_.Qov();"t"in V&&(V=_.kWR(V.t),this.player.seekTo(V,!0))},
updateTitleFromWatchNext:function(V){V=this.getPageContents(V);var D,f;(V=_.LA(V==null?void 0:(D=V[0])==null?void 0:(f=D.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.PA(this.hostElement,"yt-update-title",V)},
updateTitle_:function(V){V=this.get("videoDetails.title",V)||"";_.PA(this.hostElement,"yt-update-title",V)},
syncWithRemoteVideo_:function(V,D,f){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===f&&(f=n.list,_.c("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),n.video_id!==V||f!=D)){var t;_.c("kevlar_player_watch_endpoint_navigation")?t=_.Iyd(_.cH0(V,D)):t=this.buildWatchEndpoint_(V,D);_.PA(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(V,D,f){return _.U2(V,D,f)},
initDclkstatus_:function(){_.vHJ()},
attachWatchPageSkeleton_:function(){var V=document.querySelector("#watch-page-skeleton");if(V){var D=V.querySelector("#primary-info"),f=V.querySelector("#secondary-info"),n=V.querySelector("#related");D&&_.Pt(this.hostElement).querySelector("#info-skeleton").appendChild(D);f&&_.Pt(this.hostElement).querySelector("#meta-skeleton").appendChild(f);n&&(_.Pt(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.ZC(V)}},
handlePlayerUpdated_:function(){_.Ma(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(V,D){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof D!=="undefined"){var f=this.watchNextSkeletonEl_.children,n=V&&V.indexSplices.length?V.indexSplices[0].index:0;V=Math.min(this.watchNextShownItems.length,f.length);D||(n=0,V=f.length);for(D=n;D<V;D++)f[D].classList.add("hidden")}},
onPlayerFullscreenChange_:function(V){_.c("external_fullscreen")||_.o4(this.hostElement,"yt-player-fullscreen",[V.fullscreen])},
onFullscreenChange_:function(V){this.fullscreen=V;this.gestures_&&this.gestures_.update(this.fullscreen);var D=_.Ma(this);D.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.UX())});
this.updateFullBleedElementLocations();V&&(D.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(V,D){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!D},
computeIsDonationShelfCollapsed_:function(V){return V},
computeShouldShowMerchShelf:function(V,D){return D&&!!V},
computeResponseHasComments:function(V){var D,f,n,t,J;return!!(V==null?0:(D=V.contents)==null?0:(f=D.twoColumnWatchNextResults)==null?0:(n=f.results)==null?0:(t=n.results)==null?0:(J=t.contents)==null?0:J.some(function(H){var Q;return(H==null?void 0:(Q=H.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(V,D,f,n){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&n?!1:!!V&&!!Object.keys(V).length&&!D},
identity:_.YF,onWindowResized_:function(V){this.windowSize_=V;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(V){var D=this;V&&V.type!=="dataloaded"&&V.type!=="dataupdated"||_.Ma(this).getPlayerPromise().then(function(f){var n=f.getPlayerState();n!==5&&n!==0&&(f=1/f.getVideoAspectRatio(),D.videoHeightToWidthRatio_!==f&&(D.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(V){var D=this,f=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),n=function(){if(D.watchMetadata){var t,J;(J=(t=D.watchMetadata).resize)==null||J.call(t)}_.Ma(D).getPlayerPromise().then(function(H){if(_.c("kevlar_set_internal_player_size")){if(!f||!D.isMiniplayerActive()){var Q=D.calculateCurrentPlayerSize_();H.setInternalSize(Q.width,Q.height)}}else H.setSize(NaN,NaN);_.c("kevlar_watch_while")&&D.updateWatchWhileScrollThreshold_()})};
V?n():_.sw(_.dm,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(V){this.set("data.survey",V.detail)},
onYtShowSurveyCommand_:function(V){this.set("data.survey",_.g(V,_.ReV).survey)},
onDownloadedVideoDeleted:function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1){if(!D.active||(f=D.playerData)==null||!f.offlineState||D.videoId!==V)return t.return();(n=D.player)==null||n.stopVideo();_.b$().navigatingAwayFromWatchDeletedVideo=!0;_.Km(_.y19,D.hostElement);return _.b(t,_.b$().navigationFinishPromise,2)}_.b$().navigatingAwayFromWatchDeletedVideo=!1;_.yz(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var V;this.theater?V=_.Nw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):V=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==V&&(this.watchWhileScrollThreshold_=V,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var V=_.Pt(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&V){var D=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!V.active&&D&&f>=this.watchWhileScrollThreshold_?(V.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):V.active&&(!D||f<this.watchWhileScrollThreshold_&&!_.UX())&&(V.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var V=_.Pt(this.hostElement).querySelector("#secondary-inner");if(V){var D=_.Pt(this.hostElement).querySelector("#below"),f=_.Pt(this.hostElement).querySelector("#secondary"),n=_.Pt(this.hostElement).querySelector("#comments");n&&f&&D&&(this.defaultTwoColumnLayout?(V.appendChild(n),f.appendChild(V)):(D.appendChild(n),_.CV(D,V)))}}},
isTwoColumnsChanged_:function(V,D){if(V!==!0||D!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(V=_.Pt(this.hostElement).querySelector("#secondary-inner"))){D=_.Pt(this.hostElement).querySelector("#below");var f=_.Pt(this.hostElement).querySelector("#secondary"),n=_.Pt(this.hostElement).querySelector("#comments");n&&f&&D&&(this.isTwoColumns_?(V.appendChild(n),f.appendChild(V)):(D.appendChild(n),
_.CV(D,V)))}}else{V=!_.c("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);D=_.Pt(this.hostElement).querySelector("#panels");var t=_.Pt(this.hostElement).querySelector("#alerts");f=_.Pt(this.hostElement).querySelector("#playlist");n=_.Pt(this.hostElement).querySelector("#related");var J=_.Pt(this.hostElement).querySelector("#donation-shelf"),H=_.Pt(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.Pt(this.hostElement).querySelector("#secondary-inner"),
V&&(t.appendChild(D),t.appendChild(f)),t.appendChild(J),t.appendChild(n)):(V&&(_.sO(D,t),_.sO(f,t)),_.sO(J,t),H&&_.sO(n,H));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.c("web_watch_enable_fs_squeezeback_panels")&&_.c("web_watch_theater_chat")){var V=_.Pt(this.hostElement).querySelector("#chat-container"),D=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&D?(D=_.Pt(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==D&&D.append(V),this.fixedPanels=!0):(this.fixedPanels=
!1,D=_.Pt(this.hostElement).querySelector("#playlist"),V&&D?_.BN(V,D):_.zP(new _.cI("Missing element when updating chat location",{"chatContainer defined":!!V,"playlist defined":!!D})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(V,D){return _.c("sw_metadata_vis_toggle_ks")?!0:!!V||!!D},
computeForceDarkPanelTheme:function(V){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&V:!1},
safeUpdateStyles:function(V){try{_.wI(this.hostElement,V)}catch(D){_.zP(D)}},
videoHeightToWidthRatioChanged_:function(V,D){D&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(V){this.videoHeightToWidthRatio_=1/V},
computeIsVerticalVideo_:function(V){return V>=1},
computeIsFourThreeToSixteenNineVideo_:function(V){return V<=.7501&&V>=.5624},
computeIsExtraWideVideo_:function(V){return V<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ma(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ma(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.iqw(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(V){var D=_.J5(V)||0;_.oC(V,D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var V=_.J5("yt-fullerscreen-edu-button-click-count")||0,D=_.J5("yt-fullerscreen-edu-button-shown-count")||0,f=_.tU("external_fullscreen_button_shown_threshold"),n=V>=_.tU("external_fullscreen_button_click_threshold")||D>=f;_.Ma(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(V,D){return D},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.DY().resolve(_.zI).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var V=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.dm.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.dm.addLowPriorityJob(function(){V.fullHeightPanelPositionUpdateJobId=0;var D=_.Pt(V.hostElement).querySelector("#secondary"),f=_.Pt(V.hostElement).querySelector("#fixed-secondary");D=D.getBoundingClientRect();var n=D.width;V.swatcherooSqueezeback&&
(n+=_.qc);if(V.swatcherooSqueezeback){var t=_.Pt(V.hostElement).querySelector("#squeezeback-constraining-container");t.style.width=n+"px";t.style.flex="0 0 "+n+"px"}f.style.width=n+"px";f.style.left=D.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var V=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.dm.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.dm.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;var D;!V.isTwoColumns_||V.theater||V.fullscreen?D=460:D=V.calculateNormalPlayerSize_().height;var f=D+"px";_.c("live_chat_taller_height")&&!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.c("live_chat_medium_height")&&!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");V.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":D+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":D+"px","--ytd-watch-flexy-comments-panel-max-height":D+"px","--ytd-comments-engagement-panel-content-height":D+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(V){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",V)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.wN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(V){var D=_.Pt(this.hostElement).querySelector("#engagement-panel-scrim");V?D.addEventListener("tap",_.Ty(this,this.onEngagementPanelScrimClick_)):D.removeEventListener("tap",_.Ty(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(V){if(this.hostElement.contains(V)&&!this.scrollToAnimation_.isAnimating()){var D=V.offsetTop-24;V=V.offsetTop+V.offsetHeight+24;var f=this.getPageScrollingElement(),n=this.getScrollTop(),t=n+f.clientHeight-56;if(D<n+56)D-=56;else if(V>t)D=V-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtSignalActionScrollToComments:function(){var V=this.hostElement.querySelector("#comments");if(V&&!this.scrollToAnimation_.isAnimating()){V=V.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(V-=_.Ki().height/3,V<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,V),500)}},
onYtEngagementPanelVisibleChanged:function(V,D,f){if(this.active&&this.trackEngagementPanelVisibility&&!_.mtX.includes(f)){if(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.JR(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var n=_.DY().resolve(_.lM);this.visiblePanelIdentifiers_.forEach(function(t){t!==f&&n.hidePanel(t)})}this.visiblePanelIdentifiers_.add(f)}D!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&D!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(V){return V?"":"watch-active-metadata"},
computeNewMetadataClass:function(V){return V?"watch-active-metadata":""},
computeFullBleedPlayer:function(V,D,f){return _.c("web_watch_error_screen_fix")?_.c("external_fullscreen")&&V||D||this.enableFullBleedSingleColumnDefaultPlayer&&!f:V||D||this.enableFullBleedSingleColumnDefaultPlayer&&!f},
computeDefaultLayout:function(V){return!V},
computeDefaultTwoColumnLayout:function(V,D){return!V&&D},
updatePanelsLocation:function(){if(_.c("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var V=_.Pt(this.hostElement).querySelector("#below"),D=_.Pt(this.hostElement).querySelector("#panels"),f=_.Pt(this.hostElement).querySelector("#playlist"),n=_.Pt(this.hostElement).querySelector("#chat-container"),t=_.Pt(this.hostElement).querySelector("#panels-full-bleed-container"),J=_.Pt(this.hostElement).querySelector("#secondary-inner"),H=this.fullscreen||this.theater&&this.iMaxTheaterMode,Q=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;H?(t.appendChild(D),t.appendChild(n),t.appendChild(f)):this.isTwoColumns_?(Q?(V=_.Pt(this.hostElement).querySelector("#columns"),(n==null?void 0:n.parentElement)!==V&&V.append(n),this.fixedPanels=!0):_.CV(J,n),_.CV(J,D),_.CV(J,f)):(V.appendChild(D),V.appendChild(n),V.appendChild(f))}},
swatcherooUpdatePanelsLocation:function(V,D,f,n,t,J){if(this.is==="ytd-watch-grid"){D=V&&!D;this.swatcherooSplitScroll&&(D?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));f=_.Pt(this.hostElement).querySelector("#panels");var H=_.Pt(this.hostElement).querySelector("#playlist"),Q=_.Pt(this.hostElement).querySelector("#fixed-secondary"),T=_.Pt(this.hostElement).querySelector("#fixed-below"),
y=_.Pt(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),Z=_.Pt(this.hostElement).querySelector("#chat-container");J&&(V?Q.appendChild(f):T.appendChild(f));t?V?Q.appendChild(Z):T.appendChild(Z):_.BN(Z,y);n?V?Q.appendChild(H):T.appendChild(H):_.BN(H,y);this.swatcherooSplitScroll&&(V=_.Pt(this.hostElement).querySelector("#secondary"),n=_.Pt(this.hostElement).querySelector("#columns"),t=_.Pt(this.hostElement).querySelector("#fixed-columns-secondary"),D?
t.appendChild(V):n.appendChild(V))}},
computeMetadataSkinnyMode:function(V,D,f){return this.is!=="ytd-watch-grid"?!1:V?f:D},
computeWatchWhilePanelsActive:function(V,D){return V||D},
computeNoBorderOnChat:function(V){return _.c("web_watch_theater_chat_no_border")&&V},
computeLiveChatPresentAndExpanded:function(V,D){return V&&!D},
computePanelExpanded:function(V,D,f){return V||D||f},
computeSqueezeback:function(V,D,f,n){if(_.c("web_watch_enable_fs_squeezeback_panels")){var t=this.iMaxTheaterMode&&this.theater;return(V||D||f)&&(n||t)}},
computeSwatcherooSqueezeback:function(V,D,f){return this.is!=="ytd-watch-grid"||_.c("ww_squeezeback_killswitch")?!1:V&&D&&f},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(V){_.Ma(this).getPlayerPromise().then(function(D){var f;(f=D.changeMarkerVisibility)==null||f.call(D,_.g(V,_.Sp).isVisible||!1,_.g(V,_.Sp).entityKeys||[],_.g(V,_.Sp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(V){this.liveChatCollapsed=V.detail;_.Ol().dispatch(_.N4V(V.detail));if(!this.liveChatCollapsed&&this.squeezeback){var D=_.DY().resolve(_.lM);this.visiblePanelIdentifiers_.forEach(function(f){D.hidePanel(f)})}},
onSetPlaylistCollapsed:function(V){_.c("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!V)},
provideRenderingData:function(V,D){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=D;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=D);this.videoPrimaryInfoRendererValue=D==null?void 0:D.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=D);this.videoSecondaryInfoRendererValue=D==null?void 0:D.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
D;break;case "CLARIFICATION":this.clarifyBoxValue=D;break;case "LIVE_CHAT":this.conversationBar=D;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=D;break;case "PLAYLIST":this.externalPlaylistData_=D!=null?D:{};break;case "MERCH_SHELF":this.merchShelfValue=D==null?void 0:D.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=D;break;case "TICKET_SHELF":this.ticket=D;break;case "OFFER_MODULE":this.offerModule=D;break;case "LIMITED_STATE":this.limitedStateValue=
D;break;case "DONATION_SHELF":this.donation=D;break;case "ALERTS":this.alertsValue=D;break;case "COMMENTS":this.comments=D;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=D;break;case "ENGAGEMENT_PANELS":this.engagementPanels=D;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=D;break;case "RICH_GRID_RENDERER":this.richGridRendererData=D;break;case "EXPANDABLE_METADATA":this.expandableMetadata=D;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
D}},
toggleCinematicsActive:function(V){this.cinematicsActive=V},
isMiniplayerActive:function(){return _.DY().resolve(_.qw).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var fdJ,tkR;_.ne3=function(V){var D=fdJ;if(!(0,_.oax)(V)){var f,n;D=(n=(f=typeof D==="function"?D():D)==null?void 0:f.concat("\n"))!=null?n:"";throw Error("H`"+D+"`"+String(V));}};
_.Pkq=function(V){return V.findIndex(function(D){return tkR.indexOf(D.tagName)>-1})>-1};
fdJ=void 0;_.oew=function(){var V=_.DY().resolve(_.Z$);_.axY(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(V.isFullscreenEnabled()?_.Vv(document.documentElement):_.TAZ(document.documentElement))};
tkR=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.UA=new Map;_.UA.set(32,59972);_.UA.set(27,50765);_.UA.set(70,60102);_.UA.set(76,60221);_.UA.set(77,60222);_.UA.set(74,60223);_.UA.set(84,60224);_.UA.set(38,61941);_.UA.set(40,61942);_.UA.set(73,62521);_.UA.set(67,62522);_.UA.set(80,63390);_.UA.set(78,63397);_.UA.set(75,59972);_.UA.set(188,63385);_.UA.set(190,63384);_.UA.set(36,63387);
_.UA.set(35,63386);_.UA.set(37,63388);_.UA.set(39,63389);_.UA.set(79,63423);_.UA.set(87,63424);_.UA.set(107,63426);_.UA.set(109,63425);_.UA.set(65,63428);_.UA.set(83,63430);_.UA.set(68,63429);_.UA.set(221,63431);_.UA.set(219,63432);_.UA.set(97,63439);_.UA.set(98,63440);_.UA.set(99,63441);_.UA.set(100,63442);_.UA.set(101,63443);_.UA.set(102,63444);_.UA.set(103,63445);_.UA.set(104,63446);_.UA.set(105,63447);_.VI=new Map;_.VI.set(80,63390);_.VI.set(78,63397);_.VI.set(188,63400);_.VI.set(190,63401);
_.VI.set(191,60765);_.VI.set(13,247917);_.Dj=new Map;_.fK=new Map;
}catch(e){_._DumpException(e)}
try{
var VCf,nAX,tCV,PB3;_.x90=function(V){return V.ui.guideIsVisibleButNotPersistent};
_.M5o=function(V){return V.ui.tabGesturesIsActive};
_.hB3=function(){var V=_.PI("service_worker_scope");try{return navigator.serviceWorker.getRegistration(V)}catch(D){return Promise.reject(D)}};
_.U93=function(V){return!(!V||!V.pushManager)};
VCf=function(){return _.hB3().then(_.U93).catch(function(){return!1})};
_.DrB=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?VCf():Promise.resolve(!1)};
_.fNf=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
nAX=function(){var V,D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,_.F7.getInstance(),2);case 2:V=n.yieldResult;if(!V){D=void 0;n.jumpTo(3);break}return _.b(n,V.get("lmqf"),4);case 4:D=n.yieldResult;case 3:switch((f=D)||(f="SD"),f){case "HD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
tCV=function(V){var D,f,n;return _.w(function(t){if(t.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.c("disable_av1_setting")){var J=window.localStorage["yt-player-av1-pref"];J=J==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":J==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else J="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(D=V===J)return t.jumpTo(2);n=f=V;return _.b(t,nAX(),3)}t.nextAddress!=2&&(D=n===t.yieldResult);return t.return(D)})};var oAw;var J4R=_.ea.IronButtonState,r4f=(0,_.yj)(HTMLElement);
_.Bt({_template:function(){if(oAw!==void 0)return oAw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PB3===void 0&&(PB3=document.createElement("template"));var n=PB3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return oAw=V},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[J4R,_.lH,_.cY,_.vY],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(V){var D=(0,_.y$)(this);D.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:V});D.shadowRoot.appendChild(V);return r4f.prototype._attachDom.call(this,V)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var V=this.contentElement;V&&V.selectedItem&&this._setSelectedItem(V.selectedItem)},
get contentElement(){for(var V=_.Fw(this.$.content).getDistributedNodes(),D=0,f=V.length;D<f;D++)if(V[D].nodeType===Node.ELEMENT_NODE)return V[D]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(V){this._setSelectedItem(V.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(V){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)===this&&this.open()},
_selectedItemChanged:function(V){var D="";V?D=V.label||V.getAttribute("label")||V.textContent.trim():D="";this.value=D;this._setSelectedItemLabel(D)},
_computeMenuVerticalOffset:function(V,D){return D?D:V?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var V=this.opened?"true":"false",D=this.contentElement;D&&D.setAttribute("aria-expanded",V)}});_.Wx=new _.L("navigateAction");var Hic=new _.L("formRenderer");var p0=function(){var V=_.lU.apply(this,arguments)||this;V.showInput=!1;return V};
_.v(p0,_.lU);_.P=p0.prototype;_.P.detached=function(){this.showInput&&window.removeEventListener("click",_.Ty(this,this.closeOnOutsideClick_))};
_.P.stopPropagation_=function(V){this.showInput&&V.stopPropagation()};
_.P.closeOnOutsideClick_=function(V){this.closeOnOutsideClickCondition(V)&&(this.showInput=!1,window.removeEventListener("click",_.Ty(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.P.closeOnOutsideClickCondition=function(){return!0};
_.P.closeOnOutsideClickHandler=function(){};
_.P.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Ty(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.P.openOnClickHandler=function(){};
_.P.showInputChanged=function(){};
_.P.setShowInput=function(V){this.showInput=V};
p0.prototype.setShowInput=p0.prototype.setShowInput;p0.prototype.showInputChanged=p0.prototype.showInputChanged;p0.prototype.openOnClickHandler=p0.prototype.openOnClickHandler;p0.prototype.openOnClick_=p0.prototype.openOnClick_;p0.prototype.closeOnOutsideClickHandler=p0.prototype.closeOnOutsideClickHandler;p0.prototype.closeOnOutsideClickCondition=p0.prototype.closeOnOutsideClickCondition;p0.prototype.closeOnOutsideClick_=p0.prototype.closeOnOutsideClick_;p0.prototype.stopPropagation_=p0.prototype.stopPropagation_;
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],p0.prototype,"showInput",void 0);_.S([_.bU("click"),_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],p0.prototype,"stopPropagation_",null);_.S([_.KI("showInput"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],p0.prototype,"showInputChanged",null);_.S([_.Gy()],p0);_.wlv=[p0.prototype];var Q8X;var Two;var L0=function(){return _.E.apply(this,arguments)||this};
_.v(L0,_.E);_.P=L0.prototype;_.P.computePreselectedOption=function(V,D){return D===this.itemSelected_?V:void 0};
_.P.dataChanged_=function(){var V=this;this.preselectedSubreason=this.itemSelected_=-1;var D;(D=this.data)!=null&&D.key&&_.pO(this,function(){var f,n=Number((f=V.data)==null?void 0:f.key);!Number.isNaN(n)&&(V.itemSelected_=n,f=(f=(V.data.items||[])[n])&&f.optionSelectableItemRenderer&&f.optionSelectableItemRenderer.preselectedIndex)&&(V.preselectedSubreason=f)})};
_.P.isSubReasonHidden_=function(V,D){return V!=D};
_.P.onTopItemSelected_=function(V,D){for(var f=_.Pt(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),n=0,t=f.length;n<t;n++)f[n].select(0);_.o4(this.hostElement,"yt-report-form-update",[D.item.value]);V.stopPropagation()};
_.P.onItemSelected_=function(V,D){_.o4(this.hostElement,"yt-report-form-update",[D.item.value]);V.stopPropagation()};
_.P.getItem_=function(V){return V.serviceItem?V.serviceItem:V.navigationItem?V.navigationItem:V.optionSelectableItemRenderer?V.optionSelectableItemRenderer:null};
_.P.computeText_=function(V){return(V=this.getItem_(V))?this.ytRendererBehavior.getSimpleString(V.text):null};
_.P.validate=function(){return this.itemSelected_!==-1};
_.P.computeAriaLabel_=function(V){var D=_.LA(V.text);(V=V.accessibility&&V.accessibility.accessibilityData&&V.accessibility.accessibilityData.label)&&(D+=". "+V);return D};
_.P.computeItemSelected_=function(V){return V};
_.P.preventSelection_=function(V){V.stopPropagation();this.tooltipTapped=!0};
_.P.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.P.updateItemSelectedFromBinding=function(V){this.itemSelected_=V.detail.value};
_.P.save=function(){var V;this.validate()&&(V=this.data)!=null&&V.items&&(V=this.data.items[this.itemSelected_],V!=null&&V.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(V.optionSelectableItemRenderer.submitEndpoint)||_.HA(this.hostElement,[V.optionSelectableItemRenderer.submitEndpoint])))};
L0.prototype.onPaperRippleTransitionEnd_=L0.prototype.onPaperRippleTransitionEnd_;L0.prototype.dataChanged_=L0.prototype.dataChanged_;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],L0.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],L0.prototype,"data",void 0);_.S([_.q({value:-1}),_.p("design:type",Number)],L0.prototype,"itemSelected_",void 0);
_.S([_.q({computed:"computeItemSelected_(itemSelected_)"}),_.p("design:type",Number)],L0.prototype,"value",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],L0.prototype,"restoreFocusOnClose",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],L0.prototype,"tooltipTapped",void 0);_.S([_.q({value:-1}),_.p("design:type",Number)],L0.prototype,"preselectedSubreason",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L0.prototype,"dataChanged_",null);_.S([_.bU("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L0.prototype,"onPaperRippleTransitionEnd_",null);_.S([_.zy({is:"yt-options-renderer",disableElementRegistration:!0})],L0);
_.Y(L0,"yt-options-renderer",function(){if(Two===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Q8X===void 0&&(Q8X=document.createElement("template"));var n=Q8X;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Two=V}V=Two;return V},{mode:2});var biW;var KkZ;var y4f;var ZiX;var j8f;var lNX;var Ir=function(){return _.E.apply(this,arguments)||this};
_.v(Ir,_.E);Ir.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Ir.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ir.prototype.onTap=function(V){if(this.hostElement.classList.contains("selected")||_.rN(this.hostElement,"yt-share-panel-can-select-contact-action"))V&&V.detail&&(V.detail.x||V.detail.y)&&_.Pt(this.hostElement).querySelector("#target").blur(),(V=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),V={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:V?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.o4(this.hostElement,"yt-share-panel-select-contact-action",[V])};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.S([_.q({observer:"onDataChanged"}),_.p("design:type",Object)],Ir.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],Ir.prototype,"componentTitle",void 0);_.S([_.Zv("#thumbnail"),_.p("design:type",Object)],Ir.prototype,"thumbnail",void 0);_.S([_.zy({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Ir);
_.Y(Ir,"yt-enrolled-contact-renderer",function(){if(lNX===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;j8f===void 0&&(j8f=document.createElement("template"));var n=j8f;f.call(D,n.content.cloneNode(!0),V.content.firstChild);lNX=V}V=lNX;return V},{mode:2});var Gef;var e5q;var O3=function(){return _.E.apply(this,arguments)||this};
_.v(O3,_.E);O3.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
O3.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
O3.prototype.onTap=function(V){if(this.hostElement.classList.contains("selected")||_.rN(this.hostElement,"yt-share-panel-can-select-contact-action"))V&&V.detail&&(V.detail.x||V.detail.y)&&_.Pt(this.hostElement).querySelector("#target").blur(),(V=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),V={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:V?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.o4(this.hostElement,"yt-share-panel-select-contact-action",[V])};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.S([_.q({observer:"onDataChanged"}),_.p("design:type",Object)],O3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],O3.prototype,"componentTitle",void 0);_.S([_.Zv("#thumbnail"),_.p("design:type",Object)],O3.prototype,"thumbnail",void 0);_.S([_.zy({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],O3);
_.Y(O3,"yt-suggested-contact-renderer",function(){if(e5q===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;Gef===void 0&&(Gef=document.createElement("template"));var n=Gef;f.call(D,n.content.cloneNode(!0),V.content.firstChild);e5q=V}V=e5q;return V},{mode:2});var xY=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-share-panel-reset-action":"onReset"};return V};
_.v(xY,_.E);xY.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"}}}}}};
xY.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.o4(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
xY.prototype.onReset=function(){for(var V=_.Pt(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),D=V.length-1;D>=0;D--)V[D].classList.toggle("selected")};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],xY.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({observer:"onDataChanged"}),_.p("design:type",Object)],xY.prototype,"data",void 0);
_.S([_.zy({is:"yt-contact-section-renderer",disableElementRegistration:!0})],xY);
_.Y(xY,"yt-contact-section-renderer",function(){if(ZiX===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;y4f===void 0&&(y4f=document.createElement("template"));var n=y4f;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ZiX=V}V=ZiX;return V},{mode:2});var Mg=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return V};
_.v(Mg,_.E);_.P=Mg.prototype;_.P.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"}}}};
_.P.onYtRefreshFormCommand=function(V){var D;(V=_.g((D=_.g(V,_.fTo))==null?void 0:D.formRenderer,Hic))&&this.set("data",V)};
_.P.reset=function(){var V=_.Pt(this.hostElement).querySelector("#fields").children;V=_.r(V);for(var D=V.next();!D.done;D=V.next())D=D.value,D.reset&&D.reset()};
_.P.getForm=function(){var V={},D=_.Pt(this.hostElement).querySelector("#fields").children;D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;if(!f.validate())return null;V[f.data.key]=f.value}return V};
_.P.submitFormFields=function(){if(this.fields)for(var V=_.r(this.fields),D=V.next();!D.done;D=V.next())D=D.value,D.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?D.save():D.nodeName==="YT-OPTIONS-RENDERER"&&D.save()};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Mg.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mg.prototype,"data",void 0);_.S([_.jY("#fields > *"),_.p("design:type",Array)],Mg.prototype,"fields",void 0);
_.S([_.zy({is:"yt-form-renderer",disableElementRegistration:!0})],Mg);
_.Y(Mg,"yt-form-renderer",function(){if(KkZ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;biW===void 0&&(biW=document.createElement("template"));var n=biW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);KkZ=V}V=KkZ;return V},{mode:2});var c4W;var ho=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return V};
_.v(ho,_.E);ho.prototype.onCheckboxChange=function(V){this.data&&(V=(this.checked=_.x7(V).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})};
ho.prototype.handleUpdateCheckboxCommand=function(V){(V=_.g(V,_.lTV))&&this.data&&this.data.id===V.id&&(this.set("data.disabled",V.disabled),this.set("data.title",V.title))};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],ho.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ho.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],ho.prototype,"checked",void 0);_.S([_.a({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],ho);
_.Y(ho,"ytd-settings-checkbox-renderer",function(){if(c4W!==void 0)return c4W;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return c4W=V},{mode:1});var Fk0;var U3=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return V};
_.v(U3,_.E);U3.prototype.dataChanged=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return V.radio.removeAttribute("checked"),!V.data||!V.data.id||V.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.fNf()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(D=V.data&&V.data.id)?_.b(f,tCV(V.data.id),4):f.jumpTo(3):(V.set("data.hidden",!0),f.jumpTo(0));f.nextAddress!=3&&(D=f.yieldResult);D&&_.o4(V.hostElement,"yt-select-settings-radio-option",[V.data.id]);_.yz(f)})};
U3.prototype.onButtonChanged=function(V){_.x7(V).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.o4(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
U3.prototype.onSelectOption=function(V){this.data&&this.data.id&&(this.data.id===V?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
U3.prototype.dataChanged=U3.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],U3.prototype,"ytActionHandlerBehavior",void 0);_.S([_.Zv("#radio"),_.p("design:type",Object)],U3.prototype,"radio",void 0);_.S([_.q(),_.p("design:type",Object)],U3.prototype,"data",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],U3.prototype,"dataChanged",null);_.S([_.a({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],U3);
_.Y(U3,"ytd-settings-radio-option-renderer",function(){if(Fk0!==void 0)return Fk0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Fk0=V},{mode:1});var gAo;var Vl=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return V};
_.v(Vl,_.E);
Vl.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"}}}};
Vl.prototype.handleUpdateTextCommand=function(V){(V=_.g(V,_.G$V))&&this.data&&this.data.id===V.id&&this.set("data",V)};
Vl.prototype.handleUpdateConnectedAppRendererCommand=function(V){if(_.g(V,_.Fv6)&&this.data){var D,f;if(V=(D=_.g(V,_.Fv6))==null?void 0:(f=D.newConnectedAppRenderer)==null?void 0:f.connectedAppRenderer)this.data=V}};
Vl.prototype.computeConnectedAppStyle=function(V){return V.style?V.style.toLowerCase().replace(/_/g,"-"):""};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Vl.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vl.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.p("design:type",String)],Vl.prototype,"connectedAppStyle",void 0);_.S([_.a({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Vl);
_.Y(Vl,"ytd-connected-app-renderer",function(){if(gAo!==void 0)return gAo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gAo=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.dX("iuT5Oc");

_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("L3n37");
var fMR=function(V){return V.watch.isLearningJourneyActive},nRw=_.Bj(115994),tpJ=_.Bj(115993),PPR=function(V,D,f){var n=this;
var t=f.dragDownAction;this.layer=0;this.JSC$20689_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$20689_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var J=_.lS();_.J6(J,nRw,this.layer);_.J6(J,tpJ,this.layer);this.dragDownAction=function(){t();_.at(J,{visualElement:n.fullscreen?nRw:tpJ})};
this.gesture=new _.Qo(V,D,this.JSC$20689_watchConfig,"pandown");this.attach()};
PPR.prototype.attach=function(){this.gesture.attach()};
PPR.prototype.detach=function(){this.gesture.detach()};
PPR.prototype.update=function(V){this.fullscreen=V;this.gesture.config=V?this.JSC$20689_watchFullScreenConfig:this.JSC$20689_watchConfig};var oRw=function(V){_.hy.call(this);var D=this;this.rootElement=V;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return D.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){D.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.v(oRw,_.hy);_.P=oRw.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(V){return this.rootElement.getElement(V)};
_.P.setPlayerResponse=function(V){this.playerResponse=V;this.publish("PLAYER_RESPONSE_UPDATED",V)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(V){this.watchNextResponse===V?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=V,this.publish("WATCH_NEXT_RESPONSE_UPDATED",V))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(V,D){var f=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var n={};_.$b(_.Yb.getInstance(),(n[V]=D,n),this.getRoot())}else this.actionHandlers.has(V)||(this.actionHandlers.set(V,[]),n={},_.$b(_.Yb.getInstance(),(n[V]=function(){var t=_.gQ.apply(0,arguments);return(f.actionHandlers.get(V)||[]).map(function(J){return J.apply(null,_.sz(t))})},n),this.getRoot())),this.actionHandlers.get(V).push(D)};
_.P.unregisterActionHandler=function(V){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.iN(_.Yb.getInstance(),(D[V]=!0,D),this.getRoot())}else(D=this.actionHandlers.get(V))?(D.pop(),D.length===0&&(D={},_.iN(_.Yb.getInstance(),(D[V]=!0,D),this.getRoot()),this.actionHandlers.delete(V))):_.zP(new _.cI("Attempted to unregister an action handler which is not registered.",V))};
_.P.addPageDisposeJob=function(V){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.px(this.rootElement.pageDisposeJobs,V)};
_.P.removePageDisposeJob=function(V){this.rootElement.pageDisposeJobs&&_.IY(this.rootElement.pageDisposeJobs,V)};
_.P.dispatchEvent=function(V,D){_.PA(this.rootElement,V,D)};
_.P.provideRenderingData=function(V,D){this.rootElement.provideRenderingData(V,D)};
_.P.scrollWatchTo=function(V,D){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(V,D)};
_.P.focusOnPlayer=function(){var V=this.getElement("PLAYER");_.pO(V,function(){if(V&&V.firstElementChild){var D=V.querySelector(".html5-video-player");D&&(_.LE(_.DY().resolve(_.ue)),D.focus())}else _.zP(Error("rm"))})};
_.P.updateCinematicFullscreenConfig=function(){var V=!!this.rootElement.theater,D=!!this.rootElement.fullscreen,f;(f=this.watchCinematicManager)==null||_.mE(f,D,V)};
_.P.subscribeToActiveChanged=function(V,D){D=D===void 0?!0:D;var f=_.yX(_.Ol(),fMR,function(n){V(n)});
D&&V(fMR(_.Ol().getState()));return f};
_.P.isActive=function(){return fMR(_.Ol().getState())};
_.P.onAttached=function(){var V=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(V=_.DY().resolve(_.hlZ).retriever.getFlag(_.biE));(V||_.EG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.P.initPersistentModules=function(){if(_.c("kevlar_watch_flexy_theater_manager")){var V=new _.dXv(this);_.wX(this,V)}V=new _.bVo(this);_.wX(this,V);V=new _.Bu(this);_.wX(this,V);V=new _.qV(this);_.wX(this,V);V=new _.$cX(this);_.wX(this,V);V=new _.uP(this);_.wX(this,V);_.c("kevlar_watch_flexy_playlist_manager")&&(V=new _.WGZ(this),_.wX(this,V))};
_.P.initOrDisposeActiveModules=function(V){V?(this.watchScrollManager=new _.EP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Be3(this)),this.activeModules.push(new _.z3w(this)),this.activeModules.push(new _.MjB(this)),this.activeModules.push(new _.Xq(this)),_.c("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.XU3(this)),this.activeModules.push(new _.Rfq(this)),_.c("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.UcZ(this)),
_.c("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.WUB(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.xXq(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Eaw(this)),_.c("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.QRv(this)),V=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&!V&&this.activeModules.push(new _.oaw(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.dd(this)),this.activeModules.push(new _.XDo(this)),this.activeModules.push(new _.uJR(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.YNB(this)),_.c("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.H3q(this)),_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.VMX(this)),
_.c("web_fullscreen_components")&&this.activeModules.push(new _.Ynv(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.QQZ(this))):(_.h4(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P.disposeInternal=function(){_.hy.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.IG.Object.defineProperties(oRw.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var Jzq={},rzc=["learning-journey-engagement-panel","PAlearning_chat"];
Jzq.YtdLearningJourneyWatchBehavior=[_.U.YtRendererBehavior,_.ax.YtPlayerListenerBehavior,_.V8.YtRendererstamperBehavior,_.D6.YtActionHandlerBehavior,_.sn.YtPageBehavior,_.bz.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 _.EG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("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 _.EG("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 _.c("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("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 _.tU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tU("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!_.c("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("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 _.c("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_rounded_player_large")||_.c("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 _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.C0(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.C0(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var V=this;this.watchController=void 0;this.pageDisposeJobs=[function(){V.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||V.clearComments_()},
function(){V.clearPlayerAds_()},
function(){V.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;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.C_R(function(){return _.Ma(V)},this.hostElement);
this.pageDisposeJobs.push(function(){V.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){V.resetFullerscreenEduButtonForNewPlayback_()}));
_.c("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.tV;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;_.c("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.c("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));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ty(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(V){V&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:V}),V.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(V){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=V,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(V){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||V||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(V){this.active!==void 0&&(this.fullscreen=V,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(V){this.active!==void 0&&(_.PA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(V>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(V){this.initCsi_();this.updatePageData_(V)},
updatePageData_:function(V){var D=this;if(V)if(this.data===V){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=V;this.playlist&&_.N1({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zm("nw");this.loading=!1;_.gq(_.dm,function(){D.initDclkstatus_();var n,t=((n=D.player)==null?void 0:n.getVideoData().cpn)||"";_.eeq(function(J,H){_.U4X(J,H,t)})})},
onPageLoadWithSameData_:function(){_.c("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 V=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!V);this.set("loadingData.playlistLoading",V&&V!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),V=this.watchNextSkeletonEl_.firstElementChild;V;)V.classList.remove("hidden"),V=V.nextElementSibling;var D,f,n;V=(D=this.loadingData)==null?void 0:(f=D.endpoint)==null?void 0:(n=f.watchEndpoint)==null?void 0:n.videoId;var t;V&&(t="https://i.ytimg.com/vi/"+V+"/frame0.jpg");_.Pt(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var V=_.Pt(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&V&&(V.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var D,f;(f=(D=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(D);var n,t;(t=(n=this.watchMetadata).resize)==null||t.call(n)}_.Pt(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(V){var D=_.Pt(this.hostElement).querySelector(V);D?_.Dl(D,!1):_.zP(new _.cI("Overscroll monitor not found for component: ",V))},
removeSplitScrollMouseTrap:function(V){var D=_.Pt(this.hostElement).querySelector(V);D?_.f6(D):_.zP(new _.cI("Disposal component for  overscroll monitoring not found: ",V))},
onLoadingChanged_:function(V){V?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(V){var D=this;V?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dm.addLowPriorityJob(function(){D.onWindowResized_(_.FS(!0))})},
updateTheaterModeState_:function(V){if(!_.c("kevlar_watch_flexy_theater_manager")){V=V||this.fullWindowMode_;if(this.theater!==void 0||V)this.theater=V;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();V&&_.ui0()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var V=this.theater;_.c("external_fullscreen")&&this.fullscreen&&(V=!0);V=V?_.Pt(this.hostElement).querySelector("#player-full-bleed-container"):_.Pt(this.hostElement).querySelector("#player-container-inner");var D=this.getPlayerContainer(),f=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");D.parentElement!==V&&(f&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ma(this).appendTo(V,D),V.appendChild(_.Pt(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var V=this;return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.DY().resolve(_.qw).deactivate(),2);V.updatePlayerLocation();_.yz(D)})},
updateCinematicsLocation:function(){var V=this.getElement("CINEMATICS");if(V){var D=this.getCinematicsLocationContainer();V.parentElement!==D&&D.appendChild(V);var f;(f=this.watchController)==null||f.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Pt(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Pt(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(V,D){var f=document.documentElement.hasAttribute("dark"),n=f&&_.c("web_cinematic_theater_mode"),t=f&&_.c("web_cinematic_fullscreen");f=!f&&this.cinematicLightTheme;return V&&n||D&&t||(D||V)&&f},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.DY().resolve(_.zI).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var D,
f,n;if((D=this.data)==null?0:(f=D.contents)==null?0:(n=f.twoColumnWatchNextResults)==null?0:n.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var t,J;((t=this.data)==null?0:(J=t.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(V){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData);V&&V.playabilityStatus&&(D=this.isVideoPlayable_(V.playabilityStatus,this.getPlayerOverlays_(this.data)),V=this.isLiveStreamOffline_(V.playabilityStatus),D&&!V||_.pO(this,function(){_.zm("pbu")}));
this.setPlayerAds_();_.JR(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(V){_.Ol().dispatch(_.nA({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));V?this.activate_():this.deactivate_()},
attached:function(){var V=this;this.watchController=new oRw(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var D=_.Ma(this);_.c("kevlar_disable_prepare_player")||D.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.DY().resolve(_.zI).setPlayer(D);this.updatePageMediaQueries();D={"--ytd-watch-flexy-scrollbar-width":_.mB()+
"px"};!_.tU("kv_pl_mx_sz_ks")&&_.tU("kevlar_watch_max_player_width")&&(D["--ytd-watch-flexy-max-player-width-wide-screen"]=_.yj0+"px");_.tU("kevlar_watch_flexy_metadata_height")&&(D["--ytd-watch-flexy-space-below-player"]=_.ZP0+"px");this.safeUpdateStyles(D);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new PPR(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return V.onPlayerTouchPanDown_()}}));
_.c("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Pt(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var V=_.mB(),D=_.XJ+V,f=D;this.fixedPanels&&(D+=_.KV0);var n=657+V;V=1327+V;_.Pt(this.hostElement).querySelector("#two-column-query").query="(min-width: "+D+"px)";_.Pt(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(D+"px) and (max-width: ")+(V+"px)");_.Pt(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(V+"px)");
_.Pt(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+f+"px)"},
calculateCurrentPlayerSize_:function(){var V=_.Pt(this.hostElement).querySelector("#miniplayer-bar").firstChild;return V&&V.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.bB(NaN,NaN):_.iP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.iP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mr(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var V=this;this.onWindowResized_(_.FS());_.c("browse_skeleton_removal_on_watch_killswitch")||_.EG("IS_SHELL_LOAD")&&_.cwB();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var D=_.Ma(this);D.addEventListener("yt-player-updated",_.Ty(this,this.onPlayerUpdated_));D.getPlayerPromise().then(function(f){V.playerApiReady_(f)});
_.c("kevlar_watch_flexy_playlist_manager")||(D=_.DY().resolve(_.zI),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&D.addEventListener("yt-navigate",_.Ty(this,this.onYtNavigate_)),D.setPlaylistComponent(_.Pt(this.hostElement).querySelector("#playlist")),D.addEventListener("yt-playlist-data-updated",_.Ty(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dm.addLowPriorityJob(function(){_.PA(V.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ma(this).removeEventListener("yt-player-updated",_.Ty(this,this.onPlayerUpdated_));if(!_.c("kevlar_watch_flexy_playlist_manager")){var V=_.DY().resolve(_.zI);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&V.removeEventListener("yt-navigate",_.Ty(this,this.onYtNavigate_));V.cancelVideoSkip();V.removeEventListener("yt-playlist-data-updated",_.Ty(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.PA(this.hostElement,"yt-autonav-pause-player",!1);V=_.UX();_.c("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vv(V)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(V){this.player&&this.player.updateVideoData({rvs:V.rvs})},
getPageContents:function(V){return V&&V.contents&&V.contents.twoColumnWatchNextResults&&V.contents.twoColumnWatchNextResults.results&&V.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(V){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",V)},
onRetrieveLocation_:function(V,D){D.hasComments?D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):D.locationRetrieved("/related_ajax",void 0);V.stopPropagation()},
onSubscriptionChanged_:function(V,D){this.player&&(D?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.kz("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Pt(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Pt(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(V){this.player=V;this.setPlayerState(V.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.LL()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(V,D){D=D===void 0?!0:D;_.UX()&&_.c("external_fullscreen")&&_.Vv(document.documentElement);this.theaterRequested_=V;D&&_.j1("wide",V?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.o4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.PA(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(V){_.R2(V,typeof this.player),this.player&&_.R2(V,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var V;((V=this.player)==null?0:V.isFullscreen())?this.player.toggleFullscreen():_.o4(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(V,D){return this.loading?D:!!Object.keys(V).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(V){if(V){V=_.r(V);for(var D=V.next();!D.done;D=V.next())D=D.value,D.youThereRenderer&&_.EHV(this.youThereManager_,D.youThereRenderer)}},
setPlaylistData_:function(V){return V||{}},
userEngagementConfigDataChanged_:function(V){if(V)if(V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var D=this.youThereManager_;_.Vf()<V.lowEngagementThresholdMs||_.$tv(D,!0)}else V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.o4(this.hostElement,"yt-autonav-pause-user-engagement",[V])},
isPlayerUnavailable_:function(V,D,f){return!!V&&!this.isVideoPlayable_(V,f)&&!D},
getPlayerOverlays_:function(V){return(V==null?void 0:V.playerOverlays)||null},
isVideoPlayable_:function(V,D){if(!V)return!1;var f=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",V)||this.get("errorScreen.ypcTrailerRenderer",V);V=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",V);var t;D=D==null?void 0:(t=D.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!f||!!n||!!V||!!D},
hasWatchNextResponseErrorRenderer:function(V){var D=this.getPageContents(V),f,n,t,J,H;return!(V==null?0:(f=V.contents)==null?0:(n=f.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((t=D[0])==null?0:(J=t.itemSectionRenderer)==null?0:(H=J.contents[0])==null?0:H.backgroundPromoRenderer)},
isLiveStreamOffline_:function(V){return V?V.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(V,D,f){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.c("web_no_skip_video_on_verification_checks")?(V==null?void 0:V.status)&&t.includes(V.status):V&&V.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",V);J==void 0&&(J=!0);!f||this.isVideoPlayable_(V,this.getPlayerOverlays_(D))||
n||t||!J||_.DY().resolve(_.zI).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.soJ()},
onPlayerFeedbackStartRequest_:function(V){_.o4(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:V}])},
onPlayerFeedbackArticleRequest_:function(V){_.o4(this.hostElement,"yt-help-dialog-requested",[V])},
onPlayerYpcContentRequest_:function(){var V,D,f,n,t,J,H,Q,T=((V=this.data)==null?NaN:(D=V.contents)==null?NaN:(f=D.twoColumnWatchNextResults)==null?NaN:(n=f.secondaryResults)==null?NaN:(t=n.secondaryResults)==null?NaN:(J=t.offerModule)==null?NaN:(H=J.tvfilmOfferModuleRenderer)==null?NaN:(Q=H.actionButtons)==null?NaN:Q.length)-1;V=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];D=_.r(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=D.next();!f.done;f=D.next())for(f=f.value,n=_.r(V),t=n.next();!t.done;t=n.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.Km(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(V){_.PA(this.hostElement,"yt-autonav-pause-player",V)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(V){V()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.PA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(V)},
setPlayerState:function(V){_.Ol().dispatch(_.gEu(V))},
onPlayerSubscribe_:function(V){_.o4(this.hostElement,"yt-player-subscribe",[V])},
onPlayerUnsubscribe_:function(V){_.o4(this.hostElement,"yt-player-unsubscribe",[V])},
onPlayerAdYtShowToast_:function(V){_.o4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:V.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(V){if(V)return V},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(V){return!_.c("web_watch_move_summary_to_sd")&&!!V},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var V,D,f,n;this.watchNextSecondaryResults=(V=this.data)==null?void 0:(D=V.contents)==null?void 0:(f=D.twoColumnWatchNextResults)==null?void 0:(n=f.secondaryResults)==null?void 0:n.secondaryResults}},
setRichGridRendererData:function(V){this.richGridRendererData=V},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var V,D=(V=this.data)==null?void 0:V.engagementPanels;if(D==null?0:D.length){V=null;D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;if(((n=f.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){V=f;break}}var t,J,H;V=(t=V)==null?void 0:(J=t.engagementPanelSectionListRenderer)==null?void 0:(H=J.content)==null?void 0:H.structuredDescriptionContentRenderer;if(V==null?0:V.items){t=
[];J=_.r(V.items);for(H=J.next();!H.done;H=J.next()){H=H.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var Q=n=f=D=V=void 0,T=void 0,y=(V=H.horizontalCardListRenderer)==null?void 0:(D=V.header)==null?void 0:(f=D.richListHeaderRenderer)==null?void 0:(n=f.navigationButton)==null?void 0:(Q=n.buttonRenderer)==null?void 0:(T=Q.command)==null?void 0:T.commandExecutorCommand;y&&y.commands&&(y.commands=y.commands.filter(function(Z){return!_.g(Z,_.N8B)}))}H.expandableVideoDescriptionBodyRenderer||
H.videoDescriptionHeaderRenderer||t.push(H)}return{items:t}}}},
constructWarning_:function(V){return{text:_.pA(V),type:"WARNING"}},
isPlaShelfEnabled_:function(V){if((this.get("adPlacements",V)||[]).length)return!0;V=this.get("playerAds",V)||[];return!(!V.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",V[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var V=this;_.PA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var D=this.getScrollTop()>0;this.gestures_&&(D?this.gestures_.detach():this.gestures_.attach());D!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=D,_.Ma(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(V.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.PA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var V=this;this.commentsReady=!1;_.dm.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.gq(_.dm,function(){V.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zm("cmi");_.dm.cancelJob(this.setCommentsJobId_);var V=this.getPageContents(this.data);if(V&&V.length){V=_.r(V);for(var D=V.next();!D.done;D=V.next())if(D=D.value,this.get("itemSectionRenderer.sectionIdentifier",D)==="comment-item-section"){this.comments=D.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.PA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zm("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(V,D){var f=_.g(D.endpoint,_.pl);f&&(!(D=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==D.videoId||f.playlistId&&f.playlistId!==D.playlistId||f.index!==void 0&&f.index!==D.index||typeof f.startTimeSeconds!=="number"||(V.stopPropagation(),this.setScrollTop(0),_.Ma(this).getPlayerPromise().then(function(n){var t=f.startTimeSeconds;n.seekTo(t);n.wakeUpControls();t<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var V=_.Qov();"t"in V&&(V=_.kWR(V.t),this.player.seekTo(V,!0))},
updateTitleFromWatchNext:function(V){V=this.getPageContents(V);var D,f;(V=_.LA(V==null?void 0:(D=V[0])==null?void 0:(f=D.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.PA(this.hostElement,"yt-update-title",V)},
updateTitle_:function(V){V=this.get("videoDetails.title",V)||"";_.PA(this.hostElement,"yt-update-title",V)},
syncWithRemoteVideo_:function(V,D,f){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===f&&(f=n.list,_.c("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),n.video_id!==V||f!=D)){var t;_.c("kevlar_player_watch_endpoint_navigation")?t=_.Iyd(_.cH0(V,D)):t=this.buildWatchEndpoint_(V,D);_.PA(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(V,D,f){return _.U2(V,D,f)},
initDclkstatus_:function(){_.vHJ()},
attachWatchPageSkeleton_:function(){var V=document.querySelector("#watch-page-skeleton");if(V){var D=V.querySelector("#primary-info"),f=V.querySelector("#secondary-info"),n=V.querySelector("#related");D&&_.Pt(this.hostElement).querySelector("#info-skeleton").appendChild(D);f&&_.Pt(this.hostElement).querySelector("#meta-skeleton").appendChild(f);n&&(_.Pt(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.ZC(V)}},
handlePlayerUpdated_:function(){_.Ma(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(V,D){if(this.watchNextSkeletonEl_&&typeof D!=="undefined"){var f=this.watchNextSkeletonEl_.children,n=V&&V.indexSplices.length?V.indexSplices[0].index:0;V=Math.min(this.watchNextShownItems.length,f.length);D||(n=0,V=f.length);for(D=n;D<V;D++)f[D].classList.add("hidden")}},
onPlayerFullscreenChange_:function(V){_.c("external_fullscreen")||_.o4(this.hostElement,"yt-player-fullscreen",[V.fullscreen])},
onFullscreenChange_:function(V){this.fullscreen=V;this.gestures_&&this.gestures_.update(this.fullscreen);var D=_.Ma(this);D.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.UX())});
this.updateFullBleedElementLocations();V&&(D.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(V,D){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!D},
computeIsDonationShelfCollapsed_:function(V){return V},
computeShouldShowMerchShelf:function(V,D){return D&&!!V},
computeResponseHasComments:function(V){var D,f,n,t,J;return!!(V==null?0:(D=V.contents)==null?0:(f=D.twoColumnWatchNextResults)==null?0:(n=f.results)==null?0:(t=n.results)==null?0:(J=t.contents)==null?0:J.some(function(H){var Q;return(H==null?void 0:(Q=H.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(V,D){this.responseHasComments=this.computeResponseHasComments(this.data);return!!V&&!!Object.keys(V).length&&!D},
identity:_.YF,onWindowResized_:function(V){this.windowSize_=V;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(V){var D=this;V&&V.type!=="dataloaded"&&V.type!=="dataupdated"||_.Ma(this).getPlayerPromise().then(function(f){var n=f.getPlayerState();n!==5&&n!==0&&(f=1/f.getVideoAspectRatio(),D.videoHeightToWidthRatio_!==f&&(D.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(V){var D=this,f=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),n=function(){if(D.watchMetadata){var t,J;(J=(t=D.watchMetadata).resize)==null||J.call(t)}_.Ma(D).getPlayerPromise().then(function(H){if(_.c("kevlar_set_internal_player_size")){if(!f||!D.isMiniplayerActive()){var Q=D.calculateCurrentPlayerSize_();H.setInternalSize(Q.width,Q.height)}}else H.setSize(NaN,NaN);_.c("kevlar_watch_while")&&D.updateWatchWhileScrollThreshold_()})};
V?n():_.sw(_.dm,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(V){this.set("data.survey",V.detail)},
onYtShowSurveyCommand_:function(V){this.set("data.survey",_.g(V,_.ReV).survey)},
onDownloadedVideoDeleted:function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1){if(!D.active||(f=D.playerData)==null||!f.offlineState||D.videoId!==V)return t.return();(n=D.player)==null||n.stopVideo();_.b$().navigatingAwayFromWatchDeletedVideo=!0;_.Km(_.y19,D.hostElement);return _.b(t,_.b$().navigationFinishPromise,2)}_.b$().navigatingAwayFromWatchDeletedVideo=!1;_.yz(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var V;this.theater?V=_.Nw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):V=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==V&&(this.watchWhileScrollThreshold_=V,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var V=_.Pt(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&V){var D=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!V.active&&D&&f>=this.watchWhileScrollThreshold_?(V.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):V.active&&(!D||f<this.watchWhileScrollThreshold_&&!_.UX())&&(V.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(V,D){if(V!==!0||D!==void 0){V=!_.c("live_chat_over_engagement_panels");D=_.Pt(this.hostElement).querySelector("#chat-container");var f=_.Pt(this.hostElement).querySelector("#plj-sidebar"),n=_.Pt(this.hostElement).querySelector("#panels"),t=_.Pt(this.hostElement).querySelector("#plj-panels"),J=_.Pt(this.hostElement).querySelector("#plj-playlist"),H=_.Pt(this.hostElement).querySelector("#alerts"),Q=_.Pt(this.hostElement).querySelector("#playlist"),T=_.Pt(this.hostElement).querySelector("#related"),
y=_.Pt(this.hostElement).querySelector("#donation-shelf"),Z=_.Pt(this.hostElement).querySelector("#comments");this.isTwoColumns_?(H=_.Pt(this.hostElement).querySelector("#secondary-inner"),H.appendChild(f),f.appendChild(J),J.appendChild(Q),f.appendChild(t),V&&H.appendChild(n),_.c("web_watch_theater_chat")||H.appendChild(D),V||H.appendChild(n),H.appendChild(y),H.appendChild(T)):(V&&_.sO(n,H),_.sO(Q,H),_.c("web_watch_theater_chat")||_.sO(D,H),V||_.sO(n,H),_.sO(y,H),Z&&(t&&_.sO(t,Z),_.sO(T,Z)));_.c("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.c("web_watch_theater_chat")){var V=_.Pt(this.hostElement).querySelector("#chat-container"),D=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&D?_.c("web_watch_theater_chat_beside_player")?(D=_.Pt(this.hostElement).querySelector("#panels-full-bleed-container"),(V==null?void 0:V.parentElement)!==D&&D.append(V),this.panelsBesidePlayer=!0):_.c("web_watch_theater_fixed_chat")&&
(D=_.Pt(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==D&&D.append(V),this.fixedPanels=!0):(_.c("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.c("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),D=_.Pt(this.hostElement).querySelector("#playlist"),V&&D?_.BN(V,D):_.zP(new _.cI("Missing element when updating chat location",{"chatContainer defined":!!V,"playlist defined":!!D})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(V,D){return _.c("sw_metadata_vis_toggle_ks")?!0:!!V||!!D},
computeForceDarkPanelTheme:function(V){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&V:!1},
safeUpdateStyles:function(V){try{_.wI(this.hostElement,V)}catch(D){_.zP(D)}},
videoHeightToWidthRatioChanged_:function(V,D){D&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(V){this.videoHeightToWidthRatio_=1/V},
computeIsVerticalVideo_:function(V){return V>=1},
computeIsFourThreeToSixteenNineVideo_:function(V){return V<=.7501&&V>=.5624},
computeIsExtraWideVideo_:function(V){return V<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ma(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ma(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.iqw(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(V){var D=_.J5(V)||0;_.oC(V,D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var V=_.J5("yt-fullerscreen-edu-button-click-count")||0,D=_.J5("yt-fullerscreen-edu-button-shown-count")||0,f=_.tU("external_fullscreen_button_shown_threshold"),n=V>=_.tU("external_fullscreen_button_click_threshold")||D>=f;_.Ma(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(V,D){return D},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.DY().resolve(_.zI).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var V=this;this.panelMaxHeightUpdateJob_&&_.dm.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.dm.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;var D;!V.isTwoColumns_||V.theater||V.fullscreen?D=460:D=V.calculateNormalPlayerSize_().height;var f=D+"px";_.c("live_chat_taller_height")&&!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.c("live_chat_medium_height")&&
!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!V.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");V.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":D+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":D+"px","--ytd-watch-flexy-comments-panel-max-height":D+"px","--ytd-comments-engagement-panel-content-height":D+"px"})})},
onYtShowEngagementPanelScrimAction_:function(V){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",V)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.wN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(V){var D=_.Pt(this.hostElement).querySelector("#engagement-panel-scrim");V?D.addEventListener("tap",_.Ty(this,this.onEngagementPanelScrimClick_)):D.removeEventListener("tap",_.Ty(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(V){if(this.hostElement.contains(V)&&!this.scrollToAnimation_.isAnimating()){var D=V.offsetTop-24;V=V.offsetTop+V.offsetHeight+24;var f=this.getPageScrollingElement(),n=this.getScrollTop(),t=n+f.clientHeight-56;if(D<n+56)D-=56;else if(V>t)D=V-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtSignalActionScrollToComments:function(){var V=this.hostElement.querySelector("#comments");if(V&&!this.scrollToAnimation_.isAnimating()){V=V.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(V-=_.Ki().height/3,V<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,V),500)}},
onYtEngagementPanelVisibleChanged:function(V,D,f){this.active&&this.trackEngagementPanelVisibility&&!_.mtX.includes(f)&&(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(f),D!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&D!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(V){return V?"":"watch-active-metadata"},
computeNewMetadataClass:function(V){return V?"watch-active-metadata":""},
computeFullBleedPlayer:function(V,D){return V||D},
computeDefaultLayout:function(V){return!V},
computeDefaultTwoColumnLayout:function(V,D){return!V&&D},
computeWatchWhilePanelsActive:function(V,D){return V||D},
computeNoBorderOnChat:function(V){return _.c("web_watch_theater_chat_no_border")&&V},
computeLiveChatPresentAndExpanded:function(V,D){return V&&!D},
computePanelExpanded:function(V,D,f){return V||D||f},
onChangeMarkersVisibility:function(V){_.Ma(this).getPlayerPromise().then(function(D){var f;(f=D.changeMarkerVisibility)==null||f.call(D,_.g(V,_.Sp).isVisible||!1,_.g(V,_.Sp).entityKeys||[],_.g(V,_.Sp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(V){this.liveChatCollapsed=V.detail;_.Ol().dispatch(_.N4V(V.detail))},
provideRenderingData:function(V,D){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=D;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=D);this.videoPrimaryInfoRendererValue=D==null?void 0:D.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=D);this.videoSecondaryInfoRendererValue=D==null?void 0:D.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
D;break;case "CLARIFICATION":this.clarifyBoxValue=D;break;case "LIVE_CHAT":this.conversationBar=D;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=D;break;case "PLAYLIST":this.externalPlaylistData_=D!=null?D:{};break;case "MERCH_SHELF":this.merchShelfValue=D==null?void 0:D.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=D;break;case "OFFER_MODULE":this.offerModule=D;break;case "LIMITED_STATE":this.limitedStateValue=D;break;case "DONATION_SHELF":this.donation=D;break;
case "ALERTS":this.alertsValue=D;break;case "COMMENTS":this.comments=D;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=D;break;case "ENGAGEMENT_PANELS":this.engagementPanels=D;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=D;break;case "RICH_GRID_RENDERER":this.richGridRendererData=D;break;case "EXPANDABLE_METADATA":this.expandableMetadata=D;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=D}},
toggleCinematicsActive:function(V){this.cinematicsActive=V},
isMiniplayerActive:function(){return _.DY().resolve(_.qw).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(V){return rzc.map(function(D){return V.find(function(f){var n;return(f==null?void 0:(n=f.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===D})}).filter(function(D){return D!==void 0})},
getNonLearningJourneyEngagementPanels:function(V){return V.filter(function(D){var f;return!rzc.includes((D==null?void 0:(f=D.engagementPanelSectionListRenderer)==null?void 0:f.targetId)||"")})}}];var HUZ;var UP=function(){var V=_.E.apply(this,arguments)||this;V.flexy=!0;V.learningJourney=!0;V.roundedInfoPanel=!0;V.viewTransitionEnabled=_.c("enable_player_resize_transition");V.smallerChatMinHeight=_.c("live_chat_smaller_min_height");V.cinematicTheaterMode=_.c("web_cinematic_theater_mode");V.transparentTheaterMode=_.c("web_transparent_theater_mode");V.cinematicFullscreen=_.c("web_cinematic_fullscreen");V.useLargerMaxPlayerValue=_.c("kevlar_flexy_use_larger_player_value");V.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");
V.isDarkTheme=document.documentElement.hasAttribute("dark");V.theaterLargerPlayer=_.c("web_watch_theater_larger_player");V.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");return V};
_.v(UP,_.E);_.P=UP.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var V=this,D=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(V){_.c("web_watch_update_narrow_width_killswitch")||_.Ol().dispatch(_.vQq(!V.detail.value));this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.P.updateShownItemsFromBinding=function(V){V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value};
_.P.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20698_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20698_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.IG.Object.defineProperties(UP.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(V=_.g(this.data.pageVisualEffects[D],_.Fg))return D=void 0,(D=V.config)==null?void 0:D.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.learningJourneyEngagementPanels)==null?void 0:V.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.learningJourneyEngagementPanels)==null?void 0:V.find(function(G){var F;return(G==null?void 0:(F=G.engagementPanelSectionListRenderer)==null?void 0:F.panelIdentifier)==="learning-journey-engagement-panel"});
if(D){var f,n,t,J,H,Q,T,y,Z;if(V=(y=((T=(H=((J=D==null?void 0:(f=D.engagementPanelSectionListRenderer)==null?void 0:(n=f.content)==null?void 0:(t=n.sectionListRenderer)==null?void 0:t.contents)!=null?J:[])[0])==null?void 0:(Q=H.itemSectionRenderer)==null?void 0:Q.contents)!=null?T:[])[0])==null?void 0:(Z=y.accordionViewModel)==null?void 0:Z.onTitleTap){var l=_.Xo(V);if(l)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.bS.instance.resolveCommand(l)}}}}}}});
_.IG.Object.defineProperties(UP,{template:{configurable:!0,enumerable:!0,get:function(){if(HUZ===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);HUZ=V}V=HUZ;return V}}});
UP.prototype.updateMiniplayerIsActiveValue=UP.prototype.updateMiniplayerIsActiveValue;UP.prototype.updateScrollTopValue=UP.prototype.updateScrollTopValue;UP.prototype.updateFullscreenValue=UP.prototype.updateFullscreenValue;UP.prototype.updateTheaterValue=UP.prototype.updateTheaterValue;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],UP.prototype,"ytComponentBehavior",void 0);
_.S([_.u(Jzq.YtdLearningJourneyWatchBehavior),_.p("design:type",Object)],UP.prototype,"ytdWatchBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],UP.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UP.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],UP.prototype,"playerData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"flexy",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"learningJourney",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"roundedInfoPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"viewTransitionEnabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"smallerChatMinHeight",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"cinematicTheaterMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"transparentTheaterMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"cinematicFullscreen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"useLargerMaxPlayerValue",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"cinematicFullscreenV2",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"isDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UP.prototype,"theaterLargerPlayer",void 0);_.S([_.q(),_.p("design:type",Object)],UP.prototype,"defaultCollapsePlaylist",void 0);_.S([_.q({selector:_.uf}),_.p("design:type",Object)],UP.prototype,"theaterValue",void 0);
_.S([_.q({selector:_.Ns}),_.p("design:type",Object)],UP.prototype,"fullscreenValue",void 0);_.S([_.q({selector:_.sF}),_.p("design:type",Object)],UP.prototype,"scrollTopValue",void 0);_.S([_.q({selector:_.mq}),_.p("design:type",Object)],UP.prototype,"miniplayerIsActiveValue",void 0);_.S([_.Zv("#ytd-plj-player"),_.p("design:type",HTMLElement)],UP.prototype,"ytdPlayer",void 0);_.S([_.Zv("#playlist"),_.p("design:type",HTMLElement)],UP.prototype,"JSC$20698_ytdPlaylistPanelRenderer",void 0);
_.S([_.Mn("ytd-comments"),_.p("design:type",HTMLElement)],UP.prototype,"ytdComments",void 0);_.S([_.Zv("#primary"),_.p("design:type",HTMLElement)],UP.prototype,"primary",void 0);_.S([_.Zv("#secondary"),_.p("design:type",HTMLElement)],UP.prototype,"secondary",void 0);_.S([_.Zv("#player-container"),_.p("design:type",HTMLElement)],UP.prototype,"playerContainer",void 0);_.S([_.Zv("#cinematics"),_.p("design:type",HTMLElement)],UP.prototype,"JSC$20698_cinematics",void 0);
_.S([_.KI("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UP.prototype,"updateTheaterValue",null);_.S([_.KI("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UP.prototype,"updateFullscreenValue",null);_.S([_.KI("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UP.prototype,"updateScrollTopValue",null);
_.S([_.KI("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UP.prototype,"updateMiniplayerIsActiveValue",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],UP.prototype,"cinematicLightTheme",null);_.S([_.q({reflectToAttribute:!0}),_.R("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],UP.prototype,"hasLearningJourneyPanels",null);
_.S([_.R("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],UP.prototype,"backButtonData",null);_.S([_.a({is:"ytd-watch-learning-journey"})],UP);_.f1.registerService(_.b7U,UP);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("Tm0L3c");
var MAv;var heq;var Utv=function(){return _.E.apply(this,arguments)||this};
_.v(Utv,_.E);_.S([_.a({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Utv);
_.Y(Utv,"ytd-ghost-comments-renderer",function(){if(heq===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);heq=V}V=heq;return V},{mode:1});var Vpq;var DVo=function(){return _.E.apply(this,arguments)||this};
_.v(DVo,_.E);_.S([_.a({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],DVo);
_.Y(DVo,"ytd-ghost-watch-metadata-renderer",function(){if(Vpq===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);Vpq=V}V=Vpq;return V},{mode:1});var hz=function(){var V=_.E.apply(this,arguments)||this;V.ghostGridRenderer={rows:6};V.roundedInfoPanel=!0;V.hideOfferModules=!0;V.smallerChatMinHeight=_.c("live_chat_smaller_min_height");V.cinematicTheaterMode=_.c("web_cinematic_theater_mode");V.transparentTheaterMode=_.c("web_transparent_theater_mode");V.darkerPanels=_.c("web_watch_darker_panels");V.cinematicFullscreen=_.c("web_cinematic_fullscreen");V.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");V.isDarkTheme=document.documentElement.hasAttribute("dark");
return V};
_.v(hz,_.E);_.P=hz.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var V=this,D=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(V){this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.P.updateShownItemsFromBinding=function(V){_.c("swatcheroo_direct_use_rich_grid")||(V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value)};
_.P.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20686_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20686_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.IG.Object.defineProperties(hz.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(V=_.g(this.data.pageVisualEffects[D],_.Fg))return D=void 0,(D=V.config)==null?void 0:D.enableInLightTheme;return!1}}});
hz.prototype.updateMiniplayerIsActiveValue=hz.prototype.updateMiniplayerIsActiveValue;hz.prototype.updateScrollTopValue=hz.prototype.updateScrollTopValue;hz.prototype.updateFullscreenValue=hz.prototype.updateFullscreenValue;hz.prototype.updateTheaterValue=hz.prototype.updateTheaterValue;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],hz.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.OqX.YtdWatchBehavior),_.p("design:type",Object)],hz.prototype,"ytdWatchBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],hz.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hz.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],hz.prototype,"ghostGridRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],hz.prototype,"playerData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"roundedInfoPanel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"hideOfferModules",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"smallerChatMinHeight",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"cinematicTheaterMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"transparentTheaterMode",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"darkerPanels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"cinematicFullscreen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"cinematicFullscreenV2",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hz.prototype,"isDarkTheme",void 0);_.S([_.q({selector:_.uf}),_.p("design:type",Object)],hz.prototype,"theaterValue",void 0);
_.S([_.q({selector:_.Ns}),_.p("design:type",Object)],hz.prototype,"fullscreenValue",void 0);_.S([_.q({selector:_.sF}),_.p("design:type",Object)],hz.prototype,"scrollTopValue",void 0);_.S([_.q({selector:_.mq}),_.p("design:type",Object)],hz.prototype,"miniplayerIsActiveValue",void 0);_.S([_.Zv("#ytd-player"),_.p("design:type",HTMLElement)],hz.prototype,"ytdPlayer",void 0);_.S([_.Zv("#playlist"),_.p("design:type",HTMLElement)],hz.prototype,"JSC$20686_ytdPlaylistPanelRenderer",void 0);
_.S([_.Zv("#ytd-comments"),_.p("design:type",HTMLElement)],hz.prototype,"ytdComments",void 0);_.S([_.Zv("#primary"),_.p("design:type",HTMLElement)],hz.prototype,"primary",void 0);_.S([_.Zv("#secondary"),_.p("design:type",HTMLElement)],hz.prototype,"secondary",void 0);_.S([_.Zv("#player-container"),_.p("design:type",HTMLElement)],hz.prototype,"playerContainer",void 0);_.S([_.Zv("#cinematics"),_.p("design:type",HTMLElement)],hz.prototype,"JSC$20686_cinematics",void 0);
_.S([_.KI("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hz.prototype,"updateTheaterValue",null);_.S([_.KI("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hz.prototype,"updateFullscreenValue",null);_.S([_.KI("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hz.prototype,"updateScrollTopValue",null);
_.S([_.KI("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hz.prototype,"updateMiniplayerIsActiveValue",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],hz.prototype,"cinematicLightTheme",null);
_.Y(hz,"ytd-watch-grid",function(){if(MAv===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);MAv=V}V=MAv;return V},{mode:2});_.f1.registerService(_.Tyd,hz);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("CF909");
var xtv;var MV=function(){var V=_.E.apply(this,arguments)||this;V.flexy=!0;V.roundedInfoPanel=!0;V.viewTransitionEnabled=_.c("enable_player_resize_transition");V.smallerChatMinHeight=_.c("live_chat_smaller_min_height");V.cinematicTheaterMode=_.c("web_cinematic_theater_mode");V.transparentTheaterMode=_.c("web_transparent_theater_mode");V.cinematicFullscreen=_.c("web_cinematic_fullscreen");V.useLargerMaxPlayerValue=_.c("kevlar_flexy_use_larger_player_value");V.isDarkTheme=document.documentElement.hasAttribute("dark");
V.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");V.retroModeReduxValue=!1;return V};
_.v(MV,_.E);_.P=MV.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateRetroModeReduxValue=function(){_.c("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.P.ready=function(){var V=this,D=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(V){_.c("web_watch_update_narrow_width_killswitch")||_.Ol().dispatch(_.vQq(!V.detail.value));this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.P.updateShownItemsFromBinding=function(V){V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value};
_.P.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20681_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20681_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.IG.Object.defineProperties(MV.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(V=_.g(this.data.pageVisualEffects[D],_.Fg))return D=void 0,(D=V.config)==null?void 0:D.enableInLightTheme;return!1}}});
_.IG.Object.defineProperties(MV,{template:{configurable:!0,enumerable:!0,get:function(){if(xtv===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);xtv=V}V=xtv;return V}}});
MV.prototype.updateRetroModeReduxValue=MV.prototype.updateRetroModeReduxValue;MV.prototype.updateScrollTopValue=MV.prototype.updateScrollTopValue;MV.prototype.updateFullscreenValue=MV.prototype.updateFullscreenValue;MV.prototype.updateTheaterValue=MV.prototype.updateTheaterValue;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],MV.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.OqX.YtdWatchBehavior),_.p("design:type",Object)],MV.prototype,"ytdWatchBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],MV.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MV.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],MV.prototype,"playerData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"flexy",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"roundedInfoPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"viewTransitionEnabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"smallerChatMinHeight",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"cinematicTheaterMode",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"transparentTheaterMode",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"cinematicFullscreen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"useLargerMaxPlayerValue",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MV.prototype,"isDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],MV.prototype,"defaultCollapsePlaylist",void 0);
_.S([_.q({selector:_.uf}),_.p("design:type",Object)],MV.prototype,"theaterValue",void 0);_.S([_.q({selector:_.Ns}),_.p("design:type",Object)],MV.prototype,"fullscreenValue",void 0);_.S([_.q({selector:_.sF}),_.p("design:type",Object)],MV.prototype,"scrollTopValue",void 0);_.S([_.q({selector:_.mq}),_.p("design:type",Object)],MV.prototype,"miniplayerIsActive",void 0);_.S([_.q({selector:function(V){return V.watch.isWatchRetroMode}}),
_.p("design:type",Object)],MV.prototype,"retroModeReduxValue",void 0);_.S([_.Mn("ytd-player"),_.p("design:type",HTMLElement)],MV.prototype,"ytdPlayer",void 0);_.S([_.Zv("#playlist"),_.p("design:type",HTMLElement)],MV.prototype,"JSC$20681_ytdPlaylistPanelRenderer",void 0);_.S([_.Mn("ytd-comments"),_.p("design:type",HTMLElement)],MV.prototype,"ytdComments",void 0);_.S([_.Zv("#primary"),_.p("design:type",HTMLElement)],MV.prototype,"primary",void 0);
_.S([_.Zv("#secondary"),_.p("design:type",HTMLElement)],MV.prototype,"secondary",void 0);_.S([_.Zv("#player-container"),_.p("design:type",HTMLElement)],MV.prototype,"playerContainer",void 0);_.S([_.Zv("#below"),_.p("design:type",HTMLElement)],MV.prototype,"below",void 0);_.S([_.Zv("#cinematics"),_.p("design:type",HTMLElement)],MV.prototype,"JSC$20681_cinematics",void 0);
_.S([_.KI("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MV.prototype,"updateTheaterValue",null);_.S([_.KI("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MV.prototype,"updateFullscreenValue",null);_.S([_.KI("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MV.prototype,"updateScrollTopValue",null);
_.S([_.KI("retroModeReduxValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MV.prototype,"updateRetroModeReduxValue",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],MV.prototype,"cinematicLightTheme",null);_.S([_.a({is:"ytd-watch-flexy"})],MV);_.f1.registerService(_.Qhd,MV);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("nmfa2d");
var wLW;var YR=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;V.errorScreen=null;V.playlistData={};return V};
_.v(YR,_.E);_.P=YR.prototype;_.P.getPlayer=function(){return this.ytdPlayer};
_.P.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:_.C0(["aa","eocs"])}}};
_.P.onActiveChanged=function(){_.Ol().dispatch(_.fLv(this.ytPageBehavior.active))};
_.P.playerDataChanged=function(){var V;(V=this.watchController)==null||V.setPlayerResponse(this.playerData)};
_.P.dataChanged=function(){var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)};
_.P.sizeChanged=function(){var V,D;(D=(V=this.metadata).resize)==null||D.call(V)};
_.P.attached=function(){this.watchController=new _.Az(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.P.detached=function(){_.Mr(this.watchController);this.watchController=void 0};
_.P.getPlayerContainer=function(){return this.playerContainer};
_.P.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20633_playlistPanel}};
_.P.provideRenderingData=function(V,D){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=D;break;case "ERROR_SCREEN":this.errorScreen=D!=null?D:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=D;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=D;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=D;break;case "RICH_METADATA":this.richMetadataRowContainer=D;break;case "CLARIFICATION":this.clarificationData=D;break;case "PLAYLIST":this.playlistData=
D!=null?D:{};break;case "MERCH_SHELF":this.merchShelf=D;break;case "TICKET_SHELF":this.ticketShelf=D;break;case "LIMITED_STATE":this.limitedState=D;break;case "DONATION_SHELF":this.donationShelf=D;break;case "ALERTS":this.alerts=D}};
_.IG.Object.defineProperties(YR.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return!this.hidden&&!!((V=this.data)==null?0:(D=V.contents)==null?0:(f=D.twoColumnWatchNextResults)==null?0:f.conversationBar)}}});
YR.prototype.sizeChanged=YR.prototype.sizeChanged;YR.prototype.dataChanged=YR.prototype.dataChanged;YR.prototype.playerDataChanged=YR.prototype.playerDataChanged;YR.prototype.onActiveChanged=YR.prototype.onActiveChanged;_.S([_.u(_.sn.YtPageBehavior),_.p("design:type",Object)],YR.prototype,"ytPageBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],YR.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],YR.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"playerData",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],YR.prototype,"hidden",void 0);_.S([_.Zv("#ytd-player"),_.p("design:type",HTMLElement)],YR.prototype,"ytdPlayer",void 0);_.S([_.Zv("#player-container"),_.p("design:type",HTMLElement)],YR.prototype,"playerContainer",void 0);_.S([_.Zv("#metadata"),_.p("design:type",Object)],YR.prototype,"metadata",void 0);_.S([_.Zv("#playlist"),_.p("design:type",HTMLElement)],YR.prototype,"JSC$20633_playlistPanel",void 0);
_.S([_.q({selector:_.RpW,reflectToAttribute:!0}),_.p("design:type",Object)],YR.prototype,"fixie",void 0);_.S([_.q({selector:_.zpZ,reflectToAttribute:!0}),_.p("design:type",Object)],YR.prototype,"singleColumn",void 0);_.S([_.q({selector:function(V){return _.uf(V)&&!_.Ns(V)},
reflectToAttribute:!0}),_.p("design:type",Object)],YR.prototype,"theater",void 0);_.S([_.q({selector:_.Ns,reflectToAttribute:!0}),_.p("design:type",Object)],YR.prototype,"fullscreen",void 0);_.S([_.q({selector:_.VA3}),_.p("design:type",Object)],YR.prototype,"windowSize",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"singleColumnContents",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"errorScreen",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"playlistData",void 0);
_.S([_.q(),_.p("design:type",Object)],YR.prototype,"videoPrimaryInfoRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"videoSecondaryInfoRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"richMetadataRowContainer",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"clarificationData",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"commentsEntryPointHeaderRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"ticketShelf",void 0);
_.S([_.q(),_.p("design:type",Object)],YR.prototype,"merchShelf",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"donationShelf",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"limitedState",void 0);_.S([_.q(),_.p("design:type",Object)],YR.prototype,"alerts",void 0);_.S([_.R("playlistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],YR.prototype,"hasPlaylistData",null);
_.S([_.R("data","hidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],YR.prototype,"hasChat",null);_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YR.prototype,"onActiveChanged",null);_.S([_.KI("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YR.prototype,"playerDataChanged",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YR.prototype,"dataChanged",null);_.S([_.KI("windowSize","singleColumn"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YR.prototype,"sizeChanged",null);
_.Y(YR,"ytd-watch-fixie",function(){if(wLW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);wLW=V}V=wLW;return V},{mode:1});_.f1.registerService(_.wU9,YR);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("xwEKAe");
var B6V=function(V){var D=_.Gm();if(D.getFlag(202))D=D.getFlag(201);else{var f;D=(V==null?void 0:(f=V.config)==null?void 0:f.settingOnByDefault)!==void 0?V.config.settingOnByDefault:!_.c("web_shorts_cinematics_disabled_by_default")}return D},dDJ=function(V){var D=_.Gm();
_.eJ(0,201,V);_.eJ(0,202,!0);D.save()},uUo=function(V){return(V=_.ys3(V))?_.jv9(V):0},N6c=function(V){return V.shorts.isSmallScreenSqueezeback},mDV=function(V){return V.shorts.isPlaybackStarted},C5R=function(V){var D=_.k2d(2),f=new Set;
_.dc(function(){return void f.forEach(function(n){return void n()})});
return function(n){var t=_.x4(D);try{var J=zWR(RWR(V),n);f.add(J);return function(){J();f.delete(J)}}finally{_.x4(t)}}},qJf=function(V){var D=V.children;
var f=V.root;_.B9(function(){var n=C5R(f)(D);_.dc(n)});
return document.createTextNode("")},zWR=function(V,D){var f=XQX(V);
V=_.r(_.eCR(D,!0));D=V.next().value;var n=V.next().value;f.append.apply(f,_.sz(D));return function(){n();f.remove()}},RWR=function(V){if(typeof V==="string")return V=document.querySelector(V),_.ne3(V),V;
if(_.o9(V)&&V.nodeType===Node.ELEMENT_NODE)return V;if(!V.__value&&!V.__optional){var D=_.V6Z.USE_ELEMENT_NOT_ASSIGNED(V.__expectedTagName);V.__hasErrored=!0;throw D;}return V.value},XQX=function(V){var D=document.createElementNS(V.namespaceURI,V.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return V.appendChild(D)},E6Z=function(V,D,f,n){V=D-V;
f=n-f;return Math.sqrt(V*V+f*f)},AGV=function(V,D){V&&_.DY().resolve(_.fH).resolveCommand(V,{forceClickLogging:!0,
form:{element:D}})},aVv=function(V,D,f,n){V=D-V;
f=n-f;return Math.sqrt(V*V+f*f)},YJJ=function(V,D){V&&_.DY().resolve(_.fH).resolveCommand(V,{forceClickLogging:!0,
form:{element:D}})},$DR=function(){return _.DY().resolve(_.Z$).dismissedIndices},ieo=function(V){return _.nA({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:V}})},SJB=function(V){return _.nA({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:V}})},oR=function(V){return _.nA({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:V}})};var JQ=function(V,D){if(V instanceof JQ)this.array_=V.array_;else{var f;if(f=_.MU(V))a:{for(var n=f=0;n<V.length;n++){if(!_.MU(V[n])||f>0&&V[n].length!=f){f=!1;break a}for(var t=0;t<V[n].length;t++)if(typeof V[n][t]!=="number"){f=!1;break a}f==0&&(f=V[n].length)}f=f!=0}if(f)this.array_=_.Od(V);else if(V instanceof _.bB)this.array_=WuB(V.height,V.width);else if(typeof V==="number"&&typeof D==="number"&&V>0&&D>0)this.array_=WuB(V,D);else throw Error("em");}this.size_=new _.bB(this.array_[0].length,
this.array_.length)},pQ0=function(V,D,f){for(var n=0;n<V.getSize().height;n++)for(var t=0;t<V.getSize().width;t++)D.call(f,V.array_[n][t],n,t,V)},LuR=function(V,D){var f=new JQ(V.getSize());
pQ0(V,function(n,t,J){f.array_[t][J]=D.call(void 0,n,t,J,V)});
return f},WuB=function(V,D){for(var f=[],n=0;n<V;n++){f[n]=[];
for(var t=0;t<D;t++)f[n][t]=0}return f};
JQ.prototype.add=function(V){if(!_.Vwv(this.size_,V.getSize()))throw Error("fm");return LuR(this,function(D,f,n){return D+V.array_[f][n]})};
JQ.prototype.equals=function(V,D){if(this.size_.width!=V.size_.width||this.size_.height!=V.size_.height)return!1;D=D||0;for(var f=0;f<this.size_.height;f++)for(var n=0;n<this.size_.width;n++)if(!_.Ub3(this.array_[f][n],V.array_[f][n],D))return!1;return!0};
JQ.prototype.getSize=function(){return this.size_};
var re=function(V,D,f){return D>=0&&D<V.size_.height&&f>=0&&f<V.size_.width?V.array_[D][f]:null};
JQ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var HF=function(V,D,f,n){if(!(D>=0&&D<V.size_.height&&f>=0&&f<V.size_.width))throw Error("gm`"+D+"`"+f+"`"+V.size_.height+"`"+V.size_.width);V.array_[D][f]=n};
JQ.prototype.multiply=function(V){if(V instanceof JQ){if(this.size_.width!=V.getSize().height)throw Error("hm");return IVc(this,V)}if(typeof V==="number")return Oeo(this,V);throw Error("im");};
var IVc=function(V,D){var f=new JQ(V.size_.height,D.getSize().width);pQ0(f,function(n,t,J){for(var H=n=0;H<this.size_.width;H++)n+=re(this,t,H)*re(D,H,J);HF(f,t,J,n)},V);
return f},Oeo=function(V,D){return LuR(V,function(f){return f*D})};var xDB=new _.L("inlineSurveyRenderer");var MwV=new _.L("interstitialViewModel");var hWJ=new _.L("reelNavigateCommand");var UDf=new _.L("reelNonVideoContentDismissalCommand");var ViJ=new _.L("showReelsCommentsOverlayCommand");var DK0=new _.L("shortsSuggestedActionViewModel");var fG3=new _.L("videoInteractionPopUpRenderer");var n_0;var ti3;var PwX;var we=function(){var V=_.E.apply(this,arguments)||this;V.ctaVisualElement=null;V.currentCsn=null;return V};
_.v(we,_.E);_.P=we.prototype;_.P.onDataChanged=function(){this.maybeLogShows()};
_.P.computeButtonShape=function(){var V=this;if(this.data)return{buttonText:_.LA(this.data.text),state:"active",onTap:function(){V.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.P.maybeCreateCtaVe=function(){var V;if((V=this.data)!=null&&V.badgeInteractionLogging){var D;if(V=(D=this.data.badgeInteractionLogging)==null?void 0:D.trackingParams)this.ctaVisualElement=_.gs(V)}};
_.P.maybeLogClicks=function(){this.currentCsn=_.Ni(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.p6(this.currentCsn,this.ctaVisualElement)};
_.P.maybeLogShows=function(){this.currentCsn=_.Ni(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.SJ(this.currentCsn,[this.ctaVisualElement])};
_.P.onTap=function(){var V;if((V=this.data)!=null&&V.onClickCommand){var D;this.ytComponentBehavior.resolveCommand((D=this.data)==null?void 0:D.onClickCommand);this.maybeLogClicks()}};
we.prototype.onDataChanged=we.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],we.prototype,"ytComponentBehavior",void 0);_.S([_.q({}),_.p("design:type",Object)],we.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],we.prototype,"onDataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],we);
_.Y(we,"ytd-shopping-overlay-badge-renderer",function(){if(PwX!==void 0)return PwX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return PwX=V},{mode:1});_.fT(_.GUR,"reel-sound-metadata-view-model",{props:{data:_.Dn,overlayDensity:_.Dn}});_.fT(_.TQv,"player-disclosure-view-model",{props:{data:_.WX}});_.fT(_.dbY,"pivot-button-view-model",{props:{data:_.Dn,className:_.Dn}});_.fT(_.uyL,"reel-action-bar-view-model",{props:{data:_.WX,buttonShapeOverrideables:_.WX}});_.fT(_.MA(function(V){function D(){var wZ,ZZ,sd,NU,Bn=(ZZ=_.g((wZ=O())==null?void 0:wZ.command,_.jt))==null?void 0:(sd=ZZ.item)==null?void 0:(NU=sd.notificationTextRenderer)==null?void 0:NU.successResponseText;if(Bn)_.o4(n.value,"yt-open-popup-action",[_.M_(Bn),n.value]);else if(W())AGV(W(),k.value);else{var aY;AGV((aY=O())==null?void 0:aY.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var f=V.data;var n=_.W2("yt-player-overlay-video-interactions");V=_.r(_.HJ("0px",void 0,"O1N7Ce"));var t=V.next().value,J=V.next().value;V=_.r(_.HJ("0px",void 0,"tTDBdb"));var H=V.next().value,Q=V.next().value;V=_.r(_.HJ(0,void 0,"fh8Zkc"));var T=V.next().value,y=V.next().value;V=_.r(_.HJ(0,void 0,"CUjqGd"));var Z=V.next().value,l=V.next().value,G=function(){var wZ;if(((wZ=_.ra())==null?void 0:wZ.getPlayerState())!==-1){n.value.style.display="inherit";var ZZ;(ZZ=_.ra())==null||ZZ.removeEventListener("onStateChange",
G)}F()},F=function(){var wZ=document.querySelector("video");
if(wZ){y(wZ.getBoundingClientRect().width);l(wZ.getBoundingClientRect().height);var ZZ;J((wZ==null?void 0:(ZZ=wZ.style)==null?void 0:ZZ.left)||"0px");var sd;Q((wZ==null?void 0:(sd=wZ.style)==null?void 0:sd.top)||"0px")}};
_.BJ(function(){var wZ,ZZ,sd;if(((wZ=_.ra())==null?void 0:wZ.getPlayerState())===-1&&Math.round(((sd=(ZZ=_.ra())==null?void 0:ZZ.getVideoAspectRatio())!=null?sd:0)*100)!==Math.round(T()/Z()*100)){n.value.style.display="none";var NU,Bn;l(T()/((Bn=(NU=_.ra())==null?void 0:NU.getVideoAspectRatio())!=null?Bn:1))}},"VB5m5");
_.B9(function(){var wZ;(wZ=_.ra())==null||wZ.addEventListener("onStateChange",G);window.addEventListener("resize",F);F();var ZZ,sd,NU;if((NU=(ZZ=f())==null?void 0:(sd=ZZ.regions)==null?void 0:sd[0])==null||!NU.transformationMatrix)throw Error("mm");var Bn;if((Bn=f())==null?0:Bn.trackingParams){var aY;_.lS().graftServerVe((aY=f().trackingParams)!=null?aY:"")}_.dc(function(){var Ed;(Ed=_.ra())==null||Ed.removeEventListener("onStateChange",G);window.removeEventListener("resize",F)})});
var k=_.W2("svg"),d=_.r(_.HJ(!1,void 0,"TPsTce"));V=d.next().value;var z=d.next().value,C=_.r(_.HJ(!1,void 0,"Uz6CHf"));d=C.next().value;var A=C.next().value,O=function(){var wZ;return _.g((wZ=f())==null?void 0:wZ.popUp,fG3)},W=function(){var wZ;
return(wZ=f())==null?void 0:wZ.command},I=function(){return _.g(W(),_.Zt)!==void 0};
C=_.jl(function(){D();return!1});
var x={},oY={};return _.K("yt-player-overlay-video-interactions",{el:n},_.K("svg",{"on:mouseover":_.jl(function(){I()&&z(!0);A(!0);return!1}),
"on:mouseout":_.jl(function(){z(!1);A(!1);return!1}),
"on:keydown":_.jl(function(wZ){wZ.key==="Enter"&&D();return!1}),
"on:focus":_.jl(function(){I()&&z(!0);return!1}),
"on:blur":_.jl(function(){I()&&z(!1);return!1}),
el:k,tabindex:0,"aria-label":function(){var wZ;return(wZ=f())==null?void 0:wZ.a11yString},
id:"player-overlay-video-interaction-svg",class:_.KT("yt-player-overlay-video-interactions__interactions-svg",(x["yt-player-overlay-video-interactions__interactions-svg-hover"]=V,x),(oY["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=d,oY)),role:"button",style:function(){var wZ,ZZ,sd,NU=(sd=(wZ=f())==null?void 0:(ZZ=wZ.regions)==null?void 0:ZZ[0].transformationMatrix)!=null?sd:[];wZ=T();ZZ=Z();sd=[];for(var Bn=0,aY=-1;Bn<NU.length;Bn++)Bn%3===0&&(aY++,sd[aY]=[]),sd[aY].push(NU[Bn]);
NU=new JQ(sd);sd=new JQ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);sd=NU.multiply(sd);NU=new JQ([[0,0],[0,0],[0,0],[0,0]]);for(Bn=0;Bn<sd.getSize().width;Bn++){aY=re(sd,0,Bn);var Ed=re(sd,1,Bn);if(aY===null||Ed===null)throw Error("lm`"+(Bn+1).toString());HF(NU,Bn,0,aY*wZ);HF(NU,Bn,1,Ed*ZZ)}wZ=re(NU,0,0);Bn=re(NU,1,0);ZZ=re(NU,0,1);aY=re(NU,1,1);if(wZ===null||Bn===null||ZZ===null||aY===null)throw Error("jm");sd=E6Z(wZ,Bn,ZZ,aY);Ed=re(NU,3,0);NU=re(NU,3,1);if(Ed===null||NU===null)throw Error("km");NU=E6Z(wZ,
Ed,ZZ,NU);aY=(Number((aY*-1).toFixed(2))-Number((ZZ*-1).toFixed(2)))/(Number(Bn.toFixed(2))-Number(wZ.toFixed(2)));Ed=Math.atan(aY)*180/Math.PI;Bn=aY===Number.POSITIVE_INFINITY?-90:aY===Number.NEGATIVE_INFINITY?90:Object.is(aY,-0)?180:aY===0?0:aY>0?Ed*-1:wZ<Bn?Ed*-1:Math.abs(Ed)+180;return"left:calc("+wZ+"px + "+t()+"); top:calc("+(ZZ+"px + "+H()+"); width:")+(sd+"px; height:")+(NU+"px; transform:rotate(")+(Bn+"deg);")},
"on:click":C}))},"aj"),"yt-player-overlay-video-interactions",{props:{data:_.WX}});_.fT(_.j3R,"yt-reel-metapanel-view-model",{props:{data:_.WX,overlayDensity:_.WX}});var o_V=_.MA(function(V){var D=V.children;var f=V.region;V=_.r(_.HJ(void 0,void 0,"rwJZyc"));var n=V.next().value,t=V.next().value;V=_.r(_.HJ("0px",void 0,"H14H5c"));var J=V.next().value,H=V.next().value;V=_.r(_.HJ("0px",void 0,"Mn8Uvf"));var Q=V.next().value,T=V.next().value;V=_.r(_.HJ(0,void 0,"QQCIqc"));var y=V.next().value,Z=V.next().value;V=_.r(_.HJ(0,void 0,"HyEvh"));var l=V.next().value,G=V.next().value,F=function(){var O=n();if(O){var W;if(((W=_.ra())==null?void 0:W.getPlayerState())!==-1){O.style.display=
"inherit";var I;(I=_.ra())==null||I.removeEventListener("onStateChange",F)}d()}},k=function(){var O=document.querySelectorAll("video");
return Array.from(O).find(function(W){var I;return W==null?void 0:(I=W.style)==null?void 0:I.width})},d=function(){var O=k();
if(O){Z(O.getBoundingClientRect().width);G(O.getBoundingClientRect().height);var W;H((O==null?void 0:(W=O.style)==null?void 0:W.left)||"0px");var I;T((O==null?void 0:(I=O.style)==null?void 0:I.top)||"0px")}};
_.BJ(function(){var O=n();if(O){var W,I,x;if(((W=_.ra())==null?void 0:W.getPlayerState())===-1&&Math.round(((x=(I=_.ra())==null?void 0:I.getVideoAspectRatio())!=null?x:0)*100)!==Math.round(y()/l()*100)){O.style.display="none";var oY,wZ;G(y()/((wZ=(oY=_.ra())==null?void 0:oY.getVideoAspectRatio())!=null?wZ:1))}}},"RdGxIf");
var z=function(){d()},C;
_.B9(function(){d();var O;if(!(f==null?0:(O=f())==null?0:O.transformationMatrix))throw Error("mm");var W;(W=_.ra())==null||W.addEventListener("onStateChange",F);if(window.ResizeObserver){if(O=k())C=new ResizeObserver(z),C.observe(O)}else window.addEventListener("resize",d);_.dc(function(){var I;(I=_.ra())==null||I.removeEventListener("onStateChange",F);C?C.disconnect():window.removeEventListener("resize",d)})});
var A=function(){var O,W,I=(W=f==null?void 0:(O=f())==null?void 0:O.transformationMatrix)!=null?W:[];O=y();W=l();for(var x=[],oY=0,wZ=-1;oY<I.length;oY++)oY%3===0&&(wZ++,x[wZ]=[]),x[wZ].push(I[oY]);I=new JQ(x);x=new JQ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);x=I.multiply(x);I=new JQ([[0,0],[0,0],[0,0],[0,0]]);for(oY=0;oY<x.getSize().width;oY++){wZ=re(x,0,oY);var ZZ=re(x,1,oY);if(wZ===null||ZZ===null)throw Error("lm`"+(oY+1).toString());HF(I,oY,0,wZ*O);HF(I,oY,1,ZZ*W)}O=re(I,0,0);oY=re(I,1,0);W=re(I,0,1);
wZ=re(I,1,1);if(O===null||oY===null||W===null||wZ===null)throw Error("jm");x=aVv(O,oY,W,wZ);ZZ=re(I,3,0);I=re(I,3,1);if(ZZ===null||I===null)throw Error("km");I=aVv(O,ZZ,W,I);wZ=(Number((wZ*-1).toFixed(2))-Number((W*-1).toFixed(2)))/(Number(oY.toFixed(2))-Number(O.toFixed(2)));ZZ=Math.atan(wZ)*180/Math.PI;oY=wZ===Number.POSITIVE_INFINITY?-90:wZ===Number.NEGATIVE_INFINITY?90:Object.is(wZ,-0)?180:wZ===0?0:wZ>0?ZZ*-1:O<oY?ZZ*-1:Math.abs(ZZ)+180;return"left:calc("+O+"px + "+J()+"); top:calc("+(W+"px + "+
Q()+"); width:")+(x+"px; height:")+(I+"px; transform:rotate(")+(oY+"deg);")};
return _.K(qJf,{root:"#sticker-layer"},function(){return _.K("yt-overlay-sticker",{el:_.h2(t),style:A,class:"ytOverlayStickerHost"},D)})},"bj");var JpW=_.MA(function(V){function D(){var F,k,d,z,C=(k=_.g((F=T())==null?void 0:F.command,_.jt))==null?void 0:(d=k.item)==null?void 0:(z=d.notificationTextRenderer)==null?void 0:z.successResponseText;if(C)_.o4(n.value,"yt-open-popup-action",[_.M_(C),n.value]);else if(y())YJJ(y(),n.value);else{var A;YJJ((A=T())==null?void 0:A.command,n.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var f=V.data;var n=_.W2("svg"),t=_.r(_.HJ(!1,void 0,"T9Bq7b"));V=t.next().value;var J=t.next().value,H=_.r(_.HJ(!1,void 0,"iMHq9c"));t=H.next().value;var Q=H.next().value,T=function(){var F;return _.g((F=f())==null?void 0:F.popUp,fG3)},y=function(){var F;
return(F=f())==null?void 0:F.command},Z=function(){return _.g(y(),_.Zt)!==void 0};
H=_.jl(function(){D();return!1});
var l={},G={};return _.K("svg",{"on:mouseover":_.jl(function(){Z()&&J(!0);Q(!0);return!1}),
"on:mouseout":_.jl(function(){J(!1);Q(!1);return!1}),
"on:keydown":_.jl(function(F){F.key==="Enter"&&D();return!1}),
"on:focus":_.jl(function(){Z()&&J(!0);return!1}),
"on:blur":_.jl(function(){Z()&&J(!1);return!1}),
el:n,tabindex:0,"aria-label":function(){var F;return(F=f())==null?void 0:F.a11yString},
id:"player-overlay-video-interaction-svg",class:_.KT("ytPlayerOverlayInteractionInteractionsSvg",(l.ytPlayerOverlayInteractionInteractionsSvgHover=V,l),(G.ytPlayerOverlayInteractionInteractionsSvgHideOutline=t,G)),role:"button","on:click":H})},"dj");_.fT(_.MA(function(V){var D=V.data;_.B9(function(){var f;if((f=D())==null?0:f.trackingParams){var n;_.lS().graftServerVe((n=D().trackingParams)!=null?n:"")}});
return _.K("yt-player-overlay-interaction",null,_.K(o_V,{region:function(){var f,n;return(f=D())==null?void 0:(n=f.regions)==null?void 0:n[0]}},_.K(JpW,Object.assign({},V))))},"cj"),"yt-player-overlay-interaction",{props:{data:_.WX}});var Qy=function(){var V=_.E.apply(this,arguments)||this;V.showScrubber=!1;V.isWatchWhileMode=!1;V.enableRemixButton=_.c("web_enable_shorts_remix_handoff_ep");V.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");V.enableNewStickers=_.c("use_shorts_sticker_overlay_web");V.anchoredPanelActive=!1;V.enableLivingroomLayout=_.c("reels_enable_livingroom_layout");V.enablePlayerMetadataContainer=_.c("reels_web_enable_metadata_container");V.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");
V.useAspectRatio=_.c("web_use_aspect_ratio");V.isSqueezebackActive=!1;V.smallScreenSqueezeback=!1;V.isPlayerStarted=!1;V.overlayDensity=0;V.isOverlay=!1;V.isImmersive=!1;V.isImmersiveHorizontal=!1;V.isFullscreen=!1;V.onWindowResized=function(){var D;V.set("isImmersive",((D=window.getComputedStyle(V.hostElement))==null?void 0:D.getPropertyValue("--immersive-mode-on"))==="1");V.set("isImmersiveHorizontal",V.isImmersive&&V.enableLivingroomLayout&&!V.isWatchWhileMode)};
return V};
_.v(Qy,_.E);_.P=Qy.prototype;_.P.updateIsOverlay=function(V){this.isOverlay=V.detail.value};
_.P.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.c("web_enable_flexible_overlay")||_.c("web_enable_format_first")||_.c("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.P.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.P.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.P.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.P.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.P.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.P.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.P.ready=function(){(_.c("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.c("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.PI("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.PI("reels_action_justified_content")||"flex-start")};
_.P.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}}};
_.P.setFakeLoadingButtons=function(){_.c("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Zl("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Zl("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Zl("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Zl("SHARE_LABEL",void 0,"Share")}}}),_.c("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Zl("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()};
_.P.setEmptyOverlayMetadata=function(){_.c("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}))};
_.IG.Object.defineProperties(Qy.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.infoPanel)}}});
Qy.prototype.onIsActiveChanged=Qy.prototype.onIsActiveChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Qy.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Qy.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Qy.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Qy.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Qy.prototype,"isActive",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Qy.prototype,"hidden",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Qy.prototype,"useShortsIcon",void 0);_.S([_.q({value:"left"}),_.p("design:type",String)],Qy.prototype,"buttonTooltipPosition",void 0);
_.S([_.q({value:_.c("reels_enable_livingroom_layout")?"top":"left"}),_.p("design:type",String)],Qy.prototype,"likeButtonTooltipPosition",void 0);_.S([_.q({value:"none"}),_.p("design:type",String)],Qy.prototype,"textTransform",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"showScrubber",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"isWatchWhileMode",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.infoPanel"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qy.prototype,"hasInfoPanel",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"enableRemixButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"enableAnchoredPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"enableNewStickers",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"anchoredPanelActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"enableLivingroomLayout",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Qy.prototype,"enablePlayerMetadataContainer",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"enableSqueezebackPanels",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"useAspectRatio",void 0);_.S([_.q({selector:_.laX,reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"isSqueezebackActive",void 0);_.S([_.q({selector:N6c,reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"smallScreenSqueezeback",void 0);_.S([_.q({selector:mDV}),_.p("design:type",Object)],Qy.prototype,"isPlayerStarted",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"overlayDensity",void 0);_.S([_.q(),_.p("design:type",Object)],Qy.prototype,"isOverlay",void 0);_.S([_.q({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.p("design:type",Boolean)],Qy.prototype,"isShortsOverlay",void 0);_.S([_.q(),_.p("design:type",Object)],Qy.prototype,"isImmersive",void 0);_.S([_.q(),_.p("design:type",Object)],Qy.prototype,"isImmersiveHorizontal",void 0);
_.S([_.q({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.p("design:type",Boolean)],Qy.prototype,"isShortsImmersive",void 0);_.S([_.q({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],Qy.prototype,"buttonOverride",void 0);_.S([_.q({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],Qy.prototype,"actionBarButtonOverride",void 0);
_.S([_.q({selector:_.KL,reflectToAttribute:!0}),_.p("design:type",Object)],Qy.prototype,"isFullscreen",void 0);_.S([_.KI("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qy.prototype,"onIsActiveChanged",null);_.S([_.a({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Qy);
_.Y(Qy,"ytd-reel-player-overlay-renderer",function(){if(ti3!==void 0)return ti3;var V=document.createElement("template");_.B(V,'\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    <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    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ti3=V},{mode:1});var rpw;var TY=function(){var V=_.E.apply(this,arguments)||this;V.videoDuration=0;V.playedTime=0;V.isActive=!1;V.JSC$19891_playerEvents=new Map;return V};
_.v(TY,_.E);_.P=TY.prototype;_.P.created=function(){this.JSC$19891_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19891_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.P.attached=function(){this.getPlayerAndInitializeListeners()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19891_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Ty(this,this.onPageChanged))};
_.P.getPlayerAndInitializeListeners=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return D=_.hI(),D?_.b(f,D.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ty(V,V.onPageChanged)),f.jumpTo(0));V.player=f.yieldResult;V.initializePlayerListeners();_.yz(f)})};
_.P.onPageChanged=function(V){var D=this;return _.w(function(f){if(f.nextAddress==1)return V.detail.newPageType!=="ytd-shorts"?f.return():_.b(f,_.Uo().getPlayerPromise(),2);D.player=f.yieldResult;D.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ty(D,D.onPageChanged));_.yz(f)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19891_playerEvents)};
_.P.onVideoDataChange=function(V){var D=this;return _.w(function(f){if(!D.player||V.type!=="newdata")return f.return();D.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?D.player.getProgressState(V.playertype).seekableEnd:D.player.getDuration(V.playertype);D.playedTime=0;_.yz(f)})};
_.P.onVideoProgress=function(V){var D=this,f,n;return _.w(function(t){if(!D.player)return t.return();f=D.player.getPresentingPlayerType();n=D.player.getPlayerState();D.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?D.player.getProgressState(f).seekableEnd:D.player.getDuration(f);D.playedTime=n===0?D.videoDuration:V;_.yz(t)})};
_.P.getPercentPlayed=function(V,D){return V?_.Nw(D/V,0,1):0};
_.IG.Object.defineProperties(TY.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 V="";return V=this.videoDuration&&this.playedTime?V+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):V+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],TY.prototype,"componentBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],TY.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TY.prototype,"player",void 0);_.S([_.q(),_.p("design:type",Object)],TY.prototype,"videoDuration",void 0);_.S([_.q(),_.p("design:type",Object)],TY.prototype,"playedTime",void 0);_.S([_.q(),_.p("design:type",Object)],TY.prototype,"isActive",void 0);
_.S([_.R("videoDuration","playedTime"),_.p("design:type",Number),_.p("design:paramtypes",[])],TY.prototype,"percentPlayed",null);_.S([_.R("videoDuration","playedTime"),_.p("design:type",Object),_.p("design:paramtypes",[])],TY.prototype,"percentPlayedStyle",null);_.S([_.R("videoDuration","isActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],TY.prototype,"hideProgressBar",null);
_.Y(TY,"ytd-progress-bar-line",function(){if(rpw===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);rpw=V}V=rpw;return V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var HBc;_.fT(_.OWw,"ytm-closed-captioning-button",{props:{captionIconType:_.WX,onClick:_.Dn,ariaLabel:_.WX,ariaPressed:_.WX,isOverlay:_.Dn,isModern:_.Dn}});_.fT(_.Q3R,"desktop-shorts-volume-controls",{props:{orientation:_.WX}});var bm=function(){var V=_.E.apply(this,arguments)||this;V.playerState=null;V.isMuted=!1;V.shortsModernControlsEnabled=_.c("web_shorts_modern_controls");V.volumeControlsOrientationState=_.c("web_shorts_modern_controls")?"vertical_down":"horizontal_right";V.isOverlay=!0;V.captionIconType=-1;V.ariaLabel="";V.overlayDensity=0;V.JSC$19894_playerEvents=new Map;V.onClosedCaptionsButtonClick=function(){V.player&&_.E3(V.player)&&(V.player.toggleSubtitles(),V.updateCaptionIconType())};
return V};
_.v(bm,_.E);_.P=bm.prototype;_.P.created=function(){this.JSC$19894_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19894_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19894_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.P.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Bj(28662);this.playPauseButtonClientVE=_.Bj(36842);this.fullscreenButtonToggleOffClientVE=_.Bj(222256);this.fullscreenButtonToggleOnClientVE=_.Bj(222257);var V=_.Ni(),D=_.u8();V&&D&&(_.c("combine_ve_grafts")?(_.oj(_.lS(),this.muteButtonClientVE,D),_.oj(_.lS(),this.playPauseButtonClientVE,D)):_.$8(V,D,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19894_playerEvents),this.player=null)};
_.P.updateCaptionIconType=function(){var V=-1,D=void 0,f=_.Zl("CLOSED_CAPTIONS_DISABLED");this.player&&_.E3(this.player)&&(_.X6v(this.player)?(D=!0,f=_.Zl("CLOSED_CAPTIONS_ON"),V=1):(D=!1,f=_.Zl("CLOSED_CAPTIONS_OFF"),V=0));this.captionIconType=V;this.ariaPressedState=D;this.ariaLabel=f};
_.P.getPlayerAndInitializeListeners=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return D=_.hI(),D?_.b(f,D.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ty(V,V.onPageChanged)),f.jumpTo(0));V.player=f.yieldResult;V.initializePlayerListeners();_.yz(f)})};
_.P.onPageChanged=function(V){var D=this;return _.w(function(f){if(f.nextAddress==1)return V.detail.newPageType!=="ytd-shorts"?f.return():_.b(f,_.Uo().getPlayerPromise(),2);D.player=f.yieldResult;D.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ty(D,D.onPageChanged));_.yz(f)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19894_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.P.onPlayerStateChange=function(V){this.playerState=V};
_.P.onPlayerVolumeChange=function(V){this.isMuted=V.muted};
_.P.onPlayPauseButtonClick=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.Uo().getPlayerPromise(),2);D=n.yieldResult;(f=_.Ni())&&V.playPauseButtonClientVE&&_.p6(f,V.playPauseButtonClientVE);D.getPlayerState()!==1?D.playVideo():D.pauseVideo();_.yz(n)})};
_.P.computePlayPauseIcon=function(V){return V===2||V===-1||V===5?_.c("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.c("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.c("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.P.computeFullscreenLabel=function(V){return V?_.Zl("FULLSCREEN_EXIT_LABEL"):_.Zl("FULLSCREEN_ENTER_LABEL")};
_.P.computePlayPauseLabel=function(V){return V===1||V===3?_.Zl("PLAYER_LABEL_PAUSE"):_.Zl("PLAYER_LABEL_PLAY")};
_.P.onMuteButtonClick=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.Uo().getPlayerPromise(),2);D=n.yieldResult;(f=_.Ni())&&V.muteButtonClientVE&&_.p6(f,V.muteButtonClientVE);D.isMuted()?D.unMute(!0):D.mute(!0);_.yz(n)})};
_.P.computeMuteIcon=function(V){return V?"miniplayer:volume-off":"miniplayer:volume-up"};
_.P.computeMuteLabel=function(V){return V?_.Zl("PLAYER_LABEL_UNMUTE"):_.Zl("PLAYER_LABEL_MUTE")};
_.P.onFullscreenButtonClick=function(){var V=_.Ni();V&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.p6(V,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.p6(V,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.oew()};
_.IG.Object.defineProperties(bm.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var V=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(){V.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?_.c("web_shorts_modern_controls")?"player_full_exit_alt":_.c("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.c("web_shorts_modern_controls")?"player_full_enter_alt":_.c("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],bm.prototype,"componentBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],bm.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],bm.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"player",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"playerState",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"isMuted",void 0);
_.S([_.q({computed:"computePlayPauseIcon(playerState)"}),_.p("design:type",String)],bm.prototype,"playPauseIcon",void 0);_.S([_.q({computed:"computeMuteIcon(isMuted)"}),_.p("design:type",String)],bm.prototype,"muteIcon",void 0);_.S([_.q({selector:_.KL}),_.p("design:type",Boolean)],bm.prototype,"isFullscreen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bm.prototype,"shortsModernControlsEnabled",void 0);
_.S([_.q(),_.p("design:type",Object)],bm.prototype,"volumeControlsOrientationState",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"isOverlay",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"captionIconType",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"ariaLabel",void 0);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"ariaPressedState",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],bm.prototype,"overlayDensity",void 0);
_.S([_.R("playerState"),_.p("design:type",Object),_.p("design:paramtypes",[])],bm.prototype,"playPauseButtonData",null);_.S([_.R("isFullscreen"),_.p("design:type",Object),_.p("design:paramtypes",[])],bm.prototype,"fullscreenButtonData",null);_.S([_.q(),_.p("design:type",Object)],bm.prototype,"onClosedCaptionsButtonClick",void 0);_.S([_.R("isFullscreen"),_.p("design:type",String),_.p("design:paramtypes",[])],bm.prototype,"fullscreenIcon",null);
_.Y(bm,"ytd-shorts-player-controls",function(){if(HBc===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);HBc=V}V=HBc;return V},{mode:1});var wsZ;_.fT(_.fLl,"yt-interstitial-view-model",{props:{data:_.WX}});var QfR=_.MA(function(V){var D=V.data;return _.K("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.K("h1",{class:"reelWatchBreakViewModelHostTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K("h2",{class:"reelWatchBreakViewModelHostBody"},_.K(_.Ow,{text:function(){return D().body},
isOverlay:!0})),_.K(_.BW,{data:function(){return D().buttons}},{buttonViewModel:function(f,n){return _.K("div",{class:function(){return n()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.K(_.HO,{data:f.data}))}}))},"ej");
QfR.idomCompat=!0;_.fT(QfR,"reel-watch-break-view-model",{props:{data:_.WX}});var KV=function(){return _.E.apply(this,arguments)||this};
_.v(KV,_.E);KV.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}}};
_.IG.Object.defineProperties(KV.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.g((V=this.data)==null?void 0:V.renderer,xDB)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.g((V=this.data)==null?void 0:V.renderer,MwV)}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],KV.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],KV.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KV.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KV.prototype,"isSurvey",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KV.prototype,"isInterstitialViewModel",null);_.S([_.a({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],KV);
_.Y(KV,"ytd-reel-non-video-content-renderer",function(){if(wsZ!==void 0)return wsZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return wsZ=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var T$J;_.fT(_.wSW,"desktop-shorts-player-controls",{});var yy=function(){var V=_.E.apply(this,arguments)||this;V.isPlayerPaused=!1;V.isPlayerStarted=!1;V.showPlayerControls=!1;V.showScrubber=!1;V.autoHideJobId=0;V.modern=_.c("web_button_rework");V.overlayType=_.PI("web_shorts_expanded_overlay_type");V.panelData=void 0;V.isWatchWhileMode=!1;V.hasError=!1;V.panelShowDelayMs=1;V.scrubberComponent={};V.isFullscreen=!1;V.shouldHideOverlay=!1;V.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");V.enablePersistentAnchoredPanel=_.c("desktop_shorts_v2_persistent_anchored_panel");
V.hideWatchWhilePanel=_.c("web_shorts_hide_watch_while_panel");V.useAspectRatio=_.c("web_use_aspect_ratio");V.isPersistentPanelActive=!1;V.anchoredPanelActive=!1;V.isShortsPipActive=!1;V.smallScreenSqueezeback=!1;V.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");V.overlayDensity=0;V.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};V.onWindowResized=function(){_.Yu(V,
"calculateOverlayDensity",function(){V.calculateOverlayDensity()},100)};
return V};
_.v(yy,_.E);_.P=yy.prototype;_.P.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.P.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.P.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var V=_.DY().resolve(_.lM);this.isWatchWhileMode&&(_.c("web_enable_shorts_new_carousel")?_.dm.addJob(function(){V.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):V.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.P.handleShowReelsCommentsOverlayCommand=function(V){V=_.g(V,ViJ);this.isActive&&(V==null?0:V.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))};
_.P.updateEngagementPanelVisibility=function(V,D){V&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:D?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:V}})};
_.P.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.P.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.DY().resolve(_.Z$).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.P.handleWatchWhilePanelScrimClick=function(){var V=_.DY().resolve(_.lM);this.activeWatchWhilePanel&&(V.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.P.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.P.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:_.c("web_enable_shorts_new_carousel")?0:void 0}}};
_.P.handlePlayerClick=function(V){var D=this,f,n;if((n=(f=window).matchMedia)!=null&&n.call(f,"(any-pointer: coarse)").matches||!V)this.showPlayerControls=!0,_.dm.cancelJob(this.autoHideJobId),this.autoHideJobId=_.gq(_.dm,function(){D.showPlayerControls=!1},4E3)};
_.P.isFirstReel=function(){return this.index===0};
_.P.handleMouseenter=function(){_.dm.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.P.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.P.handleScrubberEnter=function(){this.showScrubber=!0};
_.P.handleScrubberLeave=function(){this.showScrubber=!1};
_.P.maybeLogNonDefaultAspectRatio=function(){var V;(V=this.data)!=null&&V.thumbnail&&this.isActive&&.5625!==uUo(this.data.thumbnail)&&_.Nnc("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.P.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var V=document.querySelector("#shorts-container");if(V){V=V.offsetWidth/2-this.playerContainer.offsetWidth/2;V=V>=368?1:V>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&V===1&&(V=0);this.isPersistentPanelActive&&(V=0);window.innerWidth<=599&&(V=2);this.overlayDensity=V;var D;(D=this.onOverlayDensityChanged)==null||D.call(this,this.index,this.overlayDensity)}}};
_.P.onOverlayDensityChange=function(){var V;(V=this.onOverlayDensityChanged)==null||V.call(this,this.index,this.overlayDensity);(V=_.Pt(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&V.set("overlayDensity",this.overlayDensity);if(V=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))V.overlayDensity=this.overlayDensity};
_.P.isVideoContent=function(V){_.DY().resolve(_.Z$);return!!_.g(V,_.gU)};
_.P.isNonVideoContent=function(V){_.DY().resolve(_.Z$);return!!_.g(V,_.mJ)};
_.P.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.IG.Object.defineProperties(yy.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var V,D;return _.c("web_enable_format_first")||((V=this.data)==null?void 0:V.adsOverlay)&&_.c("web_enable_format_first_ads_only")||((D=this.data)==null?void 0:D.reelPlayerOverlayRenderer)&&_.c("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.c("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var V;return!this.isActive||!this.isPlayerStarted||(V=this.data)!=null&&V.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.data)==null?0:V.command)&&this.isVideoContent(this.data.command)){var D,f;if(((D=this.data)==null?0:D.adsOverlay)&&Object.keys((f=this.data)==null?void 0:f.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var n,t;if(((n=this.data)==null?0:n.reelPlayerOverlayRenderer)&&Object.keys((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
yy.prototype.onOverlayDensityChange=yy.prototype.onOverlayDensityChange;yy.prototype.calculateOverlayDensity=yy.prototype.calculateOverlayDensity;yy.prototype.maybeLogNonDefaultAspectRatio=yy.prototype.maybeLogNonDefaultAspectRatio;yy.prototype.onEngagementPanelsChanged=yy.prototype.onEngagementPanelsChanged;yy.prototype.onScrubberDataChange=yy.prototype.onScrubberDataChange;yy.prototype.updateShouldHideOverlay=yy.prototype.updateShouldHideOverlay;
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],yy.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],yy.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],yy.prototype,"index",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],yy.prototype,"isActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],yy.prototype,"isHiddenInDom",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"isPlayerPaused",void 0);_.S([_.q({selector:mDV}),_.p("design:type",Object)],yy.prototype,"isPlayerStarted",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"showPlayerControls",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"showScrubber",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"autoHideJobId",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"overlayType",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],yy.prototype,"ytdReduxBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],yy.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"watchWhileEngagementPanels",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"panelData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"isWatchWhileMode",void 0);_.S([_.q(),_.p("design:type",String)],yy.prototype,"activeWatchWhilePanel",void 0);
_.S([_.q(),_.p("design:type",Object)],yy.prototype,"hasError",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"panelShowDelayMs",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"scrubberComponent",void 0);_.S([_.q({selector:_.KL,reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"isFullscreen",void 0);_.S([_.q(),_.p("design:type",Object)],yy.prototype,"shouldHideOverlay",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"enableAnchoredPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"enablePersistentAnchoredPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"hideWatchWhilePanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"useAspectRatio",void 0);
_.S([_.q({selector:_.laX,reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"isPersistentPanelActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"anchoredPanelActive",void 0);_.S([_.q({selector:_.yw,reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"isShortsPipActive",void 0);_.S([_.q({selector:N6c,reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"smallScreenSqueezeback",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"enableFormatFirst",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"enableFlexibleOverlay",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],yy.prototype,"overlayDensity",void 0);_.S([_.q(),_.p("design:type",Function)],yy.prototype,"onOverlayDensityChanged",void 0);
_.S([_.q(),_.R("isActive","hasError","isPlayerStarted"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"shouldRenderPlayerElements",null);_.S([_.q(),_.R("isActive","isWatchWhileMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"watchWhileOrPersistentActive",null);_.S([_.KI("isActive","hasError","showingExpandedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"updateShouldHideOverlay",null);
_.S([_.q({reflectToAttribute:!0}),_.R("isActive","isPlayerStarted","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"shouldRenderScrubber",null);_.S([_.KI("shouldRenderScrubber"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"onScrubberDataChange",null);_.S([_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"overlayComponent",null);
_.S([_.KI("watchWhileEngagementPanels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"onEngagementPanelsChanged",null);_.S([_.Zv("#player-container"),_.p("design:type",HTMLElement)],yy.prototype,"playerContainer",void 0);_.S([_.Zv("#cinematic-container"),_.p("design:type",HTMLElement)],yy.prototype,"cinematicContainer",void 0);
_.S([_.KI("isPersistentPanelActive","data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"maybeLogNonDefaultAspectRatio",null);_.S([_.KI("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"calculateOverlayDensity",null);_.S([_.KI("overlayDensity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yy.prototype,"onOverlayDensityChange",null);
_.S([_.a({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],yy);
_.Y(yy,"ytd-reel-video-renderer",function(){if(T$J!==void 0)return T$J;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" 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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return T$J=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var Z0=function(){var V=_.E.apply(this,arguments)||this;V.isPreviousPageShorts=!1;V.index=0;V.delayedActiveIndex=0;V.playablePreviousIndex=null;V.isPlayerPaused=!1;V.isPlayerStarted=!1;V.intersectionObserverThreshold=.6;V.fitToVisibleBounds=!1;V.pageSubtype="shorts";V.enablePreviousContinuation=_.c("shorts_in_playlists_web");V.shortsPipEnabled=_.c("web_shorts_pip");V.isDark=document.documentElement.hasAttribute("dark");V.shortsViewTransitions=_.c("web_shorts_view_transitions");V.isFullscreen=!1;V.isShortsPipActive=
!1;V.buttonOverride={iconPosition:"icon-only",size:"XL"};V.anchoredPanelActive=!1;V.isActive=!1;V.smallScreenPersistentPanel=!1;V.isPersistentPanelActive=!1;V.smallScreenSqueezeBack=!1;V.enableScrollIntoViewCenter=_.c("web_scroll_into_view_center");V.formatFirst=_.c("web_enable_format_first")||_.c("web_enable_format_first_ads_only")||_.c("web_enable_format_first_organic_only");V.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");V.useAspectRatio=_.c("web_use_aspect_ratio");V.isShortsInitialized=
!1;V.hidePreviousButtonImmediately=!1;V.showPreviousButtonImmediately=!1;V.endOfNextContinuation=!1;V.currentPlayerIndex=0;V.nextReelVe=_.Bj(56921);V.prevReelVe=_.Bj(56922);V.loopToggleOffVe=_.Bj(198013);V.loopToggleOnVe=_.Bj(198014);V.ambientModeToggleVe=_.Bj(227860);V.reelPlayerPausedStateRendererVe=_.Bj(141313);V.storedPlaybackSpeed=null;V.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"};V.onOverlayDensityChanged=function(D,f){var n;(n=V.getActiveReelVideo(D))==null||n.setAttribute("overlay-density",String(f))};
return V};
_.v(Z0,_.E);_.P=Z0.prototype;
_.P.deflateInactivePreviousSlides=function(){var V=_.tU("web_shorts_deflate_inactive_slides_aggressive_distance");if(V>0&&this.shortsProcessedSequence&&this.activeIndex){V=this.activeIndex-V;for(var D=0;D<=V;D++){var f=void 0;((f=this.shortsProcessedSequence[D].reelPlayerOverlayRenderer)==null?0:f.metapanel)&&this.set("shortsProcessedSequence."+D+".reelPlayerOverlayRenderer",{});f=void 0;((f=this.shortsProcessedSequence[D].adsOverlay)==null?0:f.adSlotMetadata)&&this.set("shortsProcessedSequence."+D+
".adsOverlay",{})}}};
_.P.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.P.onResize=function(){var V=_.Ol(),D=V.dispatch,f=this.calculateIsSmallWidth();D.call(V,_.nA({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:f}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.P.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:_.c("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}}};
_.P.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var V=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,D=V,f=0;V<250&&(D=V+this.shortsInnerContainer.clientWidth,f=24);_.wI(this.hostElement,{"--ytd-shorts-header-width":D+"px","--ytd-shorts-top-spacing":f+"px"})}};
_.P.isFirstShorts=function(V){return V?this.index===-V.length:this.index===0};
_.P.isActiveReel=function(V,D,f){f&&(D=this.calculatePrevIndex(D,f));return V===D};
_.P.onFullscreenChange=function(){if(_.c("web_fullscreen_shorts")){var V;(V=this.getActiveReelVideo(this.activeIndex))==null||V.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.DY().resolve(_.qw).close(!0)}};
_.P.engagementPanelsChanged=function(){var V;this.watchWhileEngagementPanels=(V=this.data)==null?void 0:V.engagementPanels};
_.P.unregisterPanels=function(){var V=_.DY().resolve(_.lM);if(this.watchWhileEngagementPanels)for(var D=_.r(this.watchWhileEngagementPanels),f=D.next();!f.done;f=D.next()){var n=void 0,t=void 0;f=(n=f.value.engagementPanelSectionListRenderer)==null?void 0:(t=n.identifier)==null?void 0:t.tag;V&&f&&V.panelMap.delete(f)}};
_.P.isVideoContent=function(V){return this.isVideoContentCommand(V==null?void 0:V.command)};
_.P.getActiveReelVideo=function(V){return _.Pt(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+V+'"]')};
_.P.calculatePrevIndex=function(V,D){return D?V-((D==null?void 0:D.length)||0):-1};
_.P.onKeydown=function(V){var D=_.Os(V)||[];if(!_.Pkq(D))if(V.code==="ArrowUp")V.preventDefault(),this.handlePrevButtonClick();else if(V.code==="ArrowDown")V.preventDefault(),this.handleNextButtonClick();else if(V.code==="KeyM")this.toggleMuteUnmuteVideo();else if(V.code==="KeyK"||V.code==="Space")this.togglePlayPauseVideo();else if((V.code==="KeyA"||V.code==="ArrowLeft")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")){var f;(f=this.player)==null||f.seekBy(-5)}else if((V.code==="KeyD"||V.code===
"ArrowRight")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var n;(n=this.player)==null||n.seekBy(5)}};
_.P.onServiceRequestCompleted=function(V,D){V=D.data;V.continuationEndpoint&&V.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:V.entries,continuationEndpoint:V.continuationEndpoint}}):V.prevContinuationEndpoint&&V.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:V.prevEntries,prevContinuationEndpoint:V.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.P.handleEngagementPanelVisibilityChanged=function(V,D){var f=_.DY().resolve(_.lM);if(V&&f){var n,t=((n=V.identifier)==null?void 0:n.tag)||V.panelIdentifier||V.targetId;if(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==t){f.hidePanel(this.activePanel);var J;this.activePanel=((J=V.identifier)==null?void 0:J.tag)||V.panelIdentifier}else this.isPersistentPanelActive=!0,_.Ol().dispatch(ieo(!0)),this.anchoredPanelActive=!0,this.activePanel=t;else D==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===t&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Ol().dispatch(ieo(!1)))}};
_.P.handlePanelScrimClick=function(){var V=_.DY().resolve(_.lM);this.activePanel&&(V.hidePanel(this.activePanel),_.Ol().dispatch(ieo(!1)))};
_.P.getShortsLoopSetting=function(){var V,D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return _.c("kevlar_shorts_auto_advance")?_.b(J,_.F7.getInstance(),2):J.return(!0);case 2:return(V=J.yieldResult)?_.b(J,V.get("sfvles"),3):J.return(!0);case 3:return f=(D=J.yieldResult)!=null?D:!1,_.b(J,V.get("sfvle"),4);case 4:return t=(n=J.yieldResult)!=null?n:!0,f?J.return(t):J.return(!0)}})};
_.P.handleSignalActionToggleLoopShortsOff=function(){var V=this,D,f,n;return _.w(function(t){switch(t.nextAddress){case 1:if(!V.player)return t.return();V.player.setLoopVideo(!1);D=_.lS();_.rW(D,V.loopToggleOffVe);return _.b(t,_.F7.getInstance(),2);case 2:return(f=t.yieldResult)?_.b(t,f.set("sfvle",!1),3):t.return();case 3:return _.b(t,f.set("sfvles",!0),4);case 4:n=_.Gm(),_.eJ(0,203,!1),_.eJ(0,204,!0),n.save(),_.yz(t)}})};
_.P.handleSignalActionToggleLoopShortsOn=function(){var V=this,D,f,n;return _.w(function(t){switch(t.nextAddress){case 1:if(!V.player)return t.return();V.player.setLoopVideo(!0);D=_.lS();_.rW(D,V.loopToggleOnVe);return _.b(t,_.F7.getInstance(),2);case 2:return(f=t.yieldResult)?_.b(t,f.set("sfvle",!0),3):t.return();case 3:return _.b(t,f.set("sfvles",!0),4);case 4:n=_.Gm(),_.eJ(0,203,!0),_.eJ(0,204,!0),n.save(),_.yz(t)}})};
_.P.handleSignalActionToggleCinematicShortsOn=function(){dDJ(!0);var V;(V=this.JSC$19918_cinematicController)==null||_.v63(V,!0);_.rW(_.lS(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.P.handleSignalActionToggleCinematicShortsOff=function(){dDJ(!1);var V;(V=this.JSC$19918_cinematicController)==null||_.v63(V,!1);_.rW(_.lS(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.P.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.P.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.P.unhideCurrentOverlay=function(){if(this.overlayContainer){var V=this.overlayContainer.querySelector("#experiment-overlay");V&&_.dm.addLowPriorityJob(function(){V.style.display="unset"},100)}};
_.P.getCurrentShort=function(){if(this.currentEndpoint){var V=this.currentEndpoint;if(this.isNonVideoContentCommand(V)){var D=_.g(V,_.mJ);return{reelNonVideoContentRenderer:_.g(D==null?void 0:D.renderer,_.sar),command:V}}if(this.data){var f;D=(f=_.g(this.currentEndpoint,_.gU))==null?void 0:f.thumbnail;var n;f=(n=this.data.overlay)==null?void 0:n.reelPlayerOverlayRenderer;_.DY().resolve(_.Z$);V=this.data;var t,J;n=(t=V.overlay)==null?void 0:(J=t.shortsAdsRenderer)==null?void 0:J.adSlots;if(n!==void 0)n.length===
0?(_.hY("Shorts ads returned no ad slots."),V=void 0):(n.length>1&&_.hY("Shorts ads has more than one ad slots."),V=_.g(n[0],_.L$p));else{var H,Q;V=_.g((H=V.overlay)==null?void 0:(Q=H.shortsAdsRenderer)==null?void 0:Q.overlay,_.L$p)}H=V;V=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.g(this.currentEndpoint,_.gU),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:f,thumbnail:D,command:V,adsOverlay:H}}}};
_.P.created=function(){var V=this;this.scrollToVideoThrottle=new _.I7(function(D){var f;(f=V.getActiveReelVideo(D))==null||f.scrollIntoView({behavior:"smooth",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.I7(function(D){var f;(f=V.getActiveReelVideo(D))==null||f.scrollIntoView({behavior:"auto",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.P.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.P.attached=function(){var V=this;_.DY().resolve(_.Z$).registerRootElement(this);this.pageScrollElement=_.Pt(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Ty(this,this.processResetAction));_.c("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.c("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var D=
V.getActiveReelVideo(V.activeIndex);V.maybeCreateIntersectionObserver();D==null||D.scrollIntoView({behavior:"instant",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"});V.shortsContainer.style.overflowY="scroll"}))};
_.P.calculateSqueezebackPanelSize=function(){var V=this,D=window.innerWidth-456-(window.innerHeight-106)*.5625;_.dm.addLowPriorityJob(function(){D<360?_.Ol().dispatch(SJB(!0)):(V.hostElement.style.setProperty("--anchored-panel-width",Math.min(D,480)+"px"),_.Ol().dispatch(SJB(!1)))})};
_.P.detached=function(){var V=_.DY().resolve(_.Z$);V.rootElement=void 0;var D;(D=V.unsubscribeFromStore)==null||D.call(V);V.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Ty(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.P.onResizeFinished=function(V,D){var f=this,n=new ResizeObserver(function(){f.shortsContainer.style.overflowY="hidden";_.dm.addLowPriorityJob(function(){D()},100)});
n.observe(V);return n};
_.P.resetDocumentScrollTop=function(){var V,D;if((V=document)==null?0:(D=V.scrollingElement)==null?0:D.scrollTop)document.scrollingElement.scrollTop=0};
_.P.loadPage_=function(V){var D=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),V){var f;!_.c("web_enable_delay_shorts_sequence_call")&&((f=_.g(this.currentEndpoint,_.gU))==null?0:f.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=V;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){D.isPlayerStarted&&(D.handleOnPlaybackCommand(),D.afterPlayerStarted=function(){})};
this.registerPanel(V)}};
_.P.afterPlayerStarted=function(){};
_.P.handleOnPlaybackCommand=function(){if(_.c("web_shorts_comment_stickers")&&this.isPlayerStarted){var V,D=(V=_.g(this.currentEndpoint,_.gU))==null?void 0:V.onPlaybackCommand;D&&this.ytComponentBehavior.resolveCommand(D)}};
_.P.maybeCreateIntersectionObserver=function(){var V=this,D=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==D){this.intersectionObserverThreshold=D;var f={rootMargin:"0px",threshold:D},n;(n=this.intersectionObserver)==null||n.disconnect();this.intersectionObserver=new IntersectionObserver(function(t){t=_.r(t);for(var J=t.next();!J.done;J=t.next())if(J=J.value,J.intersectionRatio>D){J=Number(J.target.id);if(isNaN(J))break;if(J===V.index)break;
_.oGd();V.loadVideo(J);_.C6("r_vtc")}},f);
this.observeShorts()}};
_.P.observeShorts=function(){var V=[].concat(_.sz(_.Pt(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=void 0;(f=this.intersectionObserver)==null||f.observe(D)}};
_.P.initCsi=function(){_.kz("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var V={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"}},D,f;if((D=this.playerData)==null?0:(f=D.cacheMetadata)==null?0:f.isCacheHit)V.isCacheHit=!0;var n;if(D=(n=_.g(this.currentEndpoint,_.gU))==null?void 0:
n.prefetchTaskId)V.prefetchInfo={taskId:D};_.N1(V)};
_.P.isAd=function(){var V,D;return!!((V=_.g(this.currentEndpoint,_.gU))==null?0:(D=V.adClientParams)==null?0:D.isAd)};
_.P.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.P.getPlayerContainer=function(){var V;return(V=_.Pt(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:V.playerContainer};
_.P.onPlayerStateChange=function(V){var D=this;this.isPlayerPaused=V===2;V!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?V===1&&this.index===0&&(this.isPlayerStarted||_.Ol().dispatch(oR(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Ol().dispatch(oR(!0)));this.player&&!this.player.getLoopVideo()&&_.dm.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(f){var n;(n=D.player)==null||n.setLoopVideo(f)})});
this.isPlayerPaused&&_.c("web_shorts_paused_state_logging")&&_.SJ(_.Ni(),[this.reelPlayerPausedStateRendererVe])};
_.P.isInBackground=function(){var V=window.document.visibilityState;return!(!V||V==="visible")};
_.P.isShortPlayable=function(){if(_.c("kevlar_playable_short_killswitch"))return!0;var V;return(V=this.playerData)!=null&&V.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.P.setNormalPlaybackSpeed=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.getPlayer().getPlayerPromise(),2);D=n.yieldResult;f=D.getPlaybackRate();f!==1&&(V.storedPlaybackSpeed=f,D.setPlaybackRate(1));_.yz(n)})};
_.P.restorePlaybackSpeed=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1)return V.storedPlaybackSpeed===null?f.jumpTo(0):_.b(f,V.getPlayer().getPlayerPromise(),3);D=f.yieldResult;D.setPlaybackRate(V.storedPlaybackSpeed);V.storedPlaybackSpeed=null;_.yz(f)})};
_.P.playerDataChanged=function(){var V=this,D,f,n,t,J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1){D=V.getPlayer();(f=V.intersectionObserver)==null||f.disconnect();if(V.playerData){if(((n=V.playerData.videoDetails)==null?void 0:n.videoId)!==((t=D.getPlayer())==null?void 0:t.getVideoData().video_id)){J={};if(H=_.g(V.currentEndpoint,_.gU))J.watch_endpoint=H,H.endTimeSeconds&&(J.end=H.endTimeSeconds);D.loadVideoWithPlayerResponse(V.playerData,J)}}else return Z.return();return V.player?Z.jumpTo(2):
_.b(Z,D.getPlayerPromise(),3)}Z.nextAddress!=2&&(V.player=Z.yieldResult,V.JSC$19918_playerStateChangeListener=V.onPlayerStateChange.bind(V),V.player.addEventListener("onStateChange",V.JSC$19918_playerStateChangeListener),_.c("kevlar_client_enable_shorts_player_bootstrap")&&_.LL(),V.scrollToVideoThrottle.fire(V.index),V.movePlayerToVideo(V.index),_.dm.addLowPriorityJob(function(){V.getShortsLoopSetting().then(function(l){var G;(G=V.player)==null||G.setLoopVideo(l)})}),_.KcF.resolve(V.player),V.player.syncVolume(),
V.getPlayer().focusOnPlayer());
_.dm.addLowPriorityJob(function(){V.observeShorts()},100);
Q=V.player.getPlayerState(V.player.getPresentingPlayerType());Q!==1||V.isPlayerStarted||_.Ol().dispatch(oR(!0));V.updateBackNavContainerWidth();T=_.g(V.currentEndpoint,_.gU);((y=T)==null?0:y.startTimeSeconds)&&V.player.seekTo(T.startTimeSeconds);if(V.JSC$19918_cinematicController||V.cinematicsInitializeJobId)return Z.return();V.cinematicsInitializeJobId=_.dm.addLowPriorityJob(function(){V.initCinematicController();V.cinematicsInitializeJobId=void 0});
_.yz(Z)})};
_.P.onShortUndoDismiss=function(){var V=this,D=$DR().pop();D!==void 0&&(_.pO(this,function(){V.showCardWithIndex(D)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.P.onShortsDismiss=function(V){if(V=V.detail.reelDismissalActionRenderer)(V=_.g(V.onDismissalCompletionRenderer,_.DDB))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:V}}}),this.scrollAndDismissCard()};
_.P.processReelNonVideoContentDismissalCommand=function(V){var D=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);V=_.g(V,UDf);this.activeDimissalTimeout=setTimeout(function(){D.scrollAndDismissCard()},Number(V==null?void 0:V.delayMs))};
_.P.scrollAndDismissCard=function(){var V=this,D=this.index;$DR().push(D);_.pO(this,function(){var f=V.getPlayableNextIndex();f!==null&&(f=V.getActiveReelVideo(f),V.hideCardWithIndex(D),f==null||f.scrollIntoView({behavior:"smooth",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"}))})};
_.P.hideCardWithIndex=function(V){if(V=this.getActiveReelVideo(V))V.hidden=!0};
_.P.showCardWithIndex=function(V){if(V=this.getActiveReelVideo(V))V.hidden=!1};
_.P.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.P.activeChanged=function(V){_.Ol().dispatch(_.nA({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:V}}));if(V)document.addEventListener("keydown",_.Ty(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var D;(D=this.player)==null||D.sendAbandonmentPing()}var f;(f=this.player)==null||f.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Ty(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.P.graftClientVisualElements=function(){if(this.data){var V=_.lS();_.Thr(V,_.Qv({response:this.reelWatchSequenceResponse}));_.oj(V,this.nextReelVe);_.oj(V,this.prevReelVe);_.c("kevlar_shorts_auto_advance")&&(_.oj(V,this.loopToggleOffVe),_.oj(V,this.loopToggleOnVe));_.oj(V,this.ambientModeToggleVe);_.SJ(_.Ni(),[this.nextReelVe,this.prevReelVe]);_.c("web_shorts_paused_state_logging")&&_.oj(V,this.reelPlayerPausedStateRendererVe)}};
_.P.graftNvcRenderer=function(){var V,D,f,n,t=this.index<0?(V=this.shortsProcessedPrevSequence)==null?void 0:(D=V[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:D.command:(f=this.shortsProcessedSequence)==null?void 0:(n=f[this.index])==null?void 0:n.command;if(t&&this.isNonVideoContentCommand(t)){V=_.g(t,_.mJ);var J,H;(V=(J=_.g(V==null?void 0:V.renderer,_.sar))==null?void 0:(H=J.loggingDirectives)==null?void 0:H.trackingParams)&&_.lS().graftServerVe(V)}};
_.P.setActiveIndex=function(){_.DY().resolve(_.Z$).setActiveIndex(this.index)};
_.P.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.P.lazyUpdateMiniplayerData=function(){var V=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.dm.addLowPriorityJob(function(){V.updateMiniplayerData();V.updateMiniplayerDataJobId=void 0}))};
_.P.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.dm.cancelJob(this.updateMiniplayerDataJobId)};
_.P.updateMiniplayerData=function(){var V,D,f,n=_.DY().resolve(_.qw),t={shortsData:this.getCurrentShort(),previousButtonDisabled:!((V=this.prevButtonData)==null||!V.isDisabled),nextButtonDisabled:!((D=this.nextButtonData)==null||!D.isDisabled),playabilityStatus:(f=this.playerData)==null?void 0:f.playabilityStatus};_.s3(n,t)};
_.P.resetPlayerLocation=function(){var V=this.getPlayer();this.initialPlayerContainer&&V.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.P.movePlayerToVideo=function(V,D){var f=this;D=D===void 0?!0:D;var n=this.getActiveReelVideo(V),t=this.getPlayer();if(n){this.overlayContainer?n.appendChild(this.overlayContainer):(this.overlayContainer=_.Pt(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,n.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||t.appendTo(this.overlayContainer.playerContainer,void 0,!0));var J;(J=this.player)==null||J.setSize(NaN,NaN);this.isActive||_.gq(_.dm,function(){f.isActive=
!0});
t.style.visibility="visible";_.c("reels_web_disable_rtr_tick")||_.c("reels_web_use_pbs_first_shorts")&&V===0||_.zm("r_tr");this.currentPlayerIndex=V;n.appendChild(this.errorScreenContainer);var H;(H=this.JSC$19918_cinematicController)==null||_.sZX(H)}else D?_.dm.addLowPriorityJob(function(){f.movePlayerToVideo(f.index,!1)}):Math.random()<=_.tU("web_shorts_error_logging_threshold")&&_.mw(new _.cI("Trying to movePlayerToVideo with undefined container.",{firstAttempt:D,
index:V}))};
_.P.enableFormatFirst=function(V){return _.c("web_enable_format_first")||V.adsOverlay&&_.c("web_enable_format_first_ads_only")||V.reelPlayerOverlayRenderer&&_.c("web_enable_format_first_organic_only")};
_.P.getAspectRatio=function(V){if(V!=null&&V.thumbnail&&this.enableFormatFirst(V))return"--ytd-shorts-player-ratio: "+uUo(V.thumbnail)};
_.P.getBackgroundImage=function(V){if(V!=null&&V.thumbnail)return(V=_.tI(V.thumbnail.thumbnails))?'background-image:url("'+V+'");':"background-color:black;"};
_.P.onPersistentPanelActiveChanged=function(){var V=this.getCurrentShort();if(V&&this.enableFormatFirst(V)&&(V==null?0:V.thumbnail)&&uUo(V.thumbnail)!==.5625){var D;(D=this.player)==null||D.setSize(NaN,NaN)}};
_.P.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.P.moveCinematicsToVideo=function(){var V=_.Pt(this.hostElement).querySelector("ytd-reel-video-renderer");(V==null?0:V.cinematicContainer)&&V.cinematicContainer!==this.shortsCinematicContainer.parentElement&&V.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.P.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.P.updatePrevButtonData=function(){var V=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(V){var D;this.prevButtonData=V=Object.assign({},V,{accessibility:{label:_.Zl("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:V.isDisabled||this.index===-(((D=this.shortsProcessedPrevSequence)==null?void 0:D.length)||0),tooltip:this.isUpArrowHidden?"":_.Zl("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=V=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.P.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.P.updateNextButtonData=function(){var V=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(V){var D;this.nextButtonData=V=Object.assign({},V,{accessibility:{label:_.Zl("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:V.isDisabled||this.index===((D=this.shortsProcessedSequence)==null?void 0:D.length),tooltip:_.Zl("NEXT_VIDEO_LABEL")||""})}};
_.P.getPlayablePreviousIndex=function(){for(var V,D=this.index-1;D>=-(((V=this.prevShortsSequence)==null?void 0:V.length)||0);D--)if(!$DR().includes(D))return D;return null};
_.P.getIndexInSequence=function(V,D){return V.findIndex(function(f){var n;return((n=_.g(f.command,_.gU))==null?void 0:n.videoId)===D})};
_.P.handlePrevButtonClick=function(V){var D=this,f,n;return _.w(function(t){f=D.getPlayablePreviousIndex();if(f===null)return t.return();D.gestureType=((n=V)==null?void 0:n.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";f===0&&(D.hidePreviousButtonImmediately=!0);if(D.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){D.transitionToVideoThrottle.fire(f)}),t.return();
D.scrollToVideoThrottle.fire(f);_.yz(t)})};
_.P.getPlayableNextIndex=function(){for(var V,D=this.index+1;D<(((V=this.shortsProcessedSequence)==null?void 0:V.length)||0);D++)if(!$DR().includes(D))return D;return null};
_.P.handleNextButtonClick=function(V,D){var f=this,n,t;return _.w(function(J){n=f.getPlayableNextIndex();if(n===null)return J.return();n===1&&(f.showPreviousButtonImmediately=!0);f.gestureType=((t=V)==null?void 0:t.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";D&&(f.gestureType=D);if(f.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){f.transitionToVideoThrottle.fire(n)}),J.return();
f.scrollToVideoThrottle.fire(n);_.yz(J)})};
_.P.handleReelNavigateCommand=function(V,D,f){(V=_.g(V,hWJ))&&D&&V.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(f)};
_.P.loadVideo=function(V,D){D=D===void 0?!1:D;if(V!==this.currentPlayerIndex){_.Ol().dispatch(oR(!1));if(this.isAd()&&!D){var f;(f=this.player)==null||f.notifyShortsAdSwipeEvent()}if((D=this.JSC$19918_cinematicController)!=null){var n;(n=D.currentCinematicEffect)==null||n.pause()}if((n=this.JSC$19918_cinematicController)!=null){var t;(t=n.currentCinematicEffect)==null||t.clear()}n=V>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(n));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var J,H,Q,T;t=V<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(H=J[this.shortsProcessedPrevSequence.length+V])==null?void 0:H.command:(Q=this.shortsProcessedSequence)==null?void 0:(T=Q[V])==null?void 0:T.command;this.index=V;this.gestureType||(this.gestureType=n?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
t&&this.isVideoContentCommand(t)&&(this.ytComponentBehavior.resolveCommand(t,{form:{createScreenConfig:{clickedVisualElement:n?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(t&&this.isNonVideoContentCommand(t)){this.currentEndpoint=t;this.data=void 0;J=_.lS();H=_.g(t,_.mJ);var y,Z;(H=(y=_.g(H==null?void 0:H.renderer,_.sar))==null?void 0:(Z=y.screenLoggingData)==null?void 0:Z.screenVeType)&&_.P5(J,H);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(y=this.getActiveReelVideo(V))&&y.appendChild(this.overlayContainer)}var l,G;if(((l=this.reelWatchSequenceResponse)==null?0:l.continuationEndpoint)&&((G=this.reelWatchSequenceResponse)==null?0:G.entries)&&V===this.reelWatchSequenceResponse.entries.length-1){var F,k;l={contentPlaybackContext:_.ss({},(k=_.g((F=this.currentEndpoint)==null?void 0:F.commandMetadata,_.he))==null?void 0:k.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:l})}var d,z,C;((d=this.reelWatchSequenceResponse)==null?0:d.prevContinuationEndpoint)&&V===-(((z=this.reelWatchSequenceResponse)==null?void 0:(C=z.prevEntries)==null?void 0:C.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.P.setMiniplayerPreview=function(V){V=(V===void 0?0:V)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var D,f,n=_.DY().resolve(_.qw),t={shortsData:void 0,shortsPreviewThumbnail:V?(D=this.shortsProcessedSequence)==null?void 0:(f=D[V])==null?void 0:f.thumbnail:void 0};_.s3(n,t)};
_.P.updateTitle=function(V){var D,f;V=(V==null?0:V.adSlots)?"":(f=V==null?void 0:(D=V.videoDetails)==null?void 0:D.title)!=null?f:"";_.PA(this.hostElement,"yt-update-title",V)};
_.P.registerPanel=function(V){var D=_.DY().resolve(_.lM);if(D){V=_.r(V.engagementPanels||[]);for(var f=V.next();!f.done;f=V.next()){f=f.value;var n=f.engagementPanelSectionListRenderer,t=void 0,J=void 0,H=void 0,Q=void 0,T=((t=n)==null?void 0:t.targetId)||((J=n)==null?void 0:J.panelIdentifier)||((H=n)==null?void 0:(Q=H.identifier)==null?void 0:Q.tag);t=n=void 0;(t=(n=D).registerPanelContent)==null||t.call(n,T,f)}}};
_.P.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;_.Ol().dispatch(oR(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Ol().dispatch(ieo(!1));var V=_.DY().resolve(_.Z$);V.dismissedIndices=[];V.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.DY().resolve(_.qw).close(!0)};
_.P.processAppendReelWatchSequenceContinuationEntriesAction=function(V){var D=this,f;(f=this.intersectionObserver)==null||f.disconnect();V=V.appendReelWatchSequenceContinuationEntriesAction;if(V==null?0:V.entries){var n;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.sz(((n=this.reelWatchSequenceResponse)==null?void 0:n.entries)||[]),_.sz(V.entries)),continuationEndpoint:V.continuationEndpoint})}else if(V==null?0:V.prevEntries){var t;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.sz(((t=this.reelWatchSequenceResponse)==null?void 0:t.prevEntries)||[]),_.sz(V.prevEntries)),prevContinuationEndpoint:V.prevContinuationEndpoint});_.dm.addLowPriorityJob(function(){D.movePlayerToVideo(D.index);var J;(J=D.getActiveReelVideo(D.index))==null||J.scrollIntoView({block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.dm.addLowPriorityJob(function(){D.observeShorts()},100)};
_.P.processWatchSequence=function(V){var D=this;return V.map(function(f){f=f.command;if(D.isVideoContentCommand(f)){var n=_.g(f,_.gU);return{reelPlayerOverlayRenderer:_.g(n==null?void 0:n.overlay,_.Boo),thumbnail:n.thumbnail,command:f}}return D.isNonVideoContentCommand(f)?(n=_.g(f,_.mJ),{reelNonVideoContentRenderer:_.g(n==null?void 0:n.renderer,_.sar),command:f}):{command:f}})};
_.P.calculateIntersectionObserverThreshold=function(){var V=_.Pt(this.hostElement).querySelector("ytd-reel-video-renderer"),D=1;(V==null?0:V.offsetHeight)&&(V==null?0:V.offsetWidth)&&(D=Math.min(V.offsetHeight,this.shortsContainer.offsetHeight)/V.offsetHeight*(Math.min(V.offsetWidth,this.shortsContainer.offsetWidth)/V.offsetWidth));return Math.round(D*.6*10)/10};
_.P.isVideoContentCommand=function(V){_.DY().resolve(_.Z$);return!!_.g(V,_.gU)};
_.P.isNonVideoContentCommand=function(V){_.DY().resolve(_.Z$);return!!_.g(V,_.mJ)};
_.P.initCinematicController=function(){var V=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19918_cinematicController=new _.PF(this.shortsCinematicContainer,this.player);var D,f=_.g((D=this.data)==null?void 0:D.background,_.Fg);_.kfc(this.JSC$19918_cinematicController,f);_.v63(this.JSC$19918_cinematicController,B6V(f));_.g6W(this.JSC$19918_cinematicController);_.dm.addLowPriorityJob(function(){V.moveCinematicsToVideo()})}};
_.P.handleMiniplayerNavigateShorts=function(V){V==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():V==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.P.handleSignalActionToggleShortsPictureInPicture=function(){if(_.DY().resolve(_.qw).pictureInPictureSupported()){var V=_.DY().resolve(_.Z$);if(_.c("web_shorts_pip")){var D=_.DY().resolve(_.qw);V.isShortsPipActive()?D.deactivate():D.isMiniplayerActive()||(_.b$().shortsPipActivation=!0,_.cLo(D))}}else(V=this.player)==null||V.togglePictureInPicture()};
_.IG.Object.defineProperties(Z0.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.reelWatchSequenceResponse)!=null&&V.prevEntries)return this.processWatchSequence([].concat(_.sz(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var V=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!V)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var D=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.sz(this.prevShortsSequence.slice(0,D)),[V],_.sz(this.prevShortsSequence.slice(D+
1)))}D=this.index+this.shortsProcessedPrevSequence.length;V.thumbnail=this.shortsProcessedPrevSequence[D].thumbnail;return[].concat(_.sz(this.shortsProcessedPrevSequence.slice(0,D)),[V],_.sz(this.shortsProcessedPrevSequence.slice(D+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.reelWatchSequenceResponse)!=null&&V.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var V=this.getCurrentShort();if(!V||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[V];if(V==null||!V.reelNonVideoContentRenderer){var D=this.getIndexInSequence(this.shortsSequence,_.g(this.currentEndpoint,_.gU).videoId);if(this.index===0&&D!==-1)return this.currentPlayerIndex=this.index=D,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.sz(this.shortsSequence.slice(0,this.index)),[V],_.sz(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){V.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var f,n,t,J;D=((n=_.g((f=this.shortsProcessedSequence[0])==null?void 0:f.command,_.gU))==null?void 0:n.videoId)===((J=_.g((t=this.shortsSequence[0])==null?void 0:t.command,_.gU))==null?void 0:J.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.sz(this.shortsProcessedSequence.slice(0,
this.index)),[V],_.sz(this.shortsSequence.slice(D)))}return[V].concat(_.sz(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var V=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;V&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(V)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 V,D;return this.index===((V=this.reelWatchSequenceResponse)==null?void 0:(D=V.entries)==null?void 0:D.length)}var f;return!((f=this.reelWatchSequenceResponse)==null?0:f.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var V;(V=this.delayedActiveIndexUpdateDebouncer)==null||V.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return this.isShortPlayable()||((D=_.g((V=this.data)==null?void 0:V.watchStatus,_.XyE))==null?void 0:(f=D.style)==null?void 0:f.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var V=this,D=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),f;if((this.data||D)&&(((f=this.data)==null?0:f.engagementPanels)||this.isAd()||D)){D=!1;this.activePanel="shorts-comments-panel";var n;f=_.r(((n=this.data)==null?void 0:n.engagementPanels)||[]);for(n=f.next();!n.done;n=f.next()){n=n.value.engagementPanelSectionListRenderer;var t=void 0,J=void 0,H=void 0,Q=void 0;if((((t=n)==null?void 0:(J=t.identifier)==
null?void 0:J.tag)||((H=n)==null?void 0:H.targetId)||((Q=n)==null?void 0:Q.panelIdentifier))===this.activePanel){D=!0;break}}if(this.isPersistentPanelActive){var T=_.DY().resolve(_.lM);_.gq(_.dm,function(){T.showPanel(V.activePanel,void 0,void 0,void 0,null)},100)}var y;
f=[].concat(_.sz(Object.values(((y=this.data)==null?void 0:y.engagementPanels)||{})));if(_.c("enable_preview_panel_for_shorts_search_suggested_action")){var Z,l,G,F,k;((F=_.g((Z=this.data)==null?void 0:(l=Z.overlay)==null?void 0:(G=l.reelPlayerOverlayRenderer)==null?void 0:G.metapanel,_.kzr))==null?void 0:(k=F.metadataItems)==null?void 0:k.find(function(d){var z,C;return((z=_.g(d,DK0))==null?void 0:(C=z.icon)==null?void 0:C.iconType)==="SEARCH"}))!==void 0&&f.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}y=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return y===void 0&&Z===void 0||(y==null?0:y.isDisabled)||(Z==null?void 0:Z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!D?(D=f==null?void 0:f.findIndex(function(d){var z,
C;return((z=d.engagementPanelSectionListRenderer)==null?void 0:(C=z.identifier)==null?void 0:C.tag)==="shorts-comments-panel"}),D===-1||D===void 0||f!=null&&f.splice(D,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Zl("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Zl("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:_.Zl("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Zl("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(_.sz(Object.values(f||
{})))):f}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.shortsProcessedSequence)==null?void 0:V[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f,n;if((D=this.playerData)==null?0:(f=D.playabilityStatus)==null?0:(n=f.errorScreen)==null?0:n.playerInterstitialRenderer)return _.dm.addLowPriorityJob(function(){V.movePlayerToVideo(V.index)}),this.playerData.playabilityStatus.errorScreen;
var t,J;return((t=this.data)==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((J=this.data)==null?0:J.watchStatus)&&_.g(this.data.watchStatus,_.zyF)?(_.dm.addLowPriorityJob(function(){V.movePlayerToVideo(V.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.IG.Object.defineProperties(Z0,{template:{configurable:!0,enumerable:!0,get:function(){if(n_0===void 0){var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);n_0=V}V=n_0;return V}}});
Z0.prototype.onNextButtonDataChange=Z0.prototype.onNextButtonDataChange;Z0.prototype.onPrevButtonDataChange=Z0.prototype.onPrevButtonDataChange;Z0.prototype.onPersistentPanelActiveChanged=Z0.prototype.onPersistentPanelActiveChanged;Z0.prototype.lazyUpdateMiniplayerData=Z0.prototype.lazyUpdateMiniplayerData;Z0.prototype.onShortsPipActiveChanged=Z0.prototype.onShortsPipActiveChanged;Z0.prototype.setActiveIndex=Z0.prototype.setActiveIndex;Z0.prototype.graftNvcRenderer=Z0.prototype.graftNvcRenderer;
Z0.prototype.graftClientVisualElements=Z0.prototype.graftClientVisualElements;Z0.prototype.onActiveChanged=Z0.prototype.onActiveChanged;Z0.prototype.onShortsDismiss=Z0.prototype.onShortsDismiss;Z0.prototype.onShortUndoDismiss=Z0.prototype.onShortUndoDismiss;Z0.prototype.playerDataChanged=Z0.prototype.playerDataChanged;Z0.prototype.afterPlayerStarted=Z0.prototype.afterPlayerStarted;Z0.prototype.unhideCurrentOverlay=Z0.prototype.unhideCurrentOverlay;Z0.prototype.onServiceRequestCompleted=Z0.prototype.onServiceRequestCompleted;
Z0.prototype.engagementPanelsChanged=Z0.prototype.engagementPanelsChanged;Z0.prototype.onFullscreenChange=Z0.prototype.onFullscreenChange;Z0.prototype.onResize=Z0.prototype.onResize;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Z0.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.sn.YtPageBehavior),_.p("design:type",Object)],Z0.prototype,"ytPageBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Z0.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.sp),_.p("design:type",Object)],Z0.prototype,"ironResizableBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Z0.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Z0.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"playerData",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"reelWatchSequenceResponse",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"cachedReelWatchSequenceResponse",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"cachedSequenceParams",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"cachedSequenceProvider",void 0);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"currentEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"nextButtonData",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"prevButtonData",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"isPreviousPageShorts",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"index",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"delayedActiveIndex",void 0);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"playablePreviousIndex",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"player",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"isPlayerPaused",void 0);_.S([_.q({selector:mDV}),_.p("design:type",Object)],Z0.prototype,"isPlayerStarted",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"intersectionObserver",void 0);_.S([_.q(),_.p("design:type",Number)],Z0.prototype,"cinematicsInitializeJobId",void 0);
_.S([_.q(),_.p("design:type",Number)],Z0.prototype,"updateMiniplayerDataJobId",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"fitToVisibleBounds",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"pageSubtype",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Z0.prototype,"enablePreviousContinuation",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"shortsPipEnabled",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"isDark",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"shortsViewTransitions",void 0);_.S([_.q({selector:_.KL,reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"isFullscreen",void 0);_.S([_.q({selector:_.yw,reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"isShortsPipActive",void 0);
_.S([_.Zv("#shorts-inner-container"),_.p("design:type",HTMLElement)],Z0.prototype,"shortsInnerContainer",void 0);_.S([_.Zv("#back-nav-button ytd-button-renderer"),_.p("design:type",_.Lt)],Z0.prototype,"backNavButton",void 0);_.S([_.Zv("#shorts-container"),_.p("design:type",HTMLElement)],Z0.prototype,"shortsContainer",void 0);_.S([_.Mn("error-screen"),_.p("design:type",HTMLElement)],Z0.prototype,"errorScreenContainer",void 0);
_.S([_.Mn("player"),_.p("design:type",Object)],Z0.prototype,"playerElement",void 0);_.S([_.Mn("shorts-cinematic-container"),_.p("design:type",HTMLElement)],Z0.prototype,"shortsCinematicContainer",void 0);_.S([_.Mn("initial-player-container"),_.p("design:type",HTMLElement)],Z0.prototype,"initialPlayerContainer",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"buttonOverride",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"anchoredPanelActive",void 0);
_.S([_.q(),_.p("design:type",String)],Z0.prototype,"activePanel",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"isActive",void 0);_.S([_.q({selector:N6c,reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"smallScreenPersistentPanel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"isPersistentPanelActive",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"smallScreenSqueezeBack",void 0);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"enableScrollIntoViewCenter",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"formatFirst",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"enableFlexibleOverlay",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Z0.prototype,"useAspectRatio",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"panelContainer",void 0);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"overlayContainer",void 0);_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"isShortsInitialized",void 0);_.S([_.R("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"prevShortsSequence",null);_.S([_.R("data","prevShortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"shortsProcessedPrevSequence",null);
_.S([_.R("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"shortsSequence",null);_.S([_.R("data","shortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"shortsProcessedSequence",null);
_.S([_.q({reflectToAttribute:!0}),_.R("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Z0.prototype,"isUpArrowHidden",null);_.S([_.q({reflectToAttribute:!0}),_.R("reelWatchSequenceResponse","index","endOfNextContinuation"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Z0.prototype,"isDownArrowHidden",null);
_.S([_.q(),_.R("index"),_.p("design:type",Number),_.p("design:paramtypes",[])],Z0.prototype,"activeIndex",null);_.S([_.R("isShortPlayable","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Z0.prototype,"shouldRenderOfflineContent",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onResize",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"anchoredEngagementPanels",null);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"watchWhileEngagementPanels",void 0);_.S([_.KI("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onFullscreenChange",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"engagementPanelsChanged",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],Z0.prototype,"onServiceRequestCompleted",null);_.S([_.R("data","shortsSequence","index"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"activeReel",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"unhideCurrentOverlay",null);
_.S([_.KI("isPlayerStarted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"afterPlayerStarted",null);_.S([_.R("playerData","reelWatchSequenceResponse","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z0.prototype,"errorScreen",null);_.S([_.R("errorScreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Z0.prototype,"hasError",null);
_.S([_.KI("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],Z0.prototype,"playerDataChanged",null);_.S([_.bU("yt-dismissible-item-undo-feedback"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onShortUndoDismiss",null);_.S([_.bU("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],Z0.prototype,"onShortsDismiss",null);
_.S([_.eY("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onActiveChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"graftClientVisualElements",null);_.S([_.KI("currentPlayerIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"graftNvcRenderer",null);
_.S([_.KI("index"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"setActiveIndex",null);_.S([_.KI("isShortsPipActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onShortsPipActiveChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"lazyUpdateMiniplayerData",null);
_.S([_.q(),_.p("design:type",Object)],Z0.prototype,"onOverlayDensityChanged",void 0);_.S([_.KI("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onPersistentPanelActiveChanged",null);_.S([_.KI("index","data","isUpArrowHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onPrevButtonDataChange",null);
_.S([_.KI("index","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z0.prototype,"onNextButtonDataChange",null);_.S([_.a({is:"ytd-shorts"})],Z0);_.f1.registerService(_.H7Y,Z0);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("JzFVk");
var db3=function(V){return _.K("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Bpw(V.data.ctaButton,{buttonViewModel:{}}),_.K(_.Ow,{text:V.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var uyo;var Np0;var RQ=function(){return _.E.apply(this,arguments)||this};
_.v(RQ,_.E);RQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
RQ.prototype.computeBlueBottomLink=function(V){return V};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],RQ.prototype,"data",void 0);_.S([_.q({computed:"computeIcon_(data.bottomIcon)"}),_.p("design:type",String)],RQ.prototype,"bottomIcon",void 0);
_.S([_.q({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.p("design:type",Boolean)],RQ.prototype,"enableBlueBottomLink",void 0);_.S([_.a({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],RQ);
_.Y(RQ,"ytd-web-answer-renderer",function(){if(Np0!==void 0)return Np0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Np0=V},{mode:_.J2("kevlar_poly_si_batch_j035")?1:2});var mbv;var C3=function(){var V=_.E.apply(this,arguments)||this;V.hasChipBar=!1;return V};
_.v(C3,_.E);C3.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}}};
C3.prototype.computeHasChipBar=function(V){return!(V==null||!V.chipBar)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],C3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.p("design:type",Object)],C3.prototype,"hasChipBar",void 0);_.S([_.a({is:"ytd-search-header-renderer",disableElementRegistration:!0})],C3);
_.Y(C3,"ytd-search-header-renderer",function(){if(mbv!==void 0)return mbv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return mbv=V},{mode:1});var zzZ;var qX=function(){return _.E.apply(this,arguments)||this};
_.v(qX,_.E);qX.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qX.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-page-continuation"})],qX);
_.Y(qX,"ytd-page-continuation",function(){if(zzZ!==void 0)return zzZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return zzZ=V},{mode:1});var Rzc;var C0X;var qxV;var XI=function(){return _.E.apply(this,arguments)||this};
_.v(XI,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],XI.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],XI);
_.Y(XI,"ytd-watch-card-one-vs-one-event",function(){if(qxV!==void 0)return qxV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return qxV=V},{mode:1});var EN=function(){return _.E.apply(this,arguments)||this};
_.v(EN,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],EN.prototype,"data",void 0);_.S([_.a({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],EN);
_.Y(EN,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(C0X!==void 0)return C0X;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return C0X=V},{mode:1});var Xh3;var A9=function(){return _.E.apply(this,arguments)||this};
_.v(A9,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],A9.prototype,"data",void 0);_.S([_.a({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],A9);
_.Y(A9,"ytd-banner-and-box-hero-image-renderer",function(){if(Xh3!==void 0)return Xh3;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Xh3=V},{mode:1});var EWB;var aQ=function(){var V=_.E.apply(this,arguments)||this;V.modern=_.c("web_modern_buttons");return V};
_.v(aQ,_.E);aQ.prototype.computeIcon=function(){var V,D,f=(V=this.data)==null?void 0:(D=V.icon)==null?void 0:D.iconType;if(f)return _.Qa(f)};
aQ.prototype.computeButtonShape=function(){var V;return{buttonText:_.LA((V=this.data)==null?void 0:V.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.IG.Object.defineProperties(aQ.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"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],aQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],aQ.prototype,"modern",void 0);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],aQ.prototype,"buttonColor",null);
_.S([_.a({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],aQ);
_.Y(aQ,"ytd-call-to-action-button-renderer",function(){if(EWB!==void 0)return EWB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return EWB=V},{mode:1});var A1R;var $T=function(){return _.E.apply(this,arguments)||this};
_.v($T,_.E);$T.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Pt(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.nT(this.data.leftThumbnail.thumbnails,216)+")")};
$T.prototype.onLeftThumbnailChanged=$T.prototype.onLeftThumbnailChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$T.prototype,"data",void 0);_.S([_.KI("data.leftThumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$T.prototype,"onLeftThumbnailChanged",null);_.S([_.a({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],$T);
_.Y($T,"ytd-collage-hero-image-renderer",function(){if(A1R!==void 0)return A1R;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return A1R=V},{mode:1});var aoW;var iJ=function(){return _.E.apply(this,arguments)||this};
_.v(iJ,_.E);iJ.prototype.computeStyle=function(V){return V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],iJ.prototype,"componentStyle",void 0);_.S([_.a({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],iJ);
_.Y(iJ,"ytd-single-hero-image-renderer",function(){if(aoW!==void 0)return aoW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return aoW=V},{mode:1});var YxR;var SM=function(){return _.E.apply(this,arguments)||this};
_.v(SM,_.E);_.P=SM.prototype;
_.P.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:_.c("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.P.computeSubtitle=function(V){if(this.data){var D;if(this.data.upcomingEventData){V=_.LA(V.subtitle);var f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(D=_.pA(_.da(V,f)))}else D=V.subtitle;return D}};
_.P.onHeroTap=function(V){V.preventDefault();var D=this.data&&this.data.navigationEndpoint;!D||!_.It(_.Os(V),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.It(_.Os(V),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.c("kevlar_watchcard_hero_video_renderer_killswitch")?_.PA(this.hostElement,"yt-navigate",{navigationEndpoint:D}):this.ytComponentBehavior.resolveCommand(D))};
_.P.computeHeroTabIndex=function(V){return V&&V.simpleText?-1:0};
_.P.computeHeroRole=function(V){return V&&V.simpleText?"":"link"};
_.P.computeIsReminderButtonPresent=function(V){return!(!V||!V.reminderButton)};
_.P.computeHideBottomItems=function(V){return!(this.computeIsReminderButtonPresent(V)||V.subtitle)};
_.P.dataChanged=function(){var V=this.get("data.buttons.buttonRenderer.serviceEndpoint"),D;((D=_.g(V==null?void 0:V.commandMetadata,_.g0))==null?0:D.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(V)};
SM.prototype.dataChanged=SM.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SM.prototype,"data",void 0);
_.S([_.q({computed:"computeSubtitle(data)"}),_.p("design:type",String)],SM.prototype,"subtitle",void 0);_.S([_.q({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],SM.prototype,"isReminderButtonPresent",void 0);_.S([_.q({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],SM.prototype,"hideBottomItems",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SM.prototype,"dataChanged",null);_.S([_.a({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],SM);
_.Y(SM,"ytd-watch-card-hero-video-renderer",function(){if(YxR!==void 0)return YxR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return YxR=V},{mode:1});var $bB;var WD=function(){return _.E.apply(this,arguments)||this};
_.v(WD,_.E);_.P=WD.prototype;_.P.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"}}}};
_.P.computeTitleBadges=function(V){return V?[V]:[]};
_.P.computeHeaderStyle=function(V){return V?V.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.P.computeAvatarAriaLabel=function(V){if(V){var D,f,n,t;return(t=(D=V.avatar)==null?void 0:(f=D.accessibility)==null?void 0:(n=f.accessibilityData)==null?void 0:n.label)!=null?t:_.LA(V==null?void 0:V.title)}};
_.P.computeAvatarHeight=function(V){return V==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.P.computeBadgeRowClass=function(V){return(V==null?0:V[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WD.prototype,"data",void 0);_.S([_.q({computed:"computeTitleBadges(data.titleBadge)"}),_.p("design:type",Array)],WD.prototype,"titleBadges",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.p("design:type",String)],WD.prototype,"headerStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.p("design:type",String)],WD.prototype,"badgeRowClass",void 0);_.S([_.a({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],WD);
_.Y(WD,"ytd-watch-card-rich-header-renderer",function(){if($bB!==void 0)return $bB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return $bB=V},{mode:1});var idw;var Sxo;var p3=function(){return _.E.apply(this,arguments)||this};
_.v(p3,_.E);p3.prototype.onMetadataTap=function(V){var D=this.data&&this.data.navigationEndpoint;D&&!_.It(_.Os(V),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:D})};
_.IG.Object.defineProperties(p3.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 V;if(this.data.upcomingEventData){var D=_.LA(this.data.subtitle),f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(V=_.pA(_.da(D,f)))}else V=this.data.subtitle;return V}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],p3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data.style"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],p3.prototype,"isCondensed",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],p3.prototype,"subtitle",null);
_.S([_.a({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],p3);
_.Y(p3,"ytd-watch-card-compact-video-renderer",function(){if(Sxo!==void 0)return Sxo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Sxo=V},{mode:1});var WxV;var L3=function(){return _.E.apply(this,arguments)||this};
_.v(L3,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],L3.prototype,"data",void 0);_.S([_.a({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],L3);
_.Y(L3,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(WxV!==void 0)return WxV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return WxV=V},{mode:1});var IQ=function(){return _.E.apply(this,arguments)||this};
_.v(IQ,_.E);IQ.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}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],IQ.prototype,"ytRendererStamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],IQ.prototype,"data",void 0);_.S([_.a({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],IQ);
_.Y(IQ,"ytd-vertical-watch-card-list-renderer",function(){if(idw!==void 0)return idw;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return idw=V},{mode:1});var phw;var ON=function(){var V=_.E.apply(this,arguments)||this;V.ariaExpanded="false";return V};
_.v(ON,_.E);_.P=ON.prototype;_.P.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.P.dataChanged=function(){var V;this.currentSeasonIndex=((V=this.data)==null?void 0:V.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.P.computeEpisodesInfo=function(V,D,f){if(V!==void 0&&D.length===V.length)return V[f]};
_.P.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.P.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.P.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.P.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.P.getUppercaseSimpleString=function(V){return this.ytRendererBehavior.getSimpleString(V).toUpperCase()};
_.P.updateCurrentSeasonIndexFromBinding=function(V){this.currentSeasonIndex=V.detail.value};
ON.prototype.onIronOverlayClosed=ON.prototype.onIronOverlayClosed;ON.prototype.currentSeasonIndexChanged=ON.prototype.currentSeasonIndexChanged;ON.prototype.dataChanged=ON.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ON.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",String)],ON.prototype,"label",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],ON.prototype,"currentSeasonIndex",void 0);_.S([_.q({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.p("design:type",Object)],ON.prototype,"episodesInfo",void 0);_.S([_.q({value:"false"}),_.p("design:type",Object)],ON.prototype,"ariaExpanded",void 0);_.S([_.Zv("#lists"),_.p("design:type",Object)],ON.prototype,"lists",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ON.prototype,"dataChanged",null);_.S([_.eY("currentSeasonIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ON.prototype,"currentSeasonIndexChanged",null);_.S([_.bU("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ON.prototype,"onIronOverlayClosed",null);
_.S([_.a({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],ON);
_.Y(ON,"ytd-watch-card-section-dropdown-renderer",function(){if(phw!==void 0)return phw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return phw=V},{mode:1});var Lxo;var xT=function(){var V=_.E.apply(this,arguments)||this;V.isSearch=!1;return V};
_.v(xT,_.E);xT.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}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xT.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],xT.prototype,"isSearch",void 0);_.S([_.a({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],xT);
_.Y(xT,"ytd-watch-card-section-sequence-renderer",function(){if(Lxo!==void 0)return Lxo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return Lxo=V},{mode:1});var Bpw=_.eK({buttonViewModel:_.HO});_.V$(db3);_.wk(db3,"ytd-button-banner-view-model",{propNames:["data"]});var MX=function(){var V=_.E.apply(this,arguments)||this;V.isSearch=!1;return V};
_.v(MX,_.E);
MX.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"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MX.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],MX.prototype,"rounded",void 0);_.S([_.q(),_.p("design:type",Object)],MX.prototype,"isSearch",void 0);
_.S([_.a({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],MX);
_.Y(MX,"ytd-universal-watch-card-renderer",function(){if(Rzc!==void 0)return Rzc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Rzc=V},{mode:1});var IoJ;_.fT(_.MA(function(V){var D=V.data;var f;V=!((f=_.DY().resolve(_.Vx(_.pm)))==null||!f());f={};return _.K("overview-message-view-model",{class:_.KT("ytwOverviewMessageViewModelHost",(f.ytwOverviewMessageViewModelDarkBackground=V,f.ytwOverviewMessageViewModelLightBackground=!V,f))},_.K(_.e,{cond:function(){return D().primaryImage},
then:function(n){return _.K(_.xt,{data:n,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.K(_.e,{cond:function(){return D().primaryText},
then:function(){return _.K("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.K(_.Ow,{text:function(){return D().primaryText}}))}}),_.K(_.e,{cond:function(){return D().secondaryText},
then:function(){return _.K("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.K(_.Ow,{text:function(){return D().secondaryText}}))}}))},"$i"),"overview-message-view-model",{props:{data:_.WX}});_.wk(_.snl,"ytd-overview-answer-view-model",{propNames:["data"]});var h9=function(){return _.E.apply(this,arguments)||this};
_.v(h9,_.E);h9.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"}}}};
h9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],h9.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],h9.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],h9.prototype,"isSearch",void 0);
_.S([_.a({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],h9);
_.Y(h9,"ytd-secondary-search-container-renderer",function(){if(IoJ!==void 0)return IoJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return IoJ=V},{mode:1});var OdR;var UN=function(){var V=_.E.apply(this,arguments)||this;V.renderSecondarySearchContainer=!1;V.isSearch=!1;return V};
_.v(UN,_.E);_.P=UN.prototype;_.P.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.P.created=function(){var V=this;this.boundStampSecondarySearchContainerIfFits=function(){V.stampSecondarySearchContainerIfFits()};
_.ql("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.P.computeIsSearchFrictionPage=function(V){var D,f,n,t,J;V=V==null?void 0:(D=V.primaryContents)==null?void 0:(f=D.sectionListRenderer)==null?void 0:(n=f.contents)==null?void 0:(t=n[0])==null?void 0:(J=t.itemSectionRenderer)==null?void 0:J.contents;if(!V)return!1;D=_.r(V);for(f=D.next();!f.done;f=D.next())if(n=void 0,(n=f.value)==null?0:n.searchFrictionViewModel)return!0;return!1};
_.P.computeShowSecondaryColumn=function(V,D){return!!(D&&D.secondaryContents&&V)};
_.P.activeChanged=function(){var V=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Ty(this,this.debounceStampSecondarySearchContainerIfFits)),_.aU(function(){V.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Ty(this,this.debounceStampSecondarySearchContainerIfFits))};
_.P.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.P.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.P.debounceStampSecondarySearchContainerIfFits=function(){_.Yu(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.P.onRetrieveLocation=function(V,D){D.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);V.stopPropagation()};
_.P.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
UN.prototype.dataChanged=UN.prototype.dataChanged;UN.prototype.onRetrieveLocation=UN.prototype.onRetrieveLocation;UN.prototype.persistentGuideChanged=UN.prototype.persistentGuideChanged;UN.prototype.activeChanged=UN.prototype.activeChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],UN.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],UN.prototype,"ironResizableBehavior",void 0);_.S([_.q(),_.p("design:type",Boolean)],UN.prototype,"active",void 0);_.S([_.q(),_.p("design:type",Object)],UN.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],UN.prototype,"useBiggerThumbs",void 0);_.S([_.q({reflectToAttribute:!0,value:function(){return _.PI("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],UN.prototype,"biggerThumbsStyle",void 0);_.S([_.q(),_.p("design:type",Object)],UN.prototype,"renderSecondarySearchContainer",void 0);_.S([_.q({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.p("design:type",Boolean)],UN.prototype,"showSecondaryColumn",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.p("design:type",Boolean)],UN.prototype,"isSearchFrictionPage",void 0);
_.S([_.q(),_.p("design:type",Object)],UN.prototype,"isSearch",void 0);_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UN.prototype,"activeChanged",null);_.S([_.KI("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UN.prototype,"persistentGuideChanged",null);
_.S([_.bU("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],UN.prototype,"onRetrieveLocation",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UN.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],UN);
_.Y(UN,"ytd-two-column-search-results-renderer",function(){if(OdR!==void 0)return OdR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return OdR=V},{mode:1});var Vy=function(){var V=_.E.apply(this,arguments)||this;V.hasSearchHeader=!1;V.hasSecondaryContent=!1;V.hasBiggerThumbs=_.c("enable_desktop_search_bigger_thumbs");V.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return V};
_.v(Vy,_.E);_.P=Vy.prototype;_.P.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:_.C0(["aa","eocs"])}}};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.loadPage_=function(V){this.initCsi();V&&(this.data=V,_.ql("REFINEMENTS_TUPLE",["FromSearchResponse",V.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Lh(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.P.initCsi=function(){_.kz("results",["ol","cpt"])};
_.P.updateTitle=function(){var V=_.Al(window.location.href,"q");V||(V=_.Al(window.location.href,"search_query"));_.PA(this.hostElement,"yt-update-title",V||"")};
_.P.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.P.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.c("web_srp_data_changed_terminate_imp_killswitch")||_.o4(this.hostElement,"yt-terminate-video-preview-action")};
_.P.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.P.computeHasSearchHeader=function(V){var D;V=V==null?void 0:(D=V.header)==null?void 0:D.searchHeaderRenderer;return!!V&&(!!V.searchFilterButton||!!V.chipBar)};
_.P.computeHasSecondaryContent=function(V){var D,f;return!!(V==null?0:(D=V.contents)==null?0:(f=D.twoColumnSearchResultsRenderer)==null?0:f.secondaryContents)};
_.IG.Object.defineProperties(Vy,{template:{configurable:!0,enumerable:!0,get:function(){if(uyo===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);uyo=V}V=uyo;return V}}});
Vy.prototype.onReloadContinuationFinish=Vy.prototype.onReloadContinuationFinish;Vy.prototype.dataChanged=Vy.prototype.dataChanged;_.S([_.u(_.sn.YtPageBehavior),_.p("design:type",Object)],Vy.prototype,"ytPageBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Vy.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],Vy.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vy.prototype,"data",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Vy.prototype,"monitorScroll",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vy.prototype,"hasSearchHeader",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vy.prototype,"hasSecondaryContent",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vy.prototype,"hasBiggerThumbs",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vy.prototype,"dataChanged",null);
_.S([_.bU("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vy.prototype,"onReloadContinuationFinish",null);_.S([_.a({is:"ytd-search"})],Vy);_.f1.registerService(_.rXY,Vy);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("h8y2qb");
var mSo=function(V){if(V=_.ys3(V)){var D;(D=V.sources)!=null&&D[0]?(D=_.jv9(V),D=D<1?"VERTICAL":D>1?"HORIZONTAL":"SQUARE"):D=void 0;return D}},BU=function(V){_.jN.call(this,"upload");
this.opts.query=V},RMJ=function(V,D){return _.K(zMf,{data:V,
onYtNavigate:D})},CZV=function(V,D){return _.wg(V.entities,"pageHeaderEntity",D)},Xa3=function(V,D){return V.map(function(f){if(f.tabRenderer)return qaW(f.tabRenderer);
if(f.expandableTabRenderer&&D){var n=f.expandableTabRenderer;return{customTabRenderable:function(){return D(n)}}}return{}})},qaW=function(V){return{identifier:V.tabIdentifier,
aTagConfig:_.A2({innertubeCommand:V.endpoint,forceNewState:!0}),title:V.title,selected:V.selected,disabled:V.unselectable,icon:V.icon}},EU3=function(V){return _.nA({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:V})},AwW=function(V){if(!_.V1(document,"gtm-noscript")){var D=document.createElement("noscript");
D.id="gtm-noscript";D.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+V+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(D)}};_.fg(BU,_.jN);BU.prototype.JSC$8164_setLabel=function(V){BU.superClass_.JSC$8164_setLabel.call(this,V);return this};
BU.prototype.addUploadMetadata=function(V,D){BU.superClass_.addUploadMetadata.call(this,V,D);return this};var ajv=function(V){if(V!=="youtubebanner"&&V!=="youtube-channel-banner")throw Error("am");BU.call(this,V)};
_.v(ajv,BU);ajv.prototype.JSC$8164_setLabel=function(V){BU.prototype.JSC$8164_setLabel.call(this,V);return this};
ajv.prototype.addUploadMetadata=function(V,D){BU.prototype.addUploadMetadata.call(this,V,D);return this};var YaW=[_.sp,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(V){_.Fw(V).path[0]!==this&&(this.resetLayout(),V.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var V=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.DA(this._layoutDebouncer,_.sm,V);_.fN(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var V=this;requestAnimationFrame(function(){V.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(V){this.resizerShouldNotify(V)&&this._notifyDescendant(V)},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 $Sq=[_.m3u,{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(V,D){var f=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[V];if(!f)throw new ReferenceError(this._getUndefinedMsg(V));V=this._boundEffect(f,D||{});V.setUp();return V},
_effectsChanged:function(V,D,f){this._tearDownEffects();V&&f&&(V.split(" ").forEach(function(n){var t;n!==""&&((t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[n])?this._effects.push(this._boundEffect(t,D[n])):console.warn(this._getUndefinedMsg(n)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(V,D){D=D||{};var f=parseFloat(D.startsAt||0),n=parseFloat(D.endsAt||1),t=n-f,J=function(){};
n=f===0&&n===1?V.run:function(H,Q){V.run.call(this,Math.max(0,(H-f)/t),Q)};
return{setUp:V.setUp?V.setUp.bind(this,D):J,run:V.run?n.bind(this):J,tearDown:V.tearDown?V.tearDown.bind(this):J}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(V){V.setUp()!==!1&&this._effectsRunFn.push(V.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(V){V.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(V,D){this._effectsRunFn&&this._effectsRunFn.forEach(function(f){f(V,D)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var V=this._clampedScrollTop;this._updateScrollState(V);this.threshold>0&&this._setThresholdTriggered(V>=this.threshold)}},
_getDOMRef:function(V){console.warn("_getDOMRef","`"+V+"` is undefined")},
_getUndefinedMsg:function(V){return"Scroll effect `"+V+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+V+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("bm`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(V){var D={};V=parseFloat(V.scalar);D.background=this._getDOMRef("background");D.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");D.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");D.deltaBg=D.backgroundFrontLayer.offsetHeight-D.background.offsetHeight;D.deltaBg===0?(isNaN(V)&&(V=.8),D.deltaBg=(this._dHeight||0)*V):(isNaN(V)&&(V=
1),D.deltaBg*=V);this._fxParallaxBackground=D},
run:function(V){var D=this._fxParallaxBackground;this.transform("translate3d(0px, "+D.deltaBg*Math.min(1,V)+"px, 0px)",D.backgroundFrontLayer);D.backgroundRearLayer&&this.transform("translate3d(0px, "+D.deltaBg*Math.min(1,V)+"px, 0px)",D.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var iKW;var Sav;var W2c=function(){};
_.P=W2c.prototype;_.P._scrollTargetChanged=function(){};
_.P.scroll=function(){};
_.P._isValidScrollTarget=function(){};
_.P._toggleScrollListener=function(){};
_.P.toggleScrollListener=function(){};
_.P.createEffect=function(){};
_.P._effectsChanged=function(){};
_.P._layoutIfDirty=function(){};
_.P._boundEffect=function(){};
_.P._setUpEffect=function(){};
_.P._tearDownEffects=function(){};
_.P._runEffects=function(){};
_.P._scrollHandler=function(){};
_.P._scrollStateChanged=function(){};
_.P._getUndefinedMsg=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P._appResetLayoutHandler=function(){};
_.P.resetLayout=function(){};
_.P._notifyLayoutChanged=function(){};
_.P._notifyDescendantResize=function(){};
_.P._setThresholdTriggered=function(){};
W2c=_.Bt({_template:function(){if(Sav!==void 0)return Sav;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;iKW===void 0&&(iKW=document.createElement("template"));var n=iKW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return Sav=V},
is:"tp-yt-app-header",behaviors:[$Sq,YaW],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 V=_.Fw(this.$.slot).getDistributedNodes(),D=0,f;f=V[D];D++)if(f.nodeType===Node.ELEMENT_NODE)if(f.hasAttribute("sticky")){this._stickyElRef=f;break}else this._stickyElRef||(this._stickyElRef=f);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var V=this._clampedScrollTop,D=this._height===0||V===0,f=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;D||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();D?this._updateScrollState(V,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=f}},
_updateScrollState:function(V,D){if(this._height!==0){var f=0,n=this._top;var t=this._maxHeaderTop;var J=V-this._lastScrollTop,H=Math.abs(J),Q=V>this._lastScrollTop,T=performance.now();this._mayMove()&&(f=this._clamp(this.reveals?n+J:V,0,t));V>=this._dHeight&&(f=this.condenses&&!this.fixed?Math.max(this._dHeight,f):f,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&H<100){if(T-this._initTimestamp>300||this._wasScrollingDown!==Q)this._initScrollTop=V,this._initTimestamp=T;V>=t&&
(Math.abs(this._initScrollTop-V)>30||H>10?(Q&&V>=t?f=t:!Q&&V>=this._dHeight&&(f=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((f-n)/(J/(T-this._lastTimestamp)),0,300)+"ms"):f=this._top)}t=this._dHeight===0?V>0?1:0:f/this._dHeight;D||(this._lastScrollTop=V,this._top=f,this._wasScrollingDown=Q,this._lastTimestamp=T);if(D||t!==this._progress||n!==f||V===0)this._progress=t,this._runEffects(t,f),this._transformHeader(f)}},
_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(V){this.translate3d(0,-V+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&V>=this._stickyElTop?Math.min(V,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(V,D,f){return Math.min(f,Math.max(D,V))},
_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),_.Fw(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(V){switch(V){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Fw(this).querySelector("[main-title]");case "condensedTitle":return _.Fw(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var pav;var L2v;_.Bt({_template:function(){if(L2v!==void 0)return L2v;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;pav===void 0&&(pav=document.createElement("template"));var n=pav;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return L2v=V},
is:"tp-yt-app-header-layout",behaviors:[YaW],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Fw(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var V=this.header;if(this.isAttached&&V){this.$.wrapper.classList.remove("initializing");V.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)V.style.left=
"",V.style.right="";else{var D=this.getBoundingClientRect(),f=document.documentElement.clientWidth-D.right;V.style.left=D.left+"px";V.style.right=f+"px"}D=this.$.contentContainer.style;f=V.offsetHeight;V.fixed&&!V.condenses&&this.hasScrollingRegion?(D.marginTop=f+"px",D.paddingTop=""):(D.paddingTop=f+"px",D.marginTop="")}}});var IjZ=new _.L("replaceFeedContentAction");var OKw=new _.L("alertCommand");var xSW=new _.L("manageLabsStateCommand");var Mro=new _.L("inlineFormRenderer");var dy=new _.L("playlistSidebarPrimaryInfoRenderer");var hMo=new _.L("productDetailsThumbnailRenderer"),USV=new _.L("productDetailsVariantRenderer"),Vgo=new _.L("productDetailsVariantOptionRenderer"),DyZ=new _.L("productDetailsOffersContainerRenderer"),faZ=new _.L("productDetailsOfferRenderer");var nOv=new _.L("shoppingFlaggingRenderer");var tgV=new _.L("playlistBylineRenderer");var PoV=new _.L("insertChannelTabCommand");var ul=function(){return _.lU.apply(this,arguments)||this};
_.v(ul,_.lU);_.P=ul.prototype;_.P.activeChanged=function(){if(this.active){var V=_.Pt(this.hostElement).querySelector("#header");V&&_.PA(V,"iron-resize");window.addEventListener("scroll",_.Ty(this,this.onScroll))}else window.removeEventListener("scroll",_.Ty(this,this.onScroll)),_.PA(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.P.guideVisibleChanged=function(){var V=_.Pt(this.hostElement).querySelector("#header");V&&_.PA(V,"iron-resize")};
_.P.onScroll=function(){var V=this;_.Yu(this,"onScroll",function(){var D=_.Pt(V.hostElement).querySelector("#header");D&&D.polymerController&&(D=D.polymerController.getScrollState().progress===1?"standard":"seamed",_.PA(V.hostElement,"yt-request-panel-mode-change",{mode:D}))},10)};
_.P.tabsChanged=function(){if(this.tabs){for(var V=null,D=0,f=this.tabs.length;D<f;++D){var n=this.tabs[D].tabRenderer;if(n&&n.selected){V=D;break}}this.selected=V}};
_.P.onTabsActivate=function(V){_.PA(this.hostElement,"yt-navigate",{endpoint:this.tabs[V.detail.selected].tabRenderer.endpoint})};
ul.prototype.tabsChanged=ul.prototype.tabsChanged;ul.prototype.guideVisibleChanged=ul.prototype.guideVisibleChanged;ul.prototype.activeChanged=ul.prototype.activeChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],ul.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.q(),_.p("design:type",Array)],ul.prototype,"tabs",void 0);
_.S([_.q(),_.p("design:type",Object)],ul.prototype,"selected",void 0);_.S([_.q(),_.p("design:type",Boolean)],ul.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],ul.prototype,"disableHeaderFluidWidth",void 0);_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ul.prototype,"activeChanged",null);
_.S([_.KI("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ul.prototype,"guideVisibleChanged",null);_.S([_.KI("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ul.prototype,"tabsChanged",null);_.S([_.Gy()],ul);var oOX=[_.U.YtRendererBehavior,_.CE.YtdGuideStateAwareBehavior,ul.prototype];var JWo=2/3,rW3=_.Bj(130749),HMw=function(V,D){var f=this;this.element=V;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){f.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:JWo,moveAction:function(n){f.moveAction(n)},
triggerAction:function(){f.element.isReloading=!0;_.at(_.lS(),{visualElement:rW3});_.bS.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:f.element}})}}}};
_.J6(_.lS(),rW3,this.layer);this.gesture=new _.Qo(V,D,this.refreshConfig,"pan-down");this.attach()};
_.P=HMw.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.reset=function(){this.element.close()};
_.P.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.P.moveAction=function(V){this.element.rotation=V*360};var wmR=_.Bj(130750),N5=function(V,D,f,n,t){var J=this;this.element=V;this.parent=f;this.channelHeader=n;this.ytdReduxDispatch=t;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){J.tabsStartAtInPx=J.channelHeader.clientHeight-48;var H;(H=J.selectedTab)!=null&&H.title&&(H=_.DY().resolve(_.Vx(_.xl)))&&(H=H.getCurrentPage(),J.lastVisitedTabScrollPosition=H.getScrollTop(),J.previousTab&&
((J.lastVisitedTabScrollPosition===void 0?0:J.lastVisitedTabScrollPosition<J.channelHeader.clientHeight-48)?J.scrollPositionForTabs.has(J.selectedTab.title)&&J.scrollPositionForTabs.delete(J.selectedTab.title):J.scrollPositionForTabs.set(J.selectedTab.title,H.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:QLZ(),triggerAction:function(){J.navigate(J.previousTab)},
moveAction:function(H,Q){J.moveAction(H,Q)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-QLZ(),triggerAction:function(){J.navigate(J.nextTab)},
moveAction:function(H,Q){J.moveAction(H,Q)}}}};
_.J6(_.lS(),wmR,this.layer);this.gesture=new _.Qo(V,D,this.tabConfig);this.attach()};
N5.prototype.attach=function(){this.gesture.attach()};
N5.prototype.detach=function(){this.gesture.detach()};
N5.prototype.tabsChanged=function(V){if(V){var D=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;V=_.r(V);for(var f=V.next();!f.done;f=V.next()){f=f.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=f);var n=void 0;if((n=f)==null?0:n.selected)this.previousTab=D,this.selectedTab=f;D=f}D=this.gesture;V=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}});
D.config=V;this.scrollPositionNeedsUpdate=!0}};
N5.prototype.moveAction=function(V,D){if(!this.tabsElement){var f;this.tabsElement=(f=this.parent.header)==null?void 0:f.tabsElement;D==="right"&&this.previousTab?_.wGF(_.lV.instance,this.previousTab.endpoint,{},""):D==="left"&&this.nextTab&&_.wGF(_.lV.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}f=this.tabsElement._pos;D==="right"&&(V*=-1);this.tabsElement._positionBar(f.width,f.left*1+f.width*V)};
var QLZ=function(){var V,D;return(D=(V=_.DY().resolve(_.xl).getCurrentPage())==null?void 0:V.clientWidth)!=null?D:0};
N5.prototype.navigate=function(V){this.element.data=void 0;if(V=V==null?void 0:V.endpoint)this.ytdReduxDispatch(EU3(!0)),_.at(_.lS(),{visualElement:wmR}),_.bS.instance.resolveCommand({navigateAction:{endpoint:V}},{form:{element:this.element}})};var TzR;var bMR;var m_=function(){return _.E.apply(this,arguments)||this};
_.v(m_,_.E);m_.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],m_.prototype,"data",void 0);_.S([_.a({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],m_);
_.Y(m_,"ytd-labs-edit-renderer",function(){if(bMR!==void 0)return bMR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return bMR=V},{mode:1});var Kbc;var zE=function(){var V=_.E.apply(this,arguments)||this;V.dark=!1;V.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";V.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(zE,_.E);zE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zE.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.setBackgroundImage(V);this.dark=V};
zE.prototype.onDarkModeToggledAction=function(V){this.setBackgroundImage(V);this.dark=V};
zE.prototype.setBackgroundImage=function(V){_.wI(this.hostElement,{"--yt-labs-header-background":"url("+(V?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zE.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],zE.prototype,"dark",void 0);
_.S([_.a({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],zE);
_.Y(zE,"ytd-labs-header-renderer",function(){if(Kbc!==void 0)return Kbc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Kbc=V},{mode:1});var yWv;var Rh=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return V};
_.v(Rh,_.E);Rh.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"}}}}}};
Rh.prototype.onYtToggleButton=function(V){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",V.detail.toggled)};
Rh.prototype.onManageLabsState=function(V){if(V=_.g(V,xSW))V.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?V.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&V.labsItemId===this.data.labsItemId&&(V.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.o4(this.hostElement,"yt-check-labs-opted-in-state").some(function(D){return D})&&this.data.confirmationDialogCommand?_.wN(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.DY().resolve(_.fH).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&V.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.DY().resolve(_.fH).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Rh.prototype.onCheckLabsOptedInState=function(){var V=this.get("data.primaryButton.toggleButtonRenderer");return V?V.isToggled:!1};
_.IG.Object.defineProperties(Rh.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Rh.prototype.onYtToggleButton=Rh.prototype.onYtToggleButton;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Rh.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Rh.prototype,"itemStyle",null);_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rh.prototype,"onYtToggleButton",null);_.S([_.a({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Rh);
_.Y(Rh,"ytd-labs-item-renderer",function(){if(yWv!==void 0)return yWv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return yWv=V},{mode:1});var ZM0;var jL0;var C7=function(){return _.E.apply(this,arguments)||this};
_.v(C7,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],C7.prototype,"data",void 0);_.S([_.a({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],C7);
_.Y(C7,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(jL0!==void 0)return jL0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jL0=V},{mode:1});var la3;var q5=function(){return _.E.apply(this,arguments)||this};
_.v(q5,_.E);q5.prototype.observeSuperchatChip=function(){if(this.data){var V={"--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)};_.wI(this.hostElement,V)}};
q5.prototype.colorFromDecimal=function(V){return _.aB(Number(V||0))};
q5.prototype.observeSuperchatChip=q5.prototype.observeSuperchatChip;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],q5.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q5.prototype,"observeSuperchatChip",null);_.S([_.a({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],q5);
_.Y(q5,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(la3!==void 0)return la3;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return la3=V},{mode:1});var Xg=function(){return _.E.apply(this,arguments)||this};
_.v(Xg,_.E);Xg.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"}}}};
_.IG.Object.defineProperties(Xg.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.N0),_.p("design:type",Object)],Xg.prototype,"ytdDismissibleItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xg.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Xg.prototype,"hideMessageBlock",null);
_.S([_.a({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Xg);
_.Y(Xg,"ytd-live-chat-history-entry-renderer",function(){if(ZM0!==void 0)return ZM0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZM0=V},{mode:1});var GDJ;var En=function(){return _.E.apply(this,arguments)||this};
_.v(En,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],En.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],En);
_.Y(En,"ytd-channel-options-renderer",function(){if(GDJ!==void 0)return GDJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return GDJ=V},{mode:1});var eHV;var AX=function(){return _.E.apply(this,arguments)||this};
_.v(AX,_.E);AX.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],AX.prototype,"data",void 0);_.S([_.a({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],AX);
_.Y(AX,"ytd-settings-email-item-renderer",function(){if(eHV!==void 0)return eHV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return eHV=V},{mode:1});var cW0;var ah=function(){return _.E.apply(this,arguments)||this};
_.v(ah,_.E);ah.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"}}}};
ah.prototype.getExpansionIcon=function(V){return V?"COLLAPSE":"EXPAND"};
ah.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.IG.Object.defineProperties(ah.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ah.prototype,"data",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ah.prototype,"expanded",void 0);_.S([_.R("expanded"),_.p("design:type",String),_.p("design:paramtypes",[])],ah.prototype,"emailListExpanded",null);
_.S([_.Zv("#options"),_.p("design:type",Object)],ah.prototype,"options",void 0);_.S([_.a({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],ah);
_.Y(ah,"ytd-settings-email-list-renderer",function(){if(cW0!==void 0)return cW0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return cW0=V},{mode:1});var FbJ;var Yz=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return V};
_.v(Yz,_.E);Yz.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"}}}};
Yz.prototype.handleSignalActionSubmitForm=function(){var V,D=(V=this.formRenderer)==null?void 0:V.getForm();D&&this.data.serviceEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})})};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Yz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Yz.prototype,"data",void 0);_.S([_.Zv("yt-form-renderer"),_.p("design:type",Object)],Yz.prototype,"formRenderer",void 0);
_.S([_.a({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Yz);
_.Y(Yz,"ytd-settings-gaia-link-renderer",function(){if(FbJ!==void 0)return FbJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FbJ=V},{mode:1});var gOq;var $z=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return V};
_.v($z,_.E);$z.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.fNf()&&this.set("data.hidden",!1)};
$z.prototype.onSwitchReady=function(){var V=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.c("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.DrB().then(function(D){D&&(Notification.permission==="default"?V.set("data.hidden",!1):Notification.permission==="granted"&&_.D2("NotificationsDisabled").then(function(f){f||_.o4(V.hostElement,"yt-toggle-settings-switch",[V.data.id,!f]);V.set("data.hidden",!1)}).catch(function(){}))})})};
$z.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}}}}};
$z.prototype.handleUpdateOptionsCommand=function(V){(V=_.g(V,_.ecV))&&this.data&&this.data.id===V.id&&(this.set("data.hidden",V.hidden),V.text!==void 0&&this.set("data.text",V.text),V.clearOptions&&this.set("data.options",[]))};
$z.prototype.onSwitchReady=$z.prototype.onSwitchReady;$z.prototype.dataChanged=$z.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],$z.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$z.prototype,"data",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$z.prototype,"dataChanged",null);_.S([_.bU("yt-settings-switch-ready"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$z.prototype,"onSwitchReady",null);_.S([_.a({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],$z);
_.Y($z,"ytd-settings-options-renderer",function(){if(gOq!==void 0)return gOq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gOq=V},{mode:1});var vOf;var il=function(){return _.E.apply(this,arguments)||this};
_.v(il,_.E);il.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
il.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
il.prototype.onYtExpanderMoreTapped=il.prototype.onYtExpanderMoreTapped;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],il.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],il.prototype,"data",void 0);
_.S([_.bU("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],il.prototype,"onYtExpanderMoreTapped",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],il);
_.Y(il,"ytd-product-details-description-renderer",function(){if(vOf!==void 0)return vOf;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vOf=V},{mode:1});var kDo;var SF=function(){var V=_.E.apply(this,arguments)||this;V.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";V.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";V.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";V.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return V};
_.v(SF,_.E);SF.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.IG.Object.defineProperties(SF.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:(D=V.offerData)==null?void 0:D.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?void 0:V.purchaseButtonRenderers)!==void 0&&((D=this.data)==null?void 0:D.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.formattedFromMerchantText)&&(!((D=this.data)==null||!D.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SF.prototype,"data",void 0);
_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],SF.prototype,"shippingIcon",void 0);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],SF.prototype,"shippingAddressIcon",void 0);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],SF.prototype,"googleGuaranteeIcon",void 0);
_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],SF.prototype,"returnPolicyIcon",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SF.prototype,"showAdditionalFees",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SF.prototype,"showMultiPurchaseButtons",null);
_.S([_.R("data","showMultiPurchaseButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SF.prototype,"showPurchaseData",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],SF);
_.Y(SF,"ytd-product-details-hero-offer-renderer",function(){if(kDo!==void 0)return kDo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kDo=V},{mode:1});var sLJ;var BzZ;var WU=function(){return _.E.apply(this,arguments)||this};
_.v(WU,_.E);_.P=WU.prototype;_.P.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.P.onKeyDown=function(V){V=V.keyCode;V!==13&&V!==32||this.handleSelection()};
_.P.onMouseEnterImage=function(){var V;((V=this.data)==null?void 0:V.thumbnailDetails)!==void 0&&_.JR(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.P.onMouseLeaveImage=function(){_.JR(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.P.handleSelection=function(){this.data&&_.PA(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.IG.Object.defineProperties(WU.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isSelected)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WU.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],WU.prototype,"isSelected",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],WU);
_.Y(WU,"ytd-product-details-thumbnail-renderer",function(){if(BzZ!==void 0)return BzZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return BzZ=V},{mode:1});var p7=function(){var V=_.E.apply(this,arguments)||this;var D={};V.actionMap=(D["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",D["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",D);V.selectedThumbnailIndex=0;V.selectItem=function(f){f.target.onKeyDown(f)};
return V};
_.v(p7,_.E);_.P=p7.prototype;_.P.handlePreviewImageSelect=function(V){this.hoverThumbnail=V};
_.P.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.P.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.P.onThumbnailSelected=function(V,D){this.selectedThumbnailIndex=D};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.P.updateOffset=function(){var V=_.Pt(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-V));this.ytdHorizontalListBehavior.reposition_()};
_.IG.Object.defineProperties(p7.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.imageRenderer){var D,f;return((D=this.data)==null?void 0:(f=D.imageRenderer)==null?void 0:f.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var V;if((V=this.data)==null?0:V.imageRenderer){var D;return(D=_.g(this.data.imageRenderer[this.selectedThumbnailIndex],hMo))==null?void 0:D.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f,n,t=(n=(D=this.data)==null?void 0:(f=D.imageRenderer)==null?void 0:f.map(function(J,H){return{productDetailsThumbnailRenderer:Object.assign({},_.g(J,hMo),{index:H,isSelected:H===V.selectedThumbnailIndex})}}))!=null?n:[];
return Object.assign({},this.data,{imageRenderer:t})}}});
p7.prototype.updateOffset=p7.prototype.updateOffset;p7.prototype.dataChanged=p7.prototype.dataChanged;p7.prototype.onThumbnailSelected=p7.prototype.onThumbnailSelected;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.M0.YtdHorizontalListBehavior),_.p("design:type",Object)],p7.prototype,"ytdHorizontalListBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],p7.prototype,"componentBehavior",void 0);_.S([_.u([_.D6.YtActionHandlerBehavior]),_.p("design:type",Object)],p7.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],p7.prototype,"data",void 0);_.S([_.q({value:"$.items.children"}),_.p("design:type",String)],p7.prototype,"itemsPath",void 0);_.S([_.q({value:3}),_.p("design:type",Number)],p7.prototype,"initialCount",void 0);
_.S([_.Zv("#items"),_.p("design:type",Object)],p7.prototype,"items",void 0);_.S([_.q(),_.p("design:type",Object)],p7.prototype,"selectedThumbnailIndex",void 0);_.S([_.q(),_.p("design:type",Object)],p7.prototype,"hoverThumbnail",void 0);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],p7.prototype,"showThumbnails",null);
_.S([_.bU("ytd-product-details-thumbnail-renderer-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Number]),_.p("design:returntype")],p7.prototype,"onThumbnailSelected",null);_.S([_.R("data","selectedThumbnailIndex","hoverThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],p7.prototype,"thumbnailDetails",null);_.S([_.R("data","selectedThumbnailIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],p7.prototype,"populatedData",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p7.prototype,"dataChanged",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],p7.prototype,"updateOffset",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],p7);
_.Y(p7,"ytd-product-details-image-carousel-renderer",function(){if(sLJ!==void 0)return sLJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return sLJ=V},{mode:_.J2("kevlar_poly_si_batch_j079")?1:2});var dyo;var L7=function(){return _.E.apply(this,arguments)||this};
_.v(L7,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],L7.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],L7.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],L7);
_.Y(L7,"ytd-product-details-offer-renderer",function(){if(dyo!==void 0)return dyo;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return dyo=V},{mode:1});var ur0;var Ih=function(){var V=_.E.apply(this,arguments)||this;V.isOffersHidden=!0;return V};
_.v(Ih,_.E);Ih.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var V,D=_.g((V=this.data)==null?void 0:V.viewOffersButton,_.RI);D&&this.ytRendererBehavior.logExplicitClick(D)};
Ih.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.IG.Object.defineProperties(Ih.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return(f=_.g((V=this.data)==null?void 0:(D=V.offers)==null?void 0:D[0],faZ))==null?void 0:(n=f.offerData)==null?void 0:n.vendorLogoUrl}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ih.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ih.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ih.prototype,"isOffersHidden",void 0);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ih.prototype,"firstOfferVendorLogoUrl",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Ih);
_.Y(Ih,"ytd-product-details-offers-container-renderer",function(){if(ur0!==void 0)return ur0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ur0=V},{mode:1});var NzR;var myv;var On=function(){return _.E.apply(this,arguments)||this};
_.v(On,_.E);On.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
On.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.JR(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
On.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.JR(this,"ytd-product-details-variant-image-unselect")};
_.IG.Object.defineProperties(On.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 V;return((V=this.data)==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?void 0:V.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var V;if(((V=this.data)==null?void 0:V.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var V,D;return this.isUnavailable?(V=this.data)==null?void 0:V.variantOptionUnavailableAccessibilityLabel:(D=this.data)==null?void 0:D.variantOptionAccessibilityLabel}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],On.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],On.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],On.prototype,"displayType",void 0);
_.S([_.R("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],On.prototype,"isImageButton",null);_.S([_.R("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],On.prototype,"isPillButton",null);_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],On.prototype,"isActive",null);
_.S([_.R("data"),_.q({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],On.prototype,"isUnavailable",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],On.prototype,"thumbnailDetails",null);_.S([_.R("isUnavailable","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],On.prototype,"accessibilityLabel",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],On);
_.Y(On,"ytd-product-details-variant-option-renderer",function(){if(myv!==void 0)return myv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return myv=V},{mode:1});var zHZ;var xz=function(){var V=_.E.apply(this,arguments)||this;V.variantsExpanded=!1;V.hideShowMoreLessVariantButton=!0;V.initialized=!1;V.computeVariantsDebouncer=null;V.computeVariants=function(D){D=D===void 0?!1:D;V.variantsExpanded||V.showOptions()||!D||(V.variantsExpanded=!0);if(V.variantsExpanded){D=_.r(V.items.children);for(var f=D.next();!f.done;f=D.next())f.value.hidden=!1}V.initialized=!0};
return V};
_.v(xz,_.E);_.P=xz.prototype;_.P.ready=function(){var V=this;setTimeout(function(){V.computeVariants(!0)})};
_.P.showOptions=function(){for(var V=_.r(this.items.children),D=V.next();!D.done;D=V.next())D.value.hidden=!0;var f=this.container.getBoundingClientRect().width,n=0,t=V=0;D=!1;for(var J=_.r(this.items.children),H=J.next();!H.done;H=J.next()){H=H.value;H.hidden=!1;var Q=H.getBoundingClientRect().width;if(n+Q<f)n+=Q;else if(++t<2)n=Q;else break;V+=1;H.hasAttribute("is-active")&&(D=!0)}for(f=V;f<this.items.children.length;f++)this.items.children[f].hidden=!0;this.hideShowMoreLessVariantButton=V===this.items.children.length;
return D};
_.P.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.DA(this.computeVariantsDebouncer,_.ii.after(100),this.computeVariants)};
_.P.onShowMoreLessVariantsButtonClick=function(){var V;(V=this.data)!=null&&V.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.P.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.IG.Object.defineProperties(xz.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.variantOptionRenderers)==null?void 0:D.find(function(J){return _.g(J,Vgo).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),n,t;
return(t=(n=_.g(f,Vgo))==null?void 0:n.name)!=null?t:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.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"}}}});
xz.prototype.debouncedComputeVariants=xz.prototype.debouncedComputeVariants;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],xz.prototype,"componentBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],xz.prototype,"ironResizableBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],xz.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],xz.prototype,"variantsExpanded",void 0);_.S([_.q(),_.p("design:type",Object)],xz.prototype,"hideShowMoreLessVariantButton",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xz.prototype,"initialized",void 0);_.S([_.Zv("#items"),_.p("design:type",HTMLDivElement)],xz.prototype,"items",void 0);_.S([_.Zv("#container"),_.p("design:type",HTMLDivElement)],xz.prototype,"container",void 0);
_.S([_.Zv("#more-variants-button"),_.p("design:type",HTMLElement)],xz.prototype,"moreVariantsButton",void 0);_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],xz.prototype,"selectedOptionName",null);_.S([_.KI("data","variantsExpanded"),_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xz.prototype,"debouncedComputeVariants",null);
_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],xz.prototype,"displayType",null);_.S([_.R("displayType"),_.p("design:type",Object),_.p("design:paramtypes",[])],xz.prototype,"variantItemsClassname",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],xz);
_.Y(xz,"ytd-product-details-variant-renderer",function(){if(zHZ!==void 0)return zHZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return zHZ=V},{mode:1});var M5=function(){return _.E.apply(this,arguments)||this};
_.v(M5,_.E);
M5.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"}}}};
_.IG.Object.defineProperties(M5.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(D=_.g((V=this.data)==null?void 0:V.offersContainerRenderer,DyZ))==null?void 0:D.offers;return f!==void 0&&(f==null?void 0:f.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 V,D,f;return((f=(V=this.data)==null?void 0:(D=V.variants)==null?void 0:D.map(function(n){var t,J;n=(J=(t=_.g(n,USV))==null?void 0:t.variantOptionRenderers)==null?void 0:J.find(function(Q){var T;return((T=_.g(Q,Vgo))==null?void 0:T.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var H;return(H=_.g(n,Vgo))==null?void 0:H.name}).filter(function(n){return typeof n==="string"}))!=null?f:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n=(D=_.g((V=this.data)==null?void 0:V.shoppingFlaggingRenderer,nOv))==null?void 0:(f=D.reportButton)==null?void 0:f.buttonRenderer;if(n)return{text:n.text,command:n.command,icon:{iconType:"FLAG"},accessibilityData:n.accessibilityData,trackingParams:n.trackingParams,loggingDirectives:n.loggingDirectives}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],M5.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],M5.prototype,"data",void 0);_.S([_.Zv("#image-carousel-renderer"),_.p("design:type",Object)],M5.prototype,"imageCarouselRenderer",void 0);
_.S([_.Zv("#hero-offer-renderer"),_.p("design:type",Object)],M5.prototype,"productDetailsHeroOfferRenderer",void 0);_.S([_.Zv("#variants"),_.p("design:type",Object)],M5.prototype,"productDetailsVariantRenderer",void 0);_.S([_.Zv("#offers"),_.p("design:type",Object)],M5.prototype,"productDetailsOffersContainerRenderer",void 0);_.S([_.Zv("#description-renderer"),_.p("design:type",Object)],M5.prototype,"productDetailsDescriptionRenderer",void 0);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showPurchaseData",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showHeroOfferRenderer",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showBrandText",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showOffers",null);
_.S([_.R("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showBuySeparator",null);_.S([_.R("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M5.prototype,"showBuyCard",null);_.S([_.R("data"),_.p("design:type",String),_.p("design:paramtypes",[])],M5.prototype,"selectedVariantsText",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],M5.prototype,"shoppingReportingButtonData",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],M5);
_.Y(M5,"ytd-product-details-renderer",function(){if(NzR!==void 0)return NzR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return NzR=V},{mode:1});var RHZ;var CoZ;var qT3;var hX=function(){return _.E.apply(this,arguments)||this};
_.v(hX,_.E);hX.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.IG.Object.defineProperties(hX.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hX.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],hX.prototype,"formattedAmount",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hX.prototype,"ariaLabel",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],hX.prototype,"vcBalanceWidgetStyle",null);_.S([_.zy({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],hX);
_.Y(hX,"yt-vc-balance-renderer",function(){if(qT3===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;CoZ===void 0&&(CoZ=document.createElement("template"));var n=CoZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);qT3=V}V=qT3;return V},{mode:2});_.zk("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Un=function(){return _.E.apply(this,arguments)||this};
_.v(Un,_.E);_.IG.Object.defineProperties(Un.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:""}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Un.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Un.prototype,"data",void 0);_.S([_.q({selectorArgs:["data.vcBalanceEntityKey"],selector:function(V,D){return _.wg(V.entities,"vcBalanceEntity",D)}}),
_.p("design:type",Object)],Un.prototype,"vcBalanceEntity",void 0);_.S([_.R("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],Un.prototype,"formattedAmount",null);_.S([_.R("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],Un.prototype,"vcBalanceAriaLabel",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Un);
_.Y(Un,"ytd-vc-balance-renderer",function(){if(RHZ!==void 0)return RHZ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return RHZ=V},{mode:1});var Xmw;var Ve=function(){var V=_.E.apply(this,arguments)||this;V.rotation=0;V.isReloading=!1;return V};
_.v(Ve,_.E);Ve.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Ve.prototype.reset=function(){this.hostElement.style.opacity=""};
Ve.prototype.close=function(){var V=this;return _.w(function(D){if(D.nextAddress==1)return _.b(D,V.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.hostElement.style.opacity="0";_.yz(D)})};
Ve.prototype.rotationChanged=Ve.prototype.rotationChanged;_.S([_.q(),_.p("design:type",Object)],Ve.prototype,"rotation",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Ve.prototype,"isReloading",void 0);_.S([_.Zv("#icon"),_.p("design:type",HTMLElement)],Ve.prototype,"icon",void 0);_.S([_.KI("rotation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ve.prototype,"rotationChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-refresh"})],Ve);
_.Y(Ve,"ytd-refresh",function(){if(Xmw!==void 0)return Xmw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Xmw=V},{mode:1});var EOV;var DI=function(){return _.E.apply(this,arguments)||this};
_.v(DI,_.E);DI.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"}}}};
DI.prototype.dataChanged=function(){if(this.data){var V=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var D=_.nT(this.data.banner.thumbnails,this.hostElement.clientWidth);D&&(D.indexOf("//")===0&&(D="https:"+D),this.hasBannerArt=!0,_.wI(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+D+")"}))}this.hasBannerArt!==V&&_.Pt(this.hostElement).querySelector("#header").fire("iron-resize")}};
DI.prototype.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
DI.prototype.dataChanged=DI.prototype.dataChanged;_.S([_.u(oOX),_.p("design:type",Object)],DI.prototype,"ytdTabbedHeaderBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.zn),_.p("design:type",Object)],DI.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],DI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],DI.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],DI.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],DI.prototype,"selected",void 0);_.S([_.q(),_.p("design:type",Boolean)],DI.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],DI.prototype,"hasBannerArt",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DI.prototype,"dataChanged",null);_.S([_.a({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],DI);
_.Y(DI,"ytd-interactive-tabbed-header-renderer",function(){if(EOV!==void 0)return EOV;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return EOV=V},{mode:1});var AWV;var f3=function(){return _.E.apply(this,arguments)||this};
_.v(f3,_.E);f3.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f3.prototype.computeActionsAlignment=function(V){return(V==null?void 0:V.actionsAlignment)||""};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],f3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.p("design:type",String)],f3.prototype,"actionsAlignment",void 0);_.S([_.a({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],f3);
_.Y(f3,"ytd-page-footer-renderer",function(){if(AWV!==void 0)return AWV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return AWV=V},{mode:1});var aaX;var YTW;var n3=function(){var V=_.E.apply(this,arguments)||this;V.isEditing=!1;V.useSlot=!1;V.isMultiline=!1;return V};
_.v(n3,_.E);_.P=n3.prototype;_.P.onKeydown=function(V){if(V.keyCode===13&&!this.isMultiline)this.onSave();else if(V.keyCode===27)this.onCancel()};
_.P.computeComponentStyle=function(V){return(V==null?0:V.style)?V.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.P.computeisMultiline=function(V){if(this.multilineOverride!==void 0)return this.multilineOverride;var D,f;return!!(V==null?0:(D=V.formField)==null?0:(f=D.textInputFormFieldRenderer)==null?0:f.isMultiline)};
_.P.computeTextDisplayed=function(V,D){if(V)return V;if(D)return D};
_.P.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.P.onSave=function(){if(this.textForm.validate()){this.textForm.save();var V=this.textForm.value;if(V)this.set("data.textDisplayed",_.pA(V));else{var D;((D=this.data)==null?0:D.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Av("inline-form-changed",this.data));this.isEditing=!1}};
_.P.onCancel=function(){var V=_.LA(this.data.textDisplayed);V===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(V);this.isEditing=!1};
n3.prototype.onKeydown=n3.prototype.onKeydown;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],n3.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],n3.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],n3.prototype,"isEditing",void 0);_.S([_.q(),_.p("design:type",Object)],n3.prototype,"useSlot",void 0);_.S([_.q(),_.p("design:type",Boolean)],n3.prototype,"multilineOverride",void 0);_.S([_.q(),_.p("design:type",Boolean)],n3.prototype,"enableOverlayTheme",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.p("design:type",String)],n3.prototype,"componentStyle",void 0);
_.S([_.q({computed:"computeisMultiline(data)"}),_.p("design:type",Object)],n3.prototype,"isMultiline",void 0);_.S([_.Zv("#text-form"),_.p("design:type",Object)],n3.prototype,"textForm",void 0);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],n3.prototype,"onKeydown",null);_.S([_.a({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],n3);
_.Y(n3,"ytd-inline-form-renderer",function(){if(YTW!==void 0)return YTW;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return YTW=V},{mode:1});var $y3;var t9=function(){var V=_.E.apply(this,arguments)||this;V.previousSelectValue=void 0;V.selectedItemMessage=void 0;return V};
_.v(t9,_.E);t9.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
t9.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var V,D,f,n,t=(V=this.data)==null?void 0:(D=V.dropdown)==null?void 0:(f=D.dropdownRenderer)==null?void 0:(n=f.entries)==null?void 0:n.map(function(Q){return Q.privacyDropdownItemRenderer});
V=_.r(t!=null?t:[]);for(D=V.next();!D.done;D=V.next())if((D=D.value)&&D.int32Value===this.selectedValue){this.selectedItemMessage=D.itemMessage;break}}else this.selectedItemMessage=void 0;var J;(J=this.onValueChanged)==null||J.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var H;(H=this.data)!=null&&H.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
t9.prototype.onValueChangedForSelectedValue=function(V){this.selectedValue=V.detail.value};
t9.prototype.selectedValueChanged=t9.prototype.selectedValueChanged;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],t9.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],t9.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],t9.prototype,"theme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Number)],t9.prototype,"selectedValue",void 0);_.S([_.q(),_.p("design:type",Function)],t9.prototype,"onValueChanged",void 0);
_.S([_.eY("selectedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t9.prototype,"selectedValueChanged",null);_.S([_.a({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],t9);
_.Y(t9,"ytd-dropdown-form-field-renderer",function(){if($y3!==void 0)return $y3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return $y3=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var iMX;var PD=function(){return _.E.apply(this,arguments)||this};
_.v(PD,_.E);_.IG.Object.defineProperties(PD.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var V=[],D=_.r(this.data||[]),f=D.next();!f.done;f=D.next())(f=_.g(f.value,tgV))&&V.push(f);return V}}});
_.S([_.q(),_.p("design:type",Array)],PD.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],PD.prototype,"byline",null);_.S([_.a({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],PD);
_.Y(PD,"ytd-playlist-byline-renderer",function(){if(iMX!==void 0)return iMX;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iMX=V},{mode:1});var STR;var oQ=function(){var V=_.E.apply(this,arguments)||this;V.rtlBullet=_.c("web_playlist_stats_rtl_bullet_icon_killswitch");V.modern=_.c("web_modern_buttons");V.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return V};
_.v(oQ,_.E);_.P=oQ.prototype;_.P.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"}}}}};
_.P.attached=function(){};
_.P.computeIsCustomThumbnail=function(V){return V?!!V.playlistCustomThumbnailRenderer:!1};
_.P.onYtNavigate=function(V,D){if(D&&D.actions&&D.actions.indexOf("shuffle")>-1){V=_.DY().resolve(_.zI);var f=D.tempData||{};f.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);D.tempData=f;V.isShuffleNextPlaylist=!0}};
_.P.onUpdatePlaylistAction=function(V){var D;V=(D=_.g(V,_.MPu))==null?void 0:D.updatedRenderer;if(D=_.g(V,dy))this.data=D};
_.P.computeStyleType=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(V){return V==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.P.computeHideThumbnailAria=function(V){if(V==null?0:V.thumbnailOverlays)for(var D=0;D<V.thumbnailOverlays.length;D++){var f=void 0;if((f=V.thumbnailOverlays[D])==null?0:f.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
oQ.prototype.onYtNavigate=oQ.prototype.onYtNavigate;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],oQ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],oQ.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],oQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oQ.prototype,"rtlBullet",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.p("design:type",String)],oQ.prototype,"styleType",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],oQ.prototype,"thumbnailWidth",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oQ.prototype,"modern",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.p("design:type",Boolean)],oQ.prototype,"isCustomThumbnail",void 0);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],oQ.prototype,"onYtNavigate",null);_.S([_.a({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],oQ);
_.Y(oQ,"ytd-playlist-sidebar-primary-info-renderer",function(){if(STR!==void 0)return STR;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return STR=V},{mode:1});var Wbv;var J9=function(){return _.E.apply(this,arguments)||this};
_.v(J9,_.E);J9.prototype.computeOwnerVisibility=function(V){return!(!V.videoOwner&&!V.button)};
J9.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],J9.prototype,"data",void 0);_.S([_.a({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],J9);
_.Y(J9,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Wbv!==void 0)return Wbv;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Wbv=V},{mode:1});var pmV;var r_=function(){var V=_.E.apply(this,arguments)||this;V.expanded=!1;V.isCompact=!1;return V};
_.v(r_,_.E);_.P=r_.prototype;_.P.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.P.dataChanged=function(){this.data&&_.$x(_.Pt(this.text),_.C3P(_.EFU,_.LA(this.data.text||null)))};
_.P.computeAutoScrollEnabled=function(V,D){return V&&!D};
_.P.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.P.toggleOnTap=function(){this.expanded=!this.expanded};
r_.prototype.expandedChanged=r_.prototype.expandedChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;_.S([_.u(_.OSc),_.p("design:type",Object)],r_.prototype,"ytdAutoScrollBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r_.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r_.prototype,"expanded",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r_.prototype,"isCompact",void 0);_.S([_.q({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.p("design:type",Boolean)],r_.prototype,"autoScrollEnabled",void 0);_.S([_.Zv("#text"),_.p("design:type",Object)],r_.prototype,"text",void 0);_.S([_.Zv("#expander-icon"),_.p("design:type",Object)],r_.prototype,"expanderIcon",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r_.prototype,"dataChanged",null);_.S([_.KI("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r_.prototype,"expandedChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],r_);
_.Y(r_,"ytd-channel-legal-info-renderer",function(){if(pmV!==void 0)return pmV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pmV=V},{mode:1});var Lbc;var Iaf=_.Zl("DOWNLOAD",{},"Download"),OM0=_.Zl("DOWNLOADING",{},"Downloading"),xyq=_.Zl("DOWNLOADED",{},"Downloaded"),HD=function(){var V=_.E.apply(this,arguments)||this;V.downloadProgress=0;V.isDownloadComplete=!1;V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.v(HD,_.E);_.P=HD.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var V;(V=this.data)!=null&&V.tooltip||(V=_.q_(_.Ol().getState(),this.playlistId),this.updateButtonState(V))};
_.P.computePlaylistId=function(V){return V};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(V){if(this.data&&(this.data.tooltip!==OM0||!_.Gq(V))){this.isDownloadComplete=!1;switch(V){case "TRANSFER_STATE_UNKNOWN":V=Iaf;var D="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":V=xyq;D="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":V=OM0;D="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";
break;default:V=Iaf,D="OFFLINE_DOWNLOAD",f="ACTION_ADD"}var n=Object.assign({},this.data);n.tooltip=V;n.accessibilityData={accessibilityData:{label:V}};n.icon={iconType:D};n.size="SIZE_DEFAULT";_.g(n.command,_.Tv)&&(_.g(n.command,_.Tv).action=f);this.set("data",n)}};
_.P.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var V="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?V="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?V="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?V="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?V="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?V="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(V="OFFLINE_PIN",this.isDownloadComplete=!0);var D;V!==((D=this.data.icon)==null?void 0:D.iconType)&&(D=Object.assign({},this.data),D.tooltip=OM0,D.accessibilityData={accessibilityData:{label:OM0}},D.icon={iconType:V},_.g(D.command,_.Tv)&&(_.g(D.command,_.Tv).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",D))}};
HD.prototype.updateProgress=HD.prototype.updateProgress;HD.prototype.onTransferStateChanged=HD.prototype.onTransferStateChanged;HD.prototype.dataChanged=HD.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],HD.prototype,"ytdReduxBehavior",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"forceIconButton",void 0);
_.S([_.q({value:!0}),_.p("design:type",Boolean)],HD.prototype,"forceIconOnly",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"overrides",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"buttonTooltipPosition",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"styleActionButton",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"disableTextTransform",void 0);
_.S([_.q({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.p("design:type",String)],HD.prototype,"playlistId",void 0);_.S([_.q(),_.p("design:type",Object)],HD.prototype,"data",void 0);_.S([_.q({selector:_.dT3,selectorArgs:["playlistId"]}),_.p("design:type",Object)],HD.prototype,"downloadProgress",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],HD.prototype,"isDownloadComplete",void 0);
_.S([_.q({selector:_.q_,selectorArgs:["playlistId"]}),_.p("design:type",String)],HD.prototype,"transferState",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],HD.prototype,"showTooltips",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],HD.prototype,"sendCommandWhenDisabled",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],HD.prototype,"disabled",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HD.prototype,"dataChanged",null);_.S([_.eY("transferState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HD.prototype,"onTransferStateChanged",null);_.S([_.eY("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HD.prototype,"updateProgress",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],HD);
_.Y(HD,"ytd-download-playlist-button-renderer",function(){if(Lbc!==void 0)return Lbc;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Lbc=V},{mode:1});var Mgv;_.fT(_.DSL,"thumbnail-overlay-button-view-model",{props:{data:_.WX,lockupExperiments:_.WX}});var w_=function(){var V=_.E.apply(this,arguments)||this;V.isSquare=!1;V.isVertical=!1;return V};
_.v(w_,_.E);w_.prototype.computeIsSquare=function(V){return V!=null&&V.thumbnail?mSo(V.thumbnail)==="SQUARE":!1};
w_.prototype.computeIsVertical=function(V){return V!=null&&V.thumbnail?mSo(V.thumbnail)==="VERTICAL":!1};
w_.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.p("design:type",Object)],w_.prototype,"isSquare",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.p("design:type",Object)],w_.prototype,"isVertical",void 0);
_.S([_.q(),_.p("design:type",Object)],w_.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],w_);
_.Y(w_,"ytd-hero-playlist-thumbnail-renderer",function(){if(Mgv!==void 0)return Mgv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Mgv=V},{mode:1});var Qe=function(){var V=_.E.apply(this,arguments)||this;V.isDarkTheme=!1;V.isUltraWide=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return V};
_.v(Qe,_.E);_.P=Qe.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.DY();var V;(V=_.DY().resolve(_.Vx(_.SS)))!=null&&(V.headerElement=this.hostElement)};
_.P.detached=function(){var V;(V=_.DY().resolve(_.Vx(_.SS)))!=null&&(V.headerElement=void 0)};
_.P.onUpdateHeader=function(V){(V=V.detail)&&this.set("data",V)};
_.P.computeTextDisplayed=function(V){if(V)return V.textDisplayed?V.textDisplayed:V.placeholder};
_.P.gradientColorToLinearGradientStop=function(V){var D=this.isDarkTheme?V.darkThemeColor:V.lightThemeColor;return D?_.aB(D)+" "+((V==null?void 0:V.startLocation)||0)*100+"%":"transparent"};
_.P.onWindowResize=function(){var V;((V=this.data)==null?0:V.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.P.onIronResize=function(V){this.isUltraWide=!V.detail.value};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.onUpdatePlaylistName=function(V){var D=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},V.detail.value));_.pO(this,function(){var f;(f=D.editableTitle)==null||f.resize()})};
_.P.onUpdatePlaylistDescription=function(V){var D=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},V.detail.value));_.pO(this,function(){var f;(f=D.editableDescriptionInlineExpander)==null||f.resize()})};
_.P.getCinematicData=function(V){return _.g(V==null?void 0:V.cinematicContainer,_.Fg)};
_.IG.Object.defineProperties(Qe.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 V,D=(V=this.getCinematicData(this.data))==null?void 0:V.config;return(V=this.isDarkTheme?D==null?void 0:D.darkThemeBackgroundColor:D==null?void 0:D.lightThemeBackgroundColor)?"background-color:"+_.AP(V)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var V;return _.g((V=this.data)==null?void 0:V.descriptionForm,Mro)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f,n;return"background:linear-gradient(to bottom, "+(((n=(D=this.getCinematicData(this.data))==null?void 0:(f=D.gradientColorConfig)==null?void 0:f.map(function(t){return V.gradientColorToLinearGradientStop(t)}))==null?void 0:n.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var V;return _.LA((V=this.data)==null?void 0:V.descriptionTapText)}}});
Qe.prototype.onUpdateHeader=Qe.prototype.onUpdateHeader;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Qe.prototype,"actionHandlerBehavior",void 0);_.S([_.Zv("#description-inline-expander"),_.p("design:type",Object)],Qe.prototype,"descriptionInlineExpander",void 0);
_.S([_.Zv("#editable-description-inline-expander"),_.p("design:type",Object)],Qe.prototype,"editableDescriptionInlineExpander",void 0);_.S([_.q(),_.p("design:type",Object)],Qe.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Qe.prototype,"isUltraWide",void 0);_.S([_.Zv("#editable-title-display"),_.p("design:type",Object)],Qe.prototype,"editableTitle",void 0);_.S([_.R("isUltraWide"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"maxDescriptionLines",null);
_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"noCinematicData",null);_.S([_.bU("yt-new-playlist-header"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Qe.prototype,"onUpdateHeader",null);_.S([_.R("data","isDarkTheme"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"backgroundStyle",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"descriptionFormData",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"getDropdownTheme",null);_.S([_.R("data","isDarkTheme"),_.p("design:type",String),_.p("design:paramtypes",[])],Qe.prototype,"gradientStyle",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qe.prototype,"descriptionTapText",null);
_.S([_.a({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Qe);
_.Y(Qe,"ytd-playlist-header-renderer",function(){if(aaX!==void 0)return aaX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return aaX=V},{mode:_.J2("kevlar_poly_si_batch_j078")?1:2});var hH3;var UyJ;var TF=function(){return _.E.apply(this,arguments)||this};
_.v(TF,_.E);TF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TF.prototype,"data",void 0);_.S([_.a({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],TF);
_.Y(TF,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(UyJ!==void 0)return UyJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return UyJ=V},{mode:1});var bJ=function(){return _.E.apply(this,arguments)||this};
_.v(bJ,_.E);
bJ.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}}}}};
bJ.prototype.computeUsePremiumShowStyle=function(V){if(!V||!V.items)return!1;for(var D=0;D<V.items.length;D++)if(_.g(V.items[D],dy)){var f=void 0;return((f=_.g(V.items[D],dy))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.p("design:type",Boolean)],bJ.prototype,"usePremiumShowStyle",void 0);
_.S([_.a({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],bJ);
_.Y(bJ,"ytd-playlist-sidebar-renderer",function(){if(hH3!==void 0)return hH3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hH3=V},{mode:1});var VXf;var Db0;var foZ=function(V,D,f,n,t,J,H,Q){this.minWidth=V;this.minHeight=D;this.recommendedWidth=f;this.recommendedHeight=n;this.JSC$19675_maxFileSize=t;this.title=J;this.bannerGalleryTitle=H;this.channelId=Q;this.picker_=null;V=_.k0Y("yt-banner");D=V.addView;f=(new ajv("youtubebanner")).addUploadMetadata("silo_id","19");f.opts.ytMaxFileSize=this.JSC$19675_maxFileSize;n=this.recommendedHeight;f.opts.ytRecWidth=this.recommendedWidth;f.opts.ytRecHeight=n;D.call(V,f);V.addView(new _.eN);D=V.addView;f=new _.eN;
f.opts.type="ytbanner";D.call(V,f.JSC$8164_setLabel(this.bannerGalleryTitle));D=V.setTitle(this.title).setSize(1E3);D.urlParamMap_.set("thumbs","orig");f=this.minWidth;n=this.minHeight;if(isNaN(f)||isNaN(n))throw Error("lb`"+f+"`"+n);D.urlParamMap_.set("minSize",f+"x"+n);D.urlParamMap_.set("cropMode","ytcb");this.builder_=V};
foZ.prototype.open=function(){var V=this;return new _.Qf(function(D,f){_.gKo(V.builder_,function(n){n.action=="picked"?D(n):n.action=="cancel"&&f(Error("cm"))});
V.picker_&&V.picker_.dispose();V.picker_=V.builder_.build();V.picker_.setVisible(!0)})};
foZ.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var nWf=function(V){this.channelId=V},tXW=function(V,D){var f="";
D.viewToken&&(f=D.viewToken[2].type);var n=D.docs[0];D=n.crop;V={channel_id:V.channelId,fife_url:n.thumbnails[0].url,photo_id:n.id,is_gallery_image:f=="ytbanner"};D&&(V.crop_top=D.top,V.crop_right=D.right,V.crop_bottom=D.bottom,V.crop_left=D.left);return _.mK9("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:V})};var K3=function(){var V=_.E.apply(this,arguments)||this;V.ariaLabel=null;return V};
_.v(K3,_.E);_.P=K3.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){this.picker&&this.picker.dispose()};
_.P.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.P.computeAriaLabel=function(V){return V};
_.P.onTap=function(){var V=this,D;if((D=this.data)==null||!D.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new foZ(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 f;(f=this.picker)==null||f.open().then(function(n){V.handleBannerPicked(n)},function(){})}};
_.P.handleBannerPicked=function(V){var D=this;this.uploader||(this.uploader=new nWf(this.data.channelId||""));this.message=this.data.uploadingText;tXW(this.uploader,V).then(function(f){D.handleBannerUploadSucceeded(f)},function(f){D.handleBannerUploadFailed(f)})};
_.P.handleBannerUploadSucceeded=function(V){V&&V.errors?this.handleBannerUploadFailed(V):(_.PA(this.hostElement,"yt-banner-updated",V),this.message=null)};
_.P.handleBannerUploadFailed=function(V){this.message=V&&V.errors&&V.errors.length?V.errors[0]:null};
K3.prototype.dataChanged=K3.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],K3.prototype,"componentBehavior",void 0);_.S([_.u(_.dE),_.p("design:type",Object)],K3.prototype,"ironButtonState",void 0);_.S([_.q(),_.p("design:type",Object)],K3.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.p("design:type",Object)],K3.prototype,"ariaLabel",void 0);
_.S([_.q(),_.p("design:type",Object)],K3.prototype,"message",void 0);_.S([_.q(),_.p("design:type",Object)],K3.prototype,"picker",void 0);_.S([_.q(),_.p("design:type",Object)],K3.prototype,"uploader",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K3.prototype,"dataChanged",null);_.S([_.a({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],K3);
_.Y(K3,"ytd-channel-banner-editor-renderer",function(){if(Db0!==void 0)return Db0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Db0=V},{mode:1});var P0w;var oWf=_.WV(["#"]),ye=function(){return _.E.apply(this,arguments)||this};
_.v(ye,_.E);ye.prototype.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V,!0)||_.vS(oWf)};
ye.prototype.dataChanged=function(){var V=this.data;V&&V.targetId&&_.sDr(_.cX(),V.targetId,this.moreIcon)};
ye.prototype.dataChanged=ye.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ye.prototype,"data",void 0);_.S([_.Zv("#more-icon"),_.p("design:type",Object)],ye.prototype,"moreIcon",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ye.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],ye);
_.Y(ye,"ytd-channel-tagline-renderer",function(){if(P0w!==void 0)return P0w;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return P0w=V},{mode:1});var J1B;var ZI=function(){return _.E.apply(this,arguments)||this};
_.v(ZI,_.E);_.P=ZI.prototype;_.P.ready=function(){var V=this;_.Pt(this.hostElement).querySelector("#form").addEventListener("submit",function(D){V.onSubmit(D)})};
_.P.onDataChanged=function(){var V;((V=this.data)==null?0:V.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.P.onIconButtonKeydown=function(V){V.keyCode===13&&this.iconButton.click()};
_.P.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.P.openOnClickHandler=function(){this.input.focus()};
_.P.onSubmit=function(V){V.preventDefault();return!1};
_.P.submitOnEnterKeyUp=function(V){var D;if(V.keyCode===13&&((D=this.data)==null?0:D.expandedText)){V=this.data.endpoint;D=_.sB.unsafeClone(V);var f;((f=_.g(D==null?void 0:D.commandMetadata,_.he))==null?0:f.url)?(_.g(D.commandMetadata,_.he).url=_.qG(_.g(D.commandMetadata,_.he).url,"query",this.data.expandedText),_.g(D,_.jL)&&(_.g(D,_.jL).query=this.data.expandedText),_.PA(this.hostElement,"yt-navigate",{endpoint:D,tempData:{disableCache:!0}})):(f=new _.cI("Error: Trying to navigate to an endpoint without url",
V),_.NG(f))}};
_.P.updateDataExpandedTextFromBinding=function(V){this.set("data.expandedText",V.detail.value)};
_.IG.Object.defineProperties(ZI.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
ZI.prototype.onDataChanged=ZI.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.wlv),_.p("design:type",Object)],ZI.prototype,"ytdExpandableInputBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZI.prototype,"data",void 0);_.S([_.Zv("#input"),_.p("design:type",Object)],ZI.prototype,"input",void 0);_.S([_.Zv("#icon-button"),_.p("design:type",HTMLElement)],ZI.prototype,"iconButton",void 0);
_.S([_.q(),_.p("design:type",String),_.p("design:paramtypes",[])],ZI.prototype,"searchIcon",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZI.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],ZI);
var zMf=_.o5()(ZI,"ytd-expandable-tab-renderer",function(){if(J1B===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);J1B=V}V=J1B;return V},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var r1R;var jM=function(){var V=_.E.apply(this,arguments)||this;V.avatarSize=80;V.ariaLabel=_.Zl("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return V};
_.v(jM,_.E);jM.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
jM.prototype.computeHref=function(V){var D;return((D=_.g(V,_.a2))==null?0:D.url)?this.componentBehavior.computeHref_(V):null};
jM.prototype.onTap=function(){var V,D;(V=this.data)==null||!V.editAvatarServiceEndpoint||((D=_.g(this.data.editAvatarServiceEndpoint,_.a2))==null?0:D.url)||_.DY().resolve(_.fH).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.S([_.u(_.dE),_.p("design:type",Object)],jM.prototype,"ironButtonState",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],jM.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],jM.prototype,"avatarSize",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],jM.prototype,"ariaLabel",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],jM);
_.Y(jM,"ytd-channel-avatar-editor",function(){if(r1R!==void 0)return r1R;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return r1R=V},{mode:1});var HdX=_.MA(function(V){var D=V.data;var f=V.noPadding;var n=V.enableBanner;var t=V.cinematicContainerTopbarOffset;var J=V.allowCinematicContainerOverflow;var H=V.displayAsSidebar;V=V.className;_.BJ(function(){D().tagManagerId&&(_.km(D().tagManagerId,_.XB("GL")),AwW(D().tagManagerId))},"xVTVTe");
var Q=_.KX(CZV,function(){return D().pageHeaderEntityKey});
return _.K("yt-page-header-renderer",{class:_.KT("page-header-renderer-wiz",V)},_.K(_.BW,{data:function(){var T;return((T=Q())==null?0:T.header)?Q().header:(H==null?0:H())&&D().sidebarContent?D().sidebarContent:D().content}},{pageHeaderViewModel:function(T){return _.K(_.cJH,{data:T.data,
noPadding:f,enableBanner:n,cinematicContainerTopbarOffset:t,allowCinematicContainerOverflow:J,displayAsSidebar:function(){return(H==null?void 0:H())&&D().enableSidebarView}})}}))},"Yi");
HdX.idomCompat=!0;_.fT(HdX,"yt-page-header-renderer",{props:{data:_.WX,noPadding:_.WX,enableBanner:_.WX,cinematicContainerTopbarOffset:_.WX,allowCinematicContainerOverflow:_.WX,displayAsSidebar:_.WX,className:_.WX}});_.fT(_.GAY,"yt-image-banner-view-model",{props:{data:_.WX,isPositionRelative:_.WX}});_.fT(_.EMl,"yt-tab-group-shape",{props:{shape:_.WX}});var lJ=function(){var V=_.E.apply(this,arguments)||this;V.expandableCustomTabRenderable=function(D){return RMJ(D,function(){return void V.onSearchNavigate()})};
V.isRichGrid=!1;V.isConstrainedList=!1;V.richGridMiniMode=!1;V.richGridStyle="RICH_GRID_STYLE_UNKNOWN";V.isRichGridShorts=!1;V.responsiveSizing="COMPACT";V.disableGridStateAware=!1;V.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return V};
_.v(lJ,_.E);_.P=lJ.prototype;_.P.computeHeaderDisabled=function(V,D){return D||!V||this.tabsHidden};
_.P.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.P.computeIsRichGridShorts=function(V){return V==="RICH_GRID_STYLE_SHORTS_GRID"||V==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.P.computeImageBannerViewModel=function(){var V,D;return _.g((D=_.g((V=this.data)==null?void 0:V.content,_.I8V))==null?void 0:D.banner,_.YCu)};
_.P.computeHasCinematicContainer=function(){var V,D;return!((D=_.g((V=this.data)==null?void 0:V.content,_.I8V))==null||!D.background)};
_.P.handleHeaderResize=function(){var V=_.Pt(this.hostElement).querySelector("#header");V&&_.PA(V,"iron-resize")};
_.P.handleInsertTabCommand=function(V){var D=_.g(V,PoV);D&&(D.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(f){return f.tabRenderer&&f.tabRenderer.tabIdentifier===D.tabIdentifier})||this.splice("tabs",D.tabIndex||-1,0,D.tab))};
_.P.handleRefreshChannelTabAction=function(V){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===V&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.P.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.wI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.P.observerRichGridSlimItemsPerRow=function(){_.wI(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.P.updateCssVars=function(){this.richGridItemsPerRow&&_.wI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tU("rich_grid_max_item_width",500))+16)-16+"px"})};
_.P.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.wI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.P.onDataChanged=function(){this.handleHeaderResize()};
_.P.onWindowResize=function(){this.handleHeaderResize()};
_.P.onFocusedChanged=function(V){(V=_.x7(V))&&V.is==="tp-yt-paper-tab"&&V.hasRipple()&&(V.getRipple().holdDown=!V.pointerDown&&V.focused)};
_.P.updateSelectedFromBinding=function(V){this.ytdTabbedHeaderBehavior.selected=V.detail.value};
_.P.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.IG.Object.defineProperties(lJ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Xa3(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.imageBannerViewModel)==null?void 0:V.style)==="IMAGE_BANNER_STYLE_INSET"}}});
lJ.prototype.onDataChanged=lJ.prototype.onDataChanged;lJ.prototype.updateCssVarsForResponsiveGrid=lJ.prototype.updateCssVarsForResponsiveGrid;lJ.prototype.updateCssVars=lJ.prototype.updateCssVars;lJ.prototype.observerRichGridSlimItemsPerRow=lJ.prototype.observerRichGridSlimItemsPerRow;lJ.prototype.observerRichGridItemsPerRow=lJ.prototype.observerRichGridItemsPerRow;_.S([_.u(_.zn),_.p("design:type",Object)],lJ.prototype,"ytdGridStateAwareBehavior",void 0);
_.S([_.u(oOX),_.p("design:type",Object)],lJ.prototype,"ytdTabbedHeaderBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],lJ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],lJ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],lJ.prototype,"ytdReduxBehavior",void 0);_.S([_.Zv("#tabs"),_.p("design:type",Object)],lJ.prototype,"tabsElement",void 0);_.S([_.q(),_.p("design:type",Array)],lJ.prototype,"tabs",void 0);_.S([_.q(),_.p("design:type",Object)],lJ.prototype,"expandableCustomTabRenderable",void 0);_.S([_.R("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],lJ.prototype,"tabGroupShape",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],lJ.prototype,"isRichGrid",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],lJ.prototype,"isConstrainedList",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Object)],lJ.prototype,"richGridMiniMode",void 0);_.S([_.q({selector:function(V){return V.ui.richGridStyle}}),
_.p("design:type",Object)],lJ.prototype,"richGridStyle",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.p("design:type",Object)],lJ.prototype,"isRichGridShorts",void 0);_.S([_.q({selector:_.N_}),_.p("design:type",Number)],lJ.prototype,"richGridItemsPerRow",void 0);_.S([_.q({selector:function(V){return V.ui.richGridContainerWidth}}),
_.p("design:type",Number)],lJ.prototype,"richGridContainerWidth",void 0);_.S([_.q({selector:_.yTF}),_.p("design:type",Number)],lJ.prototype,"richGridSlimItemsPerRow",void 0);_.S([_.q(),_.p("design:type",Object)],lJ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],lJ.prototype,"responsiveSizing",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],lJ.prototype,"disableGridStateAware",void 0);
_.S([_.q({computed:"computeImageBannerViewModel(data)"}),_.p("design:type",Object)],lJ.prototype,"imageBannerViewModel",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.p("design:type",Boolean)],lJ.prototype,"hasCinematicContainer",void 0);_.S([_.q({selector:_.x90,reflectToAttribute:!0}),_.p("design:type",Boolean)],lJ.prototype,"guideIsVisibleButNotPersistent",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],lJ.prototype,"hasBanner",null);_.S([_.q({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],lJ.prototype,"hasInsetBanner",null);_.S([_.q({computed:"computeTabsHidden(tabs)",value:!0}),_.p("design:type",Boolean)],lJ.prototype,"tabsHidden",void 0);
_.S([_.KI("richGridItemsPerRow","isRichGrid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lJ.prototype,"observerRichGridItemsPerRow",null);_.S([_.KI("richGridSlimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lJ.prototype,"observerRichGridSlimItemsPerRow",null);
_.S([_.KI("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lJ.prototype,"updateCssVars",null);_.S([_.KI("richGridContainerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lJ.prototype,"updateCssVarsForResponsiveGrid",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lJ.prototype,"onDataChanged",null);
_.S([_.a({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],lJ);
_.Y(lJ,"ytd-tabbed-page-header",function(){if(VXf!==void 0)return VXf;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VXf=V},{mode:1});var whW;var GF=function(){return _.E.apply(this,arguments)||this};
_.v(GF,_.E);GF.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.wI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.IG.Object.defineProperties(GF.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var V,D;return this.componentBehavior.computeIcon_(((D=_.g((V=this.data)==null?void 0:V.badge,_.mMr))==null?void 0:D.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.badge,_.mMr))==null?void 0:D.label}}});
GF.prototype.observerRichGridItemsPerRow=GF.prototype.observerRichGridItemsPerRow;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],GF.prototype,"componentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],GF.prototype,"ytdReduxBehavior",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.uR}),_.p("design:type",Boolean)],GF.prototype,"richGridMiniMode",void 0);
_.S([_.q({selector:_.N_}),_.p("design:type",Number)],GF.prototype,"richGridItemsPerRow",void 0);_.S([_.q(),_.p("design:type",Object)],GF.prototype,"data",void 0);_.S([_.KI("richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GF.prototype,"observerRichGridItemsPerRow",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],GF.prototype,"badgeIconName",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],GF.prototype,"badgeLabel",null);_.S([_.a({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],GF);
_.Y(GF,"ytd-member-hub-profile-renderer",function(){if(whW!==void 0)return whW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return whW=V},{mode:1});var QyW;var eM=function(){return _.E.apply(this,arguments)||this};
_.v(eM,_.E);eM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],eM.prototype,"data",void 0);_.S([_.a({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],eM);
_.Y(eM,"ytd-settings-sidebar-renderer",function(){if(QyW!==void 0)return QyW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return QyW=V},{mode:1});var TpJ;var cD=function(){var V=_.E.apply(this,arguments)||this;V.expandableCustomTabRenderable=function(D){return RMJ(D,function(){return void V.onSearchNavigate()})};
return V};
_.v(cD,_.E);cD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
cD.prototype.onSearchNavigate=function(){this.selected=void 0};
cD.prototype.onTabsChange=function(){var V,D=(V=this.tabs)==null?void 0:V.findIndex(function(f){var n;return f==null?void 0:(n=f.tabRenderer)==null?void 0:n.selected});
D!==void 0&&(this.selected=D)};
cD.prototype.onTabsActive=function(V){if(this.tabs!==void 0){var D,f;(V=(D=this.tabs[V.detail.selected])==null?void 0:(f=D.tabRenderer)==null?void 0:f.endpoint)&&_.PA(this.hostElement,"yt-navigate",{endpoint:V})}};
_.IG.Object.defineProperties(cD.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Xa3(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
cD.prototype.onTabsChange=cD.prototype.onTabsChange;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.zn),_.p("design:type",Object)],cD.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],cD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],cD.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],cD.prototype,"tabs",void 0);_.S([_.q(),_.p("design:type",Number)],cD.prototype,"selected",void 0);_.S([_.R("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],cD.prototype,"tabGroupShape",null);_.S([_.q(),_.p("design:type",Object)],cD.prototype,"expandableCustomTabRenderable",void 0);
_.S([_.R("tabs"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cD.prototype,"tabsEnabled",null);_.S([_.eY("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cD.prototype,"onTabsChange",null);_.S([_.a({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],cD);
_.Y(cD,"ytd-topic-channel-details-renderer",function(){if(TpJ!==void 0)return TpJ;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return TpJ=V},{mode:1});var bd0;var FI=function(){var V=_.E.apply(this,arguments)||this;V.disableGridStateAware=!1;return V};
_.v(FI,_.E);FI.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]]"}}}}}};
FI.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
FI.prototype.updateCssVars=function(){_.wI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tU("rich_grid_max_item_width",500))+16)-16+"px"})};
FI.prototype.updateCssVars=FI.prototype.updateCssVars;FI.prototype.activeChanged=FI.prototype.activeChanged;_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],FI.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],FI.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],FI.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],FI.prototype,"tabs",void 0);_.S([_.q(),_.p("design:type",Boolean)],FI.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],FI.prototype,"disableGridStateAware",void 0);
_.S([_.q({selector:_.N_}),_.p("design:type",Number)],FI.prototype,"richGridItemsPerRow",void 0);_.S([_.q({selector:_.uR}),_.p("design:type",Boolean)],FI.prototype,"richGridMiniMode",void 0);_.S([_.Zv("ytd-carousel-item-renderer"),_.p("design:type",Object)],FI.prototype,"carousel",void 0);_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FI.prototype,"activeChanged",null);
_.S([_.KI("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FI.prototype,"updateCssVars",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],FI);
_.Y(FI,"ytd-carousel-header-renderer",function(){if(bd0!==void 0)return bd0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return bd0=V},{mode:1});var KxW;var y1V=_.WV(["https://www.google-analytics.com/analytics.js"]),g_=function(){var V=_.E.apply(this,arguments)||this;V.scriptAnalyticsAdded=!1;return V};
_.v(g_,_.E);g_.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var V,D=(V=this.data)==null?void 0:V.tagManagerId;D&&(_.km(D,_.XB("GL")),AwW(D))};
g_.prototype.sendGoogleAnalyticsPageview=function(V){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var f=_.gQ.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(f)};
var D=window.ga;D("set","page",window.location.pathname);D.l=+new Date;D("set","forceSSL",!0);D("create",V,"'auto'");D("send","pageview")};
g_.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var V=_.yh("SCRIPT");V.name="ga-analytics";var D=_.t4(y1V);_.Yx(V,D);V.async=!0;_.Pt(this.hostElement).appendChild(V)};
g_.prototype.dataChanged=g_.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],g_.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],g_.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],g_);
_.Y(g_,"ytd-channel-metadata-renderer",function(){if(KxW!==void 0)return KxW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return KxW=V},{mode:1});var ZdR;var jyJ;var vD=function(){return _.E.apply(this,arguments)||this};
_.v(vD,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vD.prototype,"data",void 0);_.S([_.a({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],vD);
_.Y(vD,"ytd-sub-feed-option-renderer",function(){if(jyJ!==void 0)return jyJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return jyJ=V},{mode:1});var lo0;var kT=function(){return _.E.apply(this,arguments)||this};
_.v(kT,_.E);kT.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kT.prototype,"ytRendererStamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kT.prototype,"data",void 0);_.S([_.a({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],kT);
_.Y(kT,"ytd-sub-feed-selector-renderer",function(){if(lo0!==void 0)return lo0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lo0=V},{mode:1});var sN=function(){return _.E.apply(this,arguments)||this};
_.v(sN,_.E);
sN.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}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sN.prototype,"data",void 0);_.S([_.a({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],sN);
_.Y(sN,"ytd-browse-feed-actions-renderer",function(){if(ZdR!==void 0)return ZdR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ZdR=V},{mode:1});var Gho;var ezc;var BD=function(){return _.E.apply(this,arguments)||this};
_.v(BD,_.E);BD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],BD.prototype,"data",void 0);_.S([_.a({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],BD);
_.Y(BD,"ytd-mini-channel-renderer",function(){if(ezc!==void 0)return ezc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ezc=V},{mode:1});var c1q;var d_=function(){return _.E.apply(this,arguments)||this};
_.v(d_,_.E);d_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],d_.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],d_);
_.Y(d_,"ytd-vertical-channel-section-renderer",function(){if(c1q!==void 0)return c1q;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return c1q=V},{mode:1});var uJ=function(){return _.E.apply(this,arguments)||this};
_.v(uJ,_.E);uJ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uJ.prototype,"data",void 0);_.S([_.a({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],uJ);
_.Y(uJ,"ytd-browse-secondary-contents-renderer",function(){if(Gho!==void 0)return Gho;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return Gho=V},{mode:1});var FxR;var NX=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};V.notActive=!1;V.isConstrainedList=!1;return V};
_.v(NX,_.E);_.P=NX.prototype;
_.P.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(V){var D;return(V==null?void 0:(D=V.webComponentHint)==null?void 0:D.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}}}}};
_.P.getPath=function(V,D){var f="data.tabs.#"+D+".";V.tabs[D].tabRenderer?f+="tabRenderer.":V.tabs[D].expandableTabRenderer&&(f+="expandableTabRenderer.");return f+"content.sectionListRenderer"};
_.P.computeDisplayedContent=function(V){this.unlinkPaths("content");if(V&&V.tabs)for(var D=V.tabs.length,f=0;f<D;f++){var n=V.tabs[f].tabRenderer||V.tabs[f].expandableTabRenderer;if(n.selected&&n.content)return this.linkPaths("content",this.getPath(V,f)),n.content}return null};
_.P.computeHasSecondaryColumnData=function(V){return!!V&&!!V.secondaryContents};
_.P.onRetrieveLocation=function(V,D){D.locationRetrieved(D.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);V.stopPropagation()};
_.P.onYtServiceRequestSent=function(V,D){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(D)};
_.P.onYtServiceRequestCompleted=function(V,D){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(D)};
_.P.onReplaceFeedContentAction=function(V){if(!_.c("replace_feed_content_action_killswitch")&&!this.notActive){var D;(V=(D=_.g(V,IjZ))==null?void 0:D.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(V)}};
_.P.handleServiceRequestActions=function(V){if(V=V.actions){V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;var f=void 0;((f=_.g(D,IjZ))==null?0:f.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.g(D,IjZ).items)}}};
NX.prototype.onYtServiceRequestCompleted=NX.prototype.onYtServiceRequestCompleted;NX.prototype.onYtServiceRequestSent=NX.prototype.onYtServiceRequestSent;NX.prototype.onRetrieveLocation=NX.prototype.onRetrieveLocation;_.S([_.u(_.zn),_.p("design:type",Object)],NX.prototype,"ytdGridStateAwareBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],NX.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],NX.prototype,"data",void 0);_.S([_.q({computed:"computeDisplayedContent(data)"}),_.p("design:type",Object)],NX.prototype,"content",void 0);
_.S([_.q({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],NX.prototype,"hasSecondaryColumnData",void 0);_.S([_.q({value:function(){return window.outerHeight>1024?3:2}}),
_.p("design:type",Number)],NX.prototype,"initialCount",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],NX.prototype,"pageSubtype",void 0);_.S([_.Zv("ytd-section-list-renderer"),_.p("design:type",Object)],NX.prototype,"listRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],NX.prototype,"notActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],NX.prototype,"isConstrainedList",void 0);
_.S([_.q(),_.p("design:type",String)],NX.prototype,"responsiveSizing",void 0);_.S([_.bU("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],NX.prototype,"onRetrieveLocation",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],NX.prototype,"onYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],NX.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],NX);
_.Y(NX,"ytd-two-column-browse-results-renderer",function(){if(FxR!==void 0)return FxR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FxR=V},{mode:2});var gWw;var vWR;var mU=function(){var V=_.E.apply(this,arguments)||this;V.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"]);V.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"]);V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return V};
_.v(mU,_.E);_.P=mU.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.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_]]"}}}}}};
_.P.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
_.P.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.computeAlertStyle_=function(V){return V};
_.P.observerElementsPerRow=function(){this.elementsPerRow&&_.wI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.P.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.P.requestElementsPerRow=function(){_.PA(this.hostElement,"yt-request-elements-per-row")};
mU.prototype.onIsVisibleChanged_=mU.prototype.onIsVisibleChanged_;mU.prototype.observerElementsPerRow=mU.prototype.observerElementsPerRow;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mU.prototype,"actionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],mU.prototype,"data",void 0);_.S([_.q({value:6,reflectToAttribute:!0}),_.p("design:type",Number)],mU.prototype,"elementsPerRow",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],mU.prototype,"wrapButtons",void 0);_.S([_.q({value:_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],mU.prototype,"isMusic",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.p("design:type",String)],mU.prototype,"alertStyle",void 0);_.S([_.q({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.p("design:type",Function)],mU.prototype,"dismissBoundButtonTap_",void 0);_.S([_.q({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.p("design:type",Function)],mU.prototype,"acceptBoundButtonTap_",void 0);_.S([_.KI("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mU.prototype,"observerElementsPerRow",null);_.S([_.KI("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mU.prototype,"onIsVisibleChanged_",null);_.S([_.zy({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],mU);
_.Y(mU,"yt-alert-with-actions-renderer",function(){if(vWR===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;gWw===void 0&&(gWw=document.createElement("template"));var n=gWw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);vWR=V}V=vWR;return V},{mode:2});_.fT(_.MA(function(V){function D(G){var F={};return _.K(_.Ow,{text:G,className:_.KT("ytPersonalGreetingViewModelHeadline",(F.ytPersonalGreetingViewModelHeadlineSmall=function(){return Q()===48},F))})}
function f(G,F){return _.K("span",{el:G,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},D(F))}
var n=_.h2(_.Ew(function(){var G;return(G=V.data())==null?void 0:G.rendererContext},void 0,void 0,void 0,!0)),t=_.W2("span"),J=_.W2("span"),H=function(){return V.data().canvasPromoData},Q=function(){var G;
return(G=V.data().bannerHeight)!=null?G:56},T=_.JG3(n,{throttleMs:100}),y=_.JG3(t,{throttleMs:100}),Z=_.JG3(J,{throttleMs:100}),l=function(){return y.width()-T.width()>1};
return _.K("yt-personal-greeting-view-model",{el:n,"aria-hidden":l,class:_.KT(V.className,"ytPersonalGreetingViewModelHost"),style:_.el({height:(0,_.vi)(function(){return l()?0:Q()})})},_.K(_.e,{cond:function(){return V.data().avatar&&!(Z.width()+(V.data().avatar?48:0)-T.width()>1)},
then:function(){return _.K(_.BW,{data:function(){return V.data().avatar}},{decoratedAvatarViewModel:function(G){return _.K(_.kd,{data:G.data,
className:_.KT("ytPersonalGreetingViewModelAvatar")})}})}}),_.K("h1",null,D(function(){var G;
return(H==null?void 0:(G=H())==null?void 0:G.headline)||(Z.width()+(V.data().avatar?48:0)-T.width()>1?V.data().shorterGreeting:V.data().greeting)})),f(J,function(){return V.data().greeting}),f(t,function(){return V.data().shorterGreeting}))},"Zi"),"yt-personal-greeting-view-model",{props:{data:_.WX,
className:_.WX}});var zF=function(){var V=_.E.apply(this,arguments)||this;V.hidden=!1;V.isConstrainedList=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.responsiveSizing="COMPACT";V.attachedPlayers=_.c("kevlar_channel_trailer_multi_attach")?[]:void 0;V.player=null;V.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return V};
_.v(zF,_.E);_.P=zF.prototype;
_.P.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}}}}};
_.P.created=function(){var V=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){V.disposeMastheadAd()}]};
_.P.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new HMw(this.refresh,this.contents))};
_.P.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.P.activeChanged=function(){var V=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=V)};
_.P.tabsChanged=function(){var V=this,D,f;if(this.pageSubtype==="channels"||_.c("kevlar_tab_gestures_for_tabbed_header_data")&&((D=this.data)==null?0:(f=D.header)==null?0:f.carouselHeaderRenderer))this.tabGestures=new N5(this.contents,this.contents,this.hostElement,this.header,function(H){V.ytdReduxBehavior.dispatch(H)});
var n,t,J;D=(n=this.data)==null?void 0:(t=n.contents)==null?void 0:(J=t.twoColumnBrowseResultsRenderer)==null?void 0:J.tabs;this.tabGestures&&this.tabGestures.tabsChanged(D)};
_.P.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.P.engagementPanelsChanged=function(){var V=_.DY().resolve(_.lM);if(V){if(this.engagementPanels)for(var D=_.r(this.engagementPanels),f=D.next();!f.done;f=D.next()){var n=void 0;(f=(n=f.value.identifier)==null?void 0:n.tag)&&V.panelMap.delete(f)}this.engagementPanels=[];var t;D=_.r(((t=this.data)==null?void 0:t.panels)||[]);for(t=D.next();!t.done;t=D.next()){t=_.g(t.value,_.YAR);var J=f=void 0,H=void 0,Q=void 0;if(n=((f=t)==null?void 0:f.targetId)||((J=t)==null?void 0:J.panelIdentifier)||((H=t)==
null?void 0:(Q=H.identifier)==null?void 0:Q.tag))J=f=void 0,(J=(f=V).registerPanelContent)==null||J.call(f,n,{engagementPanelSectionListRenderer:t}),this.engagementPanels.push(t)}}};
_.P.onStampFinished=function(){var V=this;_.pO(this,function(){if(V.tabGestures){var D=V.tabGestures;if(D.scrollPositionNeedsUpdate){var f=_.DY().resolve(_.Vx(_.xl)),n;if((n=D.selectedTab)!=null&&n.title&&f&&(n=f.getCurrentPage())){if(D.scrollPositionForTabs.has(D.selectedTab.title)){var t,J;f=(J=(t=f.getCurrentPage())==null?void 0:t.clientHeight)!=null?J:0;t=D.scrollPositionForTabs.get(D.selectedTab.title);n.setScrollTop(t);f>t+100&&(D.scrollPositionNeedsUpdate=!1)}else n.setScrollTop(Math.min(D.lastVisitedTabScrollPosition!==
void 0?D.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,D.tabsStartAtInPx)),D.scrollPositionNeedsUpdate=!1;D.ytdReduxDispatch(EU3(!1))}}}})};
_.P.loadPage_=function(V){this.initCsi();V&&(this.data=V);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.P.getTitle=function(V){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",V))return this.get("microformat.microformatDataRenderer.title",V);if(this.get("header.feedTabbedHeaderRenderer.title",V))return _.LA(this.get("header.feedTabbedHeaderRenderer.title",V));if(this.get("header.interactiveTabbedHeaderRenderer.title",V))return this.get("header.interactiveTabbedHeaderRenderer.title",V);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
V))return _.LA(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",V));var D,f;return _.c("enable_page_header_page_title")&&(V==null?0:(D=V.header)==null?0:(f=D.pageHeaderRenderer)==null?0:f.pageTitle)?V.header.pageHeaderRenderer.pageTitle:""};
_.P.updateTitle=function(V){_.PA(this.hostElement,"yt-update-title",this.getTitle(V))};
_.P.initCsi=function(){_.kz(this.pageSubtype||"browse",["ol","cpt"])};
_.P.getPlayer=function(){if(_.c("kevlar_channel_trailer_multi_attach")){for(var V=_.r(this.attachedPlayers),D=V.next();!D.done;D=V.next())if(D=D.value,D.isConnected||_.ER(this.hostElement,D))return D;return null}return this.player};
_.P.getPlayerContainer=function(){return null};
_.P.onPlayerAttached=function(V,D){_.c("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(D):this.player=D};
_.P.onPlayerDetached=function(V,D){_.c("kevlar_channel_trailer_multi_attach")?(V=this.attachedPlayers.indexOf(D),V<0||this.attachedPlayers.splice(V,1)):this.player=null};
_.P.getServiceTrackingParams=function(){var V,D;return((V=this.data)==null?void 0:(D=V.responseContext)==null?void 0:D.serviceTrackingParams)||[]};
_.P.setMastheadAd=function(V){V&&V.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=V&&V.mastheadAd};
_.P.dataChanged=function(){var V=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.cwB();_.pO(this,function(){_.JR(V.hostElement,"ytd-update-grid-state-action")})};
_.P.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.P.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var V=this.data.alerts;return V&&V.find(function(D){return!!D.alertWithActionsRenderer})}};
_.P.computeGreetingData=function(){if(this.data&&this.data.alerts){var V=this.data.alerts;return V&&V.find(function(D){return!!D.personalGreetingViewModel})}};
_.P.computeHasMemberHubProfileRenderer=function(V){var D;return!!(V==null?0:(D=V.header)==null?0:D.memberHubProfileRenderer)};
_.P.handleAlertCommand=function(V){this.get("alertCommand.alert.alertWithActionsRenderer",V)&&(V=_.g(V,OKw),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",V.alert))};
_.P.handleYtPlaylistDeletionRedirect=function(V){V=this.get("playlistDeletionRedirectCommand.redirectEndpoint",V);_.PA(this.hostElement,"yt-navigate",{endpoint:V})};
_.P.computeFluidWidth=function(V,D,f){if(D==="mini_app"||f)return!0;var n,t,J;V=V==null?void 0:(n=V.contents)==null?void 0:(t=n.twoColumnBrowseResultsRenderer)==null?void 0:(J=t.tabs)==null?void 0:J.find(function(T){var y;return T==null?void 0:(y=T.tabRenderer)==null?void 0:y.selected});
if(!V)return!1;var H,Q;return!!((H=V.tabRenderer)==null?0:(Q=H.content)==null?0:Q.richGridRenderer)&&!["channel","channels","playables"].includes(D)};
_.P.computeHeaderFluidWidth=function(V){return V==="hashtag-landing-page"};
_.P.computeHasSidebar=function(V){var D;return!!(V.sidebar||((D=V.header)==null?0:D.playlistHeaderRenderer))};
_.P.computeHasPageHeaderSidebar=function(V){var D,f;return!!((D=V.header)==null?0:(f=D.pageHeaderRenderer)==null?0:f.enableSidebarView)};
_.P.computeUseUnifiedShowPageLayout=function(V){if(!V||this.pageSubtype!=="show"||!V.sidebar||!V.sidebar.playlistSidebarRenderer)return!1;V=V.sidebar.playlistSidebarRenderer;if(!V.items)return!1;for(var D=0;D<V.items.length;D++)if(_.g(V.items[D],dy)){var f=void 0;return((f=_.g(V.items[D],dy))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P.computeIsConstrainedList=function(V){return _.c("web_enable_constrained_list_subscriptions_channels")&&V==="subscriptions-channels"};
_.P.computeResponsiveSizing=function(V){return V==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.IG.Object.defineProperties(zF.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D;return((V=this.data)==null?0:(D=V.header)==null?0:D.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var V,D;if(!((V=this.data)==null?0:(D=V.sidebar)==null?0:D.playlistSidebarRenderer))return!1;var f;return(f=this.data)!=null&&f.header?!1:!0}}});
_.IG.Object.defineProperties(zF,{template:{configurable:!0,enumerable:!0,get:function(){if(TzR===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);TzR=V}V=TzR;return V}}});
zF.prototype.dataChanged=zF.prototype.dataChanged;zF.prototype.onPlayerDetached=zF.prototype.onPlayerDetached;zF.prototype.onPlayerAttached=zF.prototype.onPlayerAttached;zF.prototype.onStampFinished=zF.prototype.onStampFinished;zF.prototype.engagementPanelsChanged=zF.prototype.engagementPanelsChanged;zF.prototype.scrollAtTopChanged=zF.prototype.scrollAtTopChanged;zF.prototype.tabsChanged=zF.prototype.tabsChanged;zF.prototype.activeChanged=zF.prototype.activeChanged;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],zF.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],zF.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],zF.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.sn.YtPageBehavior),_.p("design:type",Object)],zF.prototype,"ytPageBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],zF.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zF.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],zF.prototype,"hidden",void 0);
_.S([_.q(),_.p("design:type",Object)],zF.prototype,"mastheadAdData",void 0);_.S([_.q({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.p("design:type",Object)],zF.prototype,"alertBannerData",void 0);_.S([_.q({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.p("design:type",Object)],zF.prototype,"greetingData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],zF.prototype,"pageSubtype",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.p("design:type",Boolean)],zF.prototype,"hasMemberHubProfileRenderer",void 0);_.S([_.q({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],zF.prototype,"hasSidebar",void 0);_.S([_.q({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],zF.prototype,"hasPageHeaderSidebar",void 0);
_.S([_.q({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],zF.prototype,"roundedContainer",void 0);_.S([_.q({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],zF.prototype,"useUnifiedShowPageLayout",void 0);_.S([_.q({computed:"computeIsConstrainedList(pageSubtype)"}),_.p("design:type",Object)],zF.prototype,"isConstrainedList",void 0);
_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zF.prototype,"usePlaylistHeaderRenderer",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zF.prototype,"useOldPlaylistSidebarRenderer",null);_.S([_.q({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.p("design:type",Boolean)],zF.prototype,"fluidWidth",void 0);_.S([_.q({selector:function(V){return V.ui.scrollAtTop}}),
_.p("design:type",Boolean)],zF.prototype,"scrollAtTop",void 0);_.S([_.q({selector:_.M5o}),_.p("design:type",Boolean)],zF.prototype,"tabGesturesIsActive",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],zF.prototype,"darkerDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.p("design:type",Boolean)],zF.prototype,"disableHeaderFluidWidth",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.p("design:type",String)],zF.prototype,"responsiveSizing",void 0);_.S([_.Zv("ytd-two-column-browse-results-renderer"),_.p("design:type",HTMLElement)],zF.prototype,"contents",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],zF.prototype,"header",void 0);_.S([_.Zv("ytd-refresh"),_.p("design:type",Object)],zF.prototype,"refresh",void 0);
_.S([_.KI("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"activeChanged",null);_.S([_.KI("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"tabsChanged",null);_.S([_.KI("scrollAtTop"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"scrollAtTopChanged",null);
_.S([_.q(),_.p("design:type",Object)],zF.prototype,"engagementPanels",void 0);_.S([_.KI("data.panels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"engagementPanelsChanged",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"onStampFinished",null);
_.S([_.bU("yt-player-attached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],zF.prototype,"onPlayerAttached",null);_.S([_.bU("yt-player-detached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],zF.prototype,"onPlayerDetached",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zF.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-browse"})],zF);_.f1.registerService(_.JXX,zF);
_.uW();
}catch(e){_._DumpException(e)}
try{
_.dX("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 nK=function(V){if(!V)return"browse";var D=V.page,f=V.url,n,t,J,H=(n=V.response)==null?void 0:(t=n.responseContext)==null?void 0:(J=t.webResponseContextExtensionData)==null?void 0:J.pageTheme;if(H)D=H.toLowerCase().replace(/_/g,"-");else if(D!=="watch"&&D!=="learning_journey_watch"){var Q,T;if((D==="browse"||D==="settings")&&((Q=V.response)==null?0:(T=Q.sidebar)==null?0:T.settingsSidebarRenderer))D="WEB_PAGE_TYPE_SETTINGS";else{var y,Z;D==="browse"&&((y=V.response)==null?0:(Z=y.metadata)==null?
0:Z.channelMetadataRenderer)?D="channel":f&&(D=_.yu(f)||D)}}return D},Hhc=function(){var V=_.Yw("yt.aba.att");
return V?V:_.hM.instance!==void 0?_.hM.instance.nPJ.bind(_.hM.instance):null},ww3=function(V,D){var f;
return _.w(function(n){return(f=Hhc())?n.return(f(V,D,6E4)):n.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},QOX=function(V,D,f,n,t){D=D===void 0?[]:D;
t=t?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:t}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Vc(V),dialogMessages:D.map(function(J){return _.Vc(J)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(f),serviceEndpoint:t}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(n)}}}}}},TmR=function(V){var D=!!_.Eg().queueProxy;
var f,n,t;V=V==null?void 0:(f=V.response)==null?void 0:(n=f.currentVideoEndpoint)==null?void 0:(t=n.watchEndpoint)==null?void 0:t.playlistId;return!(!D&&!V)},bhR=function(V,D){var f=_.b$();
if(TmR(V))return f.playlistWatchPageActivation=!0;switch(nK(D)){case "yts-products":return f.productDetailsPageActivation=!0;case "mini_app":return f.miniAppPageActivation=!0;case "playables":return f.playablesDestPageActivation=!0;default:return!1}},KWW=function(V,D,f){for(var n=typeof V==="string"?V.split(""):V,t=V.length-1;t>=0;--t)t in n&&D.call(f,n[t],t,V)},yB0=function(V,D){D=_.jYZ(V,D);
D>=0&&_.Lx(V,D)},Zhw=function(V){return Array.prototype.concat.apply([],arguments)},jOZ=function(V){var D=0;
D=D===void 0?0:D;if(!_.jW(V))throw _.TU("uint64");var f=typeof V;switch(D){case 512:switch(f){case "string":return _.wHY(V);case "bigint":return String((0,_.qo)(64,V));default:return _.rrn(V)}case 1024:switch(f){case "string":return _.Qld(V);case "bigint":return _.Lo((0,_.qo)(64,V));default:return _.HoX(V)}case 0:switch(f){case "string":return _.wHY(V);case "bigint":return _.Lo((0,_.qo)(64,V));default:return _.Jrd(V)}default:return _.JZ(D,"Unknown format requested type for int64")}},ldJ=function(V){V!=
null&&(V=V.JSC$6907_value_||"",V=typeof V==="string"?V:new Uint8Array(V));
return V},GVo=function(V){for(var D=_.gQ.apply(1,arguments),f=V[0],n=0;n<V.length-1;n++)f+=String(D[n]),f+=V[n+1];
D=document.implementation.createHTMLDocument("");n=D.createElement("style");D.head.appendChild(n);D=n.sheet;D.insertRule(f,0);if(D.cssRules.length===1&&(f=D.cssRules[0],f instanceof CSSStyleRule))return new _.WS(f.cssText.replace(/</g,"\\3C "))},etf=function(V,D){if(/-[a-z]/.test(D))return null;
if(_.ULp&&V.dataset){if(_.rcF()&&!(D in V.dataset))return null;V=V.dataset[D];return V===void 0?null:V}return V.getAttribute("data-"+_.Kl(D))},FWB=function(){var V=cBo;
_.Yw("yt.ads.biscotti.getId_")||_.M4("yt.ads.biscotti.getId_",V)},geV=function(V){_.M4("yt.ads.biscotti.lastId_",V)},kVV=function(){var V={};
for(_.sb=new veo(V.handleError===void 0?_.mw:V.handleError,V.logEvent===void 0?_.dq:V.logEvent);_.BI.length>0;)switch(V=_.BI.shift(),V.type){case "ERROR":_.sb.logError(V.payload);break;case "EVENT":_.sb.logEvent(V.eventType,V.payload)}},sOv=function(V,D,f){return _.YX9(function(n){return f?n.userIdentifier!==void 0&&!V.includes(n.userIdentifier)&&f.includes(n.publicName):n.userIdentifier!==void 0&&!V.includes(n.userIdentifier)},D)},Bm0=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1)return D=_.G5("YtIdbMeta hasAnyMeta other"),_.b(n,_.YX9(function(t){return t.userIdentifier!==void 0&&t.userIdentifier!==D},V),2);
f=n.yieldResult;return n.return(f.length>0)})},uvv=function(V,D){dYv||(dYv=_.dm.addLowPriorityJob(function(){var f,n,t,J,H;
return _.w(function(Q){switch(Q.nextAddress){case 1:return _.b(Q,_.hU(),2);case 2:f=Q.yieldResult;if(!f)return Q.return();n=!0;_.wx(Q,3);return _.b(Q,sOv(V,f,D),5);case 5:t=Q.yieldResult;if(!t.length){n=!1;Q.jumpTo(6);break}J=t[0];return _.b(Q,_.$J(J.actualName),7);case 7:return _.b(Q,_.WI(J.actualName,f),6);case 6:_.YJ(Q,4);break;case 3:H=_.KW(Q),_.dO(H),n=!1;case 4:_.dm.cancelJob(dYv),dYv=0,n&&uvv(V,D),_.yz(Q)}})}))},Nmw=function(){var V;
return _.w(function(D){return D.nextAddress==1?_.b(D,_.hU(),2):(V=D.yieldResult)?D.return(Bm0(V)):D.return(!1)})},mYc=function(V){var D=100;
D=D===void 0?500:D;var f,n,t,J,H,Q;return _.w(function(T){return T.nextAddress==1?(f=_.XB("INNERTUBE_CONTEXT_CLIENT_NAME",0),n=[f,(0,_.VW)()-2592E6],t=[f,(0,_.VW)()],J=IDBKeyRange.bound(n,t),_.b(T,_.bRd(V),2)):T.nextAddress!=3?(H=T.yieldResult,Q=[],_.b(T,_.S1(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(y){Q.length=0;return _.Dd(y.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:J,direction:"prev"},function(Z){if(Z.getValue()&&Q.length<D)return Q.push(Z.getValue()),
Z.delete().then(function(){return Z.continue()})})}),3)):T.return(Q)})},ztX=function(){var V;
return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.hU(),2);V=D.yieldResult;if(!V||!_.e1()&&!_.c("nwl_init_require_datasync_id_killswitch")||!_.zLn())return D.jumpTo(0);_.CdY=!0;_.RLx.isNwlInitialized=_.CdY;return _.b(D,_.lso().awaitInitialization(),0)})},tw=function(V,D){_.MLL[V]=!0;
var f=_.Ds();f&&f.publish.apply(f,arguments);_.MLL[V]=!1},CkX=function(){if(_.d_9()&&!RtV){var V=function(f){f=f.data;
if(f.op==="serializedGelBatch"){var n=_.hJx.get(f.key);n&&(_.VD9(f.serializedBatch,n.client,n.resolve,n.networklessOptions,n.isIsolated,n.useVSSEndpoint,n.dangerousLogToVisitorSession,n.requestsOutstanding),_.hJx.delete(f.key))}},D=_.BgZ();
D&&(D.addEventListener("message",V),D.onerror=function(){_.hJx.clear()});
RtV=!0}},Pa=function(){this.relativeTimeStart_=_.Vd()},qiX=function(V,D){V!=null&&this.append.apply(this,arguments)},XwW=function(){return _.qi("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},EeZ=function(V,D,f){f=f===void 0?!1:f;
var n,t,J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:_.j1("SOCS",V,34128E3,"youtube.com",!0);if(_.Qd)return t=fetch(D,{method:"POST",mode:_.$o(D),credentials:_.Yo(D),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),J=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.$o("/upgrade_visitor_cookie?eom=1"),credentials:_.Yo("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.b(T,Promise.all([t,J]).then(function(y){return y[1]}),5);
fetch(D,{method:"POST",mode:_.$o(D),credentials:_.Yo(D),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.b(T,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.$o("/upgrade_visitor_cookie?eom=1"),credentials:_.Yo("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:n=T.yieldResult;T.jumpTo(3);break;case 5:n=H=T.yieldResult;case 3:if(!n.ok)throw Error("sf");return _.b(T,n.text(),7);case 7:Q=T.yieldResult,
!Q.includes('"state_switch":true')&&!f||Q.includes("skip_reload_for_test")||window.location.reload(),_.yz(T)}})},ABJ=function(V){return _.w(function(D){return D.nextAddress==1?_.b(D,EeZ(V.socsCookie,V.savePreferenceUrl,!0),2):D.return()})},adR=function(V){return _.w(function(D){return D.nextAddress==1?_.b(D,EeZ(V.socsCookie,V.savePreferenceUrl),2):D.return()})},$Y0=function(V){V=V.xhr.responseText;
if(!_.tc(V,")]}'"))throw new og;V=JSON.parse(V.substr(4));if((V.type||1)>1)throw new og;V=V.id;geV(V);Jw=_.i7(V);Yi0(18E5,2);return V},SiV=function(V,D){D=new ihq(D);
geV("");Jw=_.PVu(D);V>0&&Yi0(12E4,V-1);throw D;},Yi0=function(V,D){_.rO(function(){_.IYZ().then($Y0,function(f){return SiV(D,f)}).thenCatch(_.Kp)},V)},cBo=function(){var V=_.M1J();
if(V!==void 0)return _.Br(V);Jw||(Jw=_.IYZ().then($Y0).thenCatch(function(D){return SiV(2,D)}));
return Jw},WWR=function(){var V=document;
return _.Ac(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(D){return"on"+D.toLowerCase()in V})},pwq=function(V){V.addEventListener("click",function(D){var f=D.target;
f&&f.getAttribute("href")&&(f=f.getAttribute("href"),_.R3(window,f,"_blank"),D.preventDefault(),D.stopImmediatePropagation())})},LWf=function(V){var D,f,n,t=(n=(f=((D=V.mainDownloadsListEntity)!=null?D:{})[_.JT3])==null?void 0:f.refresh)!=null?n:"",J;
V=(J=V.refresh)==null?void 0:J[t];t=V!=null?V:{};return(t==null?0:t.refreshTime)?Number(t==null?void 0:t.refreshTime):0},Idf=function(V,D){var f=_.vR(V);
return D.every(function(n){var t;n=n==null?void 0:(t=n.playbackDataEntity)==null?void 0:t.key;if(!n)return!1;t=_.HR(_.PR(n).entityId,"mainVideoEntity");return!!f[t]})},OhR=function(V){V=_.cR(V.entities);
return _.W4R(V).length},xYJ=function(V,D){if(D){var f;
V=(f=_.wg(V.entities,"downloadQualityPickerEntity",D))!=null?f:void 0}else V=void 0;return V},UYV=function(){Mkv||(_.WR=_.P$Y,Mkv=new htZ);
return Mkv},Vec=function(V){var D=document.getElementsByTagName("ytd-enforcement-message-view-model");
D.length===0||getComputedStyle(D[0]).display==="none"?V(0,"p.h_"):V(1,"p.h_")},DG3=function(){rB=0;
var V=[_.FS(!0)];Ha&&_.JR(Ha,"yt-window-resized",V)},fsc=function(){rB||(rB=_.dm.addLowPriorityJob(DG3,200))},teB=function(){wB=0;
nbX=_.VEp(document);var V=[nbX];Ha&&_.JR(Ha,"yt-window-scrolled",V)},PNW=function(){wB||(wB=_.dm.addLowPriorityJob(teB,200))},Jkq=function(V){V=V===void 0?null:V;
obX.push(_.MY(window,"resize",fsc));obX.push(_.MY(window,"scroll",PNW));V&&(Ha=V)},HyW=function(){var V={isWide:_.ZY.get("wide","0")==="1"},D=_.Gm();
if(D=D.getFlag(165)||D.getFlag(174))V.theme=_.dU(!0);if(_.G0Y()){var f=_.Bo()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V.systemTheme=f}!D&&_.c("parent_tools_enable_app_settings")&&_.pZ(window.location.href).theme!==void 0&&(V.theme=_.dU());if((D=QI)?!_.sB.equals(D,V):V)D={currentValue:V},rk0&&(D.timeSinceLastSnapshotSecs=Math.round(((0,_.VW)()-rk0)/1E3)),QI&&(D.previousValue=QI),_.dq("appSettingsCaptured",D),QI=V,rk0=(0,_.VW)()},w2f=function(V){_.w(function(D){if(D.nextAddress==1)return _.b(D,
V.delete("yt-appshell-assets"),2);
_.yz(D)})},Q2Z=function(V){return _.iE((0,_.qQV)(),V)},byB=function(){var V;
_.w(function(D){return D.nextAddress==1?_.b(D,TQ.getInstance(),2):(V=D.yieldResult)?_.b(D,TqB(V),0):D.jumpTo(0)})},ykR=function(){var V;
_.w(function(D){return D.nextAddress==1?_.b(D,bZ.getInstance(),2):(V=D.yieldResult)?_.b(D,Kwc(V),0):D.jumpTo(0)})},Zy3=function(V){w2f(V);
byB();ykR()},j2B=function(V){var D,f;
return _.w(function(n){if(n.nextAddress==1)return _.b(n,_.$Cc(V),2);if(D=n.yieldResult){var t;a:{if(D.headers&&(t=D.headers.get("date"))&&(t=Date.parse(t),!isNaN(t))){t=Math.round((0,_.VW)()-t);break a}t=-1}f=t;if(f>-1)return n.return(f)}return n.return(-1)})},lsw=function(){var V=_.fx.caches,D=_.EG("IS_SHELL_LOAD"),f,n;
_.w(function(t){if(t.nextAddress==1)return f=-1,D?_.b(t,j2B(V),3):(n=_.k8(),f=Math.round((0,_.VW)()-n),t.jumpTo(2));t.nextAddress!=2&&(f=t.yieldResult);f>=0&&f<2147483648&&_.N1({appInstallDataAgeMs:f});_.yz(t)})},GPv=function(V){var D=_.Y4(_.fx.location.href),f={};
"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(n){var t=D.JSC$8122_queryData_.getValues(n);if(t==null?0:t.length)f[n]=t});
return _.Pl(V,new Map(Object.entries(f)))},eho=function(V){V=V.match(/(.*)::.*::.*/);
if(V!==null)return V[1]},ck0=function(V){if(_.o$R()){var D=Object.keys(window.localStorage);
D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=eho(f);n===void 0||V.includes(n)||self.localStorage.removeItem(f)}}},FwW=function(){if(!_.o$R())return!1;
var V=_.G5(),D=Object.keys(window.localStorage);D=_.r(D);for(var f=D.next();!f.done;f=D.next())if(f=eho(f.value),f!==void 0&&f!==V)return!0;return!1},gbW=function(V){return _.OA("NotificationsDisabled",V)},vbZ=function(){return Notification.permission!="granted"?Promise.resolve():_.hB3().then(function(V){return V?V.pushManager.getSubscription().then(function(D){if(D)return Promise.resolve();
D={userVisibleOnly:!0,applicationServerKey:_.rP("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return V.pushManager.subscribe(D).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},kPR=function(V){return _.hB3().then(function(D){if(!D||!D.active)return Promise.reject(new _.cI("serviceworker.postMessage",V,D));
try{return D.active.postMessage(V),Promise.resolve()}catch(f){return Promise.reject(f)}})},s2c=function(){kPR({type:"notifications_register",
data:_.XB("ID_TOKEN")})},BqR=function(){if(!_.EG("LOGGED_IN"))return Promise.resolve(!1);
var V=_.PI("service_worker_push_force_notification_prompt_tag");return V?_.D2("PromptTags").then(function(D){if(!D)return!0;var f=[];try{f=JSON.parse(D)}catch(n){return!1}return f&&f.indexOf(V)==-1}):Promise.resolve(!1)},dGw=function(){var V=_.tU("service_worker_push_prompt_delay_microseconds");
return V?_.D2("PromptTime").then(function(D){return Promise.resolve(Date.now()-V>(D||0))}):Promise.resolve(!0)},u4J=function(){var V=_.tU("service_worker_push_logged_out_prompt_watches");
return V==-1?Promise.resolve(!1):_.D2("WatchCount").then(function(D){return D>=V})},Nqq=function(){var V=_.V1(document,"yt-push-prompt-modal-bg");
V&&_.ZC(V)},mGB=function(){return _.tU("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.D2("PromptCount").then(function(V){V||(V=0);
return Promise.resolve(V<_.tU("service_worker_push_prompt_cap"))})},zhZ=function(V){return _.EG("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.EG("LOGGED_IN")&&(V===void 0?0:V)?BqR().then(function(D){if(D)return!0;
D=[mGB(),dGw()];_.EG("LOGGED_IN")||D.push(u4J());return Promise.all(D).then(function(f){return f.every(function(n){return n})})}):Promise.resolve(!1)},Rhv=function(){_.D2("PromptCount").then(function(V){return _.OA("PromptCount",V+1)}).then(function(){return _.OA("PromptTime",Date.now())}).then(function(){var V=_.PI("service_worker_push_force_notification_prompt_tag");
if(V)return _.D2("PromptTags").then(function(D){var f=[];if(D)try{f=JSON.parse(D)}catch(n){return!1}f||(f=[]);f.push(V);return _.OA("PromptTags",JSON.stringify(f))})})},qqB=function(){CNX||Nqq()},X2R=function(V){V.style.zIndex=2147483648;
V.style.pointerEvents="auto";V.style.backgroundColor="rgba(0, 0, 0, 0.6)";V.style.width="100%";V.style.height="100vh";V.style.position="absolute";V.style.top="0";V.style.left="0";V.style.border="none"},Ebf=function(){var V=_.V1(document,"yt-push-prompt-modal-bg");
CNX=_.c("service_worker_push_prompt_modal_ignore_click");V?X2R(V):(V=_.FP("div",{id:"yt-push-prompt-modal-bg"}),X2R(V),document.body.appendChild(V),_.LRF(document,"click",qqB))},Akv=function(){var V=arguments;
_.c("service_worker_push_prompt_modal_enable")&&Ebf();return Notification.requestPermission().then(function(D){Nqq();var f=document.getElementById("ticker");f&&(f.className=f.classList.remove("show"));if(D=="granted")return vbZ().then(function(){gbW(!1);s2c();return Promise.resolve(!0)});
D=="denied"&&s2c();return Promise.resolve(!1)}).catch(function(){Nqq();
return Promise.reject.apply(Promise,_.sz(V))})},asB=function(V){V=V===void 0?!1:V;
var D=_.vLX().client;if(D&&D.browserVersion){var f=D.browserVersion,n=D.browserName=="CHROME"&&_.yY(f,"50.0.0")<0;D=D.browserName=="OPERA"&&_.yY(f,"42.0.0")<0;if(n||D)return Promise.resolve()}return _.DrB().then(function(t){if(!t)return Promise.resolve();t=vbZ().then(function(){return kPR({type:"notifications_check_registration",data:_.XB("ID_TOKEN")})});
return Notification.permission!="default"?t.catch(function(){}):t.then(function(){return zhZ(V)}).then(function(J){if(J)return Rhv(),Akv().then(function(){})}).catch(function(){})})},Yq0=function(V){return _.U93(V)?asB():Promise.resolve()},$GR=function(V){var D=V.installing||V.waiting;
return V.active||!D?Promise.resolve(V):new Promise(function(f){var n=function(t){t=t.target;if(t.state==="activated"||t.state==="redundant")D.removeEventListener("statechange",n),f(V)};
D.addEventListener("statechange",n)})},iyo=function(){var V=new _.XTF("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.wK(V,{mainAppWeb:_.Wo()});var D=_.U6l;_.c("service_worker_forward_exp_params")&&(D=GPv(D));try{var f=_.sxZ(D).catch(function(){_.Q7(V,"FAILURE");return new Promise(function(){})});
_.c("service_worker_push_enabled")&&f.then(function(n){_.Q7(V,"SUCCESS");return n}).then($GR).then(Yq0)}catch(n){if(_.Q7(V,"FAILURE"),n.name!=="SecurityError")throw n;
}},Sqv=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&iyo()},WwR=function(V,D){var f={};
D&&(f.serializedYpcFamilyCreateLoggingParams=D);_.dq(V,f);_.uN()},p20=function(V,D){var f={};
f.serializedYpcRefundFlowLoggingParams=D;V&&(f.eventType=V);_.dq("ypcRefundFlowEvent",f);_.uN()},LwB=function(V){V&&_.d0L("transactionFlowSucceeded",V)},IsR=function(V){V&&_.Rr("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},OyB=function(V){var D,f,n,t,J,H,Q;
_.w(function(T){if(T.nextAddress==1)return _.b(T,_.yMX(),2);if(T.nextAddress!=3){if(!T.yieldResult)return T.return(!1);D=[];return _.b(T,_.rk.keys(),3)}f=T.yieldResult;n=_.r(f);for(t=n.next();!t.done;t=n.next())J=t.value,H=_.bjZ(J),Q=H.datasyncId,!Q||V.includes(Q)||D.push(_.rk.delete(J));return T.return(Promise.all(D).then(function(y){return y.some(function(Z){return Z})}))})},xG0=function(){var V,D,f,n,t,J,H;
return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,_.yMX(),2);if(Q.nextAddress!=3){if(!Q.yieldResult)return Q.return(!1);V=_.G5("cache contains other");return _.b(Q,_.rk.keys(),3)}D=Q.yieldResult;f=_.r(D);for(n=f.next();!n.done;n=f.next())if(t=n.value,J=_.bjZ(t),(H=J.datasyncId)&&H!==V)return Q.return(!0);return Q.return(!1)})},MeW=function(){var V=_.DY().resolve(_.Vx(_.Iyu));
return V?V.getCurrentTime():0},hhJ=function(){var V,D,f,n,t,J,H,Q,T,y,Z,l,G,F;
return _.w(function(k){switch(k.nextAddress){case 1:V={},D=_.TFZ(),f=_.r(Object.entries(D)),n=f.next();case 4:if(n.done){k.jumpTo(3);break}t=n.value;J=_.r(t);H=J.next().value;Q=J.next().value;T=H;y=Q;if(!y){k.jumpTo(5);break}return _.b(k,y(),8);case 8:V[T]=k.yieldResult;case 5:n=f.next();k.jumpTo(4);break;case 2:Z=_.r(void 0),l=Z.next();case 9:if(l.done){k.jumpTo(3);break}G=l.value;F=D[G];if(!F){k.jumpTo(10);break}return _.b(k,F(),13);case 13:V[G]=k.yieldResult;case 10:l=Z.next();k.jumpTo(9);break;
case 3:return k.return(V)}})},UGq=function(){var V;
_.w(function(D){if(D.nextAddress==1)return _.b(D,hhJ(),2);V=D.yieldResult;return _.b(D,navigator.clipboard.writeText(JSON.stringify(V,null,2)),0)})},V6R=function(V,D){return _.wg(V.entities,"superThanksSelectedTierEntity",D)},D2B=function(V,D){var f=_.u5x();
_.dj(function(){var n=V.value;if(n)return _.IfR(n,D),_.O0c(n,D,void 0,void 0,void 0,f)},[D])},f5X=function(V){var D;
return(D=V.sharedUi)==null?void 0:D.currentPageType},niw=function(V,D){return{popup:{searchSuggestionReportDialog:{searchQuery:V,
title:_.Zl("SBOX_INAPPROPRIATE_TITLE"),suggestions:D,categoryLabel:_.Zl("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Zl("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Zl("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Zl("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Zl("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Zl("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Zl("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Zl("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Zl("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Zl("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},t6q=function(V){var D,f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O;
return _.w(function(W){switch(W.nextAddress){case 1:return _.b(W,_.bR(),2);case 2:return(D=W.yieldResult)?_.b(W,_.FVR(D),3):W.return();case 3:f=W.yieldResult;if(!f)return W.return();t=((n=f.offlineVideos)==null?void 0:n.length)||0;H=((J=f.offlinePlaylists)==null?void 0:J.length)||0;if(t===0&&H===0)return W.return();Q=0;if(f.offlineVideos)for(T=_.r(f.offlineVideos),y=T.next();!y.done;y=T.next())Z=y.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===Z.videoState&&(Q+=1);V.offline_videos_count=t.toString();_.c("kevlar_log_offline_current_network_type_ks")||
(V.offline_current_network_type=(l=_.KIZ())!=null?l:"CONN_INVALID");_.c("kevlar_log_updated_time_for_smart_downloads")&&(G=_.Ol().getState().entities,F=_.dg(G),k=LWf(G),V.offline_smart_downloads_last_sync_time_ms=F.toString(),V.offline_smart_downloads_next_sync_time_ms=k.toString());V.offline_videos_playable=Q.toString();V.offline_playlists_count=H.toString();if(!_.c("woffle_used_state_report")){W.jumpTo(4);break}f.offlineVideos&&(d=f.offlineVideos.reduce(function(I,x){x.downloadedBytes&&(I+=Number(x.downloadedBytes));
return I},0).toString())&&(V.offline_used_disk_space_bytes=d);
if(!((z=navigator)==null?0:(C=z.storage)==null?0:C.estimate)){W.jumpTo(4);break}return _.b(W,navigator.storage.estimate(),6);case 6:A=W.yieldResult,V.offline_free_disk_space_bytes=(((O=A)==null?void 0:O.quota)||0).toString();case 4:V.offline_client_state=JSON.stringify(f),_.yz(W)}})},PLR=function(V){V=_.r(V);
for(var D=V.next(),f={};!D.done;f={setter$jscomp$5:void 0},D=V.next()){var n=D.value;D=n.params;n=n.service;D&&n&&(f.setter$jscomp$5=_.fRf[n],f.setter$jscomp$5&&D.forEach(function(t){return function(J){var H=J.key;J=J.value;H&&J&&(0,t.setter$jscomp$5)(H,J)}}(f)))}},oiX=function(V){V=V.match(/(.*)::.*::.*/);
if(V!==null)return V[1]},JqB=function(V){if(_.N7X()){var D=Object.keys(window.sessionStorage);
D=_.r(D);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=oiX(f);n===void 0||V.includes(n)||self.sessionStorage.removeItem(f)}}},rqB=function(){if(!_.N7X())return!1;
var V=_.G5(),D=Object.keys(window.sessionStorage);D=_.r(D);for(var f=D.next();!f.done;f=D.next())if(f=oiX(f.value),f!==void 0&&f!==V)return!0;return!1},KK=function(V,D,f){(_.c("desktop_keyboard_shortcut_usage_log")||f&&_.c("web_shorts_keyboard_shortcut_usage_log"))&&(D?_.VI.get(V):_.UA.get(V))&&(V=D?_.fK.get(V):_.Dj.get(V))&&_.p6(_.Ni(),V)},HOR=function(){var V,D;
return typeof CSS!=="undefined"&&((D=(V=CSS).supports)==null?void 0:D.call(V,"selector(:has(*))"))},w13=function(V){return V.visibility!=="hidden"&&V.display!=="none"},TvX=function(V){if(HOR()||V.tagName!=="DETAILS"?!V.matches(QGB):V.querySelector("summary")!==null)return-1;
V=V.getAttribute("tabindex")||"0";return Number(V)},bOq=function(V){return V.some(function(D){return TvX(D)>0})},Ki0=function(V){if(V.textContent)return!0;
if(V instanceof HTMLInputElement){if(!V.labels)return!1;V=_.r(V.labels);for(var D=V.next();!D.done;D=V.next())if(D.value.textContent)return!0}return!1},yqR=function(V){return V.sort(function(D,f){return TvX(f)-TvX(D)})},ZOR=function(V){V=Array.from(V.querySelectorAll(QGB)).filter(function(D){return(w13(D.style)?w13(window.getComputedStyle(D)):!1)&&Ki0(D)});
return bOq(V)?yqR(V):V},jGB=function(V){V=ZOR(V);
V.length>0&&V[0].focus()},l5W=function(V,D){D.stack&&(V.stack+="\n"+D.stack);
return V},cqX=function(V){var D=yI(V,"Content-Type");
if(!D)return null;D=D.toLowerCase();if(D.startsWith("application/json"))return D.startsWith("application/json+protobuf")?new Gto:new _.D7;if(D.startsWith("application/x-protobuf")){V=yI(V,"Content-Transfer-Encoding");if(!V)return new Zj;if(V.toLowerCase()=="base64")return new ed3}return null},NvR=function(V,D,f,n){var t=new Fi0(function(Q,T){return giw.has(T)?Q.sentinel==="gal"&&Q.event!==void 0:!1},function(Q){Q.event?(Q=viR(Q.event),Q=!Q||ktW(n,Q)?!0:_.l4(V.lastEvent,jr,2,lZ)?!_.l4(Q,GQ,1,lZ)&&
!_.l4(Q,jr,2,lZ):!_.l4(Q,GQ,1,lZ)&&!_.l4(Q,jr,3,lZ)):Q=!0;
return Q});
f=_.Pl(V.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",sGZ(f)]]));if(V.nestedOrigins!==void 0)for(var J=_.r(V.nestedOrigins),H=J.next();!H.done;H=J.next())f=_.Pl(f,new Map([["origin",H.value]]));return Bvw(t,f,D).then(function(Q){Q=d2V(Q.event);if(_.l4(Q,GQ,1,lZ)){var T,y=(T=_.zl(Q,GQ,1,lZ))==null?void 0:_.u4(T,2);y&&n.JSC$17302_logErrorEvent(uzX(y));T=_.zl(Q,GQ,1,lZ);_.u4(T,2)===4?(Q=_.zl(Q,GQ,1,lZ),Q={statusCode:11,statusMessage:_.df(Q,
3)}):(Q=_.zl(Q,GQ,1,lZ),Q={statusCode:12,statusMessage:_.df(Q,3)});return Q}_.l4(Q,jr,3,lZ)?(Q=_.zl(Q,jr,3,lZ),Q={statusCode:1,consentLanguageKeys:_.df(Q,2)}):Q={statusCode:1};return Q}).catch(function(Q){return Q.errorCode!==void 0?{statusCode:Q.errorCode,
statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},CLo=function(V){var D={};
if(V===void 0||V===null)return D;V.getToken()!==void 0&&m2o(V.getToken())&&m2o(V.getToken()).length>0&&(D.scopes=new Set(m2o(V.getToken())));V.getToken()!==void 0&&zdW(V.getToken())&&zdW(V.getToken()).length>0&&(D.capabilities=new Set(zdW(V.getToken())));_.df(V,3)!==void 0&&(D.consistencyKey=_.df(V,3));V.getName()!==void 0&&V.getName()!==""&&(D.linkName=V.getName());_.jP(V,RdJ,4)&&(V=_.bW(V,RdJ,4),V=Object.assign({},_.df(V,1)&&{userId:_.df(V,1)},_.df(V,2)&&{displayName:_.df(V,2)},_.df(V,3)&&{email:_.df(V,
3)},_.df(V,5)&&{username:_.df(V,5)},_.df(V,4)&&{profilePicture:_.df(V,4)}),D.profile=V);return D},qEX=function(V,D){var f=V.flowParams,n;
return{serviceId:f.serviceId,sessionId:f.sessionId,currentFlow:V.currentFlow,googleScopesString:D,linkingSessionSerialized:V.session.serialize(),consentLanguageKeys:f.consentLanguageKeys,callerState:V.callerState,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(n=f.partnerConfigMinReadTimestamp)==null?void 0:n.serialize()}},YE0=function(V){var D=V.googleScopes!==void 0?Array.from(V.googleScopes).join(","):"";
X1o(qEX(V,D));D=EiB(V);return D===null?Promise.resolve(AqR):D.start().then(function(f){var n,t=(n=f.link)==null?void 0:n.consistencyKey;return f.statusCode===1&&V.googleScopes!==void 0&&V.googleScopes.size>0&&t!==void 0?(n=V.flowParams,a5R(n.serviceId,n.sessionId,V.googleScopes,t,n.galService,V.config,f)):f})},$2Z=function(V){var D=EiB(V);
return D===null?Promise.resolve(er({statusCode:7,statusMessage:"Failed to create flow object"},V.callerState)):D.complete().then(function(f){var n,t=(n=f.link)==null?void 0:n.consistencyKey;return f.statusCode===1&&V.googleScopes!==void 0&&V.googleScopes.size>0&&t!==void 0?(n=V.flowParams,a5R(n.serviceId,n.sessionId,V.googleScopes,t,n.galService,V.config,f)):er(f,V.callerState)},function(f){return er({statusCode:12,
statusMessage:"Failed to complete the flow: "+f.message},V.callerState)})},a5R=function(V,D,f,n,t,J,H){return iOR(t,{serviceId:V,
sessionId:D,googleScopes:f,consistencyKey:n}).then(function(){return H},function(Q){return t.deleteLink({serviceId:V,
sessionId:D,accountLinkingEntryPoint:J.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+Q.message}},function(T){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+T.message}})})},EiB=function(V){switch(V.currentFlow){case 1:var D=V.flowParams;
V=_.bW(V.session,SEc,1);return ca.createOAuthFlow(D,V);case 2:case 3:return D=V.flowParams,V=_.bW(V.session,WiB,6),F8.createStreamlinedFlow(D,V);default:return null}},p1o=function(V,D){V===2&&(V=3);
var f=0;gB.indexOf(V)!==-1&&(f=gB.indexOf(V)+1);for(V=f;V<gB.length;V++)if(D.has(gB[V]))return gB[V]},OOw=function(V){var D=V.serviceId;
var f=V.sessionId;var n=V.config;var t=V.galService;var J=V.capabilities;var H=V.scopes;var Q=V.loginHint;var T=V.callerState;var y=V.consentLanguageKeys;var Z=V.linkName;var l=V.dynamicUrlParameters;var G=V.partnerConfigMinReadTimestamp;V=n.dataUsageNoticeConfig?n.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return t.startLinkingSession({serviceId:D,sessionId:f,capabilities:J,scopes:H,loginHint:Q,callerState:T,supportedFlows:LiW(n.supportedFlows),completionUrl:n.completionUrl,accountLinkingEntryPoint:n.accountLinkingEntryPoint,
consentLanguageKeys:y,dataUsageNoticeConfig:V,linkName:Z,dynamicUrlParameters:l,partnerConfigMinReadTimestamp:G}).then(function(F){return new I5f(D,f,n,t,F,void 0,T,y,l,G)})},DiX=function(V,D,f){a:{var n=new x2c;
if(n.storage!==null)try{var t=n.storage.get("SAVED_SESSION");if(t===void 0){var J=null;break a}if(t.serviceId===V){J=t;break a}}catch(Q){}J=null}if(J===null)return Promise.resolve({statusCode:2});M6W(V);n=hdR(J.linkingSessionSerialized);t=J.googleScopesString!==""&&J.googleScopesString!==void 0?new Set(J.googleScopesString.split(",")):void 0;var H=J.partnerConfigMinReadTimestampSerialized?U2o(J.partnerConfigMinReadTimestampSerialized):void 0;return Vvw(new I5f(V,J.sessionId,D,f,n,t,J.callerState,
J.consentLanguageKeys,J.dynamicUrlParameters,H),J.currentFlow,J.consentLanguageKeys)},X1o=function(V){var D=new x2c;
D.storage!==null&&D.storage.set("SAVED_SESSION",V)},M6W=function(V){var D=new x2c;
if(D.storage!==null){var f=D.storage.get("SAVED_SESSION");f!==void 0&&f.serviceId===V&&D.storage.remove("SAVED_SESSION")}},LiW=function(V){var D=new Set;
V=_.r(V);for(var f=V.next();!f.done;f=V.next())f=f.value,f!==1&&fkc.has(f)&&D.add(fkc.get(f));return D},er=function(V,D){D!==void 0&&(V.callerState=D);
return V},noR=function(V){switch(V){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},ooX=function(V){return new tvZ(V,new P8c(V))},Hlq=function(V,D){D=D===void 0?!1:D;
var f=document.createElement("div");V&&(f.style.transform="scaleX(-1)");f.style.backgroundColor=D?"rgba(138,180,248,.24)":"#e8f0fe";f.style.height="4px";f.style.overflow="hidden";f.style.position="absolute";f.style.top="0";f.style.width="100%";f.style.zIndex="1500";f.setAttribute("aria-label","Loading");f.setAttribute("aria-live","polite");V=document.createElement("style");V.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  }";
f.appendChild(V);V=JeR();V.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";V.style.left="-145.166611%";var n=re3(D);n.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";V.appendChild(n);f.appendChild(V);V=JeR();V.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";V.style.left="-54.888891%";D=re3(D);D.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
V.appendChild(D);f.appendChild(V);return f},JeR=function(){var V=document.createElement("div");
V.style.height="100%";V.style.position="absolute";V.style.transformOrigin="top left";V.style.width="100%";return V},re3=function(V){var D=document.createElement("span");
D.style.borderTop=V?"4px solid #669df6":"4px solid #4285f4";D.style.display="inline-block";D.style.position="absolute";D.style.width="100%";return D},w8q=function(V){return V==null?void 0:_.JZP(V).valueOf()},KIR=function(V){var D=document.body,f=!1,n=function(){f||(f=!0,Qbc(t,J),setTimeout(function(){D.removeChild(J);
D.removeChild(t)},150))},t=T2R(V,getComputedStyle(D).direction==="rtl",n),J=blB(n);
Qbc(t,J);D.appendChild(J);D.appendChild(t);window.requestAnimationFrame(function(){J.style.opacity="1";t.style.opacity="1";t.style.transform="translate(-50%, -50%) scale(1)";t.children[0].focus()})},T2R=function(V,D,f){var n=document.createElement("div");
n.style.position="fixed";n.style.alignItems="center";n.style.backgroundColor=V?"rgb(32, 33, 36)":"white";n.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";n.style.display="flex";n.style.flexDirection="column";n.style.justifyContent="center";n.style.left="50%";n.style.top="50%";n.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";n.style.zIndex="2002";document.body.clientWidth>=660?(n.style.borderRadius="8px",n.style.minHeight="220px",
n.style.maxHeight="90%",n.style.maxWidth="90%",n.style.minWidth="540px"):(n.style.height="100%",n.style.width="100%");n.setAttribute("aria-label","Error");n.setAttribute("aria-modal","true");n.setAttribute("role","alertdialog");n.addEventListener("keydown",function(J){J.key==="Escape"&&f()});
D=yeZ(V,D,f);n.appendChild(ZlZ(D));n.appendChild(D);var t=document.createElement("img");t.src=V?"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";t.style.height="72px";t.style.width="72px";t.style.color="#9aa0a6";t.setAttribute("alt","");n.appendChild(t);t=document.createElement("h1");t.textContent="Something went wrong.  Try again.";
t.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";t.style.lineHeight="24px";t.style.fontSize="16px";t.style.textAlign="center";t.style.letterSpacing="0.1px";t.style.color=V?"rgb(232,234,237)":"#3c4043";n.appendChild(t);n.appendChild(ZlZ(D));return n},yeZ=function(V,D,f){var n=document.createElement("button");
n.style.backgroundColor="transparent";n.style.border="none";n.style.borderRadius="50%";n.style.cursor="pointer";n.style.outline="none";n.style.padding="12px";n.setAttribute("aria-label","Close dialog");n.style.position="absolute";n.style.top="0";D?n.style.right="0":n.style.left="0";n.addEventListener("focus",function(){n.style.backgroundColor=V?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
n.addEventListener("blur",function(){n.style.backgroundColor="transparent"});
n.addEventListener("mouseenter",function(){n.style.backgroundColor=V?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
n.addEventListener("mouseleave",function(){n.style.backgroundColor="transparent"});
n.addEventListener("click",f);n.addEventListener("keydown",function(t){t.key!=="Enter"&&t.key!=="Space"||f()});
D=document.createElement("img");D.src=V?"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";D.style.display="block";D.style.height="24px";D.style.width="24px";D.setAttribute("alt","");n.appendChild(D);return n},ZlZ=function(V){var D=document.createElement("div");
D.setAttribute("tabindex","0");D.setAttribute("aria-hidden","true");D.addEventListener("focus",function(){return void V.focus()});
return D},blB=function(V){var D=document.createElement("div");
D.style.backgroundColor="rgba(32,33,36,0.6)";D.style.bottom="0";D.style.left="0";D.style.position="fixed";D.style.right="0";D.style.top="0";D.style.transition=" opacity 150 ms linear";D.style.zIndex="2001";D.addEventListener("click",V);return D},Qbc=function(V,D){D.style.opacity="0";
V.style.opacity="0";V.style.transform="translate(-50%, -50%) scale(0.8)"},jbf=function(V,D){V.sandbox&&V.sandbox.add&&(V.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),V.sandbox.add("allow-downloads"));
V.src=D},va=function(V){lkf.call(this,V)},kU=function(V,D){D=D===void 0?!1:D;
this.parsedImageUrl_=null;V instanceof GRq||(eiw==void 0&&(eiw=new ceJ),V=eiw.parse(V.toString(),D));V=this.parsedImageUrl_=V;V.JSC$17514_parsedOptions_==void 0&&((D=V.getOptions())||(D=""),V.JSC$17514_parsedOptions_=(new FIR).parse(D));lkf.call(this,V.JSC$17514_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;V=this.parsedImageUrl_;D=V.uri_.JSC$8122_port_;this.JSC$17516_domain_=V.uri_.JSC$8122_domain_+(D?":"+D:"");this.JSC$17516_query_=this.parsedImageUrl_.uri_.JSC$8122_queryData_.toString()},
goV=function(V){this.mode=4;
this.data=V;this.parsedData=[];V=0;for(var D=this.data.length;V<D;V++){var f=[],n=this.data.charCodeAt(V);n>65536?(f[0]=240|(n&1835008)>>>18,f[1]=128|(n&258048)>>>12,f[2]=128|(n&4032)>>>6,f[3]=128|n&63):n>2048?(f[0]=224|(n&61440)>>>12,f[1]=128|(n&4032)>>>6,f[2]=128|n&63):n>128?(f[0]=192|(n&1984)>>>6,f[1]=128|n&63):f[0]=n;this.parsedData.push(f)}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))},vo0=function(V){this.typeNumber=0;
this.errorCorrectLevel=V===void 0?2:V;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},sa=function(V,D){if(V.length==void 0)throw Error("yk`"+V.length+"`"+D);
for(var f=0;f<V.length&&V[f]==0;)f++;this.num=Array(V.length-f+D);for(D=0;D<V.length-f;D++)this.num[D]=V[D+f]},kR3=function(V,D){this.totalCount=V;
this.dataCount=D},sbR=function(){this.buffer=[];
this.length=0},B20=function(){var V=!1;
if(_.TZY()){V=_.jR();var D="";_.ycF()?(D=/Windows (?:NT|Phone) ([0-9.]+)/,D=(V=D.exec(V))?V[1]:"0.0"):_.Cx()?(D=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,D=(V=D.exec(V))&&V[1].replace(/_/g,".")):_.KXn()?(D=/Mac OS X ([0-9_.]+)/,D=(V=D.exec(V))?V[1].replace(/_/g,"."):"10"):_.TL(_.jR(),"KaiOS")?(D=/(?:KaiOS)\/(\S+)/i,D=(V=D.exec(V))&&V[1]):_.TZY()?(D=/Android\s+([^\);]+)(\)|;)/,D=(V=D.exec(V))&&V[1]):_.ZxY()&&(D=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,D=(V=D.exec(V))&&V[1]);V=D||""}return V},RiW=function(V,
D){this.JSC$17539__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(D)for(var f in D)this.JSC$17539__htOption[f]=D[f];this.JSC$17539__htOption.useSVG&&(diW=uwv);this.JSC$17539__android=B20();this.JSC$17539__el=V;this._oQRCode=null;this._oDrawing=new diW(this.JSC$17539__el,this.JSC$17539__htOption);this.JSC$17539__htOption.text&&(V=this.JSC$17539__htOption.text,this._oQRCode=new vo0(this.JSC$17539__htOption.correctLevel),N23(this._oQRCode,V),D=this._oQRCode,miR(D,!1,ziq(D)),this.JSC$17539__el.title=
V,this._oDrawing.draw(this._oQRCode),this.makeImage())},C8J=function(V,D,f,n,t){V.save();
var J=new Path2D;J.roundRect(D,f,n*7,n*7,n*2);J.roundRect(D+n,f+n,n*5,n*5,n*1.3);J.roundRect(D+2*n,f+2*n,n*3,n*3,n);V.clip(J,"evenodd");V.fillStyle=t;V.fillRect(0,0,V.canvas.width,V.canvas.height);V.restore()},Ba=function(V,D){if(typeof V!=="function")throw Error("Bk");
return _.fx.setTimeout(function(){V()},D)},dB=function(){},X8f=function(V,D,f,n,t){(new dB).debug("TestLoadImageWithRetries: "+t);
if(n==0)f(!1);else{var J=t||0;n--;qX3(V,D,function(H){H?f(!0):_.fx.setTimeout(function(){X8f(V,D,f,n,J)},J)})}},qX3=function(V,D,f){var n=new dB;
n.debug("TestLoadImage: loading "+V);var t=new Image;t.onload=function(){try{n.debug("TestLoadImage: loaded"),Eoo(t),f(!0)}catch(J){}};
t.onerror=function(){try{n.debug("TestLoadImage: error"),Eoo(t),f(!1)}catch(J){}};
t.onabort=function(){try{n.debug("TestLoadImage: abort"),Eoo(t),f(!1)}catch(J){}};
t.ontimeout=function(){try{n.debug("TestLoadImage: timeout"),Eoo(t),f(!1)}catch(J){}};
_.fx.setTimeout(function(){if(t.ontimeout)t.ontimeout()},D);
t.src=V},Eoo=function(V){V.onload=null;
V.onerror=null;V.onabort=null;V.ontimeout=null},Aew=function(){this.front_=[];
this.back_=[]},akR=function(V,D){_.cq.call(this);
this.delay_=new _.gX(this.JSC$17665_onTick_,0,this);_.wX(this,this.delay_);this.JSC$17663_interval_=5E3;this.nextTickTime_=0;if(typeof V==="function")D&&(V=(0,_.F1)(V,D));else if(V&&typeof V.handleEvent==="function")V=(0,_.F1)(V.handleEvent,V);else throw Error("Da");this.JSC$17665_listener_=V},uZ=function(V,D,f,n,t,J,H,Q,T,y,Z,l,G,F){f=f===void 0?!1:f;
n=n===void 0?function(){return""}:n;
t=t===void 0?!1:t;J=J===void 0?!1:J;H=H===void 0?!1:H;Q=Q===void 0?function(){return _.Qv({})}:Q;
T=T===void 0?!1:T;Z=Z===void 0?!1:Z;l=l===void 0?!1:l;G=G===void 0?!1:G;F=F===void 0?!1:F;this.JSC$17666_pathPrefix_=V;this.defaultQueryParams_=D;this.pubsub_=new _.KH;this.reconnectTimer_=new akR(this.safeReconnect_,this);this.JSC$17666_channel_=null;this.JSC$17666_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17666_pendingMessages_=[];this.enableAsyncTest_=f;this.JSC$17666_getXsrfToken_=n;this.useAsyncBrowserChannelHandler_=J;this.getAuthorizationHeader_=
Q;this.getAuthorizationHeaderSync_=y;this.enableCachedUpdateAuthorizationHeader_=H;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Qv();this.enableLoungeTokenRefresh_=t;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=T;this.disableMdxAuthForNonPlaybackMessages_=Z;this.disableMdxAuthForAdMessages_=l;this.enableMdxAuthForConnectionOnly_=G;this.disableMdxAuthForShortsMessages_=F;this.JSC$17666_channelOpenedCounter=new YXv;this.JSC$17666_channelClosedCounter=new $iX;this.channelMessageSentCounter=
new ilZ;this.JSC$17666_channelMessageReceivedCounter=new SXc;this.JSC$17666_channelErrorCounter=new WIv;this.pendingMapsOnClosedCounter=new p8c;this.undeliveredMapsOnClosedCounter=new LIq},NS=function(V){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;V=V||document.location.href;var D=Number(_.OG(V)[4]||null)||"";D&&(this.port=":"+D);this.domain=_.xw(V)||"";V=_.jR();V.search("MSIE")>=0&&_.yY(V.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},m2=function(V){V=V||{};
this.name=V.name||"";this.id=V.id||V.screenId||"";this.token=V.token||V.loungeToken||"";this.uuid=V.uuid||V.dialId||"";this.idType=V.screenIdType||"normal"},Ikf=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(V){var D=Math.random()*16|0;
return(V=="x"?D:D&3|8).toString(16)})},Olv=function(V){return _.dw(V,function(D){return{key:D.id,
name:D.name}})},xiv=function(V,D){return _.Ac(V,function(f){return f||D?!f!=!D?!1:f.id==D.id:!0})},Rg=function(V,D){return _.Ac(V,function(f){return zQ(f,D)})},D1w=function(){var V=Mv3(),D=hiR();
if(Uic()){var f=V,n=_.ccn(f,D);n<0&&_.e9x(f,-(n+1),0,D)}V=VJo(V);if(V.length==0)try{_.w8Y("remote_sid")}catch(t){}else try{_.j1("remote_sid",V.join(","),-1)}catch(t){}},Mv3=function(){var V=_.J5("yt-remote-connected-devices")||[];
V.sort(_.tr);return V},VJo=function(V){if(V.length==0)return[];
var D=V[0].indexOf("#"),f=D==-1?V[0]:V[0].substring(0,D);return _.dw(V,function(n,t){return t==0?n:n.substring(f.length)})},fl0=function(V){_.oC("yt-remote-connected-devices",V,86400)},hiR=function(){if(n8f)return n8f;
var V=_.J5("yt-remote-device-id");V||(V=Ikf(),_.oC("yt-remote-device-id",V,31536E3));for(var D=Mv3(),f=1,n=V;_.i3(D,n);)f++,n=V+"#"+f;return n8f=n},tJ3=function(){return _.J5("yt-remote-session-browser-channel")},Uic=function(){return _.J5("yt-remote-session-screen-id")},JRR=function(V){V.length>5&&(V=V.slice(V.length-5));
var D=_.dw(PCf(),function(n){return n.loungeToken}),f=_.dw(V,function(n){return n.loungeToken});
_.n$9(f,function(n){return!_.i3(D,n)})&&o8X();
_.oC("yt-remote-local-screens",V,31536E3)},PCf=function(){return _.J5("yt-remote-local-screens")||[]},o8X=function(){_.oC("yt-remote-lounge-token-expiration",!0,86400)},CK=function(V){V||(_.rC("yt-remote-session-screen-id"),_.rC("yt-remote-session-video-id"));
D1w();V=Mv3();_.IY(V,hiR());fl0(V)},H6w=function(){rRZ();
return qS?!!qS.get("yt-remote-use-staging-server"):!1},rRZ=function(){if(!qS){var V=_.GRY();
V&&(qS=new _.FT(V))}},b6B=function(V,D,f,n,t){f=f===void 0?function(){return""}:f;
var J=function(){return new uZ(X8(V,"/bc"),D,!1,f,n)};
return _.c("enable_mdx_web_channel_desktop")?new wAo(function(){return new Q4R(X8(V,"/wc"),D,f)}):new TNq(J,t)},j4B=function(){var V=KgX;
yRR();Ea.push(V);Z60()},Aw=function(V,D){yRR();
var f=llR(V,String(D));Ea.length==0?Gm0(f):(Z60(),_.Sd(Ea,function(n){n(f)}))},ag=function(V){Aw("CP",V)},yRR=function(){Ea||(Ea=_.Yw("yt.mdx.remote.debug.handlers_")||[],_.M4("yt.mdx.remote.debug.handlers_",Ea))},Gm0=function(V){var D=(YU+1)%50;
YU=D;e0q[D]=V;cRJ||(cRJ=D==49)},Z60=function(){var V=Ea;
if(e0q[0]){var D=cRJ?YU:-1,f={};do f={record$jscomp$13:void 0},D=(D+1)%50,f.record$jscomp$13=e0q[D],_.Sd(V,function(n){return function(t){t(n.record$jscomp$13)}}(f));
while(D!=YU);e0q=Array(50);YU=-1;cRJ=!1}},llR=function(V,D){var f=(Date.now()-FgJ)/1E3;
f.toFixed&&(f=f.toFixed(3));var n=[];n.push("[",f+"s","] ");n.push("[","yt.mdx.remote","] ");n.push(V+": "+D,"\n");return n.join("")},$U=function(V){_.hy.call(this);
this.JSC$17690_logName_=V;this.screens=[]},Sr=function(V){$U.call(this,"LocalScreenService");
this.JSC$17697_http_=V;this.loungeTokenRefreshTimer_=NaN;iZ(this);this.info("Initializing with "+g8W(this.screens))},Wa=function(V,D){D=D===void 0?!1:D;
$U.call(this,"ScreenService");this.JSC$17703_http_=V;this.disableAutomaticScreenCache_=D;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};v8B(this)},pK=function(V,D,f){_.hy.call(this);
this.JSC$17707_logName_=f;this.JSC$17707_screenService_=V;this.receiver_=D;this.screen_=null},alX=function(V,D,f){f.disableCastApi?LK("Cannot initialize because disabled by Mdx config."):km0()?s4w(V,f)&&(BNJ(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?d1f(D):(window.__onGCastApiAvailable=function(n,t){n?d1f(D):(Ig("Failed to load cast API: "+t),uQV(!1),BNJ(!1),_.rC("yt-remote-cast-available"),_.rC("yt-remote-cast-receiver"),NNc(),D(!1))},f.loadCastApiSetupScript?_.EX("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?m1W()>=60&&z0o():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?R0o():m1W()>=89?CCv():(q2q(),XAv(E8J.map(ARv))))):LK("Cannot initialize because not running Chrome")},NNc=function(){LK("dispose");
var V=Oa();V&&V.dispose();_.M4("yt.mdx.remote.cloudview.instance_",null);Y23(!1);_.hLn($1q);$1q.length=0},i6V=function(){return!!_.J5("yt-remote-cast-installed")},S2J=function(){var V=_.J5("yt-remote-cast-receiver");
return V?V.friendlyName:null},Wgf=function(){LK("clearCurrentReceiver");
_.rC("yt-remote-cast-receiver")},pAw=function(){return i6V()?Oa()?Oa().getCastSession():(Ig("getCastSelector: Cast is not initialized."),null):(Ig("getCastSelector: Cast API is not installed!"),null)},Il0=function(V,D){Lgc()?Oa().setConnectedScreenStatus(V,D):Ig("setConnectedScreenStatus called before ready.")},km0=function(){var V=_.jR().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Tl||V},s4w=function(V,D){var f=!1;
Oa()||(V=new xU(V,D),V.subscribe("yt-remote-cast2-availability-change",function(n){_.oC("yt-remote-cast-available",n);tw("yt-remote-cast2-availability-change",n)}),V.subscribe("yt-remote-cast2-receiver-selected",function(n){LK("onReceiverSelected: "+n.friendlyName);
_.oC("yt-remote-cast-receiver",n);tw("yt-remote-cast2-receiver-selected",n)}),V.subscribe("yt-remote-cast2-receiver-resumed",function(n){LK("onReceiverResumed: "+n.friendlyName);
_.oC("yt-remote-cast-receiver",n);tw("yt-remote-cast2-receiver-resumed",n)}),V.subscribe("yt-remote-cast2-session-change",function(n){LK("onSessionChange: "+O6X(n));
n||_.rC("yt-remote-cast-receiver");tw("yt-remote-cast2-session-change",n)}),_.M4("yt.mdx.remote.cloudview.instance_",V),f=!0);
LK("cloudview.createSingleton_: "+f);return f},Oa=function(){return _.Yw("yt.mdx.remote.cloudview.instance_")},d1f=function(V){uQV(!0);
BNJ(!1);Oa().init(!1,function(D){D?(Y23(!0),_.UZY("yt-remote-cast2-api-ready")):(Ig("Failed to initialize cast API."),uQV(!1),_.rC("yt-remote-cast-available"),_.rC("yt-remote-cast-receiver"),NNc());V(D)})},LK=function(V){Aw("cloudview",V)},Ig=function(V){Aw("cloudview",V)},uQV=function(V){LK("setCastInstalled_ "+V);
_.oC("yt-remote-cast-installed",V)},Lgc=function(){return!!_.Yw("yt.mdx.remote.cloudview.apiReady_")},Y23=function(V){LK("setApiReady_ "+V);
_.M4("yt.mdx.remote.cloudview.apiReady_",V)},BNJ=function(V){_.M4("yt.mdx.remote.cloudview.initializing_",V)},MS=function(V){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(V)},x1W=function(){var V,D;
return _.w(function(f){if(f.nextAddress==1)return(_.qsR()||_.c("use_new_nwl"))&&_.mZL().isNetworkAvailable()?_.b(f,_.hU(),2):f.return();if(f.nextAddress!=3)return(V=f.yieldResult)?_.b(f,mYc(V),3):f.return();D=f.yieldResult;if(!D.length)return f.return();D.forEach(function(n){var t={timestamp:n.timestamp};n=n.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:n.appShellAssetLoadReport,options:t}:n.clientError?{payloadName:"clientError",payload:n.clientError,options:t}:void 0;n&&
_.dq(n.payloadName,n.payload,n.options)});
D.length===100&&_.dm.addLowPriorityJob(x1W);_.yz(f)})},MJo=function(V){if(V.playerResponse){if(V=V.playerResponse,V.messages&&V.messages.length>0&&(V=V.messages.find(function(D){return!(!D||!D.mealbarPromoRenderer)}))&&V.mealbarPromoRenderer)return V.mealbarPromoRenderer}else if(V.response&&(V=V.response)&&V.overlay&&V.overlay.mealbarPromoRenderer)return V.overlay.mealbarPromoRenderer},h0B=function(V){if(V.response){var D=V.response;
if(D&&D.overlay&&D.overlay.tooltipRenderer)return D.overlay.tooltipRenderer}if(V.playerResponse&&(V=V.playerResponse,V.messages&&V.messages.length>0&&(V=V.messages.find(function(f){return!(!f||!f.tooltipRenderer)}))&&V.tooltipRenderer))return V.tooltipRenderer},Vsq=function(V){if(!U1o&&(V=V||_.XB("ZWIEBACK_PING_URLS"))&&V.length){U1o=!0;
for(var D=0;D<V.length;D++)_.Ye(V[D])}},fHJ=function(V){if(_.sB.get(_.XB("PLAYER_VARS",{}),"privembed",!1)!="1"){V&&FWB();
try{D_c().then(function(){},function(){}),_.rO(fHJ,18E5)}catch(D){_.Ah(D)}}},nyc=function(){var V=_.Gm(),D=V.getFlag(119),f=window.devicePixelRatio>1;
document.body&&_.E7(document.body,"exp-invert-logo")&&(f&&!_.E7(document.body,"inverted-hdpi")?_.M3(document.body,"inverted-hdpi"):!f&&_.E7(document.body,"inverted-hdpi")&&_.Om(document.body,"inverted-hdpi"));D!=f&&(_.eJ(0,119,f),V.save())},tsv=function(V){return V.filter(function(D){return"ypcGetCartEndpoint"in D||"ypcFixInstrumentEndpoint"in D})},PRJ=function(V){return V.filter(function(D){return!_.g(D,_.i_U)})},JOc=function(V,D){var f,n,t,J,H,Q,T;
_.w(function(y){switch(y.nextAddress){case 1:f=_.mR.getInstance();n=_.bS.instance;t=_.Yl.instance;if(!t)return oyV(V,n,D),y.return();_.wx(y,2);V.onLoadingCommand&&n.resolveCommand(V.onLoadingCommand);return _.b(y,f.getCurrentPositionFromGeolocation(),4);case 4:J=y.yieldResult;if(!V.resolveLocationCommand){y.jumpTo(5);break}H=f.createLocationInfo(J);return _.b(y,_.ie(t,V.resolveLocationCommand,{locationInfo:H}),6);case 6:Q=y.yieldResult;if(!Q||"error"in Q&&Q.error||Q.errorMetadata)return oyV(V,n,D),
y.return();var Z;if(Q==null?0:(Z=Q.onResponseReceivedActions)==null?0:Z.length){Z=_.r(Q.onResponseReceivedActions);for(var l=Z.next();!l.done;l=Z.next())n.resolveCommand(l.value)}(_.g(V.onSuccessCommand,_.pl)||_.g(V.onSuccessCommand,_.jL))&&_.PA(D.hostElement,"yt-navigate",{endpoint:V.onSuccessCommand,reload:!0});case 5:_.YJ(y,0);break;case 2:T=_.KW(y);if(T instanceof GeolocationPositionError&&T.code===GeolocationPositionError.PERMISSION_DENIED)return V.onDeniedCommand&&n.resolveCommand(V.onDeniedCommand),
y.return();oyV(V,n,D);_.yz(y)}})},oyV=function(V,D,f){V.onFailureCommand&&(D.resolveCommand(V.onFailureCommand),_.o4(f.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},HAw=function(V,D){var f=_.g(V,_.hKP);
if(f&&D){V=f.videoIds||[f.videoId];var n;D=(n=_.PA(D,"yt-lockup-requested",{videoIds:V}).detail)==null?void 0:n.returnValue;var t;f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?t=D?D:V.map(function(J){return{videoId:J,navigationEndpoint:f.videoCommand}}):D&&(t=D);
t&&(n=t.map(function(J){var H=Object,Q=H.assign;var T=J.navigationEndpoint;if(!_.g(T,_.gU)){var y=_.g(T,_.pl);if(y){if(delete y.index,delete y.playlistId,y=_.g(T==null?void 0:T.commandMetadata,_.he),y==null?0:y.url){var Z=y.url;Z=_.Mi(Z,"list");Z=_.Mi(Z,"index");y.url=Z}}else T=void 0}return Q.call(H,{},J,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:T})}),rOV(n,f))}},wRv=function(V){var D=_.Eg();
if(V=_.g(V,_.UkP))V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&D.clearQueue(),V.closeMiniplayer&&_.DY().resolve(_.qw).close(!0)},TgZ=function(V){QWv(_.Eg(),V)},bAq=function(V){var D;
(V=(D=_.g(V,_.xko))==null?void 0:D.setVideoIds)&&V.forEach(function(f){_.fwV(_.Eg(),f)})},yOB=function(V){KqR(_.Eg(),V)},ZAV=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(V){return!1}},jW3=function(){var V,D;
return(D=(V=window).matchMedia)==null?void 0:D.call(V,"(prefers-reduced-motion: reduce)").matches},Gqv=function(V){var D=_.DY().resolve(_.Vx(_.cx));
D&&lHV(D,V)},eIw=function(V,D,f){return{horizontalAlignment:V.x+f.width/2<D.width/2?"west":"east",
verticalAlignment:V.y+f.height/2<D.height/2?"north":"south"}},gyR=function(V,D,f,n,t){t=t===void 0?new _.uB(0,0):t;
return cOc(Fqv(V,D,f,n),t)},Fqv=function(V,D,f,n){return new _.uB(V==="west"?16:f.width-n.width-16,D==="north"?16:f.height-n.height-16)},vyv=function(V,D){var f=0;
V&&(f+=76);D&&(f+=285);return f},kqv=function(V){var D=["h",
"m","s"],f=_.Od(D);f.reverse();var n={};V=(V.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(H){var Q=(H.match(/[hms]/)||[""])[0];return Q?(n[Q]=parseInt(H.match(/\d+/)[0],10),!1):!0});
for(V.reverse();V.length&&f.length;){var t=f.shift();t in n||(n[t]=parseInt(V.shift(),10))}if(V.length||n.s>59||n.m>59||n.h>9)return null;var J="";D.forEach(function(H){n[H]&&(J+=""+n[H]+H)});
return J||null},sWJ=function(V){V=V.data;
return _.K("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.K("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.K(_.xt,{data:{thumbnails:[{url:V.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.K("div",{class:"profile-badge-view-model-wiz__content"},_.K("div",{class:"profile-badge-view-model-wiz__badge-description"},V.badgeDesc),V.badgeSubtitle?_.K("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},V.badgeSubtitle):null))},BgR=function(V){V=
V.data;
var D=_.W2("yt-comment-interaction-view-model");D2B(D,V.rendererContext);return _.K("yt-comment-interaction-view-model",{el:D,class:"yt-comment-interaction-view-model-wiz"},_.K("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":V.onTapA11yLabel,"on:keydown":_.S3Z(),tabindex:0},_.K("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.K("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},V.headerPrefix,' "',V.videoTitle),_.K("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.K("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.K("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},V.commentContent),_.K("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.K(_.xt,{data:{thumbnails:[{url:V.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},uC3=function(V){V=V.data;
return _.K("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},d_v(V.avatar),_.K("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},V.channelName))},Ngc=function(V){V=V.data;
var D;return _.K("div",{class:"yt-profile-info-view-model-wiz__activity"},_.K("div",{class:"yt-profile-info-view-model-wiz__header"},_.K("div",{class:"yt-profile-info-view-model-wiz__section-title"},V.commentsInteractionTitle)),(D=V.comments)==null?void 0:D.map(function(f){return _.K("div",{class:"yt-profile-info-view-model-wiz__activity"},hw(f))}))},m_Z=function(V){V=V.data;
var D=_.A2({elementsCommand:V.subscriptionsAccessButtonCommand}),f=_.W2("a");_.NB9(f,_.Xo(V.subscriptionsAccessButtonCommand));var n;return _.K("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.K("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.K("a",{el:f,"on:click":_.jl(function(t){if(D==null?0:D.onclick)D.onclick(t);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.K("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},V.sharedSubscriptionsTitle),_.K("div",null,hw(V.subscriptionsAccessButton)))),_.K("div",{class:"yt-profile-info-view-model-wiz__subs"},(n=V.sharedSubscriptions)==null?void 0:n.slice(0,5).map(function(t){return _.K("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",hw(t))})))},zIo=function(V){V=V.data;
var D;return _.K("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.K("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.K("h2",{class:"yt-profile-info-view-model-wiz__section-title"},V.sharedSubscriptionsTitle)),_.K("div",{class:"yt-profile-info-view-model-wiz__subs"},(D=V.sharedSubscriptions)==null?void 0:D.slice(0,5).map(function(f){return _.K("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",hw(f))})))},RIv=function(V){V=V.data;
return _.K("div",{class:"yt-profile-info-view-model-wiz__activity"},[V.profileBadgeInfoYtWide,V.profileBadgeInfoChannelWide].map(function(D){var f,n,t,J,H;return D?_.K(_.th,null,_.K("div",{class:"yt-profile-info-view-model-wiz__header"},_.K("div",{class:"yt-profile-info-view-model-wiz__section-title"},D==null?void 0:D.profileSectionTitle),_.K("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.K("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},D==null?void 0:(f=D.commentBadge)==
null?void 0:f.commentDesc),(D==null?0:(n=D.commentBadge)==null?0:n.blackHeartDesc)?_.K("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.K("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.K(_.xt,{data:{thumbnails:[{url:D==null?void 0:(t=D.commentBadge)==null?void 0:t.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.K("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},D==null?void 0:(J=
D.commentBadge)==null?void 0:J.blackHeartDesc))),_.K("div",{class:"yt-profile-info-view-model-wiz__badge"},D==null?void 0:(H=D.badges)==null?void 0:H.map(function(Q){return _.K(sWJ,{data:Q})}))):null}))},CRZ=function(V){V=V.data;
return _.K("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.K(RIv,{data:V}),V.videosHorizontalShelf?_.K("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},hw(V.videosHorizontalShelf)):null,V.comments?_.K(Ngc,{data:V}):null,V.sharedSubscriptionsTitle?V.subscriptionsAccessButtonCommand?_.K(m_Z,{data:V}):_.K(zIo,{data:V}):null)},XR3=function(V){var D=V.data;
V=D?qlV(D.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:D.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"}}):void 0;D=D?qlV(D.profileInfo):void 0;return _.K("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},V,D)},Eyf=function(V,D){var f=_.F$6(D,{},V,!0);
return new Promise(function(n,t){f.listenOnce("n",function(){t(Error("ml`"+f.JSC$26131_getErrorDescription()))});
f.listenOnce("l",function(){var J=f.getResponseCode();if(J!==200)t(Error("nl`"+D+"`"+V.type+"`"+V.size+"`"+J));else try{n(JSON.parse(f.getResponseText()).encryptedBlobId)}catch(H){t(H)}});
f.run()})},AOv=function(V){return V.substring(V.indexOf(":")+1,V.indexOf(";"))},aHW=function(V){return new Promise(function(D,f){var n=new FileReader;
n.onloadend=function(){try{var t=new Uint8Array(n.result);t.length<8&&f(void 0);var J=t.subarray(0,8);t="";for(var H=0;H<J.length;H++)t+=("0"+J[H].toString(16)).substr(-2);t.startsWith("ffd8ff")?D("image/jpeg"):t.startsWith("47494638")?D("image/gif"):t.startsWith("89504e470d0a1a0a")?D("image/png"):t.startsWith("424d")?D("image/bmp"):D(void 0)}catch(Q){f(Q)}};
n.onerror=f;n.readAsArrayBuffer(V)})},Ylc=function(V){return new Promise(function(D,f){var n=new Image;
n.crossOrigin="anonymous";n.onload=function(){var t=document.createElement("canvas");t.width=n.naturalWidth;t.height=n.naturalHeight;var J=t.getContext("2d");if(!J)throw Error("ol");J.drawImage(n,0,0);J=AOv(V);t.toBlob(function(H){H?D(H):f()},J)};
n.src=V})},iAc=function(V,D){var f;
if(((f=_.g(V,_.gU))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var n;_.PA((n=D.hostElement)!=null?n:D,"yt-shorts-reset");_.oDU(_.DY().resolve(_.Z$),V).then(function(J){$_v(J,D,V)})}else{var t;
_.HA((t=D.hostElement)!=null?t:D,[V]).then(function(J){J&&$_v(J.data,D,V)})}},$_v=function(V,D,f){if(V){var n=_.g(V.replacementEndpoint,_.gU);
if(n){V.sequenceContinuation&&(n.sequenceParams=V.sequenceContinuation);var t;_.PA((t=D.hostElement)!=null?t:D,"yt-navigate",{endpoint:V.replacementEndpoint})}else if((V==null?void 0:V.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(V==null?0:V.watchStatus)&&_.g(V.watchStatus,_.zyF)){var J;_.PA((J=D.hostElement)!=null?J:D,"yt-navigate",{endpoint:f})}}},Slv=function(V){var D=_.DY().resolve(_.C1),f=f5X(D.getState())||"";
D=_.uxY(D.getState())||"";f=f==="ytd-browse"&&D==="home";return _.c("web_guide_entry_enable_cache_for_non_home_pages")?(V=(V==null?void 0:V.navigationEndpoint)&&_.Zx(V.navigationEndpoint)==="home",{disableCache:f&&V}):{disableCache:f}},WqX=function(V){if(!V)return!1;
try{if(V.host&&V.host.tagName==="YT-FORMATTED-STRING"&&V.host.id==="contenteditable-textarea"||V.nodeType===Node.ELEMENT_NODE&&V.tagName==="YTD-COMMENT-INPUT")return!0}catch(D){return!1}return WqX(V.parentNode)},Ua=function(V){return V?V.tagName==="A"&&V.href&&V.classList.contains("yt-simple-endpoint"):!1},pRw=function(V){return V?V.tagName==="IMG"&&V.classList.contains("emoji"):!1},Lqq=function(V,D,f){if(!V)return null;
var n=Ua(V);if(n&&f)return D=V.pathname.substring(V.pathname.indexOf("/channel/")+9),document.createTextNode("@"+D);if(n&&!f)return document.createTextNode("");if(pRw(V))return f=V.alt,V=V.dataset.emojiId,!V&&D&&(D=_.jb(D,f))&&D.isCustomEmoji&&(V=D.emojiId),V?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+V+">"):document.createTextNode(f);n=V.cloneNode(!1);for(var t=0;t<V.childNodes.length;++t){var J=Lqq(V.childNodes[t],D,f);J&&n.appendChild(J)}return n},VG=function(V){return V?Ua(V)?V:VG(V.lastChild):
null},IHZ=function(V){return V?Ua(V)?V:IHZ(V.firstChild):null},OA0=function(V){if(!V)return null;
for(var D=V.previousSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.previousSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.previousSibling;else break;(D=VG(D))?V=D:V=(V=V.parentNode)?VG(V.previousElementSibling):null;return V},x_q=function(V){if(!V)return null;
for(var D=V.nextSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.nextSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.nextSibling;else break;return(D=IHZ(D))?D:x_q(V.parentNode)},Msq=function(V){var D=_.GS(),f=D.JSC$9384_getStartNode();
if(!WqX(f.parentNode))return null;D=D.JSC$9384_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var n=_.qr(f,Ua);if(n){if(V&&D===0||!V&&D===f.length)return n}else{if(V&&D===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.eb(f.nextElementSibling,"display")==="block"?null:IHZ(f.nextElementSibling);if(!V&&D===0)return f?VG(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(V){if(0<=D&&D<f.childNodes.length)return IHZ(f.childNodes[D])}else if(0<D&&D<=f.childNodes.length)return VG(f.childNodes[D-
1]);return null},hIX=function(V,D,f){if(!V)return null;
if(V.nodeType===Node.TEXT_NODE)if(f){var n=OA0(V);if(n&&!/^\s+\S/.test(V.wholeText.substr(0,D)))return n}else if((n=x_q(V))&&!/\S\s+/.test(V.wholeText.substr(D,V.wholeText.length)))return n;return V.nodeType===Node.ELEMENT_NODE?f?OA0(V.childNodes[D]):x_q(V.childNodes[D]):hIX(V.parentNode,D,f)},U_X=function(V){if(V.hasChildNodes())switch(V.tagName){case "DIV":case "A":case "SPAN":var D="";
for(V=V.firstChild;V;V=V.nextSibling)D+=U_X(V);return D;default:return""}else switch(V.nodeType){case 3:return V.textContent;default:return""}},VLv=function(V){V=V.data;
return _.K("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.K("div",null,_.K(_.Ow,{text:V.title})),V.subtitle?_.K("div",{class:"ytd-menu-title-renderer__subtitle"},_.K(_.Ow,{text:V.subtitle})):null)},DZq=function(V){switch(V){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"}},fxV=function(V){return V.map(function(D){return{settingsRadioOptionRenderer:{title:_.fA(D.name),
asideText:_.fA(D.approximateSize),id:DZq(D.format)}}})},tLX=function(V){if(V&&V.length!==0)return V.filter(n73()).map(function(D){return{settingsRadioOptionRenderer:{title:D.name,
asideText:D.approximateSize,id:DZq(D.formatType)}}})},Da=function(V){if(V)return V.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},PdB=function(V,D){V=new Set(V!=null?V:[]);
if(V.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(V.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(V.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(V.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(V.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(D)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},o7V=function(V){var D=V.indexOf("(");
return D!==-1?V.substring(D+1,V.length-1):V},JPv=function(V){switch(V){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},HRR=function(V,D,f,n,t,J){var H=_.sB.clone(rPV);
H.locale=_.XB("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;H.report={description:t||"<empty>"};t=_.XB("SBOX_SETTINGS",{});D=D.join(",");var Q=Date.now();V={choice_cc:n,choice_id_cc:f,choices_sc:D,gl:t.REQUEST_DOMAIN,hl:t.REQUEST_LANGUAGE,query:V,time:Q};J&&(V.choice_additional_comment_cc=J);_.dwo(H,V)},woR=function(V){var D=new Map;
D.set("authuser",_.XB("SESSION_INDEX","0"));return _.Pl(V,D)},TUW=function(V){var D;
return _.w(function(f){switch(f.nextAddress){case 1:if(!V||!QBR(V))return f.return(null);D=null;switch(_.XB("INNERTUBE_CLIENT_NAME")){case "WEB":return f.jumpTo(2);case "WEB_REMIX":D=V.getPlayer()}f.jumpTo(3);break;case 2:return _.b(f,V.getPlayerPromise(),4);case 4:D=f.yieldResult;f.jumpTo(3);break;case 3:return f.return(D)}})},QBR=function(V){return["ytd-player",
"ytmusic-player"].includes(String(V.tagName||"").toLowerCase())},bRc=function(V){V=Math.round(V);
return V%2?V-1:V},KRq=function(V){V=Math.round(V);
return V%2===0?V-1:V},yP0=function(V){var D,f,n;
if(V=(D=V.createPlaylistDialogFormSchema)==null?void 0:(f=D.fieldSchemas)==null?void 0:(n=f.title)==null?void 0:n.validationSchema)for(D=[V.syncStep,V.asyncStep].filter(function(t){return t!==void 0}),D=_.r(D),f=D.next();!f.done;f=D.next()){f=f.value.rules;
if(!f)break;f=_.r(f);for(f=f.next();!f.done;f=f.next())return _.g(f.value,_.lCW)}},jBZ=function(V){var D,f,n;
if(V=(D=V.createPlaylistDialogFormSchema)==null?void 0:(f=D.fieldSchemas)==null?void 0:(n=f.visibility)==null?void 0:n.validationSchema)for(D=[V.syncStep,V.asyncStep].filter(function(t){return t!==void 0}),D=_.r(D),f=D.next();!f.done;f=D.next()){f=f.value.rules;
if(!f)break;f=_.r(f);for(n=f.next();!n.done;n=f.next())if(n=_.g(n.value,ZRX))return D=void 0,(D=n.translations)==null?void 0:D.visibilityNotValidErrorMessage}},lx0=function(){var V,D;
return(D=(V=_.DY().resolve(_.Vx(_.pm)))==null?void 0:V())!=null?D:!1},G_R=function(V){var D=21;
if(!V)return D;D+=V.headerTitle?27:0;D+=V.headerTitle&&V.hasHeaderActionHeader?4:0;return D+=V.headerTitle&&V.headerSubtitle?16:0},eLV=function(V){var D=0;
if(!V)return D;D+=V.hasFooterPrimaryButton||V.hasFooterSecondaryButton?48:0;D+=V.footerTrailingLabel||V.footerLeadingLabel?30:0;return D+=V.hasFooterPrimaryButton||V.hasFooterSecondaryButton||!V.footerTrailingLabel&&!V.footerLeadingLabel?0:12},cPJ=function(V){var D=new _.KH,f=V;
return{subscribe:function(n){D.subscribe("changed",n)},
dispatch:function(n,t){var J=f;n==="Touch Start"?f=Object.assign({},J,{isAnimating:!1,initialY:t.event.touches[0].clientY}):n==="Touch Move"?(n=Math.min(t.fullContentWrapperHeight,t.contentHeightMap[t.contentWrapperId]+G_R(t.header)-eLV(t.footer)),f=Object.assign({},J,{currentY:Math.max(t.contentScrollable?-1*(J.initialY-24):0,t.event.touches[0].clientY-J.initialY),maxHeightForContentWrapper:Math.min(n,Math.max(0,(J.isFullScreen?n:t.contentWrapperHeight)-J.currentY))})):f=n==="Snap To Full Screen"?
Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:t.maxHeight}):n==="Snap To Neutral Position"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):n==="Close Sheet"?Object.assign({},J,{isAnimating:!0,currentY:t.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):J;D.publish("changed",f)}}},FRo=function(V){return _.jl(function(D){V(D);
return!1})},g7X=function(){_.DY().resolve(_.Ga).closeSheet()},v7W=function(V){var D,f,n,t,J,H,Q,T,y,Z,l;
return{headerTitle:(D=V.headerTitle)==null?void 0:D.call(V),headerSubtitle:(f=V.headerSubtitle)==null?void 0:f.call(V),headerActionHeader:V.headerActionHeader,footerPrimaryButton:V.footerPrimaryButton,footerSecondaryButton:V.footerSecondaryButton,footerButtonType:(n=V.footerButtonType)==null?void 0:n.call(V),footerLeadingLabel:(t=V.footerLeadingLabel)==null?void 0:t.call(V),footerTrailingLabel:(J=V.footerTrailingLabel)==null?void 0:J.call(V),shouldShowIcons:(H=V.shouldShowIcons)==null?void 0:H.call(V),
skipContentClick:(Q=V.skipContentClick)==null?void 0:Q.call(V),additionalClassName:(T=V.additionalClassName)==null?void 0:T.call(V),onClosedCallback:V.onClosedCallback,focusOnClose:(y=V.focusOnClose)==null?void 0:y.call(V),isDisabled:(Z=V.isDisabled)==null?void 0:Z.call(V),disabledCommand:(l=V.disabledCommand)==null?void 0:l.call(V),headerFn:V.headerFn,contentFn:V.contentFn,footerFn:V.footerFn,hasHeaderFn:V.hasHeaderFn(),hasContentFn:V.hasContentFn(),hasFooterFn:V.hasFooterFn(),hasFooterPrimaryButton:V.hasFooterPrimaryButton(),
hasFooterSecondaryButton:V.hasFooterSecondaryButton(),hasHeaderActionHeader:V.hasHeaderActionHeader()}},k_Z=function(V){switch(V){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""}},sBX=function(V){switch(V){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""}},BUR=function(V){switch(V){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""}},dZR=function(V,D,f){D.forEach(function(n){_.H5(_.DY().resolve(_.cO),n)});
_.o4(V,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",f])},zLB=function(V,D,f,n){var t=_.g(f,_.AT).commandLifeCycleConfig;
t&&t.onStartCommand&&_.wN(V,[t.onStartCommand],D);_.WC(D);var J=_.Yl.instance;J&&_.$l(J,f)?_.ie(J,f,n).then(function(H){if(!H||(H==null?0:H.error))return H=_.g(f,_.AT).serializedTransactionFlowLoggingParams,_.pL(D),_.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",H));_.pL(D);return{data:H}}).then(function(H){_.pL(D);
uSw(H.data);var Q=H.data.command;Q&&_.wN(V,[Q],D);Q=NUW(f,H.data);if(!Q){var T=H.data;H=!1;if(T&&T.command&&_.g(T.command,_.Tm)){var y;T=((y=_.g(T.command,_.Tm))==null?void 0:y.commands)||[];for(y=0;y<T.length;y++)if(_.g(T[y],_.kIo)){H=!0;break}}H||_.sY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!Q&&t&&t.onSuccessCommand?_.wN(V,[t.onSuccessCommand],D):Q&&t&&t.onFailureCommand&&_.wN(V,[t.onFailureCommand],D)},function(){_.pL(D);
t&&t.onFailureCommand&&_.wN(V,[t.onFailureCommand],D);mZJ(f)}):_.NG(Error("Fl"),"ERROR")},RLw=function(V,D,f){var n=[D];
f&&n.push(f);return _.HA(V,n).then(function(t){var J=_.g(D,_.AT).serializedTransactionFlowLoggingParams,H=t.data,Q=NUW(D,H);Q?t=_.Br(new fM(Q,J)):uSw(H);return t},function(){var t=_.g(D,_.AT).serializedTransactionFlowLoggingParams;
mZJ(D);return _.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t))})},NUW=function(V,D){V=_.g(V,_.AT).serializedTransactionFlowLoggingParams;
var f=null;switch(D.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":f="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":f="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":f="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}f?_.LR(f,V):LwB(V);return f},mZJ=function(V){_.LR("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.g(V,_.AT).serializedTransactionFlowLoggingParams)},
uSw=function(V){if(V.trackingParams){var D=_.Ni(),f=_.u8();
D&&f&&_.Y8(D,f,_.gs(V.trackingParams))}},Cd0=function(V,D,f){var n=_.Yl.instance,t=_.Osc(_.XB("YPC_MB_URL")),J=(new _.Ld3).init(),H=_.IzL(),Q=_.g(f,_.c6H).languageCode;
Q===void 0?_.NG(Error("Ji"),"ERROR"):_.eT([J,t]).then(function(){var T={ctk:payments.business.integration.ClientTokenFactory.createClientToken(Q,H)};n&&_.$l(n,f)?_.ie(n,f,T).then(function(y){return{data:y}}).then(function(y){_.PA(D,"yt-service-request-completed",y);
y.code!=="ERROR"&&(y=y.data.command)&&_.wN(V,[y],D)}):_.NG(Error("Fl"),"ERROR")})},E7q=function(V,D,f,n){var t=_.Yl.instance;
t&&_.$l(t,f)?_.ie(t,f,n).then(function(J){return{data:J}}).then(function(J){qsW(V,D,f,J)},function(){XoJ(f)}):(t=_.DY().resolve(_.Vx(_.RB)))&&t.requestDataForServiceEndpoint(f,n).then(function(J){qsW(V,D,f,J)},function(){XoJ(f)})},qsW=function(V,D,f,n){_.PA(D,"yt-service-request-completed",n);
if(n.code&&n.code=="ERROR")XoJ(f);else{(n=n.data.commands)&&_.wN(V,n,D);var t;(V=(t=_.g(f,_.BWV))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&V&&_.Rr("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",V)}},XoJ=function(V){var D;
(V=(D=_.g(V,_.BWV))==null?void 0:D.serializedYpcPauseFlowLoggingParams)&&V&&_.Rr("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Ysv=function(V,D,f){var n=_.Yl.instance;
n&&_.$l(n,f)?_.ie(n,f).then(function(t){return{data:t}}).then(function(t){APf(V,D,f,t)},function(){ax0(f)}):(n=_.DY().resolve(_.Vx(_.RB)))&&n.requestDataForServiceEndpoint(f).then(function(t){APf(V,D,f,t)},function(){ax0(f)})},APf=function(V,D,f,n){_.PA(D,"yt-service-request-completed",n);
n.code&&n.code=="ERROR"?ax0(f):((n=n.data.commands)&&_.wN(V,n,D),(V=_.g(f,_.dP6).serializedYpcResumeFlowLoggingParams)&&V&&_.Rr("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",V))},ax0=function(V){(V=_.g(V,_.dP6).serializedYpcResumeFlowLoggingParams)&&V&&_.Rr("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},$Zv=function(V){V=V===void 0?{}:V;
_.DY().resolve(_.OV6).showFeedbackDialog(V.customProductData,V.feedbackContent,V.onFeedbackSubmitted,V.bucket)},iRB=function(V){V=V===void 0?{}:V;
_.DY().resolve(_.OV6).showHelpDialog(V.helpContext,V.articleId,V.productData)},SsB=function(){iRB()},WRX=function(){$Zv()},LRf=function(V,D,f){var n,t,J,H,Q,T,y;
return _.w(function(Z){switch(Z.nextAddress){case 1:n=_.g(V,poo);if((t=n)==null?0:t.productId){T={productId:n.productId,bucket:n.bucket,enableAnonymousFeedback:(Q=n.enableAnonymousFeedback)!=null?Q:!0,allowNonLoggedInFeedback:!0};y={feedbackChoice:f.feedbackChoice};if(!_.c("web_collect_offline_state")){Z.jumpTo(8);break}_.wx(Z,9);return _.b(Z,t6q(y),11)}H={bucket:(J=n)==null?void 0:J.bucket};if(!_.c("web_collect_offline_state")){Z.jumpTo(4);break}H.customProductData={};_.wx(Z,5);return _.b(Z,t6q(H.customProductData),
7);case 7:_.YJ(Z,4);break;case 5:_.KW(Z);case 4:$Zv(H);Z.jumpTo(0);break;case 11:_.YJ(Z,8);break;case 9:_.KW(Z);case 8:_.ApY(y),_.E_R("GFEEDBACK",y),n.productId==="5295751"&&(y.client_attestation=Number(_.XB("CATSTAT",0))),n.productId==="5295751"&&(y.client_time=Date.now()/1E3/3600),n.productId==="5295751"&&(y.original_playback_id=_.baY||""),_.dwo(T,y),_.yz(Z)}})},Ixf=function(V){if(V=_.g(V,_.xEd)){var D={bucket:V.bucketIdentifier};
V.additionalDatas&&(D.customProductData={},V.additionalDatas.forEach(function(f){if(f=f.userFeedbackEndpointProductSpecificValueData)D.customProductData[f.key]=f.value}));
$Zv(D)}},ORW=function(V){var D=_.Yb.getInstance();
var f=_.Zl("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var n=_.Zl("DELETE",void 0,"Delete"),t=_.Zl("CANCEL",void 0,"Cancel");f=QOX(f,void 0,n,t,{signal:"DELETE_ALL_DOWNLOADS"});_.dl(D,[{openPopupAction:f}],V)},MLJ=function(){return _.w(function(V){return V.nextAddress==1?_.b(V,_.DY().resolve(_.UK),2):_.b(V,xZ0(),0)})},hLB=function(V){var D,f;
return _.w(function(n){return n.nextAddress==1?(f=(D=_.g(V,_.Eq))==null?void 0:D.targetId)?_.b(n,_.DY().resolve(_.UK),3):n.jumpTo(0):_.b(n,_.DY().resolve(_.hg).deleteVideo(f),0)})},VYX=function(V){var D,f;
return _.w(function(n){return n.nextAddress==1?(f=(D=_.g(V,_.Eq))==null?void 0:D.targetId)?_.b(n,_.DY().resolve(_.UK),3):n.jumpTo(0):_.b(n,UZq(_.DY().resolve(_.hg),f),0)})},fvZ=function(V){var D,f;
return _.w(function(n){return(f=(D=_.g(V,_.Eq))==null?void 0:D.targetId)?_.b(n,DAR(f),0):n.jumpTo(0)})},tYZ=function(){_.c("kevlar_woffle_refresh_dl_load_killswitch")||nuR()},ouf=function(){_.c("kevlar_woffle")&&_.NZ.instance&&PUZ()},rAJ=function(V){var D;
if((D=_.g(V,_.Q1))==null||!D.videoId)return!1;JAc(_.DY().resolve(_.hg),_.g(V,_.Q1),V.clickTrackingParams);return!0},wtJ=function(V){var D;
if((D=_.g(V,_.Tv))==null||!D.playlistId)return!1;HI3(_.DY().resolve(_.hg),_.g(V,_.Tv),V.clickTrackingParams);return!0},TIV=function(V){var D=_.g(V,_.jIV);
(D==null?void 0:D.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(D==null?void 0:D.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||QUB(_.DY().resolve(_.hg),_.g(V,_.jIV))},K8c=function(V){V=_.g(V,_.WSl);
var D;(V==null?0:(D=V.actions)==null?0:D.length)&&bIW(V)},jUW=function(V){var D,f;
return _.w(function(n){D=_.g(V,yAR);return(f=D)!=null&&f.localWatchHistoryCommandType?_.b(n,ZIB(D),0):n.return()})},lvc=function(V){setTimeout(function(){requestAnimationFrame(V)},80)},Gyw=function(V){return Object.entries(V).map(function(D){return D.join(":")}).join(";")},cAW=function(V){var D,f,n;
_.w(function(t){if(t.nextAddress==1)return _.b(t,eJV(),2);D=t.yieldResult;f=_.bS.instance;switch(D){case "granted":n=V.getLocationCommand;break;case "denied":n=V.openDeniedDialogAction;break;case "prompt":n=V.openCollectionDialogAction;break;default:n=V.openCollectionDialogAction}n&&f.resolveCommand(n);_.yz(t)})},eJV=function(){var V,D;
return _.w(function(f){if(f.nextAddress==1)return V="prompt",navigator.permissions?_.b(f,navigator.permissions.query({name:"geolocation"}),3):f.jumpTo(2);f.nextAddress!=2&&(D=f.yieldResult,V=D.state);return f.return(V)})},guq=function(){_.w(function(V){return _.b(V,_.F8W(),0)})},vuv=function(){var V,D,f;
return _.w(function(n){if(n.nextAddress==1)return V=_.DY().resolve(_.CR),V?_.b(n,_.ie(V,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.zP(Error("Il")),n.return(void 0));if(D=n.yieldResult){if(D.errorMetadata)return _.zP(Error("Jl`"+D.errorMetadata.status+"`"+D.error)),n.return(void 0);f=D.datasyncIds;_.MAl=f.length;return n.return(f)}_.zP(Error("Kl"));return n.return(void 0)})},kyW=function(){vuv().then(function(V){V&&(uvv(V),OyB(V),ck0(V),JqB(V))})},sU3=function(V){_.dm.addLowPriorityJob(function(){var D,
f,n,t,J;
return _.w(function(H){switch(H.nextAddress){case 1:if(_.c("ytidb_clear_optimizations_killswitch")){H.jumpTo(2);break}D=_.G5("clear");if(D.startsWith("V")&&D.endsWith("||")){var Q=[D];uvv(Q);OyB(Q);ck0(Q);JqB(Q);return H.return()}f=FwW();n=rqB();return _.b(H,xG0(),3);case 3:return t=H.yieldResult,_.b(H,Nmw(),4);case 4:if(J=H.yieldResult,!(f||n||t||J))return H.return();case 2:V.isNetworkAvailable()?kyW():V.listenOnce("publicytnetworkstatus-online",kyW),_.yz(H)}})})},nM=function(V){V={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.pA(V)}}}};_.bS.instance&&_.bS.instance.resolveCommand(V)},BI0=function(V){if(V){var D=_.lS();
_.P5(D,3854,void 0,{layer:0,parentLayer:4});switch(V){case 1:var f=238708;break;case 2:f=238715;break;case 3:f=238710;break;case 6:f=238709}f&&(V=_.jD(D,{veType:f}))&&_.rW(D,V)}},dAV=function(V){if(V){var D=_.lS();
_.P5(D,3854,void 0,{layer:0,parentLayer:4});switch(V){case 1:var f=238714;break;case 2:f=238711;break;case 8:f=238709;break;case 7:f=238713;break;case 3:case 4:case 5:f=238712}f&&(V=_.jD(D,{veType:f}))&&_.rW(D,V)}},u2B=function(V){switch(V.latencyType){case 0:_.mg("consent_primitive_flow");
_.zm("cpit",V.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.zm("cpist",V.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.zm("cprtif",V.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.zm("cprtli",V.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.zm("cprt",V.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.zm("cpdt",V.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.zm("cpjct",V.timestampEpochMillis,"consent_primitive_flow")}},
avB=function(V,D){var f,n,t,J,H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W,I;
return _.w(function(x){switch(x.nextAddress){case 1:_.wx(x,2);(n=(f=_.g(V,NI0))==null?void 0:f.serializedConsentRequest)||(n=(t=_.g(V,mA3))==null?void 0:t.serializedConsentRequest);n&&(J=zJJ(_.rP(n)));if(J===void 0)return x.return();H=RJq(J);H.latencyCallback=u2B;D&&CUf(H,function(){D.then(function(oY){oY.pauseVideo();(new qrc).increment()})});
return((Q=_.g(V,NI0))==null?void 0:Q.consentAction)==="CONSENT_ACTION_PREWARM"||((T=_.g(V,mA3))==null?void 0:T.consentAction)==="CONSENT_ACTION_PREWARM"?_.b(x,XtW(H),5):_.b(x,Euw(H),6);case 6:y=x.yieldResult;Z=_.cb(y,tW);if(Z===1){if(((l=_.zl(y,Pm,1,tW))==null?void 0:_.u4(l,1))===1||((G=_.zl(y,Pm,1,tW))==null?void 0:_.u4(G,1))===2||((F=_.zl(y,Pm,1,tW))==null?void 0:_.u4(F,1))===3)_.g(V,mA3)?nM(_.Zl("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
nM(_.Zl("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));BI0((k=_.zl(y,Pm,1,tW))==null?void 0:_.u4(k,1),_.Vh(y,AA3,3,_.DC()))}else Z===2?(((d=oL(y))==null?void 0:_.u4(d,1))===5?_.g(V,mA3)?nM(_.Zl("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):nM(_.Zl("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((z=oL(y))==null?void 0:_.u4(z,1))===1||((C=oL(y))==null?void 0:_.u4(C,1))===4?nM(_.Zl("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((A=oL(y))==null?void 0:_.u4(A,1))===7&&((O=J)==null?void 0:(W=_.bW(O,JW,4))==null?void 0:_.u4(W,4))!==1&&nM(_.Zl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),dAV((I=oL(y))==null?void 0:_.u4(I,1))):nM(_.Zl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));x.jumpTo(5);break;case 5:_.YJ(x,0);break;case 2:_.KW(x),nM(_.Zl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.yz(x)}})},$Aw=function(){if(!YrR.has("Worker")){YrR.set("Worker",
!0);
var V={api:"BROWSER_API_WEB_WORKER"};V.available="Worker"in window?!0:!1;_.dq("apiTest",V)}},iIw=function(V){return typeof V==="undefined"?"-1":String(Math.ceil(V/1048576))},L8f=function(V,D){Sr3(new W8R(_.g(D,ptf).addToken,_.g(D,ptf).commonToken)).then(function(){_.PA(V,"yt-invoke-instrument-manager-action-completed")},function(f){_.PA(V,"yt-invoke-instrument-manager-action-error",f)})},IvV=function(V){return _.Ek(V)},OI0=function(V){var D=1;
V=V.split(":");for(var f=[];D>0&&V.length;)f.push(V.shift()),D--;V.length&&f.push(V.join(":"));return f},xAZ=function(V,D){D=V.aspectRatio()<=D.aspectRatio()?D.width/V.width:D.height/V.height;
V.scale(D)},MYv=function(V,D){D=V.aspectRatio()>D.aspectRatio()?D.width/V.width:D.height/V.height;
return V.scale(D)},hJw=function(V){var D=new _.ti;
return _.R$(D,11,V)},UAV=function(V){var D={};
V=V.getAllResponseHeaders().split("\r\n");for(var f=0;f<V.length;f++)if(!_.Hn(V[f])){var n=OI0(V[f]),t=n[0];n=n[1];if(typeof n==="string"){n=n.trim();var J=D[t]||[];D[t]=J;J.push(n)}}return _.sB.map(D,function(H){return H.join(", ")})},yI=function(V,D){return V.JSC$7885_xhr_?V.JSC$7885_xhr_.getResponseHeader(D):null},VDv=function(V,D){if(V.isDisposed())throw Error("Ja");
V.vD.xk("n");var f=_.dH(V.vD,function(){return V.lN1([D.yv,D.d56,D.kSi,D.nnq])},"n");
V.vD.jf6(f.length);V.vD.q2();return f},rz=function(V,D,f){Array.isArray(f)||(f=[String(f)]);
_.Jll(V.JSC$8122_queryData_,D,f);return V},PUZ=function(){var V=_.NZ.instance;
_.w(function(D){return V.deferredInstallPrompt?_.b(D,V.deferredInstallPrompt.prompt(),0):D.jumpTo(0)})},D3R=function(V,D,f){if(_.MU(V))_.Sd(V,D,f);
else for(V=_.jOr(V);;){var n=V.next();if(n.done)break;D.call(f,n.value,void 0,V)}},fbc={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}"]},hqV,U3w,VlW,DaR,fn0,nlR,tlR,Pev,olc,DAR,UZq,xZ0,JIJ,rIR,HTB,wjv,QtJ,Tkc,HI3,JAc,bTc,KAo,yIR,nuR,QUB,ZTW,bIW,jto,ZIB,lnw,Gko,eCW,cI0,FAc,glV,vlR,kkc,
stX,Bkc,daw,uhV,lHV,Nk3,maW,zCc,RCW,CeW,qof,XjX,QWv,rOV,ElZ,KM,yG,Za,jg,AIv,ano,Yoq,$aR,iTX,So3,WAJ,pjB,LAB,Inq;fbc={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 ntf=function(V,D){var f=[];D3R(D,function(n){try{var t=_.te.prototype.getWrapper.call(this,n,!0)}catch(J){if(J=="Storage: Invalid value was encountered")return;throw J;}t===void 0?f.push(n):_.Zho(t)&&f.push(n)},V);
return f},tDv=function(V,D){ntf(V,D).forEach(function(f){_.te.prototype.remove.call(this,f)},V)},PSf=function(V){var D=_.AV;
D._minimumZ=Math.max(D._minimumZ,V)},otw=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],J2c=function(V,D){_.Mr(V.ku);V.ku=D},r2X=function(V,D,f,n){V.setState(5);
var t=!!V.jUJ&&otw.includes(_.xw(V.jUJ)||"");try{var J=new _.uG({program:D,globalName:f,yZS:{disable:!_.c("att_web_record_metrics")||!_.c("att_skip_metrics_for_cookieless_domains_ks")&&t,w7:"aGIf"}});J.dLZ.then(function(){V.setState(6);n&&n(D)});
J2c(V,J)}catch(H){V.setState(7),H instanceof Error&&_.zP(H)}},Hm3=function(V,D,f,n,t,J){var H=H===void 0?"trayride":H;
f?(V.setState(2),_.EX(f,function(){if(window[H])r2X(V,n,H,t);else{V.setState(3);var Q=_.MT3(f),T=document.getElementById(Q);T&&(_.DAZ(Q),T.parentNode.removeChild(T));_.zP(new _.cI("BL:ULB",f))}},J)):D?(J=_.yh("SCRIPT"),D instanceof _.Xt?_.a3(J,D):J.textContent=D,J.nonce=_.q8(document),document.head.appendChild(J),document.head.removeChild(J),window[H]?r2X(V,n,H,t):(V.setState(4),_.zP(new _.cI("BL:ULBJ")))):_.zP(new _.cI("BL:ULV"))},wr3=function(){this.state=1;
this.ku=null;this.jUJ=void 0};
_.P=wr3.prototype;_.P.initialize=function(V,D,f,n){this.jUJ=n;if(V.program){var t;n=(t=V.interpreterUrl)!=null?t:null;if(V.interpreterSafeScript)t=_.gyZ(V.interpreterSafeScript);else{var J;t=(J=V.interpreterScript)!=null?J:null}V.interpreterSafeUrl&&(n=_.mW(V.interpreterSafeUrl).toString());Hm3(this,t,n,V.program,D,f)}else _.zP(Error("qf"))};
_.P.isInitialized=function(){return!!this.ku};
_.P.getState=function(){return this.state};
_.P.isLoading=function(){return this.state===2};
_.P.invoke=function(V){V=V===void 0?{}:V;var D;this.ku?D=VDv(this.ku,{yv:V}):D=null;return D};
_.P.dispose=function(){J2c(this,null);this.setState(8)};
_.P.setState=function(V){this.state=V};
var Q5R=function(V,D){return V.ku.snapshot(D)},Tsw=function(V,D){var f=_.tU("botguard_async_snapshot_timeout_ms",3E3);
D=D===void 0?{}:D;f=f===void 0?3E3:f;return V.ku?new Promise(function(n,t){var J=!1,H=_.dm.addJob(function(){J=!0;t(Error("rf"))},1,f);
V.ku?Q5R(V,{yv:D}).then(function(Q){_.dm.cancelJob(H);J||n(Q)}).catch(function(Q){_.dm.cancelJob(H);
J||t(Q)}):(_.dm.cancelJob(H),n(null))}):Promise.resolve(null)},bmV=["att/log"],K7o;
K7o={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var y2J={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},ZmV=function(V,D){return _.ZH(V,{mode:"readwrite",enableRetries:!0},function(f){return _.uLF(f,D,"settingEntity")})},j5o=function(V,D,f){return _.ZH(V,{mode:"readonly",
enableRetries:!0},function(n){return _.MnF(n,D,f)})},lb3=function(V){if(!V.storage)return!1;
a:{if(V.storage){try{var D=V.storage.get("TLPQtimestamp")}catch(f){}V=Number(D);if(!isNaN(V))break a}V=void 0}return V?Date.now()-V<864E5:!1},GKw=function(V){if(V.storage){try{var D=V.storage.get("TLPQindex")}catch(f){}V=Number(D);
if(!isNaN(V))return V}},eqR=function(V,D){V.queueProxy&&D.forEach(function(f){if(f.videoId&&f.trackingParams&&V.queueProxy instanceof _.u$){var n=_.Ni();
V.queueProxy.attributionData.set(f.videoId,{enqueueingVe:_.gs(f.trackingParams).getAsJson(),enqueueingCsn:n?n:void 0,clientEnqueueingTimeMs:Math.floor((0,_.VW)()).toString()})}})},c2W=function(V){var D=_.mhu(V);
D!=V.currentSnapState_&&(V.currentSnapState_=D,V.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Hm=function(V){this.JSC$11190_networkManager_=V;
this.partCallbacks_=[]};
Hm.prototype.getCacheKeyForEndpoint=function(V){return _.QK3(V,!1)};
Hm.prototype.onPartsCallback_=function(V){this.partCallbacks_.forEach(function(D){V&&D(V)})};
var wz=function(V,D,f){Hm.call(this,V);this.player_=D;this.autoplayData_=f};
_.v(wz,Hm);wz.prototype.getCacheKeyForEndpoint=function(V){return _.QK3(V,!!this.autoplayData_)};
wz.prototype.getTempData=function(V,D){D=D.timeBeforeNextVideo;V={itct:V.clickTrackingParams,lact:_.Vf(),pbis:D,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(V.autonav=1);return V};
wz.prototype.getXhrParams=function(V){return Object.assign({pbj:"prefetch"},V)};
wz.prototype.getParams=function(V){V={frags:V.fragmentsRequested.join(",")};_.c("kevlar_droppable_prefetchable_requests")&&(V.prefetch=1);return V};
var F7o=function(V){V.playerEvents_.forEach(function(D){V.player.removeEventListener(D.eventName,D.callback)});
V.playerEvents_.length=0},QG=function(V,D,f){this.player=V;
this.JSC$11200_taskManager=D;this.prefetchDelay=f;this.completionResolver_=null;this.playerEvents_=[]};
QG.prototype.start=function(){var V=this;this.completionResolver_=_.Sl();_.cT(this.completionResolver_.promise,function(){F7o(V);V.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var gt0=function(V,D,f){V.player.addEventListener(D,f);V.playerEvents_.push({eventName:D,callback:f})},vtq={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},kKX={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},s5W=function(V,D,f){QG.call(this,V,D,f);this.cueId_="playbackTrigger-"+Math.random()};
_.v(s5W,QG);
s5W.prototype.prepareTrigger=function(V){var D=this,f=this.player.getDuration(),n=this.player.getVideoData(),t=n.isLive&&n.hasProgressBarBoundaries;if(t&&n.progressBarEndPositionUtcTimeMillis){var J=n.progressBarEndPositionUtcTimeMillis/1E3;isNaN(J)||(f=J)}var H=0;this.prefetchDelay>=0?t?n.progressBarStartPositionUtcTimeMillis&&(n=n.progressBarStartPositionUtcTimeMillis/1E3,isNaN(n)||(H=n+this.prefetchDelay)):H=this.prefetchDelay:H=f+this.prefetchDelay;t?this.player.addUtcCueRange(this.cueId_,H,f):
this.player.addCueRange(this.cueId_,H,f);_.cT(V.promise,function(){D.player.removeCueRange(D.cueId_)});
gt0(this,"onCueRangeEnter",function(Q){Q==D.cueId_&&V.resolve(f-H)})};
var Bsw=function(V,D){V.fragmentConfiguration_[D].requiredKeys.every(function(f){return!!V.prefetchedData_[f]})&&(V.validatedFragments_.push(D),D=V.missingFragments_.indexOf(D),D!==-1&&V.missingFragments_.splice(D,1))},d30=function(V){V.prefetchedFragments_.forEach(function(D){Bsw(V,D)})},uoB=function(V,D,f){this.pageFragments_=V;
this.prefetchedFragments_=D;this.fragmentConfiguration_=kKX;this.prefetchedData_=f;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;d30(this)},NsJ=function(){},m3c=function(V){this.JSC$11214_playlistManager_=V};
_.v(m3c,NsJ);m3c.prototype.getPrefetchEndpoint=function(){return this.JSC$11214_playlistManager_.getAutoplayEndpoint()};
var zqc=function(V){this.autonavEndpoints_=V};
_.v(zqc,NsJ);zqc.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Rqf=function(V,D,f,n,t){this.autonavEndpoints=V;this.foregroundTrigger=D;this.backgroundTrigger=f;this.pageType=n;this.isInPlaylist=t},CS0=function(V,D){if(V.webPrefetchData&&V.webPrefetchData.navigationEndpoints&&V.webPrefetchData.navigationEndpoints.length){V=V.webPrefetchData.navigationEndpoints;
var f=_.g(V[0],_.pl);if(f.watchEndpointSupportedPrefetchConfig&&f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var n=f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;f=n.playbackRelativeSecondsPrefetchCondition;f=typeof f==="number"&&Math.abs(f)<D.videoDuration?f:void 0;n=n.countdownUiRelativeSecondsPrefetchCondition;n=typeof n!=="number"||_.c("prefetch_job_config_cleanup_ks")&&D.inPlaylist?void 0:n;if(typeof n==="number")return new Rqf(V,D.makeUpNextTrigger(n),D.makePlaybackTrigger(n),
"watch",D.inPlaylist);if(typeof f==="number")return new Rqf(V,D.makePlaybackTrigger(f),null,"watch",D.inPlaylist)}}},qm0=function(V){return V.prefetchJobConfig_.backgroundTrigger?_.a9(_.O$U)()==0?V.prefetchJobConfig_.backgroundTrigger:V.prefetchJobConfig_.foregroundTrigger:V.prefetchJobConfig_.foregroundTrigger},Xrq=function(V){_.ZU(document,"visibilitychange",V.onVisibilityChange_,!1,V)},TD=function(V){Hm.call(this,V)};
_.v(TD,Hm);TD.prototype.getCacheKeyForEndpoint=function(V){return Hm.prototype.getCacheKeyForEndpoint.call(this,V)};
TD.prototype.getTempData=function(){return{}};
TD.prototype.getXhrParams=function(V){return V};
TD.prototype.getParams=function(){return{}};
var Et0=function(V,D,f){var n=V.prefetchDelay*1E3;if(Math.abs(n)>D)f.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var t=n,J=D-n;n<0&&(t=D+n,J=Math.abs(n));var H=V.JSC$11200_taskManager.addJob(function(){f.resolve(J/1E3)},10,t);
f.promise.thenCatch(function(){V.JSC$11200_taskManager.cancelJob(H)})}},A2R=function(V,D,f){QG.call(this,V,D,f)};
_.v(A2R,QG);A2R.prototype.prepareTrigger=function(V){var D=this;gt0(this,"onAutonavCoundownStarted",function(f){Et0(D,f,V)})};
var ab3=function(V){V.pendingPrefetchJob_&&(V.pendingPrefetchJob_.cancel(),V.pendingPrefetchJob_=null)},Ymq=function(V,D,f){if(!V.triggeredTargets.has(D)){var n=_.k1r(V,D);
n.action=f;_.gD6(V,D,n)}},$3X=function(V){_.Q_F();
_.HnZ("cpt")&&_.zP(Error("qh"));_.fx.requestAnimationFrame(function(){_.fx.setTimeout(function(){_.zm("cpt");var D=_.q1("vpl"),f=_.q1("cpt");D&&f&&_.zm("ol",Math.max(D,f))})});
try{_.zm("fr_s"),V()}catch(D){_.NG(D)}_.fx.requestAnimationFrame(function(){_.zm("bcp")})},imR=function(V,D){V.serviceEndpointHandlers.push(D)},Smv=function(V,D){D=V.pendingPages_.indexOf(D);
D>-1&&V.pendingPages_.splice(D,1)},W7W=function(V,D){var f=_.RwL.indexOf(D);
f>-1&&_.RwL.splice(f,1);V.targetPage_==D?(V.abort(),_.qhY(V)):Smv(V,D)},prW=function(V,D,f,n){D={challenge:D};
f&&(D.webResponse=f);return _.m5(V.innertubeTransportService,D,_.xy(bmV),n)},L7Z=function(V,D,f){if(!D.challenge)throw Error("si");
if(D.botguardData&&D.botguardData.program){var n=new wr3;n.initialize(D.botguardData,function(){Tsw(n,{atr_challenge:D.challenge}).then(function(t){if(!t)throw Error("ti");return prW(V,D.challenge,t,f)}).catch(function(t){_.zP(t);
return prW(V,D.challenge,void 0,f)})},void 0)}else prW(V,D.challenge,void 0,f)},Ibw=function(V,D,f){var n={};
D.ids&&(n.ids=[].concat(_.sz(D.ids)));D.engagementType&&(n.engagementType=D.engagementType);return _.m5(V.innertubeTransportService,n,_.xy(_.Kpr),f).then(function(t){if(!t)throw new _.cI("GetAttestationChallenge returned falsy");L7Z(V,t,f)}).thenCatch(function(t){_.NG(t)})},Omf=function(V,D,f){return new _.Qf(function(n,t){var J;
return _.w(function(H){if(H.nextAddress==1){var Q=D.engagementType,T=D.ids,y={};T=_.r(T!=null?T:[]);for(var Z=T.next();!Z.done;Z=T.next())Z=Z.value,Z.encryptedVideoId?y.encryptedVideoId=Z.encryptedVideoId:Z.externalChannelId?y.externalChannelId=Z.externalChannelId:Z.commentId?y.commentId=Z.commentId:Z.externalOwnerId?y.externalOwnerId=Z.externalOwnerId:Z.artistId?y.artistId=Z.artistId:Z.playlistId?y.playlistId=Z.playlistId:Z.externalPostId?y.externalPostId=Z.externalPostId:Z.shareId&&(y.shareId=Z.shareId);
return _.b(H,ww3(Q,y),2)}J=H.yieldResult;if(!J.challenge)return _.zP(Error("ui")),Ibw(V,D,f).then(n,t),H.return();Q=J;y={challenge:Q.challenge};y.webResponse=Q.webResponse;y.engagementType=D.engagementType;y.ids=D.ids;_.m5(V.innertubeTransportService,y,_.xy(bmV),f).then(n,t);_.yz(H)})})},KqR=function(V,D){var f,n,t,J;
_.w(function(H){if(H.nextAddress==1){f=_.g(D,_.DMP);if(!(f&&f.listId&&V.response&&V.response.playingVideoId)||V.listId!==f.listId)return H.return();V.index===void 0&&(V.index=0);return _.b(H,_.RjE(V.JSC$10945_playlistNetworkManager,f.listId,V.index,V.response.playingVideoId),2)}n=H.yieldResult;if(!n)return H.return();t=n.playlistId;J=n.playlistPanelRenderer;V.setPlaylistData(t,J,n.autoplayRenderer);_.yz(H)})},x3J=function(V,D,f){var n=V.getParams(f),t=_.RqF(D,n),J=V.getTempData(D,f);
J.endpoint=JSON.stringify(D);_.c("enable_unknown_lact_fix_on_html5")&&(_.DY().resolve(_.ue),J.lact=_.Vf());var H={headers:{"X-YouTube-STS":_.XB("STS"),"x-youtube-csoc":1}};_.xo(t,J);return new _.Qf(function(Q,T){var y=V.getXhrParams(n),Z;_.c("kevlar_cache_on_ttl_player")&&(Z=_.lV.instance);Z&&_.fSF(Z,D)?_.wGF(Z,D,J,window.location.href).then(function(l){l?Q(l):T()},T):_.uGU(V.JSC$11190_networkManager_,D,y,V.onPartsCallback_.bind(V),H).then(function(l){l?Q(l):T()},T)})},MD0=function(V,D){V.triggerPromise_=
D.start();
V.triggerPromise_.then(function(f){var n=V.prefetchEndpointProvider_.getPrefetchEndpoint();if(n){var t=vtq[V.prefetchJobConfig_.pageType].prefetchedFragments;V.prefetchRequestPromise_=x3J(V.JSC$11226_networkPrefetchRequest_,n,{fragmentsRequested:t,timeBeforeNextVideo:f});V.prefetchResponseCacheKey_=V.JSC$11226_networkPrefetchRequest_.getCacheKeyForEndpoint(n);Xrq(V);V.prefetchRequestPromise_.then(function(J){V.storePrefetchedDataCallback_(V.prefetchResponseCacheKey_,J);if(_.c("web_prefetch_preload_video")&&
t.length===1&&t[0]==="pl"&&J&&!J.playerAds&&!J.adPlacements){var H=_.g(n,_.gU),Q=H!=null,T={raw_player_response:J,watch_endpoint:H};(J=_.DY().resolve(Q?_.y$V:_.nX))&&n&&J.then(function(y){Q&&_.c("web_queue_preload_video")?(T.prefer_gapless=!0,y.queueNextVideo(T)):y.preloadVideoByPlayerVars(T)})}})}})},bo=function(V,D,f,n){this.prefetchEndpointProvider_=V;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=D;this.prefetchJobConfig_=f;this.JSC$11226_networkPrefetchRequest_=n;this.prefetchResponseCacheKey_=null};
bo.prototype.enqueue=function(){this.triggerPromise_||(MD0(this,qm0(this)),_.kt(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
bo.prototype.resolve=function(){this.cancel()};
bo.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.");Xrq(this)};
bo.prototype.onVisibilityChange_=function(){var V=this;_.a9(_.O$U)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){V.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||MD0(this,qm0(this))};
hqV=function(V,D,f,n,t){D&&(D==null?0:D.videoId)&&f&&f.entries&&_.c("kevlar_enable_shorts_prefetch_in_sequence")&&(ab3(V),D=f.entries.map(function(J){var H;return(H=_.g(J.command,_.gU))==null?void 0:H.videoId}).indexOf(D.videoId),f=f.entries[D+1],f!=null&&f.command&&!_.g(f==null?void 0:f.command,_.mJ)&&(n=new Rqf([f.command],new s5W(n,_.dm,1),null,"shorts",!1),V.pendingPrefetchJob_=new bo(new zqc(n.autonavEndpoints),function(){return!1},n,new TD(t)),V.pendingPrefetchJob_.enqueue()))};
U3w=function(V,D,f,n,t,J){var H=_.OC.getInstance();if(!_.c("block_all_player_prefetch_requests")){ab3(V);var Q=!!f.getPlaylistId(),T=f.getVideoData().isLive&&f.getVideoData().hasProgressBarBoundaries;if((H.getState()==2||Q||T)&&(!f.getVideoData().isLive||T)){H={inPlaylist:Q,videoDuration:f.getDuration(),makeUpNextTrigger:function(Z){return new A2R(f,_.dm,Z)},
makePlaybackTrigger:function(Z){return new s5W(f,_.dm,Z)}};
var y=CS0(D,H);y&&(V.pendingPrefetchJob_=new bo(y.isInPlaylist?new m3c(t):new zqc(y.autonavEndpoints),function(Z,l){l=new uoB(vtq[y.pageType].pageFragments,vtq[y.pageType].prefetchedFragments,l);return _.KyP(l)?(V.prefetchCache_.set(Z,l),!0):!1},y,new wz(n,f,J,t)),V.pendingPrefetchJob_.enqueue())}}};
VlW=function(){var V=_.Eg();V.signals.parkOrScheduleJob(function(){var D=V.storage;if(D.storage)if(lb3(D)){var f=D.getPlaylistId();D=GKw(D);f=!!f&&D!==void 0}else D.clear(),f=!1;else f=!1;if(f){f=V.pageManager.isOnWatch();a:{var n=V.storage;if(n.storage&&lb3(n)&&(D=n.getPlaylistId(),n=GKw(n),D&&n!==void 0)){f={recoverPlaylistCommand:{listId:D,index:n,openMiniplayer:!f,openListPanel:f,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}f=void 0}f&&_.dl(V.JSC$10945_actionRouter,[f],null)}},0,"ma")};
DaR=function(V,D,f,n,t,J){var H=_.Bj(7111);_.oj(V.JSC$16279_screenManager,H,J?_.gs(J):void 0);_.rW(V.JSC$16279_screenManager,H,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:n,offlineId:D,offlineabilityFormatType:f,isDefaultFormatType:t==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:t}})};
fn0=function(V,D,f,n,t){var J,H,Q,T,y;return _.w(function(Z){if(Z.nextAddress==1)return _.b(Z,V.JSC$16279_playerApiPromise,2);J=Z.yieldResult;DaR(V,D,f,"OFFLINE_OBJECT_TYPE_PLAYLIST",n,t);if(Q=_.tOH[V.entityTypeMap.listEntityType])y={},H=(y[Q]={maximumDownloadQuality:(T=f)!=null?T:void 0},y);return _.b(Z,J.queueOfflineAction(D,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",H),0)})};
nlR=function(V,D){var f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return _.b(H,V.JSC$16279_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3){f=H.yieldResult;if(!f)return _.zP(new _.cI("PES is undefined")),H.return();n=_.HR(D,"downloadStatusEntity");return _.b(H,j5o(f,n,"downloadStatusEntity"),3)}t=H.yieldResult;return H.return((J=t)==null?void 0:J.downloadState)})};
tlR=function(V,D,f,n,t){var J,H,Q,T,y,Z;return _.w(function(l){switch(l.nextAddress){case 1:return _.b(l,V.JSC$16279_playerApiPromise,2);case 2:J=l.yieldResult;DaR(V,D,f,"OFFLINE_OBJECT_TYPE_VIDEO",n,t);if(Q=_.tOH[V.entityTypeMap.singleEntityType])y={},H=(y[Q]={maximumDownloadQuality:(T=f)!=null?T:void 0},y);return _.b(l,nlR(V,D),3);case 3:Z=l.yieldResult;if(Z!=="DOWNLOAD_STATE_USER_DELETED"){l.jumpTo(4);break}return _.b(l,V.deleteVideo(D),4);case 4:return _.b(l,J.queueOfflineAction(D,V.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",H),0)}})};
Pev=function(V,D,f,n,t){return _.w(function(J){return J.nextAddress==1?_.b(J,V.deleteVideo(D,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.b(J,tlR(V,D,f,n,t),0)})};
olc=function(V,D,f){var n,t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,V.JSC$16279_playerApiPromise,2);n=J.yieldResult;t=_.HR(D,"mainVideoDownloadStateEntity");return _.b(J,n.updateDownloadState(t,f),0)})};
DAR=function(V){var D=_.DY().resolve(_.hg);return _.w(function(f){if(f.nextAddress==1)return D.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?f.jumpTo(2):_.b(f,D.resumeVideoDownload(V),2);if(f.nextAddress!=4)return _.b(f,olc(D,V,D.previousDownloadStateForVideo[V]),4);delete D.previousDownloadStateForVideo[V];_.yz(f)})};
UZq=function(V,D){var f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$16279_playerApiPromise,2);f=n.yieldResult;return _.b(n,f.queueOfflineAction(D,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
xZ0=function(){var V=_.DY().resolve(_.hg),D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$16279_playerApiPromise,2);if(n.nextAddress!=3)return D=n.yieldResult,f={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.b(n,D.queueOfflineAction("!*$_ALL_ENTITIES_!*$",V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",f),3);var t=V.JSC$16279_commandHandler,J=t.resolveCommand,H=_.Zl("DELETING_ALL",void 0,"Downloads are being deleted");
J.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Vc(H)}},popupType:"TOAST"}});_.yz(n)})};
JIJ=function(V,D){var f,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return _.b(T,V.JSC$16279_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return f=T.yieldResult,f?_.b(T,j5o(f,_.ky,"downloadsPageViewConfigurationEntity"),3):(_.zP(new _.cI("PES is undefined")),T.return());t=(n=T.yieldResult)!=null?n:{};Q=(H=(J=t)==null?void 0:J.downloadsUpsellBannerVisibility)!=null?H:{};return Q.visibleWithConnection?_.b(T,D.refreshAllStaleEntities(0),0):T.jumpTo(0)})};
rIR=function(V){var D,f;return _.w(function(n){if(n.nextAddress==1)return _.b(n,V.JSC$16279_prefStorage,2);D=n.yieldResult;return n.return((f=D)==null?void 0:f.get("sdois"))})};
HTB=function(V){var D,f,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,V.JSC$16279_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){D=Q.yieldResult;if(!D)return _.zP(new _.cI("PES is undefined")),Q.return();f=_.HR("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.b(Q,j5o(D,f,"settingEntity"),3)}n=Q.yieldResult;return Q.return((H=(t=n)==null?void 0:(J=t.settingOptionValue)==null?void 0:J.boolValue)!=null?H:!1)})};
wjv=function(V,D){var f,n,t,J;return _.w(function(H){switch(H.nextAddress){case 1:return((f=D)==null?void 0:f.formatType)===void 0?H.return():_.b(H,V.JSC$16279_prefStorage,2);case 2:n=H.yieldResult;if(n===void 0)return H.return();if(((t=D)==null?void 0:t.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.b(H,n.set("lmqf",D.formatType),8);if(((J=D)==null?void 0:J.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){H.jumpTo(0);break}return _.b(H,n.set("lmqf",D.formatType),
6);case 6:return _.b(H,n.set("lmqflst",Math.floor((0,_.VW)())),0);case 8:return _.b(H,n.remove("lmqflst"),0)}})};
QtJ=function(V){var D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,V.JSC$16279_prefStorage,2);case 2:D=n.yieldResult;if(!D){n.jumpTo(3);break}return _.b(n,D.get("lmqflst"),4);case 4:if(f=n.yieldResult,f!==void 0)return n.return(f);case 3:return n.return(0)}})};
Tkc=function(V){var D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,V.JSC$16279_prefStorage,2);case 2:D=n.yieldResult;if(D===void 0){n.jumpTo(3);break}return _.b(n,D.get("lmqf"),4);case 4:if(f=n.yieldResult,f!==void 0)return n.return(f);case 3:return n.return("SD")}})};
HI3=function(V,D,f){var n,t,J,H,Q,T,y,Z;_.w(function(l){switch(l.nextAddress){case 1:return _.b(l,wjv(V,(n=D)==null?void 0:n.actionParams),2);case 2:t=D.playlistId;if(!t)return l.return();if(D.action==="ACTION_ADD")return((H=D.actionParams)==null?0:H.formatType)?_.b(l,fn0(V,t,D.actionParams.formatType,(Z=D.actionParams)==null?void 0:Z.settingsAction,f),0):_.b(l,V.offlineWebClientEligibility,14);if(D.action==="ACTION_REMOVE_WITH_PROMPT"){var G=V.JSC$16279_commandHandler,F=G.resolveCommand,k=_.XB("INNERTUBE_CLIENT_NAME");
var d=k==="WEB_REMIX"?_.Zl("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Zl("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var z=k==="WEB_REMIX"?[_.Zl("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];k=k==="WEB_REMIX"?_.Zl("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Zl("DELETE",void 0,"Delete");var C=_.Zl("CANCEL",void 0,"Cancel");d=QOX(d,z,k,C,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:t});F.call(G,{openPopupAction:d});
return l.return()}if(D.action==="ACTION_REMOVE")return _.b(l,UZq(V,t),0);if(D.action!=="ACTION_SYNC"){l.jumpTo(0);break}return _.b(l,V.JSC$16279_playerApiPromise,9);case 9:return J=l.yieldResult,_.b(l,J.queueOfflineAction(t,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return Q=l.yieldResult,_.b(l,Tkc(V),15);case 15:return T=l.yieldResult,_.b(l,QtJ(V),16);case 16:y=l.yieldResult,D.onAddCommand&&V.JSC$16279_commandHandler.resolveCommand(D.onAddCommand,{form:{preferredFormatType:T,
offlineWebClientEligibility:Q,lastOfflineQualitySettingsSavedMs:y.toString()}}),l.jumpTo(0)}})};
JAc=function(V,D,f){var n,t,J,H,Q,T,y,Z,l,G,F,k,d,z;_.w(function(C){switch(C.nextAddress){case 1:return _.b(C,wjv(V,(n=D)==null?void 0:n.actionParams),2);case 2:t=D.videoId;if(!t)return C.return();if(D.action==="ACTION_REMOVE_WITH_PROMPT"){var A=V.JSC$16279_commandHandler,O=A.resolveCommand,W=_.XB("INNERTUBE_CLIENT_NAME");var I=W==="WEB_REMIX"?_.Zl("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Zl("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var x=W==="WEB_REMIX"?[_.Zl("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];W=W==="WEB_REMIX"?_.Zl("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Zl("DELETE",void 0,"Delete");var oY=_.Zl("CANCEL",void 0,"Cancel");I=QOX(I,x,W,oY,{signal:"DELETE_DOWNLOAD",targetId:t});O.call(A,{openPopupAction:I});return C.return()}if(D.action==="ACTION_ADD")return((G=D.actionParams)==null?0:G.formatType)?_.b(C,tlR(V,t,D.actionParams.formatType,(z=D.actionParams)==null?void 0:z.settingsAction,f),0):_.b(C,V.offlineWebClientEligibility,
23);if(D.action==="ACTION_RETRY")return _.b(C,Tkc(V),19);if(D.action==="ACTION_PAUSE")return _.b(C,V.pauseVideoDownload(t),0);if(D.action==="ACTION_RESUME")return _.b(C,V.resumeVideoDownload(t),0);if(D.action!=="ACTION_REMOVE"){C.jumpTo(0);break}return _.b(C,nlR(V,t),13);case 13:return J=C.yieldResult,V.previousDownloadStateForVideo[t]=(H=J)!=null?H:"DOWNLOAD_STATE_UNKNOWN",_.b(C,olc(V,t,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(V.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
V.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){C.jumpTo(15);break}return _.b(C,V.pauseVideoDownload(t),15);case 15:A=_.Zl("DELETED_VIDEO",void 0,"Video deleted from downloads.");O=_.Zl("UNDO_ACTION",void 0,"Undo");I=_.Zl("CLOSE",void 0,"Close");Q={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Vc(A),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Vc(O),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:A+" "+O}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:I}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};V.JSC$16279_commandHandler.resolveCommand(Q);
C.jumpTo(0);break;case 19:T=C.yieldResult;T==="UNKNOWN_FORMAT_TYPE"&&(T="SD");y="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((Z=D.actionParams)==null?0:Z.formatType)T=D.actionParams.formatType,y=(l=D.actionParams)==null?void 0:l.settingsAction;return _.b(C,Pev(V,t,T,y,f),20);case 20:return C.return();case 23:return F=C.yieldResult,_.b(C,Tkc(V),24);case 24:return k=C.yieldResult,_.b(C,QtJ(V),25);case 25:d=C.yieldResult,D.onAddCommand&&V.JSC$16279_commandHandler.resolveCommand(D.onAddCommand,
{form:{preferredFormatType:k,offlineWebClientEligibility:F,lastOfflineQualitySettingsSavedMs:d.toString()}}),C.jumpTo(0)}})};
bTc=function(V,D){var f,n,t,J,H,Q,T;return _.w(function(y){if(y.nextAddress==1)return _.b(y,V.JSC$16279_persistentStorePromiseAccessor(),2);f=y.yieldResult;if(!f)return _.zP(new _.cI("PES is undefined")),y.return();if((n=D)==null||!n.settingItemId)return y.return();t=D;J=t.settingItemId;H=t.boolValue;Q=_.HR(J,"settingEntity");T={key:Q,settingOptionValue:{boolValue:H}};return _.b(y,ZmV(f,T),0)})};
KAo=function(V,D){var f,n,t,J,H,Q,T;return _.w(function(y){switch(y.nextAddress){case 1:return _.b(y,V.JSC$16279_prefStorage,2);case 2:return f=y.yieldResult,n=_.Gm(),_.b(y,V.JSC$16279_persistentStorePromiseAccessor(),3);case 3:return t=y.yieldResult,f?t?_.b(y,f.get("sdois"),4):(_.zP(new _.cI("PES is undefined")),y.return()):(_.zP(new _.cI("prefStorage is undefined")),y.return());case 4:J=y.yieldResult;Q=(H=D)==null?void 0:H.boolValue;Q===void 0||_.c("kevlar_set_sd_enabled_flag_killswitch")||_.eJ(0,
197,!0);J===void 0&&Q===void 0&&(Q=!1);if(Q===void 0){y.jumpTo(0);break}return _.b(y,f.set("sdois",Q),6);case 6:return _.c("kevlar_set_sd_enabled_flag_killswitch")||(_.eJ(0,196,Q),n.save()),T={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:Q},_.b(y,bTc(V,T),0)}})};
yIR=function(V,D,f){var n,t,J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:return _.b(T,rIR(V),2);case 2:return n=T.yieldResult,_.b(T,KAo(V,f),3);case 3:return _.b(T,rIR(V),4);case 4:return t=T.yieldResult,J=t!==n,_.b(T,HTB(V),5);case 5:H=T.yieldResult&&!_.c("kevlar_modern_downloads_page");if((Q=!t&&!H)||J)return _.b(T,D.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);T.jumpTo(0)}})};
nuR=function(){var V=_.DY().resolve(_.hg),D;_.w(function(f){switch(f.nextAddress){case 1:return _.b(f,V.JSC$16279_playerApiPromise,2);case 2:D=f.yieldResult;if(!_.c("kevlar_force_refresh_smart_downloads")){f.jumpTo(3);break}return _.b(f,D.refreshAllStaleEntities(0),4);case 4:return f.return();case 3:return _.b(f,D.refreshAllStaleEntities(),5);case 5:return _.b(f,yIR(V,D),6);case 6:if(_.c("enable_download_pep_for_premium_countries_web"))return _.b(f,JIJ(V,D),0);f.jumpTo(0)}})};
QUB=function(V,D){var f,n;_.w(function(t){switch(t.nextAddress){case 1:return _.b(t,V.JSC$16279_playerApiPromise,2);case 2:f=t.yieldResult;switch((n=D)==null?void 0:n.settingItemId){case "SMART_DOWNLOADS_ENABLED":return t.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return t.jumpTo(4)}t.jumpTo(0);break;case 3:return _.b(t,yIR(V,f,D),6);case 6:t.jumpTo(0);break;case 4:return _.b(t,bTc(V,D),7);case 7:t.jumpTo(0)}})};
ZTW=function(V,D){var f,n,t;return _.w(function(J){if(J.nextAddress==1)return _.b(J,V.JSC$16279_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){f=J.yieldResult;if(!f)return _.zP(new _.cI("PES is undefined")),J.return(!1);if(!D)return J.return(!1);n=_.HR(D,"mainVideoEntity");return _.b(J,j5o(f,n,"mainVideoEntity"),3)}t=J.yieldResult;return J.return(t!==void 0)})};
bIW=function(V){var D=_.DY().resolve(_.hg),f,n,t,J,H,Q,T,y,Z,l,G;_.w(function(F){switch(F.nextAddress){case 1:return _.b(F,D.JSC$16279_playerApiPromise,2);case 2:f=F.yieldResult;t=(n=V)==null?void 0:n.actions;if(!t)return F.return();J=_.r(t);H=J.next();case 3:if(H.done){F.jumpTo(0);break}Q=H.value;y=T=void 0;if(!(((T=Q)==null?0:T.entityKey)&&((y=Q)==null?0:y.actionType))){F.jumpTo(4);break}Z=_.PR(Q.entityKey);l=Z.entityId;G=Z.entityType;return _.b(F,f.queueOfflineAction(l,G,Q.actionType),4);case 4:H=
J.next(),F.jumpTo(3)}})};
jto=function(V,D){var f,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1)return _.b(Q,V.JSC$16279_prefStorage,2);if(Q.nextAddress!=3)return(f=Q.yieldResult)?_.b(Q,f.get("psi"),3):Q.return();n=Q.yieldResult;H={isPaused:D,lastSyncTimestamp:(J=(t=n)==null?void 0:t.lastSyncTimestamp)!=null?J:"0"};return _.b(Q,f.set("psi",H),0)})};
ZIB=function(V){var D=_.DY().resolve(_.hg),f,n,t,J,H,Q,T,y;return _.w(function(Z){switch(Z.nextAddress){case 1:return _.b(Z,D.JSC$16279_playerApiPromise,2);case 2:f=Z.yieldResult;t=((n=V)==null?void 0:n.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((Q=V)==null?void 0:Q.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":J="!*$_ALL_ENTITIES_!*$";H="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return Z.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return Z.jumpTo(4)}Z.jumpTo(5);break;case 3:return _.b(Z,jto(D,t),6);case 6:Z.jumpTo(5);break;case 4:return _.b(Z,ZTW(D,(T=V)==null?void 0:T.videoId),7);case 7:Z.yieldResult&&(J=(y=V)==null?void 0:y.videoId,H="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");Z.jumpTo(5);break;case 5:if(J&&H)return _.b(Z,f.queueOfflineAction(J,"videoPlaybackPositionEntity",H),0);Z.jumpTo(0)}})};
lnw=function(V,D){var f;D!==1||((f=V.currentPersistentToast)==null?0:f.isOpened())?V.openToast():V.currentPersistentToast=void 0};
Gko=function(V,D){var f;return(f=V.transitionTasksMap.get(D))!=null?f:[]};
eCW=function(V,D){var f=[];V.elementTasksMap.forEach(function(n){(n=n.get(D))&&f.push(n)});
return f};
cI0=function(V,D,f,n){n=n===void 0?{}:n;var t=V.defaultViewTransitionOptions;return Object.assign({},t,n,{beforeTransition:function(){f.forEach(function(T){T.beforeTransition()});
var J;(J=t.beforeTransition)==null||J.call(t);var H,Q;(Q=(H=n).beforeTransition)==null||Q.call(H);D.forEach(function(T){T.beforeTransition()})},
afterTransition:function(){f.forEach(function(T){T.afterTransition()});
var J;(J=t.afterTransition)==null||J.call(t);var H,Q;(Q=(H=n).afterTransition)==null||Q.call(H);D.forEach(function(T){T.afterTransition()})}})};
FAc=function(V,D,f){V.transitionTasksMap.has(D)?V.transitionTasksMap.get(D).push(f):(V=new _.cI("Transition task registered for unknown transition type",D),_.NG(V))};
glV=function(V,D,f){if(V.transitionTasksMap.has(D)){var n=V.transitionTasksMap.get(D).filter(function(t){return t!==f});
V.transitionTasksMap.set(D,n)}};
vlR=function(V,D){var f=Gko(V,D);f=_.r(f);for(var n=f.next();!n.done;n=f.next())n=n.value,n.runOnce&&glV(V,D,n);V.elementTasksMap.forEach(function(t,J){t.forEach(function(H,Q){H.runOnce&&D===Q&&(t.delete(Q),t.size===0&&V.elementTasksMap.delete(J))})})};
kkc=function(V,D,f){var n,t,J,H,Q,T,y,Z,l;_.w(function(G){if(G.nextAddress==1){if(V.config.disableAllTransitions)return G.return(D());if((n=f)==null||!n.transitionType)return G.return(_.vjc(D,(t=f)==null?void 0:t.viewTransitionOptions));J=f;H=J.transitionType;Q=J.viewTransitionOptions;T=V.config.transitionConfigs.get(H);if(!T)return G.return(D());y=Gko(V,H);Z=eCW(V,H);l=_.vjc(D,cI0(T,y,Z,Q));return _.b(G,l,2)}vlR(V,H);_.yz(G)})};
stX=function(){var V,D,f,n;return _.w(function(t){if(t.nextAddress==1)return V=navigator,(D=V.storage)!=null&&D.persisted?_.b(t,(f=V.storage)==null?void 0:f.persisted(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");n=t.yieldResult;return t.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Bkc=function(){var V,D,f,n;return _.w(function(t){if(t.nextAddress==1)return V=navigator,(D=V.storage)!=null&&D.persist?_.b(t,(f=V.storage)==null?void 0:f.persist(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");n=t.yieldResult;return t.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
daw=function(){var V,D;return _.w(function(f){switch(f.nextAddress){case 1:return V="PERSISTED_STATE_NOT_SUPPORTED",_.wx(f,2),_.b(f,stX(),4);case 4:V=f.yieldResult;if(V!=="PERSISTED_STATE_NOT_GRANTED"){f.jumpTo(5);break}return _.b(f,Bkc(),6);case 6:V=f.yieldResult;case 5:_.YJ(f,3);break;case 2:D=_.KW(f),D instanceof Error&&_.NG(D);case 3:return _.dq("persistentStorageStateChecked",{persistedState:V}),f.return(V)}})};
uhV=function(V,D){var f=[],n=!1;D=_.r(D);for(var t=D.next();!t.done;t=D.next()){t=V.moduleRegistry[t.value];var J=void 0,H=void 0;((J=t)==null?0:J.isFetching)&&((H=t)==null?0:H.resolver)?(f.push(t.resolver.promise),n=!0):(t=new _.wU,t.resolve(void 0),f.push(t.promise))}return n?Promise.all(f):void 0};
lHV=function(V,D){if(V.isAnyTransitionEnabled){var f={};V.viewTransitionCoordinator.registerElement(D,(f.slide="miniplayer-page-transition",f["lockup-to-watch"]="miniplayer-page-transition",f["learning-journey"]="miniplayer-page-transition",f))}};
Nk3=function(V,D,f){if(V.isAnyTransitionEnabled){var n={beforeTransition:function(){f(!0);D.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="",f(!1))}};
FAc(V.viewTransitionCoordinator,"slide",n);FAc(V.viewTransitionCoordinator,"lockup-to-watch",n);FAc(V.viewTransitionCoordinator,"watch-next-appears",n);FAc(V.viewTransitionCoordinator,"learning-journey",n)}};
maW=function(V,D){V.isBrowseTransitionEnabled?kkc(V.viewTransitionCoordinator,D,{transitionType:"slide"}):(D(),Promise.resolve())};
zCc=function(V,D){V.isLockupToWatchTransitionEnabled?kkc(V.viewTransitionCoordinator,D,{transitionType:"lockup-to-watch"}):(D(),Promise.resolve())};
RCW=function(V,D){V.isLockupToWatchTransitionEnabled?kkc(V.viewTransitionCoordinator,D,{transitionType:"watch-next-appears"}):(D(),Promise.resolve())};
CeW=function(V,D){V.isLearningJourneyTransitionEnabled?kkc(V.viewTransitionCoordinator,D,{transitionType:"learning-journey"}):(D(),Promise.resolve())};
qof=function(V,D,f){if(V.isInitialized()){var n=nK(f),t=n==="watch";n=n==="shorts";var J=nK(D)==="watch";if(t)J||(V.backgroundPageData=D),V.watchPipMode&&J||V.deactivate(f.endpoint);else if(n){if(nK(D)!=="shorts"){var H;(H=V.getPlayerElement())==null||H.pause()}}else J&&!V.watchPipMode&&(bhR(D,f)?(V.watchWhileMode&&_.s3w(V,!1),_.eDJ(V,D)):V.isMiniplayerActive()&&V.watchWhileMode&&V.deactivate());J&&_.d8Z(V);V.shortsPipMode&&!n&&(window.focus(),V.deactivate());if(V.pictureInPictureEnabled())if(n&&
V.shortsPipEnabled||t&&V.watchPipEnabled)_.N9Y(V.handleMediaSessionPipActivation);else if(!V.isMiniplayerActive()&&(V.shortsPipEnabled||V.watchPipEnabled)&&window.documentPictureInPicture&&_.mX()&&_.QY9("Chromium")>=120){V=_.uMn().mediaSession;try{V.setActionHandler("enterpictureinpicture",null)}catch(Q){}}}};
XjX=function(V,D){var f,n;_.w(function(t){if(t.nextAddress==1){if(!V||!V.navigationEndpoint)return t.return();_.b$().lockupActivation=!0;var J;D?J=_.pA(_.Zl("QUEUE",void 0,"Queue")):J=V.longBylineText;n=(f=J)&&V.title?{miniplayerTitle:V.title,miniplayerSubtitle:f,playlistData:null}:void 0;return _.b(t,_.yjV(_.DY().resolve(_.qw),V.navigationEndpoint,!0,n),2)}_.b$().userActivation=!0;_.yz(t)})};
QWv=function(V,D){var f,n,t,J,H,Q;_.w(function(T){if(T.nextAddress==1){f=_.g(D,_.V$V);if(!f||!f.listId)return T.return();V.index=f.index||V.index||0;n=V.response&&V.response.playingVideoId||void 0;return _.b(T,_.RjE(V.JSC$10945_playlistNetworkManager,f.listId,V.index,n),2)}t=T.yieldResult;if(!t)return T.return();J=t.playlistId;H=t.playlistPanelRenderer;!V.queueProxy&&J&&H&&J.startsWith("TLPQ")&&(V.queueProxy=new _.u$(V.JSC$10945_playlistNetworkManager,J,V.setPlaylistData.bind(V),V.clearQueue.bind(V),
_.nm9(H),V.storage));if(f.openMiniplayer&&(Q=_.t29(H))&&!V.pageManager.isOnWatch()){var y=Q,Z=f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";V.isMiniplayerActive()?V.openToast(y):XjX(y,Z)}V.setPlaylistData(J,H,t.autoplayRenderer);_.yz(T)})};
rOV=function(V,D){var f=_.Eg();f.index===void 0&&(f.index=0);f.temporaryItems.push.apply(f.temporaryItems,_.sz(V));if((D.videoId||D.videoIds)&&f.index!==void 0&&D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!f.queueProxy){var n=[];if(f.response){var t=_.DY().resolve(_.qw).isMiniplayerActive();if(f.response.playlistPanelRenderer&&f.response.playlistId&&!f.response.playlistId.startsWith("TLPQ")){if(f.pageManager.isOnWatch()||t)n=_.nm9(f.response.playlistPanelRenderer)}else f.response.playingVideoId&&
!D.openMiniplayer?n.push(f.response.playingVideoId):t&&f.response.playingVideoId&&D.openMiniplayer&&n.push(f.response.playingVideoId)}f.queueProxy=new _.u$(f.JSC$10945_playlistNetworkManager,"",f.setPlaylistData.bind(f),f.clearQueue.bind(f),n,f.storage);f.queueProxy.JSC$10891_setCurrentIndex(f.index)}f.queueProxy.addVideos(D.videoIds||[D.videoId],D)}eqR(f,V);f.response&&_.A6(f,_.aj(f,f.response.autoplayRenderer));f.pageManager.isOnWatch()?f.isMiniplayerActive()&&f.openToast(V[0]):(V=V[0],D=D.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",f.isMiniplayerActive()?f.openToast(V):XjX(V,D))};
ElZ=function(V){var D=_.wR(V);if(D=="object"||D=="array"){if(typeof V.clone==="function")return V.clone();if(typeof Map!=="undefined"&&V instanceof Map)return new Map(V);if(typeof Set!=="undefined"&&V instanceof Set)return new Set(V);D=D=="array"?[]:{};for(var f in V)D[f]=ElZ(V[f]);return D}return V};
KM=function(V,D){return _.OxL(_.ZX(V,D,void 0,_.yd))};
yG=function(V,D){return _.vB(_.ZX(V,D,void 0,_.yd))};
Za=function(V,D){return _.KY3(_.ZX(V,D,void 0,_.yd))};
jg=function(V,D){return _.ZX(V,D,void 0,_.yd,_.HB)};
AIv=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;_.W7(D,f,_.XX(V.decoder_,_.DR));return!0},_.xr,_.a$);
ano=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.XX(V.decoder_,_.DR));return!0},_.xr,_.a$);
Yoq=_.S_(function(V,D,f){if(V.nextWireType_!==1)return!1;var n=V.decoder_;V=_.AF(n);n=_.AF(n);V=_.hr(V,n);_.W7(D,f,V);return!0},_.L33,_.pFc);
$aR=_.S_(function(V,D,f){if(V.nextWireType_!==5)return!1;_.W7(D,f,_.AF(V.decoder_));return!0},function(V,D,f){D=_.sc(D);
D!=null&&(_.L4(V,f,5),_.OW(V.encoder_,D))},_.WGc);
iTX=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;V=_.vaF(V.decoder_);_.W7(D,f,V===!1?void 0:V);return!0},_.IRZ,_.YFR);
So3=_.S_(function(V,D,f){if(V.nextWireType_!==2)return!1;V=_.NeF(V);_.W7(D,f,V===""?void 0:V);return!0},_.xoX,_.$c3);
WAJ=_.S_(function(V,D,f){if(V.nextWireType_!==2)return!1;V=_.mcZ(V);_.W7(D,f,V===_.Co()?void 0:V);return!0},_.UoU,_.OV3);
pjB=_.AZn(function(V,D,f){if(V.nextWireType_!==0&&V.nextWireType_!==2)return!1;D=_.sW(D,D[_.eE]|0,f);V.nextWireType_==2?_.zfc(V,IvV,D):D.push(_.Ek(V.decoder_));return!0},function(V,D,f){D=_.Efd(_.vB,D,!0);
if(D!=null&&D.length){f=_.K3R(V,f);for(var n=0;n<D.length;n++)_.Scx(V.encoder_,D[n]);_.yZ9(V,f)}},_.xcL);
LAB=_.S_(function(V,D,f){if(V.nextWireType_!==0)return!1;V=_.Ek(V.decoder_);_.W7(D,f,V===0?void 0:V);return!0},_.V_F,_.xcL);
Inq=_.S_(function(V,D,f,n){if(V.nextWireType_!==0)return!1;_.eP(D,f,n,_.Ek(V.decoder_));return!0},_.V_F,_.xcL);
_.WS=function(V){this.privateDoNotAccessOrElseWrappedStyleSheet=V};
_.WS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var cOc=function(V,D){return new _.uB(V.x+D.x,V.y+D.y)},OTJ=function(V){return V.previousElementSibling!==void 0?V.previousElementSibling:_.Jru(V.previousSibling,!1)},xaZ=function(V,D){var f=[];
for(D=D||0;D<V.length;D+=2)_.xLo(V[D],V[D+1],f);return f.join("&")},MlV=function(V,D){var f=arguments.length==2?xaZ(arguments[1],0):xaZ(arguments,1);
return _.Ool(V,f)},U2o=_.V2(_.E1),hCX=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(hCX,_.Xm);hCX.prototype.getValue=function(){var V=_.ZX(this,2);if(Array.isArray(V)||V instanceof _.Xm)throw Error("aa");return _.Gl(this,2)};
var YXv=function(){var V=_.oB();this.JSC$8008_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Pq("channel_type"))};
YXv.prototype.increment=function(V){this.JSC$8008_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",V)};
var $iX=function(){var V=_.oB();this.JSC$8011_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Pq("channel_type"))};
$iX.prototype.increment=function(V){this.JSC$8011_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",V)};
var SXc=function(){var V=_.oB();this.JSC$8014_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Pq("channel_type"))};
SXc.prototype.increment=function(V){this.JSC$8014_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",V)};
var ilZ=function(){var V=_.oB();this.JSC$8017_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
ilZ.prototype.increment=function(){this.JSC$8017_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var WIv=function(){var V=_.oB();this.JSC$8020_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Pq("channel_type"),_.Pq("error_type"))};
WIv.prototype.increment=function(V,D){this.JSC$8020_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",V,D)};
var p8c=function(){var V=_.oB();this.JSC$8023_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
p8c.prototype.increment=function(){this.JSC$8023_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var LIq=function(){var V=_.oB();this.JSC$8026_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
LIq.prototype.increment=function(){this.JSC$8026_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var qrc=function(){var V=_.oB();this.JSC$8032_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
qrc.prototype.increment=function(){this.JSC$8032_streamzService.JSC$7876_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var UaV=function(V){return V.getCount&&typeof V.getCount=="function"?V.getCount():_.MU(V)||typeof V==="string"?V.length:_.sB.getCount(V)},VKR=function(V,D){if(typeof V.every=="function")return V.every(D,void 0);
if(_.MU(V)||typeof V==="string")return Array.prototype.every.call(V,D,void 0);for(var f=_.h5V(V),n=_.L8(V),t=n.length,J=0;J<t;J++)if(!D.call(void 0,n[J],f&&f[J],V))return!1;return!0},Ds0=function(V,D,f,n){var t=new _.Ll(null);
V&&_.Ii(t,V);D&&_.O7(t,D);f&&_.xq(t,f);n&&_.Mm(t,n);return t},ftB=function(){var V=_.CH&&_.yY(_.Q9U,10)>=0,D;
if(D=_.A9X)D=_.yY(_.w9V,10)>=0;var f=_.Tl&&_.yY(_.Q9U,85)>=0;return _.rf||V||D||f},nCc=function(V){var D=_.uFp(V);
return D&&ftB()?-V.scrollLeft:D&&_.X1(V,"overflowX")!="visible"?V.scrollWidth-V.clientWidth-V.scrollLeft:V.scrollLeft},tKv=function(V,D){D=Math.max(D,0);
_.uFp(V)?ftB()?V.scrollLeft=-D:V.scrollLeft=V.scrollWidth-D-V.clientWidth:V.scrollLeft=D},dYv=0,RtV=!1;
Pa.prototype.set=function(V){this.relativeTimeStart_=V};
Pa.prototype.reset=function(){this.set(_.Vd())};
Pa.prototype.get=function(){return this.relativeTimeStart_};
var Pff=null,oCf=function(){Pff||(Pff=new Pa)},JYJ=function(){Pff||(Pff=new Pa)};
_.fg(JYJ,oCf);_.P=qiX.prototype;_.P.JSC$9393_buffer_="";_.P.set=function(V){this.JSC$9393_buffer_=""+V};
_.P.append=function(V,D,f){this.JSC$9393_buffer_+=String(V);if(D!=null)for(var n=1;n<arguments.length;n++)this.JSC$9393_buffer_+=arguments[n];return this};
_.P.clear=function(){this.JSC$9393_buffer_=""};
_.P.getLength=function(){return this.JSC$9393_buffer_.length};
_.P.toString=function(){return this.JSC$9393_buffer_};
var rYR=function(){var V={type:"unit",style:"narrow"};this.listType_=V&&V.type?V.type:"conjunction";this.listStyle_=V&&V.style?V.style:"long";this.listSymbols_=fbc;V=0;switch(this.listStyle_){case "short":V=1;break;case "narrow":V=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[V];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[V];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[V];this.listEndPattern_=
this.listSymbols_.AND_END[V];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[V];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[V];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[V];this.listEndPattern_=this.listSymbols_.OR_END[V];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[V],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[V],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[V],this.listEndPattern_=this.listSymbols_.UNIT_END[V]}};
rYR.prototype.format=function(V){return HXf(this,V)};
var HXf=function(V,D){var f=D.length;switch(f){case 0:return"";case 1:return String(D[0]);case 2:return V.listTwoPattern_.replace("{0}",String(D[0])).replace("{1}",String(D[1]))}for(var n=V.listStartPattern_.replace("{0}",String(D[0])).replace("{1}",String(D[1])),t=2;t<f-1;++t)n=V.listMiddlePattern_.replace("{0}",n).replace("{1}",String(D[t]));return V.listEndPattern_.replace("{0}",n).replace("{1}",String(D[f-1]))},htZ=function(){var V={style:1};
this.style_=(V==null?void 0:V.style)||0;this.durationSymbols_=_.oEr||_.OAV},wW0=function(V,D){switch(D){default:case "years":return V.durationSymbols_.YEAR;
case "months":return V.durationSymbols_.MONTH;case "weeks":return V.durationSymbols_.WEEK;case "days":return V.durationSymbols_.DAY;case "hours":return V.durationSymbols_.HOUR;case "minutes":return V.durationSymbols_.MINUTE;case "seconds":return V.durationSymbols_.SECOND}},lo=function(V,D,f){a:{f=wW0(V,f);
switch(V.style_){case 1:if(f.LONG!=void 0){V=f.LONG;break a}case 2:if(f.NARROW!=void 0){V=f.NARROW;break a}default:V=f.SHORT;break a}V=void 0}return V?(new _.jBr("{DURATION_VALUE,plural,"+V+"}")).format({DURATION_VALUE:D}):""};
htZ.prototype.format=function(V){var D=[],f=V.years,n=V.months,t=V.weeks,J=V.days,H=V.hours,Q=V.minutes;V=V.seconds;f!=null&&D.push(lo(this,f,"years"));n!=null&&D.push(lo(this,n,"months"));t!=null&&D.push(lo(this,t,"weeks"));J!=null&&D.push(lo(this,J,"days"));H!=null&&D.push(lo(this,H,"hours"));Q!=null&&D.push(lo(this,Q,"minutes"));V!=null&&D.push(lo(this,V,"seconds"));return(new rYR).format(D)};
var Q7f=!1,ihq=function(V){_.VY.call(this,V.message||V.description||V.name);this.isMissing=V instanceof og;this.isTimeout=V instanceof _.IE&&V.errorCode=="net.timeout";this.isCanceled=V instanceof _.Sb};
_.v(ihq,_.VY);ihq.prototype.name="BiscottiError";var og=function(){_.VY.call(this,"Biscotti ID is missing from server")};
_.v(og,_.VY);og.prototype.name="BiscottiMissingError";var Jw=null,D_c=function(){try{var V=_.Yw("yt.ads.biscotti.getId_");return V?V():cBo()}catch(D){return _.Br(D)}},Mkv,TaX=function(V,D){return _.nA({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:V,command:D}})},bXw=function(V){return _.nA({type:"SET_GUIDE_IS_EXPANDED",
payload:V})},Kfv=function(V){return _.nA({type:"SET_ONLINE_STATUS",
payload:V})},yYR=function(V,D){return _.nA({type:"SET_TRANSCRIPTION_STATE",
payload:{high:V,low:D}})},ZXV=function(V){return _.nA({type:"SET_OVERLAY_STATE",
payload:V})},j70=0,ltJ=function(V,D,f){var n=this;
this.priority=D;this.delay=f;this.jobId=0;this.completionCallback=_.Kp;this.wrappedJob=function(){V();n.completionCallback()};
this.id=++j70};
ltJ.prototype.enqueue=function(V){this.completionCallback=V;this.jobId=_.dm.addJob(this.wrappedJob,this.priority,this.delay)};
var GD=function(){_.M7.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.v(GD,_.M7);GD.prototype.addJob=function(V,D,f){V=new ltJ(V,D,f);this.taskIdToTask.set(V.id,V);this.isActive?GvW(this,V):this.suspendedTasks.add(V);return V.id};
var GvW=function(V,D){V.scheduledTasks.add(D);D.enqueue(function(){V.scheduledTasks.delete(D)})};
GD.prototype.cancelJob=function(V){(V=this.taskIdToTask.get(V))&&(this.scheduledTasks.delete(V)?_.dm.cancelJob(V.jobId):this.suspendedTasks.delete(V))};
GD.prototype.pause=function(){var V=this;this.isActive=!1;this.scheduledTasks.forEach(function(D){_.dm.cancelJob(D.jobId);V.suspendedTasks.add(D)});
this.scheduledTasks.clear()};
GD.prototype.start=function(){var V=this;this.isActive=!0;this.suspendedTasks.forEach(function(D){GvW(V,D)});
this.suspendedTasks.clear()};
GD.prototype.reset=function(){this.scheduledTasks.forEach(function(V){_.dm.cancelJob(V.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var eg=function(V,D){this.JSC$11074_networkService_=V;this.pageRequestPromise=D};
eg.prototype.fetchData=function(V){e6o(this,this.JSC$11074_networkService_.fetchData(V))};
eg.prototype.postData=function(V,D){e6o(this,this.JSC$11074_networkService_.postData(V,D))};
eg.prototype.requestDataForServiceEndpoint=function(V,D){e6o(this,this.JSC$11074_networkService_.requestDataForServiceEndpoint(V,D))};
var e6o=function(V,D){D.then(V.pageRequestPromise.onSuccess,V.pageRequestPromise.onFailure,V.pageRequestPromise)};
eg.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var cm=function(V){this.buildNetworkRequest_=V;this.pendingRequests_=new Set};
cm.prototype.reset=function(){this.pendingRequests_.forEach(function(V){V.cancel()});
this.pendingRequests_.clear()};
cm.prototype.fetchData=function(V){var D=cYo(this);D.fetchData(V);return D.pageRequestPromise};
cm.prototype.postData=function(V,D){var f=cYo(this);f.postData(V,D);return f.pageRequestPromise};
cm.prototype.requestDataForServiceEndpoint=function(V,D){var f=cYo(this);f.requestDataForServiceEndpoint(V,D);return f.pageRequestPromise};
var cYo=function(V){var D=V.buildNetworkRequest_();V.pendingRequests_.add(D);var f=function(){V.pendingRequests_.delete(D)};
D.pageRequestPromise.then(f,f);return D},Ffq=function(V){var D=new GD;
this.JSC$11081_networkService_=V;this.JSC$11081_taskManager_=D;this.JSC$11081_networkManager_=new cm(this.networkRequestFactory_.bind(this))};
_.P=Ffq.prototype;_.P.networkRequestFactory_=function(){return new eg(this.JSC$11081_networkService_,new _.Ug(this.JSC$11081_taskManager_))};
_.P.reset=function(){this.JSC$11081_taskManager_.reset();this.JSC$11081_networkManager_.reset()};
_.P.start=function(){this.JSC$11081_taskManager_.start()};
_.P.pause=function(){this.JSC$11081_taskManager_.pause()};
_.P.getTaskManager=function(){return this.JSC$11081_taskManager_};
_.P.getNetworkManager=function(){return this.JSC$11081_networkManager_};
var nbX=null,obX=[],rB=0,wB=0,Ha=null,gCZ=!1,QI=null,rk0=void 0,vC3=function(){var V=(0,_.L1U)();V&&tDv(V,V.mechanism.__iterator__(!0))},bZ=function(V){this.token=V};
bZ.getInstance=function(){var V;return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.hU(),2);V=D.yieldResult;if(!V)return D.return();bZ.instance||(bZ.instance=new bZ(V));return D.return(bZ.instance)})};
var Kwc=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,Q2Z(V.token),2);D=f.yieldResult;return f.return(D.clear("resource-manifest-assets"))})},TQ=function(V){this.token=V};
TQ.getInstance=function(){var V;return _.w(function(D){if(D.nextAddress==1)return _.b(D,_.hU(),2);V=D.yieldResult;if(!V)return D.return();TQ.instance||(TQ.instance=new TQ(V));return D.return(TQ.instance)})};
var TqB=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,Q2Z(V.token),2);D=f.yieldResult;return _.b(f,D.clear("auth"),0)})},CNX=!1,kvv=function(V){_.VY.call(this,V)};
_.v(kvv,_.cWV);var s7R="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");HOR()&&s7R.push("details:not(:has(summary))");var QGB=s7R.join(",");var m1W=function(){var V=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return V?parseInt(V[1],10):0},Bao=function(V){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+V)!=-1||document.currentScript.src.indexOf("&"+V)!=-1)},ds0=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},XAv=function(V){V.length?uOf(V.shift(),function(){XAv(V)}):R0o()},ARv=function(V){return"chrome-extension://"+V+"/cast_sender.js"},uOf=function(V,
D,f){var n=document.createElement("script");
n.onerror=D;f&&(n.onload=f);_.Yx(n,_.vq(V));(document.head||document.documentElement).appendChild(n)},NaJ=function(){var V=m1W(),D=[];
if(V>1){var f=V-1;D.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js");D.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js")}return D},R0o=function(){var V=ds0();
V&&V(!1,"No cast extension found")},q2q=function(){if(msB){var V=2,D=ds0(),f=function(){V--;
V==0&&D&&D(!0)};
window.__onGCastApiAvailable=f;uOf("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",R0o,f)}},z0o=function(){q2q();
var V=NaJ();V.push("//www.gstatic.com/eureka/clank/cast_sender.js");XAv(V)},CCv=function(){q2q();
var V=NaJ();V.push.apply(V,_.sz(E8J.map(ARv)));V.push("//www.gstatic.com/eureka/clank/cast_sender.js");XAv(V)},msB=Bao("loadCastFramework")||Bao("loadCastApplicationFramework"),E8J=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var z6c=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(z6c,_.Xm);var R6X=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(R6X,_.Xm);var CfR=function(){var V=new R6X;return _.Cg(V,1,3)};var Fr=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Fr,_.Xm);var RdJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(RdJ,_.Xm);var qww=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(qww,_.Xm);qww.prototype.getToken=function(){return _.df(this,1)};
qww.prototype.setToken=function(V){return _.O1(this,1,V)};
var m2o=function(V){return _.c7(V,3,_.Yf,_.DC())},zdW=function(V){return _.c7(V,6,_.Yf,_.DC())};var gz=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(gz,_.Xm);gz.prototype.getToken=function(){return _.bW(this,qww,2)};
gz.prototype.setToken=function(V){return _.fc(this,2,V)};
gz.prototype.getName=function(){return _.df(this,6)};
var XW0=_.V2(gz);var ECX=function(V,D,f){this.requestMessage=V;this.methodDescriptor=D;this.metadata=f};
ECX.prototype.getMetadata=function(){return this.metadata};var AYX=function(V,D){D=D===void 0?{}:D;this.responseMessage=V;this.metadata=D;this.status=null};
AYX.prototype.getMetadata=function(){return this.metadata};
AYX.prototype.getStatus=function(){return this.status};var vm=function(V,D,f,n,t){this.name=V;this.methodType="unary";this.requestType=D;this.responseType=f;this.requestSerializeFn=n;this.responseDeserializeFn=t},atw=function(V,D,f){f=f===void 0?{}:f;
return new ECX(D,V,f)};
vm.prototype.getName=function(){return this.name};var kO=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(kO,_.Xm);kO.prototype.setHeader=function(V){return _.fc(this,1,V)};
kO.prototype.hasHeader=function(){return _.jP(this,Fr,1)};var Ywo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Ywo,_.Xm);var $sq=new vm("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",kO,Ywo,function(V){return V.serialize()},_.V2(Ywo));var sT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(sT,_.Xm);sT.prototype.setHeader=function(V){return _.fc(this,1,V)};
sT.prototype.hasHeader=function(){return _.jP(this,Fr,1)};var iX3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(iX3,_.Xm);var SwV=new vm("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",sT,iX3,function(V){return V.serialize()},_.V2(iX3));var Bm=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Bm,_.Xm);Bm.prototype.setHeader=function(V){return _.fc(this,1,V)};
Bm.prototype.hasHeader=function(){return _.jP(this,Fr,1)};var Wf3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Wf3,_.Xm);Wf3.prototype.getLink=function(){return _.bW(this,gz,1)};var pWv=new vm("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Bm,Wf3,function(V){return V.serialize()},_.V2(Wf3));var dz=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(dz,_.Xm);dz.prototype.setHeader=function(V){return _.fc(this,1,V)};
dz.prototype.hasHeader=function(){return _.jP(this,Fr,1)};var LfX=new vm("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",dz,gz,function(V){return V.serialize()},XW0);var Ito=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Ito,_.Xm);var OXf=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(OXf,_.Xm);OXf.prototype.getUrl=function(){return _.df(this,2)};
OXf.prototype.setUrl=function(V){return _.O1(this,2,V)};var xsV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(xsV,_.Xm);var MK0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(MK0,_.Xm);var h6X=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(h6X,_.Xm);var WiB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(WiB,_.Xm);var SEc=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(SEc,_.Xm);var Us3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Us3,_.Xm);var hdR=_.V2(Us3);var VbV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(VbV,_.Xm);var uo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(uo,_.Xm);uo.prototype.setHeader=function(V){return _.fc(this,1,V)};
uo.prototype.hasHeader=function(){return _.jP(this,Fr,1)};
uo.prototype.getCompletionUrl=function(){return _.df(this,6)};
uo.prototype.getDeviceId=function(){return _.df(this,11)};var DRB=new vm("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",uo,Us3,function(V){return V.serialize()},hdR);var frq=new Set(["SAPISIDHASH","APISIDHASH"]);var nVR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(nVR,_.Xm);nVR.prototype.getMessage=function(){return _.df(this,2)};
var tbB=_.V2(nVR);var Ny=function(V,D){this.xhrNodeReadableStream_=V.nodeReadableStream;this.grpcResponseDeserializeFn_=D;this.JSC$17229_xhr_=V.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17229_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&PnR(this)},Qmv=function(V,D){var f=new oVf;
_.kt(V.JSC$17229_xhr_,"complete",function(){if(V.JSC$17229_xhr_.isSuccess()){var n=V.JSC$17229_xhr_.getResponseText();var t;if(t=D)t=V.JSC$17229_xhr_,t.JSC$7885_xhr_&&t.isComplete()?(t=t.JSC$7885_xhr_.getResponseHeader("Content-Type"),t=t===null?void 0:t):t=void 0,t=t==="text/plain";if(t){if(!atob)throw Error("Sj");n=atob(n)}try{var J=V.grpcResponseDeserializeFn_(n)}catch(Q){mb(V,l5W(new _.gH(13,"Error when deserializing response data; error: "+Q+(", response: "+n)),f));return}n=_.MBd(V.JSC$17229_xhr_.getStatus());
JEJ(V,rE3(V));n==0?HLc(V,J):mb(V,l5W(new _.gH(n,"Xhr succeeded but the status code is not 200"),f))}else{n=V.JSC$17229_xhr_.getResponseText();J=rE3(V);if(n){var H=wCZ(V,n);n=H.code;t=H.details;H=H.metadata}else n=2,t="Rpc failed due to xhr error. uri: "+String(V.JSC$17229_xhr_.JSC$7885_lastUri_)+", error code: "+V.JSC$17229_xhr_.JSC$7885_lastErrorCode_+", error: "+V.JSC$17229_xhr_.getLastError(),H=J;JEJ(V,J);mb(V,l5W(new _.gH(n,t,H),f))}})},PnR=function(V){V.xhrNodeReadableStream_.on("data",function(D){if("1"in
D){var f=D["1"];
try{var n=V.grpcResponseDeserializeFn_(f)}catch(t){mb(V,new _.gH(13,"Error when deserializing response data; error: "+t+(", response: "+f)))}n&&HLc(V,n)}if("2"in D)for(D=wCZ(V,D["2"]),f=0;f<V.onStatusCallbacks_.length;f++)V.onStatusCallbacks_[f](D)});
V.xhrNodeReadableStream_.on("end",function(){JEJ(V,rE3(V));for(var D=0;D<V.onEndCallbacks_.length;D++)V.onEndCallbacks_[D]()});
V.xhrNodeReadableStream_.on("error",function(){if(V.JSC$17229_onErrorCallbacks_.length!=0){var D=V.JSC$17229_xhr_.JSC$7885_lastErrorCode_;D!==0||V.JSC$17229_xhr_.isSuccess()||(D=6);var f=-1;switch(D){case 0:var n=2;break;case 7:n=10;break;case 8:n=4;break;case 6:f=V.JSC$17229_xhr_.getStatus();n=_.MBd(f);break;default:n=14}JEJ(V,rE3(V));D=_.NQr(D)+", error: "+V.JSC$17229_xhr_.getLastError();f!=-1&&(D+=", http status code: "+f);mb(V,new _.gH(n,D))}})},rE3=function(V){var D={},f=UAV(V.JSC$17229_xhr_);
Object.keys(f).forEach(function(n){D[n]=f[n]});
return D},wCZ=function(V,D){var f=2,n={};
try{var t=tbB(D);f=_.fJ(t,1);var J=t.getMessage();_.Vh(t,hCX,3,_.DC()).length&&(n["grpc-web-status-details-bin"]=D)}catch(H){V.JSC$17229_xhr_&&V.JSC$17229_xhr_.getStatus()===404?(f=5,J="Not Found: "+String(V.JSC$17229_xhr_.JSC$7885_lastUri_)):(f=14,J="Unable to parse RpcStatus: "+H)}return{code:f,details:J,metadata:n}};
Ny.prototype.on=function(V,D){V=="data"?this.onDataCallbacks_.push(D):V=="metadata"?this.onMetadataCallbacks_.push(D):V=="status"?this.onStatusCallbacks_.push(D):V=="end"?this.onEndCallbacks_.push(D):V=="error"&&this.JSC$17229_onErrorCallbacks_.push(D);return this};
var zD=function(V,D){D=V.indexOf(D);D>-1&&V.splice(D,1)};
Ny.prototype.removeListener=function(V,D){V=="data"?zD(this.onDataCallbacks_,D):V=="metadata"?zD(this.onMetadataCallbacks_,D):V=="status"?zD(this.onStatusCallbacks_,D):V=="end"?zD(this.onEndCallbacks_,D):V=="error"&&zD(this.JSC$17229_onErrorCallbacks_,D);return this};
Ny.prototype.cancel=function(){this.JSC$17229_xhr_.abort()};
var HLc=function(V,D){for(var f=0;f<V.onDataCallbacks_.length;f++)V.onDataCallbacks_[f](D)},JEJ=function(V,D){for(var f=0;f<V.onMetadataCallbacks_.length;f++)V.onMetadataCallbacks_[f](D)},mb=function(V,D){for(var f=0;f<V.JSC$17229_onErrorCallbacks_.length;f++)V.JSC$17229_onErrorCallbacks_[f](D)};
Ny.prototype.cancel=Ny.prototype.cancel;Ny.prototype.removeListener=Ny.prototype.removeListener;Ny.prototype.on=Ny.prototype.on;var oVf=function(){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.v(oVf,Error);var RL=function(V){this.JSC$17238_worker_=V.worker||null;this.JSC$17238_streamBinaryChunks_=V.streamBinaryChunks||!1;this.JSC$17238_credentialsMode_=void 0};
_.fg(RL,_.UN9);RL.prototype.createInstance=function(){var V=new CM(this.JSC$17238_worker_,this.JSC$17238_streamBinaryChunks_);this.JSC$17238_credentialsMode_&&V.setCredentialsMode(this.JSC$17238_credentialsMode_);return V};
RL.prototype.setCredentialsMode=function(V){this.JSC$17238_credentialsMode_=V};
var CM=function(V,D){_.jT.call(this);this.JSC$17242_worker_=V;this.JSC$17242_streamBinaryChunks_=D;this.JSC$17242_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$17242_responseHeaders_=null;this.JSC$17242_method_="GET";this.JSC$17242_url_="";this.inProgress_=!1;this.JSC$17242_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.fg(CM,_.jT);CM.prototype.open=function(V,D){if(this.readyState!=0)throw this.abort(),Error("Tj");this.JSC$17242_method_=V;this.JSC$17242_url_=D;this.readyState=1;qy(this)};
CM.prototype.send=function(V){if(this.readyState!=1)throw this.abort(),Error("Uj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Vj");this.inProgress_=!0;var D={headers:this.requestHeaders_,method:this.JSC$17242_method_,credentials:this.JSC$17242_credentialsMode_,cache:void 0,signal:this.abortController_.signal};V&&(D.body=V);(this.JSC$17242_worker_||_.fx).fetch(new Request(this.JSC$17242_url_,D)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
CM.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Xr(this));this.readyState=0};
CM.prototype.handleResponse_=function(V){if(this.inProgress_&&(this.fetchResponse_=V,this.JSC$17242_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17242_responseHeaders_=V.headers,this.readyState=2,qy(this)),this.inProgress_&&(this.readyState=3,qy(this),this.inProgress_)))if(this.responseType==="arraybuffer")V.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.fx.ReadableStream!==
"undefined"&&"body"in V){this.currentReader_=V.body.getReader();if(this.JSC$17242_streamBinaryChunks_){if(this.responseType)throw Error("Wj");this.response=[]}else this.response=this.responseText="",this.JSC$17242_textDecoder_=new TextDecoder;T3V(this)}else V.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var T3V=function(V){V.currentReader_.read().then(V.handleDataFromStream_.bind(V)).catch(V.handleSendFailure_.bind(V))};
CM.prototype.handleDataFromStream_=function(V){if(this.inProgress_){if(this.JSC$17242_streamBinaryChunks_&&V.value)this.response.push(V.value);else if(!this.JSC$17242_streamBinaryChunks_){var D=V.value?V.value:new Uint8Array(0);if(D=this.JSC$17242_textDecoder_.decode(D,{stream:!V.done}))this.response=this.responseText+=D}V.done?Xr(this):qy(this);this.readyState==3&&T3V(this)}};
CM.prototype.handleResponseText_=function(V){this.inProgress_&&(this.response=this.responseText=V,Xr(this))};
CM.prototype.handleResponseArrayBuffer_=function(V){this.inProgress_&&(this.response=V,Xr(this))};
CM.prototype.handleSendFailure_=function(){this.inProgress_&&Xr(this)};
var Xr=function(V){V.readyState=4;V.fetchResponse_=null;V.currentReader_=null;V.JSC$17242_textDecoder_=null;qy(V)};
CM.prototype.setRequestHeader=function(V,D){this.requestHeaders_.append(V,D)};
CM.prototype.getResponseHeader=function(V){return this.JSC$17242_responseHeaders_?this.JSC$17242_responseHeaders_.get(V.toLowerCase())||"":""};
CM.prototype.getAllResponseHeaders=function(){if(!this.JSC$17242_responseHeaders_)return"";for(var V=[],D=this.JSC$17242_responseHeaders_.entries(),f=D.next();!f.done;)f=f.value,V.push(f[0]+": "+f[1]),f=D.next();return V.join("\r\n")};
CM.prototype.setCredentialsMode=function(V){this.JSC$17242_credentialsMode_=V};
var qy=function(V){V.onreadystatechange&&V.onreadystatechange.call(V)};
Object.defineProperty(CM.prototype,"withCredentials",{get:function(){return this.JSC$17242_credentialsMode_==="include"},
set:function(V){this.setCredentialsMode(V?"include":"same-origin")}});var bL3=function(V){var D="";_.sB.forEach(V,function(f,n){D+=n;D+=":";D+=f;D+="\r\n"});
return D},KDR=function(V,D,f){if(_.sB.isEmpty(f))return V;
f=bL3(f);if(typeof V==="string")return _.EO(V,_.ia(D),f);_.iW(V,D,f);return V};var yEf=function(){this.isInputValid_=!0;this.JSC$17247_streamPos_=0;this.leftoverInput_=""};
yEf.prototype.isInputValid=function(){return this.isInputValid_};var Zj=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17250_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Zj.prototype.isInputValid=function(){return this.state_!=3};
var ET=function(V,D,f,n){V.state_=3;V.errorMessage_="The stream is broken @"+V.JSC$17250_streamPos_+"/"+f+". Error: "+n+". With input:\n"+D;throw Error(V.errorMessage_);};
Zj.prototype.acceptsBinaryInput=function(){return!0};
Zj.prototype.parse=function(V){function D(T){T&128&&ET(J,H,Q,"invalid tag");(T&7)!=2&&ET(J,H,Q,"invalid wire type");J.tag_=T>>>3;J.tag_!=1&&J.tag_!=2&&J.tag_!=15&&ET(J,H,Q,"unexpected tag");J.state_=1;J.length_=0;J.countLengthBytes_=0}
function f(T){J.countLengthBytes_++;J.countLengthBytes_==5&&T&240&&ET(J,H,Q,"message length too long");J.length_|=(T&127)<<(J.countLengthBytes_-1)*7;T&128||(J.state_=2,J.countMessageBytes_=0,typeof Uint8Array!=="undefined"?J.messageBuffer_=new Uint8Array(J.length_):J.messageBuffer_=Array(J.length_),J.length_==0&&t())}
function n(T){J.messageBuffer_[J.countMessageBytes_++]=T;J.countMessageBytes_==J.length_&&t()}
function t(){if(J.tag_<15){var T={};T[J.tag_]=J.messageBuffer_;J.result_.push(T)}J.state_=0}
for(var J=this,H=V instanceof Array?V:new Uint8Array(V),Q=0;Q<H.length;){switch(J.state_){case 3:ET(J,H,Q,"stream already broken");break;case 0:D(H[Q]);break;case 1:f(H[Q]);break;case 2:n(H[Q]);break;default:throw Error("Yj`"+J.state_);}J.JSC$17250_streamPos_++;Q++}V=J.result_;J.result_=[];return V.length>0?V:null};var ed3=function(){this.errorMessage_=null;this.JSC$17253_streamPos_=0;this.base64Decoder_=new yEf;this.pbParser_=new Zj};
ed3.prototype.isInputValid=function(){return this.errorMessage_===null};
var ZLR=function(V,D,f){V.errorMessage_="The stream is broken @"+V.JSC$17253_streamPos_+". Error: "+f+". With input:\n"+D;throw Error(V.errorMessage_);};
ed3.prototype.acceptsBinaryInput=function(){return!1};
ed3.prototype.parse=function(V){this.errorMessage_!==null&&ZLR(this,V,"stream already broken");var D=null;try{var f=this.base64Decoder_;if(!f.isInputValid_)throw f.isInputValid_=!1,Error("Xj`"+f.JSC$17247_streamPos_+"`stream already broken`"+V);f.leftoverInput_+=V;var n=Math.floor(f.leftoverInput_.length/4);if(n==0)var t=null;else{try{var J=_.UK3(f.leftoverInput_.slice(0,n*4))}catch(T){var H=f.leftoverInput_,Q=T.message;f.isInputValid_=!1;throw Error("Xj`"+f.JSC$17247_streamPos_+"`"+Q+"`"+H);}f.JSC$17247_streamPos_+=
n*4;f.leftoverInput_=f.leftoverInput_.slice(n*4);t=J}D=t===null?null:this.pbParser_.parse(t)}catch(T){ZLR(this,V,T.message)}this.JSC$17253_streamPos_+=V.length;return D};var Gto=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17256_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Gto.prototype.isInputValid=function(){return this.errorMessage_===null};
Gto.prototype.acceptsBinaryInput=function(){return!1};
Gto.prototype.parse=function(V){function D(T){J.state_=6;J.errorMessage_="The stream is broken @"+J.JSC$17256_streamPos_+"/"+H+". Error: "+T+". With input:\n";throw Error(J.errorMessage_);}
function f(){J.jsonStreamParser_=new _.D7({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function n(T){if(T)for(var y=0;y<T.length;y++){var Z={};Z[1]=T[y];J.result_.push(Z)}}
function t(T){if(T){(J.statusParsed_||T.length>1)&&D("extra status: "+T);J.statusParsed_=!0;var y={};y[2]=T[0];J.result_.push(y)}}
for(var J=this,H=0;H<V.length;){var Q;if(Q=J.state_!==2){a:{for(;H<V.length;){if(!_.VU(V[H])){Q=!0;break a}H++;J.JSC$17256_streamPos_++}Q=!1}Q=!Q}if(Q)return null;switch(J.state_){case 6:D("stream already broken");break;case 0:V[H]==="["?(J.state_=1,H++,J.JSC$17256_streamPos_++):D("unexpected input token");break;case 1:V[H]==="["?(J.state_=2,f()):V[H]===","||V.slice(H,H+5)=="null,"?J.state_=3:V[H]==="]"?(J.state_=5,H++,J.JSC$17256_streamPos_++):D("unexpected input token");break;case 2:Q=J.jsonStreamParser_.parse(V.substring(H));
n(Q);J.jsonStreamParser_.done()?(J.state_=3,Q=J.jsonStreamParser_.JSC$9520_buffer_,J.JSC$17256_streamPos_+=V.length-H-Q.length,V=Q,H=0):(J.JSC$17256_streamPos_+=V.length-H,H=V.length);break;case 3:V[H]===","||V.slice(H,H+5)=="null,"?(J.state_=4,f(),J.jsonStreamParser_.parse("["),H+=V[H]===","?1:5,J.JSC$17256_streamPos_++):V[H]==="]"&&(J.state_=5,H++,J.JSC$17256_streamPos_++);break;case 4:Q=J.jsonStreamParser_.parse(V.substring(H));t(Q);J.jsonStreamParser_.done()?(J.state_=5,Q=J.jsonStreamParser_.JSC$9520_buffer_,
J.JSC$17256_streamPos_+=V.length-H-Q.length,V=Q,H=0):(J.JSC$17256_streamPos_+=V.length-H,H=V.length);break;case 5:D("extra input after stream end")}}return J.result_.length>0?(V=J.result_,J.result_=[],V):null};var jmV=function(V){this.JSC$17259_xhr_=V;this.JSC$17259_parser_=null;this.status_=this.JSC$17259_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17259_textDecoder_=null;this.JSC$17259_eventHandler_=new _.fl(this);this.JSC$17259_eventHandler_.listen(this.JSC$17259_xhr_,"readystatechange",this.JSC$17261_readyStateChangeHandler_)},AW=function(V,D){V.status_!=D&&(V.status_=D,V.statusHandler_&&V.statusHandler_())},aL=function(V){V.JSC$17259_eventHandler_.removeAll();
if(V.JSC$17259_xhr_){var D=V.JSC$17259_xhr_;V.JSC$17259_xhr_=null;D.abort();D.dispose()}};
jmV.prototype.getStatus=function(){return this.status_};
jmV.prototype.JSC$17261_readyStateChangeHandler_=function(V){V=V.target;try{if(V==this.JSC$17259_xhr_)a:{var D=_.s7(this.JSC$17259_xhr_),f=this.JSC$17259_xhr_.JSC$7885_lastErrorCode_,n=this.JSC$17259_xhr_.getStatus(),t=this.JSC$17259_xhr_.getResponseText();V=[];if(this.JSC$17259_xhr_.getResponse()instanceof Array){var J=this.JSC$17259_xhr_.getResponse();J.length>0&&J[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,V=J)}if(!(D<3||D==3&&!t&&V.length==0))if(n=n==200||n==206,D==4&&(f==8?AW(this,
7):f==7?AW(this,8):n||AW(this,3)),this.JSC$17259_parser_||(this.JSC$17259_parser_=cqX(this.JSC$17259_xhr_),this.JSC$17259_parser_==null&&AW(this,5)),this.status_>2)aL(this);else{if(V.length>this.JSC$17259_pos_){var H=V.length;f=[];try{if(this.JSC$17259_parser_.acceptsBinaryInput())for(var Q=0;Q<H;Q++){var T=this.JSC$17259_parser_.parse(Array.from(V[Q]));T&&(f=f.concat(T))}else{T="";if(!this.JSC$17259_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Zj");this.JSC$17259_textDecoder_=new TextDecoder}for(Q=
0;Q<H;Q++)T+=this.JSC$17259_textDecoder_.decode(V[Q],{stream:D==4&&Q==H-1});f=this.JSC$17259_parser_.parse(T)}V.splice(0,H);f&&this.dataHandler_(f)}catch(Z){AW(this,5);aL(this);break a}}else if(t.length>this.JSC$17259_pos_){Q=t.slice(this.JSC$17259_pos_);this.JSC$17259_pos_=t.length;try{var y=this.JSC$17259_parser_.parse(Q);y!=null&&this.dataHandler_&&this.dataHandler_(y)}catch(Z){AW(this,5);aL(this);break a}}D==4?(t.length!=0||this.hasStreamingResponseData_?AW(this,2):AW(this,4),aL(this)):AW(this,
1)}}}catch(Z){AW(this,6),aL(this)}};var lrf=function(V){V=this.xhrReader_=V;var D=(0,_.F1)(this.onData_,this);V.dataHandler_=D;V=this.xhrReader_;D=(0,_.F1)(this.onStatusChange_,this);V.statusHandler_=D;this.JSC$17263_callbackMap_={};this.callbackOnceMap_={}};
_.P=lrf.prototype;_.P.on=function(V,D){var f=this.JSC$17263_callbackMap_[V];f||(f=[],this.JSC$17263_callbackMap_[V]=f);f.push(D);return this};
_.P.addListener=function(V,D){this.on(V,D);return this};
_.P.removeListener=function(V,D){var f=this.JSC$17263_callbackMap_[V];f&&_.IY(f,D);(V=this.callbackOnceMap_[V])&&_.IY(V,D);return this};
_.P.once=function(V,D){var f=this.callbackOnceMap_[V];f||(f=[],this.callbackOnceMap_[V]=f);f.push(D);return this};
_.P.onData_=function(V){var D=this.JSC$17263_callbackMap_.data;D&&GSc(V,D);(D=this.callbackOnceMap_.data)&&GSc(V,D);this.callbackOnceMap_.data=[]};
var GSc=function(V,D){for(var f={},n=0;n<V.length;f={message$jscomp$969:void 0},n++)f.message$jscomp$969=V[n],D.forEach(function(t){return function(J){try{J(t.message$jscomp$969)}catch(H){}}}(f))};
lrf.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:eS0(this,"readable");break;case 5:case 6:case 4:case 7:case 3:eS0(this,"error");break;case 8:eS0(this,"close");break;case 2:eS0(this,"end")}};
var eS0=function(V,D){var f=V.JSC$17263_callbackMap_[D];f&&f.forEach(function(n){try{n()}catch(t){}});
(f=V.callbackOnceMap_[D])&&f.forEach(function(n){n()});
V.callbackOnceMap_[D]=[]};var cER=function(){var V={format:"jspb"};V=V===void 0?{}:V;this.suppressCorsPreflight=V.suppressCorsPreflight||_.Yw("suppressCorsPreflight",V)||!1;this.withCredentials=V.withCredentials||_.Yw("withCredentials",V)||!1;this.streamInterceptors=V.streamInterceptors||[];this.unaryInterceptors=V.unaryInterceptors||[];this.workerScope=V.workerScope;this.chunkedServerStreaming=V.useFetchDownloadStreams||!1},vVf=function(V,D,f,n,t,J){J=J===void 0?{}:J;
var H=D.substring(0,D.length-t.name.length),Q,T=(Q=J)==null?void 0:Q.signal;return FDJ(function(y){return new Promise(function(Z,l){if(T==null?0:T.aborted){var G=new _.gH(1,"Aborted");G.cause=T.reason;l(G)}else{var F={},k=gVV(V,y,H);k.on("error",function(d){return void l(d)});
k.on("metadata",function(d){F=d});
k.on("data",function(d){var z=F;z=z===void 0?{}:z;Z(new AYX(d,z))});
T&&T.addEventListener("abort",function(){k.cancel();var d=new _.gH(1,"Aborted");d.cause=T.reason;l(d)})}})},V.unaryInterceptors).call(V,atw(t,f,n)).then(function(y){return y.responseMessage})},YO=function(V,D,f,n,t,J){J=J===void 0?{}:J;
return vVf(V,D,f,n,t,J)};
cER.prototype.serverStreaming=function(V,D,f,n){var t=this,J=V.substring(0,V.length-n.name.length);return kS0(function(H){var Q=H.methodDescriptor,T=H.getMetadata(),y=smX(t,!1);T=B3X(t,T,y,J+Q.getName());var Z=dR0(y,Q.responseDeserializeFn,!0);H=Q.requestSerializeFn(H.requestMessage);y.send(T,"POST",H);return Z},this.streamInterceptors).call(this,atw(n,D,f))};
var gVV=function(V,D,f){var n=D.methodDescriptor,t=D.getMetadata(),J=smX(V,!0);V=B3X(V,t,J,f+n.getName());f=dR0(J,n.responseDeserializeFn,!1);Qmv(f,t["X-Goog-Encode-Response-If-Executable"]==="base64");D=n.requestSerializeFn(D.requestMessage);J.send(V,"POST",D);return f},smX=function(V,D){D=V.chunkedServerStreaming&&!D;
return V.workerScope||D?new _.kq(new RL({worker:V.workerScope,streamBinaryChunks:D})):new _.kq},B3X=function(V,D,f,n){D["Content-Type"]="application/json+protobuf";
D["X-User-Agent"]="grpc-web-javascript/0.1";var t=D.Authorization;if(t&&frq.has(t.split(" ")[0])||V.withCredentials)f.JSC$7885_withCredentials_=!0;if(V.suppressCorsPreflight)n=KDR(n,"$httpHeaders",D);else for(V=_.r(Object.keys(D)),t=V.next();!t.done;t=V.next())t=t.value,f.headers.set(t,D[t]);return n},dR0=function(V,D,f){if(f){f=new jmV(V);
var n=new lrf(f)}return new Ny({xhr:V,nodeReadableStream:n},D)},kS0=function(V,D){return D.reduce(function(f,n){return function(t){return n.intercept(t,f)}},V)},FDJ=function(V,D){return D.reduce(function(f,n){return function(t){return n.intercept(t,f)}},V)};var uWR=function(V){this.client_=new cER;this.hostname_=V==void 0?V:V.replace(/\/+$/,"")};
_.P=uWR.prototype;_.P.JSC$17281_depositGoogleCredential=function(V,D,f){return YO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",V,D||{},SwV,f)};
_.P.deleteLink=function(V,D,f){return YO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",V,D||{},$sq,f)};
_.P.JSC$17281_finishOAuth=function(V,D,f){return YO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",V,D||{},pWv,f)};
_.P.getLink=function(V,D,f){return YO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",V,D||{},LfX,f)};
_.P.startLinkingSession=function(V,D,f){return YO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",V,D||{},DRB,f)};var N3q=[0,iTX,1,pjB,[0,_.Wb,[0,So3,-1]],[0,WAJ],[0,LAB,-1]];var mRR=function(){this.storage=new Map},RSq=function(V,D,f,n,t){if(!V.storage.has(D))return null;
V=_.r(V.storage.get(D));for(D=V.next();!D.done;D=V.next())if(D=D.value,!t||D.linkName===t)if(f&&D.scopes&&zSf(D.scopes,f)||n&&D.capabilities&&zSf(D.capabilities,n))return D;return null},Cno=function(V,D,f){if(!f)V.storage.delete(D);
else if(V.storage.has(D)){var n=V.storage.get(D).filter(function(t){return t.linkName!==f});
n.length>0?V.storage.set(D,n):V.storage.delete(D)}},zSf=function(V,D){D=_.r(D);
for(var f=D.next();!f.done;f=D.next())if(!V.has(f.value))return!1;return!0};var q1W=function(){var V=_.XB("LINK_GAL_DOMAIN");this.alsDomain1p=_.XB("LINK_GAL_DOMAIN");this.alsDomain3p=V;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},XC3=function(V,D){V.apiKey=D;
return V};
q1W.prototype.build=function(){var V={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("$j");V.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("ak");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("bk");V.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(V.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)V.apiKey=
this.apiKey,V.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ck");V.oauthToken=this.oauthToken;V.alsDomain=this.alsDomain3p}V.clientXd3=this.clientXd3;V.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(V.authUser=this.authUser);this.bucket!==void 0&&(V.bucket=this.bucket);this.completionUrl!==void 0&&(V.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(V.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(V.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(V.locale=this.locale);V.loggerType=this.loggerType;V.clientEnvironment=this.clientEnvironment;V.colorScheme=this.colorScheme;V.showCloseOption=this.showCloseOption;return V};var jr=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(jr,_.Xm);var EVJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(EVJ,_.Xm);var AEo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(AEo,_.Xm);var GQ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(GQ,_.Xm);var arX=function(V){return _.u4(V,1)};var Y1W=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Y1W,_.Xm);var d2V=_.V2(Y1W),lZ=[1,2,3,4,5];var viR=function(V){try{return d2V(V)}catch(D){return null}},$RZ=function(){},ktW=function(V,D){switch(_.cb(D,lZ)){case 4:return(D=_.zl(D,AEo,4,lZ))&&V.logStateTransition(_.u4(D,1)),!0;
case 5:return(D=_.zl(D,EVJ,5,lZ))&&V.logInternalEvent(_.u4(D,1)),!0}return!1},uzX=function(V){switch(V){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.JZ(V)}};var Fi0=function(V,D){var f=this;this.validator=V;this.messageListener=D;this.dismissCallback=function(){iLX(f,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17310_receiveMessage=function(n){n.type==="message"&&(n=n.event_,n!==null&&(new URL(f.iframe.src)).origin===n.origin&&f.validator(n.data,n.origin)&&!f.messageListener(n.data)&&(f.JSC$17310_resolveCb!==void 0&&f.JSC$17310_resolveCb(n.data),S1v(f)))}},Bvw=function(V,D,f){V.uiHandler!==void 0&&iLX(V,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(n,t){V.JSC$17310_resolveCb=n;V.JSC$17310_rejectCb=t;V.iframe=document.createElement("iframe");_.N8(V.iframe,D);V.uiHandler=f.displayContent(V.iframe,V.dismissCallback);_.kt(window,"message",V.JSC$17310_receiveMessage,!1,V)})},iLX=function(V,D){V.JSC$17310_rejectCb!==void 0&&V.JSC$17310_rejectCb(D);
S1v(V)},S1v=function(V){V.uiHandler!==void 0&&V.uiHandler.hideContent();
_.ZU(window,"message",V.JSC$17310_receiveMessage,!1,V);V.JSC$17310_resolveCb=void 0;V.JSC$17310_rejectCb=void 0;V.uiHandler=void 0;V.iframe=void 0};var WDq=function(V){if(V===2){var D;V=((D=window)==null?0:D.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return V},sGZ=function(V){V=WDq(V);
switch(V){case 0:return"light";case 1:return"dark";default:_.JZ(V)}};var giw=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),pCJ=function(V,D){this.JSC$17322_linkingSession=V;this.noticeConfig=D;this.displayInfoMap=new Map;var f=new Map;if(_.jP(this.JSC$17322_linkingSession,xsV,7))for(V=_.bW(this.JSC$17322_linkingSession,xsV,7),V=_.Vh(V,OXf,1,_.DC()),V=_.r(V),D=V.next();!D.done;D=V.next())D=D.value,f.set(_.u4(D,1),_.KKx(_.bW(D,_.txY,3)));if(f.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){D=this.noticeConfig.enabledDataUsageNoticeUis;V=D.has(0)?f.get(1):void 0;D=D.has(1)?f.get(2):void 0;f=V!==void 0&&D!==void 0?f.get(3):void 0;var n=this.noticeConfig.nestedOrigins;var t=new Y1W;var J=new jr;t=_.nc(t,2,lZ,J);J=new Y1W;var H=new jr;J=_.nc(J,3,lZ,H);H=[];V!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:V,lastEvent:t,nestedOrigins:n}]),H.push({trustedUrl:V,lastEvent:t,nestedOrigins:n}));D!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:D,lastEvent:J,nestedOrigins:n}]),H.push({trustedUrl:D,lastEvent:J,nestedOrigins:n}));f!==void 0?this.displayInfoMap.set(3,[{trustedUrl:f,lastEvent:J,nestedOrigins:n}]):this.displayInfoMap.set(3,H)}};var LDB=function(V){var D=new mRR;this.galService=V;this.galCache=D};
LDB.prototype.getLink=function(V){var D=V.serviceId;var f=V.scopes;var n=V.capabilities;var t=V.linkName;var J=this,H;return _.w(function(Q){if(n!==void 0&&f!==void 0)throw Error("dk");H=RSq(J.galCache,D,f,n,t);return H!==null?Q.return(H):Q.return(J.galService.getLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),scopes:f,capabilities:n,linkName:t}).then(function(T){T=CLo(T);var y=J.galCache;y.storage.has(D)?y.storage.get(D).push(T):y.storage.set(D,[T]);return T}))})};
LDB.prototype.deleteLink=function(V,D,f){var n=this;return _.w(function(t){Cno(n.galCache,V,f);return t.return(n.galService.deleteLink({serviceId:V,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:D,linkName:f}).then(function(){return!0}))})};var OLw=function(V,D){var f=this;this.validator=V;this.msgHandler=D;this.closedPopupTimeout=this.JSC$17344_rejectCb=this.JSC$17344_resolveCb=this.popup=null;this.JSC$17344_receiveMessage=function(n){if(n!==null&&(n=n.event_,n.source===f.popup)){var t=n.data;if(f.validator(t,n.origin)){var J;(J=f.msgHandler)!=null&&J.call(f,t)||(f.JSC$17344_resolveCb!==null&&f.JSC$17344_resolveCb(t),IrJ(f))}}}};
OLw.prototype.open=function(V,D){var f=this;this.popup!==null&&xR3(this);return new Promise(function(n,t){f.JSC$17344_resolveCb=n;f.JSC$17344_rejectCb=t;f.popup=_.R3(window,V,"",D);_.kt(window,"message",f.JSC$17344_receiveMessage,!1,f);MbW(f)})};
var xR3=function(V,D){V.JSC$17344_rejectCb!==null&&V.JSC$17344_rejectCb(D);IrJ(V)},IrJ=function(V){V.closedPopupTimeout&&(V.closedPopupTimeout.cancel(),V.closedPopupTimeout=null);
V.popup&&V.popup.close();_.ZU(window,"message",V.JSC$17344_receiveMessage,!1,V);V.popup=null;V.JSC$17344_resolveCb=null;V.JSC$17344_rejectCb=null},MbW=function(V){V.closedPopupTimeout=_.k6u(100).then(function(){V.popup?V.popup.closed?hSR(V):MbW(V):xR3(V,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},hSR=function(V){V.closedPopupTimeout=_.k6u(100).then(function(){xR3(V,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var URB=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),V9Z=function(V,D,f,n,t,J,H,Q,T,y){var Z=this;this.serviceId=V;this.sessionId=D;this.galService=f;this.oauthDetails=n;this.galLogger=t;this.interactionMode=J;this.redirectServiceUrl=H;this.consentLanguageKeys=Q;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=y;this.started=!1;this.JSC$17350_dataValidator=function(l,
G){var F=URB.has(G);F||Z.redirectServiceUrl===void 0||(F=Z.redirectServiceUrl===G);return F?l.sentinel==="gdi":!1}};
V9Z.prototype.complete=function(){var V=this,D;return _.w(function(f){if(V.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));D=ca.getRedirectStateFromUri();return D===null?f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):f.return(DwW(V,D))})};
V9Z.prototype.start=function(){var V=this,D;return _.w(function(f){if(V.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.df(V.oauthDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(V.interactionMode===1)return ca.setLocation(_.df(V.oauthDetails,1)),f.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));V.started=!0;V.galLogger.logStateTransition(5);
D=ca.getPostMessagePopup(V.JSC$17350_dataValidator);return f.return(D.open(_.df(V.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(n){V.started=!1;var t=V.galLogger;if((n==null?void 0:n.error)!==void 0)throw t.logInternalEvent(59),Error("ek");if((n==null?void 0:n.redirect_state)===void 0)throw t.logInternalEvent(131),Error("fk");return DwW(V,n.redirect_state)}).catch(function(n){V.started=
!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var DwW=function(V,D){return _.w(function(f){return f.return(f13(V.galService,{serviceId:V.serviceId,sessionId:V.sessionId,dynamicUrlParameters:V.dynamicUrlParameters,redirectState:D,consentLanguageKeys:V.consentLanguageKeys,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp}).then(function(n){var t={statusCode:1,link:CLo(n.getLink())};ldJ(_.Gl(n,3))!==void 0&&(t.callerState=ldJ(_.Gl(n,3)));V.galLogger.logInternalEvent(134);return t}))})},ca={getPostMessagePopup:function(V){return new OLw(V)},
getRedirectStateFromUri:function(){var V=_.Y4(ca.getLocation()).fragment_;return(new _.Dp(V)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(V){_.pc(window.location,_.cS(V))},
createOAuthFlow:function(V,D){return new V9Z(V.serviceId,V.sessionId,V.galService,D,V.galLogger,V.interactionMode,V.redirectServiceUrl,V.consentLanguageKeys,V.dynamicUrlParameters,V.partnerConfigMinReadTimestamp)}};var nvf=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(nvf,_.Xm);var t9V=_.V2(nvf);var PYW=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ovw=function(V,D,f,n,t,J,H,Q,T){var y=this;this.serviceId=V;this.sessionId=D;this.galService=f;this.gsiWebFlowDetails=n;this.colorScheme=t;this.showCloseOption=J;this.galLogger=H;this.interactionMode=Q;this.redirectServiceUrl=T;this.started=!1;this.JSC$17362_dataValidator=function(Z,l){var G=PYW.has(l);G||y.redirectServiceUrl===
void 0||(G=y.redirectServiceUrl===l);return G?Z.sentinel==="gal":!1};
this.logEventProcessor=function(Z){return Z.result?(Z=viR(Z.result))?ktW(y.galLogger,Z):!1:!1}};
ovw.prototype.complete=function(){var V=this,D,f;return _.w(function(n){if(V.interactionMode!==1)return n.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));D=F8.getRedirectStateFromUri();if(D===void 0)return V.galLogger.JSC$17302_logErrorEvent(131),n.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return f=JxJ(V,D),n.return(rxf(V,f))}catch(t){return n.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
ovw.prototype.start=function(){var V=this,D;return _.w(function(f){if(V.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.df(V.gsiWebFlowDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(V.interactionMode===1)return F8.setLocation(HYX(V,_.df(V.gsiWebFlowDetails,1))),f.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
V.started=!0;D=F8.getPostMessagePopup(V.JSC$17362_dataValidator,V.logEventProcessor);return f.return(D.open(HYX(V,_.df(V.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(n){V.started=!1;if((n==null?void 0:n.result)===void 0)throw V.galLogger.JSC$17302_logErrorEvent(131),Error("fk");n=JxJ(V,n.result);return rxf(V,n)}).catch(function(n){V.started=!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var HYX=function(V,D){V=["result_channel",V.interactionMode===1?"2":"1","color_scheme",sGZ(V.colorScheme),"show_close_option",V.showCloseOption];return MlV(D,V)},rxf=function(V,D){if(D!==null&&_.jP(D,GQ,2)){var f,n=D==null?void 0:(f=_.bW(D,GQ,2))==null?void 0:_.u4(f,2);
n&&V.galLogger.JSC$17302_logErrorEvent(uzX(n));return arX(_.bW(D,GQ,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 V.galService.getLink({serviceId:V.serviceId,sessionId:V.sessionId,consistencyKey:_.df(D,1)}).then(function(t){t=CLo(t);V.galLogger.logInternalEvent(134);return{statusCode:1,link:t}})},JxJ=function(V,D){D=t9V(D);
if(!_.jP(D,GQ,2)&&_.df(D,1)==="")throw V.galLogger.JSC$17302_logErrorEvent(5),Error("gk");return D},F8={getPostMessagePopup:function(V,D){return new OLw(V,D)},
getRedirectStateFromUri:function(){return _.$4(_.Y4(F8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(V){_.pc(window.location,_.cS(V))},
createStreamlinedFlow:function(V,D){return new ovw(V.serviceId,V.sessionId,V.galService,D,V.colorScheme,V.showCloseOption,V.galLogger,V.interactionMode,V.redirectServiceUrl)}};var x2c=function(){var V=_.eix("GAL");this.storage=V?new _.FT(V):null};var $O=function(){};
_.v($O,$RZ);$O.prototype.logStateTransition=function(){};
$O.prototype.logInternalEvent=function(){};
$O.prototype.JSC$17302_logErrorEvent=function(){};var wVB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(wVB,_.Xm);wVB.prototype.getCompletionUrl=function(){return _.df(this,15)};var io=function(V,D,f,n,t,J){this.serviceId=V;this.environment=D;this.sessionId=f;this.colorSchemeSelected=n;this.colorThemeDisplayed=t;this.JSC$17375_transport=J;this.currentState=1};
_.v(io,$RZ);io.prototype.logStateTransition=function(V){var D=QNq(this);D=_.nh(D,3,this.currentState);D=_.nh(D,1,V);this.currentState=V;V=hJw(1);this.dispatch(D,V)};
io.prototype.logInternalEvent=function(V){V=hJw(V);this.dispatch(QNq(this),V)};
io.prototype.JSC$17302_logErrorEvent=function(V){var D=QNq(this);D=_.nh(D,1,10);V=hJw(V);this.dispatch(D,V)};
var QNq=function(V){var D=new wVB;D=_.nh(D,1,V.currentState);D=_.lB(D,7,V.serviceId);var f,n;var t=((f=window)==null?0:(n=f.location)==null?0:n.href)?_.Y4(window.location.href).JSC$8122_domain_:"NO_PACKAGE_NAME";f=_.lB(D,8,t);f=_.nh(f,6,V.environment);f=_.lB(f,5,"100");f=_.nh(f,11,V.colorSchemeSelected);return _.nh(f,12,V.colorThemeDisplayed)};
io.prototype.dispatch=function(V,D){D===void 0&&(D=new _.ti);var f=D;V=V.serialize();f=_.lB(f,8,V);_.c2(f,12,this.sessionId);this.JSC$17375_transport.dispatch(D)};var TKc=function(V,D){this.loggerType=V;this.sessionIndex=D!=null?D:0},bYR;
TKc.prototype.create=function(V,D,f,n,t){switch(this.loggerType){case 0:return new $O;case 1:return bYR||(bYR=(new _.Hq(555,this.sessionIndex.toString())).build()),new io(V,D,f,n,t,bYR);default:_.JZ(this.loggerType,"unknown logger type")}};var gB=[6,2,3,1],fkc=new Map([[4,1],[1,6],[2,2],[3,3]]),AqR={statusCode:7,statusMessage:"Failed to create flow object"},I5f=function(V,D,f,n,t,J,H,Q,T,y){this.serviceId=V;this.sessionId=D;this.config=f;this.galService=n;this.JSC$17382_linkingSession=t;this.googleScopes=J;this.callerState=H;this.consentLanguageKeys=Q;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=y;this.currentFlow=0;n=this.JSC$17382_linkingSession;t=new Set;_.jP(n,SEc,1)&&t.add(1);_.jP(n,h6X,2)&&_.jP(n,WiB,6)&&t.add(2);
_.jP(n,MK0,3)&&_.jP(n,WiB,6)&&t.add(3);_.jP(n,Ito,4)&&t.add(6);this.supportedFlows=t;n=f.loggerType;t=f.clientEnvironment;a:{J=f.colorScheme;switch(J){case 0:J=1;break a;case 1:J=2;break a;case 2:J=3;break a;default:_.JZ(J)}J=void 0}a:{H=f.colorScheme;H=WDq(H);switch(H){case 0:H=1;break a;case 1:H=2;break a;default:_.JZ(H)}H=void 0}this.galLogger=(new TKc(n,f.authUser)).create(V,t,D,J,H)},yxV=function(V){return new Promise(function(D){var f,n,t,J,H,Q,T,y,Z,l;
return _.w(function(G){switch(G.nextAddress){case 1:f=p1o(V.currentFlow,V.supportedFlows),n=!1,t=new pCJ(V.JSC$17382_linkingSession,V.config.dataUsageNoticeConfig);case 2:if(f===void 0){G.jumpTo(4);break}_.wx(G,5);var F=t,k=f,d=void 0;n?k===1&&(d=F.displayInfoMap.get(2)):k===2||k===3?d=F.displayInfoMap.get(1):k===1&&(d=F.displayInfoMap.get(3));J=d?d:[];H=V.consentLanguageKeys;Q=_.r(J);T=Q.next();case 7:if(T.done)return V.currentFlow=f,_.b(G,YE0(K$0(V,H)),11);y=T.value;return _.b(G,NvR(y,V.config.dataUsageNoticeConfig.uiAdapter,
V.config.colorScheme,V.galLogger),10);case 10:Z=G.yieldResult;if(Z.statusCode!==1)return M6W(V.serviceId),V.currentFlow=0,D(er({statusCode:Z.statusCode,statusMessage:Z.statusMessage},V.callerState)),G.return();Z.consentLanguageKeys!==void 0&&(H=Z.consentLanguageKeys);T=Q.next();G.jumpTo(7);break;case 11:l=G.yieldResult;if(l.statusCode!==10)return l.statusCode!==6&&(M6W(V.serviceId),V.currentFlow=0),l.statusCode!==1&&V.callerState!==void 0&&(l.callerState=V.callerState),D(l),G.return();_.YJ(G,6);break;
case 5:_.KW(G);case 6:f=p1o(V.currentFlow,V.supportedFlows);n=!0;G.jumpTo(2);break;case 4:M6W(V.serviceId),V.currentFlow=0,D(er({statusCode:12,statusMessage:"Linking failed"},V.callerState)),_.yz(G)}})})},Vvw=function(V,D,f){V.currentFlow=D;
return $2Z(K$0(V,f)).then(function(n){return n.statusCode===10&&V.config.interactionMode===1&&p1o(V.currentFlow,V.supportedFlows)!==void 0?yxV(V):n})},K$0=function(V,D){return{flowParams:{serviceId:V.serviceId,
sessionId:V.sessionId,galService:V.galService,galLogger:V.galLogger,interactionMode:V.config.interactionMode,redirectServiceUrl:V.config.redirectServiceUrl,colorScheme:V.config.colorScheme,consentLanguageKeys:D,dynamicUrlParameters:V.dynamicUrlParameters,showCloseOption:V.config.showCloseOption,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp},currentFlow:V.currentFlow,config:V.config,session:V.JSC$17382_linkingSession,googleScopes:V.googleScopes,callerState:V.callerState}};var tvZ=function(V,D){this.config=V;this.galService=D.getService();this.JSC$17395_galRepository=D.JSC$17413_galRepository};
tvZ.prototype.getLink=function(V,D){return ZYq(this,V,D)};
var ZYq=function(V,D,f){return V.JSC$17395_galRepository.getLink({serviceId:D,scopes:void 0,capabilities:void 0,linkName:f}).then(function(n){return{statusCode:1,link:n}}).catch(function(n){return{statusCode:noR(n.code),
statusMessage:n.message}})};
tvZ.prototype.deleteLink=function(V,D){return this.JSC$17395_galRepository.deleteLink(V,this.config.accountLinkingEntryPoint,D).then(function(){return{statusCode:1}}).catch(function(f){return{statusCode:noR(f.code),
statusMessage:f.message}})};
tvZ.prototype.startLinkingSession=function(V){var D=V.serviceId;var f=V.sessionId;return OOw({serviceId:D,sessionId:f!==void 0?f:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:V.loginHint,callerState:V.callerState,consentLanguageKeys:V.consentLanguageKeys,linkName:V.linkName,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp})};var Sg=function(V,D,f,n,t,J,H){this.apiKey=D;this.authUser=f;this.oauthToken=n;this.bucket=t;this.locale=J;this.galSdkEventHandler=H;if(n===void 0){if(D===void 0)throw Error("hk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new uWR(V)};
Sg.prototype.deleteLink=function(V){var D=V.serviceId;var f=V.sessionId;var n=V.accountLinkingEntryPoint;var t=V.linkName;var J=this,H;return _.w(function(Q){var T=(new kO).setHeader(Wm(J,f));var y=jN0({serviceId:D,linkName:t});T=_.fc(T,2,y);H=_.Cg(T,3,n);return Q.return(J.makeRequest(J.galServiceClient.deleteLink,H,[1,3],[2,4]))})};
var f13=function(V,D){var f=D.serviceId;var n=D.sessionId;var t=D.dynamicUrlParameters;var J=D.redirectState;var H=D.consentLanguageKeys;var Q=D.partnerConfigMinReadTimestamp;var T;return _.w(function(y){var Z=(new Bm).setHeader(Wm(V,n,t));Z=_.O1(Z,2,f);T=_.O1(Z,4,J);H!==void 0&&_.O1(T,5,H);Q!==void 0&&_.fc(T,6,Q);return y.return(V.makeRequest(V.galServiceClient.JSC$17281_finishOAuth,T,[1,3],[2,4]))})};
Sg.prototype.getLink=function(V){var D=V.serviceId;var f=V.sessionId;var n=V.scopes;var t=V.capabilities;var J=V.consistencyKey;var H=V.linkName;var Q=this,T;return _.w(function(y){var Z=(new dz).setHeader(Wm(Q,f)),l=jN0({serviceId:D,scopes:n,capabilities:t,linkName:H});T=_.fc(Z,2,l);J!==void 0&&(Z=CfR(),Z=_.O1(Z,2,J),_.fc(T,3,Z));return y.return(Q.makeRequest(Q.galServiceClient.getLink,T,[1,3],[2,4]))})};
var iOR=function(V,D){var f=D.serviceId;var n=D.sessionId;var t=D.googleScopes;var J=D.consistencyKey;var H;return _.w(function(Q){var T=(new sT).setHeader(Wm(V,n));T=_.O1(T,2,f);var y=Array.from(t.values());T=_.v7(T,3,y,_.Ec);y=CfR();y=_.O1(y,2,J);H=_.fc(T,4,y);return Q.return(V.makeRequest(V.galServiceClient.JSC$17281_depositGoogleCredential,H,[1,3],[2,4]))})};
Sg.prototype.startLinkingSession=function(V){var D=V.serviceId;var f=V.sessionId;var n=V.scopes;var t=V.capabilities;var J=V.loginHint;var H=V.supportedFlows;var Q=V.completionUrl;var T=V.usePingPong;var y=V.twoWayLinking;var Z=V.accountLinkingEntryPoint;var l=V.callerState;var G=V.consentLanguageKeys;var F=V.googleScopes;var k=V.dataUsageNoticeConfig;var d=V.linkName;var z=V.dynamicUrlParameters;var C=V.partnerConfigMinReadTimestamp;var A=this,O,W;return _.w(function(I){if(t!==void 0&&n!==void 0)throw Error("dk");
var x=(new uo).setHeader(Wm(A,f,z));O=_.O1(x,2,D);d!==void 0&&_.O1(O,14,d);if(t!==void 0){x=O;var oY=Array.from(t.values());_.v7(x,5,oY,_.Ec)}else n!==void 0&&(x=O,oY=Array.from(n.values()),_.v7(x,3,oY,_.Ec));Q!==void 0&&_.O1(O,6,Q);T!==void 0&&_.sX(O,15,T);H!==void 0&&(x=O,oY=Array.from(H.values()),_.v7(x,4,oY,_.lX));if(y!==void 0){if(y&&(!F||F.size===0))throw Error("ik");_.sX(O,8,y)}Z!==void 0&&_.Cg(O,9,Z);J!==void 0&&_.O1(O,13,J);l!==void 0&&(x=O,oY=(new TextEncoder).encode(l),_.kr(x,12,_.qL(oY,
!1),_.Co()));G!==void 0&&_.O1(O,16,G);C!==void 0&&_.fc(O,18,C);if(k!==void 0&&k.size>0||F!==void 0&&F.size>0)W=new VbV,F!==void 0&&F.size>0&&(x=W,oY=Array.from(F.values()),_.v7(x,1,oY,_.Ec)),k!==void 0&&(k.has(0)&&_.rZ9(W,2,_.lX,1,_.eW),k.has(1)&&_.rZ9(W,2,_.lX,2,_.eW)),_.fc(O,17,W);return I.return(A.makeRequest(A.galServiceClient.startLinkingSession,O,[1],[2]))})};
Sg.prototype.getMetadata=function(){var V=this,D,f;return _.w(function(n){D={};V.useFpa?(D["X-Goog-Api-Key"]=V.apiKey,D["X-Goog-AuthUser"]=V.authUser!==void 0?V.authUser.toString():"0",(f=_.LqY([]))&&(D.Authorization=f)):D.Authorization="Bearer "+V.oauthToken;V.locale&&(D["accept-language"]=V.locale);return n.return(D)})};
Sg.prototype.makeRequest=function(V,D,f,n){var t=this,J;return _.w(function(H){if(H.nextAddress==1)return _.b(H,t.getMetadata(),2);J=H.yieldResult;l1f(t,f);return H.return(V.bind(t.galServiceClient)(D,J).finally(function(){l1f(t,n)}))})};
var l1f=function(V,D){V.galSdkEventHandler!==void 0&&D.forEach(function(f){V.galSdkEventHandler.onEvent(f)})},Wm=function(V,D,f){var n=new Fr;
D=_.kr(n,2,_.gR(D),0);D=_.Cg(D,5,3);f=_.v7(D,8,f,_.Ec);V.bucket!==void 0&&_.O1(f,1,V.bucket);return f},jN0=function(V){var D=V.serviceId;
var f=V.scopes;var n=V.capabilities;V=V.linkName;if(n!==void 0&&f!==void 0)throw Error("dk");var t=new z6c;D=_.O1(t,1,D);n!==void 0?(f=Array.from(n.values()),_.v7(D,5,f,_.Ec)):f!==void 0&&(f=Array.from(f.values()),_.v7(D,3,f,_.Ec));V!==void 0&&_.O1(D,6,V);return D};var P8c=function(V){this.galService=new Sg(V.alsDomain,V.apiKey,V.authUser,V.oauthToken,V.bucket,V.locale,V.galSdkEventHandler);this.JSC$17413_galRepository=new LDB(this.galService)};
P8c.prototype.getService=function(){return this.galService};var G3q=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(G3q,_.Xm);var eRB=function(V){var D=new G3q;return _.nh(D,1,V)};
G3q.prototype.setErrorMessage=function(V){return _.lB(this,2,V)};var cxv=[0,_.Lg,_.SP,_.Lg];var pM=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(pM,_.Xm);var F$X=[0,[1,2,3],_.pg,[0,AIv,$aR,-1],_.pg,[0,Yoq,-1],_.JHZ];var gvc=[0,_.$s,1,_.Lg,_.SP,-1,1,_.wLR,_.Ys,_.Lg,-1,F$X];var vvZ=[0,_.Lg,[0,_.wLR,_.Ys,[0,_.SP]],_.i4,[0,_.Lg,-1]];var JW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(JW,_.Xm);var k3R=[0,_.SP,_.Lg,-2,_.$s,_.Lg,_.$s,_.Lg,-2,1,_.i4];var sNB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(sNB,_.Xm);var BKq=[0,_.$s];var dww=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(dww,_.Xm);var ucq=[0,_.Lg,vvZ,BKq,k3R,gvc];var zJJ=_.Me(dww,ucq);var NKX=[0,N3q];var AA3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(AA3,_.Xm);var mwR=[0,[1,3],Inq,_.Lg,Inq];var Pm=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Pm,_.Xm);var zRf=[0,_.Lg];var RRR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(RRR,_.Xm);var oL=function(V){return _.zl(V,G3q,2,tW)},CYZ=function(V){var D=new RRR;
return _.nc(D,2,tW,V)},tW=[1,
2];var q5R=[0,tW,_.pg,zRf,_.pg,cxv,_.Wb,mwR,1,_.Lg,NKX];var XVR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(XVR,_.Xm);var AxW=function(V){var D=new XVR;return _.nc(D,3,Evq,V)},Evq=[2,
3];var LM=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(LM,_.Xm);var a1W=function(V,D){return _.fc(V,2,D)},Y5B=function(V,D){return _.fc(V,8,D)},$w0=function(V,D){return _.fc(V,3,D)};var iYB=[0,_.Lg,q5R,ucq,_.GJL,[0,[5,6],[0,_.Lg,-2],[0,_.$s,_.Lg,_.SP],[0,F$X],[0,_.SP,_.Lg,-1,_.lRl,_.Lg],_.pg,[0,[0,_.$s],_.Lg,-1],_.pg,[0,[3,4],_.Lg,-1,_.pg,[0,[0,_.Lg,_.i4]],_.pg,[0,[0,[0,[1,2],_.pg,[0],_.pg,[0]]]]]],_.GJL,-1,[0,Evq,_.Lg,_.pg,zRf,_.pg,cxv,_.Wb,mwR,[0,N3q]]];var S5f=_.Me(LM,iYB),W$0=_.hn(iYB);var pVv=function(){_.cq.call(this)};
_.v(pVv,_.cq);pVv.prototype.init=function(){};
new pVv;var L$f=_.WV(["data-"]),I1Z=_.WV(["aria-"]),OY0=_.WV(["aria-"]),IL=function(V,D){this.isLatencyMeasurementExperiment=V===void 0?!1:V;this.enableDialogA11yFix=D===void 0?!1:D;this.JSC$17442_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.WYF(_.fx.location.href)},CUf=function(V,D){V.onConsentPrimitiveShownCallback=D},xwf=function(V,D){return V.overriddenIframeLoadTimeout?V.overriddenIframeLoadTimeout:D!==void 0?D:5E3},XtW=function(V){if(V.prewarmPromise!==void 0)return V.prewarmPromise;
V.prewarmPromise=new Promise(function(D,f){OT(V,1);M9J(V,hR0(V,!0),UwJ(V));V.iframe?V.prewarmChannel||VPW(V,V.iframe,D):f(Error("jk"))});
V.prewarmPromise.finally(function(){V.prewarmPromise=void 0});
return V.prewarmPromise};
IL.prototype.showPrimitive=function(){var V=this;if(this.consentPromise!==void 0)return this.consentPromise;var D=Date.now();DkB(this,D);this.consentPromise=new Promise(function(f,n){OT(V,0,D);var t=V.isDarkTheme();V.isLatencyMeasurementExperiment||V.initialLoadingStrategy===1||V.initialLoadingStrategy===2||(V.loadingBar||(V.loadingBar=Hlq(getComputedStyle(document.body).direction==="rtl",t),V.loadingBar.style.position="fixed",V.loadingBar.style.zIndex="15000"),document.body.appendChild(V.loadingBar));
M9J(V,hR0(V),UwJ(V));V.iframe?V.channel||fXf(V,V.iframe,f,n):(nsJ(V),n(Error("jk")))});
this.consentPromise.finally(function(){V.consentPromise=void 0});
return this.consentPromise};
var fXf=function(V,D,f,n){var t,J;_.w(function(H){switch(H.nextAddress){case 1:OT(V,3);t=!1;setTimeout(function(){if(!t){nsJ(V);tPW(V);P4v(V);var Q=eRB(7).setErrorMessage("Timeout connecting to iframe");f(Y5B(a1W(new LM,CYZ(Q)),AxW(Q)))}},xwf(V,osZ(V)));
if(!V.prewarmPromise){H.jumpTo(2);break}_.wx(H,3);return _.b(H,V.prewarmPromise,5);case 5:_.YJ(H,2);break;case 3:_.KW(H),J=eRB(4).setErrorMessage("Error while prewarming."),f(Y5B(a1W(new LM,CYZ(J)),AxW(J)));case 2:V.prewarmChannel&&V.prewarmChannel.send(W$0($w0(new LM,V.consentPrimitiveRequest))),V.channel=_.xs({destination:V.JSC$17442_win,iframe:D,origin:JFB(V),channelName:"cpw",onEstablished:function(){t=!0;nsJ(V);V.isLatencyMeasurementExperiment||(V.JSC$17442_previousBodyOverflow=document.body.style.overflow,
V.JSC$17442_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,V.JSC$17442_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",V.enableDialogA11yFix&&window.addEventListener("blur",V.focusChangeListener));var Q=V.iframe;Q.style.bottom="0";Q.style.position="fixed";Q.style.right="0";Q.style.border="none";Q.style.left="0";Q.style.top=
"0";Q.style.zIndex="5000";Q.style.pointerEvents="";Q.style.visibility="";V.initialLoadingStrategy===2||V.initialLoadingStrategy===3?OT(V,4):OT(V,6);var T;(T=V.onConsentPrimitiveShownCallback)==null||T.call(V)},
onMessage:function(Q){Q=S5f(Q.data);switch(_.u4(Q,1)){case 1:tPW(V);var T=w8q(_.bW(Q,_.E1,7));T&&(V.initialLoadingStrategy!==2&&V.initialLoadingStrategy!==3||OT(V,6,T),OT(V,5,T));if(T=w8q(_.bW(Q,_.E1,6)))OT(V,7,T),OT(V,8);var y,Z;((y=_.bW(Q,RRR,2))==null?void 0:_.cb(y,tW))!==0&&((Z=_.bW(Q,XVR,8))==null?void 0:_.cb(Z,Evq))!==0||n(Error("kk"));f(Q);break;case 2:P4v(V)}}}),_.yz(H)}})},VPW=function(V,D,f){V.prewarmChannel=_.xs({destination:V.JSC$17442_win,
iframe:D,origin:JFB(V),channelName:"pwcp",onEstablished:function(){OT(V,2);f()}})},JFB=function(V){var D=_.HS(V.src).toString();
return D&&D.indexOf("://")<0&&D.indexOf("//")!==0?V.origin:_.WYF(D)},hR0=function(V,D){D=D===void 0?!1:D;
var f,n=new Map([["origin",V.origin],["hl",(f=rFw(V))!=null?f:null]]);D&&n.set("pw","1");D=_.r([["cpr",V.consentPrimitiveRequest.serialize()]]);for(f=D.next();!f.done;f=D.next()){var t=_.r(f.value);f=t.next().value;t=t.next().value;n.set(f,t)}V.isDarkTheme()&&n.set("color_scheme","dark");return _.Pl(V.src,n)},nsJ=function(V){V.isLatencyMeasurementExperiment||V.loadingBar&&document.body.removeChild(V.loadingBar)};
IL.prototype.getSrc=function(){var V=_.xw(this.origin),D;var f=(D=_.bW(this.consentPrimitiveRequest,sNB,3))==null?void 0:_.fJ(D,1);D="consent.google.com";f=f?"/u/"+encodeURIComponent(f.toString()):"";(V==null?0:V.endsWith("youtube.com"))?D="consent.youtube.com":(V=V==null?void 0:V.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(D="consent.google."+((V[1]?"co.":"")+encodeURIComponent(V[2])));return _.rQ("https://"+D+"/signedin"+f+"/landing")};
var M9J=function(V,D,f){V.iframe||(V.iframe=document.createElement("iframe"),V.iframe.style.width="100%",V.iframe.style.height="100%",f!==112496729&&(V.iframe.style.colorScheme="auto"),V.isLatencyMeasurementExperiment&&(V.iframe.style.display="none"),_.N8(V.iframe,D),V.iframe.setAttribute("jsname","C5o1O"),HgB(V.iframe),document.body.appendChild(V.iframe))},HgB=function(V){V.style.bottom="-200vh";
V.style.position="fixed";V.style.right="-200vw";V.style.border="";V.style.left="";V.style.top="";V.style.zIndex="";V.style.pointerEvents="none";V.style.visibility="hidden"},tPW=function(V){V.iframe&&(V.isLatencyMeasurementExperiment||(V.JSC$17442_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=V.JSC$17442_previousHtmlOverscroll),V.JSC$17442_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=V.JSC$17442_previousBodyOverscroll),V.JSC$17442_previousBodyOverflow!==
void 0&&(document.body.style.overflow=V.JSC$17442_previousBodyOverflow),V.enableDialogA11yFix&&wb3(V,!1)),HgB(V.iframe))};
IL.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wb3(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wb3=function(V,D){var f,n,t=(f=V.iframe)==null?void 0:(n=f.parentElement)==null?void 0:n.children;if(t)for(f=0;f<t.length;f++)n=t[f],n!==V.iframe&&(D?(n.hasAttribute("aria-hidden")&&_.iv([_.fi(L$f)],n,"data-old-aria-hidden",n.getAttribute("aria-hidden")),_.iv([_.fi(I1Z)],n,"aria-hidden","true")):(n.removeAttribute("aria-hidden"),n.hasAttribute("data-old-aria-hidden")&&(_.iv([_.fi(OY0)],n,"aria-hidden",n.getAttribute("data-old-aria-hidden")),n.removeAttribute("data-old-aria-hidden"))))},OT=function(V,
D,f){var n;
(n=V.latencyCallback)==null||n.call(V,{latencyType:D,timestampEpochMillis:f!=null?f:Date.now()})};var Q$f=function(V,D,f){IL.call(this,D,f===void 0?!1:f);this.consentPrimitiveRequest=V;V=rFw(this);_.ne3(V);this.src=this.getSrc();var n;this.initialLoadingStrategy=(n=_.bW(this.consentPrimitiveRequest,JW,4))==null?void 0:_.u4(n,4)},Tfq;
_.v(Q$f,IL);var RJq=function(V){var D=_.c("enable_primitive_dialog_aria_hide_siblings");V={request:V,enableDialogA11yFix:D===void 0?!1:D};Tfq||(Tfq=new Q$f(V.request,V.isLatencyMeasurementExperiment||_.u4(V.request,1)===2,V.enableDialogA11yFix));return Tfq},rFw=function(V){var D;
return(D=_.bW(V.consentPrimitiveRequest,JW,4))==null?void 0:_.df(D,1)},DkB=function(V,D){if(!_.jP(V.consentPrimitiveRequest,pM,5)){var f=V.consentPrimitiveRequest,n=new pM;
_.fc(f,5,n)}var t;if((t=_.bW(V.consentPrimitiveRequest,pM,5))==null||_.TPR(_.ZX(t,8))==null){var J;(J=_.bW(V.consentPrimitiveRequest,pM,5))!=null&&_.c2(J,8,D)}},UwJ=function(V){var D;
return(D=_.bW(V.consentPrimitiveRequest,pM,5))==null?void 0:_.fJ(D,1)};
Q$f.prototype.isDarkTheme=function(){var V;return((V=_.bW(this.consentPrimitiveRequest,JW,4))==null?void 0:_.u4(V,2))===2};
var osZ=function(V){var D;return((D=_.bW(V.consentPrimitiveRequest,JW,4))==null?void 0:_.fJ(D,5))||void 0},P4v=function(V){V.channel=void 0;
V.prewarmChannel=void 0;V.iframe&&(document.body.contains(V.iframe)&&document.body.removeChild(V.iframe),V.iframe=void 0);Tfq=void 0},Euw=function(V){return IL.prototype.showPrimitive.call(V).then(function(D){return _.bW(D,RRR,2)})};for(var xO={},bgo=(xO[64]="ma",xO[73]="ogb",xO[89]="cr",xO[21]="test",xO[0]="unkn",xO[137]="con",xO[155]="hl",xO[78]="yt",xO[171]="lp",xO[172]="ap",xO[177]="amo",xO[178]="pqe",xO[74]="gg",xO[1]="gm",xO[140]="am",xO[193]="sc",xO),Kzq=_.r(Object.keys(bgo)),yFB=Kzq.next();!yFB.done;yFB=Kzq.next());var Zgv=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(Zgv,_.Xm);var j$X=[0,[2,3,4],_.Lg,ano,Inq,_.JHZ];var lXR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(lXR,_.Xm);var Glw=_.Me(lXR,[0,LAB,_.SP,_.Lg,_.SP,_.Lg,j$X]);var eKv=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(eKv,_.Xm);eKv.prototype.getCommand=function(){return _.u4(this,1)};
var cFB=function(){var V=new eKv;return _.Cg(V,1,0)};var FzR=_.hn([0,LAB,_.SP,[0,_.Lg,_.SP,-1]]);var gs3=new _.QN("s"),vs0=new _.QN("t"),klJ=new _.QN("u"),s$f=new _.QN("v"),Bff=function(V,D,f){_.TG.call(this,gs3);this.mediaKey=V;this.photoUrl=D;this.photoSource=f};
_.v(Bff,_.TG);var dkw=function(){_.TG.call(this,vs0)};
_.v(dkw,_.TG);var uXJ=function(V){V=V===void 0?!1:V;_.TG.call(this,klJ);this.isError=V};
_.v(uXJ,_.TG);var NfZ=function(){_.TG.call(this,s$f)};
_.v(NfZ,_.TG);var mkV=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,qkR=function(V){if(typeof V=="string"){if(V.charAt(0)==".")return zKJ(V.substr(1));if(V.charAt(0)=="["){var D=mkV.exec(V);V=V.indexOf("=")==-1?void 0:D[3];return RKc(D[1],V)}return C4c(V)}return V},zKJ=function(V){return function(D){return D.getAttribute&&_.E7(D,V)}},RKc=function(V,D){return function(f){return D!==void 0?f.getAttribute&&f.getAttribute(V)==D:f.hasAttribute&&f.hasAttribute(V)}},C4c=function(V){V=V.toUpperCase();
return function(D){return(D=D.tagName)&&D.toUpperCase()==V}},XbV=function(){return!0};var My=function(V,D){this.JSC$17470_key_=V;this.JSC$17470_value_=D},hW=function(V){throw Error("lk`"+V.JSC$17470_key_);
},EsB=function(V,D){return new TypeError("mk`"+D+"`"+V.JSC$17470_key_+"`"+V.JSC$17470_value_+"`"+typeof V.JSC$17470_value_)};
My.prototype.string=function(V){if(arguments.length==0)var D=AFB(this);else{var f;D=(f=aXq(this))!=null?f:V}return D};
var AFB=function(V){var D=aXq(V);D===null&&hW(V);return D},aXq=function(V){var D=V.JSC$17470_value_;
if(D==null)return null;if(typeof D==="string")return D;throw EsB(V,"string");};
My.prototype.bool=function(V){if(arguments.length==0){var D=this.optionalBool();D===null&&hW(this)}else{var f;D=(f=this.optionalBool())!=null?f:V}return D};
My.prototype.optionalBool=function(){var V=this.JSC$17470_value_;if(V==null)return null;if(typeof V==="boolean")return V;if(typeof V==="string"){V=V.toLowerCase();if(V==="true"||V==="1")return!0;if(V==="false"||V==="0")return!1}throw EsB(this,"boolean");};
My.prototype.number=function(V){if(arguments.length==0){var D=Yk3(this);D===null&&hW(this)}else{var f;D=(f=Yk3(this))!=null?f:V}return D};
var Yk3=function(V){var D=V.JSC$17470_value_;if(D==null)return null;if(typeof D==="number")return D;if(typeof D==="string"){var f=Number(D);if(!isNaN(f)&&(f!==0||D.trim().length!==0))return f}throw EsB(V,"number");};
My.prototype.toString=function(){return AFB(this)};
My.prototype.array=function(V){if(arguments.length==0){var D=$kJ(this);D===null&&hW(this);return D}D=$kJ(this);return D==null?V:D};
var $kJ=function(V){var D=V.JSC$17470_value_;if(D==null)return null;Array.isArray(D)||(typeof D!=="string"?D=[D]:(D=D.trim(),D=D==""?[]:D.split(",").map(function(f){return f.trim()})));
return igw(V,D)},igw=function(V,D){var f=V.JSC$17470_key_+"[";
return Array.from(D,function(n,t){return new My(f+t+"]",n)})};
My.prototype.object=function(V){var D=this.JSC$17470_value_;if(D==null)return V===void 0&&hW(this),V;if(typeof D==="object"&&D.constructor===Object){V={};var f=this.JSC$17470_key_+".",n;for(n in D)V[n]=new My(f+n,D[n]);return V}throw EsB(this,"object");};var UT=function(V){this.list_=Skw(V)},Skw=function(V){if(V instanceof UT)V=V.list_;
else if(V[0]instanceof UT){for(var D=new Set,f=0;f<V.length;f++)for(var n=_.r(V[f].list_),t=n.next();!t.done;t=n.next())D.add(t.value);V=D}return[].concat(_.sz(V))};
_.P=UT.prototype;_.P.each=function(V,D,f){((f===void 0?0:f)?KWW:_.Sd)(this.list_,V,D);return this};
_.P.size=function(){return this.list_.length};
_.P.isEmpty=function(){return this.list_.length===0};
_.P.get=function(V){return this.list_[V]||null};
_.P.el=function(){return this.list_[0]||null};
_.P.map=function(V,D){return _.dw(this.list_,V,D)};
_.P.equals=function(V){return this===V||_.PH(this.list_,V.list_)};
_.P.first=function(){return this.list_.length==0?null:new Vi(this.list_[0])};
_.P.find=function(V){var D=[];this.each(function(f){f=f.querySelectorAll(String(V));for(var n=0;n<f.length;n++)D.push(f[n])});
return new UT(D)};
_.P.parent=function(){var V=[];this.each(function(D){(D=D.parentElement||null)&&!_.i3(V,D)&&V.push(D)});
return new UT(V)};
_.P.children=function(){var V=[];this.each(function(D){D=_.dT(D);for(var f=0;f<D.length;f++)V.push(D[f])});
return new UT(V)};
_.P.filter=function(V){V=_.Pb(this.list_,qkR(V));return new UT(V)};
_.P.closest=function(V){var D=[],f=qkR(V),n=function(t){return _.IO(t)&&f(t)};
this.each(function(t){(t=_.qr(t,n,!0))&&!_.i3(D,t)&&D.push(t)});
return new UT(D)};
_.P.next=function(V){return WzJ(this,_.rrH,V)};
_.P.prev=function(V){return WzJ(this,OTJ,V)};
var WzJ=function(V,D,f){var n=[];var t=f?qkR(f):XbV;V.each(function(J){(J=D(J))&&t(J)&&n.push(J)});
return new UT(n)};
UT.prototype.setClass=function(V){return this.each(function(D){_.X6(D,V)})};
var pbv=function(V,D){return V.each(function(f){_.M3(f,D)})},Lzo=function(V,D){return V.each(function(f){_.Om(f,D)})};
UT.prototype.toggleClass=function(V,D){return D===!0?pbv(this,V):D===!1?Lzo(this,V):this.each(function(f){_.E7(f,V)?_.Om(f,V):_.M3(f,V)})};
UT.prototype.setText=function(V){return this.each(function(D){_.ug(D,V)})};
var IXR=function(V){V.each(function(D){D.removeAttribute("aria-hidden")})};
UT.prototype.getStyle=function(V){if(this.list_.length>0){var D=this.list_[0],f=D.style[_.yR(V)];return typeof f!=="undefined"?f:D.style[_.crF(D,V)]||""}};
UT.prototype.getData=function(V){if(this.list_.length===0)return new My(V,null);var D=etf(this.list_[0],V);return new My(V,D)};
UT.prototype.focus=function(V){try{V?this.el().focus(V):this.el().focus()}catch(D){}return this};
UT.prototype.click=function(){var V=_.mk(this.el());if(V.createEvent){var D=V.createEvent("MouseEvents");D.initMouseEvent("click",!0,!0,V.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(D)}else V=V.createEventObject(),V.clientX=0,V.clientY=0,V.screenX=0,V.screenY=0,V.altKey=!1,V.ctrlKey=!1,V.shiftKey=!1,V.button=0,this.el().fireEvent("onclick",V)};
var Do=function(V,D,f,n){function t(Q,T,y){var Z=T;T&&T.parentNode&&(Z=T.cloneNode(!0));Q(Z,y)}
n=n===void 0?!1:n;if(V.list_.length==1){var J=V.list_[0],H=function(Q){return D(Q,J)};
f instanceof UT?f.each(H,void 0,n):Array.isArray(f)?(n?KWW:_.Sd)(f,H):H(f);return V}return V.each(function(Q){f instanceof UT?f.each(function(T){t(D,T,Q)}):Array.isArray(f)?_.Sd(f,function(T){t(D,T,Q)}):t(D,f,Q)})};
_.P=UT.prototype;_.P.append=function(V){return Do(this,function(D,f){D&&f.appendChild(D)},V)};
_.P.appendTo=function(V){(new UT([V])).append(this);return this};
_.P.remove=function(){return Do(this,function(V,D){_.ZC(D)},null)};
_.P.empty=function(){return Do(this,function(V,D){_.kN(D)},null)};
_.P.after=function(V,D){return Do(this,function(f,n){f&&_.BN(f,n)},V,!(D===void 0||D))};
_.P.before=function(V){return Do(this,function(D,f){D&&_.sO(D,f)},V)};
_.P.replaceWith=function(V){return Do(this,function(D,f){D&&_.P6Y(D,f)},V)};
_.P.toggle=function(V){return this.each(function(D){_.SB(D,V)})};
_.P.show=function(){return this.toggle(!0)};
_.P.hide=function(){return this.toggle(!1)};
_.P.trigger=function(V,D,f,n){return Ogf(this,V,D,f,n)};
var Ogf=function(V,D,f,n,t){return V.each(function(J){_.chc(_.mk(J)).triggerWizEventInternal(J,D,f,n,t)})},Vi=function(V,D){V instanceof UT&&(D=V.list_,V=null);
this.list_=Skw(V!=null?[V]:D)};
_.fg(Vi,UT);_.P=Vi.prototype;_.P.children=function(){return new UT(Array.prototype.slice.call(_.dT(this.list_[0])))};
_.P.each=function(V,D){V.call(D,this.list_[0],0);return this};
_.P.size=function(){return 1};
_.P.el=function(){return this.list_[0]};
_.P.first=function(){return this};var fd=function(V,D){D=D===void 0?window:D;this.hostId=V;this.JSC$17481_win=D;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$17481_previousHtmlOverscroll=this.JSC$17481_previousBodyOverscroll=this.JSC$17481_previousBodyOverflow="";this.eventTarget=new _.jT;this.JSC$17481_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
hKR=function(V){var D=xkw(xkw(xkw(new MPc(78),"po"),"hppp"),"hhc");
D.authUser=Number(_.XB("SESSION_INDEX","0"));D.colorScheme=V;return D};
fd.prototype.getOrigin=function(){return this.origin?this.origin:_.xq(_.O7(_.Ii(new _.Ll,this.JSC$17481_win.location.protocol),this.JSC$17481_win.location.hostname),this.JSC$17481_win.location.port).toString()};
fd.prototype.getTargetOrigin=function(){return _.xq(_.O7(_.Ii(new _.Ll,this.scheme),this.domain),this.port)};
fd.prototype.preloadIframe=function(V){var D=this;if(this.iframeLoadPromise===void 0){var f=document.createElement("iframe");this.iframe=f;jbf(f,V);this.iframeLoadPromise=new Promise(function(n,t){var J=!1,H=function(Q){Q.stopPropagation();f.removeEventListener("error",H);f.removeEventListener("securitypolicyviolation",H);t(Error("nk",{cause:Q}))};
f.addEventListener("error",H);f.addEventListener("securitypolicyviolation",H);setTimeout(function(){J||t(Error("ok"))},3E4);
UkR(D,f,function(){J=!0;f.removeEventListener("error",H);f.removeEventListener("securitypolicyviolation",H);n()})});
V$0(this);V=this.getTargetOrigin().toString();f.setAttribute("allow","camera "+V+"; display-capture "+V);this.parentElement.appendChild(f)}return this.iframeLoadPromise};
var nNf=function(V,D){var f,n;return _.w(function(t){if(t.nextAddress==1)return f=Hlq(getComputedStyle(V.parentElement).direction==="rtl"),V.parentElement.appendChild(f),document.activeElement instanceof HTMLElement&&(V.elementToFocusAfterClose=document.activeElement),_.wx(t,2),_.b(t,V.preloadIframe(D),4);if(t.nextAddress!=2){V.parentElement.removeChild(f);V.JSC$17481_previousBodyOverflow=V.parentElement.style.overflow;V.JSC$17481_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
V.JSC$17481_previousBodyOverscroll=V.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";V.parentElement.style.overscrollBehavior="contain";V.parentElement.style.overflow="hidden";var J=V.iframe;J.style.bottom="0";J.style.border="none";J.style.height="100%";J.style.left="0";J.style.position=V.iframePosition;J.style.right="0";J.style.top="0";J.style.width="100%";J.style.zIndex="2202";J.setAttribute("aria-hidden","false");J.setAttribute("aria-modal","true");
V.opened=!0;DMR(V);return _.YJ(t,0)}n=_.KW(t);V.parentElement.removeChild(f);KIR(V.isDarkTheme());fTw(V,!1);throw Error("pk",{cause:n});})},fTw=function(V,D){D=D===void 0?!0:D;
V.iframe!==void 0&&(Ipq(V),document.documentElement.style.overscrollBehavior=V.JSC$17481_previousHtmlOverscroll,V.parentElement.style.overscrollBehavior=V.JSC$17481_previousBodyOverscroll,V.parentElement.style.overflow=V.JSC$17481_previousBodyOverflow,V.elementToFocusAfterClose!==void 0&&(V.elementToFocusAfterClose.focus(),V.elementToFocusAfterClose=void 0),D?V$0(V):(V.parentElement.removeChild(V.iframe),V.iframe=void 0,V.iframeLoadPromise=void 0,V.mainChannel=void 0),V.opened=!1)},Ipq=function(V){V.backgroundElementsAriaHiddenIsNull&&
(IXR(V.backgroundElementsAriaHiddenIsNull),V.backgroundElementsAriaHiddenIsNull=void 0);
V.backgroundElementsAriaHiddenIsFalse&&(V.backgroundElementsAriaHiddenIsFalse.each(function(D){D.setAttribute("aria-hidden","false")}),V.backgroundElementsAriaHiddenIsFalse=void 0);
V.backgroundElementsWithoutInert&&(V.backgroundElementsWithoutInert.each(function(D){D.removeAttribute("inert")}),V.backgroundElementsWithoutInert=void 0)},DMR=function(V){V.backgroundElementsAriaHiddenIsNull=(new Vi(V.iframe.parentElement)).children().filter(function(D){return D.getAttribute("aria-hidden")===null&&D!==V.iframe});
V.backgroundElementsAriaHiddenIsNull.each(function(D){D.setAttribute("aria-hidden","true")});
V.backgroundElementsAriaHiddenIsFalse=(new Vi(V.iframe.parentElement)).children().filter(function(D){return D.getAttribute("aria-hidden")==="false"&&D!==V.iframe});
V.backgroundElementsAriaHiddenIsFalse.each(function(D){D.setAttribute("aria-hidden","true")});
V.backgroundElementsWithoutInert=(new Vi(V.iframe.parentElement)).children().filter(function(D){return!D.hasAttribute("inert")&&D!==V.iframe});
V.backgroundElementsWithoutInert.each(function(D){D.setAttribute("inert","true")})},V$0=function(V){V=V.iframe;
V.style.bottom="-1000px";V.style.position="fixed";V.style.right="-1000px";V.style.border="";V.style.height="";V.style.left="";V.style.top="";V.style.width="";V.style.zIndex="";V.setAttribute("aria-hidden","true");V.setAttribute("aria-modal","false")};
fd.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var MPc=function(V,D){fd.call(this,bgo[V],D);this.options=[];this.style=""};
_.v(MPc,fd);var O$o=function(V){V.style="youtube";return V},x7w=function(V,D){V.eventTarget.listen(klJ,D);
return V},MNo=function(V,D){V.eventTarget.listen(gs3,D);
return V},xkw=function(V,D){V.options.push(D);
return V},h40=function(V){var D=[V.getOrigin()];
V.ancestorOrigins&&D.push.apply(D,_.sz(V.ancestorOrigins));var f=new _.Ll(V.JSC$17481_win.location.href),n=V.startUrl?V.startUrl:V.options.includes("po")?"profile-picture/art":"profile-picture";D=rz(_.Mm(V.getTargetOrigin(),n),"origin",D);V.startUrl&&_.iW(D,"startPath",V.startUrl);V.authUser>0&&_.iW(D,"authuser",V.authUser);V.pageId!==void 0&&_.iW(D,"pageId",V.pageId);_.iW(D,"hostId",V.hostId);V.jsMode!==void 0&&_.iW(D,"jsmode",V.jsMode);V.rectangleRatio!==void 0&&_.iW(D,"rectangleRatio",V.rectangleRatio);
V.options.length>0&&_.iW(D,"opts",V.options.join(","));try{for(var t=_.r(["utm_source","utm_medium","utm_campaign","utm_content"]),J=t.next();!J.done;J=t.next()){var H=J.value;_.$4(f,H)&&_.iW(D,H,_.$4(f,H))}var Q,T=(Q=V.hl)!=null?Q:_.$4(f,"hl");T!==void 0&&_.iW(D,"hl",T)}catch(y){if(!(y instanceof URIError))throw y;}V.colorScheme&&_.iW(D,"theme",V.colorScheme);V.style&&_.iW(D,"style",V.style);return D},U73=function(V,D){V.mainChannel=_.xs({destination:V.JSC$17481_win,
iframe:D,origin:V.getTargetOrigin().toString(),channelName:"ow",onMessage:function(f){f=Glw(f.data);if(D===V.iframe)switch(_.u4(f,1)){case 1:V.eventTarget.dispatchEvent(new uXJ);fTw(V);break;case 2:V.eventTarget.dispatchEvent(new Bff(_.df(f,4),_.df(f,2),_.u4(f,5),_.bW(f,Zgv,6)));break;case 0:var n;V.eventTarget.dispatchEvent(new dkw(_.df(f,2),(n=_.u4(f,3))!=null?n:0));break;case 3:V.eventTarget.dispatchEvent(new uXJ(!0));fTw(V,!1);break;case 4:V.eventTarget.dispatchEvent(new NfZ)}}})},UkR=function(V,
D,f){_.xs({destination:V.JSC$17481_win,
iframe:D,origin:_.xq(_.O7(_.Ii(new _.Ll,V.scheme),V.domain),V.port).toString(),channelName:"owi",onMessage:function(n){D===V.iframe&&(f!==void 0&&f(),U73(V,D),V.opened&&V.mainChannel.send(FzR(cFB())),n.reply(),UkR(V,D))}})};
MPc.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?fd.prototype.preloadIframe.call(this,h40(this).toString()):this.iframeLoadPromise};
MPc.prototype.openPicker=function(V){var D=this;return _.w(function(f){if(f.nextAddress==1)return D.startUrl=V?V:D.options.includes("po")?"profile-picture/art":"profile-picture",_.b(f,nNf(D,h40(D).toString()),2);if(D.mainChannel){var n=D.mainChannel,t=n.send;var J=cFB();J=_.lB(J,2,D.startUrl);t.call(n,FzR(J))}_.yz(f)})};var VhW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(VhW,_.Xm);_.P=VhW.prototype;_.P.getSize=function(){return yG(this,1)};
_.P.setSize=function(V){return _.R$(this,1,V)};
_.P.getWidth=function(){return yG(this,12)};
_.P.getHeight=function(){return yG(this,13)};
_.P.setCenterCrop=function(V){return _.oV(this,20,V)};
_.P.getHtml=function(){return _.ks(this,4)};
_.P.getToken=function(){return _.KJ(this,24)};
_.P.setToken=function(V){return _.lB(this,24,V)};
_.P.getBackgroundColor=function(){return yG(this,87)};
_.P.hasBackgroundColor=function(){return _.vB(_.ZX(this,87))!=null};
_.P.getStoryboardLevel=function(){return yG(this,109)};var nd=function(V){this.JSC$17489_value_=void 0;this.childNodes_={};if(V){var D=_.h5V(V);V=_.L8(V);for(var f=0;f<D.length;f++)this.set(D[f],V[f])}};
nd.prototype.set=function(V,D){DQv(this,V,D,!1)};
nd.prototype.add=function(V,D){DQv(this,V,D,!0)};
var DQv=function(V,D,f,n){for(var t=0;t<D.length;t++){var J=D.charAt(t);V.childNodes_[J]||(V.childNodes_[J]=new nd);V=V.childNodes_[J]}if(n&&V.JSC$17489_value_!==void 0)throw Error("qk`"+D);V.JSC$17489_value_=f},fBW=function(V,D){for(var f=0;f<D.length;f++)if(V=V.childNodes_[D.charAt(f)],!V)return;
return V};
nd.prototype.get=function(V){return(V=fBW(this,V))?V.JSC$17489_value_:void 0};
nd.prototype.getValues=function(){var V=[];nG3(this,V);return V};
var nG3=function(V,D){V.JSC$17489_value_!==void 0&&D.push(V.JSC$17489_value_);for(var f in V.childNodes_)nG3(V.childNodes_[f],D)};
nd.prototype.getKeys=function(V){var D=[];if(V){for(var f=this,n=0;n<V.length;n++){var t=V.charAt(n);if(!f.childNodes_[t])return[];f=f.childNodes_[t]}thv(f,V,D)}else thv(this,"",D);return D};
var thv=function(V,D,f){V.JSC$17489_value_!==void 0&&f.push(D);for(var n in V.childNodes_)thv(V.childNodes_[n],D+n,f)};
_.P=nd.prototype;_.P.containsKey=function(V){return this.get(V)!==void 0};
_.P.containsValue=function(V){if(this.JSC$17489_value_===V)return!0;for(var D in this.childNodes_)if(this.childNodes_[D].containsValue(V))return!0;return!1};
_.P.clear=function(){this.childNodes_={};this.JSC$17489_value_=void 0};
_.P.remove=function(V){for(var D=this,f=[],n=0;n<V.length;n++){var t=V.charAt(n);if(!D.childNodes_[t])throw Error("rk`"+V);f.push([D,t]);D=D.childNodes_[t]}V=D.JSC$17489_value_;for(delete D.JSC$17489_value_;f.length>0;)if(n=f.pop(),D=n[0],n=n[1],D.childNodes_[n].isEmpty())delete D.childNodes_[n];else break;return V};
_.P.clone=function(){return new nd(this)};
_.P.getCount=function(){return UaV(this.getValues())};
_.P.isEmpty=function(){return this.JSC$17489_value_===void 0&&_.sB.isEmpty(this.childNodes_)};var FIR=function(){if(!PiR){var V=PiR=new nd,D;for(D in oGc)V.add(D,oGc[D])}},PiR,t1=function(V,D){this.types=V;
this.setters=D},oGc={a:new t1([3,
0],[function(V,D){_.oV(V,21,D)},
function(V,D){_.R$(V,56,D)}]),
al:new t1([3],[function(V,D){_.oV(V,74,D)}]),
b:new t1([3,0],[function(V,D){_.oV(V,23,D)},
function(V,D){_.R$(V,38,D)}]),
ba:new t1([0],[function(V,D){_.R$(V,85,D)}]),
bc:new t1([0],[function(V,D){_.R$(V,87,D)}]),
br:new t1([0],[function(V,D){_.R$(V,86,D)}]),
c:new t1([3,0],[function(V,D){_.oV(V,2,D)},
function(V,D){_.R$(V,39,D)}]),
cc:new t1([3],[function(V,D){_.oV(V,51,D)}]),
ci:new t1([3],[function(V,D){_.oV(V,32,D)}]),
ckm:new t1([3],[function(V,D){_.oV(V,104,D)}]),
cp:new t1([0],[function(V,D){_.R$(V,92,D)}]),
cr:new t1([3],[function(V,D){_.oV(V,108,D)}]),
cv:new t1([0],[function(V,D){_.R$(V,94,D)}]),
d:new t1([3],[function(V,D){_.oV(V,3,D)}]),
dc:new t1([5],[function(V,D){_.lB(V,99,D)}]),
df:new t1([3],[function(V,D){_.oV(V,80,D)}]),
dv:new t1([3],[function(V,D){_.oV(V,90,D)}]),
e:new t1([0],[function(V,D){_.R$(V,15,D)}]),
em:new t1([0],[function(V,D){_.R$(V,107,D)}]),
f:new t1([4],[function(V,D){_.lB(V,16,D)}]),
fg:new t1([3],[function(V,D){_.oV(V,34,D)}]),
fh:new t1([3],[function(V,D){_.oV(V,30,D)}]),
fm:new t1([3],[function(V,D){_.oV(V,84,D)}]),
fo:new t1([2],[function(V,D){_.tB(V,79,_.rR(D))}]),
ft:new t1([3],[function(V,D){_.oV(V,50,D)}]),
fv:new t1([3],[function(V,D){_.oV(V,31,D)}]),
g:new t1([3],[function(V,D){_.oV(V,14,D)}]),
gce:new t1([4],[function(V,D){_.lB(V,112,D)}]),
gd:new t1([3],[function(V,D){_.oV(V,83,D)}]),
gm:new t1([3],[function(V,D){_.oV(V,105,D)}]),
h:new t1([3,0],[function(V,D){_.oV(V,4,D)},
function(V,D){_.R$(V,13,D)}]),
i:new t1([3],[function(V,D){_.oV(V,22,D)}]),
ic:new t1([0],[function(V,D){_.R$(V,71,D)}]),
id:new t1([3],[function(V,D){_.oV(V,70,D)}]),
il:new t1([3],[function(V,D){_.oV(V,96,D)}]),
ip:new t1([3],[function(V,D){_.oV(V,54,D)}]),
iv:new t1([0],[function(V,D){_.c2(V,75,D)}]),
j:new t1([1],[function(V,D){D=D==null?D:jOZ(D);_.tB(V,29,D)}]),
k:new t1([3,0],[function(V,D){_.oV(V,17,D)},
function(V,D){_.R$(V,42,D)}]),
l:new t1([0],[function(V,D){_.R$(V,44,D)}]),
lf:new t1([3],[function(V,D){_.oV(V,65,D)}]),
lo:new t1([3],[function(V,D){_.oV(V,97,D)}]),
m:new t1([0],[function(V,D){_.R$(V,63,D)}]),
md:new t1([3],[function(V,D){_.oV(V,91,D)}]),
mm:new t1([4],[function(V,D){_.lB(V,81,D)}]),
mo:new t1([3],[function(V,D){_.oV(V,73,D)}]),
mp:new t1([0],[function(V,D){_.R$(V,115,D)}]),
mv:new t1([3],[function(V,D){_.oV(V,66,D)}]),
n:new t1([3],[function(V,D){V.setCenterCrop(D)}]),
nc:new t1([3],[function(V,D){_.oV(V,55,D)}]),
nd:new t1([3],[function(V,D){_.oV(V,53,D)}]),
ng:new t1([3],[function(V,D){_.oV(V,95,D)}]),
ngm:new t1([3],[function(V,D){_.oV(V,106,D)}]),
no:new t1([3],[function(V,D){_.oV(V,37,D)}]),
ns:new t1([3],[function(V,D){_.oV(V,40,D)}]),
nt0:new t1([4],[function(V,D){_.lB(V,36,D)}]),
ntm:new t1([3],[function(V,D){_.oV(V,114,D)}]),
nu:new t1([3],[function(V,D){_.oV(V,46,D)}]),
nw:new t1([3],[function(V,D){_.oV(V,48,D)}]),
o:new t1([1,3],[function(V,D){D=D==null?D:jOZ(D);_.tB(V,7,D)},
function(V,D){_.oV(V,27,D)}]),
p:new t1([3,0],[function(V,D){_.oV(V,19,D)},
function(V,D){_.R$(V,43,D)}]),
pa:new t1([3],[function(V,D){_.oV(V,61,D)}]),
pc:new t1([0],[function(V,D){_.R$(V,88,D)}]),
pd:new t1([3],[function(V,D){_.oV(V,60,D)}]),
pf:new t1([3],[function(V,D){_.oV(V,67,D)}]),
pg:new t1([3],[function(V,D){_.oV(V,72,D)}]),
pi:new t1([2],[function(V,D){_.tB(V,76,_.rR(D))}]),
pp:new t1([3],[function(V,D){_.oV(V,52,D)}]),
pt:new t1([4],[function(V,D){_.lB(V,111,D)}]),
q:new t1([4],[function(V,D){_.lB(V,28,D)}]),
r:new t1([3,0],[function(V,D){_.oV(V,6,D)},
function(V,D){_.R$(V,26,D)}]),
ra:new t1([3],[function(V,D){_.oV(V,103,D)}]),
rf:new t1([3],[function(V,D){_.oV(V,100,D)}]),
rg:new t1([3],[function(V,D){_.oV(V,59,D)}]),
rh:new t1([3],[function(V,D){_.oV(V,49,D)}]),
rj:new t1([3],[function(V,D){_.oV(V,57,D)}]),
ro:new t1([2],[function(V,D){_.tB(V,78,_.rR(D))}]),
rp:new t1([3],[function(V,D){_.oV(V,58,D)}]),
rw:new t1([3],[function(V,D){_.oV(V,35,D)}]),
rwa:new t1([3],[function(V,D){_.oV(V,64,D)}]),
rwu:new t1([3],[function(V,D){_.oV(V,41,D)}]),
s:new t1([3,0],[function(V,D){_.oV(V,33,D)},
function(V,D){V.setSize(D)}]),
sb:new t1([0],[function(V,D){_.R$(V,110,D)}]),
sc:new t1([0],[function(V,D){_.R$(V,89,D)}]),
sg:new t1([3],[function(V,D){_.oV(V,82,D)}]),
sl:new t1([0],[function(V,D){_.R$(V,109,D)}]),
sm:new t1([3],[function(V,D){_.oV(V,93,D)}]),
t:new t1([4],[function(V,D){V.setToken(D)}]),
tm:new t1([3],[function(V,D){_.oV(V,113,D)}]),
u:new t1([3],[function(V,D){_.oV(V,18,D)}]),
ut:new t1([3],[function(V,D){_.oV(V,45,D)}]),
v:new t1([0],[function(V,D){_.R$(V,62,D)}]),
vb:new t1([0],[function(V,D){_.c2(V,68,D)}]),
vf:new t1([4],[function(V,D){_.lB(V,102,D)}]),
vl:new t1([0],[function(V,D){_.c2(V,69,D)}]),
vm:new t1([3],[function(V,D){_.oV(V,98,D)}]),
w:new t1([0],[function(V,D){_.R$(V,12,D)}]),
x:new t1([0],[function(V,D){_.R$(V,9,D)}]),
y:new t1([0],[function(V,D){_.R$(V,10,D)}]),
ya:new t1([2],[function(V,D){_.tB(V,77,_.rR(D))}]),
z:new t1([0],[function(V,D){_.R$(V,11,D)}])};
FIR.prototype.parse=function(V){var D=new VhW,f=new VhW;if(V=="")V=!0;else{V=V.split("-");for(var n=!0,t=0;t<V.length;t++){var J=V[t];if(J.length==0)n=!1;else{var H=J,Q=!1;var T=H;var y=H.charAt(0);y!=y.toLowerCase()&&(Q=!0,T=H.charAt(0).toLowerCase()+H.substring(1));var Z=PiR;for(y=1;y<=T.length;++y){var l=Z,G=T.substring(0,y);if(G.length==0?l.isEmpty():!fBW(l,G))break}T=y==1?null:(T=Z.get(T.substring(0,y-1)))?{option:H.substring(0,y-1),value:H.substring(y-1),signed:Q,attributes:T}:null;if(T){H=
[];Q=[];y=!1;for(Z=0;Z<T.attributes.types.length;Z++){l=T.attributes.types[Z];var F=T.value;G=t;if(T.signed&&l==1)for(var k=F.length;k<12&&G<V.length-1;)F+="-"+V[G+1],k=F.length,++G;else if(l==2)for(;G<V.length-1&&V[G+1].match(/^[\d\.]/);)F+="-"+V[G+1],++G;k=T.attributes.setters[Z];F=J_f(this,l)(T.option,F,D,f,k);if(F===null){y=!0;t=G;break}else H.push(l),Q.push(F)}if(!y)for(T=0;T<Q.length;T++)Z=H[T],F=Q[T],r_0(this,Z)(J,F);n=n&&y}else n=!1}}V=n}return new HnR(D,f,V)};
var Ph=function(V,D,f,n,t,J){t(f,D);V=V.charAt(0);J=J(V==V.toUpperCase());t(n,J)};
_.P=FIR.prototype;_.P.parseAndSetIntOption_=function(V,D,f,n,t){if(D=="")return 0;isFinite(D)&&(D=String(D));D=typeof D==="string"?/^\s*-?0x/i.test(D)?parseInt(D,16):parseInt(D,10):NaN;if(isNaN(D))return 1;Ph(V,D,f,n,t,Number);return null};
_.P.logIntParseError_=function(){};
_.P.parseAndSetFloatOption_=function(V,D,f,n,t){if(D=="")return 0;var J=Number(D);D=J==0&&_.Hn(D)?NaN:J;if(isNaN(D))return 1;Ph(V,D,f,n,t,Number);return null};
_.P.logFloatParseError_=function(){};
_.P.parseAndSetBoolOption_=function(V,D,f,n,t){if(D!="")return 2;Ph(V,!0,f,n,t,Boolean);return null};
_.P.logBoolParseError_=function(){};
_.P.parseAndSetStringOption_=function(V,D,f,n,t){if(D=="")return 0;Ph(V,D,f,n,t,function(J){return J?"1":""});
return null};
_.P.logStringParseError_=function(){};
_.P.parseAndSetUint64Base64Option_=function(V,D,f,n,t){if(D=="")return 0;Ph(V,D,f,n,t,function(J){return J?1:0});
return null};
var J_f=function(V,D){switch(D){case 0:return(0,_.F1)(V.parseAndSetIntOption_,V);case 2:return(0,_.F1)(V.parseAndSetFloatOption_,V);case 3:return(0,_.F1)(V.parseAndSetBoolOption_,V);case 4:return(0,_.F1)(V.parseAndSetStringOption_,V);case 1:return(0,_.F1)(V.parseAndSetUint64Base64Option_,V);default:return function(){}}},r_0=function(V,D){switch(D){case 0:return(0,_.F1)(V.logIntParseError_,V);
case 2:return(0,_.F1)(V.logFloatParseError_,V);case 3:return(0,_.F1)(V.logBoolParseError_,V);case 4:case 1:return(0,_.F1)(V.logStringParseError_,V);default:return function(){}}},HnR=function(V,D,f){this.valueProto_=V;
this.signatureFlagProto_=D;this.JSC$17501_valid_=f};
HnR.prototype.isValid=function(){return this.JSC$17501_valid_};var lkf=function(V){this.JSC$17502_parser_=null;this.JSC$17502_components_=[];this.JSC$17502_parsedOptions_=null;wEv(this,V)},QcJ=function(V){V.JSC$17502_parser_==null&&(V.JSC$17502_parser_=new FIR);
return V.JSC$17502_parser_},wEv=function(V,D){V.JSC$17502_parsedOptions_=D?typeof D==="string"?QcJ(V).parse(D):D:QcJ(V).parse("")},oy=function(V,D){return V==D?!1:!0};
_.P=lkf.prototype;_.P.JSC$17504_setCrop=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,_.ks(f,2),_.ks(D.signatureFlagProto_,2))&&_.oV(f,2,V);return this};
_.P.JSC$17504_setCircleCrop=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,KM(f,51),KM(D.signatureFlagProto_,51))&&_.oV(f,51,V);return this};
_.P.JSC$17504_setImageCrop=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,KM(f,32),KM(D.signatureFlagProto_,32))&&_.oV(f,32,V);return this};
_.P.JSC$17504_setHeight=function(V){var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,f.getHeight(),D.signatureFlagProto_.getHeight())&&_.R$(f,13,V);return this};
_.P.setCenterCrop=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,_.ks(f,20),_.ks(D.signatureFlagProto_,20))&&f.setCenterCrop(V);return this};
_.P.JSC$17504_setSmartCrop=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,_.ks(f,19),_.ks(D.signatureFlagProto_,19))&&_.oV(f,19,V);return this};
_.P.JSC$17504_setPad=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,KM(f,60),KM(D.signatureFlagProto_,60))&&_.oV(f,60,V);return this};
_.P.JSC$17504_setSmartCropUseFace=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,_.ks(f,67),_.ks(D.signatureFlagProto_,67))&&_.oV(f,67,V);return this};
_.P.JSC$17504_setSmartCropNoClip=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,_.ks(f,52),_.ks(D.signatureFlagProto_,52))&&_.oV(f,52,V);return this};
_.P.setSize=function(V){var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,f.getSize(),D.signatureFlagProto_.getSize())&&f.setSize(V);return this};
_.P.setToken=function(V){V=V||void 0;var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,f.getToken(),D.signatureFlagProto_.getToken())&&f.setToken(V);return this};
_.P.JSC$17504_setWidth=function(V){var D=this.JSC$17502_parsedOptions_,f=D.valueProto_;oy(V,f.getWidth(),D.signatureFlagProto_.getWidth())&&_.R$(f,12,V);return this};
_.P.clearOptions=function(){wEv(this,"");return this};
_.P.build=function(){this.JSC$17502_components_.length=0;var V=this.JSC$17502_parsedOptions_,D=V.valueProto_;V=V.signatureFlagProto_;J1(this,"s",D.getSize(),V.getSize());J1(this,"w",D.getWidth(),V.getWidth());rp(this,"c",_.ks(D,2),_.ks(V,2));rp(this,"d",_.ks(D,3),_.ks(V,3));J1(this,"h",D.getHeight(),V.getHeight());rp(this,"s",KM(D,33),KM(V,33));rp(this,"h",D.getHtml(),V.getHtml());rp(this,"p",_.ks(D,19),_.ks(V,19));rp(this,"pp",_.ks(D,52),_.ks(V,52));rp(this,"pf",_.ks(D,67),_.ks(V,67));rp(this,"n",
_.ks(D,20),_.ks(V,20));J1(this,"r",yG(D,26),yG(V,26));rp(this,"r",_.ks(D,6),_.ks(V,6));rp(this,"o",KM(D,27),KM(V,27));var f=_.vb(D,7,_.yd);Hh(this,"o",f,_.vb(V,7,_.yd));f=_.vb(D,29,_.yd);Hh(this,"j",f,_.vb(V,29,_.yd));J1(this,"x",yG(D,9),yG(V,9));J1(this,"y",yG(D,10),yG(V,10));J1(this,"z",yG(D,11),yG(V,11));rp(this,"g",_.ks(D,14),_.ks(V,14));J1(this,"e",yG(D,15),yG(V,15));Hh(this,"f",_.KJ(D,16),_.KJ(V,16));rp(this,"k",KM(D,17),KM(V,17));rp(this,"u",KM(D,18),!0);rp(this,"ut",KM(D,45),!0);rp(this,"i",
KM(D,22),!0);rp(this,"a",KM(D,21),KM(V,21));rp(this,"b",_.ks(D,23),_.ks(V,23));J1(this,"b",yG(D,38),yG(V,38));J1(this,"c",yG(D,39),yG(V,39),16,8);Hh(this,"q",_.KJ(D,28),_.KJ(V,28));rp(this,"fh",KM(D,30),KM(V,30));rp(this,"fv",KM(D,31),KM(V,31));rp(this,"fg",_.ks(D,34),_.ks(V,34));rp(this,"ci",KM(D,32),KM(V,32));Hh(this,"t",D.getToken(),V.getToken());Hh(this,"nt0",_.KJ(D,36),_.KJ(V,36));rp(this,"rw",_.ks(D,35),_.ks(V,35));rp(this,"rwu",_.ks(D,41),_.ks(V,41));rp(this,"rwa",_.ks(D,64),_.ks(V,64));rp(this,
"nw",_.ks(D,48),_.ks(V,48));rp(this,"rh",_.ks(D,49),_.ks(V,49));rp(this,"no",_.ks(D,37),_.ks(V,37));rp(this,"ns",KM(D,40),KM(V,40));J1(this,"k",yG(D,42),yG(V,42));J1(this,"p",yG(D,43),yG(V,43));J1(this,"l",yG(D,44),yG(V,44));J1(this,"v",yG(D,62),yG(V,62));rp(this,"nu",KM(D,46),KM(V,46));rp(this,"ft",KM(D,50),KM(V,50));rp(this,"cc",KM(D,51),KM(V,51));rp(this,"nd",KM(D,53),KM(V,53));rp(this,"ip",KM(D,54),KM(V,54));rp(this,"nc",KM(D,55),KM(V,55));J1(this,"a",yG(D,56),yG(V,56));rp(this,"rj",KM(D,57),
KM(V,57));rp(this,"rp",KM(D,58),KM(V,58));rp(this,"rg",KM(D,59),KM(V,59));rp(this,"pd",KM(D,60),KM(V,60));rp(this,"pa",KM(D,61),KM(V,61));J1(this,"m",yG(D,63),yG(V,63));J1(this,"vb",Za(D,68),Za(V,68));J1(this,"vl",Za(D,69),Za(V,69));rp(this,"lf",KM(D,65),KM(V,65));rp(this,"mv",KM(D,66),KM(V,66));rp(this,"id",KM(D,70),KM(V,70));J1(this,"ic",yG(D,71),!0);rp(this,"pg",_.ks(D,72),_.ks(V,72));rp(this,"mo",KM(D,73),KM(V,73));rp(this,"al",KM(D,74),KM(V,74));J1(this,"iv",Za(D,75),Za(V,75));J1(this,"pi",jg(D,
76),jg(V,76));J1(this,"ya",jg(D,77),jg(V,77));J1(this,"ro",jg(D,78),jg(V,78));J1(this,"fo",jg(D,79),jg(V,79));rp(this,"df",KM(D,80),KM(V,80));Hh(this,"mm",_.KJ(D,81),_.KJ(V,81));rp(this,"sg",KM(D,82),KM(V,82));rp(this,"gd",KM(D,83),KM(V,83));rp(this,"fm",KM(D,84),KM(V,84));J1(this,"ba",yG(D,85),yG(V,85));J1(this,"br",yG(D,86),yG(V,86));J1(this,"bc",D.getBackgroundColor(),V.getBackgroundColor(),16,8);J1(this,"pc",yG(D,88),yG(V,88),16,8);J1(this,"sc",yG(D,89),yG(V,89),16,8);rp(this,"dv",KM(D,90),KM(V,
90));rp(this,"md",KM(D,91),KM(V,91));J1(this,"cp",yG(D,92),yG(V,92));rp(this,"sm",KM(D,93),KM(V,93));J1(this,"cv",yG(D,94),yG(V,94));rp(this,"ng",KM(D,95),KM(V,95));rp(this,"il",KM(D,96),KM(V,96));rp(this,"lo",KM(D,97),KM(V,97));rp(this,"vm",KM(D,98),KM(V,98));Hh(this,"dc",_.KJ(D,99),_.KJ(V,99));rp(this,"rf",KM(D,100),KM(V,100));Hh(this,"vf",_.KJ(D,102),_.KJ(V,102));rp(this,"ra",_.ks(D,103),_.ks(V,103));rp(this,"ckm",KM(D,104),KM(V,104));rp(this,"gm",KM(D,105),KM(V,105));rp(this,"ngm",KM(D,106),KM(V,
106));J1(this,"em",yG(D,107),yG(V,107));rp(this,"cr",KM(D,108),KM(V,108));J1(this,"sl",D.getStoryboardLevel(),V.getStoryboardLevel());J1(this,"sb",yG(D,110),yG(V,110));Hh(this,"pt",_.KJ(D,111),_.KJ(V,111));Hh(this,"gce",_.KJ(D,112),_.KJ(V,112));rp(this,"tm",KM(D,113),KM(V,113));rp(this,"ntm",KM(D,114),KM(V,114));J1(this,"mp",yG(D,115),yG(V,115));return this.JSC$17502_components_.join("-")};
var J1=function(V,D,f,n,t,J){if(f!=null){var H=t==void 0||t!=10&&t!=16?10:t;f=Number(f).toString(H);t=new qiX;t.append(H==16?"0x":"");H=t.append;J==void 0?J="":(J-=f.length,J=J<=0?"":(0,_.WEU)("0",J));H.call(t,J);t.append(f);TlZ(V,D,t.toString(),!!Number(n))}},rp=function(V,D,f,n){f&&TlZ(V,D,"",!!n)},Hh=function(V,D,f,n){f&&TlZ(V,D,String(f),!!Number(n))},TlZ=function(V,D,f,n){n&&(D=D.charAt(0).toUpperCase()+D.substring(1));
V.JSC$17502_components_.push(D+f)};_.fg(va,lkf);_.P=va.prototype;_.P.JSC$17504_setCrop=function(V){V&&wp(this);return va.superClass_.JSC$17504_setCrop.call(this,V)};
_.P.JSC$17504_setHeight=function(V){V=V==null||V<0?void 0:V;V!=null&&this.setSize();return va.superClass_.JSC$17504_setHeight.call(this,V)};
_.P.JSC$17504_setImageCrop=function(V){V&&wp(this);return va.superClass_.JSC$17504_setImageCrop.call(this,V)};
_.P.JSC$17504_setCircleCrop=function(V){V&&wp(this);return va.superClass_.JSC$17504_setCircleCrop.call(this,V)};
_.P.setSize=function(V){_.VV(V)&&(V=Math.max(V.width,V.height));V=V==null||V<0?void 0:V;V!=null&&(this.JSC$17504_setWidth(),this.JSC$17504_setHeight());return va.superClass_.setSize.call(this,V)};
_.P.JSC$17504_setSmartCrop=function(V){V&&wp(this);return va.superClass_.JSC$17504_setSmartCrop.call(this,V)};
_.P.JSC$17504_setSmartCropNoClip=function(V){V&&wp(this);return va.superClass_.JSC$17504_setSmartCropNoClip.call(this,V)};
_.P.JSC$17504_setSmartCropUseFace=function(V){V&&wp(this);return va.superClass_.JSC$17504_setSmartCropUseFace.call(this,V)};
_.P.setCenterCrop=function(V){V&&wp(this);return va.superClass_.setCenterCrop.call(this,V)};
_.P.JSC$17504_setPad=function(V){V&&wp(this);return va.superClass_.JSC$17504_setPad.call(this,V)};
_.P.JSC$17504_setWidth=function(V){V=V==null||V<0?void 0:V;V!=null&&this.setSize();return va.superClass_.JSC$17504_setWidth.call(this,V)};
var bnf=function(V){V.clearOptions();var D=V.JSC$17502_parsedOptions_,f=D.valueProto_;oy(!0,_.ks(f,3),_.ks(D.signatureFlagProto_,3))&&_.oV(f,3,!0);return V},wp=function(V){V.setCenterCrop();
V.JSC$17504_setCircleCrop();V.JSC$17504_setCrop();V.JSC$17504_setImageCrop();V.JSC$17504_setPad();V.JSC$17504_setSmartCrop();V.JSC$17504_setSmartCropNoClip();V.JSC$17504_setSmartCropUseFace()};
va.prototype.build=function(){var V=this.JSC$17502_parsedOptions_.valueProto_;KM(V,18)||KM(V,45)?V.getSize()||this.setSize(0):(V=this.JSC$17502_parsedOptions_.valueProto_,V.getSize()||V.getWidth()||V.getHeight()||(this.setSize(),this.JSC$17504_setHeight(),this.JSC$17504_setWidth(),wp(this)));return va.superClass_.build.call(this)};var KSR=/^[^\/]*\/\//,Qi=function(V,D){D=D===void 0?!1:D;this.original_=V;this.originalPrefix_="";(V=this.original_.match(KSR))&&V[0]?(this.originalPrefix_=V[0],V=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):V="http://"+this.original_;this.uri_=_.Y4(V,!0);this.isFreeformUrl_=D;this.JSC$17508_valid_=!0;this.obfuscated_=!1},y_R=function(V,D){V.JSC$17510_pathPrefix_=V.JSC$17510_pathPrefix_?V.JSC$17510_pathPrefix_+("/"+D):D},Th=function(V){if(V.JSC$17510_components_==
void 0){var D=V.uri_.getPath().substring(1);
V.JSC$17510_pathPrefix_=null;if(V.isFreeformUrl_){V.JSC$17510_components_=[];if((D.match(/=/g)||[]).length>1)return V.JSC$17508_valid_=!1,V.JSC$17510_components_;var f=D.indexOf("=");f!=-1?(V.JSC$17510_components_.push(D.substr(0,f)),V.JSC$17510_components_.push(D.substr(f+1))):V.JSC$17510_components_.push(D);return V.JSC$17510_components_}V.JSC$17510_components_=D.split("/");D=V.JSC$17510_components_.length;D>2&&V.JSC$17510_components_[0]=="u"&&(y_R(V,V.JSC$17510_components_[0]+"/"+V.JSC$17510_components_[1]),
V.JSC$17510_components_.shift(),V.JSC$17510_components_.shift(),D-=2);if(D==0||D==4||D>7)return V.JSC$17508_valid_=!1,V.JSC$17510_components_;if(D==2)y_R(V,V.JSC$17510_components_[0]);else if(V.JSC$17510_components_[0]=="image")y_R(V,V.JSC$17510_components_[0]);else if(D==7||D==3)return V.JSC$17508_valid_=!1,V.JSC$17510_components_;if(D<=3){V.obfuscated_=!0;D==3&&(y_R(V,V.JSC$17510_components_[1]),V.JSC$17510_components_.shift(),--D);--D;f=V.JSC$17510_components_[D];var n=f.indexOf("=");n!=-1&&(V.JSC$17510_components_[D]=
f.substr(0,n),V.JSC$17510_components_.push(f.substr(n+1)))}}return V.JSC$17510_components_};
Qi.prototype.isValid=function(){Th(this);return this.JSC$17508_valid_};
Qi.prototype.isObfuscated=function(){Th(this);return this.obfuscated_};
var Zno=function(V){Th(V);return V.isFreeformUrl_},b0=function(V){Th(V);
V.JSC$17510_pathPrefix_==void 0&&(V.JSC$17510_pathPrefix_=null);return V.JSC$17510_pathPrefix_},jcZ=function(V){switch(Th(V).length){case 7:return!0;
case 6:return b0(V)==null;case 5:return!1;case 3:return!0;case 2:return b0(V)==null;case 1:return!1;default:return!1}},Kd=function(V,D){if(Zno(V))a:{switch(D){case 7:D=0;
break;case 4:if(!jcZ(V)){V=null;break a}D=1;break;default:V=null;break a}V=Th(V)[D]}else if(V.isObfuscated())a:{var f=b0(V)!=null?1:0;switch(D){case 6:D=f;break;case 4:if(!jcZ(V)){V=null;break a}D=1+f;break;default:V=null;break a}V=Th(V)[D]}else a:{f=b0(V)!=null?1:0;switch(D){case 0:D=f;break;case 1:D=1+f;break;case 2:D=2+f;break;case 3:D=3+f;break;case 4:if(!jcZ(V)){V=null;break a}D=4+f;break;case 5:D=jcZ(V)?1:0;D=4+f+D;break;default:V=null;break a}V=Th(V)[D]}return V};
Qi.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Kd(this,4));return this.options_};var ceJ=function(){};
ceJ.prototype.parse=function(V,D){return new GRq(V,D===void 0?!1:D)};
var GRq=function(V,D){Qi.call(this,V,D===void 0?!1:D)};
_.v(GRq,Qi);_.fg(kU,va);var eiw;kU.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
kU.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var V=kU.superClass_.build.call(this),D=[];b0(this.parsedImageUrl_)!=null&&D.push(b0(this.parsedImageUrl_));var f=Zno(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var n=this.parsedImageUrl_;n.obfuscatedData_==void 0&&(n.obfuscatedData_=Kd(n,6));D.push(n.obfuscatedData_+(V?"="+V:""))}else if(f){n=D.push;var t=this.parsedImageUrl_;t.freeformUrlPath_===void 0&&(t.freeformUrlPath_=Kd(t,
7));n.call(D,t.freeformUrlPath_);V&&D.push(V)}else n=D.push,t=this.parsedImageUrl_,t.obfuscatedGaiaId_==void 0&&(t.obfuscatedGaiaId_=Kd(t,0)),n.call(D,t.obfuscatedGaiaId_),n=D.push,t=this.parsedImageUrl_,t.photoId_==void 0&&(t.photoId_=Kd(t,1)),n.call(D,t.photoId_),n=D.push,t=this.parsedImageUrl_,t.imageVersion_==void 0&&(t.imageVersion_=Kd(t,2)),n.call(D,t.imageVersion_),n=D.push,t=this.parsedImageUrl_,t.signature_==void 0&&(t.signature_=Kd(t,3)),n.call(D,t.signature_),V&&D.push(V),V=D.push,n=this.parsedImageUrl_,
n.filename_==void 0&&(n.filename_=Kd(n,5)),V.call(D,n.filename_);D=f?D.join("="):D.join("/");D=_.Y4(this.protocolPrefix_+this.JSC$17516_domain_+"/"+D+(this.JSC$17516_query_?"?"+this.JSC$17516_query_:"")).toString();D.startsWith("%3a//")&&(D=D.replace("%3a//","://"));return D};var lBR=_.WV(["viewBox"]),GwW=_.WV(["width"]),eYo=_.WV(["height"]),c_B=_.WV(["fill"]),FSf=_.WV(["id"]),gGR=_.WV(["x"]),vGW=_.WV(["y"]);goV.prototype.getLength=function(){return this.parsedData.length};
goV.prototype.write=function(V){for(var D=0,f=this.parsedData.length;D<f;D++)V.put(this.parsedData[D],8)};
var N23=function(V,D){var f=new goV(D);V.dataList.push(f);f=V.errorCorrectLevel;var n=1,t=encodeURI(D).toString().replace(/%[0-9a-fA-F]{2}/g,"a");D=t.length+(t.length!=D?3:0);t=0;for(var J=yi.length;t<=J;t++){var H=0;switch(f){case 1:H=yi[t][0];break;case 0:H=yi[t][1];break;case 3:H=yi[t][2];break;case 2:H=yi[t][3]}if(D<=H)break;else n++}if(n>yi.length)throw Error("Ak");V.typeNumber=n;V.dataCache=null};
vo0.prototype.isDark=function(V,D){if(V<0||this.moduleCount<=V||D<0||this.moduleCount<=D)throw Error("sk`"+V+"`"+D);return this.modules[V][D]};
for(var miR=function(V,D,f){V.moduleCount=V.typeNumber*4+17;V.modules=Array(V.moduleCount);for(var n=0;n<V.moduleCount;n++){V.modules[n]=Array(V.moduleCount);for(var t=0;t<V.moduleCount;t++)V.modules[n][t]=null}kwc(V,0,0);kwc(V,V.moduleCount-7,0);kwc(V,0,V.moduleCount-7);n=sc0[V.typeNumber-1];for(t=0;t<n.length;t++)for(var J=0;J<n.length;J++){var H=n[t],Q=n[J];if(V.modules[H][Q]==null)for(var T=-2;T<=2;T++)for(var y=-2;y<=2;y++)V.modules[H+T][Q+y]=T==-2||T==2||y==-2||y==2||T==0&&y==0?!0:!1}for(n=
8;n<V.moduleCount-8;n++)V.modules[n][6]==null&&(V.modules[n][6]=n%2==0);for(n=8;n<V.moduleCount-8;n++)V.modules[6][n]==null&&(V.modules[6][n]=n%2==0);n=V.errorCorrectLevel<<3|f;for(t=n<<10;Zo(t)-Zo(1335)>=0;)t^=1335<<Zo(t)-Zo(1335);n=(n<<10|t)^21522;for(t=0;t<15;t++)J=!D&&(n>>t&1)==1,t<6?V.modules[t][8]=J:t<8?V.modules[t+1][8]=J:V.modules[V.moduleCount-15+t][8]=J;for(t=0;t<15;t++)J=!D&&(n>>t&1)==1,t<8?V.modules[8][V.moduleCount-t-1]=J:t<9?V.modules[8][15-t-1+1]=J:V.modules[8][15-t-1]=J;V.modules[V.moduleCount-
8][8]=!D;if(V.typeNumber>=7){n=V.typeNumber;for(t=n<<12;Zo(t)-Zo(7973)>=0;)t^=7973<<Zo(t)-Zo(7973);n=n<<12|t;for(t=0;t<18;t++)J=!D&&(n>>t&1)==1,V.modules[Math.floor(t/3)][t%3+V.moduleCount-8-3]=J;for(t=0;t<18;t++)J=!D&&(n>>t&1)==1,V.modules[t%3+V.moduleCount-8-3][Math.floor(t/3)]=J}if(V.dataCache==null){t=V.typeNumber;J=V.dataList;D=V.errorCorrectLevel;n=BlR(t,D);if(n==void 0)throw Error("zk`"+t+"`"+D);H=n.length/3;D=[];for(Q=0;Q<H;Q++){T=n[Q*3];y=n[Q*3+1];for(var Z=n[Q*3+2],l=0;l<T;l++)D.push(new kR3(y,
Z))}n=new sbR;for(H=0;H<J.length;H++)Q=J[H],n.put(Q.mode,4),n.put(Q.getLength(),dQB(Q.mode,t)),Q.write(n);for(H=t=0;H<D.length;H++)t+=D[H].dataCount;if(n.length>t*8)throw Error("tk`"+n.length+"`"+t*8);for(n.length+4<=t*8&&n.put(0,4);n.length%8!=0;)ukV(n,!1);for(;!(n.length>=t*8);){n.put(236,8);if(n.length>=t*8)break;n.put(17,8)}J=t=y=0;H=Array(D.length);Q=Array(D.length);for(T=0;T<D.length;T++){l=D[T].dataCount;var G=D[T].totalCount-l;t=Math.max(t,l);J=Math.max(J,G);H[T]=Array(l);for(Z=0;Z<H[T].length;Z++)H[T][Z]=
255&n.buffer[Z+y];y+=l;Z=G;l=new sa([1],0);for(G=0;G<Z;G++)l=l.multiply(new sa([1,NlV(G)],0));Z=l;l=(new sa(H[T],Z.getLength()-1)).mod(Z);Q[T]=Array(Z.getLength()-1);for(Z=0;Z<Q[T].length;Z++)G=Z+l.getLength()-Q[T].length,Q[T][Z]=G>=0?l.get(G):0}for(Z=n=0;Z<D.length;Z++)n+=D[Z].totalCount;n=Array(n);for(Z=y=0;Z<t;Z++)for(T=0;T<D.length;T++)Z<H[T].length&&(n[y++]=H[T][Z]);for(Z=0;Z<J;Z++)for(T=0;T<D.length;T++)Z<Q[T].length&&(n[y++]=Q[T][Z]);V.dataCache=n}D=V.dataCache;n=-1;t=V.moduleCount-1;J=7;H=
0;for(Q=V.moduleCount-1;Q>0;Q-=2)for(Q==6&&Q--;;){for(T=0;T<2;T++)V.modules[t][Q-T]==null&&(y=!1,H<D.length&&(y=(D[H]>>>J&1)==1),mQ3(f,t,Q-T)&&(y=!y),V.modules[t][Q-T]=y,J--,J==-1&&(H++,J=7));t+=n;if(t<0||V.moduleCount<=t){t-=n;n=-n;break}}},kwc=function(V,D,f){for(var n=-1;n<=7;n++)if(!(D+n<=-1||V.moduleCount<=D+n))for(var t=-1;t<=7;t++)f+t<=-1||V.moduleCount<=f+t||(V.modules[D+n][f+t]=0<=n&&n<=6&&(t==0||t==6)||0<=t&&t<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=t&&t<=4?!0:!1)},ziq=function(V){for(var D=0,
f=0,n=0;n<8;n++){miR(V,!0,n);
var t=V;for(var J=t.moduleCount,H=0,Q=0;Q<J;Q++)for(var T=0;T<J;T++){for(var y=0,Z=t.isDark(Q,T),l=-1;l<=1;l++)if(!(Q+l<0||J<=Q+l))for(var G=-1;G<=1;G++)T+G<0||J<=T+G||(l!=0||G!=0)&&Z==t.isDark(Q+l,T+G)&&y++;y>5&&(H+=3+y-5)}for(Q=0;Q<J-1;Q++)for(T=0;T<J-1;T++)if(y=0,t.isDark(Q,T)&&y++,t.isDark(Q+1,T)&&y++,t.isDark(Q,T+1)&&y++,t.isDark(Q+1,T+1)&&y++,y==0||y==4)H+=3;for(Q=0;Q<J;Q++)for(T=0;T<J-6;T++)t.isDark(Q,T)&&!t.isDark(Q,T+1)&&t.isDark(Q,T+2)&&t.isDark(Q,T+3)&&t.isDark(Q,T+4)&&!t.isDark(Q,T+5)&&
t.isDark(Q,T+6)&&(H+=40);for(T=0;T<J;T++)for(Q=0;Q<J-6;Q++)t.isDark(Q,T)&&!t.isDark(Q+1,T)&&t.isDark(Q+2,T)&&t.isDark(Q+3,T)&&t.isDark(Q+4,T)&&!t.isDark(Q+5,T)&&t.isDark(Q+6,T)&&(H+=40);for(T=y=0;T<J;T++)for(Q=0;Q<J;Q++)t.isDark(Q,T)&&y++;t=H+=Math.abs(100*y/J/J-50)/5*10;if(n==0||D>t)D=t,f=n}return f},sc0=[[],
[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]],Zo=function(V){for(var D=0;V!=0;)D++,V>>>=1;return D},mQ3=function(V,D,f){switch(V){case 0:return(D+f)%2==0;
case 1:return D%2==0;case 2:return f%3==0;case 3:return(D+f)%3==0;case 4:return(Math.floor(D/2)+Math.floor(f/3))%2==0;case 5:return D*f%2+D*f%3==0;case 6:return(D*f%2+D*f%3)%2==0;case 7:return(D*f%3+(D+f)%2)%2==0;default:throw Error("uk`"+V);}},dQB=function(V,D){if(1<=D&&D<10)switch(V){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("vk`"+V);}else if(D<27)switch(V){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("vk`"+V);}else if(D<41)switch(V){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("vk`"+V);}else throw Error("wk`"+D);},jX=function(V){if(V<1)throw Error("xk`"+V);
return zYZ[V]},NlV=function(V){for(;V<0;)V+=255;
for(;V>=256;)V-=255;return l0[V]},l0=Array(256),zYZ=Array(256),RYc=0;RYc<8;RYc++)l0[RYc]=1<<RYc;
for(var Gh=8;Gh<256;Gh++)l0[Gh]=l0[Gh-4]^l0[Gh-5]^l0[Gh-6]^l0[Gh-8];for(var CiJ=0;CiJ<255;CiJ++)zYZ[l0[CiJ]]=CiJ;sa.prototype.get=function(V){return this.num[V]};
sa.prototype.getLength=function(){return this.num.length};
sa.prototype.multiply=function(V){for(var D=Array(this.getLength()+V.getLength()-1),f=0;f<this.getLength();f++)for(var n=0;n<V.getLength();n++)D[f+n]^=NlV(jX(this.get(f))+jX(V.get(n)));return new sa(D,0)};
sa.prototype.mod=function(V){if(this.getLength()-V.getLength()<0)return this;for(var D=jX(this.get(0))-jX(V.get(0)),f=Array(this.getLength()),n=0;n<this.getLength();n++)f[n]=this.get(n);for(n=0;n<V.getLength();n++)f[n]^=NlV(jX(V.get(n))+D);return(new sa(f,0)).mod(V)};
var qjV=[[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]],BlR=function(V,D){switch(D){case 1:return qjV[(V-1)*4];case 0:return qjV[(V-1)*4+1];case 3:return qjV[(V-1)*4+2];case 2:return qjV[(V-1)*4+3]}};
sbR.prototype.get=function(V){return(this.buffer[Math.floor(V/8)]>>>7-V%8&1)==1};
sbR.prototype.put=function(V,D){for(var f=0;f<D;f++)ukV(this,(V>>>D-f-1&1)==1)};
var ukV=function(V,D){var f=Math.floor(V.length/8);V.buffer.length<=f&&V.buffer.push(0);D&&(V.buffer[f]|=128>>>V.length%8);V.length++},yi=[[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]],uwv=function(){var V=function(D,f){this.JSC$17536__el=D;this.JSC$17536__htOption=f};
V.prototype.draw=function(D){function f(Z,l){Z=document.createElementNS("http://www.w3.org/2000/svg",Z);for(var G in l)l.hasOwnProperty(G)&&(G==="href"?_.vA0(Z,l[G]):_.iv([_.fi(lBR),_.fi(GwW),_.fi(eYo),_.fi(c_B),_.fi(FSf),_.fi(gGR),_.fi(vGW)],Z,G,l[G]));return Z}
var n=this.JSC$17536__htOption,t=this.JSC$17536__el,J=D.moduleCount;this.clear();var H=f("svg",{viewBox:"0 0 "+String(J)+" "+String(J),width:"100%",height:"100%",fill:n.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});t.appendChild(H);H.appendChild(f("rect",{fill:n.colorLight,width:"100%",height:"100%"}));H.appendChild(f("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var Q=0;Q<J;Q++)for(var T=0;T<J;T++)if(D.isDark(Q,T)){var y=f("use",{x:String(Q),y:String(T),href:"#template"});
H.appendChild(y)}};
V.prototype.clear=function(){for(;this.JSC$17536__el.hasChildNodes();)this.JSC$17536__el.removeChild(this.JSC$17536__el.lastChild)};
return V}(),diW=document.documentElement.tagName.toLowerCase()==="svg"?uwv:typeof CanvasRenderingContext2D!="undefined"?function(){var V=function(D,f){this._bIsPainted=!1;
B20();this.JSC$17536__htOption=f;this._elCanvas=document.createElement("canvas");this._elCanvas.width=f.width;this._elCanvas.height=f.height;D.appendChild(this._elCanvas);this.JSC$17536__el=D;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$17536__el.appendChild(this._elImage);this._bSupportDataURI=null};
V.prototype._onMakeImage=function(){var D=this._elCanvas.toDataURL("image/png");this._elImage.src=D;this._elImage.style.display="block";this._elCanvas.style.display="none"};
V.prototype._safeSetDataURI=function(D,f){var n=this;n._fFail=f;n._fSuccess=D;n._bSupportDataURI===null?(D=_.yh("IMG"),f=function(){n._bSupportDataURI=!1;n._fFail&&n._fFail.call(n)},D.onabort=f,D.onerror=f,D.onload=function(){n._bSupportDataURI=!0;
n._fSuccess&&n._fSuccess.call(n)},D.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)};
V.prototype.draw=function(D){var f=this._oContext,n=this.JSC$17536__htOption,t=D.moduleCount,J=n.width/t,H=n.height/t,Q=Math.round(J),T=Math.round(H);this._elImage.style.display="none";this.clear();for(var y=0;y<t;y++)for(var Z=0;Z<t;Z++){var l=D.isDark(y,Z),G=Z*J,F=y*H;f.strokeStyle=l?n.colorDark:n.colorLight;f.lineWidth=1;f.fillStyle=l?n.colorDark:n.colorLight;f.fillRect(G,F,J,H);f.strokeRect(Math.floor(G)+.5,Math.floor(F)+.5,Q,T);f.strokeRect(Math.ceil(G)-.5,Math.ceil(F)-.5,Q,T)}this._bIsPainted=
!0};
V.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
V.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
V.prototype.round=function(D){return D?Math.floor(D*1E3)/1E3:D};
return V}():function(){var V=function(D,f){this.JSC$17536__el=D;
this.JSC$17536__htOption=f};
V.prototype.draw=function(D){for(var f=this.JSC$17536__htOption,n=this.JSC$17536__el,t=D.moduleCount,J=Math.floor(f.width/t),H=Math.floor(f.height/t),Q=['<table style="border:0;border-collapse:collapse;">'],T=0;T<t;T++){Q.push("<tr>");for(var y=0;y<t;y++)Q.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+J+"px;height:"+H+"px;background-color:"+(D.isDark(T,y)?f.colorDark:f.colorLight)+';"></td>');Q.push("</tr>")}Q.push("</table>");D=Q.join("");D=_.C3P(_.Xnl,D);_.$x(n,D);
D=n.childNodes[0];t=(f.width-D.offsetWidth)/2;J=(f.height-D.offsetHeight)/2;t>0&&J>0&&(D.style.margin=J+"px "+t+"px")};
V.prototype.clear=function(){this.JSC$17536__el.textContent=""};
return V}();
RiW.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17539__android||this.JSC$17539__android>=3)&&this._oDrawing.makeImage()};
RiW.prototype.clear=function(){this._oDrawing.clear()};
_.fx.QRCode=RiW;var XEJ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var eX=function(){};
eX.prototype.stringify=function(V){return _.fx.JSON.stringify(V,void 0)};
eX.prototype.parse=function(V){return _.fx.JSON.parse(V,void 0)};var EGq=function(){_.TG.call(this,"z")};
_.fg(EGq,_.TG);var A_R=function(){_.TG.call(this,"y")};
_.fg(A_R,_.TG);var aB3=null,YjB=function(){return aB3=aB3||new _.jT},$QX=function(V){_.TG.call(this,"serverreachability",V)};
_.fg($QX,_.TG);var ch=function(V){var D=YjB();D.dispatchEvent(new $QX(D,V))},inc=function(V){_.TG.call(this,"statevent",V)};
_.fg(inc,_.TG);var Fy=function(V){var D=YjB();D.dispatchEvent(new inc(D,V))},SjW=function(V,D,f,n){_.TG.call(this,"timingevent",V);
this.size=D;this.rtt=f;this.retries=n};
_.fg(SjW,_.TG);var WSq=function(V,D,f){var n=YjB();n.dispatchEvent(new SjW(n,V,D,f))},gp=function(V,D){if(typeof V!=="function")throw Error("Bk");
return _.fx.setTimeout(function(){V()},D)};var vh=function(){this.redactEnabled_=!0};
vh.prototype.disableRedact=function(){this.redactEnabled_=!1};
var pEq=function(V,D,f,n,t,J){V.info(function(){if(V.redactEnabled_)if(J){var H="";for(var Q=J.split("&"),T=0;T<Q.length;T++){var y=Q[T].split("=");if(y.length>1){var Z=y[0];y=y[1];var l=Z.split("_");H=l.length>=2&&l[1]=="type"?H+(Z+"="+y+"&"):H+(Z+"=redacted&")}}}else H=null;else H=J;return"XMLHTTP REQ ("+n+") [attempt "+t+"]: "+D+"\n"+f+"\n"+H})},LSR=function(V,D,f,n,t,J,H){V.info(function(){return"XMLHTTP RESP ("+n+") [ attempt "+t+"]: "+D+"\n"+f+"\n"+J+" "+H})},kW=function(V,D,f,n){V.info(function(){return"XMLHTTP TEXT ("+
D+"): "+IBo(V,f)+(n?" "+n:"")})},Onw=function(V,D){V.info(function(){return"TIMEOUT: "+D})};
vh.prototype.debug=function(){};
vh.prototype.info=function(){};
vh.prototype.warning=function(){};
var IBo=function(V,D){if(!V.redactEnabled_)return D;if(!D)return null;try{var f=JSON.parse(D);if(f)for(var n=0;n<f.length;n++)if(Array.isArray(f[n])){var t=f[n];if(!(t.length<2)){var J=t[1];if(Array.isArray(J)&&!(J.length<1)){var H=J[0];if(H!="noop"&&H!="stop"&&H!="close")for(var Q=1;Q<J.length;Q++)J[Q]=""}}}return(0,_.vT)(f)}catch(T){return V.debug("Exception parsing expected JS array - probably was not JS"),D}};var sx=function(V,D,f,n,t){this.JSC$17561_channel_=V;this.JSC$17561_channelDebug_=D;this.sid_=f;this.JSC$17561_rid_=n;this.JSC$17561_retryId_=t||1;this.JSC$17561_eventHandler_=new _.fl(this);this.timeout_=45E3;this.JSC$17561_extraHeaders_=null;this.JSC$17561_successful_=!1;this.JSC$17561_postData_=this.JSC$17561_requestUri_=this.JSC$17561_baseUri_=this.JSC$17561_type_=this.JSC$17561_requestStartTime_=this.JSC$17561_watchDogTimeoutTime_=this.JSC$17561_watchDogTimerId_=null;this.JSC$17561_pendingMessages_=
[];this.JSC$17561_xmlHttp_=null;this.JSC$17561_xmlHttpChunkStart_=0;this.JSC$17561_lastError_=this.JSC$17561_verb_=null;this.JSC$17561_lastStatusCode_=-1;this.JSC$17561_cancelled_=!1;this.JSC$17561_readyStateChangeThrottleMs_=0;this.JSC$17561_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new xQc},xQc=function(){this.JSC$17563_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Mhq=function(V,D){switch(V){case 0:return"Non-200 return code ("+D+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},hYB={},UQo={};
sx.prototype.setTimeout=function(V){this.timeout_=V};
var DWJ=function(V,D,f){V.JSC$17561_type_=1;V.JSC$17561_baseUri_=_.n$(D.clone());V.JSC$17561_postData_=f;V.decodeChunks_=!0;Vqv(V,null)},Vqv=function(V,D){V.JSC$17561_requestStartTime_=Date.now();
fAw(V);V.JSC$17561_requestUri_=V.JSC$17561_baseUri_.clone();rz(V.JSC$17561_requestUri_,"t",V.JSC$17561_retryId_);V.JSC$17561_xmlHttpChunkStart_=0;var f=V.JSC$17561_channel_.JSC$17580_supportsCrossDomainXhrs_;V.fetchResponseState_=new xQc;V.JSC$17561_xmlHttp_=n9c(V.JSC$17561_channel_,f?D:null,!V.JSC$17561_postData_);V.JSC$17561_readyStateChangeThrottleMs_>0&&(V.JSC$17561_readyStateChangeThrottle_=new _.I7((0,_.F1)(V.JSC$17565_xmlHttpHandler_,V,V.JSC$17561_xmlHttp_),V.JSC$17561_readyStateChangeThrottleMs_));
V.JSC$17561_eventHandler_.listen(V.JSC$17561_xmlHttp_,"readystatechange",V.JSC$17565_readyStateChangeHandler_);D=V.JSC$17561_extraHeaders_?_.sB.clone(V.JSC$17561_extraHeaders_):{};V.JSC$17561_postData_?(V.JSC$17561_verb_||(V.JSC$17561_verb_="POST"),D["Content-Type"]="application/x-www-form-urlencoded",V.JSC$17561_xmlHttp_.send(V.JSC$17561_requestUri_,V.JSC$17561_verb_,V.JSC$17561_postData_,D)):(V.JSC$17561_verb_="GET",V.JSC$17561_xmlHttp_.send(V.JSC$17561_requestUri_,V.JSC$17561_verb_,null,D));ch(1);
pEq(V.JSC$17561_channelDebug_,V.JSC$17561_verb_,V.JSC$17561_requestUri_,V.JSC$17561_rid_,V.JSC$17561_retryId_,V.JSC$17561_postData_)};
sx.prototype.JSC$17565_readyStateChangeHandler_=function(V){V=V.target;var D=this.JSC$17561_readyStateChangeThrottle_;D&&_.s7(V)==3?(this.JSC$17561_channelDebug_.debug("Throttling readystatechange."),D.fire()):this.JSC$17565_xmlHttpHandler_(V)};
sx.prototype.JSC$17565_xmlHttpHandler_=function(V){try{V==this.JSC$17561_xmlHttp_?tqw(this):this.JSC$17561_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(D){this.JSC$17561_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Pyq(this)}finally{}};
var tqw=function(V){var D=_.s7(V.JSC$17561_xmlHttp_),f=V.JSC$17561_xmlHttp_.JSC$7885_lastErrorCode_,n=V.JSC$17561_xmlHttp_.getStatus();if(!(D<3||D==3&&!Pyq(V))){V.JSC$17561_cancelled_||D!=4||f==7||(f==8||n<=0?ch(3):ch(2));o90(V);var t=V.JSC$17561_xmlHttp_.getStatus();V.JSC$17561_lastStatusCode_=t;f=JbX(V);Pyq(V)||V.JSC$17561_channelDebug_.debug(function(){return"No response text for uri "+V.JSC$17561_requestUri_+" status "+t});
V.JSC$17561_successful_=t==200;LSR(V.JSC$17561_channelDebug_,V.JSC$17561_verb_,V.JSC$17561_requestUri_,V.JSC$17561_rid_,V.JSC$17561_retryId_,D,t);if(V.JSC$17561_successful_){if(V.decodeInitialResponse_&&!V.initialResponseDecoded_)if(n=rbo(V))kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,n,"Initial handshake response via X-HTTP-Initial-Response"),V.initialResponseDecoded_=!0,HNB(V,n);else{V.JSC$17561_successful_=!1;V.JSC$17561_lastError_=3;Fy(12);V.JSC$17561_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
V.JSC$17561_rid_+")");Bh(V);dp(V);return}V.decodeChunks_?wyV(V,D,f):(kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,f,null),HNB(V,f));D==4&&Bh(V);V.JSC$17561_successful_&&!V.JSC$17561_cancelled_&&(D==4?QaX(V.JSC$17561_channel_,V):(V.JSC$17561_successful_=!1,fAw(V)))}else UAV(V.JSC$17561_xmlHttp_),t==400&&f.indexOf("Unknown SID")>0?(V.JSC$17561_lastError_=3,Fy(12),V.JSC$17561_channelDebug_.warning("XMLHTTP Unknown SID ("+V.JSC$17561_rid_+")")):(V.JSC$17561_lastError_=0,Fy(13),V.JSC$17561_channelDebug_.warning("XMLHTTP Bad status "+
t+" ("+V.JSC$17561_rid_+")")),Bh(V),dp(V)}},rbo=function(V){return V.JSC$17561_xmlHttp_&&(V=yI(V.JSC$17561_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Hn(V)?V:null},JbX=function(V){if(!ToZ(V))return V.JSC$17561_xmlHttp_.getResponseText();
var D=V.JSC$17561_xmlHttp_.getResponse();if(D==="")return"";var f="",n=D.length,t=_.s7(V.JSC$17561_xmlHttp_)==4;if(!V.fetchResponseState_.JSC$17563_textDecoder){if(typeof TextDecoder==="undefined")return Bh(V),dp(V),"";V.fetchResponseState_.JSC$17563_textDecoder=new _.fx.TextDecoder}for(var J=0;J<n;J++)V.fetchResponseState_.responseArrivedForFetch=!0,f+=V.fetchResponseState_.JSC$17563_textDecoder.decode(D[J],{stream:!(t&&J==n-1)});D.length=0;V.fetchResponseState_.responseBuffer+=f;V.JSC$17561_xmlHttpChunkStart_=
0;return V.fetchResponseState_.responseBuffer},Pyq=function(V){return V.JSC$17561_xmlHttp_?V.fetchResponseState_.responseArrivedForFetch?!0:!(!V.JSC$17561_xmlHttp_.getResponseText()&&!V.JSC$17561_xmlHttp_.getResponse()):!1},ToZ=function(V){return V.JSC$17561_xmlHttp_?V.JSC$17561_verb_=="GET"&&V.JSC$17561_type_!=2&&V.JSC$17561_channel_.usesFetchStreams_:!1},wyV=function(V,D,f){for(var n=!0,t;!V.JSC$17561_cancelled_&&V.JSC$17561_xmlHttpChunkStart_<f.length;)if(t=bNW(V,f),t==UQo){D==4&&(V.JSC$17561_lastError_=
4,Fy(14),n=!1);
kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,null,"[Incomplete Response]");break}else if(t==hYB){V.JSC$17561_lastError_=4;Fy(15);kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,f,"[Invalid Chunk]");n=!1;break}else kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,t,null),HNB(V,t);ToZ(V)&&V.JSC$17561_xmlHttpChunkStart_!=0&&(V.fetchResponseState_.responseBuffer=V.fetchResponseState_.responseBuffer.slice(V.JSC$17561_xmlHttpChunkStart_),V.JSC$17561_xmlHttpChunkStart_=0);D!=4||f.length!=0||V.fetchResponseState_.responseArrivedForFetch||
(V.JSC$17561_lastError_=1,Fy(16),n=!1);V.JSC$17561_successful_=V.JSC$17561_successful_&&n;n?f.length>0&&!V.firstByteReceived_&&(V.firstByteReceived_=!0,D=V.JSC$17561_channel_,D.JSC$17580_backChannelRequest_==V&&D.detectBufferingProxy_&&!D.bpDetectionDone_&&(D.JSC$17580_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+f.length),K4Z(D),D.bpDetectionDone_=!0,Fy(11))):(kW(V.JSC$17561_channelDebug_,V.JSC$17561_rid_,f,"[Invalid Chunked Response]"),Bh(V),dp(V))},bNW=function(V,D){var f=
V.JSC$17561_xmlHttpChunkStart_,n=D.indexOf("\n",f);
if(n==-1)return UQo;f=Number(D.substring(f,n));if(isNaN(f))return hYB;n+=1;if(n+f>D.length)return UQo;D=D.slice(n,n+f);V.JSC$17561_xmlHttpChunkStart_=n+f;return D};
sx.prototype.cancel=function(){this.JSC$17561_cancelled_=!0;Bh(this)};
var fAw=function(V){V.JSC$17561_watchDogTimeoutTime_=Date.now()+V.timeout_;ybc(V,V.timeout_)},ybc=function(V,D){if(V.JSC$17561_watchDogTimerId_!=null)throw Error("Ck");
V.JSC$17561_watchDogTimerId_=gp((0,_.F1)(V.JSC$17565_onWatchDogTimeout_,V),D)},o90=function(V){V.JSC$17561_watchDogTimerId_&&(_.fx.clearTimeout(V.JSC$17561_watchDogTimerId_),V.JSC$17561_watchDogTimerId_=null)};
sx.prototype.JSC$17565_onWatchDogTimeout_=function(){this.JSC$17561_watchDogTimerId_=null;var V=Date.now();V-this.JSC$17561_watchDogTimeoutTime_>=0?(Onw(this.JSC$17561_channelDebug_,this.JSC$17561_requestUri_),this.JSC$17561_type_!=2&&(ch(3),Fy(17)),Bh(this),this.JSC$17561_lastError_=2,dp(this)):(this.JSC$17561_channelDebug_.warning("WatchDog timer called too early"),ybc(this,this.JSC$17561_watchDogTimeoutTime_-V))};
var dp=function(V){V.JSC$17561_channel_.state_==0||V.JSC$17561_cancelled_||QaX(V.JSC$17561_channel_,V)},Bh=function(V){o90(V);
_.Mr(V.JSC$17561_readyStateChangeThrottle_);V.JSC$17561_readyStateChangeThrottle_=null;V.JSC$17561_eventHandler_.removeAll();if(V.JSC$17561_xmlHttp_){var D=V.JSC$17561_xmlHttp_;V.JSC$17561_xmlHttp_=null;D.abort();D.dispose()}};
sx.prototype.getLastError=function(){return this.JSC$17561_lastError_};
var HNB=function(V,D){try{var f=V.JSC$17561_channel_;if(f.state_!=0&&(f.JSC$17580_backChannelRequest_==V||ZNW(f.forwardChannelRequestPool_,V)))if(!V.initialResponseDecoded_&&ZNW(f.forwardChannelRequestPool_,V)&&f.state_==3){try{var n=f.wireCodec_.JSC$17575_parser_.parse(D)}catch(Q){n=null}if(Array.isArray(n)&&n.length==3){D=n;if(D[0]==0)a:if(f.JSC$17580_channelDebug_.debug("Server claims our backchannel is missing."),f.JSC$17580_backChannelTimerId_)f.JSC$17580_channelDebug_.debug("But we are currently starting the request.");
else{if(f.JSC$17580_backChannelRequest_)if(f.JSC$17580_backChannelRequest_.JSC$17561_requestStartTime_+3E3<V.JSC$17561_requestStartTime_)jaR(f),lAw(f);else break a;else f.JSC$17580_channelDebug_.warning("We do not have a BackChannel established");GzV(f);Fy(18)}else{f.JSC$17580_lastPostResponseArrayId_=D[1];var t=f.JSC$17580_lastPostResponseArrayId_-f.JSC$17580_lastArrayId_;if(0<t){var J=D[2];f.JSC$17580_channelDebug_.debug(J+" bytes (in "+t+" arrays) are outstanding on the BackChannel");J<37500&&
f.enableStreaming_&&f.JSC$17580_backChannelRetryCount_==0&&!f.JSC$17580_deadBackChannelTimerId_&&(f.JSC$17580_deadBackChannelTimerId_=gp((0,_.F1)(f.JSC$17582_onBackChannelDead_,f),6E3))}}if(eNw(f.forwardChannelRequestPool_)<=1&&f.forwardChannelFlushedCallback_){try{f.forwardChannelFlushedCallback_()}catch(Q){}f.forwardChannelFlushedCallback_=void 0}}else f.JSC$17580_channelDebug_.debug("Bad POST response data returned"),u0(f,11)}else if((V.initialResponseDecoded_||f.JSC$17580_backChannelRequest_==
V)&&jaR(f),!_.Hn(D)){var H=f.wireCodec_.JSC$17575_parser_.parse(D);f.onInput_(H,V)}ch(4)}catch(Q){}};var cbB=function(V,D){this.JSC$17568_mapId=V;this.map=D;this.context=null};var F4J=function(V){this.maxPoolSizeConfigured_=V||10;_.fx.PerformanceNavigationTiming?(V=_.fx.performance.getEntriesByType("navigation"),V=V.length>0&&(V[0].nextHopProtocol=="hq"||V[0].nextHopProtocol=="h2")):V=!!(_.fx.chrome&&_.fx.chrome.loadTimes&&_.fx.chrome.loadTimes()&&_.fx.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17571_maxSize_=V?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17571_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17571_request_=null;this.JSC$17571_pendingMessages_=
[]},g9Z=function(V){return V.JSC$17571_request_?!0:V.requestPool_?V.requestPool_.size>=V.JSC$17571_maxSize_:!1},eNw=function(V){return V.JSC$17571_request_?1:V.requestPool_?V.requestPool_.size:0},ZNW=function(V,D){return V.JSC$17571_request_?V.JSC$17571_request_==D:V.requestPool_?V.requestPool_.has(D):!1},v9f=function(V,D){V.requestPool_?V.requestPool_.add(D):V.JSC$17571_request_=D},kzZ=function(V,D){V.JSC$17571_request_&&V.JSC$17571_request_==D?V.JSC$17571_request_=null:V.requestPool_&&V.requestPool_.has(D)&&
V.requestPool_.delete(D)};
F4J.prototype.cancel=function(){this.JSC$17571_pendingMessages_=saZ(this);if(this.JSC$17571_request_)this.JSC$17571_request_.cancel(),this.JSC$17571_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var V=_.r(this.requestPool_.values()),D=V.next();!D.done;D=V.next())D.value.cancel();this.requestPool_.clear()}};
var saZ=function(V){if(V.JSC$17571_request_!=null)return V.JSC$17571_pendingMessages_.concat(V.JSC$17571_request_.JSC$17561_pendingMessages_);if(V.requestPool_!=null&&V.requestPool_.size!==0){var D=V.JSC$17571_pendingMessages_;V=_.r(V.requestPool_.values());for(var f=V.next();!f.done;f=V.next())D=D.concat(f.value.JSC$17561_pendingMessages_);return D}return _.Od(V.JSC$17571_pendingMessages_)},Bow=function(V,D){V.JSC$17571_pendingMessages_=V.JSC$17571_pendingMessages_.concat(D)};var dWv=function(V,D){var f=new vh;f.debug("TestLoadImage: loading "+V);if(_.fx.Image){var n=new Image;n.onload=_.lC(Nb,f,"TestLoadImage: loaded",!0,D,n);n.onerror=_.lC(Nb,f,"TestLoadImage: error",!1,D,n);n.onabort=_.lC(Nb,f,"TestLoadImage: abort",!1,D,n);n.ontimeout=_.lC(Nb,f,"TestLoadImage: timeout",!1,D,n);_.fx.setTimeout(function(){if(n.ontimeout)n.ontimeout()},1E4);
n.src=V}else D(!1)},uLf=function(V,D){var f=new vh,n=new AbortController,t=setTimeout(function(){n.abort();
Nb(f,"TestPingServer: timeout",!1,D)},1E4);
fetch(V,{signal:n.signal}).then(function(J){clearTimeout(t);J.ok?Nb(f,"TestPingServer: ok",!0,D):Nb(f,"TestPingServer: server error",!1,D)}).catch(function(){clearTimeout(t);
Nb(f,"TestPingServer: error",!1,D)})},Nb=function(V,D,f,n,t){try{V.debug(D),t&&(t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null),n(f)}catch(J){}};var Noq=function(){this.JSC$17575_parser_=new eX};var mx=function(V,D,f){return f&&f.internalChannelParams?f.internalChannelParams[V]||D:D},zh=function(V){this.serverVersion_=0;
this.JSC$17580_outgoingMaps_=[];this.JSC$17580_channelDebug_=new vh;this.JSC$17580_hostPrefix_=this.JSC$17580_backChannelUri_=this.JSC$17580_forwardChannelUri_=this.JSC$17580_path_=this.JSC$17580_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17580_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17580_extraHeaders_=null;this.JSC$17580_nextMapId_=this.JSC$17580_nextRid_=0;this.JSC$17580_failFast_=mx("failFast",!1,V);this.enableStreaming_=this.JSC$17580_deadBackChannelTimerId_=
this.JSC$17580_backChannelTimerId_=this.JSC$17580_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17580_lastPostResponseArrayId_=this.JSC$17580_lastArrayId_=-1;this.JSC$17580_backChannelAttemptId_=this.JSC$17580_backChannelRetryCount_=this.JSC$17580_forwardChannelRetryCount_=0;this.JSC$17580_baseRetryDelayMs_=mx("baseRetryDelayMs",5E3,V);this.JSC$17580_retryDelaySeedMs_=mx("retryDelaySeedMs",1E4,V);this.JSC$17580_forwardChannelMaxRetries_=
mx("forwardChannelMaxRetries",2,V);this.JSC$17580_forwardChannelRequestTimeoutMs_=mx("forwardChannelRequestTimeoutMs",2E4,V);this.JSC$17580_xmlHttpFactory_=V&&V.xmlHttpFactory||void 0;this.networkTestUrl_=V&&V.networkTestUrl||void 0;this.usesFetchStreams_=V&&V.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17580_supportsCrossDomainXhrs_=V&&V.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new F4J(V&&V.concurrentRequestLimit);this.wireCodec_=new Noq;this.fastHandshake_=
V&&V.fastHandshake||!1;this.encodeInitMessageHeaders_=V&&V.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17580_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=V&&V.blockingHandshake||!1;V&&V.disableRedact&&this.JSC$17580_channelDebug_.disableRedact();V&&V.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
V&&V.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;V&&V.longPollingTimeout&&V.longPollingTimeout>0&&(this.longPollingTimeout_=V.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
zh.prototype.JSC$17582_channelVersion_=8;zh.prototype.state_=1;
zh.prototype.connect=function(V,D,f,n){this.JSC$17580_channelDebug_.debug("connect()");Fy(0);this.JSC$17580_path_=V;this.JSC$17580_extraParams_=D||{};f&&n!==void 0&&(this.JSC$17580_extraParams_.OSID=f,this.JSC$17580_extraParams_.OAID=n);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17580_channelDebug_.debug("connectChannel_()");V=mW0(this,null,this.JSC$17580_path_);this.JSC$17580_channelDebug_.debug("GetForwardChannelUri: "+V);this.JSC$17580_forwardChannelUri_=V;zNJ(this)};
zh.prototype.disconnect=function(){this.JSC$17580_channelDebug_.debug("disconnect()");RNJ(this);if(this.state_==3){var V=this.JSC$17580_nextRid_++,D=this.JSC$17580_forwardChannelUri_.clone();_.iW(D,"SID",this.sid_);_.iW(D,"RID",V);_.iW(D,"TYPE","terminate");Ry(this,D);V=new sx(this,this.JSC$17580_channelDebug_,this.sid_,V);V.JSC$17561_type_=2;V.JSC$17561_baseUri_=_.n$(D.clone());D=!1;if(_.fx.navigator&&_.fx.navigator.sendBeacon)try{D=_.fx.navigator.sendBeacon(V.JSC$17561_baseUri_.toString(),"")}catch(f){}!D&&
_.fx.Image&&((new Image).src=V.JSC$17561_baseUri_,D=!0);D||(V.JSC$17561_xmlHttp_=n9c(V.JSC$17561_channel_,null),V.JSC$17561_xmlHttp_.send(V.JSC$17561_baseUri_));V.JSC$17561_requestStartTime_=Date.now();fAw(V)}CyB(this)};
var lAw=function(V){V.JSC$17580_backChannelRequest_&&(K4Z(V),V.JSC$17580_backChannelRequest_.cancel(),V.JSC$17580_backChannelRequest_=null)},RNJ=function(V){lAw(V);
V.JSC$17580_backChannelTimerId_&&(_.fx.clearTimeout(V.JSC$17580_backChannelTimerId_),V.JSC$17580_backChannelTimerId_=null);jaR(V);V.forwardChannelRequestPool_.cancel();V.JSC$17580_forwardChannelTimerId_&&(typeof V.JSC$17580_forwardChannelTimerId_==="number"&&_.fx.clearTimeout(V.JSC$17580_forwardChannelTimerId_),V.JSC$17580_forwardChannelTimerId_=null)};
zh.prototype.getState=function(){return this.state_};
var zNJ=function(V){g9Z(V.forwardChannelRequestPool_)||V.JSC$17580_forwardChannelTimerId_||(V.JSC$17580_forwardChannelTimerId_=!0,_.GG(V.JSC$17582_onStartForwardChannelTimer_,V),V.JSC$17580_forwardChannelRetryCount_=0)},XyW=function(V,D){if(eNw(V.forwardChannelRequestPool_)>=V.forwardChannelRequestPool_.JSC$17571_maxSize_-(V.JSC$17580_forwardChannelTimerId_?1:0))return!1;
if(V.JSC$17580_forwardChannelTimerId_)return V.JSC$17580_channelDebug_.debug("Use the retry request that is already scheduled."),V.JSC$17580_outgoingMaps_=D.JSC$17561_pendingMessages_.concat(V.JSC$17580_outgoingMaps_),!0;if(V.state_==1||V.state_==2||V.JSC$17580_forwardChannelRetryCount_>=(V.JSC$17580_failFast_?0:V.JSC$17580_forwardChannelMaxRetries_))return!1;V.JSC$17580_channelDebug_.debug("Going to retry POST");V.JSC$17580_forwardChannelTimerId_=gp((0,_.F1)(V.JSC$17582_onStartForwardChannelTimer_,
V,D),qD3(V,V.JSC$17580_forwardChannelRetryCount_));V.JSC$17580_forwardChannelRetryCount_++;return!0};
zh.prototype.JSC$17582_onStartForwardChannelTimer_=function(V){if(this.JSC$17580_forwardChannelTimerId_)if(this.JSC$17580_forwardChannelTimerId_=null,this.JSC$17580_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!V){this.JSC$17580_channelDebug_.debug("open_()");this.JSC$17580_nextRid_=Math.floor(Math.random()*1E5);V=this.JSC$17580_nextRid_++;var D=new sx(this,this.JSC$17580_channelDebug_,"",V),f=this.JSC$17580_extraHeaders_;this.initHeaders_&&(f?(f=_.sB.clone(f),_.sB.extend(f,this.initHeaders_)):
f=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(D.JSC$17561_extraHeaders_=f,f=null);var n;if(this.fastHandshake_)a:{for(var t=n=0;t<this.JSC$17580_outgoingMaps_.length;t++){b:{var J=this.JSC$17580_outgoingMaps_[t];if("__data__"in J.map&&(J=J.map.__data__,typeof J==="string")){J=J.length;break b}J=void 0}if(J===void 0)break;n+=J;if(n>4096){n=t;break a}if(n===4096||t===this.JSC$17580_outgoingMaps_.length-1){n=t+1;break a}}n=1E3}else n=1E3;n=E9J(this,D,n);
t=this.JSC$17580_forwardChannelUri_.clone();_.iW(t,"RID",V);_.iW(t,"CVER",22);this.httpSessionIdParam_&&_.iW(t,"X-HTTP-Session-Id",this.httpSessionIdParam_);Ry(this,t);f&&(this.encodeInitMessageHeaders_?n="headers="+_.ia(bL3(f))+"&"+n:this.httpHeadersOverwriteParam_&&KDR(t,this.httpHeadersOverwriteParam_,f));v9f(this.forwardChannelRequestPool_,D);this.blockingHandshake_&&_.iW(t,"TYPE","init");this.fastHandshake_?(_.iW(t,"$req",n),_.iW(t,"SID","null"),D.decodeInitialResponse_=!0,DWJ(D,t,null)):DWJ(D,
t,n);this.state_=2}}else this.state_==3&&(V?Ab3(this,V):this.JSC$17580_outgoingMaps_.length==0?this.JSC$17580_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):g9Z(this.forwardChannelRequestPool_)||(Ab3(this),this.JSC$17580_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Ab3=function(V,D){var f;D?f=D.JSC$17561_rid_:f=V.JSC$17580_nextRid_++;var n=V.JSC$17580_forwardChannelUri_.clone();_.iW(n,"SID",V.sid_);_.iW(n,"RID",f);_.iW(n,"AID",V.JSC$17580_lastArrayId_);Ry(V,n);V.httpHeadersOverwriteParam_&&V.JSC$17580_extraHeaders_&&KDR(n,V.httpHeadersOverwriteParam_,V.JSC$17580_extraHeaders_);f=new sx(V,V.JSC$17580_channelDebug_,V.sid_,f,V.JSC$17580_forwardChannelRetryCount_+1);V.httpHeadersOverwriteParam_===null&&(f.JSC$17561_extraHeaders_=V.JSC$17580_extraHeaders_);D&&
(V.JSC$17580_outgoingMaps_=D.JSC$17561_pendingMessages_.concat(V.JSC$17580_outgoingMaps_));D=E9J(V,f,1E3);f.setTimeout(Math.round(V.JSC$17580_forwardChannelRequestTimeoutMs_*.5)+Math.round(V.JSC$17580_forwardChannelRequestTimeoutMs_*.5*Math.random()));v9f(V.forwardChannelRequestPool_,f);DWJ(f,n,D)},Ry=function(V,D){V.JSC$17580_extraParams_&&_.sB.forEach(V.JSC$17580_extraParams_,function(f,n){_.iW(D,n,f)});
V.handler_&&_.sB.forEach({},function(f,n){_.iW(D,n,f)})},E9J=function(V,D,f){f=Math.min(V.JSC$17580_outgoingMaps_.length,f);
var n=V.handler_?(0,_.F1)(V.handler_.JSC$17586_badMapError,V.handler_,V):null;a:{for(var t=V.JSC$17580_outgoingMaps_,J=-1;;){var H=["count="+f];J==-1?f>0?(J=t[0].JSC$17568_mapId,H.push("ofs="+J)):J=0:H.push("ofs="+J);for(var Q=!0,T=0;T<f;T++){var y=t[T].JSC$17568_mapId,Z=t[T].map;y-=J;if(y<0)J=Math.max(0,t[T].JSC$17568_mapId-100),Q=!1;else try{y="req"+y+"_"||"";try{var l=Z instanceof Map?Z:Object.entries(Z);for(var G=_.r(l),F=G.next();!F.done;F=G.next()){var k=_.r(F.value),d=k.next().value,z=k.next().value,
C=z;_.VV(z)&&(C=(0,_.vT)(z));H.push(y+d+"="+encodeURIComponent(C))}}catch(A){throw H.push(y+"type="+encodeURIComponent("_badmap")),A;}}catch(A){n&&n(Z)}}if(Q){l=H.join("&");break a}}l=void 0}V=V.JSC$17580_outgoingMaps_.splice(0,f);D.JSC$17561_pendingMessages_=V;return l},aAc=function(V){V.JSC$17580_backChannelRequest_||V.JSC$17580_backChannelTimerId_||(V.JSC$17580_backChannelAttemptId_=1,_.GG(V.JSC$17582_onStartBackChannelTimer_,V),V.JSC$17580_backChannelRetryCount_=0)},GzV=function(V){if(V.JSC$17580_backChannelRequest_||
V.JSC$17580_backChannelTimerId_||V.JSC$17580_backChannelRetryCount_>=3)return!1;
V.JSC$17580_channelDebug_.debug("Going to retry GET");V.JSC$17580_backChannelAttemptId_++;V.JSC$17580_backChannelTimerId_=gp((0,_.F1)(V.JSC$17582_onStartBackChannelTimer_,V),qD3(V,V.JSC$17580_backChannelRetryCount_));V.JSC$17580_backChannelRetryCount_++;return!0};
zh.prototype.JSC$17582_onStartBackChannelTimer_=function(){this.JSC$17580_backChannelTimerId_=null;YDB(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17580_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17580_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17580_backChannelRequest_+" "+this.handshakeRttMs_);else{var V=4*this.handshakeRttMs_;this.JSC$17580_channelDebug_.info("BP detection timer enabled: "+V);this.bpDetectionTimerId_=gp((0,_.F1)(this.onBpDetectionTimer_,
this),V)}};
zh.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17580_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17580_backChannelRequest_.JSC$17561_xmlHttp_!=null){var V=this.JSC$17580_backChannelRequest_.JSC$17561_xmlHttp_.getResponseText();V&&this.JSC$17580_channelDebug_.warning("Timer should have been cancelled : "+V)}this.JSC$17580_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Fy(10);lAw(this);YDB(this)}else this.JSC$17580_channelDebug_.warning("Invalid operation.")};
var K4Z=function(V){V.bpDetectionTimerId_!=null&&(V.JSC$17580_channelDebug_.debug("Cancel the BP detection timer."),_.fx.clearTimeout(V.bpDetectionTimerId_),V.bpDetectionTimerId_=null)},YDB=function(V){V.JSC$17580_channelDebug_.debug("Creating new HttpRequest");
V.JSC$17580_backChannelRequest_=new sx(V,V.JSC$17580_channelDebug_,V.sid_,"rpc",V.JSC$17580_backChannelAttemptId_);V.httpHeadersOverwriteParam_===null&&(V.JSC$17580_backChannelRequest_.JSC$17561_extraHeaders_=V.JSC$17580_extraHeaders_);V.JSC$17580_backChannelRequest_.JSC$17561_readyStateChangeThrottleMs_=0;var D=V.JSC$17580_backChannelUri_.clone();_.iW(D,"RID","rpc");_.iW(D,"SID",V.sid_);_.iW(D,"AID",V.JSC$17580_lastArrayId_);_.iW(D,"CI",V.enableStreaming_?"0":"1");!V.enableStreaming_&&V.longPollingTimeout_&&
_.iW(D,"TO",V.longPollingTimeout_);_.iW(D,"TYPE","xmlhttp");Ry(V,D);V.httpHeadersOverwriteParam_&&V.JSC$17580_extraHeaders_&&KDR(D,V.httpHeadersOverwriteParam_,V.JSC$17580_extraHeaders_);V.backChannelRequestTimeoutMs_&&V.JSC$17580_backChannelRequest_.setTimeout(V.backChannelRequestTimeoutMs_);var f=V.JSC$17580_backChannelRequest_,n=V.JSC$17580_hostPrefix_;f.JSC$17561_type_=1;f.JSC$17561_baseUri_=_.n$(D.clone());f.JSC$17561_postData_=null;f.decodeChunks_=!0;Vqv(f,n);V.JSC$17580_channelDebug_.debug("New Request created")};
zh.prototype.JSC$17582_onBackChannelDead_=function(){this.JSC$17580_deadBackChannelTimerId_!=null&&(this.JSC$17580_deadBackChannelTimerId_=null,lAw(this),GzV(this),Fy(19))};
var jaR=function(V){V.JSC$17580_deadBackChannelTimerId_!=null&&(_.fx.clearTimeout(V.JSC$17580_deadBackChannelTimerId_),V.JSC$17580_deadBackChannelTimerId_=null)},QaX=function(V,D){V.JSC$17580_channelDebug_.debug("Request complete");
var f=null;if(V.JSC$17580_backChannelRequest_==D){jaR(V);K4Z(V);V.JSC$17580_backChannelRequest_=null;var n=2}else if(ZNW(V.forwardChannelRequestPool_,D))f=D.JSC$17561_pendingMessages_,kzZ(V.forwardChannelRequestPool_,D),n=1;else return;if(V.state_!=0)if(D.JSC$17561_successful_)n==1?(WSq(D.JSC$17561_postData_?D.JSC$17561_postData_.length:0,Date.now()-D.JSC$17561_requestStartTime_,V.JSC$17580_forwardChannelRetryCount_),zNJ(V)):aAc(V);else{var t=D.JSC$17561_lastStatusCode_,J=D.getLastError();if(J==3||
J==0&&t>0)V.JSC$17580_channelDebug_.debug("Not retrying due to error type"),t>200&&(V.errorResponseStatusCode_=D.JSC$17561_lastStatusCode_);else{V.JSC$17580_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Mhq(J,V.errorResponseStatusCode_)});
if(n==1&&XyW(V,D)||n==2&&GzV(V))return;V.JSC$17580_channelDebug_.debug("Exceeded max number of retries")}f&&f.length>0&&Bow(V.forwardChannelRequestPool_,f);V.JSC$17580_channelDebug_.debug("Error: HTTP request failed");switch(J){case 1:u0(V,5);break;case 4:u0(V,10);break;case 3:u0(V,6);break;default:u0(V,2)}}},qD3=function(V,D){var f=V.JSC$17580_baseRetryDelayMs_+Math.floor(Math.random()*V.JSC$17580_retryDelaySeedMs_);
V.isActive()||(V.JSC$17580_channelDebug_.debug("Inactive channel"),f*=2);return f*D};
zh.prototype.onInput_=function(V,D){for(var f=0;f<V.length;f++){var n=V[f];this.JSC$17580_lastArrayId_=n[0];n=n[1];if(this.state_==2)if(n[0]=="c"){this.sid_=n[1];this.JSC$17580_hostPrefix_=n[2];var t=n[3];t!=null&&(this.JSC$17582_channelVersion_=t,this.JSC$17580_channelDebug_.info("VER="+this.JSC$17582_channelVersion_));t=n[4];t!=null&&(this.serverVersion_=t,this.JSC$17580_channelDebug_.info("SVER="+this.serverVersion_));n=n[5];n!=null&&typeof n==="number"&&n>0&&(this.backChannelRequestTimeoutMs_=
n*=1.5,this.JSC$17580_channelDebug_.info("backChannelRequestTimeoutMs_="+n));if(n=D.JSC$17561_xmlHttp_){var J=yI(n,"X-Client-Wire-Protocol");J&&(t=this.forwardChannelRequestPool_,!t.requestPool_&&(_.QY(J,"spdy")||_.QY(J,"quic")||_.QY(J,"h2"))&&(t.JSC$17571_maxSize_=t.maxPoolSizeConfigured_,t.requestPool_=new Set,t.JSC$17571_request_&&(v9f(t,t.JSC$17571_request_),t.JSC$17571_request_=null)));this.httpSessionIdParam_&&((n=yI(n,"X-HTTP-Session-Id"))?(this.httpSessionId_=n,_.iW(this.JSC$17580_forwardChannelUri_,
this.httpSessionIdParam_,n)):this.JSC$17580_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17586_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-D.JSC$17561_requestStartTime_,this.JSC$17580_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));n=D;t=mW0(this,this.JSC$17580_supportsCrossDomainXhrs_?this.JSC$17580_hostPrefix_:null,this.JSC$17580_path_);this.JSC$17580_channelDebug_.debug("GetBackChannelUri: "+
t);this.JSC$17580_backChannelUri_=t;n.initialResponseDecoded_?(this.JSC$17580_channelDebug_.debug("Upgrade the handshake request to a backchannel."),kzZ(this.forwardChannelRequestPool_,n),t=n,(J=this.backChannelRequestTimeoutMs_)&&t.setTimeout(J),t.JSC$17561_watchDogTimerId_&&(o90(t),fAw(t)),this.JSC$17580_backChannelRequest_=n):aAc(this);this.JSC$17580_outgoingMaps_.length>0&&zNJ(this)}else n[0]!="stop"&&n[0]!="close"||u0(this,7);else this.state_==3&&(n[0]=="stop"||n[0]=="close"?n[0]=="stop"?u0(this,
7):this.disconnect():n[0]!="noop"&&this.handler_&&this.handler_.JSC$17586_channelHandleArray(n),this.JSC$17580_backChannelRetryCount_=0)}};
var u0=function(V,D){V.JSC$17580_channelDebug_.info("Error code "+D);if(D==2){var f=(0,_.F1)(V.testNetworkCallback_,V),n=V.networkTestUrl_,t=!n;n=new _.Ll(n||"//www.google.com/images/cleardot.gif");_.fx.location&&_.fx.location.protocol=="http"||_.Ii(n,"https");_.n$(n);t?dWv(n.toString(),f):uLf(n.toString(),f)}else Fy(2);V.onError_(D)};
zh.prototype.testNetworkCallback_=function(V){V?(this.JSC$17580_channelDebug_.info("Successfully pinged google.com"),Fy(2)):(this.JSC$17580_channelDebug_.info("Failed to ping google.com"),Fy(1))};
zh.prototype.onError_=function(V){this.JSC$17580_channelDebug_.debug("HttpChannel: error - "+V);this.state_=0;this.handler_&&this.handler_.JSC$17586_channelError(V);CyB(this);RNJ(this)};
var CyB=function(V){V.state_=0;V.nonAckedMapsAtChannelClose_=[];if(V.handler_){var D=saZ(V.forwardChannelRequestPool_);if(D.length!=0||V.JSC$17580_outgoingMaps_.length!=0)V.JSC$17580_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+D.length+", outgoing: "+V.JSC$17580_outgoingMaps_.length}),_.hc(V.nonAckedMapsAtChannelClose_,D),_.hc(V.nonAckedMapsAtChannelClose_,V.JSC$17580_outgoingMaps_),V.forwardChannelRequestPool_.JSC$17571_pendingMessages_.length=0,_.Od(V.JSC$17580_outgoingMaps_),
V.JSC$17580_outgoingMaps_.length=0;
V.handler_.JSC$17586_channelClosed()}},$WR=function(V){if(V.state_==0)return V.nonAckedMapsAtChannelClose_;
var D=[];_.hc(D,saZ(V.forwardChannelRequestPool_));_.hc(D,V.JSC$17580_outgoingMaps_);return D},mW0=function(V,D,f){var n=_.Y4(f);
n.JSC$8122_domain_!=""?(D&&_.O7(n,D+"."+n.JSC$8122_domain_),_.xq(n,n.JSC$8122_port_)):(n=_.fx.location,n=Ds0(n.protocol,D?D+"."+n.hostname:n.hostname,+n.port,f));D=V.httpSessionIdParam_;f=V.httpSessionId_;D&&f&&_.iW(n,D,f);_.iW(n,"VER",V.JSC$17582_channelVersion_);Ry(V,n);return n},n9c=function(V,D,f){if(D&&!V.JSC$17580_supportsCrossDomainXhrs_)throw Error("Dk");
D=V.usesFetchStreams_&&!V.JSC$17580_xmlHttpFactory_?new _.kq(new RL({streamBinaryChunks:f})):new _.kq(V.JSC$17580_xmlHttpFactory_);D.JSC$7885_withCredentials_=V.JSC$17580_supportsCrossDomainXhrs_;return D};
zh.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var iNX=function(){};
_.P=iNX.prototype;_.P.JSC$17586_channelOpened=function(){};
_.P.JSC$17586_channelHandleArray=function(){};
_.P.JSC$17586_channelError=function(){};
_.P.JSC$17586_channelClosed=function(){};
_.P.isActive=function(){return!0};
_.P.JSC$17586_badMapError=function(){};var SD3=function(){},qb=function(V,D){_.jT.call(this);
this.JSC$17589_channel_=new zh(D);this.JSC$17589_url_=V;this.messageUrlParams_=D&&D.messageUrlParams||null;V=D&&D.messageHeaders||null;D&&D.clientProtocolHeaderRequired&&(V?_.sB.set(V,"X-Client-Protocol","webchannel"):V=_.sB.create("X-Client-Protocol","webchannel"));this.JSC$17589_channel_.JSC$17580_extraHeaders_=V;V=D&&D.initMessageHeaders||null;D&&D.messageContentType&&(V?_.sB.set(V,"X-WebChannel-Content-Type",D.messageContentType):V=_.sB.create("X-WebChannel-Content-Type",D.messageContentType));
D&&D.clientProfile&&(V?_.sB.set(V,"X-WebChannel-Client-Profile",D.clientProfile):V=_.sB.create("X-WebChannel-Client-Profile",D.clientProfile));this.JSC$17589_channel_.initHeaders_=V;(V=D&&D.httpHeadersOverwriteParam)&&!_.Hn(V)&&(this.JSC$17589_channel_.httpHeadersOverwriteParam_=V);this.supportsCrossDomainXhr_=D&&D.supportsCrossDomainXhr||!1;this.sendRawJson_=D&&D.sendRawJson||!1;(D=D&&D.httpSessionIdParam)&&!_.Hn(D)&&(this.JSC$17589_channel_.httpSessionIdParam_=D,_.sB.containsKey(this.messageUrlParams_,
D)&&_.sB.remove(this.messageUrlParams_,D));this.channelHandler_=new Cd(this)};
_.fg(qb,_.jT);qb.prototype.open=function(){this.JSC$17589_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17589_channel_.JSC$17580_supportsCrossDomainXhrs_=!0);this.JSC$17589_channel_.connect(this.JSC$17589_url_,this.messageUrlParams_||void 0)};
qb.prototype.close=function(){this.JSC$17589_channel_.disconnect()};
qb.prototype.send=function(V){var D=this.JSC$17589_channel_;if(typeof V==="string"){var f={};f.__data__=V;V=f}else this.sendRawJson_&&(f={},f.__data__=(0,_.vT)(V),V=f);D.JSC$17580_outgoingMaps_.push(new cbB(D.JSC$17580_nextMapId_++,V));D.state_==3&&zNJ(D)};
qb.prototype.disposeInternal=function(){this.JSC$17589_channel_.handler_=null;delete this.channelHandler_;this.JSC$17589_channel_.disconnect();delete this.JSC$17589_channel_;qb.superClass_.disposeInternal.call(this)};
var W4W=function(V){EGq.call(this);V.__headers__&&(this.headers=V.__headers__,this.statusCode=V.__status__,delete V.__headers__,delete V.__status__);var D=V.__sm__;D?this.data=(this.metadataKey=_.sB.getAnyKey(D))?_.sB.get(D,this.metadataKey):D:this.data=V};
_.fg(W4W,EGq);var pyw=function(V){A_R.call(this);this.status=1;this.errorCode=V};
_.fg(pyw,A_R);var Cd=function(V){this.JSC$17596_channel_=V};
_.fg(Cd,iNX);Cd.prototype.JSC$17586_channelOpened=function(){this.JSC$17596_channel_.dispatchEvent("w")};
Cd.prototype.JSC$17586_channelHandleArray=function(V){this.JSC$17596_channel_.dispatchEvent(new W4W(V))};
Cd.prototype.JSC$17586_channelError=function(V){this.JSC$17596_channel_.dispatchEvent(new pyw(V))};
Cd.prototype.JSC$17586_channelClosed=function(){this.JSC$17596_channel_.dispatchEvent("x")};
var L4B=function(V,D){this.transportChannel_=V;this.JSC$17599_channel_=D},IAV=function(V){return $WR(V.JSC$17599_channel_).map(function(D){var f=V.transportChannel_;
D=D.map;"__data__"in D?(D=D.__data__,f=f.sendRawJson_?(0,_.utp)(D):D):f=D;return f})};var Xy=function(V){ONW.dispatchEvent(new xWo(ONW,V))},ONW=new _.jT,xWo=function(V){_.TG.call(this,"statevent",V)};
_.v(xWo,_.TG);var Ex=function(V,D,f,n,t){this.JSC$17604_channel_=V;this.JSC$17604_channelDebug_=D;this.sid_=f;this.JSC$17604_rid_=n;this.JSC$17604_retryId_=t||1;this.timeout_=45E3;this.JSC$17604_eventHandler_=new _.fl(this);this.pollingTimer_=new _.Dk;this.pollingTimer_.setInterval(250)};
_.P=Ex.prototype;_.P.JSC$17606_extraHeaders_=null;_.P.JSC$17606_successful_=!1;_.P.JSC$17606_watchDogTimerId_=null;_.P.JSC$17606_watchDogTimeoutTime_=null;_.P.JSC$17606_requestStartTime_=null;_.P.JSC$17606_type_=null;_.P.JSC$17606_baseUri_=null;_.P.JSC$17606_requestUri_=null;_.P.JSC$17606_postData_=null;_.P.JSC$17606_xmlHttp_=null;_.P.JSC$17606_xmlHttpChunkStart_=0;_.P.trident_=null;_.P.JSC$17606_verb_=null;_.P.JSC$17606_lastError_=null;_.P.JSC$17606_lastStatusCode_=-1;_.P.sendClose_=!0;
_.P.JSC$17606_cancelled_=!1;_.P.JSC$17606_readyStateChangeThrottleMs_=0;_.P.JSC$17606_readyStateChangeThrottle_=null;var Mqv=function(V,D){switch(V){case 0:return"Non-200 return code ("+D+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},hNw={},UWV={};
Ex.prototype.setTimeout=function(V){this.timeout_=V};
var DHw=function(V,D,f){V.JSC$17606_type_=1;V.JSC$17606_baseUri_=_.n$(D.clone());V.JSC$17606_postData_=f;V.decodeChunks_=!0;VaX(V,null)},f7X=function(V,D,f,n,t){V.JSC$17606_type_=1;
V.JSC$17606_baseUri_=_.n$(D.clone());V.JSC$17606_postData_=null;V.decodeChunks_=f;t&&(V.sendClose_=!1);VaX(V,n)},VaX=function(V,D){V.JSC$17606_requestStartTime_=Date.now();
n0X(V);V.JSC$17606_requestUri_=V.JSC$17606_baseUri_.clone();rz(V.JSC$17606_requestUri_,"t",V.JSC$17604_retryId_);V.JSC$17606_xmlHttpChunkStart_=0;V.JSC$17606_xmlHttp_=V.JSC$17604_channel_.JSC$17613_createXhrIo(V.JSC$17604_channel_.JSC$17613_shouldUseSecondaryDomains()?D:null);V.JSC$17606_readyStateChangeThrottleMs_>0&&(V.JSC$17606_readyStateChangeThrottle_=new _.I7((0,_.F1)(V.JSC$17606_xmlHttpHandler_,V,V.JSC$17606_xmlHttp_),V.JSC$17606_readyStateChangeThrottleMs_));V.JSC$17604_eventHandler_.listen(V.JSC$17606_xmlHttp_,
"readystatechange",V.JSC$17606_readyStateChangeHandler_);D=V.JSC$17606_extraHeaders_?_.sB.clone(V.JSC$17606_extraHeaders_):{};V.JSC$17606_postData_?(V.JSC$17606_verb_="POST",D["Content-Type"]="application/x-www-form-urlencoded",V.JSC$17606_xmlHttp_.send(V.JSC$17606_requestUri_,V.JSC$17606_verb_,V.JSC$17606_postData_,D)):(V.JSC$17606_verb_="GET",V.sendClose_&&!_.Hb&&(D.Connection="close"),V.JSC$17606_xmlHttp_.send(V.JSC$17606_requestUri_,V.JSC$17606_verb_,null,D));V.JSC$17604_channel_.notifyServerReachabilityEvent(1);
D=V.JSC$17604_channelDebug_;var f=V.JSC$17606_postData_;if(f){var n="";f=f.split("&");for(var t=0;t<f.length;t++){var J=f[t].split("=");if(J.length>1){var H=J[0];J=J[1];var Q=H.split("_");n=Q.length>=2&&Q[1]=="type"?n+(H+"="+J+"&"):n+(H+"=redacted&")}}}else n=null;D.info("XMLHTTP REQ ("+V.JSC$17604_rid_+") [attempt "+V.JSC$17604_retryId_+"]: "+V.JSC$17606_verb_+"\n"+V.JSC$17606_requestUri_+"\n"+n)};
Ex.prototype.JSC$17606_readyStateChangeHandler_=function(V){V=V.target;var D=this.JSC$17606_readyStateChangeThrottle_;D&&_.s7(V)==3?(this.JSC$17604_channelDebug_.debug("Throttling readystatechange."),D.fire()):this.JSC$17606_xmlHttpHandler_(V)};
Ex.prototype.JSC$17606_xmlHttpHandler_=function(V){try{if(V==this.JSC$17606_xmlHttp_)a:{var D=_.s7(this.JSC$17606_xmlHttp_),f=this.JSC$17606_xmlHttp_.JSC$7885_lastErrorCode_,n=this.JSC$17606_xmlHttp_.getStatus();if(_.Hb&&!_.wf("420+")){if(D<4)break a}else if(D<3||D==3&&!this.JSC$17606_xmlHttp_.getResponseText())break a;this.JSC$17606_cancelled_||D!=4||f==7||(f==8||n<=0?this.JSC$17604_channel_.notifyServerReachabilityEvent(3):this.JSC$17604_channel_.notifyServerReachabilityEvent(2));taq(this);var t=
this.JSC$17606_xmlHttp_.getStatus();this.JSC$17606_lastStatusCode_=t;var J=this.JSC$17606_xmlHttp_.getResponseText();J||this.JSC$17604_channelDebug_.debug("No response text for uri "+this.JSC$17606_requestUri_+" status "+t);this.JSC$17606_successful_=t==200;this.JSC$17604_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17604_rid_+") [ attempt "+this.JSC$17604_retryId_+"]: "+this.JSC$17606_verb_+"\n"+this.JSC$17606_requestUri_+"\n"+D+" "+t);if(this.JSC$17606_successful_){D==4&&A1(this);if(this.decodeChunks_){for(V=
!0;!this.JSC$17606_cancelled_&&this.JSC$17606_xmlHttpChunkStart_<J.length;){var H=PH0(this,J);if(H==UWV){D==4&&(this.JSC$17606_lastError_=4,Xy(15),V=!1);ay(this.JSC$17604_channelDebug_,this.JSC$17604_rid_,null,"[Incomplete Response]");break}else if(H==hNw){this.JSC$17606_lastError_=4;Xy(16);ay(this.JSC$17604_channelDebug_,this.JSC$17604_rid_,J,"[Invalid Chunk]");V=!1;break}else ay(this.JSC$17604_channelDebug_,this.JSC$17604_rid_,H,null),o0Z(this,H)}D==4&&J.length==0&&(this.JSC$17606_lastError_=1,
Xy(17),V=!1);this.JSC$17606_successful_=this.JSC$17606_successful_&&V;V||(ay(this.JSC$17604_channelDebug_,this.JSC$17604_rid_,J,"[Invalid Chunked Response]"),A1(this),JVc(this))}else ay(this.JSC$17604_channelDebug_,this.JSC$17604_rid_,J,null),o0Z(this,J);this.JSC$17606_successful_&&!this.JSC$17606_cancelled_&&(D==4?this.JSC$17604_channel_.JSC$17613_onRequestComplete(this):(this.JSC$17606_successful_=!1,n0X(this)))}else t==400&&J.indexOf("Unknown SID")>0?(this.JSC$17606_lastError_=3,Xy(13),this.JSC$17604_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17604_rid_+")")):(this.JSC$17606_lastError_=0,Xy(14),this.JSC$17604_channelDebug_.warning("XMLHTTP Bad status "+t+" ("+this.JSC$17604_rid_+")")),A1(this),JVc(this)}else this.JSC$17604_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Q){this.JSC$17604_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var PH0=function(V,D){var f=V.JSC$17606_xmlHttpChunkStart_,n=D.indexOf("\n",f);if(n==-1)return UWV;f=Number(D.substring(f,n));if(isNaN(f))return hNw;n+=1;if(n+f>D.length)return UWV;D=D.slice(n,n+f);V.JSC$17606_xmlHttpChunkStart_=n+f;return D};
Ex.prototype.cancel=function(){this.JSC$17606_cancelled_=!0;A1(this)};
var n0X=function(V){V.JSC$17606_watchDogTimeoutTime_=Date.now()+V.timeout_;rVc(V,V.timeout_)},rVc=function(V,D){if(V.JSC$17606_watchDogTimerId_!=null)throw Error("Ck");
V.JSC$17606_watchDogTimerId_=Ba((0,_.F1)(V.JSC$17606_onWatchDogTimeout_,V),D)},taq=function(V){V.JSC$17606_watchDogTimerId_&&(_.fx.clearTimeout(V.JSC$17606_watchDogTimerId_),V.JSC$17606_watchDogTimerId_=null)};
Ex.prototype.JSC$17606_onWatchDogTimeout_=function(){this.JSC$17606_watchDogTimerId_=null;var V=Date.now();V-this.JSC$17606_watchDogTimeoutTime_>=0?(this.JSC$17604_channelDebug_.info("TIMEOUT: "+this.JSC$17606_requestUri_),this.JSC$17606_type_!=2&&this.JSC$17604_channel_.notifyServerReachabilityEvent(3),A1(this),this.JSC$17606_lastError_=2,Xy(18),JVc(this)):(this.JSC$17604_channelDebug_.warning("WatchDog timer called too early"),rVc(this,this.JSC$17606_watchDogTimeoutTime_-V))};
var JVc=function(V){V.JSC$17604_channel_.JSC$17613_isClosed()||V.JSC$17606_cancelled_||V.JSC$17604_channel_.JSC$17613_onRequestComplete(V)},A1=function(V){taq(V);
_.Mr(V.JSC$17606_readyStateChangeThrottle_);V.JSC$17606_readyStateChangeThrottle_=null;V.pollingTimer_.stop();V.JSC$17604_eventHandler_.removeAll();if(V.JSC$17606_xmlHttp_){var D=V.JSC$17606_xmlHttp_;V.JSC$17606_xmlHttp_=null;D.abort();D.dispose()}V.trident_&&(V.trident_=null)};
Ex.prototype.getLastError=function(){return this.JSC$17606_lastError_};
var o0Z=function(V,D){try{V.JSC$17604_channel_.JSC$17613_onRequestData(V,D),V.JSC$17604_channel_.notifyServerReachabilityEvent(4)}catch(f){}};var ay=function(V,D,f,n){var t=V.info;a:if(f&&f!="y2f%"){try{var J=JSON.parse(f);if(J)for(var H=0;H<J.length;H++)if(Array.isArray(J[H])){var Q=J[H];if(!(Q.length<2)){var T=Q[1];if(Array.isArray(T)&&!(T.length<1)){var y=T[0];if(y!="noop"&&y!="stop")for(var Z=1;Z<T.length;Z++)T[Z]=""}}}var l=(0,_.vT)(J);break a}catch(G){V.debug("Exception parsing expected JS array - probably was not JS");l=f;break a}l=void 0}else l=f;t.call(V,"XMLHTTP TEXT ("+D+"): "+l+(n?" "+n:""))};
dB.prototype.debug=function(V){this.info(V)};
dB.prototype.info=function(){};
dB.prototype.warning=function(){};var HfX=function(V,D){this.JSC$17611_channel_=V;this.JSC$17611_channelDebug_=D;this.JSC$17611_parser_=new eX};
_.P=HfX.prototype;_.P.JSC$17613_extraHeaders_=null;_.P.JSC$17613_request_=null;_.P.receivedIntermediateResult_=!1;_.P.JSC$17613_path_=null;_.P.state_=null;_.P.JSC$17613_lastStatusCode_=-1;_.P.JSC$17613_hostPrefix_=null;_.P.blockedPrefix_=null;
_.P.connect=function(V){this.JSC$17613_path_=V;V=wYB(this.JSC$17611_channel_,this.JSC$17613_path_);Xy(3);Date.now();var D=this.JSC$17611_channel_.firstTestResults_;D!=null?(this.JSC$17613_hostPrefix_=D[0],(this.blockedPrefix_=D[1])?(this.state_=1,QFc(this)):(this.state_=2,TEf(this))):(rz(V,"MODE","init"),this.JSC$17613_request_=new Ex(this,this.JSC$17611_channelDebug_),this.JSC$17613_request_.JSC$17606_extraHeaders_=this.JSC$17613_extraHeaders_,f7X(this.JSC$17613_request_,V,!1,null,!0),this.state_=
0)};
var QFc=function(V){var D=bfX(V.JSC$17611_channel_,V.blockedPrefix_,"/mail/images/cleardot.gif");_.n$(D);X8f(D.toString(),5E3,(0,_.F1)(V.checkBlockedCallback_,V),3,2E3);V.notifyServerReachabilityEvent(1)};
HfX.prototype.checkBlockedCallback_=function(V){if(V)this.state_=2,TEf(this);else{Xy(4);var D=this.JSC$17611_channel_;D.JSC$17614_channelDebug_.debug("Test Connection Blocked");D.JSC$17618_lastStatusCode_=D.connectionTest_.JSC$17613_lastStatusCode_;YW(D,9)}V&&this.notifyServerReachabilityEvent(2)};
var TEf=function(V){V.JSC$17611_channelDebug_.debug("TestConnection: starting stage 2");var D=V.JSC$17611_channel_.secondTestResults_;D!=null?(V.JSC$17611_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+D?"Buffered":"Unbuffered"),Xy(5),D?(Xy(11),$W(V.JSC$17611_channel_,V,!1)):(Xy(12),$W(V.JSC$17611_channel_,V,!0))):(V.JSC$17613_request_=new Ex(V,V.JSC$17611_channelDebug_),V.JSC$17613_request_.JSC$17606_extraHeaders_=V.JSC$17613_extraHeaders_,D=KCR(V.JSC$17611_channel_,
V.JSC$17613_hostPrefix_,V.JSC$17613_path_),Xy(5),rz(D,"TYPE","xmlhttp"),f7X(V.JSC$17613_request_,D,!1,V.JSC$17613_hostPrefix_,!1))};
_.P=HfX.prototype;_.P.JSC$17613_createXhrIo=function(V){return this.JSC$17611_channel_.JSC$17613_createXhrIo(V)};
_.P.abort=function(){this.JSC$17613_request_&&(this.JSC$17613_request_.cancel(),this.JSC$17613_request_=null);this.JSC$17613_lastStatusCode_=-1};
_.P.JSC$17613_isClosed=function(){return!1};
_.P.JSC$17613_onRequestData=function(V,D){this.JSC$17613_lastStatusCode_=V.JSC$17606_lastStatusCode_;if(this.state_==0)if(this.JSC$17611_channelDebug_.debug("TestConnection: Got data for stage 1"),D){try{var f=this.JSC$17611_parser_.parse(D)}catch(n){yVw(this.JSC$17611_channel_,this);return}this.JSC$17613_hostPrefix_=f[0];this.blockedPrefix_=f[1]}else this.JSC$17611_channelDebug_.debug("TestConnection: Null responseText"),yVw(this.JSC$17611_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Xy(7),Date.now()):D=="11111"?(Xy(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17613_lastStatusCode_=200,this.JSC$17613_request_.cancel(),this.JSC$17611_channelDebug_.debug("Test connection succeeded; using streaming connection"),Xy(12),$W(this.JSC$17611_channel_,this,!0)):(Xy(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.P.JSC$17613_onRequestComplete=function(){this.JSC$17613_lastStatusCode_=this.JSC$17613_request_.JSC$17606_lastStatusCode_;this.JSC$17613_request_.JSC$17606_successful_?this.state_==0?(this.JSC$17611_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,QFc(this)):(this.state_=2,TEf(this))):this.state_==2&&(this.JSC$17611_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17611_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Xy(12),$W(this.JSC$17611_channel_,this,!0)):(this.JSC$17611_channelDebug_.debug("Test connection failed; not using streaming"),Xy(11),$W(this.JSC$17611_channel_,this,!1))):(this.JSC$17611_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Xy(9):this.state_==2&&Xy(10),yVw(this.JSC$17611_channel_,this,this.JSC$17613_request_.getLastError()))};
_.P.JSC$17613_shouldUseSecondaryDomains=function(){return this.JSC$17611_channel_.JSC$17613_shouldUseSecondaryDomains()};
_.P.isActive=function(){return this.JSC$17611_channel_.isActive()};
_.P.notifyServerReachabilityEvent=function(V){this.JSC$17611_channel_.notifyServerReachabilityEvent(V)};var i0=function(V,D,f){this.state_=1;this.JSC$17614_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17614_channelDebug_=new dB;this.JSC$17614_parser_=new eX;this.firstTestResults_=V||null;this.secondTestResults_=D!=null?D:null;this.asyncTest_=f||!1},Zfc=function(V,D){this.JSC$17616_mapId=V;
this.map=D;this.context=null};
_.P=i0.prototype;_.P.JSC$17618_extraHeaders_=null;_.P.JSC$17618_extraParams_=null;_.P.forwardChannelRequest_=null;_.P.JSC$17618_backChannelRequest_=null;_.P.JSC$17618_path_=null;_.P.JSC$17618_forwardChannelUri_=null;_.P.JSC$17618_backChannelUri_=null;_.P.JSC$17618_hostPrefix_=null;_.P.JSC$17618_nextRid_=0;_.P.JSC$17618_nextMapId_=0;_.P.handler_=null;_.P.JSC$17618_forwardChannelTimerId_=null;_.P.JSC$17618_backChannelTimerId_=null;_.P.JSC$17618_deadBackChannelTimerId_=null;_.P.connectionTest_=null;
_.P.useChunked_=null;_.P.JSC$17618_lastArrayId_=-1;_.P.JSC$17618_lastPostResponseArrayId_=-1;_.P.JSC$17618_lastStatusCode_=-1;_.P.JSC$17618_forwardChannelRetryCount_=0;_.P.JSC$17618_backChannelRetryCount_=0;_.P.JSC$17618_channelVersion_=8;var jFv={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},l7R=function(V,D,f,n){_.TG.call(this,"timingevent",V);this.size=D;this.rtt=f;this.retries=n};
_.fg(l7R,_.TG);var GT3=function(V){_.TG.call(this,"serverreachability",V)};
_.fg(GT3,_.TG);i0.prototype.connect=function(V,D,f,n,t){this.JSC$17614_channelDebug_.debug("connect()");Xy(0);this.JSC$17618_path_=D;this.JSC$17618_extraParams_=f||{};n&&t!==void 0&&(this.JSC$17618_extraParams_.OSID=n,this.JSC$17618_extraParams_.OAID=t);this.asyncTest_?(Ba((0,_.F1)(this.connectTest_,this,V),100),e2X(this)):this.connectTest_(V)};
i0.prototype.disconnect=function(){this.JSC$17614_channelDebug_.debug("disconnect()");cVR(this);if(this.state_==3){var V=this.JSC$17618_nextRid_++,D=this.JSC$17618_forwardChannelUri_.clone();_.iW(D,"SID",this.sid_);_.iW(D,"RID",V);_.iW(D,"TYPE","terminate");SX(this,D);V=new Ex(this,this.JSC$17614_channelDebug_,this.sid_,V);V.JSC$17606_type_=2;V.JSC$17606_baseUri_=_.n$(D.clone());(new Image).src=V.JSC$17606_baseUri_.toString();V.JSC$17606_requestStartTime_=Date.now();n0X(V)}FCo(this)};
i0.prototype.connectTest_=function(V){this.JSC$17614_channelDebug_.debug("connectTest_()");this.connectionTest_=new HfX(this,this.JSC$17614_channelDebug_);this.connectionTest_.JSC$17613_extraHeaders_=this.JSC$17618_extraHeaders_;this.connectionTest_.JSC$17611_parser_=this.JSC$17614_parser_;this.connectionTest_.connect(V)};
var e2X=function(V){V.JSC$17614_channelDebug_.debug("connectChannel_()");V.JSC$17618_ensureInState_(1,0);V.JSC$17618_forwardChannelUri_=wYB(V,V.JSC$17618_path_);g0V(V)},cVR=function(V){V.connectionTest_&&(V.connectionTest_.abort(),V.connectionTest_=null);
V.JSC$17618_backChannelRequest_&&(V.JSC$17618_backChannelRequest_.cancel(),V.JSC$17618_backChannelRequest_=null);V.JSC$17618_backChannelTimerId_&&(_.fx.clearTimeout(V.JSC$17618_backChannelTimerId_),V.JSC$17618_backChannelTimerId_=null);v0R(V);V.forwardChannelRequest_&&(V.forwardChannelRequest_.cancel(),V.forwardChannelRequest_=null);V.JSC$17618_forwardChannelTimerId_&&(_.fx.clearTimeout(V.JSC$17618_forwardChannelTimerId_),V.JSC$17618_forwardChannelTimerId_=null)},kTJ=function(V,D){if(V.state_==0)throw Error("Fk");
V.JSC$17614_outgoingMaps_.length==1E3&&V.JSC$17614_parser_.stringify(D);V.JSC$17614_outgoingMaps_.push(new Zfc(V.JSC$17618_nextMapId_++,D));V.state_!=2&&V.state_!=3||g0V(V)};
i0.prototype.JSC$17613_isClosed=function(){return this.state_==0};
i0.prototype.getState=function(){return this.state_};
var g0V=function(V){V.forwardChannelRequest_||V.JSC$17618_forwardChannelTimerId_||(V.JSC$17618_forwardChannelTimerId_=Ba((0,_.F1)(V.JSC$17618_onStartForwardChannelTimer_,V),0),V.JSC$17618_forwardChannelRetryCount_=0)};
i0.prototype.JSC$17618_onStartForwardChannelTimer_=function(V){this.JSC$17618_forwardChannelTimerId_=null;sFv(this,V)};
var sFv=function(V,D){V.JSC$17614_channelDebug_.debug("startForwardChannel_");if(V.state_==1){if(!D){V.JSC$17614_channelDebug_.debug("open_()");V.JSC$17618_nextRid_=Math.floor(Math.random()*1E5);D=V.JSC$17618_nextRid_++;var f=new Ex(V,V.JSC$17614_channelDebug_,"",D);f.JSC$17606_extraHeaders_=V.JSC$17618_extraHeaders_;var n=BEJ(V),t=V.JSC$17618_forwardChannelUri_.clone();_.iW(t,"RID",D);_.iW(t,"CVER","1");SX(V,t);DHw(f,t,n);V.forwardChannelRequest_=f;V.state_=2}}else V.state_==3&&(D?dH0(V,D):V.JSC$17614_outgoingMaps_.length==
0?V.JSC$17614_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):V.forwardChannelRequest_||(dH0(V),V.JSC$17614_channelDebug_.debug("startForwardChannel_ finished, sent request")))},dH0=function(V,D){if(D)if(V.JSC$17618_channelVersion_>6){V.JSC$17614_outgoingMaps_=V.pendingMaps_.concat(V.JSC$17614_outgoingMaps_);
V.pendingMaps_.length=0;var f=V.JSC$17618_nextRid_-1;D=BEJ(V)}else f=D.JSC$17604_rid_,D=D.JSC$17606_postData_;else f=V.JSC$17618_nextRid_++,D=BEJ(V);var n=V.JSC$17618_forwardChannelUri_.clone();_.iW(n,"SID",V.sid_);_.iW(n,"RID",f);_.iW(n,"AID",V.JSC$17618_lastArrayId_);SX(V,n);f=new Ex(V,V.JSC$17614_channelDebug_,V.sid_,f,V.JSC$17618_forwardChannelRetryCount_+1);f.JSC$17606_extraHeaders_=V.JSC$17618_extraHeaders_;f.setTimeout(1E4+Math.round(1E4*Math.random()));V.forwardChannelRequest_=f;DHw(f,n,D)},
SX=function(V,D){V.handler_&&(V=V.handler_.JSC$17625_getAdditionalParams())&&_.sB.forEach(V,function(f,n){_.iW(D,n,f)})},BEJ=function(V){var D=Math.min(V.JSC$17614_outgoingMaps_.length,1E3),f=["count="+D];
if(V.JSC$17618_channelVersion_>6&&D>0){var n=V.JSC$17614_outgoingMaps_[0].JSC$17616_mapId;f.push("ofs="+n)}else n=0;for(var t={},J=0;J<D;t={mapId$jscomp$3:void 0},J++){t.mapId$jscomp$3=V.JSC$17614_outgoingMaps_[J].JSC$17616_mapId;var H=V.JSC$17614_outgoingMaps_[J].map;t.mapId$jscomp$3=V.JSC$17618_channelVersion_<=6?J:t.mapId$jscomp$3-n;try{_.sB.forEach(H,function(Q){return function(T,y){f.push("req"+Q.mapId$jscomp$3+"_"+y+"="+encodeURIComponent(T))}}(t))}catch(Q){f.push("req"+t.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}V.pendingMaps_=V.pendingMaps_.concat(V.JSC$17614_outgoingMaps_.splice(0,D));
return f.join("&")},uKZ=function(V){V.JSC$17618_backChannelRequest_||V.JSC$17618_backChannelTimerId_||(V.JSC$17618_backChannelAttemptId_=1,V.JSC$17618_backChannelTimerId_=Ba((0,_.F1)(V.JSC$17618_onStartBackChannelTimer_,V),0),V.JSC$17618_backChannelRetryCount_=0)},mHR=function(V){if(V.JSC$17618_backChannelRequest_||V.JSC$17618_backChannelTimerId_||V.JSC$17618_backChannelRetryCount_>=3)return!1;
V.JSC$17614_channelDebug_.debug("Going to retry GET");V.JSC$17618_backChannelAttemptId_++;V.JSC$17618_backChannelTimerId_=Ba((0,_.F1)(V.JSC$17618_onStartBackChannelTimer_,V),NER(V,V.JSC$17618_backChannelRetryCount_));V.JSC$17618_backChannelRetryCount_++;return!0};
i0.prototype.JSC$17618_onStartBackChannelTimer_=function(){this.JSC$17618_backChannelTimerId_=null;this.JSC$17614_channelDebug_.debug("Creating new HttpRequest");this.JSC$17618_backChannelRequest_=new Ex(this,this.JSC$17614_channelDebug_,this.sid_,"rpc",this.JSC$17618_backChannelAttemptId_);this.JSC$17618_backChannelRequest_.JSC$17606_extraHeaders_=this.JSC$17618_extraHeaders_;this.JSC$17618_backChannelRequest_.JSC$17606_readyStateChangeThrottleMs_=0;var V=this.JSC$17618_backChannelUri_.clone();_.iW(V,
"RID","rpc");_.iW(V,"SID",this.sid_);_.iW(V,"CI",this.useChunked_?"0":"1");_.iW(V,"AID",this.JSC$17618_lastArrayId_);SX(this,V);_.iW(V,"TYPE","xmlhttp");f7X(this.JSC$17618_backChannelRequest_,V,!0,this.JSC$17618_hostPrefix_,!1);this.JSC$17614_channelDebug_.debug("New Request created")};
var $W=function(V,D,f){V.JSC$17614_channelDebug_.debug("Test Connection Finished");V.useChunked_=V.secondTestResults_==null?f:!V.secondTestResults_;V.JSC$17618_lastStatusCode_=D.JSC$17613_lastStatusCode_;V.asyncTest_||e2X(V)},yVw=function(V,D){V.JSC$17614_channelDebug_.debug("Test Connection Failed");
V.JSC$17618_lastStatusCode_=D.JSC$17613_lastStatusCode_;YW(V,2)};
i0.prototype.JSC$17613_onRequestData=function(V,D){if(this.state_!=0&&(this.JSC$17618_backChannelRequest_==V||this.forwardChannelRequest_==V))if(this.JSC$17618_lastStatusCode_=V.JSC$17606_lastStatusCode_,this.forwardChannelRequest_==V&&this.state_==3)if(this.JSC$17618_channelVersion_>7){try{var f=this.JSC$17614_parser_.parse(D)}catch(n){f=null}if(Array.isArray(f)&&f.length==3)if(D=f,D[0]==0)a:if(this.JSC$17614_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17618_backChannelTimerId_)this.JSC$17614_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17618_backChannelRequest_)if(this.JSC$17618_backChannelRequest_.JSC$17606_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17606_requestStartTime_)v0R(this),this.JSC$17618_backChannelRequest_.cancel(),this.JSC$17618_backChannelRequest_=null;else break a;else this.JSC$17614_channelDebug_.warning("We do not have a BackChannel established");mHR(this);Xy(19)}else this.JSC$17618_lastPostResponseArrayId_=D[1],V=this.JSC$17618_lastPostResponseArrayId_-this.JSC$17618_lastArrayId_,0<
V&&(D=D[2],this.JSC$17614_channelDebug_.debug(D+" bytes (in "+V+" arrays) are outstanding on the BackChannel"),D<37500&&this.useChunked_&&this.JSC$17618_backChannelRetryCount_==0&&!this.JSC$17618_deadBackChannelTimerId_&&(this.JSC$17618_deadBackChannelTimerId_=Ba((0,_.F1)(this.JSC$17618_onBackChannelDead_,this),6E3)));else this.JSC$17614_channelDebug_.debug("Bad POST response data returned"),YW(this,11)}else D!="y2f%"&&(this.JSC$17614_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
YW(this,11));else this.JSC$17618_backChannelRequest_==V&&v0R(this),_.Hn(D)||(V=this.JSC$17614_parser_.parse(D),this.onInput_(V))};
i0.prototype.JSC$17618_onBackChannelDead_=function(){this.JSC$17618_deadBackChannelTimerId_!=null&&(this.JSC$17618_deadBackChannelTimerId_=null,this.JSC$17618_backChannelRequest_.cancel(),this.JSC$17618_backChannelRequest_=null,mHR(this),Xy(20))};
var v0R=function(V){V.JSC$17618_deadBackChannelTimerId_!=null&&(_.fx.clearTimeout(V.JSC$17618_deadBackChannelTimerId_),V.JSC$17618_deadBackChannelTimerId_=null)};
i0.prototype.JSC$17613_onRequestComplete=function(V){this.JSC$17614_channelDebug_.debug("Request complete");if(this.JSC$17618_backChannelRequest_==V){v0R(this);this.JSC$17618_backChannelRequest_=null;var D=2}else if(this.forwardChannelRequest_==V)this.forwardChannelRequest_=null,D=1;else return;this.JSC$17618_lastStatusCode_=V.JSC$17606_lastStatusCode_;if(this.state_!=0)if(V.JSC$17606_successful_)if(D==1){D=V.JSC$17606_postData_?V.JSC$17606_postData_.length:0;V=Date.now()-V.JSC$17606_requestStartTime_;
var f=ONW;f.dispatchEvent(new l7R(f,D,V,this.JSC$17618_forwardChannelRetryCount_));g0V(this);this.handler_&&this.handler_.JSC$17625_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else uKZ(this);else{f=V.getLastError();if(f==3||f==7||f==0&&this.JSC$17618_lastStatusCode_>0)this.JSC$17614_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17614_channelDebug_.debug("Maybe retrying, last error: "+Mqv(f,this.JSC$17618_lastStatusCode_));var n;if(n=D==1)this.forwardChannelRequest_||
this.JSC$17618_forwardChannelTimerId_||this.state_==1||this.JSC$17618_forwardChannelRetryCount_>=2?n=!1:(this.JSC$17614_channelDebug_.debug("Going to retry POST"),this.JSC$17618_forwardChannelTimerId_=Ba((0,_.F1)(this.JSC$17618_onStartForwardChannelTimer_,this,V),NER(this,this.JSC$17618_forwardChannelRetryCount_)),this.JSC$17618_forwardChannelRetryCount_++,n=!0);if(n||D==2&&mHR(this))return;this.JSC$17614_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17614_channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:YW(this,5);break;case 4:YW(this,10);break;case 3:YW(this,6);break;case 7:YW(this,12);break;default:YW(this,2)}}};
var NER=function(V,D){var f=5E3+Math.floor(Math.random()*1E4);V.isActive()||(V.JSC$17614_channelDebug_.debug("Inactive channel"),f*=2);return f*D};
i0.prototype.onInput_=function(V){for(var D=0;D<V.length;D++){var f=V[D];this.JSC$17618_lastArrayId_=f[0];f=f[1];this.state_==2?f[0]=="c"?(this.sid_=f[1],this.JSC$17618_hostPrefix_=f[2],f=f[3],f!=null?this.JSC$17618_channelVersion_=f:this.JSC$17618_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17625_channelOpened(),this.JSC$17618_backChannelUri_=KCR(this,this.JSC$17618_hostPrefix_,this.JSC$17618_path_),uKZ(this)):f[0]=="stop"&&YW(this,7):this.state_==3&&(f[0]=="stop"?YW(this,7):
f[0]!="noop"&&this.handler_&&this.handler_.JSC$17625_channelHandleArray(f),this.JSC$17618_backChannelRetryCount_=0)}};
i0.prototype.JSC$17618_ensureInState_=function(V){if(!_.i3(arguments,this.state_))throw Error("Gk`"+this.state_);};
var YW=function(V,D){V.JSC$17614_channelDebug_.info("Error code "+D);if(D==2||D==9){var f=null;V.handler_&&(f=null);var n=(0,_.F1)(V.testGoogleComCallback_,V);f||(f=new _.Ll("//www.google.com/images/cleardot.gif"),_.n$(f));qX3(f.toString(),1E4,n)}else Xy(2);V.onError_(D)};
i0.prototype.testGoogleComCallback_=function(V){V?(this.JSC$17614_channelDebug_.info("Successfully pinged google.com"),Xy(2)):(this.JSC$17614_channelDebug_.info("Failed to ping google.com"),Xy(1),this.onError_(8))};
i0.prototype.onError_=function(V){this.JSC$17614_channelDebug_.debug("HttpChannel: error - "+V);this.state_=0;this.handler_&&this.handler_.JSC$17625_channelError(V);FCo(this);cVR(this)};
var FCo=function(V){V.state_=0;V.JSC$17618_lastStatusCode_=-1;if(V.handler_)if(V.pendingMaps_.length==0&&V.JSC$17614_outgoingMaps_.length==0)V.handler_.JSC$17625_channelClosed();else{V.JSC$17614_channelDebug_.debug("Number of undelivered maps, pending: "+V.pendingMaps_.length+", outgoing: "+V.JSC$17614_outgoingMaps_.length);var D=_.Od(V.pendingMaps_),f=_.Od(V.JSC$17614_outgoingMaps_);V.pendingMaps_.length=0;V.JSC$17614_outgoingMaps_.length=0;V.handler_.JSC$17625_channelClosed(D,f)}},wYB=function(V,
D){D=bfX(V,null,D);
V.JSC$17614_channelDebug_.debug("GetForwardChannelUri: "+D);return D},KCR=function(V,D,f){D=bfX(V,V.JSC$17613_shouldUseSecondaryDomains()?D:null,f);
V.JSC$17614_channelDebug_.debug("GetBackChannelUri: "+D);return D},bfX=function(V,D,f){var n=_.Y4(f);
if(n.JSC$8122_domain_!="")D&&_.O7(n,D+"."+n.JSC$8122_domain_),_.xq(n,n.JSC$8122_port_);else{var t=window.location;n=Ds0(t.protocol,D?D+"."+t.hostname:t.hostname,+t.port,f)}V.JSC$17618_extraParams_&&_.sB.forEach(V.JSC$17618_extraParams_,function(J,H){_.iW(n,H,J)});
_.iW(n,"VER",V.JSC$17618_channelVersion_);SX(V,n);return n};
i0.prototype.JSC$17613_createXhrIo=function(V){if(V)throw Error("Dk");V=new _.kq;V.JSC$7885_withCredentials_=!1;return V};
i0.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
i0.prototype.notifyServerReachabilityEvent=function(V){var D=ONW;D.dispatchEvent(new GT3(D,V))};
i0.prototype.JSC$17613_shouldUseSecondaryDomains=function(){return!1};
new JYJ;var z2v=function(){};
_.P=z2v.prototype;_.P.JSC$17625_channelOpened=function(){};
_.P.JSC$17625_channelHandleArray=function(){};
_.P.JSC$17625_channelSuccess=function(){};
_.P.JSC$17625_channelError=function(){};
_.P.JSC$17625_channelClosed=function(){};
_.P.JSC$17625_getAdditionalParams=function(){return{}};
_.P.isActive=function(){return!0};var R2c=function(V){V.front_.length===0&&(V.front_=V.back_,V.front_.reverse(),V.back_=[])};
_.P=Aew.prototype;_.P.enqueue=function(V){this.back_.push(V)};
_.P.peek=function(){R2c(this);return _.X9(this.front_)};
_.P.getCount=function(){return this.front_.length+this.back_.length};
_.P.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.P.clear=function(){this.front_=[];this.back_=[]};
_.P.contains=function(V){return _.i3(this.front_,V)||_.i3(this.back_,V)};
_.P.remove=function(V){var D=this.front_;var f=Array.prototype.lastIndexOf.call(D,V,D.length-1);f>=0?(_.Lx(D,f),D=!0):D=!1;return D||_.IY(this.back_,V)};
_.P.getValues=function(){for(var V=[],D=this.front_.length-1;D>=0;--D)V.push(this.front_[D]);D=this.back_.length;for(var f=0;f<D;++f)V.push(this.back_[f]);return V};var Wh=function(V){this.JSC$17629_map_=new _.tV;this.size=0;V&&this.addAll(V)},CHV=function(V){var D=typeof V;
return D=="object"&&V||D=="function"?"o"+_.fo(V):D.charAt(0)+V};
_.P=Wh.prototype;_.P.getCount=function(){return this.JSC$17629_map_.size};
_.P.add=function(V){this.JSC$17629_map_.set(CHV(V),V);this.size=this.JSC$17629_map_.size};
_.P.addAll=function(V){V=_.L8(V);for(var D=V.length,f=0;f<D;f++)this.add(V[f]);this.size=this.JSC$17629_map_.size};
_.P.removeAll=function(V){V=_.L8(V);for(var D=V.length,f=0;f<D;f++)this.remove(V[f]);this.size=this.JSC$17629_map_.size};
_.P.delete=function(V){V=this.JSC$17629_map_.remove(CHV(V));this.size=this.JSC$17629_map_.size;return V};
_.P.remove=function(V){return this.delete(V)};
_.P.clear=function(){this.JSC$17629_map_.clear();this.size=0};
_.P.isEmpty=function(){return this.JSC$17629_map_.size===0};
_.P.has=function(V){return this.JSC$17629_map_.containsKey(CHV(V))};
_.P.contains=function(V){return this.JSC$17629_map_.containsKey(CHV(V))};
_.P.getValues=function(){return this.JSC$17629_map_.getValues()};
_.P.values=function(){return this.JSC$17629_map_.values()};
_.P.clone=function(){return new Wh(this)};
_.P.equals=function(V){return this.getCount()==UaV(V)&&qpq(this,V)};
var qpq=function(V,D){var f=UaV(D);if(V.getCount()>f)return!1;!(D instanceof Wh)&&f>5&&(D=new Wh(D));return VKR(V,function(n){var t=D;return t.contains&&typeof t.contains=="function"?t.contains(n):t.containsValue&&typeof t.containsValue=="function"?t.containsValue(n):_.MU(t)||typeof t==="string"?_.i3(t,n):_.sB.containsValue(t,n)})};
Wh.prototype.__iterator__=function(){return this.JSC$17629_map_.__iterator__(!1)};
Wh.prototype[Symbol.iterator]=function(){return this.values()};var XYV={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(V){return(this._clampValue(V)-this.min)/(this.max-this.min)},
_clampValue:function(V){return Math.min(this.max,Math.max(this.min,this._calcStep(V)))},
_calcStep:function(V){V=parseFloat(V);if(!this.step)return V;V=Math.round((V-this.min)/this.step);return this.step<1?V/(1/this.step)+this.min:V*this.step+this.min},
_validateValue:function(){var V=this._clampValue(this.value);this.value=this.oldValue=isNaN(V)?this.oldValue:V;return this.value!==V},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var E0V;var AVJ;_.Bt({_template:function(){if(AVJ!==void 0)return AVJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;E0V===void 0&&(E0V=document.createElement("template"));var n=E0V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return AVJ=V},
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(){_.pO(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(V){V.keyCode===27&&(V.preventDefault(),this.close())},
_track:function(V){if(!this.persistent&&!this.disableSwipe)switch(V.preventDefault(),V.detail.state){case "start":this._trackStart(V);break;case "track":this._trackMove(V);break;case "end":this._trackEnd(V)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var V=this.$.contentContainer.getBoundingClientRect();this._savedWidth=V.width;this._translateOffset=this.position==="left"?V.left:V.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(V){this._trackDetails&&(this._translateDrawer(V.detail.dx+this._translateOffset),this._trackDetails.push({dx:V.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(V){if(this._trackDetails){var D=V.detail.dx+this._translateOffset,f=this.getWidth();D=this.position==="left"?D>=0||D<=-f:D<=0||D>=f;if(!D){var n=this._trackDetails;this._trackDetails=null;this._flingDrawer(V,n);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}f/=2;V.detail.dx<-f?this.opened=this.position==="right":V.detail.dx>f&&(this.opened=this.position==="left");D?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(V,D){for(var f=Date.now(),n=f-100,t,J=0,H=D.length-1;J<=H;){var Q=J+H>>1,T=D[Q];T.timeStamp>=n?(t=T,H=Q-1):J=Q+1}return t?(V.detail.dx-t.dx)/(f-t.timeStamp||1):0},
_flingDrawer:function(V,D){D=this._calculateVelocity(V,D);if(!(Math.abs(D)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;V=V.detail.dx+this._translateOffset;var f=this.getWidth(),n=this.position==="left",t=D>0;t?(D=Math.max(D,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(D=Math.min(D,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");D=this._FLING_INITIAL_SLOPE*(!t&&n?-(V+f):t&&!n?f-V:-V)/D;this._styleTransitionDuration(D);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,D)}},
_styleTransitionDuration:function(V){this.style.transitionDuration=V+"ms";this.$.contentContainer.style.transitionDuration=V+"ms";this.$.scrim.style.transitionDuration=V+"ms"},
_styleTransitionTimingFunction:function(V){this.$.contentContainer.style.transitionTimingFunction=V;this.$.scrim.style.transitionTimingFunction=V},
_translateDrawer:function(V){var D=this.getWidth();this.position==="left"?(V=Math.max(-D,Math.min(V,0)),this.$.scrim.style.opacity=1+V/D):(V=Math.max(0,Math.min(V,D)),this.$.scrim.style.opacity=1-V/D);this.translate3d(V+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var V=this._drawerState;V===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;V!==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=""),V!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var V=_.Fw(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"])');V.length>0?(this._firstTabStop=V[0],this._lastTabStop=V[V.length-1]):
this._lastTabStop=this._firstTabStop=null;(V=this.getAttribute("tabindex"))&&parseInt(V,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(V){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||V.keyCode!==9||(V.shiftKey?this._firstTabStop&&_.Fw(V).localTarget===this._firstTabStop&&(V.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Fw(V).localTarget===this._lastTabStop&&(V.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(V,D){this.toggleClass("visible",V&&!D,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 a7w;var Ypc;_.Bt({_template:function(){if(Ypc!==void 0)return Ypc;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;a7w===void 0&&(a7w=document.createElement("template"));var n=a7w;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return Ypc=V},
is:"tp-yt-paper-progress",behaviors:[XYV],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(V){this.toggleClass("indeterminate",V,this.$.primaryProgress)},
_transformProgress:function(V,D){V.style.transform=V.style.webkitTransform="scaleX("+D/100+")"},
_mainRatioChanged:function(V){this._transformProgress(this.$.primaryProgress,V)},
_progressChanged:function(V,D,f,n,t){V=this._clampValue(V);D=this._clampValue(D);var J=this._calcRatio(V)*100,H=this._calcRatio(D)*100;this._setSecondaryRatio(J);this._transformProgress(this.$.secondaryProgress,J);this._transformProgress(this.$.primaryProgress,H);this.secondaryProgress=V;t?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",D);this.setAttribute("aria-valuemin",f);this.setAttribute("aria-valuemax",n)},
_disabledChanged:function(V){this.setAttribute("aria-disabled",V?"true":"false")},
_hideSecondaryProgress:function(V){return V===0}});var $Hw;var ifq;var Sp0=function(){};
_.P=Sp0.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._calcRatio=function(){};
_.P._clampValue=function(){};
_.P._calcStep=function(){};
_.P._validateValue=function(){};
_.P._update=function(){};
_.P._setImmediateValue=function(){};
_.P._setExpand=function(){};
_.P._setDragging=function(){};
_.P._setTransiting=function(){};
_.P._setMarkers=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setRatio=function(){};
Sp0=_.Bt({_template:function(){if(ifq!==void 0)return ifq;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;$Hw===void 0&&($Hw=document.createElement("template"));var n=$Hw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return ifq=V},
is:"tp-yt-paper-slider",behaviors:[_.ja,_.cY,_.yYF,XYV],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&&_.uL(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(V,D,f){this.setAttribute("aria-valuemin",D);this.setAttribute("aria-valuemax",f);this.setAttribute("aria-valuenow",V);this._positionKnob(this._calcRatio(V)*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(V){this._setImmediateValue(this._calcStep(this._calcKnobPosition(V)));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(V){return(this.max-this.min)*V/100+this.min},
_onTrack:function(V){V.stopPropagation();switch(V.detail.state){case "start":this._trackStart(V);break;case "track":this._trackX(V);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(V){this.dragging||this._trackStart(V);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,V.detail.dx*(this._isRTL?-1:1)));V=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(V);V=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(V+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var V=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;V.transform=V.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(V){this._expandKnob();V.preventDefault();this.focus()},
_bartrack:function(V){this._allowBarEvent(V)&&this._onTrack(V)},
_barclick:function(V){this._w=this.$.sliderBar.offsetWidth;var D=this.$.sliderBar.getBoundingClientRect();D=(V.detail.x-D.left)/this._w*100;this._isRTL&&(D=100-D);var f=this.ratio;this._setTransiting(!0);this._positionKnob(D);f===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
V.preventDefault();this.focus()},
_bardown:function(V){this._allowBarEvent(V)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(V))},
_knobTransitionEnd:function(V){V.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(V,D,f,n){n||this._setMarkers([]);D=Math.round((f-D)/this.step);D>V&&(D=V);if(D<0||!isFinite(D))D=0;this._setMarkers(Array(D))},
_mergeClasses:function(V){return Object.keys(V).filter(function(D){return V[D]}).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(V){return!this.ignoreBarTouch||V.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(V){this._isRTL?this._incrementKey(V):this._decrementKey(V)},
_rightKey:function(V){this._isRTL?this._decrementKey(V):this._incrementKey(V)},
_incrementKey:function(V){this.disabled||(V.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),V.preventDefault())},
_decrementKey:function(V){this.disabled||(V.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),V.preventDefault())},
_changeValue:function(V){this.value=V.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(V){V.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Kfl._createRipple.call(this)},
_focusedChanged:function(V){V&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=V?"":"none",this._ripple.holdDown=V)}});var WCR;var pYB;var pd=null,LCc=function(){};
_.P=LCc.prototype;_.P.fit=function(){};
_.P._discoverInfo=function(){};
_.P.resetFit=function(){};
_.P.refit=function(){};
_.P.position=function(){};
_.P.constrain=function(){};
_.P._sizeDimension=function(){};
_.P.__sizeDimension=function(){};
_.P.center=function(){};
_.P.__getNormalizedRect=function(){};
_.P.__getOffscreenArea=function(){};
_.P.__getPosition=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P.toggle=function(){};
_.P.open=function(){};
_.P.close=function(){};
_.P.cancel=function(){};
_.P.invalidateTabbables=function(){};
_.P._ensureSetup=function(){};
_.P._canceledChanged=function(){};
_.P._withBackdropChanged=function(){};
_.P._prepareRenderOpened=function(){};
_.P._finishRenderOpened=function(){};
_.P._finishRenderClosed=function(){};
_.P._preparePositioning=function(){};
_.P._finishPositioning=function(){};
_.P._applyFocus=function(){};
_.P._onCaptureClick=function(){};
_.P._onCaptureFocus=function(){};
_.P._onCaptureEsc=function(){};
_.P._onCaptureTab=function(){};
_.P._onIronResize=function(){};
_.P._onNodesChange=function(){};
_.P.__ensureFirstLastFocusables=function(){};
_.P.__openedChanged=function(){};
_.P.__deraf=function(){};
_.P.__updateScrollObservers=function(){};
_.P.__addScrollListeners=function(){};
_.P.__removeScrollListeners=function(){};
_.P.__isValidScrollAction=function(){};
_.P.__onCaptureScroll=function(){};
_.P.__saveScrollPosition=function(){};
_.P.__restoreScrollPosition=function(){};
_.P._setCanceled=function(){};
LCc=_.Bt({_template:function(){if(pYB!==void 0)return pYB;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;WCR===void 0&&(WCR=document.createElement("template"));var n=WCR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);return pYB=V},
is:"tp-yt-paper-toast",behaviors:[_.Y0],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(){_.ZA._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.qH.requestAvailability()},
show:function(V){typeof V=="string"&&(V={text:V});for(var D in V)D.indexOf("_")===0?_.ZA._warn('The property "'+D+'" is private and was not set.'):D in this?this[D]=V[D]:_.ZA._warn('The property "'+D+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(V){V&&V.target===this&&V.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(pd&&pd!==this&&pd.close(),pd=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):pd===this&&(pd=null);_.aF._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(V){this.positionTarget=V},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var I7f=new _.L("disablePersonalizationAction");var NI0=new _.L("showDmaConsentFlowCommand");var mA3=new _.L("showMmgNoticeCommand");var Ofw=new _.L("saveConsentAction");var xHv=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.tn(V)};
_.v(xHv,_.Xm);var Mac=_.UW(xHv);var h23=new _.L("updateTopbarAvatarAction");var UHv=new _.L("channelHandleValidationResultRenderer");var Vto=new _.L("generateHandleFromNameResultRenderer");var DTf=new _.L("channelHandleInputRenderer");var f8q=new _.L("copyLinkRenderer");var nBq=new _.L("timedCommand");var ttc=new _.L("clearCookieAction");var P7c=new _.L("getMultiPageMenuAction");var oBR=new _.L("addToGuideSectionAction"),JTX=new _.L("removeFromGuideSectionAction");var rT0=new _.L("updateNotificationsUnseenCountAction");var H9q=new _.L("resetChannelUnreadCountCommand");var wcq=new _.L("resetSubscriptionsUnreadDotCommand");var QI3=new _.L("selectLanguageCommand");var poo=new _.L("sendFeedbackAction");var T0W=new _.L("uploadImageToScottyCommand");var b9f=new _.L("registerPromoCommand");var KJX=new _.L("setPushNotificationsEnabledCommand");var yTf=new _.L("desktopTopbarRenderer");var Z93=new _.L("surveyFollowUpRenderer");var jI0=new _.L("handlesClaimingRadioOptionRenderer");var l8w=new _.L("hotkeyDialogRenderer");var GNV=new _.L("modifyReportFormCommand");var ePo=new _.L("accountLinkCommand");var cTf=new _.L("accountUnlinkCommand");var FJc=new _.L("logAccountLinkingEventCommand");var gBR=new _.L("guideCollapsibleEntryRenderer");var vBf=new _.L("guideDownloadsEntryRenderer");var Ld=new _.L("guideEntryRenderer");var kN0=new _.L("getLocationCommand");var sIv=new _.L("locationCollectionCommand");var B00=new _.L("storiesItemViewModel");var dTX=new _.L("addToRemoteQueueAction");var ubZ=new _.L("insertInRemoteQueueAction");var N03=new _.L("removeFromRemoteQueueAction");var mTq=new _.L("notificationRenderer");var yAR=new _.L("localWatchHistoryCommand");var zPW=new _.L("pdgBuyFlowHeaderRenderer");var RPZ=new _.L("pdgColorSliderRenderer");var C7v=new _.L("pdgCommentOptionRenderer");var qCR=new _.L("pdgCommentPreviewRenderer");var Xcv=new _.L("superVodSelectableItemButtonRenderer");var EBq=new _.L("switchButtonRenderer");var ATB=new _.L("upsellDialogRenderer");var a8f=new _.L("feedbackQuestionRenderer"),YCc=new _.L("feedbackOptionRenderer");var $TJ=new _.L("sponsorshipsTierRenderer"),i9X=new _.L("sponsorshipsPromotionChannelRenderer");var SCW=new _.L("simpleSurveyMessageRenderer");var ptf=new _.L("invokeInstrumentManagerAction");var WJ3=new _.L("logYpcFlowDismissCommand");var pcR=new _.L("logYpcFlowStartCommand");var LJv=new _.L("unlimitedCreateFamilyEndpoint");var I80=new _.L("iconBadgeRenderer");var ZRX=new _.L("collaborativePlaylistVisibilityValidationRule");var O90=function(V){_.TG.call(this,"channelMessage");this.message=V};
_.v(O90,_.TG);var xTR=function(V){_.TG.call(this,"channelError");this.error=V};
_.v(xTR,_.TG);var MtR={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"},hP0={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},UTc={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Vz3={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},DPR={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Iy=function(V){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 _.tV;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;V&&(this.id=V.id||V.name,this.name=V.name,this.clientName=V.clientName?V.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=V.app,this.type=V.type||"REMOTE_CONTROL",this.username=V.user||"",this.avatar=V.userAvatarUri||"",this.obfuscatedGaiaId=V.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=V.ownerObfuscatedGaiaId||"",this.castUserId=V.castUserId||"",this.theme=V.theme||"u",fDc(this,V.capabilities||""),nc0(this,
V.compatibleSenderThemes||""),tzw(this,V.experiments||""),this.remoteControllerUrl=V.remoteControllerUrl||"",this.localChannelEncryptionKey=V.localChannelEncryptionKey||"",this.deviceContext=V.deviceContext,this.brand=V.brand||"",this.model=V.model||"",this.year=V.year||0,this.os=V.os||"",this.osVersion=V.osVersion||"",this.chipset=V.chipset||"",this.mdxDialServerType=V.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=V.pairingType||"unknown",V=V.deviceInfo)&&(V=JSON.parse(V),this.brand=
V.brand||"",this.model=V.model||"",this.year=V.year||0,this.os=V.os||"",this.osVersion=V.osVersion||"",this.chipset=V.chipset||"",this.clientName=V.clientName?V.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=V.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Iy.prototype.copy=function(){var V={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&&(V.brand=this.brand);
this.model&&(V.model=this.model);this.year&&(V.year=this.year);this.os&&(V.os=this.os);this.osVersion&&(V.osVersion=this.osVersion);this.chipset&&(V.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(V.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(V.mdxDialServerType=this.mdxDialServerType);V=new Iy(V);V.connected=this.connected;V.remoteControllerUrl=this.remoteControllerUrl;V.localChannelEncryptionKey=this.localChannelEncryptionKey;V.deviceContext=
this.deviceContext;V.castUserId=this.castUserId;return V};
Iy.prototype.equals=function(V){return V?this.id==V.id:!1};
var fDc=function(V,D){V.capabilities.clear();_.Pb(D.split(","),_.lC(_.sB.contains,MtR)).forEach(function(f){V.capabilities.add(f)})},nc0=function(V,D){V.compatibleSenderThemes.clear();
_.Pb(D.split(","),_.lC(_.sB.contains,hP0)).forEach(function(f){V.compatibleSenderThemes.add(f)})},tzw=function(V,D){V.experiments.clear();
D.split(",").forEach(function(f){V.experiments.add(f)})};var P$q=function(V,D){this.action=V;this.params=D||{}};_.fg(akR,_.cq);_.P=akR.prototype;_.P.JSC$17665_onTick_=function(){this.JSC$17663_interval_=Math.min(3E5,this.JSC$17663_interval_*2);this.JSC$17665_listener_();this.nextTickTime_&&this.start()};
_.P.start=function(){var V=this.JSC$17663_interval_+15E3*Math.random(),D=this.delay_;D.isActive()||D.start(V);this.nextTickTime_=Date.now()+V};
_.P.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.P.isActive=function(){return this.delay_.isActive()};
_.P.reset=function(){this.delay_.stop();this.JSC$17663_interval_=5E3};_.fg(uZ,z2v);_.P=uZ.prototype;_.P.subscribe=function(V,D,f){return this.pubsub_.subscribe(V,D,f)};
_.P.unsubscribe=function(V,D,f){return this.pubsub_.unsubscribe(V,D,f)};
_.P.unsubscribeByKey=function(V){return this.pubsub_.unsubscribeByKey(V)};
_.P.publish=function(V,D){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.P.dispose=function(){this.JSC$17666_disposed_||(this.JSC$17666_disposed_=!0,_.Mr(this.pubsub_),this.disconnect(),_.Mr(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17666_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Qv({})})};
_.P.isDisposed=function(){return this.JSC$17666_disposed_};
_.P.connect=function(V,D,f){var n=this,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return _.TO(T,2),n.useAsyncBrowserChannelHandler_?_.b(T,n.connectPromise_,2):T.jumpTo(2);_.Qz(T);if(n.JSC$17666_disposed_||n.JSC$17666_channel_&&n.JSC$17666_channel_.getState()==2)return T.return();n.sCookie_="";n.reconnectTimer_.stop();n.connectionParams_=V||null;n.connectUi_=D||0;t=n.JSC$17666_pathPrefix_+"/test";J=n.JSC$17666_pathPrefix_+"/bind";H=new i0(f?f.firstTestResults:null,f?f.secondTestResults:null,
n.enableAsyncTest_);if(Q=n.JSC$17666_channel_)Q.handler_=null;H.handler_=n;n.JSC$17666_channel_=H;if(n.useAsyncBrowserChannelHandler_)return n.connectPromise_=ocW(n).then(function(){return J6R(n,t,J,Q,f)}),T.return(n.connectPromise_.then(function(){n.connectPromise_=_.Qv()}));
J6R(n,t,J,Q,f);return _.bK(T,0)})};
var J6R=function(V,D,f,n,t){r6c(V);if(V.JSC$17666_channel_){var J=_.XB("ID_TOKEN"),H=V.JSC$17666_channel_.JSC$17618_extraHeaders_||{};J?H["x-youtube-identity-token"]=J:delete H["x-youtube-identity-token"];V.JSC$17666_channel_.JSC$17618_extraHeaders_=H}H_W(V);n?(n.getState(),V.JSC$17666_channel_.connect(D,f,V.defaultQueryParams_,n.sid_,n.JSC$17618_lastArrayId_)):t?V.JSC$17666_channel_.connect(D,f,V.defaultQueryParams_,t.sessionId,t.arrayId):V.JSC$17666_channel_.connect(D,f,V.defaultQueryParams_)};
uZ.prototype.disconnect=function(V){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Qv())}finally{this.disconnectUi_=V||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),r6c(this),this.JSC$17666_channel_&&(this.JSC$17666_channel_.getState()==3&&sFv(this.JSC$17666_channel_),this.JSC$17666_channel_.disconnect()),this.disconnectUi_=0}};
uZ.prototype.sendMessage=function(V,D){var f=this,n;return _.w(function(t){switch(t.nextAddress){case 1:_.TO(t,2);if(!f.useAsyncBrowserChannelHandler_){t.jumpTo(2);break}return _.b(t,f.connectPromise_,2);case 2:_.Qz(t);if(f.JSC$17666_disposed_)return t.return();n={_sc:V};D&&_.sB.extend(n,D);if(f.reconnectTimer_.isActive()||(f.JSC$17666_channel_?f.JSC$17666_channel_.getState():0)==2){f.JSC$17666_pendingMessages_.push(n);t.jumpTo(6);break}if(!f.isChannelOpened()){t.jumpTo(6);break}_.TO(t,8);if(!f.useAsyncBrowserChannelHandler_||
w53(f,V)){t.jumpTo(8);break}return _.b(t,ocW(f),8);case 8:_.Qz(t,0,0,1);f.isChannelOpened()&&(w53(f,V)||H_W(f),r6c(f),kTJ(f.JSC$17666_channel_,n));_.bK(t,6,1);break;case 6:_.bK(t,0)}})};
var w53=function(V,D){return V.enableMdxAuthForConnectionOnly_?!0:V.disableMdxAuthForAdMessages_?Object.values(UTc).includes(D):V.disableMdxAuthForNonPlaybackMessages_?!Object.values(Vz3).includes(D):V.disableMdxAuthForShortsMessages_?Object.values(DPR).includes(D):!1};
uZ.prototype.JSC$17625_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17666_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)QjB(this);else{var V=this.JSC$17666_pendingMessages_;this.JSC$17666_pendingMessages_=[];var D=V.length;H_W(this);TWf(this,V,D);b_q(this)}else b_q(this)};
var QjB=function(V){var D,f;_.w(function(n){if(n.nextAddress==1)return _.TO(n,2),_.b(n,ocW(V),2);_.Qz(n);D=V.JSC$17666_pendingMessages_;V.JSC$17666_pendingMessages_=[];f=D.length;TWf(V,D,f);b_q(V);return _.bK(n,0)})},TWf=function(V,D,f){for(var n=0;n<f;++n)kTJ(V.JSC$17666_channel_,D[n]);
b_q(V)},b_q=function(V){V.publish("handlerOpened");
V.JSC$17666_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.P=uZ.prototype;_.P.JSC$17625_channelError=function(V){var D=V==2&&this.JSC$17666_channel_.JSC$17618_lastStatusCode_==401;V==4||D||this.reconnectTimer_.start();this.publish("handlerError",V,D);D=Object.keys(jFv).find(function(f){return jFv[f]===V});
this.JSC$17666_channelErrorCounter.increment("BROWSER_CHANNEL",D!=null?D:"UNKNOWN")};
_.P.JSC$17625_channelClosed=function(V,D){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(D)for(var f=D.length,n=0;n<f;++n){var t=D[n].map;t&&this.JSC$17666_pendingMessages_.push(t)}this.JSC$17666_channelClosedCounter.increment("BROWSER_CHANNEL");V&&this.pendingMapsOnClosedCounter.JSC$8023_streamzService.JSC$7876_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",V.length);D&&this.undeliveredMapsOnClosedCounter.JSC$8026_streamzService.JSC$7876_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
D.length)};
_.P.JSC$17625_channelSuccess=function(V,D){D!=null&&V!=null&&this.channelMessageSentCounter.increment()};
_.P.JSC$17625_getAdditionalParams=function(){var V={v:2};this.sCookie_&&(V.gsessionid=this.sCookie_);this.connectUi_!=0&&(V.ui=""+this.connectUi_);this.disconnectUi_!=0&&(V.ui=""+this.disconnectUi_);this.connectionParams_&&_.sB.extend(V,this.connectionParams_);return V};
_.P.JSC$17625_channelHandleArray=function(V){V[0]=="S"?this.sCookie_=V[1]:V[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17666_channel_.disconnect()):this.publish("handlerMessage",new P$q(V[0],V[1]));this.JSC$17666_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.P.isChannelOpened=function(){return!!this.JSC$17666_channel_&&this.JSC$17666_channel_.getState()==3};
var r6c=function(V){if(V.JSC$17666_channel_){var D=V.JSC$17666_getXsrfToken_(),f=V.JSC$17666_channel_.JSC$17618_extraHeaders_||{};D?f["x-youtube-lounge-xsrf-token"]=D:delete f["x-youtube-lounge-xsrf-token"];V.JSC$17666_channel_.JSC$17618_extraHeaders_=f}},ocW=function(V){if(V.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Qv();
if(!V.enableCachedUpdateAuthorizationHeader_)return K5W(V);V.updateAuthorizationHeaderPromise_===null&&(V.updateAuthorizationHeaderPromise_=K5W(V));return V.updateAuthorizationHeaderPromise_},K5W=function(V){return _.cT(V.getAuthorizationHeader_().then(function(D){y6B(V,D)}).thenCatch(function(){}),function(){V.updateAuthorizationHeaderPromise_=null})},y6B=function(V,D){if(V.JSC$17666_channel_){var f=V.JSC$17666_channel_.JSC$17618_extraHeaders_||{};
D&&Object.keys(D).length>0?f=Object.assign({},f,D):delete f.Authorization;V.JSC$17666_channel_.JSC$17618_extraHeaders_=f}},H_W=function(V){V.getAuthorizationHeaderSync_&&!V.useAsyncBrowserChannelHandler_&&y6B(V,V.getAuthorizationHeaderSync_())};
_.P=uZ.prototype;_.P.setLoungeToken=function(V){(this.defaultQueryParams_.loungeIdToken=V)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17666_channel_){var D=this.JSC$17666_channel_.JSC$17618_extraHeaders_||{};V?D["X-YouTube-LoungeId-Token"]=V:delete D["X-YouTube-LoungeId-Token"];this.JSC$17666_channel_.JSC$17618_extraHeaders_=D}};
_.P.getDeviceId=function(){return this.defaultQueryParams_.id};
_.P.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var V=this.reconnectTimer_;V.delay_.fire();V.start()};
_.P.safeReconnect_=function(){var V=this.JSC$17666_channel_,D=0;V.JSC$17618_backChannelRequest_&&D++;V.forwardChannelRequest_&&D++;D==0&&this.connect(this.connectionParams_,this.connectUi_)};var X8=function(V,D){var f=V.basePath;V.supportCors&&(f=V.scheme+"://"+V.domain+V.port+V.basePath);return _.I9(f+D,{})};
NS.prototype.sendRequest=function(V,D,f,n,t,J,H){V={format:J?"RAW":"JSON",method:V,context:this,timeout:5E3,withCredentials:!!H,onSuccess:_.lC(this.JSC$17671_onSuccess_,n,!J),onError:_.lC(this.onError_,t),onTimeout:_.lC(this.JSC$17671_onTimeout_,t)};f&&(V.postParams=f,V.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.T5(D,V)};
NS.prototype.JSC$17671_onSuccess_=function(V,D,f,n){D?V(n):V({text:f.responseText})};
NS.prototype.onError_=function(V,D){V(Error("Hk`"+D.status))};
NS.prototype.JSC$17671_onTimeout_=function(V){V(Error("Ik"))};var zQ=function(V,D){return!!D&&(V.id==D||V.uuid==D)},Z_q=function(V){return{name:V.name,
screenId:V.id,loungeToken:V.token,dialId:V.uuid,screenIdType:V.idType}},jjX=function(V){return new m2(V)},lDX=function(V){return Array.isArray(V)?_.dw(V,jjX):[]},O6X=function(V){if(!V)return"null";
var D=V.token?".."+V.token.slice(-6):"-",f=V.uuid?".."+V.uuid.slice(-6):"-";return'{name:"'+V.name+'",id:'+V.id.substr(0,6)+"..,token:"+(D+",uuid:"+f+",idType:"+V.idType+"}")},g8W=function(V){return Array.isArray(V)?"["+_.dw(V,O6X).join(",")+"]":"null"};var n8f="",qS=null;var TNq=function(V,D){_.jT.call(this);var f=this;this.handler=V();this.handler.subscribe("handlerOpened",this.JSC$17678_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(n,t){f.onError(t)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=D};
_.v(TNq,_.jT);_.P=TNq.prototype;_.P.connect=function(V,D,f){this.handler.connect(V,D,f)};
_.P.disconnect=function(V){this.handler.disconnect(V)};
_.P.reconnect=function(){this.handler.reconnect()};
_.P.getDeviceId=function(){return this.handler.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.P.JSC$17678_onOpened=function(){this.dispatchEvent("channelOpened");var V=this.handler,D=this.currentScreenId;_.oC("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!V.JSC$17666_channel_.useChunked_,sessionId:V.JSC$17666_channel_.sid_,arrayId:V.JSC$17666_channel_.JSC$17618_lastArrayId_});_.oC("yt-remote-session-screen-id",D);V=Mv3();D=hiR();_.i3(V,D)||V.push(D);fl0(V);D1w()};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(V){this.dispatchEvent(new O90(V))};
_.P.onError=function(V){this.dispatchEvent(new xTR(V?1:0))};
_.P.sendMessage=function(V,D){this.handler.sendMessage(V,D)};
_.P.setLoungeToken=function(V){this.handler.setLoungeToken(V)};
_.P.dispose=function(){this.handler.dispose()};var Q4R=function(V,D,f){var n=this;f=f===void 0?function(){return""}:f;
var t=t===void 0?new SD3:t;var J=J===void 0?new _.KH:J;this.pathPrefix=V;this.defaultQueryParams=D;this.getXsrfToken=f;this.JSC$17681_pubsub=J;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new akR(function(){var H;((H=n.channel)==null?void 0:eNw((new L4B(H,H.JSC$17589_channel_)).JSC$17599_channel_.forwardChannelRequestPool_))===0&&n.connect(n.connectionParams,n.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17681_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17681_channelOpenedCounter=new YXv;this.JSC$17681_channelClosedCounter=new $iX;this.JSC$17681_channelMessageReceivedCounter=new SXc;this.JSC$17681_channelErrorCounter=new WIv};
Q4R.prototype.connect=function(V,D){V=V===void 0?{}:V;D=D===void 0?0:D;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=V,this.connectUi=D,GIq(this),(V=_.XB("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=V: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 qb(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,e_c(this))};
var e_c=function(V){_.kt(V.channel,"w",function(){V.channelState=3;V.reconnectTimer.reset();V.connectionParams=null;V.connectUi=0;for(var D=_.r(V.nonAckedMessagesOnChannelClosed),f=D.next();!f.done;f=D.next())f=f.value,V.channel&&V.channel.send(f);V.nonAckedMessagesOnChannelClosed=[];V.publish("webChannelOpened");V.JSC$17681_channelOpenedCounter.increment("WEB_CHANNEL")});
_.kt(V.channel,"x",function(){V.channelState=0;V.reconnectTimer.isActive()||V.publish("webChannelClosed");var D,f=(D=V.channel)==null?void 0:IAV(new L4B(D,D.JSC$17589_channel_));f&&(V.nonAckedMessagesOnChannelClosed=[].concat(_.sz(f)));V.JSC$17681_channelClosedCounter.increment("WEB_CHANNEL")});
_.kt(V.channel,"z",function(D){var f=D.data;f[0]==="gracefulReconnect"?(V.reconnectTimer.start(),V.channel&&V.channel.close()):V.publish("webChannelMessage",new P$q(f[0],f[1]));V.lastStatusCode=D.statusCode;V.JSC$17681_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.kt(V.channel,"y",function(){V.lastStatusCode===401||V.reconnectTimer.start();V.publish("webChannelError");V.JSC$17681_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.P=Q4R.prototype;_.P.disconnect=function(V){this.disconnectUi=V===void 0?0:V;this.reconnectTimer.stop();GIq(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.P.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var V=this.reconnectTimer;V.delay_.fire();V.start()};
_.P.sendMessage=function(V,D){this.channel&&(GIq(this),V=Object.assign({},{_sc:V},D),this.channel.send(V))};
_.P.setLoungeToken=function(V){V||this.reconnectTimer.stop();V?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=V:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var GIq=function(V){var D=V.getXsrfToken();D?V.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=D:delete V.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.P=Q4R.prototype;_.P.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.P.publish=function(V){return this.JSC$17681_pubsub.publish.apply(this.JSC$17681_pubsub,[V].concat(_.sz(_.gQ.apply(1,arguments))))};
_.P.subscribe=function(V,D,f){return this.JSC$17681_pubsub.subscribe(V,D,f)};
_.P.unsubscribe=function(V,D,f){return this.JSC$17681_pubsub.unsubscribe(V,D,f)};
_.P.unsubscribeByKey=function(V){return this.JSC$17681_pubsub.unsubscribeByKey(V)};
_.P.dispose=function(){this.JSC$17681_disposed||(this.JSC$17681_disposed=!0,_.Mr(this.JSC$17681_pubsub),this.disconnect(),_.Mr(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.P.isDisposed=function(){return this.JSC$17681_disposed};var wAo=function(V){_.jT.call(this);this.webChannelService=V();this.webChannelService.subscribe("webChannelOpened",this.JSC$17689_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.v(wAo,_.jT);_.P=wAo.prototype;_.P.connect=function(V,D){this.webChannelService.connect(V,D)};
_.P.disconnect=function(V){this.webChannelService.disconnect(V)};
_.P.reconnect=function(){this.webChannelService.reconnect()};
_.P.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.P.JSC$17689_onOpened=function(){this.dispatchEvent("channelOpened")};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(V){this.dispatchEvent(new O90(V))};
_.P.onError=function(){this.dispatchEvent(new xTR(this.webChannelService.lastStatusCode===401?1:0))};
_.P.sendMessage=function(V,D){this.webChannelService.sendMessage(V,D)};
_.P.setLoungeToken=function(V){this.webChannelService.setLoungeToken(V)};
_.P.dispose=function(){this.webChannelService.dispose()};var FgJ=Date.now(),Ea=null,e0q=Array(50),YU=-1,cRJ=!1;_.fg($U,_.hy);$U.prototype.getScreens=function(){return this.screens};
$U.prototype.contains=function(V){return!!xiv(this.screens,V)};
$U.prototype.get=function(V){return V?Rg(this.screens,V):null};
var c6B=function(V,D){var f=V.get(D.uuid)||V.get(D.id);if(f)return V=f.name,f.id=D.id||f.id,f.name=D.name,f.token=D.token,f.uuid=D.uuid||f.uuid,f.name!=V;V.screens.push(D);return!0},F5Z=function(V,D){var f=V.screens.length!=D.length;
V.screens=_.Pb(V.screens,function(J){return!!xiv(D,J)});
for(var n=D.length,t=0;t<n;t++)f=c6B(V,D[t])||f;return f},gcw=function(V,D){var f=V.screens.length;
V.screens=_.Pb(V.screens,function(n){return!(n||D?!n!=!D?0:n.id==D.id:1)});
return V.screens.length<f};
$U.prototype.info=function(V){Aw(this.JSC$17690_logName_,V)};var vc3=function(V,D,f,n,t){_.hy.call(this);this.JSC$17693_http_=V;this.pairingCode_=D;this.deviceId_=f;this.friendlyName_=n;this.enableShortLivedLoungeToken_=t;this.pollIndex_=0;this.JSC$17693_xhr_=null;this.JSC$17693_timer_=NaN};
_.v(vc3,_.hy);_.P=vc3.prototype;_.P.start=function(){!this.JSC$17693_xhr_&&isNaN(this.JSC$17693_timer_)&&this.poll_()};
_.P.stop=function(){this.JSC$17693_xhr_&&(this.JSC$17693_xhr_.abort(),this.JSC$17693_xhr_=null);isNaN(this.JSC$17693_timer_)||(_.wO(this.JSC$17693_timer_),this.JSC$17693_timer_=NaN)};
_.P.disposeInternal=function(){this.stop();_.hy.prototype.disposeInternal.call(this)};
_.P.poll_=function(){this.JSC$17693_timer_=NaN;this.JSC$17693_xhr_=_.T5(X8(this.JSC$17693_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.F1)(this.JSC$17695_onSuccess_,this),onError:(0,_.F1)(this.onError_,this),onTimeout:(0,_.F1)(this.JSC$17695_onTimeout_,this)})};
_.P.JSC$17695_onSuccess_=function(V,D){this.JSC$17693_xhr_=null;V=D.screen||{};V.dialId=this.deviceId_;V.name=this.friendlyName_;D=-1;this.enableShortLivedLoungeToken_&&V.shortLivedLoungeToken&&V.shortLivedLoungeToken.value&&V.shortLivedLoungeToken.refreshIntervalMs&&(V.screenIdType="shortLived",V.loungeToken=V.shortLivedLoungeToken.value,D=V.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new m2(V),D)};
_.P.onError_=function(V){this.JSC$17693_xhr_=null;V.status&&V.status==404?this.pollIndex_>=kIw.length?this.publish("pairingFailed",Error("Jk")):(V=kIw[this.pollIndex_],this.JSC$17693_timer_=_.rO((0,_.F1)(this.poll_,this),V),this.pollIndex_++):this.publish("pairingFailed",Error("Kk`"+V.status))};
_.P.JSC$17695_onTimeout_=function(){this.JSC$17693_xhr_=null;this.publish("pairingFailed",Error("Lk"))};
var kIw=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.fg(Sr,$U);_.P=Sr.prototype;_.P.start=function(){iZ(this)&&this.publish("screenChange");!_.J5("yt-remote-lounge-token-expiration")&&sj3(this);_.wO(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.rO((0,_.F1)(this.start,this),1E4)};
_.P.add=function(V,D){iZ(this);c6B(this,V);BW0(this,!1);this.publish("screenChange");D(V);V.token||sj3(this)};
_.P.remove=function(V,D){var f=iZ(this);gcw(this,V)&&(BW0(this,!1),f=!0);D(V);f&&this.publish("screenChange")};
_.P.updateName=function(V,D,f,n){var t=iZ(this),J=this.get(V.id);J?(J.name!=D&&(J.name=D,BW0(this,!1),t=!0),f(V)):n(Error("Mk"));t&&this.publish("screenChange")};
_.P.disposeInternal=function(){_.wO(this.loungeTokenRefreshTimer_);Sr.superClass_.disposeInternal.call(this)};
var sj3=function(V){if(V.screens.length){var D=_.dw(V.screens,function(n){return n.id}),f=X8(V.JSC$17697_http_,"/pairing/get_lounge_token_batch");
V.JSC$17697_http_.sendRequest("POST",f,{screen_ids:D.join(",")},(0,_.F1)(V.handleLoungeTokens_,V),(0,_.F1)(V.handleLoungeTokenError_,V))}};
Sr.prototype.handleLoungeTokens_=function(V){iZ(this);var D=this.screens.length;V=V&&V.screens||[];for(var f=V.length,n=0;n<f;++n){var t=V[n],J=this.get(t.screenId);J&&(J.token=t.loungeToken,--D)}BW0(this,!D);D&&Aw(this.JSC$17690_logName_,"Missed "+D+" lounge tokens.")};
Sr.prototype.handleLoungeTokenError_=function(V){Aw(this.JSC$17690_logName_,"Requesting lounge tokens failed: "+V)};
var iZ=function(V){if(_.c("deprecate_pair_servlet_enabled"))return F5Z(V,[]);var D=lDX(PCf());D=_.Pb(D,function(f){return!f.uuid});
return F5Z(V,D)},BW0=function(V,D){JRR(_.dw(V.screens,Z_q));
D&&o8X()};var Ox=function(V,D){_.hy.call(this);this.getScreensToCheck_=D;D=(D=_.J5("yt-remote-online-screen-ids")||"")?D.split(","):[];for(var f={},n=this.getScreensToCheck_(),t=n.length,J=0;J<t;++J){var H=n[J].id;f[H]=_.i3(D,H)}this.screenIdSet_=f;this.JSC$17700_http_=V;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;dPX("Initialized with "+(0,_.vT)(this.screenIdSet_))};
_.v(Ox,_.hy);Ox.prototype.isOnline=function(V){return!!this.screenIdSet_[V]};
Ox.prototype.start=function(){var V=parseInt(_.J5("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Vd()-144E5<V?0:V)?u7w(this):(this.fastCheckEndTime_=_.Vd()+3E5,_.oC("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ox.prototype.isEmpty=function(){return _.sB.isEmpty(this.screenIdSet_)};
Ox.prototype.update=function(){dPX("Updating availability on schedule.");var V=this.getScreensToCheck_(),D=_.sB.filter(this.screenIdSet_,function(f,n){return f&&!!Rg(V,n)},this);
NWV(this,D)};
var mPf=function(V,D,f){var n=X8(V.JSC$17700_http_,"/pairing/get_screen_availability");V.JSC$17700_http_.sendRequest("POST",n,{lounge_token:D.token},(0,_.F1)(function(t){t=t.screens||[];for(var J=t.length,H=0;H<J;++H)if(t[H].loungeToken==D.token){f(t[H].status=="online");return}f(!1)},V),(0,_.F1)(function(){f(!1)},V))};
Ox.prototype.disposeInternal=function(){_.wO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.hy.prototype.disposeInternal.call(this)};
var NWV=function(V,D){a:if(_.sB.getCount(D)!=_.sB.getCount(V.screenIdSet_))var f=!1;else{f=_.sB.getKeys(D);for(var n=f.length,t=0;t<n;++t)if(!V.screenIdSet_[f[t]]){f=!1;break a}f=!0}f||(dPX("Updated online screens: "+(0,_.vT)(V.screenIdSet_)),V.screenIdSet_=D,V.publish("screenChange"));z_w(V)},u7w=function(V){isNaN(V.refreshTimer_)||_.wO(V.refreshTimer_);
V.refreshTimer_=_.rO((0,_.F1)(V.requestScreenAvailability_,V),V.fastCheckEndTime_>0&&V.fastCheckEndTime_<_.Vd()?2E4:1E4)};
Ox.prototype.requestScreenAvailability_=function(){_.wO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var V=R_v(this);if(_.sB.getCount(V)){var D=X8(this.JSC$17700_http_,"/pairing/get_screen_availability"),f={lounge_token:_.sB.getKeys(V).join(",")};this.currentRequest_=this.JSC$17700_http_.sendRequest("POST",D,f,(0,_.F1)(this.onScreenAvailability_,this,V),(0,_.F1)(this.onScreenAvailabilityError_,this))}else NWV(this,{}),u7w(this)};
Ox.prototype.onScreenAvailability_=function(V,D){this.currentRequest_=null;var f=_.sB.getKeys(R_v(this));if(_.PH(f,_.sB.getKeys(V))){D=D.screens||[];f={};for(var n=D.length,t=0;t<n;++t)f[V[D[t].loungeToken]]=D[t].status=="online";NWV(this,f);u7w(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ox.prototype.onScreenAvailabilityError_=function(V){this.warn_("Screen availability failed: "+V);this.currentRequest_=null;u7w(this)};
var dPX=function(V){Aw("OnlineScreenService",V)};
Ox.prototype.warn_=function(V){Aw("OnlineScreenService",V)};
var R_v=function(V){var D={};_.Sd(V.getScreensToCheck_(),function(f){f.token?D[f.token]=f.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return D},z_w=function(V){V=_.sB.getKeys(_.sB.filter(V.screenIdSet_,function(D){return D}));
V.sort(_.tr);V.length?_.oC("yt-remote-online-screen-ids",V.join(","),60):_.rC("yt-remote-online-screen-ids")};_.fg(Wa,$U);_.P=Wa.prototype;_.P.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.P.add=function(V,D,f){this.localScreenService_.add(V,D,f)};
_.P.remove=function(V,D,f){this.localScreenService_.remove(V,D,f);this.onlineScreenService_.update()};
_.P.updateName=function(V,D,f,n){this.localScreenService_.contains(V)?this.localScreenService_.updateName(V,D,f,n):(V="Updating name of unknown screen: "+V.name,Aw(this.JSC$17690_logName_,V),n(Error(V)))};
_.P.getScreens=function(V){return V?this.screens:Zhw(this.screens,_.Pb(this.automaticScreens_,function(D){return!this.contains(D)},this))};
_.P.JSC$17705_getOnlineScreens=function(){return _.Pb(this.getScreens(!0),function(V){return this.onlineScreenService_.isOnline(V.id)},this)};
var qgc=function(V,D,f,n,t,J){V.info("getAutomaticScreenByIds "+f+" / "+D);f||(f=V.deviceToScreenId_[D]);var H=V.getScreens(),Q=f?Rg(H,f):null;f&&(V.disableAutomaticScreenCache_||Q)||(Q=Rg(H,D));if(Q){Q.uuid=D;var T=xW(V,Q);mPf(V.onlineScreenService_,T,function(y){t(y?T:null)})}else f?C$c(V,f,(0,_.F1)(function(y){var Z=xW(this,new m2({name:n,
screenId:f,loungeToken:y,dialId:D||""}));mPf(this.onlineScreenService_,Z,function(l){t(l?Z:null)})},V),J):t(null)};
Wa.prototype.JSC$17705_getScreenByPollingPairingCode=function(V,D,f,n,t,J){var H=this;this.info("getDialScreenByPairingCode "+V+" / "+D);var Q=new vc3(this.JSC$17703_http_,V,D,f,n);Q.subscribe("pairingComplete",function(T,y){_.Mr(Q);t(xW(H,T),y)});
Q.subscribe("pairingFailed",function(T){_.Mr(Q);J(T)});
Q.start();return(0,_.F1)(Q.stop,Q)};
var X5V=function(V,D){for(var f=V.screens.length,n=0;n<f;++n)if(V.screens[n].name==D)return V.screens[n];return null};
Wa.prototype.JSC$17705_getScreenByPairingCode=function(V,D,f,n){_.T5(X8(this.JSC$17703_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:V},timeout:5E3,onSuccess:(0,_.F1)(function(t,J){t=new m2(J.screen||{});if(!t.name||X5V(this,t.name)){a:{J=t.name;for(var H=2,Q=D(J,H);X5V(this,Q);){H++;if(H>20)break a;Q=D(J,H)}J=Q}t.name=J}f(xW(this,t))},this),
onError:(0,_.F1)(function(t){n(Error("Nk`"+t.status))},this),
onTimeout:(0,_.F1)(function(){n(Error("Ok"))},this)})};
var Ecv=function(V,D,f){mPf(V.onlineScreenService_,D,f)};
Wa.prototype.disposeInternal=function(){_.Mr(this.localScreenService_);_.Mr(this.onlineScreenService_);Wa.superClass_.disposeInternal.call(this)};
var C$c=function(V,D,f,n){V.info("requestLoungeToken_ for "+D);var t={postParams:{screen_ids:D},method:"POST",context:V,onSuccess:function(J,H){J=H&&H.screens||[];J[0]&&J[0].screenId==D?f(J[0].loungeToken):n(Error("Pk"))},
onError:function(){n(Error("Qk"))}};
_.T5(X8(V.JSC$17703_http_,"/pairing/get_lounge_token_batch"),t)},A60=function(V){V.screens=V.localScreenService_.getScreens();
for(var D=_.sB.transpose(V.deviceToScreenId_),f=V.screens.length,n=0;n<f;++n){var t=V.screens[n];t.uuid=D[t.id]||""}V.info("Updated manual screens: "+g8W(V.screens))};
Wa.prototype.handleScreenChange_=function(){A60(this);this.publish("screenChange");this.onlineScreenService_.update()};
var v8B=function(V){aDW(V);V.localScreenService_=new Sr(V.JSC$17703_http_);V.localScreenService_.subscribe("screenChange",(0,_.F1)(V.handleScreenChange_,V));A60(V);V.disableAutomaticScreenCache_||(V.automaticScreens_=lDX(_.J5("yt-remote-automatic-screen-cache")||[]));aDW(V);V.info("Initializing automatic screens: "+g8W(V.automaticScreens_));V.onlineScreenService_=new Ox(V.JSC$17703_http_,(0,_.F1)(V.getScreens,V,!0));V.onlineScreenService_.subscribe("screenChange",(0,_.F1)(function(){this.publish("onlineScreenChange")},
V))},xW=function(V,D){var f=V.get(D.id);
f?(f.uuid=D.uuid,D=f):((f=Rg(V.automaticScreens_,D.uuid))?(f.id=D.id,f.token=D.token,D=f):V.automaticScreens_.push(D),V.disableAutomaticScreenCache_||Yg0(V));aDW(V);V.deviceToScreenId_[D.uuid]=D.id;_.oC("yt-remote-device-id-map",V.deviceToScreenId_,31536E3);return D},Yg0=function(V){V=_.Pb(V.automaticScreens_,function(D){return D.idType!="shortLived"});
_.oC("yt-remote-automatic-screen-cache",_.dw(V,Z_q))},aDW=function(V){V.deviceToScreenId_=_.J5("yt-remote-device-id-map")||{}};
Wa.prototype.dispose=Wa.prototype.dispose;_.fg(pK,_.hy);var Mb=function(V,D){V.screen_=D;V.publish("sessionScreen",V.screen_)},$PR=function(V,D){V.screen_&&(V.screen_.token=D,xW(V.JSC$17707_screenService_,V.screen_));
V.publish("sessionScreen",V.screen_)};
pK.prototype.onSessionStopped=function(V){this.isDisposed()||(V&&(h1(this,""+V),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
pK.prototype.info=function(V){Aw(this.JSC$17707_logName_,V)};
var h1=function(V,D){Aw(V.JSC$17707_logName_,D)};
pK.prototype.JSC$17709_getCastSession=function(){return null};
pK.prototype.setDisplayStatus=function(V){var D=this.receiver_;V?(D.displayStatus=new chrome.cast.ReceiverDisplayStatus(V,[]),D.displayStatus.showStop=!0):D.displayStatus=null;chrome.cast.setReceiverDisplayStatus(D,(0,_.F1)(function(){this.info("Updated receiver status for "+D.friendlyName+": "+V)},this),(0,_.F1)(function(){h1(this,"Failed to update receiver status for: "+D.friendlyName)},this))};
pK.prototype.disposeInternal=function(){this.setDisplayStatus("");pK.superClass_.disposeInternal.call(this)};var Ux=function(V,D,f){pK.call(this,V,D,"CastSession");var n=this;this.config_=f;this.JSC$17712_session_=null;this.JSC$17712_boundSessionUpdate_=(0,_.F1)(this.JSC$17714_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.F1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.rO(function(){i_J(n,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17712_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17712_isInitLoungeToken_=!1;this.JSC$17712_lastLoungeTokenRefreshError_="unknown"};
_.v(Ux,pK);_.P=Ux.prototype;
_.P.setCastSession=function(V){if(this.JSC$17712_session_){if(this.JSC$17712_session_==V)return;h1(this,"Overriding cast session with new session object");Sgf(this);this.JSC$17712_isInitLoungeToken_=!1;this.JSC$17712_lastLoungeTokenRefreshError_="unknown";this.JSC$17712_session_.removeUpdateListener(this.JSC$17712_boundSessionUpdate_);this.JSC$17712_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17712_session_=V;this.JSC$17712_session_.addUpdateListener(this.JSC$17712_boundSessionUpdate_);this.JSC$17712_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);W5R(this,"getMdxSessionStatus")};
_.P.launchWithParams=function(V){this.info("launchWithParams no-op for Cast: "+(0,_.vT)(V))};
_.P.stop=function(){if(this.JSC$17712_session_)this.JSC$17712_session_.stop((0,_.F1)(function(){this.onSessionStopped()},this),(0,_.F1)(function(){this.onSessionStopped(Error("Rk"))},this));
else this.onSessionStopped(Error("Sk"))};
_.P.setDisplayStatus=function(){};
_.P.disposeInternal=function(){this.info("disposeInternal");Sgf(this);this.JSC$17712_session_&&(this.JSC$17712_session_.removeUpdateListener(this.JSC$17712_boundSessionUpdate_),this.JSC$17712_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17712_session_=null;pK.prototype.disposeInternal.call(this)};
var L53=function(V,D){_.wO(V.getLoungeTokenTimeoutKey_);V.getLoungeTokenTimeoutKey_=0;D==0?p5c(V):V.getLoungeTokenTimeoutKey_=_.rO(function(){p5c(V)},D)},p5c=function(V){W5R(V,"getLoungeToken");
_.wO(V.onLoungeTokenTimeoutKey_);V.onLoungeTokenTimeoutKey_=_.rO(function(){IDV(V,null)},3E4)},W5R=function(V,D){V.info("sendYoutubeMessage_: "+D+" "+(0,_.vT)(void 0));
var f={};f.type=D;V.JSC$17712_session_?V.JSC$17712_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",f,function(){},(0,_.F1)(function(){h1(this,"Failed to send message: "+D+".")},V)):h1(V,"Sending yt message without session: "+(0,_.vT)(f))};
Ux.prototype.onYoutubeMessage_=function(V,D){if(!this.isDisposed())if(D)if(D=(0,_.ko)(D),_.VV(D))switch(V=""+D.type,D=D.data||{},this.info("onYoutubeMessage_: "+V+" "+(0,_.vT)(D)),V){case "mdxSessionStatus":i_J(this,D);break;case "loungeToken":IDV(this,D);break;default:h1(this,"Unknown youtube message: "+V)}else h1(this,"Unable to parse message.");else h1(this,"No data in message.")};
var O_R=function(V,D){if(D)V.info("onConnectedScreenId_: Received screenId: "+D),V.screen_&&V.screen_.id==D||V.getScreen_(D,function(f){Mb(V,f)},function(){return V.onSessionStopped()},5);
else V.onSessionStopped(Error("Tk"))},MzZ=function(V,D,f){V.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(D));
var n=new m2(D);xPf(V,n,function(t){t?(V.JSC$17712_isInitLoungeToken_=!0,xW(V.JSC$17707_screenService_,n),Mb(V,n),V.JSC$17712_lastLoungeTokenRefreshError_="unknown",L53(V,f)):(_.Ah(Error("Uk`"+JSON.stringify(D))),V.onSessionStopped())},5)},i_J=function(V,D){_.wO(V.sessionStatusTimeoutKey_);
V.sessionStatusTimeoutKey_=0;if(D)V.config_.enableCastLoungeToken&&D.loungeToken?D.deviceId?V.screen_&&V.screen_.uuid==D.deviceId||(D.loungeTokenRefreshIntervalMs?MzZ(V,{name:V.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:D.deviceId,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.Ah(Error("Wk`"+JSON.stringify(D))),O_R(V,D.screenId))):(_.Ah(Error("Vk`"+JSON.stringify(D))),O_R(V,D.screenId)):O_R(V,D.screenId);else V.onSessionStopped(Error("Tk"))},IDV=function(V,
D){_.wO(V.onLoungeTokenTimeoutKey_);
V.onLoungeTokenTimeoutKey_=0;var f=null;if(D)if(D.loungeToken){var n;((n=V.screen_)==null?void 0:n.token)==D.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";else f="noLoungeTokenResponse";f?(V.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(D)+", error: "+f)),V.JSC$17712_lastLoungeTokenRefreshError_=f,L53(V,3E4)):($PR(V,D.loungeToken),V.JSC$17712_isInitLoungeToken_=!1,V.JSC$17712_lastLoungeTokenRefreshError_="unknown",L53(V,D.loungeTokenRefreshIntervalMs))};
Ux.prototype.getScreen_=function(V,D,f,n){_.wO(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;qgc(this.JSC$17707_screenService_,this.receiver_.label,V,this.receiver_.friendlyName,(0,_.F1)(function(t){t?D(t):n>=0?(h1(this,"Screen "+V+" appears to be offline. "+n+" retries left."),this.getScreenTimeoutKey_=_.rO((0,_.F1)(this.getScreen_,this,V,D,f,n-1),300)):f(Error("Xk"))},this),f)};
var xPf=function(V,D,f,n){_.wO(V.JSC$17712_checkScreenAvailabilityTimeoutKey_);V.JSC$17712_checkScreenAvailabilityTimeoutKey_=0;Ecv(V.JSC$17707_screenService_,D,function(t){t||n<0?f(t):V.JSC$17712_checkScreenAvailabilityTimeoutKey_=_.rO(function(){xPf(V,D,f,n-1)},300)})};
Ux.prototype.JSC$17709_getCastSession=function(){return this.JSC$17712_session_};
Ux.prototype.JSC$17714_onSessionUpdate_=function(V){this.isDisposed()||V||(h1(this,"Cast session died."),this.onSessionStopped())};
var Sgf=function(V){_.wO(V.getScreenTimeoutKey_);V.getScreenTimeoutKey_=0;_.wO(V.JSC$17712_checkScreenAvailabilityTimeoutKey_);V.JSC$17712_checkScreenAvailabilityTimeoutKey_=0;_.wO(V.sessionStatusTimeoutKey_);V.sessionStatusTimeoutKey_=0;_.wO(V.onLoungeTokenTimeoutKey_);V.onLoungeTokenTimeoutKey_=0;_.wO(V.getLoungeTokenTimeoutKey_);V.getLoungeTokenTimeoutKey_=0};var VF=function(V,D,f,n){pK.call(this,V,D,"DialSession");this.config_=n;this.JSC$17716_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17716_theme_=f;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17716_deferredLaunchDeadlineTimer_=NaN;this.JSC$17716_boundSessionUpdate_=(0,_.F1)(this.JSC$17718_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17716_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17716_isInitLoungeToken_=!1;this.JSC$17716_lastLoungeTokenRefreshError_="unknown"};
_.v(VF,pK);VF.prototype.setCastSession=function(V){this.JSC$17716_session_=V;this.JSC$17716_session_.addUpdateListener(this.JSC$17716_boundSessionUpdate_)};
VF.prototype.launchWithParams=function(V){this.connectData_=V;this.deferredLaunch_()};
VF.prototype.stop=function(){h_X(this);if(this.JSC$17716_session_)this.JSC$17716_session_.stop((0,_.F1)(this.onSessionStopped,this,null),(0,_.F1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
VF.prototype.disposeInternal=function(){h_X(this);this.JSC$17716_session_&&this.JSC$17716_session_.removeUpdateListener(this.JSC$17716_boundSessionUpdate_);this.JSC$17716_session_=null;pK.prototype.disposeInternal.call(this)};
var UPB=function(V){var D;return!!(V.config_.enableDialLoungeToken&&((D=V.JSC$17716_session_)==null?0:D.getDialAppInfo))},V2X=function(V){V.cancelPolling_=V.JSC$17707_screenService_.JSC$17705_getScreenByPollingPairingCode(V.reversePairingCode_,V.receiver_.label,V.receiver_.friendlyName,UPB(V),function(D,f){V.cancelPolling_=function(){};
V.JSC$17716_isInitLoungeToken_=!0;Mb(V,D);D.idType=="shortLived"&&f>0&&DV(V,f)},function(D){V.cancelPolling_=function(){};
V.onSessionStopped(D)})};
VF.prototype.JSC$17718_onSessionUpdate_=function(V){this.isDisposed()||V||(h1(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Dd3=function(V){var D={};D.pairingCode=V.reversePairingCode_;D.theme=V.JSC$17716_theme_;H6w()&&(D.env_useStageMdx=1);return _.bE(D)},f$R=function(V){return new Promise(function(D){V.reversePairingCode_=Ikf();
if(V.connectData_){var f=new chrome.cast.DialLaunchResponse(!0,Dd3(V));D(f);V2X(V)}else V.deferredLaunch_=function(){_.wO(V.JSC$17716_deferredLaunchDeadlineTimer_);V.deferredLaunch_=function(){};
V.JSC$17716_deferredLaunchDeadlineTimer_=NaN;var n=new chrome.cast.DialLaunchResponse(!0,Dd3(V));D(n);V2X(V)},V.JSC$17716_deferredLaunchDeadlineTimer_=_.rO(function(){V.deferredLaunch_()},100)})},t2V=function(V,D,f){V.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(D));
var n=new m2(D);return(new Promise(function(t){nmV(V,n,function(J){J?(V.JSC$17716_isInitLoungeToken_=!0,xW(V.JSC$17707_screenService_,n),Mb(V,n),DV(V,f)):_.Ah(Error("Zk`"+JSON.stringify(D)));t(J)},5)})).then(function(t){return t?new chrome.cast.DialLaunchResponse(!1):f$R(V)})},PVc=function(V,D){var f=V.launchData_.receiver.label,n=V.receiver_.friendlyName;
return(new Promise(function(t){qgc(V.JSC$17707_screenService_,f,D,n,function(J){J&&J.token&&Mb(V,J);t(J)},function(J){h1(V,"Failed to get DIAL screen: "+J);
t(null)})})).then(function(t){return t&&t.token?new chrome.cast.DialLaunchResponse(!1):f$R(V)})},nmV=function(V,D,f,n){_.wO(V.JSC$17716_checkScreenAvailabilityTimeoutKey_);
V.JSC$17716_checkScreenAvailabilityTimeoutKey_=0;Ecv(V.JSC$17707_screenService_,D,function(t){t||n<0?f(t):V.JSC$17716_checkScreenAvailabilityTimeoutKey_=_.rO(function(){nmV(V,D,f,n-1)},300)})},DV=function(V,D){V.info("getDialAppInfoWithTimeout_ "+D);
UPB(V)&&(_.wO(V.getDialAppInfoTimeoutKey_),V.getDialAppInfoTimeoutKey_=0,D==0?omv(V):V.getDialAppInfoTimeoutKey_=_.rO(function(){omv(V)},D))},omv=function(V){UPB(V)&&V.JSC$17716_session_.getDialAppInfo(function(D){V.info("getDialAppInfo dialLaunchData: "+JSON.stringify(D));
D=D.extraData||{};var f=null;if(D.loungeToken){var n;((n=V.screen_)==null?void 0:n.token)==D.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";f?(V.JSC$17716_lastLoungeTokenRefreshError_=f,DV(V,3E4)):(V.JSC$17716_isInitLoungeToken_=!1,V.JSC$17716_lastLoungeTokenRefreshError_="unknown",$PR(V,D.loungeToken),DV(V,D.loungeTokenRefreshIntervalMs))},function(D){V.info("getDialAppInfo error: "+D);
V.JSC$17716_lastLoungeTokenRefreshError_="noLoungeTokenResponse";DV(V,3E4)})},h_X=function(V){_.wO(V.JSC$17716_checkScreenAvailabilityTimeoutKey_);
V.JSC$17716_checkScreenAvailabilityTimeoutKey_=0;_.wO(V.getDialAppInfoTimeoutKey_);V.getDialAppInfoTimeoutKey_=0;V.cancelPolling_();V.cancelPolling_=function(){};
_.wO(V.JSC$17716_deferredLaunchDeadlineTimer_)};var fe=function(V,D){pK.call(this,V,D,"ManualSession");this.JSC$17720_deferredLaunchDeadlineTimer_=_.rO((0,_.F1)(this.launchWithParams,this,null),150)};
_.v(fe,pK);fe.prototype.stop=function(){this.onSessionStopped()};
fe.prototype.setCastSession=function(){};
fe.prototype.launchWithParams=function(){_.wO(this.JSC$17720_deferredLaunchDeadlineTimer_);this.JSC$17720_deferredLaunchDeadlineTimer_=NaN;var V=Rg(this.JSC$17707_screenService_.getScreens(),this.receiver_.label);if(V)Mb(this,V);else this.onSessionStopped(Error("$k"))};
fe.prototype.disposeInternal=function(){_.wO(this.JSC$17720_deferredLaunchDeadlineTimer_);this.JSC$17720_deferredLaunchDeadlineTimer_=NaN;pK.prototype.disposeInternal.call(this)};var xU=function(V,D){_.hy.call(this);this.config_=D;this.JSC$17723_screenService_=V;this.JSC$17723_appId_=D.appId||"233637DE";this.JSC$17723_theme_=D.theme||"cl";this.disableDial_=D.disableCastApi||!1;this.forceMirroring_=D.forceMirroring||!1;this.JSC$17723_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.F1)(this.onReceiverAction_,this)};
_.v(xU,_.hy);
xU.prototype.init=function(V,D){chrome.cast.timeout.requestSession=3E4;var f=new chrome.cast.SessionRequest(this.JSC$17723_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.c("desktop_enable_cast_connect")&&(f.androidReceiverCompatible=!0);this.disableDial_||(f.dialRequest=new chrome.cast.DialRequest("YouTube"));var n=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;V=V||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var t=(0,_.F1)(this.onReceiverUpdated_,
this);f=new chrome.cast.ApiConfig(f,(0,_.F1)(this.onSessionEstablished_,this),t,n,V);f.customDialLaunchCallback=(0,_.F1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(f,(0,_.F1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),j4B(),this.JSC$17723_screenService_.subscribe("onlineScreenChange",(0,_.F1)(this.JSC$17725_onScreenChange_,this)),this.customReceivers_=J5J(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.F1)(function(J){this.warn_("Failed to set initial custom receivers: "+(0,_.vT)(J))},this)),this.publish("yt-remote-cast2-availability-change",ne(this)),D(!0))},this),(0,_.F1)(function(J){this.warn_("Failed to initialize API: "+(0,_.vT)(J));
D(!1)},this))};
xU.prototype.setConnectedScreenStatus=function(V,D){tG("Setting connected screen ID: "+V+" -> "+D);if(this.JSC$17723_session_){var f=this.JSC$17723_session_.screen_;if(!V||f&&f.id!=V)tG("Unsetting old screen status: "+this.JSC$17723_session_.receiver_.friendlyName),PQ(this,null)}if(V&&D){if(!this.JSC$17723_session_){V=Rg(this.JSC$17723_screenService_.getScreens(),V);if(!V){tG("setConnectedScreenStatus: Unknown screen.");return}if(V.idType=="shortLived"){tG("setConnectedScreenStatus: Screen with id type to be short lived.");
return}f=r5X(this,V);f||(tG("setConnectedScreenStatus: Connected receiver not custom..."),f=new chrome.cast.Receiver(V.uuid?V.uuid:V.id,V.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(f),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.F1)(function(n){this.warn_("Failed to set initial custom receivers: "+(0,_.vT)(n))},this)));
tG("setConnectedScreenStatus: new active receiver: "+f.friendlyName);PQ(this,new fe(this.JSC$17723_screenService_,f),!0)}this.JSC$17723_session_.setDisplayStatus(D)}else tG("setConnectedScreenStatus: no screen.")};
var r5X=function(V,D){return D?_.Ac(V.customReceivers_,function(f){return zQ(D,f.label)},V):null};
xU.prototype.setLaunchParams=function(V){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17723_session_?this.JSC$17723_session_.launchWithParams(V):this.warn_("Setting connection data without a session")};
xU.prototype.JSC$17725_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17723_session_?(this.JSC$17723_session_.stop(),PQ(this,null)):tG("Stopping non-existing session")};
xU.prototype.requestSession=function(){chrome.cast.requestSession((0,_.F1)(this.onSessionEstablished_,this),(0,_.F1)(this.onSessionRequestFailed_,this))};
xU.prototype.disposeInternal=function(){this.JSC$17723_screenService_.unsubscribe("onlineScreenChange",(0,_.F1)(this.JSC$17725_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.IY(_.Yw("yt.mdx.remote.debug.handlers_")||[],KgX);_.Mr(this.JSC$17723_session_);_.hy.prototype.disposeInternal.call(this)};
var tG=function(V){Aw("Controller",V)};
xU.prototype.warn_=function(V){Aw("Controller",V)};
var KgX=function(V){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(V)},ne=function(V){return V.hasCastReceiver_||!!V.customReceivers_.length||!!V.JSC$17723_session_},PQ=function(V,D,f){D!=V.JSC$17723_session_&&(_.Mr(V.JSC$17723_session_),(V.JSC$17723_session_=D)?(f?V.publish("yt-remote-cast2-receiver-resumed",D.receiver_):V.publish("yt-remote-cast2-receiver-selected",D.receiver_),D.subscribe("sessionScreen",(0,_.F1)(V.onSessionScreen_,V,D)),D.subscribe("sessionFailed",
function(){return H1q(V,D)}),D.screen_?V.publish("yt-remote-cast2-session-change",D.screen_):f&&V.JSC$17723_session_.launchWithParams(null)):V.publish("yt-remote-cast2-session-change",null))},H1q=function(V,D){V.JSC$17723_session_==D&&V.publish("yt-remote-cast2-session-failed")};
_.P=xU.prototype;_.P.onSessionScreen_=function(V,D){this.JSC$17723_session_==V&&(D||PQ(this,null),this.publish("yt-remote-cast2-session-change",D))};
_.P.onReceiverAction_=function(V,D){if(!this.isDisposed())if(V)switch(V.friendlyName=chrome.cast.unescape(V.friendlyName),tG("onReceiverAction_ "+V.label+" / "+V.friendlyName+"-- "+D),D){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17723_session_)if(this.JSC$17723_session_.receiver_.label!=V.label)tG("onReceiverAction_: Stopping active receiver: "+this.JSC$17723_session_.receiver_.friendlyName),this.JSC$17723_session_.stop();else{tG("onReceiverAction_: Casting to active receiver.");this.JSC$17723_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17723_session_.screen_);break}switch(V.receiverType){case chrome.cast.ReceiverType.CUSTOM:PQ(this,new fe(this.JSC$17723_screenService_,V));break;case chrome.cast.ReceiverType.DIAL:PQ(this,new VF(this.JSC$17723_screenService_,V,this.JSC$17723_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:PQ(this,new Ux(this.JSC$17723_screenService_,V,this.config_));break;default:this.warn_("Unknown receiver type: "+V.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17723_session_&&
this.JSC$17723_session_.receiver_.label==V.label?this.JSC$17723_session_.stop():this.warn_("Stopping receiver w/o session: "+V.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.P.onDialLaunchRequested_=function(V){if(this.isDisposed())return Promise.reject(Error("al"));var D=V.receiver;D.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+D.friendlyName),D.receiverType=chrome.cast.ReceiverType.DIAL);var f=this.JSC$17723_session_?this.JSC$17723_session_.receiver_:null;if(!f||f.label!=D.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+D.friendlyName),Promise.reject(Error("bl"));if(f&&f.label==D.label&&f.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17723_session_.screen_)return tG("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17723_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+f.receiverType+'" to "dial" for '+D.friendlyName);PQ(this,new VF(this.JSC$17723_screenService_,D,this.JSC$17723_theme_,this.config_))}D=this.JSC$17723_session_;D.launchData_=V;D.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(V=D.launchData_.extraData||{},f=V.screenId||null,UPB(D)&&V.loungeToken?V.loungeTokenRefreshIntervalMs?V=t2V(D,{name:D.receiver_.friendlyName,screenId:V.screenId,loungeToken:V.loungeToken,dialId:D.launchData_.receiver.label,screenIdType:"shortLived"},V.loungeTokenRefreshIntervalMs):(_.Ah(Error("Yk`"+JSON.stringify(V))),V=PVc(D,f)):V=PVc(D,f)):V=f$R(D);return V};
_.P.onSessionEstablished_=function(V){var D=this;if(!this.isDisposed()&&!this.forceMirroring_){tG("New cast session ID: "+V.sessionId);var f=V.receiver;if(f.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17723_session_)if(f.receiverType==chrome.cast.ReceiverType.CAST)tG("Got resumed cast session before resumed mdx connection."),f.friendlyName=chrome.cast.unescape(f.friendlyName),PQ(this,new Ux(this.JSC$17723_screenService_,f,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var n=this.JSC$17723_session_.receiver_,t=Rg(this.JSC$17723_screenService_.getScreens(),n.label);t&&zQ(t,f.label)&&n.receiverType!=chrome.cast.ReceiverType.CAST&&f.receiverType==chrome.cast.ReceiverType.CAST&&(tG("onSessionEstablished_: manual to cast session change "+f.friendlyName),_.Mr(this.JSC$17723_session_),this.JSC$17723_session_=new Ux(this.JSC$17723_screenService_,f,this.config_),this.JSC$17723_session_.subscribe("sessionScreen",(0,_.F1)(this.onSessionScreen_,this,this.JSC$17723_session_)),
this.JSC$17723_session_.subscribe("sessionFailed",function(){return H1q(D,D.JSC$17723_session_)}),this.JSC$17723_session_.launchWithParams(null));
this.JSC$17723_session_.setCastSession(V)}}};
_.P.JSC$17725_getCastSession=function(){return this.JSC$17723_session_?this.JSC$17723_session_.JSC$17709_getCastSession():null};
_.P.onSessionRequestFailed_=function(V){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.vT)(V)),V.code!=chrome.cast.ErrorCode.CANCEL&&PQ(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.P.onReceiverUpdated_=function(V){tG("Receiver availability updated: "+V);if(!this.isDisposed()){var D=ne(this);this.hasCastReceiver_=V==chrome.cast.ReceiverAvailability.AVAILABLE;ne(this)!=D&&this.publish("yt-remote-cast2-availability-change",ne(this))}};
var J5J=function(V){var D=V.JSC$17723_screenService_.JSC$17705_getOnlineScreens(),f=V.JSC$17723_session_&&V.JSC$17723_session_.receiver_;V=_.dw(D,function(n){f&&zQ(n,f.label)&&(f=null);var t=n.uuid?n.uuid:n.id,J=r5X(this,n);J?(J.label=t,J.friendlyName=n.name):(J=new chrome.cast.Receiver(t,n.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM);return J},V);
f&&(f.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(f=new chrome.cast.Receiver(f.label,f.friendlyName),f.receiverType=chrome.cast.ReceiverType.CUSTOM),V.push(f));return V};
xU.prototype.JSC$17725_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=J5J(this),tG("Updating custom receivers: "+(0,_.vT)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.F1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",ne(this)))};
xU.prototype.setLaunchParams=xU.prototype.setLaunchParams;xU.prototype.setConnectedScreenStatus=xU.prototype.setConnectedScreenStatus;xU.prototype.stopSession=xU.prototype.JSC$17725_stopSession;xU.prototype.getCastSession=xU.prototype.JSC$17725_getCastSession;xU.prototype.requestSession=xU.prototype.requestSession;xU.prototype.init=xU.prototype.init;xU.prototype.dispose=xU.prototype.dispose;var $1q=[];var wXv=function(V){V.audioTrackId=null;V.trackData=null;V.playerState=-1;V.hasPrevious=!1;V.hasNext=!1;V.playerTime_=0;V.playerTimeAt_=_.Vd();V.seekableStart_=0;V.seekableEnd_=0;V.duration_=0;V.loadedTime=0;V.liveIngestionTime_=NaN;V.isLive_=!1};
_.P=MS.prototype;
_.P.reset=function(V){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;V&&(this.index=V.index,this.listId=V.listId,this.videoId=V.videoId,this.playerState=V.playerState,this.volume=V.volume,this.muted=V.muted,this.audioTrackId=V.audioTrackId,this.trackData=V.trackData,this.hasPrevious=V.hasPrevious,this.hasNext=V.hasNext,this.playerTime_=V.playerTime,this.playerTimeAt_=V.playerTimeAt,this.seekableStart_=V.seekableStart,this.seekableEnd_=V.seekableEnd,this.duration_=V.duration,this.loadedTime=
V.loadedTime,this.liveIngestionTime_=V.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.P.stopPlayer=function(){this.index=-1;this.videoId="";wXv(this)};
_.P.isPlaying=function(){return this.playerState==1};
_.P.isBuffering=function(){return this.playerState==3};
_.P.isAdPlaying=function(){return this.playerState==1081};
var oZ=function(V,D){V.playerTime_=D;V.playerTimeAt_=_.Vd()},QCo=function(V){switch(V.playerState){case 1:case 1081:return(_.Vd()-V.playerTimeAt_)/1E3+V.playerTime_;
case -1E3:return 0}return V.playerTime_};
MS.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Vd()-this.playerTimeAt_)/1E3:0):this.duration_};
var TCR=function(V,D,f){var n=V.videoId;V.videoId=D;V.index=f;D!=n&&wXv(V)},b1J=function(V){var D={};
D.index=V.index;D.listId=V.listId;D.videoId=V.videoId;D.playerState=V.playerState;D.volume=V.volume;D.muted=V.muted;D.audioTrackId=V.audioTrackId;D.trackData=_.sB.unsafeClone(V.trackData);D.hasPrevious=V.hasPrevious;D.hasNext=V.hasNext;D.playerTime=V.playerTime_;D.playerTimeAt=V.playerTimeAt_;D.seekableStart=V.seekableStart_;D.seekableEnd=V.seekableEnd_;D.duration=V.duration_;D.loadedTime=V.loadedTime;D.liveIngestionTime=V.liveIngestionTime_;return D};
MS.prototype.clone=function(){return new MS(b1J(this))};var JG=function(V,D){_.hy.call(this);var f=this;this.state_=0;this.connection_=V;this.contextSubscriptions_=[];this.actionQueue_=new Aew;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.F1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.F1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.F1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.F1)(this.onCloudviewAvailabilityChange_,this);var n=0;V?(n=V.getProxyState(),
n!=3&&(V.subscribe("proxyStateChange",this.setState_,this),KpZ(this))):n=3;n!=0&&(D?this.setState_(n):_.rO(function(){f.setState_(n)},0));
(V=pAw())&&y5w(this,V);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.v(JG,_.hy);JG.prototype.getState=function(){return this.state_};
JG.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
JG.prototype.reconnect=function(){this.connection_.reconnect()};
var r6=function(V){return new MS(V.connection_.getPlayerContextData())};
_.P=JG.prototype;_.P.play=function(){HQ(this)?(this.castMedia_?this.castMedia_.play(null,_.Kp,Z10(this,"play")):w6(this,"play"),jCV(this,1,QCo(r6(this))),this.publish("remotePlayerChange")):QF(this,this.play)};
_.P.pause=function(){HQ(this)?(this.castMedia_?this.castMedia_.pause(null,_.Kp,Z10(this,"pause")):w6(this,"pause"),jCV(this,2,QCo(r6(this))),this.publish("remotePlayerChange")):QF(this,this.pause)};
_.P.seekTo=function(V){if(HQ(this)){if(this.castMedia_){var D=r6(this),f=new chrome.cast.media.SeekRequest;f.currentTime=V;D.isPlaying()||D.isBuffering()?f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(f,_.Kp,Z10(this,"seekTo",{newTime:V}))}else w6(this,"seekTo",{newTime:V});jCV(this,3,V);this.publish("remotePlayerChange")}else QF(this,_.lC(this.seekTo,V))};
_.P.stop=function(){if(HQ(this)){this.castMedia_?this.castMedia_.stop(null,_.Kp,Z10(this,"stopVideo")):w6(this,"stopVideo");var V=r6(this);V.stopPlayer();Tf(this,V);this.publish("remotePlayerChange")}else QF(this,this.stop)};
_.P.setVolume=function(V,D){if(HQ(this)){var f=r6(this);if(this.castSession_){if(f.volume!=V){var n=Math.round(V)/100;this.castSession_.setReceiverVolumeLevel(n,(0,_.F1)(function(){ag("set receiver volume: "+n)},this),(0,_.F1)(function(){this.warn_("failed to set receiver volume.")},this))}f.muted!=D&&this.castSession_.setReceiverMuted(D,(0,_.F1)(function(){ag("set receiver muted: "+D)},this),(0,_.F1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var t={volume:V,
muted:D};f.volume!=-1&&(t.delta=V-f.volume);w6(this,"setVolume",t)}f.muted=D;f.volume=V;Tf(this,f)}else QF(this,_.lC(this.setVolume,V,D))};
_.P.setAudioTrack=function(V,D){HQ(this)?(D=D.getLanguageInfo().getId(),w6(this,"setAudioTrack",{videoId:V,audioTrackId:D}),V=r6(this),V.audioTrackId=D,Tf(this,V)):QF(this,_.lC(this.setAudioTrack,V,D))};
_.P.addVideo=function(V){HQ(this)?w6(this,"addVideo",{videoId:V}):QF(this,_.lC(this.addVideo,V))};
_.P.addPlaylist=function(V){HQ(this)?w6(this,"addVideos",{listId:V}):QF(this,_.lC(this.addPlaylist,V))};
_.P.addVideos=function(V){V.length==0?this.warn_("Ignore add videos request due to empty list"):HQ(this)?w6(this,"addVideos",{videoIds:V.join(",")}):QF(this,_.lC(this.addVideos,V))};
_.P.JSC$17735_removeVideo=function(V){HQ(this)?w6(this,"removeVideo",{videoId:V}):QF(this,_.lC(this.JSC$17735_removeVideo,V))};
_.P.JSC$17735_insertVideo=function(V){HQ(this)?w6(this,"insertVideo",{videoId:V}):QF(this,_.lC(this.JSC$17735_insertVideo,V))};
_.P.playVideo=function(V,D,f,n,t,J,H){n=n===void 0?null:n;t=t===void 0?null:t;J=J===void 0?null:J;H=H===void 0?null:H;var Q=r6(this),T={videoId:V};f!==void 0&&(T.currentIndex=f);TCR(Q,V,f||0);D!==void 0&&(oZ(Q,D),T.currentTime=D);n&&(T.listId=n);t&&(T.playerParams=t);J&&(T.clickTrackingParams=J);H&&(T.locationInfo=(0,_.vT)(H));w6(this,"setPlaylist",T);n||Tf(this,Q)};
_.P.nextVideo=function(V,D){if(HQ(this)){if(V&&D){var f=r6(this);TCR(f,V,D);Tf(this,f)}w6(this,"next")}else QF(this,_.lC(this.nextVideo,V,D))};
_.P.clearPlaylist=function(){if(HQ(this)){w6(this,"clearPlaylist");var V=r6(this);V.reset();Tf(this,V);this.publish("remotePlayerChange")}else QF(this,this.clearPlaylist)};
_.P.dispose=function(){if(this.state_!=3){var V=this.state_;this.state_=3;this.publish("proxyStateChange",V,this.state_)}_.hy.prototype.dispose.call(this)};
_.P.disposeInternal=function(){l$W(this);this.connection_=null;this.actionQueue_.clear();y5w(this,null);_.hy.prototype.disposeInternal.call(this)};
var KpZ=function(V){_.Sd("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(D){this.contextSubscriptions_.push(this.connection_.subscribe(D,_.lC(this.onProxyEvent_,D),this))},V)},l$W=function(V){_.Sd(V.contextSubscriptions_,function(D){this.connection_.unsubscribeByKey(D)},V);
V.contextSubscriptions_.length=0},HQ=function(V){return V.getState()==1},QF=function(V,D){V.actionQueue_.getCount()<50&&V.actionQueue_.enqueue(D)},jCV=function(V,D,f){var n=r6(V);
oZ(n,f);n.playerState!=-1E3&&(n.playerState=D);Tf(V,n)},w6=function(V,D,f){V.connection_.sendMessage(D,f)},Tf=function(V,D){l$W(V);
V.connection_.setPlayerContextData(b1J(D));KpZ(V)};
JG.prototype.setState_=function(V){if((V!=this.state_||V==2)&&this.state_!=3&&V!=0){var D=this.state_;this.state_=V;this.publish("proxyStateChange",D,V);if(V==1)for(;!this.actionQueue_.isEmpty();)V=this.actionQueue_,R2c(V),V.front_.pop().apply(this);else V==3&&this.dispose()}};
JG.prototype.onProxyEvent_=function(V,D){this.publish(V,D)};
var y5w=function(V,D){V.castSession_&&(V.castSession_.removeUpdateListener(V.boundCastStatusListener_),V.castSession_.removeMediaListener(V.boundCastMediaListener_),V.onCastMediaChange_(null));V.castSession_=D;if(V.castSession_&&(ag("Setting cast session: "+V.castSession_.sessionId),V.castSession_.addUpdateListener(V.boundCastStatusListener_),V.castSession_.addMediaListener(V.boundCastMediaListener_),V.castSession_.media.length))V.onCastMediaChange_(V.castSession_.media[0])};
JG.prototype.onCastStatusUpdate_=function(V){if(!V)this.onCastMediaChange_(null),y5w(this,null);else if(this.castSession_.receiver.volume){V=this.castSession_.receiver.volume;var D=r6(this),f=Math.round(100*V.level||0);if(D.volume!=f||D.muted!=V.muted)ag("Cast volume update: "+V.level+(V.muted?" muted":"")),D.volume=f,D.muted=!!V.muted,Tf(this,D)}};
JG.prototype.onCastMediaChange_=function(V){ag("Cast media: "+!!V);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=V)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),GbZ(this),this.publish("remotePlayerChange")};
var GbZ=function(V){var D=V.castMedia_.media,f=V.castMedia_.customData;if(D&&f){var n=r6(V);D.contentId!=n.videoId&&ag("Cast changing video to: "+D.contentId);n.videoId=D.contentId;n.playerState=f.playerState;oZ(n,V.castMedia_.getEstimatedTime());Tf(V,n)}else ag("No cast media video. Ignoring state update.")};
JG.prototype.onCastMediaUpdate_=function(V){if(V)GbZ(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
JG.prototype.onCloudviewAvailabilityChange_=function(){var V=pAw();V&&y5w(this,V)};
JG.prototype.warn_=function(V){Aw("CP",V)};
var Z10=function(V,D,f){return(0,_.F1)(function(n){this.warn_("Failed to "+D+" with cast v2 channel. Error code: "+n.code);n.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+D+" using MDx browser channel."),w6(this,D,f))},V)};var Ke=function(V,D,f,n){n=n===void 0?!1:n;_.hy.call(this);var t=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$17742_http_=V;this.enableConnectWithInitialState_=n;this.listeners_.push(_.MY(window,"beforeunload",function(){t.JSC$17745_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new MS;this.currentScreenId_=D.id;this.currentScreenIdType_=D.idType;this.channelService=b6B(this.JSC$17742_http_,f,this.JSC$17745_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){erR(t)});
this.channelService.listen("channelClosed",function(){b5("Channel closed");isNaN(t.connectTimerId_)?CK(!0):CK();t.dispose()});
this.channelService.listen("channelError",function(J){CK();isNaN(t.getReconnectTimeout_())?(J==1&&t.currentScreenIdType_=="shortLived"&&t.publish("browserChannelAuthError",J),b5("Channel error: "+J+" without reconnection"),t.dispose()):(t.reconnecting_=!0,b5("Channel error: "+J+" with reconnection in "+t.getReconnectTimeout_()+" ms"),c5B(t,2))});
this.channelService.listen("channelMessage",function(J){FpV(t,J)});
this.channelService.setLoungeToken(D.token);this.subscribe("remoteQueueChange",function(){var J=t.playerContext_.videoId;Uic()&&_.oC("yt-remote-session-video-id",J)})};
_.v(Ke,_.hy);
Ke.prototype.connect=function(V,D){if(D){var f=D.listId,n=D.videoId,t=D.videoIds,J=D.playerParams,H=D.clickTrackingParams,Q=D.index,T={videoId:n},y=D.currentTime,Z=D.locationInfo;D=D.loopMode;y!==void 0&&(T.currentTime=y<=5?0:y);J&&(T.playerParams=J);Z&&(T.locationInfo=Z);H&&(T.clickTrackingParams=H);f&&(T.listId=f);t&&t.length>0&&(T.videoIds=t.join(","));Q!==void 0&&(T.currentIndex=Q);this.enableConnectWithInitialState_&&(T.loopMode=D||"LOOP_MODE_OFF");f&&(this.playerContext_.listId=f);this.playerContext_.videoId=
n;this.playerContext_.index=Q||0;this.playerContext_.state=3;oZ(this.playerContext_,y);this.autoplayMode_="UNSUPPORTED";f=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";b5("Connecting with "+f+" and params: "+(0,_.vT)(T));this.channelService.connect({method:f,params:(0,_.vT)(T)},V,tJ3())}else b5("Connecting without params"),this.channelService.connect({},V,tJ3());gmf(this)};
Ke.prototype.setLoungeToken=function(V){this.channelService.setLoungeToken(V)};
Ke.prototype.dispose=function(){this.isDisposed()||(_.M4("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),c5B(this,3));_.hy.prototype.dispose.call(this)};
Ke.prototype.disposeInternal=function(){vmZ(this);kbw(this);sCV(this);_.wO(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.wO(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.poU(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.hy.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var BCR=function(V){return _.Ac(V.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"})},b5=function(V){Aw("conn",V)},c5B=function(V,D){V.publish("proxyStateChange",D)},gmf=function(V){V.connectTimerId_=_.rO(function(){b5("Connecting timeout");
V.JSC$17745_disconnect_(1)},2E4)},vmZ=function(V){_.wO(V.connectTimerId_);
V.connectTimerId_=NaN},sCV=function(V){_.wO(V.reconnectedCheckScreenTimeout_);
V.reconnectedCheckScreenTimeout_=NaN},dd3=function(V){kbw(V);
V.playingSyncTimerId_=_.rO(function(){yF(V,"getNowPlaying")},2E4)},kbw=function(V){_.wO(V.playingSyncTimerId_);
V.playingSyncTimerId_=NaN},erR=function(V){b5("Channel opened");
V.reconnecting_&&(V.reconnecting_=!1,sCV(V),V.reconnectedCheckScreenTimeout_=_.rO(function(){b5("Timing out waiting for a screen.");V.JSC$17745_disconnect_(1)},15E3))},NCw=function(V,D){var f=null;
if(D){var n=BCR(V);n&&(f={clientName:n.clientName,deviceMake:n.brand,deviceModel:n.model,osVersion:n.osVersion})}_.M4("yt.mdx.remote.remoteClient_",f);D&&(vmZ(V),sCV(V));f=V.channelService.isChannelOpened()&&isNaN(V.connectTimerId_);D==f?D&&(c5B(V,1),yF(V,"getSubtitlesTrack")):D?(V.getOtherConnectedRemoteId_()&&V.playerContext_.reset(),c5B(V,1),yF(V,"getNowPlaying"),u_w(V)):V.JSC$17745_disconnect_(1)},mdc=function(V,D){var f=D.params.videoId;
delete D.params.videoId;f==V.playerContext_.videoId&&(_.sB.isEmpty(D.params)?V.playerContext_.trackData=null:V.playerContext_.trackData=D.params,V.publish("remotePlayerChange"))},zrV=function(V,D,f){var n=D.params.videoId||D.params.video_id,t=parseInt(D.params.currentIndex,10);
V.playerContext_.listId=D.params.listId||V.playerContext_.listId;TCR(V.playerContext_,n,t);V.publish("remoteQueueChange",f)},RrZ=function(V,D){D.params=D.params||{};
zrV(V,D,"NOW_PLAYING_MAY_CHANGE");V.onStateChange_(D);V.publish("autoplayDismissed")};
Ke.prototype.onStateChange_=function(V){var D=parseInt(V.params.currentTime||V.params.current_time,10);oZ(this.playerContext_,isNaN(D)?0:D);D=parseInt(V.params.state,10);D=isNaN(D)?-1:D;D==-1&&this.playerContext_.playerState==-1E3&&(D=-1E3);this.playerContext_.playerState=D;D=Number(V.params.loadedTime);this.playerContext_.loadedTime=isNaN(D)?0:D;D=Number(V.params.duration);this.playerContext_.duration_=isNaN(D)?0:D;D=this.playerContext_;var f=Number(V.params.liveIngestionTime);D.liveIngestionTime_=
f;D.isLive_=isNaN(f)?!1:!0;D=this.playerContext_;f=Number(V.params.seekableStartTime);V=Number(V.params.seekableEndTime);D.seekableStart_=isNaN(f)?0:f;D.seekableEnd_=isNaN(V)?0:V;this.playerContext_.playerState==1?dd3(this):kbw(this);this.publish("remotePlayerChange")};
Ke.prototype.onAdStateChange_=function(V){if(this.playerContext_.playerState!=-1E3){var D=1085;switch(parseInt(V.params.adState,10)){case 1:D=1081;break;case 2:D=1084;break;case 0:D=1083}this.playerContext_.playerState=D;V=parseInt(V.params.currentTime,10);oZ(this.playerContext_,isNaN(V)?0:V);this.publish("remotePlayerChange")}};
var CVB=function(V,D){var f=D.params.muted=="true";V.playerContext_.volume=parseInt(D.params.volume,10);V.playerContext_.muted=f;V.publish("remotePlayerChange")},qY3=function(V,D){V.autoplayVideoId_=D.params.videoId;
V.publish("nowAutoplaying",parseInt(D.params.timeout,10))},XXV=function(V,D){V.autoplayVideoId_=D.params.videoId||null;
V.publish("autoplayUpNext",V.autoplayVideoId_)},EmX=function(V,D){V.autoplayMode_=D.params.autoplayMode;
V.publish("autoplayModeChange",V.autoplayMode_);V.autoplayMode_=="DISABLED"&&V.publish("autoplayDismissed")},A5X=function(V,D){var f=D.params.hasNext=="true";
V.playerContext_.hasPrevious=D.params.hasPrevious=="true";V.playerContext_.hasNext=f;V.publish("previousNextChange")};
Ke.prototype.isCapabilitySupportedOnConnectedDevices_=function(V){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var D=_.r(this.connectedDevices_),f=D.next();!f.done;f=D.next())if(!f.value.capabilities.has(V))return!1;return!0};
var FpV=function(V,D){D=D.message;D.params?b5("Received: action="+D.action+", params="+(0,_.vT)(D.params)):b5("Received: action="+D.action+" {}");switch(D.action){case "loungeStatus":D=(0,_.ko)(D.params.devices);V.connectedDevices_=_.dw(D,function(n){return new Iy(n)});
D=!!_.Ac(V.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
NCw(V,D);D=V.isCapabilitySupportedOnConnectedDevices_("mlm");V.publish("multiStateLoopEnabled",D);break;case "loungeScreenDisconnected":yB0(V.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
NCw(V,!1);break;case "remoteConnected":var f=new Iy((0,_.ko)(D.params.device));_.Ac(V.connectedDevices_,function(n){return n.equals(f)})||_.px(V.connectedDevices_,f);
break;case "remoteDisconnected":f=new Iy((0,_.ko)(D.params.device));yB0(V.connectedDevices_,function(n){return n.equals(f)});
break;case "gracefulDisconnect":break;case "playlistModified":zrV(V,D,"QUEUE_MODIFIED");break;case "nowPlaying":RrZ(V,D);break;case "onStateChange":V.onStateChange_(D);break;case "onAdStateChange":V.onAdStateChange_(D);break;case "onVolumeChanged":CVB(V,D);break;case "onSubtitlesTrackChanged":mdc(V,D);break;case "nowAutoplaying":qY3(V,D);break;case "autoplayDismissed":V.publish("autoplayDismissed");break;case "autoplayUpNext":XXV(V,D);break;case "onAutoplayModeChanged":EmX(V,D);break;case "onHasPreviousNextChanged":A5X(V,
D);break;case "requestAssistedSignIn":V.publish("assistedSignInRequested",D.params.authCode);break;case "onLoopModeChanged":V.publish("loopModeChange",D.params.loopMode);break;default:b5("Unrecognized action: "+D.action)}};
_.P=Ke.prototype;_.P.getProxyState_=function(){var V=3;this.isDisposed()||(V=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(V=1):V=2);return V};
_.P.JSC$17745_disconnect_=function(V){b5("Disconnecting with "+V);_.M4("yt.mdx.remote.remoteClient_",null);vmZ(this);this.publish("beforeDisconnect",V);V==1&&CK();this.channelService.disconnect(V);this.dispose()};
_.P.getPlayerContextData_=function(){var V=this.playerContext_;this.clientVideoId_&&(V=this.playerContext_.clone(),TCR(V,this.clientVideoId_,V.index));return b1J(V)};
_.P.setPlayerContextData_=function(V){var D=this,f=new MS(V);f.videoId&&f.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=f.videoId,_.wO(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.rO(function(){if(D.clientVideoId_){var t=D.clientVideoId_;D.clientVideoId_=null;D.playerContext_.videoId!=t&&yF(D,"getNowPlaying")}},5E3));
var n=[];this.playerContext_.listId==f.listId&&this.playerContext_.videoId==f.videoId&&this.playerContext_.index==f.index||n.push("remoteQueueChange");this.playerContext_.playerState==f.playerState&&this.playerContext_.volume==f.volume&&this.playerContext_.muted==f.muted&&QCo(this.playerContext_)==QCo(f)&&(0,_.vT)(this.playerContext_.trackData)==(0,_.vT)(f.trackData)||n.push("remotePlayerChange");this.playerContext_.reset(V);_.Sd(n,function(t){this.publish(t)},this)};
_.P.getOtherConnectedRemoteId_=function(){var V=this.channelService.getDeviceId(),D=_.Ac(this.connectedDevices_,function(f){return f.type=="REMOTE_CONTROL"&&f.id!=V});
return D?D.id:""};
_.P.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.P.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.P.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.P.JSC$17745_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var u_w=function(V){_.wO(V.idleDisconnectTimerId_);V.idleDisconnectTimerId_=_.rO(function(){V.JSC$17745_disconnect_(1)},864E5)},yF=function(V,D,f){f?b5("Sending: action="+D+", params="+(0,_.vT)(f)):b5("Sending: action="+D);
V.channelService.sendMessage(D,f)};
Ke.prototype.sendMessageWithUserAction_=function(V,D){yF(this,V,D);u_w(this)};
Ke.prototype.JSC$17745_getXsrfToken_=function(){var V=_.ZY.get("SAPISID","")||_.ZY.get("__Secure-1PAPISID",void 0)||"",D=_.ZY.get("__Secure-3PAPISID","")||"";if(!V&&!D)return"";V=_.V3(_.eB(V),2);D=_.V3(_.eB(D),2);return _.V3(_.eB(","+V+","+D),2)};
Ke.prototype.subscribe=Ke.prototype.subscribe;Ke.prototype.unsubscribeByKey=Ke.prototype.unsubscribeByKey;Ke.prototype.getProxyState=Ke.prototype.getProxyState_;Ke.prototype.disconnect=Ke.prototype.JSC$17745_disconnect_;Ke.prototype.getPlayerContextData=Ke.prototype.getPlayerContextData_;Ke.prototype.setPlayerContextData=Ke.prototype.setPlayerContextData_;Ke.prototype.getOtherConnectedRemoteId=Ke.prototype.getOtherConnectedRemoteId_;Ke.prototype.getReconnectTimeout=Ke.prototype.getReconnectTimeout_;
Ke.prototype.getAutoplayMode=Ke.prototype.getAutoplayMode_;Ke.prototype.getAutoplayVideoId=Ke.prototype.getAutoplayVideoId_;Ke.prototype.reconnect=Ke.prototype.JSC$17745_reconnect_;Ke.prototype.sendMessage=Ke.prototype.sendMessageWithUserAction_;Ke.prototype.getXsrfToken=Ke.prototype.JSC$17745_getXsrfToken_;Ke.prototype.isCapabilitySupportedOnConnectedDevices=Ke.prototype.isCapabilitySupportedOnConnectedDevices_;var a$o=function(V){$U.call(this,"ScreenServiceProxy");this.instance_=V;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.F1)(this.JSC$17748_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.F1)(this.onOnlineScreenChange_,this)))};
_.v(a$o,$U);_.P=a$o.prototype;_.P.getScreens=function(V){return this.instance_.$_gs(V)};
_.P.contains=function(V){return!!this.instance_.$_c(V)};
_.P.get=function(V){return this.instance_.$_g(V)};
_.P.start=function(){this.instance_.$_st()};
_.P.add=function(V,D,f){this.instance_.$_a(V,D,f)};
_.P.remove=function(V,D,f){this.instance_.$_r(V,D,f)};
_.P.updateName=function(V,D,f,n){this.instance_.$_un(V,D,f,n)};
_.P.disposeInternal=function(){for(var V=this.subscriptionKeys_.length,D=0;D<V;++D)this.instance_.$_ubk(this.subscriptionKeys_[D]);this.subscriptionKeys_.length=0;this.instance_=null;$U.prototype.disposeInternal.call(this)};
_.P.JSC$17748_onScreenChange_=function(){this.publish("screenChange")};
_.P.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Wa.prototype.$_st=Wa.prototype.start;Wa.prototype.$_gspc=Wa.prototype.JSC$17705_getScreenByPairingCode;Wa.prototype.$_gsppc=Wa.prototype.JSC$17705_getScreenByPollingPairingCode;Wa.prototype.$_c=Wa.prototype.contains;Wa.prototype.$_g=Wa.prototype.get;Wa.prototype.$_a=Wa.prototype.add;Wa.prototype.$_un=Wa.prototype.updateName;Wa.prototype.$_r=Wa.prototype.remove;Wa.prototype.$_gs=Wa.prototype.getScreens;Wa.prototype.$_gos=Wa.prototype.JSC$17705_getOnlineScreens;Wa.prototype.$_s=Wa.prototype.subscribe;
Wa.prototype.$_ubk=Wa.prototype.unsubscribeByKey;var Lp0=function(V){rRZ();if(!qS||!qS.get("yt-remote-disable-remote-module-for-dev")){V=_.XB("MDX_CONFIG")||V;vC3();D1w();ZV||(ZV=new NS(V?V.loungeApiHost:void 0),H6w()&&(ZV.basePath="/api/loungedev"));ew||(ew=_.Yw("yt.mdx.remote.deferredProxies_")||[],_.M4("yt.mdx.remote.deferredProxies_",ew));YYR();var D=cQ();if(!D){var f=new Wa(ZV,V?V.disableAutomaticScreenCache||!1:!1);_.M4("yt.mdx.remote.screenService_",f);D=cQ();var n={};V&&(n={appId:V.appId,disableDial:V.disableDial,theme:V.theme,loadCastApiSetupScript:V.loadCastApiSetupScript,
disableCastApi:V.disableCastApi,enableDialLoungeToken:V.enableDialLoungeToken,enableCastLoungeToken:V.enableCastLoungeToken,forceMirroring:V.forceMirroring});_.M4("yt.mdx.remote.enableConnectWithInitialState_",V?V.enableConnectWithInitialState||!1:!1);alX(f,function(J){J?FU()&&Il0(FU(),"YouTube TV"):f.subscribe("onlineScreenChange",function(){tw("yt-remote-receiver-availability-change")})},n)}if(V&&!_.Yw("yt.mdx.remote.initialized_")){_.M4("yt.mdx.remote.initialized_",!0);
g6("Initializing: "+(0,_.vT)(V));vQ.push(_.tk("yt-remote-cast2-api-ready",function(){tw("yt-remote-api-ready")}));
vQ.push(_.tk("yt-remote-cast2-availability-change",function(){tw("yt-remote-receiver-availability-change")}));
vQ.push(_.tk("yt-remote-cast2-receiver-selected",function(){$df();tw("yt-remote-auto-connect","cast-selector-receiver")}));
vQ.push(_.tk("yt-remote-cast2-receiver-resumed",function(){tw("yt-remote-receiver-resumed","cast-selector-receiver")}));
vQ.push(_.tk("yt-remote-cast2-session-change",i1Z));vQ.push(_.tk("yt-remote-connection-change",function(J){J?Il0(FU(),"YouTube TV"):SYc()||(Il0(null,null),Wgf())}));
vQ.push(_.tk("yt-remote-cast2-session-failed",function(){tw("yt-remote-connection-failed")}));
n=WpX();V.isAuto&&(n.id+="#dial");var t=V.capabilities||[];t.length>0&&(n.capabilities=t);n.name=V.device;n.app=V.app;(V=V.theme)&&(n.theme=V);g6(" -- with channel params: "+(0,_.vT)(n));n?(_.oC("yt-remote-session-app",n.app),_.oC("yt-remote-session-name",n.name)):(_.rC("yt-remote-session-app"),_.rC("yt-remote-session-name"));_.M4("yt.mdx.remote.channelParams_",n);D.start();FU()||pXR()}}},O1Z=function(){var V=cQ().instance_.$_gos();
var D=I$c();D&&k6()&&(xiv(V,D)||V.push(D));return Olv(V)},xdV=function(){var V=O1Z(),D=I$c();
D||(D=SYc());return _.Ac(V,function(f){return D&&zQ(D,f.key)?!0:!1})},I$c=function(){var V=FU();
if(!V)return null;var D=cQ().getScreens();return Rg(D,V)},i1Z=function(V){g6("remote.onCastSessionChange_: "+O6X(V));
if(V){var D=I$c();D&&D.id==V.id?(Il0(D.id,"YouTube TV"),V.idType=="shortLived"&&(V=V.token)&&(D=k6())&&D.setLoungeToken(V)):(D&&M23(),hrf(V,1))}else k6()&&M23()},M23=function(){Lgc()?Oa().stopSession():Ig("stopSession called before API ready.");
var V=k6();V&&(V.disconnect(1),Udq(null))},VHX=function(){var V=k6();
return V&&V.getProxyState()!=3?new JG(k6(),void 0):null},g6=function(V){Aw("remote",V)},cQ=function(){if(!DCV){var V=_.Yw("yt.mdx.remote.screenService_");
DCV=V?new a$o(V):null}return DCV},FU=function(){return _.Yw("yt.mdx.remote.currentScreenId_")},f6V=function(V){_.M4("yt.mdx.remote.currentScreenId_",V)},$df=function(){_.M4("yt.mdx.remote.connectData_",null)},k6=function(){return _.Yw("yt.mdx.remote.connection_")},Udq=function(V){var D=k6();
$df();V||f6V("");_.M4("yt.mdx.remote.connection_",V);ew&&(_.Sd(ew,function(f){f(V)}),ew.length=0);
D&&!V?tw("yt-remote-connection-change",!1):!D&&V&&tw("yt-remote-connection-change",!0)},SYc=function(){var V=Uic();
if(!V)return null;var D=cQ();if(!D)return null;D=D.getScreens();return Rg(D,V)},hrf=function(V,D){f6V(V.id);
V=new Ke(ZV,V,WpX(),_.Yw("yt.mdx.remote.enableConnectWithInitialState_")||!1);V.connect(D,_.Yw("yt.mdx.remote.connectData_"));V.subscribe("beforeDisconnect",function(f){tw("yt-remote-before-disconnect",f)});
V.subscribe("beforeDispose",function(){k6()&&Udq(null)});
V.subscribe("browserChannelAuthError",function(){var f=I$c();f&&f.idType=="shortLived"&&(Lgc()?Oa().handleBrowserChannelAuthError():Ig("refreshLoungeToken called before API ready."))});
Udq(V)},pXR=function(){var V=SYc();
V?(g6("Resume connection to: "+O6X(V)),hrf(V,0)):(CK(),Wgf(),g6("Skipping connecting because no session screen found."))},ZV=null,ew=null,DCV=null,YYR=function(){var V=WpX();
if(_.sB.isEmpty(V)){V=hiR();var D=_.J5("yt-remote-session-name")||"",f=_.J5("yt-remote-session-app")||"";V={device:"REMOTE_CONTROL",id:V,name:D,app:f,mdxVersion:3};V.authuser=String(_.XB("SESSION_INDEX","0"));(D=_.XB("DELEGATED_SESSION_ID"))&&(V.pageId=String(D));_.M4("yt.mdx.remote.channelParams_",V)}},WpX=function(){return _.Yw("yt.mdx.remote.channelParams_")||{}},vQ=[];var nLZ=new _.qY("yt-menu"),tHV=function(){},oLq=function(V,D,f){V=D=="right-click"?f.rightClickMenuPopupHint:f.menuPopupHint;
if(!(Pz3(D)>10))return D=D||"default",nLZ.set(D+"-impression",Pz3(D)+1),V},Pz3=function(V){return parseInt(nLZ.get((V||"default")+"-impression")||0,10)};
_.U5(tHV);var JvB=function(){this.contexts_=new WeakMap;this.JSC$17754_networkService_=this.activeContext_=null},rvV=function(V,D,f){var n=V.contexts_.get(D);
n||(n=new Ffq(V.JSC$17754_networkService_),V.contexts_.set(D,n));V.activeContext_=n;f&&V.activeContext_.reset();V.activeContext_.start();return V.activeContext_};var sJ=function(){};
sJ.prototype.enqueue=function(){var V=this,D;return _.w(function(f){if(V.isCounterfactual())return(D=V.getCounterfactualData())&&V.shouldLogCounterfactualImpression()&&V.sendImpressionEndpoints(D),f.return();V.doEnqueue();_.yz(f)})};
sJ.prototype.sendImpressionEndpoints=function(V){_.Yb.getInstance().triggerOptionalAction("yt-service-request",{},V[0])};var BQ=function(V,D){this.renderer=V;this.page=D};
_.v(BQ,sJ);BQ.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
BQ.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
BQ.prototype.shouldLogCounterfactualImpression=function(){return!0};
BQ.prototype.doEnqueue=function(){var V=_.Ma(this.page);V&&V.pause();this.renderer.impressionCommand&&_.Yb.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.dl(_.Yb.getInstance(),[this.renderer.promoCommand],this.page)};var HtW=function(V,D){this.renderer=V;this.resolver=_.Sl();this.JSC$17766_enforcementCounter=new _.hBY;D?this.JSC$17766_playerManager=_.Ma(D):this.JSC$17766_playerManager=null;_.KR(1,!0)};
_.v(HtW,sJ);_.P=HtW.prototype;_.P.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var V=[];this.renderer.impressionEndpoints.forEach(function(D){(D=_.Xo(D))&&V.push(D)});
return V}};
_.P.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.P.shouldLogCounterfactualImpression=function(){var V=_.LnU();V?(this.JSC$17766_enforcementCounter.increment("POPUP"),_.KR(3)):_.KR(2);return V};
_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.doEnqueue=function(){var V=this;_.LnU()?(this.JSC$17766_enforcementCounter.increment("POPUP"),_.KR(3),wOB(this)):this.JSC$17766_playerManager?(this.resolver.promise.then(function(){wOB(V)}),QKX(this.resolver,this.JSC$17766_playerManager)):_.KR(2)};
var QKX=function(V,D){var f=_.Sl();D.getPlayerPromise().then(function(n){f.resolve(n)});
f.promise.then(function(n){n.addEventListener("onAbnormalityDetected",V.resolve);_.cT(V.promise,function(){n.removeEventListener("onAbnormalityDetected",V.resolve)})});
V.promise.thenCatch(function(){f.promise.cancel()})},wOB=function(V){_.KR(3);
var D={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:V.renderer}};D=_.Yb.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{});Promise.all(D).then(function(){TMq();V.JSC$17766_playerManager&&V.JSC$17766_playerManager.pause()})},TMq=function(){Vec(function(V,D){_.U4X(V,D);
V===0?_.KR(7):_.KR(4)})};var bt3=function(V,D){this.renderer=V;this.page=D;this.resolver=_.Sl()};
_.v(bt3,sJ);_.P=bt3.prototype;_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var V=this;this.resolver.promise.then(function(){var f={popup:{mealbarPromoRenderer:V.renderer},popupType:"MEALBAR"};_.Yb.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var D=_.Ma(this.page);D&&K9R(this.resolver,D)}break;default:this.resolver.resolve()}};
var K9R=function(V,D){var f=_.Sl();D.getPlayerPromise().then(function(n){f.resolve(n)});
f.promise.then(function(n){n.addEventListener("onAdEnd",V.resolve);_.cT(V.promise,function(){n.removeEventListener("onAdEnd",V.resolve)})});
V.promise.thenCatch(function(){f.promise.cancel()})};var yv3=function(V,D){this.renderer=V;this.page=D};
_.v(yv3,sJ);_.P=yv3.prototype;_.P.cancel=function(){this.JSC$17774_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17774_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17774_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var V=this,D,f;((D=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(f=D.playbackUpsellDialogTriggerConditionData)==null?void 0:f.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17774_downloadedVideosCountSelectorUnsubscriber=_.yX(_.Ol(),OhR,function(n,t){n>t&&(ZtB(V),V.cancel())}):ZtB(this)};
var ZtB=function(V){var D={popup:{upsellDialogRenderer:V.renderer},popupType:"MODAL"};_.Yb.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{});(V=_.Ma(V.page))&&V.pause()};var d6={},jKR=(d6.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",d6.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",d6.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",d6.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",d6.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",d6.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",d6.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",d6),l6q=function(V,D){this.renderer=V;this.targetManager=
D};
_.v(l6q,sJ);_.P=l6q.prototype;_.P.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17781_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17781_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17781_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){if(this.isCounterfactual()){var V;return(V=this.renderer.promoConfig)==null?void 0:V.impressionEndpoints}};
_.P.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var V=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17781_downloadedVideosCountSelectorUnsubscriber=_.yX(_.Ol(),OhR,function(D,f){V.renderer.targetId&&D>f&&(Ymq(V.targetManager,V.renderer.targetId,G00(V)),V.cancel())});
break;default:Ymq(this.targetManager,this.renderer.targetId,G00(this))}};
var G00=function(V){var D;if((D=V.renderer.suggestedPosition)==null?0:D.type)var f=jKR[V.renderer.suggestedPosition.type];f||(f="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:V.renderer},popupType:"HINT",position:f}}};var egR=function(){this.previousPage=null},cvV;
egR.prototype.registerPromoCommand=function(V,D){F9W(this,void 0,void 0,_.g(V.roadblock,ATB),void 0,void 0,D)};
var F9W=function(V,D,f,n,t,J,H){V.previousPage!==H&&V.pendingTooltipPromo&&V.pendingTooltipPromo.cancel();V.previousPage=H;t?(V.pendingEnforcementPromo&&V.pendingEnforcementPromo.cancel(),V.pendingEnforcementPromo=new HtW(t,H),V.pendingEnforcementPromo.enqueue()):J?(V.pendingCommandWrapperPromo=new BQ(J,H),V.pendingCommandWrapperPromo.enqueue()):n?(V.pendingRoadblockPromo&&V.pendingRoadblockPromo.cancel(),V.pendingRoadblockPromo=new yv3(n,H),V.pendingRoadblockPromo.enqueue()):D?(V.pendingMealbarPromo&&
V.pendingMealbarPromo.cancel(),V.pendingMealbarPromo=new bt3(D,H),V.pendingMealbarPromo.enqueue()):f&&(V.pendingTooltipPromo&&V.pendingTooltipPromo.cancel(),V.pendingTooltipPromo=new l6q(f,_.cX()),V.pendingTooltipPromo.enqueue())},gLB=function(){cvV||(cvV=new egR);
return cvV};var U1o=!1;var W8R=function(V,D){var f=_.XB("SESSION_INDEX");this.actionToken_=V;this.commonToken_=D;this.sessionIndex_=f},Sr3=function(V){var D=_.Sl(),f=_.Yw("payments.business.integration.bootstrap"),n=_.Yw("payments.business.integration"),t=n.Style.create().withMaterialDesignStyle(),J=n.mashupMode.popup("instrument-manager");
f.asMashupMode(J).usingUserIndex(V.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(t).inStandaloneContext(n.standaloneContextAuthId.forUserId()).instrumentManager(V.actionToken_,V.commonToken_.length>0?V.commonToken_:void 0,function(H){var Q=H.instrumentId;Q?D.resolve(Q):(Q=_.Yw("payments.business.integration.scenario.InstrumentManager"),D.reject(H.errorCode&&H.errorCode===Q.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(H){_.Ah(H);
D.reject("instrumentManagerLoadError")});
return D.promise};var fM=function(V,D,f){this.payloadName="transactionFlowFailed";this.payload={errorType:V,serializedTransactionFlowLoggingParams:D,isUserDismiss:f===void 0?!1:f}};
_.M4("yt.ypc.shared.YpcTransactionFlowError",fM);var u5=function(){return _.lU.apply(this,arguments)||this};
_.v(u5,_.lU);u5.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
u5.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
u5.prototype.onErrorMessageDismiss=u5.prototype.onErrorMessageDismiss;_.S([_.q({readOnly:!0,observer:"errorRendererChanged"}),_.p("design:type",Object)],u5.prototype,"errorRenderer",void 0);_.S([_.bU("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u5.prototype,"onErrorMessageDismiss",null);_.S([_.Gy()],u5);var vL3=[u5.prototype];var k00;var sKZ;var BMB=new _.qY("yt-live-chat"),dCq=new Map;dCq.set("timestamp_toggle","show-timestamps");dCq.set("reactions_toggle","allow-reactions");var ND=function(){return _.E.apply(this,arguments)||this};
_.v(ND,_.E);_.P=ND.prototype;_.P.menuItemIdentifierChanged=function(){var V;(V=this.data)!=null&&V.menuItemIdentifier&&(V=dCq.get(this.data.menuItemIdentifier))&&(_.c("enable_lwe_web_mute")?(V=BMB.get(V),this.isToggled=!(V===void 0?!this.data.isToggled:!V)):this.isToggled=BMB.get(V))};
_.P.onFocus=function(){this.toggleButton.focus()};
_.P.onTap=function(){var V=this.data.command;V&&this.componentBehavior.resolveCommand(V)};
_.P.computeText=function(V,D,f){return this.componentBehavior.getSimpleString(V?f:D)};
_.P.computeIcon=function(V,D,f){return(V=V?f:D)&&V.iconType?_.Qa(V.iconType):""};
ND.prototype.onTap=ND.prototype.onTap;ND.prototype.onFocus=ND.prototype.onFocus;ND.prototype.menuItemIdentifierChanged=ND.prototype.menuItemIdentifierChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ND.prototype,"componentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ND.prototype,"data",void 0);
_.S([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],ND.prototype,"icon",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],ND.prototype,"isToggled",void 0);_.S([_.Zv("tp-yt-paper-toggle-button"),_.p("design:type",Object)],ND.prototype,"toggleButton",void 0);_.S([_.KI("data.menuItemIdentifier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ND.prototype,"menuItemIdentifierChanged",null);
_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ND.prototype,"onFocus",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ND.prototype,"onTap",null);_.S([_.zy({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],ND);
_.Y(ND,"yt-live-chat-toggle-renderer",function(){if(sKZ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;k00===void 0&&(k00=document.createElement("template"));var n=k00;f.call(D,n.content.cloneNode(!0),V.content.firstChild);sKZ=V}V=sKZ;return V},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var uAw=new _.IH("NAVIGATION_PROGRESS_TOKEN");var NMW={},mCo={},zgf=(mCo[sIv.name]=!0,mCo),mu=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;V.tabGesturesIsActive=!1;V.actionRouterIsRoot=!0;V.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"};V.pageTitle="";V.titleSuffix="YouTube";V.unseenNotificationCount=
0;V.hasNavigated=!1;V.hasSetScrollTopForNavigation=!1;V.pagePreparer=null;V.zwiebackInitJobId=0;V.dataUpdatePromise=null;V.loadDepsPromise=_.Qv();V.hasPendingNavigation=!1;V.pendingPlayerOnResponseReceivedActions=[];return V};
_.v(mu,_.lU);mu.prototype.attached=function(){RgW(this);document.addEventListener("yt-navigate-cache",_.Ty(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var V=zf();V.init();V.dispatchElement=this.hostElement};
var RgW=function(V,D){D=D===void 0?0:D;var f=_.DY().resolve(_.Vx(_.e2));if(f)CzB(V,f);else{if(D>=5)throw Error("cl");setTimeout(function(){RgW(V,D+1)},0)}},CzB=function(V,D){D.addEventListener("yt-navigate-start",_.Ty(V,V.onYtNavigateStart));
D.addEventListener("yt-navigate-finish",_.Ty(V,V.onYtNavigateFinish));D.addEventListener("yt-navigate-error",_.Ty(V,V.onYtNavigateError));D.addEventListener("yt-page-data-fetched",_.Ty(V,V.onYtPageDataFetched))};
_.P=mu.prototype;_.P.detached=function(){var V=_.DY().resolve(_.e2);V.removeEventListener("yt-navigate-start",_.Ty(this,this.onYtNavigateStart));V.removeEventListener("yt-navigate-finish",_.Ty(this,this.onYtNavigateFinish));V.removeEventListener("yt-navigate-error",_.Ty(this,this.onYtNavigateError));V.removeEventListener("yt-page-data-fetched",_.Ty(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Ty(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.P.setPageOffset=function(V,D){V?_.o4(this.hostElement,"yt-set-page-offset",[V,D]):_.NG(Error("dl"))};
_.P.setPageOffsetForNavigation=function(V,D){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(V,D))};
_.P.onYtNavigateSetPageOffset=function(V,D){this.setPageOffsetForNavigation(D.page,D.offset)};
_.P.getPageOffset=function(){var V=_.Pt(this.hostElement).querySelector("#page-manager").getCurrentPage(),D=0;V&&(D=_.o4(this.hostElement,"yt-get-page-offset",[V])[0]);return D};
_.P.onYtHistoryPop=function(V,D){if(_.EG("DISABLE_WARM_LOADS"))V.preventDefault(),window.location.reload();else{var f=_.DY().resolve(_.e2);f.hasPendingNavigation()&&V.preventDefault();f.cancelPendingNavigation();_.JR(this.hostElement,"yt-pending-navigation-cancelled");D.errorMsg&&(V=D.errorMsg.split(" - "),D=Error(V[0]),V.length==2&&V[1]&&(_.R2(D,V[1]),_.zP(D)),window.location.reload())}};
_.P.onYtHistoryLoad=function(V,D){var f=this;if(_.EG("DISABLE_WARM_LOADS"))window.location.reload();else{(V=D.endpoint)&&Object.keys(V).length||(V=null);var n=D.historyEntry,t=_.DY().resolve(_.e2),J=_.DY().resolve(_.xl),H=null;n&&n.rootData&&(H=n.rootData);var Q=H&&q6X(H);!H||Q||H.filler?V?(t.navigate(V,!0),XOJ(this,V)):(D.legacyBorder||Q||(D.JSC$26832_savedComponentState==null&&H==null?_.zP(new _.cI("Incomplete history entry",D.forward)):_.mw(new _.cI("Malformed history entry",D.JSC$26832_savedComponentState,
D.forward,H))),window.location.reload()):(_.oGd({isHot:!0}),_.N1({webInfo:{navigationReason:"h"}}),_.cSF(),_.zm("srt"),_.zm("pdc"),this.cancelPendingTasks(),ELV(this,D.forward,H),H.player&&(H.player.loaded=!1),XOJ(this,V),_.lqo(t,V||{},H,2,{},!1,D).then(function(){f.setPageOffset(J.getCurrentPage(),n.scrollTop||0)}))}};
_.P.initHistoryManager=function(V){if(!this.hasNavigated){this.hasNavigated=!0;var D=_.Pt(this.hostElement).querySelector("#page-manager").getCurrentData();V=isNaN(V)?this.getPageOffset():V;var f=_.DY().resolve(_.e2).currentEndpoint;this.replaceState(f,D,V)}};
_.P.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.P.onYtNavigateStart=function(V,D){this.cancelPendingTasks();D.noProgressBar||(V=_.DY().resolve(_.Vx(uAw)))&&V.start();V=this.hasPendingNavigation?null:this.data;var f=_.DY().resolve(_.xl),n,t,J;_.c("kevlar_use_vimio_behavior")&&!((n=D.endpoint)==null?0:(t=n.commandMetadata)==null?0:(J=t.webCommandMetadata)==null?0:J.ignoreNavigation)&&(n=f.getCurrentPage())&&n.disconnectVisibilityRoot();f.prepareForNavigation(D.pageType,D.endpoint);_.c("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.h5(1,
"pcl"),_.UY(this.pagePreparer,f.preparePage.bind(f,D.pageType,D.endpoint)));n=this.getPageOffset();this.initHistoryManager(n);D.reload||this.hasPendingNavigation?this.replaceState(D.endpoint,V,n):(V==null?void 0:V.page)==="watch"&&D.pageType==="watch"&&_.c("kevlar_replace_watch_to_watch_history_state")?this.replaceState(D.endpoint,V,n):(V==null?void 0:V.page)!=="shorts"||D.pageType!=="shorts"||D.endpoint.reelWatchEndpoint.sequenceParams||_.c("short_to_short_back_nav_killswitch")?D.type!="navigate-back"&&
D.type!="navigate-forward"&&(D.pageType==="shorts"&&_.PA(this.hostElement,"yt-shorts-reset"),this.saveAndPush(D.url,D.endpoint,V,n)):(_.c("web_enable_delay_shorts_sequence_call")&&(D.endpoint.reelWatchEndpoint.sequenceParams=V==null?void 0:V.cachedSequenceParams,D.endpoint.reelWatchEndpoint.sequenceProvider=V==null?void 0:V.cachedSequenceProvider),this.replaceState(D.endpoint,V,0));this.hasPendingNavigation=!0};
var Av0=function(V){V.hasPendingNavigation=!1;(V=_.DY().resolve(_.Vx(uAw)))&&V.finish()};
mu.prototype.onYtNavigateError=function(V,D){Av0(this);V=this.get("endpoint.commandMetadata.webCommandMetadata.url",D);var f=_.pZ(window.location.href);V&&!f.pbjreload&&(D=D.navigationErrorReason||"10",_.c("kevlar_parent_on_pbjreload")&&(f={csn:_.Ni()},this.get("data.endpoint.clickTrackingParams")&&(f.itct=this.data.endpoint.clickTrackingParams),_.xo(V,f)),_.SL(_.LZ(V,{pbjreload:D})))};
mu.prototype.onYtNavigateCache=function(V,D){var f=this,n=D.url,t=D.endpoint,J=D.data;V=!!D.miniplayer;D=!!D.skipHistory;if(n&&t&&J){var H=this.getPageOffset(),Q=this.data||null;D||this.saveAndPush(n,t,Q,H);n=_.lqo(_.DY().resolve(_.e2),t,J,V?4:3,{},V);V&&n.then(function(){f.dataUpdatePromise&&f.dataUpdatePromise.then(function(){var T=_.DY().resolve(_.xl);f.setPageOffset(T.getCurrentPage(),0)})})}};
mu.prototype.onYtNavigateFinish=function(V,D){var f=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){a6c(f,D.fromHistory)})};
var a6c=function(V,D){Av0(V);if(V.pendingPlayerOnResponseReceivedActions){for(var f=_.r(V.pendingPlayerOnResponseReceivedActions),n=f.next();!n.done;n=f.next())_.Km(n.value,V.hostElement);V.pendingPlayerOnResponseReceivedActions=[]}f=_.DY().resolve(_.xl);D||!V.hasNavigated||_.c("web_disable_scroll_on_navigate_finish")||((D=f.getCurrentPage())?D.is==="ytd-shorts"||V.tabGesturesIsActive||V.setPageOffsetForNavigation(D,0):_.zP(Error("el")));_.aU(function(){_.aU(function(){_.zm("pda")})})};
mu.prototype.onYtNavigate=function(V){if(!V.detail.endpoint){var D=new _.cI("Error: Missing yt-navigate endpoint from target:",V.target,V.target.nodeName);_.NG(D)}if(D=_.c("cold_missing_history"))D=zf(),D.init(!1),D=!(D.browserHistory.boundHistoryReplaceState&&D.browserHistory.boundHistoryPushState);if(D){_.ql("DISABLE_WARM_LOADS",!0);D=new _.cI("Failed to initialize history manager",this.getDebugString());var f=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
f?_.zP(D):_.NG(D)}D=V.detail.endpoint;var n,t;_.c("debug_forward_web_query_parameters")&&((n=D.commandMetadata)==null?0:(t=n.webCommandMetadata)==null?0:t.url)&&(D=JSON.parse(JSON.stringify(D)),D.commandMetadata.webCommandMetadata.url=_.Win(D.commandMetadata.webCommandMetadata.url,window.location.search));V={type:0,command:D,form:{params:V.detail.params,tempData:V.detail.tempData||{},requestType:V.detail.type,createScreenConfig:V.detail.createScreenConfig,reload:V.detail.reload?V.detail.reload:!1,
requestForm:V.detail}};_.c("kevlar_yt_navigate_command_handler")?(n=_.DY().resolve(_.fH),V.form.skipDefaultElement=!0,n.resolveCommand(D,{form:V.form})):this.handleNavigate(V)};
mu.prototype.handleNavigate=function(V){this.hasSetScrollTopForNavigation=!1;var D=_.DY().resolve(_.e2),f=V.form||{};D.navigate(V.command,f.reload,f.params,f.tempData,f.requestType,f.createScreenConfig,f.ignoreConfirmation,f.requestForm)&&XOJ(this,V.command,f.tempData)};
mu.prototype.onYtPageDataFetched=function(V,D){try{_.Q_F().reset();this.data=D.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.DY().resolve(_.xl).updatePageData(this.data);if(!_.c("web_service_params_response_processor")){var f=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);f&&PLR(f);var n=this.get("response.responseContext.serviceTrackingParams",
this.data);n&&PLR(n)}var t=this.get("playerResponse.onResponseReceivedActions",this.data);t&&(t=Y6f(this,t));t&&_.wN(this.hostElement,t,this.hostElement);var J=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),H=this.get("response.responseContext.consistencyTokenJar",this.data);if(J||H){var Q=_.gLn(),T=(0,_.sB.getValues)(Q.tokenJars);J&&Q.replace(T,J);H&&Q.replace(T,H)}}catch(y){_.NG(y)}};
var XOJ=function(V,D,f){try{V.onYtEndpointChangeHandler(D,f)}catch(n){_.NG(n)}};
_.P=mu.prototype;_.P.onYtEndpointChangeHandler=function(){};
_.P.setPageTitle=function(V){V=(this.pageTitle=V)?V+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+V};
_.P.onYtUpdateTitle=function(V,D){this.setPageTitle(D)};
_.P.setUnseenNotificationCount=function(V){this.unseenNotificationCount=V;this.setPageTitle(this.pageTitle)};
_.P.handleUpdateNotificationsUnseenCountAction=function(V){_.g(V,rT0)&&((V=_.g(V,rT0).unseenCount)?this.setUnseenNotificationCount(V):this.setUnseenNotificationCount(0))};
_.P.handleClearCookieAction=function(V){var D;(V=(D=_.g(V,ttc))==null?void 0:D.cookieName)&&_.w8Y(V)};
_.P.onYtUpdateUnseenNotificationCount=function(V,D){this.setUnseenNotificationCount(D)};
_.P.loadData=function(V){var D=this;this.loadDepsPromise.then(function(){var f=_.DY().resolve(_.Vx(_.e2));f||_.NG(Error("fl"));if(V&&V.response){if(!V.endpoint){var n=_.ab(window.document.location.href)||"/",t="";if(n==="/"||n.startsWith("/?"))t="WEB_PAGE_TYPE_BROWSE";V.endpoint={commandMetadata:{webCommandMetadata:{url:n,webPageType:t,rootVe:3854}}}}_.lqo(f,V.endpoint,V,5,{})}else V.endpoint?f.navigate(V.endpoint):f.navigate(_.K_);_.dm.cancelJob(D.zwiebackInitJobId);D.zwiebackInitJobId=_.dm.addLowPriorityJob(Vsq)})};
var zf=function(){return _.DY().resolve(_.J$)};
mu.prototype.getDebugString=function(){return zf().getDebugString()};
mu.prototype.getThirdPartyManipulationSuspected=function(){return zf().getThirdPartyManipulationSuspected()};
mu.prototype.replaceState=function(V,D,f){zf().saveAndReplace(V,D,f)};
mu.prototype.saveAndPush=function(V,D,f,n){zf().saveAndPush(V,D,f,n)};
var q6X=function(V){return _.g(V.endpoint,_.pl)||_.g(V.endpoint,_.gU)?!0:!V||isNaN(V.expirationTime)?!1:(0,_.VW)()>V.expirationTime},ELV=function(V,D,f){var n=V.get("response.trackingParams",f),t=_.u8(),J=_.Ni();
if(n&&t&&J&&(n=V.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",f),!n&&f.rootVe&&(n=f.rootVe),t=D?"forwardButton":"backButton",D=V.get("playerResponse.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",V.data),V=V.get("response.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",V.data),D=(V=D||V)?_.gs(V):void 0,V=_.lS(),t=[_.Qv(f)],_.P5(V,n,D,{dataPromises:t,csnToClone:f.csn}),f.graftedVes))for(f=
_.r(f.graftedVes),n=f.next();!n.done;n=f.next())_.oj(V,n.value)};
mu.prototype.onStoreGraftedVeAction=function(V){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(V)):_.zP(Error("gl"))};
var Y6f=function(V,D){return D.filter(function(f){for(var n in f)if(zgf[n])return V.pendingPlayerOnResponseReceivedActions.push(f),!0;return!1})};
_.IG.Object.defineProperties(mu.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
mu.prototype.onStoreGraftedVeAction=mu.prototype.onStoreGraftedVeAction;mu.prototype.loadData=mu.prototype.loadData;mu.prototype.onYtUpdateUnseenNotificationCount=mu.prototype.onYtUpdateUnseenNotificationCount;mu.prototype.handleClearCookieAction=mu.prototype.handleClearCookieAction;mu.prototype.handleUpdateNotificationsUnseenCountAction=mu.prototype.handleUpdateNotificationsUnseenCountAction;mu.prototype.setUnseenNotificationCount=mu.prototype.setUnseenNotificationCount;
mu.prototype.onYtUpdateTitle=mu.prototype.onYtUpdateTitle;mu.prototype.setPageTitle=mu.prototype.setPageTitle;mu.prototype.onYtEndpointChangeHandler=mu.prototype.onYtEndpointChangeHandler;mu.prototype.onYtPageDataFetched=mu.prototype.onYtPageDataFetched;mu.prototype.handleNavigate=mu.prototype.handleNavigate;mu.prototype.onYtNavigate=mu.prototype.onYtNavigate;mu.prototype.onYtNavigateFinish=mu.prototype.onYtNavigateFinish;mu.prototype.onYtNavigateCache=mu.prototype.onYtNavigateCache;
mu.prototype.onYtNavigateError=mu.prototype.onYtNavigateError;mu.prototype.onYtNavigateStart=mu.prototype.onYtNavigateStart;mu.prototype.cancelPendingTasks=mu.prototype.cancelPendingTasks;mu.prototype.initHistoryManager=mu.prototype.initHistoryManager;mu.prototype.onYtHistoryLoad=mu.prototype.onYtHistoryLoad;mu.prototype.onYtHistoryPop=mu.prototype.onYtHistoryPop;mu.prototype.onYtNavigateSetPageOffset=mu.prototype.onYtNavigateSetPageOffset;mu.prototype.setPageOffset=mu.prototype.setPageOffset;
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mu.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mu.prototype,"data",void 0);_.S([_.bU("yt-navigate-set-page-offset"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],mu.prototype,"onYtNavigateSetPageOffset",null);
_.S([_.bU("yt-history-pop"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],mu.prototype,"onYtHistoryPop",null);_.S([_.bU("yt-history-load"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.AS6]),_.p("design:returntype")],mu.prototype,"onYtHistoryLoad",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],mu.prototype,"onYtNavigate",null);
_.S([_.bU("yt-update-title"),_.p("design:type",Function),_.p("design:paramtypes",[Event,String]),_.p("design:returntype")],mu.prototype,"onYtUpdateTitle",null);_.S([_.bU("yt-update-unseen-notification-count"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Number]),_.p("design:returntype")],mu.prototype,"onYtUpdateUnseenNotificationCount",null);_.S([_.Gy()],mu);NMW.YtdAppBehavior=[_.D6.YtActionHandlerBehavior,mu.prototype];var RZ=function(){var V=_.lU.apply(this,arguments)||this;V._noAccessors=!0;return V};
_.v(RZ,_.lU);RZ.prototype.ready=function(){var V=this;_.Pt(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){V.onChange_()})};
RZ.prototype.dataChanged_=function(){_.Pt(this.hostElement).querySelector("#checkbox").checked=!1};
RZ.prototype.onChange_=function(){var V=_.Pt(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.PA(this.hostElement,"yt-dismissal-reason-"+V,this.data.feedbackToken)};
RZ.prototype.dataChanged_=RZ.prototype.dataChanged_;_.S([_.q(),_.p("design:type",Object)],RZ.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RZ.prototype,"dataChanged_",null);_.S([_.Gy()],RZ);var $CZ=[RZ.prototype];var Ce=function(){var V=_.lU.apply(this,arguments)||this;V.timeoutJobId=0;V.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return V};
_.v(Ce,_.lU);Ce.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ce.prototype.startTimeout=function(){var V=this,D=this.data&&this.data.displayDurationSeconds;D&&!this.timeoutJobId&&(this.timeoutJobId=_.gq(_.dm,function(){_.o4(V.hostElement,"yt-close-popup-action",[V.is]);V.timeoutJobId=0},D*1E3))};
Ce.prototype.cancelTimeout=function(){_.dm.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Ce.prototype.ytdHatsSurveyBehaviorDataChanged=Ce.prototype.ytdHatsSurveyBehaviorDataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ce.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.S([_.Gy()],Ce);var itX=[_.D6.YtActionHandlerBehavior,Ce.prototype];var S6W=function(V,D){var f;return((f=V.prefixMapping)==null?0:f[D])?V.prefixMapping[D]:V.SHARED_RENDERERS_.hasOwnProperty(D)?"yt":V.prefix},qD={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}};qD.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.c("kevlar_mealbar_above_player"),modern:_.c("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"}};
qD.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};qD.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};qD.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
qD.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)"}};
qD.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};
qD.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};
qD.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};
qD.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};qD.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"}};
qD.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};qD.TOAST={component:null,properties:{}};var W9B=new function(V,D,f){this.supportedPopups=V;this.navigationEndpointPopupMap=D;this.popupTypeMap=f;this.supportedPopups=V;this.navigationEndpointPopupMap=D;this.popupTypeMap=f}({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:_.c("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"}),pOo=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17831_popupConfig=qD;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 L9X=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.k$.getInstance()},XU=function(V,D){var f=V.pageNameToElement.get(D);
if(!f){switch(D){case "watch":var n=_.c("web_watch_force_learning_journey_for_testing")?_.Md("ytd-watch-learning-journey"):_.c("kevlar_watch_fixie")?_.Md("ytd-watch-fixie"):_.c("kevlar_watch_grid")?_.Md("ytd-watch-grid"):_.Md("ytd-watch-flexy");break;case "learning_journey_watch":n=_.Md("ytd-watch-learning-journey");break;case "shorts":n=_.Md("ytd-shorts");break;case "search":n=_.Md("ytd-search");break;case "channel":n=_.Md("ytd-browse");n.pageSubtype="channels";break;case "trending":n=_.Md("ytd-browse");
n.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":n=
_.Md("ytd-browse");n.pageSubtype=D;break;case "browse":n=_.Md("ytd-browse");break;default:_.zP(new _.cI("Error getting page element for type",D))}f=n;V.pageNameToElement.set(D,f)}return f};
L9X.prototype.preparePage=function(V,D,f){f&&(V=_.Zx(f)||V);if(V!=="watch"&&V!=="learning_journey_watch"){var n=this.elementPoolPopulator,t=V;t!=n.targetPage_&&n.pendingPages_.indexOf(t)>-1&&(n.targetPage_&&(n.pendingPages_.unshift(n.targetPage_),n.abort()),Smv(n,t),_.CtV(n,t))}if((n=XU(this,V))||!_.g(f,_.a2)){n.isAttached||n===D||(n.hidden=!0);if(!n.data&&(V!=="watch"&&V!=="learning_journey_watch"||!_.c("swatcheroo_page_pool_dont_provide_filler_data"))){var J;if(V=(J=_.XB("FILLER_DATA",{})[V])==
null?void 0:J.response)n.data=V}return n}};var I6B=function(V){this.JSC$28728_clientRoot=V;this.playlistHandlerActionMap={"yt-add-to-playlist-command":HAw,"yt-end-playlist-command":wRv,"yt-recover-playlist-command":TgZ,"yt-refresh-playlist-command":yOB,"yt-playlist-remove-videos-action":bAq};_.$b(_.Yb.getInstance(),this.playlistHandlerActionMap,this.JSC$28728_clientRoot);VlW()},Oto;var EJ=function(V,D,f){this.apiKey=V;this.endpoint=D;this.confidenceThreshold=f===void 0?.5:f;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=D==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||D==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
D==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||D==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new SD3};
_.P=EJ.prototype;
_.P.start=function(V){if(this.state===0)if(this.isOnline()){V.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=V.supportsHttpHeadersOverwriteParam);V.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=V.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.mg("voice_assistant");_.R4("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=V.languageCode||"en-US";this.supportsCrossDomainXhr=V.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=V.youtubeAssistantRequest||null;this.listeningHandler=V.listeningHandler||this.listeningHandler;this.audioDetectedHandler=V.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=V.stopHandler||this.stopHandler;this.completeHandler=V.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=V.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=V.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
V.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=V.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=V.accessToken;this.additionalHeaders=V.additionalHeaders||{};var D;this.prefetchResponseTimeoutMs=(D=V.prefetchResponseTimeoutMs)!=null?D:this.prefetchResponseTimeoutMs;xCX(this);this.startAudio();MHB(this)}else this.errorHandler("OFFLINE")};
_.P.stop=function(V){var D=V===void 0?{}:V;V=D.logCancel===void 0?!0:D.logCancel;var f=D.logMicClosed===void 0?!0:D.logMicClosed;var n=D.handleError===void 0?!0:D.handleError;D=D.handleStop===void 0?!0:D.handleStop;this.state!==0&&(V&&AG("voz_cx"),aZ(this,{logMicClosed:f,handleStop:D}),n&&this.errorHandler("ABORTED"))};
_.P.getState=function(){return this.state};
_.P.isSupported=function(){return!0};
_.P.stopAudio=function(V){(V===void 0||V)&&AG("voz_mf")};
_.P.startAudio=function(){AG("voz_vp");return _.Qv(null)};
var hg3=function(V,D){V.channelOpen&&(V.state!==2&&(V.state=2,AG("voz_ss"),V.listeningHandler()),D=new Uint8Array(D),D='{ "audioIn": "'+_.V3(D)+'" }',V.channel.send(D))},aZ=function(V,D){var f=D===void 0?{}:D;
D=f.logMicClosed===void 0?!0:f.logMicClosed;f=f.handleStop===void 0?!0:f.handleStop;V.vozEndOfDataTimeout>-1&&(clearTimeout(V.vozEndOfDataTimeout),V.vozEndOfDataTimeout=-1);UCw(V);V.stopAudio(D);V.channel&&(V.channelOpen=!1,V.manuallyClosedChannel=!0,V.channel.close(),V.channel=void 0);V.transcribedSpeechResults=[];V.state=0;f&&V.stopHandler()},xCX=function(V){var D={httpHeadersOverwriteParam:V.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},V.additionalHeaders,V.accessToken&&V.isUsingVoz?{Authorization:"Bearer "+V.accessToken}:{"x-goog-api-key":V.apiKey}),supportsCrossDomainXhr:V.supportsCrossDomainXhr};V.channel=new qb(V.endpoint,D);V.channel.open();_.kt(V.channel,"w",function(){var f=V.channel,n=f.send,t=V.isUsingVoz?"PLACEHOLDER":"example";t={config:{dialogStateIn:{languageCode:V.languageCode},deviceConfig:{deviceId:t,deviceModelId:t},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!V.isUsingVoz)t.config.requestType=4;else if(V.isUsingVoz&&V.youtubeAssistantRequest){var J=JSON.stringify(V.youtubeAssistantRequest);t.config.internalIn={youtubeAssistantS3InputJson:J}}n.call(f,t);V.channelOpen=!0;V.manuallyClosedChannel=!1});
_.kt(V.channel,"x",function(){V.manuallyClosedChannel||(V.channelOpen=!1,V.channel=void 0,aZ(V))});
_.kt(V.channel,"z",function(f){if(f.data){UCw(V);for(var n=0;n<f.data.length;n++){var t=V,J=f.data[n],H=J.speechResults;if(H)a:{var Q=[];J=[];var T=!1;H=_.r(H);for(var y=H.next();!y.done;y=H.next()){y=y.value;if(y.noSpeech){aZ(t);t.errorHandler("NO_SPEECH");break a}y.transcript!==void 0&&y.stability!==void 0&&(y.stability<t.confidenceThreshold&&(T=!0),T?J.push(y.transcript):Q.push(y.transcript))}if(Q.length!==0||J.length!==0)Q=Q.join(" "),J=J.join(" "),t.receivedEndOfUtterance&&!t.isUsingVoz?t.isUsingVoz||
t.completeHandler([Q,J]):(T=t,H=Q,y=J,AG("voz_sf"),T.transcriptionUpdateHandler(H,y),T.transcribedSpeechResults=[H,y]),t.receivedEndOfUtterance&&(AG("voz_eou"),t.transcriptionCompleteHandler([Q,J]),t.isUsingVoz&&(t.prefetchResponseTimeoutMs===0?aZ(t,{logMicClosed:!1,handleStop:!0}):t.prefetchResponseTimeoutMs>0&&Vno(t)))}else t.isUsingVoz&&(J==null?0:J.internalOut)?(J=JSON.parse(J.internalOut.youtubeAssistantS3OutputJson),J.userHasOptedInToVaa||J.vaaConsent?t.vaaConsentUpdateHandler(!!J.userHasOptedInToVaa,
!!J.vaaConsent):(D0R(t),J&&(Q=t.transcribedSpeechResults,AG("voz_rqf"),t.completeHandler(Q,J)))):J.eventType==="END_OF_UTTERANCE"?t.receivedEndOfUtterance=!0:(AG("voz_err"),t.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.zP(Error("hl")))}}});
_.kt(V.channel,"y",function(f){aZ(V);switch(f.status){case 1:f="WEBCHANNEL_NETWORK_ERROR";break;case 2:f="WEBCHANNEL_SERVER_ERROR";break;default:f="WEBCHANNEL_UNKNOWN_ERROR"}V.errorHandler(f);V.logError(Error(f))})};
EJ.prototype.logError=function(V){_.NG(V)};
EJ.prototype.isOnline=function(){return!0};
var Vno=function(V){D0R(V);V.prefetchResponseSetTimeoutId=setTimeout(function(){aZ(V,{logMicClosed:!1,handleStop:!0})},V.prefetchResponseTimeoutMs)},D0R=function(V){V.prefetchResponseSetTimeoutId>-1&&(clearTimeout(V.prefetchResponseSetTimeoutId),V.prefetchResponseSetTimeoutId=-1)},MHB=function(V){UCw(V);
V.noResponseReceivedTimeout=window.setTimeout(function(){aZ(V);V.errorHandler("NO_SPEECH")},11E3)},UCw=function(V){V.noResponseReceivedTimeout>-1&&(window.clearTimeout(V.noResponseReceivedTimeout),V.noResponseReceivedTimeout=-1)},AG=function(V){_.zm(V,void 0,"voice_assistant")};var Y6=function(){EJ.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.v(Y6,EJ);Y6.prototype.isSupported=function(){return ZAV()};
Y6.prototype.startAudio=function(){var V=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Br(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(n){fgB(V,n)};
this.processor.connect(this.audioContext.destination);var D=function(n){V.stream=n;if(!V.audioContext)return _.Qv(null);n=V.audioContext.createMediaStreamSource(n);V.processor&&n.connect(V.processor);return _.Qv(null)},f={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?D(this.stream):(f=navigator.mediaDevices.getUserMedia(f))?f.then(D).catch(function(n){aZ(V);n.name&&n.name==="NotAllowedError"?V.errorHandler("NO_MICROPHONE_PERMISSION"):(V.errorHandler("AUDIO_ERROR"),V.logError(n));return _.Br(null)}):(aZ(this),this.errorHandler("AUDIO_ERROR"),_.zP(Error("il")));
return EJ.prototype.startAudio.call(this)};
Y6.prototype.stopAudio=function(V){V=V===void 0?!0:V;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(D){D.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;EJ.prototype.stopAudio.call(this,V)};
Y6.prototype.isOnline=function(){return navigator.onLine};
var fgB=function(V,D){if(V.audioContext)if(window.OfflineAudioContext){var f=V.audioContext.sampleRate,n=D.inputBuffer.getChannelData(0);D=new window.OfflineAudioContext(1,n.length,16E3);for(var t=D.createBuffer(1,n.length,f),J=t.getChannelData(0),H=0,Q=0;Q<n.length;Q++)J[Q]=n[Q],H+=J[Q]*J[Q];!V.audioDetected&&Math.sqrt(H/n.length)>.01&&(V.audioDetected=!0,V.audioDetectedHandler());n=D.createBufferSource();n.buffer=t;n.connect(D.destination);n.start(0);D.oncomplete=function(T){T=T.renderedBuffer.getChannelData(0);
for(var y=Math.floor(16384E3/f),Z=new Int16Array(y),l=0;l<y;++l)Z[l]=Math.max(-1,Math.min(1,T[l]))*32767;hg3(V,Z.buffer)};
D.startRendering()}else n$v(V,D)},n$v=function(V,D){var f=V.audioContext.sampleRate,n=D.inputBuffer.getChannelData(0),t=Math.floor((f+8E3)/16E3);
f=n.length/t;D=new Float32Array(f);for(var J=0;J<f;++J)D[J]=n[J*t];n=new Int16Array(f);for(t=0;t<f;++t)n[t]=Math.max(-1,Math.min(1,D[t]))*32767;hg3(V,n.buffer)};var tnR={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var P2w=function(){this.JSC$17896_audioEnabled=!0;this.audioFeedbackHolder={}};
P2w.prototype.isPlaying=function(V){return V.currentTime>0&&!V.paused&&!V.ended&&V.readyState>2};
var o$W=function(V){for(var D=_.r(Object.values(tnR)),f=D.next();!f.done;f=D.next())f=f.value,V.audioFeedbackHolder[f]=new Audio,V.audioFeedbackHolder[f].src="/s/search/audio/"+f+".mp3",V.audioFeedbackHolder[f].load()},$6=function(V,D){if(V.JSC$17896_audioEnabled!==!1&&D in V.audioFeedbackHolder){for(var f=_.r(Object.values(V.audioFeedbackHolder)),n=f.next();!n.done;n=f.next())n=n.value,V.isPlaying(n)&&n.pause();
V.audioFeedbackHolder[D].currentTime=0;V.audioFeedbackHolder[D].play().catch(function(){})}};var JfJ=function(V,D){var f=this;this.store=V;this.service=D;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){f.setState("offline");f.stop()};
this.audioPlayer=new P2w;var n;(n=this.audioPlayer)==null||o$W(n)};
_.P=JfJ.prototype;_.P.getService=function(){return this.service};
_.P.isEnabled=function(){return!!this.service};
_.P.isSupported=function(){var V;return(V=this.service)==null?void 0:V.isSupported()};
_.P.start=function(){var V=this,D,f,n,t,J,H,Q,T,y,Z,l,G,F;return _.w(function(k){switch(k.nextAddress){case 1:V.store.dispatch(yYR("",""));if(!navigator.onLine)return V.setState("offline"),k.return();window.addEventListener("offline",V.handleOfflineEvent);V.stream=null;if(!V.permissionsSupported){k.jumpTo(2);break}_.wx(k,3);return _.b(k,rfX(V),5);case 5:D=k.yieldResult;if(!D)return(f=V.audioPlayer)==null||$6(f,"failure"),k.return();V.service.stream=V.stream;V.setState("listening");_.YJ(k,2);break;
case 3:_.KW(k),V.permissionsSupported=!1;case 2:n={context:_.j4n(_.fh())},n.youtubeAssistantParams={searchParams:{inlineSearchResponse:V.enableInlineSearchResponse}},t=function(d,z){V.store.dispatch(ZXV("transcribing"));V.store.dispatch(yYR(d,z))},J=function(){var d;
(d=V.audioPlayer)==null||$6(d,"open");V.setState("listening")},H=function(){V.setState("transcribing")},Q=function(d){V.setErrorState(d)},T=function(d,z){var C;
(C=V.audioPlayer)==null||$6(C,"success");z&&(_.c("kevlar_voice_search_inline_search")&&(V.responseProcessor=_.DY().resolve(_.cXY),V.responseProcessor&&(C=z.navigationAction,d=z.prefetchedSearchResponse,C&&d&&(C=(new _.puV).JSC$11145_getStoreKey(C),_.aN(V.responseProcessor,d,C)))),V.JSC$17914_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",z))},y=function(){window.removeEventListener("offline",V.handleOfflineEvent)},Z=_.s4x(!1),l=Z.Authorization!=null,G=V.enableFirstPartyAuth||
V.enableFPAForSignedInUsers&&l?Z:{"X-Goog-Visitor-Id":Z["X-Goog-Visitor-Id"]},F={completeHandler:T,
errorHandler:Q,listeningHandler:J,audioDetectedHandler:H,stopHandler:y,transcriptionUpdateHandler:t,youtubeAssistantRequest:n,languageCode:HE0(),additionalHeaders:G,supportsCrossDomainXhr:V.enableFirstPartyAuth||V.enableFPAForSignedInUsers&&l,supportsHttpHeadersOverwriteParam:!V.disableHttpHeadersOverwrite},V.service.start(F),_.yz(k)}})};
_.P.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.P.reset=function(){this.store.dispatch(_.nA({type:"RESET_VOICE_SEARCH_STATE"}))};
_.P.setState=function(V){this.store.dispatch(ZXV(V))};
_.P.setErrorState=function(V){switch(V){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var D;(D=this.audioPlayer)==null||$6(D,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)rfX(this);else{var f;(f=this.audioPlayer)==null||$6(f,"failure");this.setState("permission-denied")}break;case "ABORTED":var n;(n=this.audioPlayer)==null||$6(n,"no_input");break;default:var t;(t=this.audioPlayer)==
null||$6(t,"no_input");this.setState("timeout")}};
var rfX=function(V){var D,f;return _.w(function(n){switch(n.nextAddress){case 1:return _.b(n,navigator.permissions.query({name:"microphone"}),2);case 2:D=n.yieldResult;if(D.state==="granted")return n.return(!0);if(D.state==="denied")return V.setState("permission-denied"),n.return(!1);V.setState("permission");f={audio:{sampleSize:16,channelCount:1},video:!1};_.wx(n,3);return _.b(n,navigator.mediaDevices.getUserMedia(f),5);case 5:return V.stream=n.yieldResult,n.return(!0);case 3:return _.KW(n),V.setState("permission-denied"),
n.return(!1)}})},HE0=function(){var V=_.XB("INNERTUBE_CONTEXT_HL"),D=_.XB("INNERTUBE_CONTEXT_GL");
return V.indexOf("-")>-1?V:V+"-"+D};var w$J=function(V,D,f){JfJ.call(this,D,f);this.JSC$17914_actionRouter=V;this.enableInlineSearchResponse=_.c("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.c("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.c("kevlar_voice_search_enable_fpa_signedin_users")},Qxv;
_.v(w$J,JfJ);
var ThZ=function(){if(!Qxv){var V="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.c("kevlar_voice_search_auth_enabled")||_.c("kevlar_voice_search_use_yt_endpoint")?V="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.c("kevlar_voice_search_use_fp_endpoint")&&(V="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Qxv=
new w$J(_.Yb.getInstance(),_.Ol(),new Y6(_.XB("VOZ_API_KEY"),V,.5))}return Qxv};var bER=function(V){this.JSC$17918_clientRoot=V;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$17918_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)]]));V=_.r(this.eventListeners);for(var D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;f=_.r(f);for(var n=f.next();!n.done;n=f.next()){var t=
_.r(n.value);n=t.next().value;t=t.next().value;D.addEventListener(n,t)}}_.$b(_.Yb.getInstance(),this.autonavPauseActionMap,this.JSC$17918_clientRoot)},KmR,yfw=function(V){return _.c("kevlar_autonav_popup_filtering")?(V=_.x7(V))?V.hasAttribute("prevent-autonav"):!0:!0};
_.P=bER.prototype;_.P.onIronOverlayOpened=function(V){yfw(V)&&(this.autonavPauseReasons.overlayOpen=!0,i5(this))};
_.P.onIronOverlayClosed=function(V){yfw(V)&&(this.autonavPauseReasons.overlayOpen=!1,i5(this))};
_.P.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;i5(this)};
_.P.onYtAutonavPauseBlur=function(){var V=this;_.dm.addJob(function(){V.isInBackground()||(V.autonavPauseReasons.inputBoxFocus=!1,i5(V))},8,0)};
_.P.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;i5(this)};
_.P.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;i5(this)};
_.P.onYtAutonavPauseScroll=function(){var V=_.DY().resolve(_.xl);V.isOnWatch()&&(V=V.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=V.getBoundingClientRect().top<-200,i5(this))};
_.P.onYtAutonavPauseUserEngagement=function(V){var D=this;if(_.c("user_engagement_enable_autoplay_pause_feature")){var f=Number(V.lowEngagementThresholdMs);isNaN(f)||f<=0||V.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.DY().resolve(_.ue),_.Vf()<f?_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.DYR()?(this.userEngagementCsn=_.Ni(),_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,i5(this)):_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.NsL(Error("jl`"+JSON.stringify(V)))};
_.P.onYtAutonavPausePlayer=function(V){this.autonavPauseReasons.requestedByPlayer=!!V.detail;i5(this)};
_.P.onYtAutonavVisibilityChanged=function(){var V=this,D,f,n;return _.w(function(t){if(t.nextAddress==1)return(D=_.hI())?_.b(t,D.getPlayerPromise(),2):t.return();f=t.yieldResult;n=f.isMuted()||f.getVolume()===0;V.autonavPauseReasons.backgroundAndMute=V.isInBackground()&&n;i5(V);_.yz(t)})};
_.P.onYtAutonavPausePlayerEnded=function(){_.DY().resolve(_.ue);var V=144E5;_.c("user_engagement_enable_autoplay_pause_feature")||_.c("is_part_of_any_user_engagement_experiment")||(V=45E5);this.autonavPauseReasons.longIdle=_.Vf()>V;ZER(this);i5(this)};
_.P.onYtUserActivity=function(){var V=this;this.autonavPauseReasons.userEngagement&&(_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",V.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,i5(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",V.userEngagementCsn);_.uN()}),this.autonavPauseReasons.youthereLactExperiment=!1,i5(this));
this.autonavPauseReasons.longIdle&&!_.c("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,i5(this))};
_.P.isInBackground=function(){var V=window.document.visibilityState;return!(!V||V==="visible")};
var i5=function(V){for(var D=!1,f=_.r(Object.values(V.autonavPauseReasons)),n=f.next();!n.done;n=f.next())n=n.value,D=D||n;D?_.OC.getInstance().pause(V.autonavPauseReasons):(V=_.OC.getInstance(),V.autonavState_==3?(V.setState(2,!1,!1),V.autonavPauseReason_=void 0):V.autonavState_==1&&(V.disabledAutonavPauseReason_=void 0))},ZER=function(V){var D=!1;
if(_.c("enable_autoplay_pause_by_lact")){_.DY().resolve(_.ue);D=_.tU("autoplay_pause_by_lact_sec")*1E3;var f=_.tU("autoplay_pause_by_lact_sampling_fraction");(D=_.Vf()>=D&&Math.random()<f)&&!_.DYR()&&(_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),D=!1)}D!==V.autonavPauseReasons.youthereLactExperiment&&(V.autonavPauseReasons.youthereLactExperiment=D)&&(V.userEngagementCsn=_.Ni(),_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",V.userEngagementCsn)}));
V.autonavPauseReasons.userEngagement&&_.gq(_.dm,function(){_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",V.userEngagementCsn)})};
bER.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.xg("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.uN(),this.autonavPauseReasons.youthereLactExperiment=!1,i5(this));this.autonavPauseReasons.userEngagement&&(_.xg("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,i5(this))};
bER.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Sw=function(){var V=_.E.apply(this,arguments)||this;V.miniGuideVisible=!1;V.guideOpened=_.c("disable_initial_guide_state_fix")?!1:V.canFitPersistentGuide(V.initialBodyClientWidth);V.guideUserStateOpened=V.getInitialGuideUserStateOpened();V.isFullscreenShorts=!1;V.miniGuideWidthThreshold=_.tU("kevlar_mini_guide_width_threshold",791);V.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");V.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
V.persistentGuideBlockedPagePathRegex=new RegExp(V.persistentGuideBlockedPagesPatterns.join("|"));V.animationTransitionDuration=0;V.lateDataResolver=_.Sl();V.initialGuideDataFetchFailed=!1;V.initialLoad=!0;V.guideRenderers=new Set;V.isMouseOverGuide=!1;V.sessionUserManuallyExpandedGuideState=!1;V.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return V};
_.v(Sw,_.E);_.P=Sw.prototype;_.P.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.P.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.P.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.P.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.P.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.P.ready=function(){_.DY().addProvider({provide:_.Rx,useValue:this.hostElement})};
_.P.attached=function(){var V=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Ty(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Ty(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Ty(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Ty(this,this.onYtGuideShow));_.pO(this,function(){V.animationTransitionDuration=200})};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ty(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Ty(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Ty(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Ty(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Ty(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Ty(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Ty(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.P.getData=function(){return this.data};
_.P.load=function(){var V=this,D,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=V.lateDataResolver.resolve.bind(V),J.return(V.lateDataResolver.promise);if(window.ytInitialGuideData)return D=_.Sl(),D.resolve(window.ytInitialGuideData),J.return(D.promise);n=!1;_.wx(J,2);return _.b(J,V.fetchGuideData(),4);case 4:f=J.yieldResult;_.YJ(J,3);break;case 2:t=_.KW(J),t.message==="Returned error"&&(n=!0);
case 3:if(f)return J.return(f);V.onYtGuideClose();n||(V.initialGuideDataFetchFailed=!0);return J.return(V.lateDataResolver.promise)}})};
_.P.fetchGuideData=function(){var V=this,D,f,n,t,J,H,Q;return _.w(function(T){if(T.nextAddress==1)return D=_.DY(),V.guidePromise||(f=D.resolve(_.CR),V.guidePromise=_.ie(f,y2J)),_.b(T,V.guidePromise,2);if(T.nextAddress!=3)return n=T.yieldResult,t=D.resolve(_.Su),_.b(T,t(),3);(J=T.yieldResult)&&((H=n)==null?void 0:(Q=H.responseContext)==null?void 0:Q.maxAgeSeconds)!==0&&J.put("service:guide:fallback",new _.nC({innertubeResponse:n}));return T.return(n)})};
_.P.initializeGuideDataIfEmpty=function(){var V=this,D,f;return _.w(function(n){if(n.nextAddress==1){if(!V.initialGuideDataFetchFailed||V.data)return n.return();_.wx(n,2);return _.b(n,V.fetchGuideData(),4)}if(n.nextAddress!=2)return(D=n.yieldResult)&&V.lateDataResolver.resolve(D),_.YJ(n,0);f=_.KW(n);_.zP(f);_.yz(n)})};
_.P.initializeGuideData=function(){var V=this,D;return _.w(function(f){switch(f.nextAddress){case 1:return _.wK(XwW(),{mainAppWeb:_.Wo()}),_.wx(f,2),_.b(f,V.load(),4);case 4:V.data=f.yieldResult;_.YJ(f,3);break;case 2:_.KW(f),_.Q7(XwW(),"FAILURE");case 3:D=V.data&&V.data.items&&V.data.items.length>0?"SUCCESS":"FAILURE",_.Q7(XwW(),D),_.yz(f)}})};
_.P.setGuideData=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1)return D.disabled?t.return():D.data?(V.data=D.data,D.guideRenderers.add(V),t.return()):_.b(t,D.initializeGuideData(),2);D.graftGuideToPage();f=_.EG("IS_HOMEPAGE_COLD")?"eop":void 0;_.c("disable_element_pool_populator")?D.setGuideDataAfterInit(V):(n=new _.h5(1,f),_.UY(n,D.setGuideDataAfterInit.bind(D,V)));_.yz(t)})};
_.P.setGuideDataAfterInit=function(V){V.data=this.data;V.markDirty();this.guideRenderers.add(V);_.aU(function(){_.zm("gle")});
_.pO(this,function(){_.zm("gpe")})};
_.P.graftGuideToPage=function(){if(this.data){var V=this.data&&this.data.trackingParams;V&&(V=_.gs(V),_.J6(_.lS(),V))}};
_.P.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Ty(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.P.onDrawerOpenedChanged=function(V,D){!D.value&&this.guideOpened&&(this.guideOpened=!1)};
_.P.onYtGuideToggle=function(V){var D=this.guideOpened;this.guideOpened=!D;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var f=_.Gm();_.eJ(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;f.save()}this.updateGuideDrawerElementState();if(this.guideElement){var n;this.guideOpened&&((n=V.detail)==null?0:n.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Ty(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Ty(this,this.onAppDrawerTransitioned))}D||this.initializeGuideDataIfEmpty()};
_.P.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ty(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Lh(this.guideElement)};
_.P.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ty(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(bXw(this.guideOpened))};
_.P.guidePersistentAndVisibleChanged=function(){_.JR(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.P.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.nA({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.P.miniGuideVisibleChanged=function(){_.JR(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.P.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(bXw(this.guideOpened)),this.initialLoad=!1);_.JR(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.P.activeEndpointChanged=function(){_.JR(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.P.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.P.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()};
_.P.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var V=this.canFitPersistentGuide(this.cachedClientWidth);V?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=V}this.updateGuideDrawerElementState()};
_.P.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.P.getGuideOpened=function(){return this.guideOpened};
_.P.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.P.getActiveEndpoint=function(){return this.activeEndpoint};
_.P.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.P.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&&_.PA(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.P.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.c("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.P.handleGuideMouseLeave=function(){var V=this;!this.sessionUserManuallyExpandedGuideState&&_.c("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Yu(this,"handleGuideMouseLeave",function(){V.isMouseOverGuide||!V.guideOpened||V.miniGuideVisible||(V.guideOpened=!1,V.updateGuideDrawerElementState())},100))};
_.P.computeGuidePersistentAndVisible=function(){var V=this;_.Yu(this,"computeGuidePersistentAndVisible",function(){V.guidePersistentAndVisible=V.guideOpened&&V.guidePersistent;V.guideIsVisibleButNotPersistent=!(!V.guideOpened||V.guidePersistent)})};
_.P.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.P.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.P.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.P.startLoadingWatch=function(){this.closeGuide()};
_.P.startLoadingShorts=function(){_.c("web_hide_guide_on_shorts")&&this.closeGuide()};
_.P.onYtNavigateFinish=function(V,D){if(!_.JF||D){this.activeEndpoint=D.endpoint;this.pageType=D.pageType;this.pageUrl=D.response.url;var f,n;V=(n=_.g((f=D.endpoint)==null?void 0:f.commandMetadata,_.he))==null?void 0:n.url;!this.pageUrl&&V&&(this.pageUrl=V);_.c("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.P.getVisibleGuideRenderer=function(){for(var V=_.r(this.guideRenderers),D=V.next();!D.done;D=V.next())if(D=D.value,this.miniGuideVisible&&D.is==="ytd-mini-guide-renderer"||this.guideOpened&&D.is==="ytd-guide-renderer")return D;return null};
_.P.markGuideRendererDirty=function(V){if(V){typeof V.markDirty==="function"&&V.markDirty();V=_.r([].concat(_.sz(_.Pt(V).children)));for(var D=V.next();!D.done;D=V.next())this.markGuideRendererDirty(D.value)}};
_.P.persistentGuideEnabled=function(V,D){if(!D||V==="watch"||V==="settings"||V==="shorts"&&this.isFullscreenShorts||_.c("reels_web_disable_persistent_guide_shorts")&&V==="shorts")return!1;var f=_.Qx(D)||"";return _.c("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(n){return f===n}):!this.persistentGuideBlockedPagePathRegex.test(f)};
_.P.canFitPersistentGuide=function(V){var D=_.tU("kevlar_persistent_guide_width_threshold",1312);return D===-1||_.c("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:V>D};
_.P.canFitMiniGuide=function(V){return this.miniGuideWidthThreshold===-1?!1:V>this.miniGuideWidthThreshold};
_.P.onResize=function(){var V=this;_.Yu(this,"calculateGuideState",function(){V.onResizeDebounced()})};
_.P.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.P.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.P.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.P.getInitialGuideUserStateOpened=function(){return _.c("web_force_mini_guide_default")?!1:!_.Gm().getFlag(109)};
_.IG.Object.defineProperties(Sw.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.XB("initialBodyClientWidth")||window.innerWidth}}});
Sw.prototype.onResize=Sw.prototype.onResize;Sw.prototype.observeForMiniGuideVisible=Sw.prototype.observeForMiniGuideVisible;Sw.prototype.computeGuidePersistentAndVisible=Sw.prototype.computeGuidePersistentAndVisible;Sw.prototype.cachedClientWidthChanged=Sw.prototype.cachedClientWidthChanged;Sw.prototype.resetGuide=Sw.prototype.resetGuide;Sw.prototype.activeEndpointChanged=Sw.prototype.activeEndpointChanged;Sw.prototype.guideOpenedChanged=Sw.prototype.guideOpenedChanged;
Sw.prototype.miniGuideVisibleChanged=Sw.prototype.miniGuideVisibleChanged;Sw.prototype.guideIsVisibleButNotPersistentChanged=Sw.prototype.guideIsVisibleButNotPersistentChanged;Sw.prototype.guidePersistentAndVisibleChanged=Sw.prototype.guidePersistentAndVisibleChanged;Sw.prototype.onGuideElementChanged=Sw.prototype.onGuideElementChanged;Sw.prototype.onGuidePersistentChanged=Sw.prototype.onGuidePersistentChanged;Sw.prototype.onRenderGuideChanged=Sw.prototype.onRenderGuideChanged;
Sw.prototype.onActiveEndpointChanged=Sw.prototype.onActiveEndpointChanged;Sw.prototype.onMiniGuideVisibleChanged=Sw.prototype.onMiniGuideVisibleChanged;Sw.prototype.onGuideIsVisibleButNotPersistentChanged=Sw.prototype.onGuideIsVisibleButNotPersistentChanged;Sw.prototype.onGuidePersistendAndVisibleChanged=Sw.prototype.onGuidePersistendAndVisibleChanged;_.S([_.u(_.sp),_.p("design:type",Object)],Sw.prototype,"ironResizableBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Sw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Sw.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Sw.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"disabled",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"guidePersistentAndVisible",void 0);_.S([_.KI("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onGuidePersistendAndVisibleChanged",null);_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"guideIsVisibleButNotPersistent",void 0);
_.S([_.KI("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"miniGuideVisible",void 0);_.S([_.KI("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onMiniGuideVisibleChanged",null);_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"forceMiniGuideClose",void 0);
_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"activeEndpoint",void 0);_.S([_.KI("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onActiveEndpointChanged",null);_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"renderGuide",void 0);_.S([_.KI("renderGuide"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onRenderGuideChanged",null);
_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"guideOpened",void 0);_.S([_.q(),_.p("design:type",Boolean)],Sw.prototype,"guidePersistent",void 0);_.S([_.KI("guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onGuidePersistentChanged",null);_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"guideUserStateOpened",void 0);_.S([_.q(),_.p("design:type",String)],Sw.prototype,"pageUrl",void 0);
_.S([_.q(),_.p("design:type",String)],Sw.prototype,"pageType",void 0);_.S([_.q(),_.p("design:type",Number)],Sw.prototype,"cachedClientWidth",void 0);_.S([_.q(),_.p("design:type",Object)],Sw.prototype,"guideElement",void 0);_.S([_.q({selector:_.KL}),_.p("design:type",Object)],Sw.prototype,"isFullscreenShorts",void 0);_.S([_.KI("guideElement"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onGuideElementChanged",null);
_.S([_.KI("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"guidePersistentAndVisibleChanged",null);_.S([_.eY("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.S([_.KI("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"miniGuideVisibleChanged",null);_.S([_.eY("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"guideOpenedChanged",null);_.S([_.KI("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"activeEndpointChanged",null);
_.S([_.eY("pageUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"resetGuide",null);_.S([_.eY("cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"cachedClientWidthChanged",null);_.S([_.KI("guideOpened","guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"computeGuidePersistentAndVisible",null);
_.S([_.eY("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"observeForMiniGuideVisible",null);_.S([_.bU("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sw.prototype,"onResize",null);_.S([_.a({disableElementRegistration:!0,is:"yt-guide-manager"})],Sw);var jx3=_.Y(Sw,"yt-guide-manager",void 0,{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var WQ=function(){var V=_.E.apply(this,arguments)||this;V.JSC$17928_keyboardInUse=!1;V.boundHandleCapturedKeydownEvent=function(D){V.handleCapturedKeydownEvent(D)};
return V};
_.v(WQ,_.E);_.P=WQ.prototype;_.P.attached=function(){this.listenToDocument(document)};
_.P.listenToDocument=function(V){V.addEventListener("keydown",_.Ty(this,this.onKeyDownEvent));V.addEventListener("keyup",_.Ty(this,this.onKeyUpEvent));V.addEventListener("mousedown",_.Ty(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||V.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);V.addEventListener("yt-page-data-updated",_.Ty(this,this.onPageUpdate))};
_.P.detached=function(){this.unlistenFromDocument(document)};
_.P.unlistenFromDocument=function(V){V.removeEventListener("keydown",_.Ty(this,this.onKeyDownEvent));V.removeEventListener("keyup",_.Ty(this,this.onKeyUpEvent));V.removeEventListener("mousedown",_.Ty(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||V.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);V.removeEventListener("yt-page-data-updated",_.Ty(this,this.onPageUpdate))};
_.P.ready=function(){_.DY().addProvider({provide:_.PO,useValue:this})};
_.P.isKeyBoardInUse=function(){return this.JSC$17928_keyboardInUse};
_.P.handleCapturedKeydownEvent=function(V){if(V.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(V)};
_.P.onMouseDownEvent=function(){this.JSC$17928_keyboardInUse=!1};
_.P.onPageUpdate=function(){if(_.c("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.c("web_shorts_keyboard_shortcut_usage_log")){_.Dj.clear();for(var V=_.r(_.UA),D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;f=_.Bj(f);_.Dj.set(D,f);_.Y8(_.Ni(),_.u8(),f)}_.fK.clear();V=_.r(_.VI);for(D=V.next();!D.done;D=V.next())f=_.r(D.value),D=f.next().value,f=f.next().value,f=_.Bj(f),_.fK.set(D,f),_.Y8(_.Ni(),_.u8(),f);_.$8(_.Ni(),_.u8(),[].concat(_.sz(_.fK.values()),
_.sz(_.Dj.values())));_.SJ(_.Ni(),[].concat(_.sz(_.fK.values()),_.sz(_.Dj.values())))}};
_.P.onMiniplayerActiveChange=function(){var V;(V=_.DY().resolve(_.qw).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(V.document):this.unlistenFromDocument(V.document))};
_.P.ignoreKeyEvent=function(V){if(V.ctrlKey||V.altKey)if(_.c("kevlar_macro_markers_keyboard_shortcut")){if(V.keyCode!==37&&V.keyCode!==39)return!0}else return!0;var D=_.Os(V)||[];return _.Pkq(D)?!0:V.defaultPrevented?(KK(V.keyCode,V.shiftKey,this.isShortsPage),!0):V.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(V):!1};
_.P.isSpacebarClick=function(V){var D=V||window.event;var f;D.composedPath&&typeof D.composedPath==="function"?f=D.composedPath():f=D.path;f&&f.length?D=f[0]:(D=D||window.event,D=D.target||D.srcElement,D.nodeType==3&&(D=D.parentNode));return D&&V.keyCode===32&&(V=D.tagName==="BUTTON"||D.tagName==="A"||D.tagName==="INPUT",D=(D=D.getAttribute("role"))&&(D==="option"||D==="button"||D.indexOf("menuitem")===0),V||D)?!0:!1};
_.P.onKeyDownEvent=function(V){if(!this.ignoreKeyEvent(V)&&(V.keyCode===191&&(V.shiftKey||V.metaKey?V.repeat!=null&&V.repeat||(this.openHotkeyDialog(),KK(V.keyCode,V.shiftKey,this.isShortsPage)):(this.focusSearchBox(),V.preventDefault())),!V.metaKey)){var D=_.DY().resolve(_.qw);switch(V.keyCode){case 9:this.JSC$17928_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(V);break;case 84:D.pipController.getWindow()&&window.focus();this.toggleTheaterMode(V.keyCode,V.shiftKey);break;case 73:D.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(V.keyCode,V.shiftKey);break;case 70:if(this.isShortsPage&&_.c("web_fullscreen_shorts")){_.oew();break}this.isMiniplayerActive()?D.pipController.getWindow()&&(D.close(!0),window.focus()):this.passEventToPlayer(V);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(V.keyCode,V.shiftKey):this.closeMiniplayer(V.keyCode,V.shiftKey)||this.passEventToPlayer(V);break;case 13:V.shiftKey&&_.DY().resolve(_.TZ).activate(V);break;default:this.passEventToPlayer(V)}}};
_.P.onKeyUpEvent=function(V){if(!this.ignoreKeyEvent(V))if(_.c("web_speedmaster_spacebar_control")&&V.keyCode===32)this.handlePlayerSpaceKey(V,!0);else{var D=this.getPlayerManager();D&&(D=D.getPlayer())&&D.handleGlobalKeyUp(V.keyCode,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code)}};
_.P.getPlayerManager=function(){var V=_.hI(),D=_.DY().resolve(_.Vx(_.xl));return V&&D&&D.isOnWatch()?V:null};
_.P.passEventToPlayer=function(V,D){var f=this,n,t,J,H;return _.w(function(Q){if(Q.nextAddress==1){if(!_.c("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&f.isMiniplayerActive())n=_.DY().resolve(_.qw).getPlayerElement();else if(f.inlinePreviewIsActive){if(t=_.JR(f.hostElement,"yt-get-inline-preview-player-action"),(J=t)==null?0:J[0])n=t[0]}else n=_.hI();return n?_.b(Q,n.getPlayerPromise(),3):Q.jumpTo(0)}H=Q.yieldResult;D?H.handleGlobalKeyUp(V.keyCode,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,
V.key,V.code):H.handleGlobalKeyDown(V.keyCode,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code,V.repeat);V.keyCode!==38&&V.keyCode!==40&&KK(V.keyCode,V.shiftKey,f.isShortsPage);_.yz(Q)})};
_.P.focusSearchBox=function(){_.PA(this.hostElement,"yt-focus-searchbox")};
_.P.openHotkeyDialog=function(){_.PA(this.hostElement,"yt-open-hotkey-dialog")};
_.P.isMiniplayerActive=function(){return _.DY().resolve(_.qw).isMiniplayerActive()};
_.P.closeMiniplayer=function(V,D){return this.isMiniplayerActive()?(_.DY().resolve(_.qw).close(),KK(V,D,this.isShortsPage),!0):!1};
_.P.toggleTheaterMode=function(V,D){var f=_.uf(_.Ol().getState()),n=this.getPlayerManager(),t=_.c("disable_theater_mode_keyboard")||_.EG("START_IN_FULL_WINDOW_MODE");n&&!t&&(f=!f,_.UX()&&_.c("external_fullscreen")&&(f=!0),_.o4(this.hostElement,"yt-toggle-theater-mode",[f]),KK(V,D,this.isShortsPage))};
_.P.toggleMiniplayer=function(V,D){var f=this.getPlayerManager();if(this.isMiniplayerActive()){var n;((n=_.DY().resolve(_.Vx(_.xl)))==null?0:n.isOnWatch())?_.DY().resolve(_.qw).close(!0):_.Fs(_.DY().resolve(_.qw));KK(V,D,this.isShortsPage)}else f&&(_.o4(this.hostElement,"yt-activate-miniplayer-from-watch-action"),KK(V,D,this.isShortsPage))};
_.P.handlePlayerSpaceKey=function(V,D){var f=!!_.hI()||this.isMiniplayerActive();f=_.c("disable_space_scroll_fix")||f;_.c("global_spacebar_pause")&&!this.isKeyBoardInUse()&&f&&(V.preventDefault(),this.passEventToPlayer(V,D))};
_.P.isPresentingTheaterMode=function(){return _.c("web_watch_enable_tm_esc_key")?_.uf(_.Ol().getState())&&!_.UX():!1};
WQ.prototype.onMiniplayerActiveChange=WQ.prototype.onMiniplayerActiveChange;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.S([_.q({selector:_.GN9}),_.p("design:type",Boolean)],WQ.prototype,"inlinePreviewIsActive",void 0);_.S([_.q({selector:_.jLY}),_.p("design:type",Boolean)],WQ.prototype,"isShortsPage",void 0);
_.S([_.q({selector:_.mq}),_.p("design:type",Boolean)],WQ.prototype,"miniplayerIsActive",void 0);_.S([_.KI("miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WQ.prototype,"onMiniplayerActiveChange",null);_.S([_.a({disableElementRegistration:!0,is:"yt-hotkey-manager"})],WQ);_.Y(WQ,"yt-hotkey-manager",void 0,{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var pe=function(){var V=_.E.apply(this,arguments)||this;V.loopStateEntityKey_=null;V.playlistLoopStateEntity_=null;V.isShuffleNextPlaylist=!1;V.PLAYER_EVENTS_=new Map;V.playerListenersSetup_=!1;V.videoSkipJob_=0;V.canAutoAdvance_=!1;V.playerManager_=null;V.TEST_ONLY={};return V};
_.v(pe,_.E);_.P=pe.prototype;_.P.ready=function(){_.DY().addProvider({provide:_.zI,useValue:this.hostElement})};
_.P.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_)};
_.P.attached=function(){document.addEventListener("yt-navigate-start",_.Ty(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Ty(this,this.onYtNavigateFinish_))};
_.P.detached=function(){document.removeEventListener("yt-navigate-start",_.Ty(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Ty(this,this.onYtNavigateFinish_))};
_.P.updatePlaylistEventListeners=function(V,D){D&&!this.playerListenersSetup_?(this.playerManager_=V,this.registerPlaylistEventListeners_(V)):!D&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(V))};
_.P.setPlayer=function(V){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=V};
_.P.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.P.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.P.registerPlaylistEventListeners_=function(V){var D=this;V.getPlayerPromise().then(function(f){D.playerListenersSetup_||(D.ytPlayerListenerBehavior.listenToPlayerEvents(f,D.PLAYER_EVENTS_),D.playerListenersSetup_=!0)})};
_.P.removePlaylistEventListeners_=function(V){var D=this;V.getPlayerPromise().then(function(f){D.playerListenersSetup_&&(D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f,D.PLAYER_EVENTS_),D.playerListenersSetup_=!1)})};
_.P.setPlaylistComponent=function(V){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Ty(this,this.onPlaylistYtNavigate_)),V&&(V.data&&this.playlistComponent.data&&V.data.playlistId==this.playlistComponent.data.playlistId?(V.loopOn=this.playlistComponent.loopOn,V.shuffleOn=this.playlistComponent.shuffleOn):(V.loopOn=!1,V.shuffleOn=!1),this.isShuffleNextPlaylist&&(V.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=V;this.playlistComponent.addEventListener("yt-navigate",
_.Ty(this,this.onPlaylistYtNavigate_))};
_.P.setAutoplayRenderer=function(V){this.autoplayData=V};
_.P.setPlaylistData=function(V){this.currentPlaylistData_=V;_.PA(this.hostElement,"yt-playlist-data-updated");_.sB.isEmpty(V)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(V)};
_.P.setPlayerPlaybackControlData=function(V){this.playerManager_&&this.playerManager_.updatePlayerComponents(V.playlistPanelRenderer)};
_.P.getPlaylistData=function(){return this.currentPlaylistData_};
_.P.getTempData_=function(V,D){if(this.playlistComponent==null)return null;V={};this.playlistComponent.shuffleOn&&(V.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(V.loop_on=this.playlistComponent.loopOn);D&&(V.autonav="1",_.DY().resolve(_.ue),D=_.Vf(),D>0&&(V.lact=D),this.playerManager_&&(D=this.playerManager_.getPlayer())&&D.shouldSendVisibilityState()&&(D=D.getVisibilityState(),D!=0&&(V.vis=D)));_.c("enable_unknown_lact_fix_on_html5")&&(_.DY().resolve(_.ue),V.lact=
_.Vf());return V};
_.P.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.P.setLoopStateEntityKey_=function(V){var D;this.loopStateEntityKey_=((D=this.getPlaylistLoopData_(V))==null?void 0:D.playlistLoopStateEntityKey)||null};
_.P.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.P.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.P.skipVideo=function(){var V=this,D=_.c("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||D)D=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.lf(_.dm,function(){V.onPlaylistNext();V.videoSkipJob_=0},D)};
_.P.cancelVideoSkip=function(){this.videoSkipJob_&&(_.dm.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.P.isInBackground_=function(){var V=window.document.visibilityState;return!(!V||V=="visible")};
_.P.onPlaylistIndex_=function(V){this.playlistComponent&&(V=this.playlistComponent.data.contents[V].playlistPanelVideoRenderer.navigationEndpoint,_.PA(this.hostElement,"yt-navigate",{endpoint:V,tempData:this.getTempData_(V)}))};
_.P.onPlayerStateChange_=function(V){if(V=V==0&&this.playlistComponent&&this.canAutoAdvance_)V=_.OC.getInstance(),V=!(V.autonavState_===3?V.autonavPauseReason_&&V.autonavPauseReason_.inputBoxFocus===!0:V.autonavState_===1&&V.disabledAutonavPauseReason_&&V.disabledAutonavPauseReason_.inputBoxFocus===!0);V&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.P.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.P.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.P.navigateToAutoplayWatchEndpoint_=function(V,D,f){var n=this.playlistComponent.data.currentIndex,t=this.getNumPlayableVideos_();V=="NORMAL"&&D=="autoplayVideo"&&n+1>=t&&f||!(V=this.getVideoEndpoint_(V,D))||(f=this.getTempData_(V,f),_.PA(this.hostElement,"yt-navigate",{endpoint:V,tempData:f}))};
_.P.getNumPlayableVideos_=function(){for(var V=0,D=_.r(this.playlistComponent.data.contents||[]),f=D.next();!f.done;f=D.next())f.value.playlistPanelVideoRenderer&&(V+=1);return V};
_.P.getVideoEndpoint_=function(V,D){if(this.autoplayData&&this.autoplayData.sets)for(var f=0,n=this.autoplayData.sets.length;f<n;f++){var t=this.autoplayData.sets[f];if(t.mode==V){if(t[D])return t[D];break}}else V=new _.cI("AutoplayData is undefined in playlist manager","Mode: "+V+" endpoint: "+D),_.zP(V)};
_.P.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.P.onPlaylistYtNavigate_=function(V){if(V.detail.endpoint){V.stopPropagation();var D=V.detail;D.tempData=this.getTempData_(V.detail.endpoint);_.PA(this.hostElement,"yt-navigate",D)}};
_.P.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.P.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.P.playlistLoopStateEntityChanged_=function(V){var D=this,f,n,t;return _.w(function(J){if(J.nextAddress==1){if(!V)return J.return();f=V.state==="PLAYLIST_LOOP_STATE_ONE";return D.playerManager_?_.b(J,D.playerManager_.getPlayerPromise(),3):J.jumpTo(2)}J.nextAddress!=2&&(n=J.yieldResult,n.setLoopVideo(f));t=V.state==="PLAYLIST_LOOP_STATE_ALL";D.playlistComponent&&(D.playlistComponent.loopOn=t);_.yz(J)})};
_.P.getPlaylistLoopData_=function(V){var D,f;if(V=V==null?void 0:(D=V.playlistButtons)==null?void 0:(f=D.menuRenderer)==null?void 0:f.topLevelButtons)for(D=_.r(V),f=D.next();!f.done;f=D.next())if(f=f.value,f.playlistLoopButtonRenderer)return f.playlistLoopButtonRenderer};
_.P.getLoopStateCommand_=function(V){var D=this.getPlaylistData(),f;D=((f=this.getPlaylistLoopData_(D))==null?void 0:f.states)||[];var n;V=(n=_.g(D[V?1:2],_.Rcr))==null?void 0:n.button;var t;return(t=_.g(V,_.RI))==null?void 0:t.command};
_.P.onPlayerLoopChange_=function(V){this.playlistLoopStateEntity_&&(V?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(V=this.getLoopStateCommand_(V))&&this.ytComponentBehavior.resolveCommand(V)};
_.P.onSleepTimerSettingsChanged_=function(V){this.canAutoAdvance_=V!=="End of video"};
pe.prototype.onPlaylistLoopStateEntityChanged=pe.prototype.onPlaylistLoopStateEntityChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],pe.prototype,"ytPlayerListenerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pe.prototype,"loopStateEntityKey_",void 0);
_.S([_.q({selectorArgs:["loopStateEntityKey_"],selector:_.a_Y}),_.p("design:type",Object)],pe.prototype,"playlistLoopStateEntity_",void 0);_.S([_.KI("playlistLoopStateEntity_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pe.prototype,"onPlaylistLoopStateEntityChanged",null);_.S([_.a({disableElementRegistration:!0,is:"yt-playlist-manager"})],pe);_.Y(pe,"yt-playlist-manager",void 0,{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var lgJ,Gnc=function(){if(lgJ!==void 0)return lgJ;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return lgJ=V};var Le=function(){var V=_.E.apply(this,arguments)||this;V.lastCallback=null;V.getAccountLinkPromises={};V.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);V.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return V};
_.v(Le,_.E);_.P=Le.prototype;_.P.getLocation=function(){return window.location.href};
_.P.getCompletionUrl=function(){return _.OX(this.getLocation())};
_.P.containsRedirectState=function(V){return(V=_.vV(_.l_n(V)))?(new URLSearchParams(V)).get("redirect_state")!==null:!1};
_.P.createGalConfig=function(V,D){var f=new q1W;V=f=D?this.getPopupOrRedirectSetting(f,_.XB("LINK_API_KEY"),_.XB("LINK_API_KEY_REDIRECT"),V):XC3(f,_.XB("LINK_API_KEY"));V.authUser=_.XB("SESSION_INDEX")||0;V.supportedFlows=new Set([4]);return V.build()};
_.P.getPopupOrRedirectSetting=function(V,D,f,n){this.isGalInteractionPopupMode(n)?(V.interactionMode=0,V=XC3(V,D)):(V.interactionMode=1,D=this.getCompletionUrl(),V.completionUrl=D,V=XC3(V,f));return V};
_.P.isGalInteractionPopupMode=function(V){if(this.redirectModeProviderAllowlist.has(V))switch(V){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.P.getStatusEntityKeyForProviderId=function(V){return _.HR(V+":all","accountLinkStatusEntity")};
_.P.findNestedPropValue=function(V,D){var f=!1,n=null;JSON.stringify(V,function(t,J){f||t!==D||(f=!0,n=J);return f?null:J});
return n};
_.P.findAccountLinkButtonViewModel=function(V,D){var f=null,n=!1;JSON.stringify(V,function(t,J){n||J.accountLinkStatusEntityKey!==D||J.accountLinkStatusSecondaryEntityKey||(n=!0,f=J);return n?null:J});
return f};
_.P.executeLinkingSuccessOrFailureCommands=function(V,D,f){var n=null,t;(D==null?0:(t=D.url)==null?0:t.includes("account_sharing"))?n=D==null?void 0:D.response:n=D==null?void 0:D.response;(D=this.findAccountLinkButtonViewModel(n,V))?(V=f?this.findNestedPropValue(D,"onSuccessCommand"):this.findNestedPropValue(D,"onFailureCommand"))?_.bC([V],this.hostElement):_.$w(Error("kl")):_.$w(Error("ll`"+V))};
_.P.handleInitializeRequest=function(V,D){var f=this,n=ooX(this.createGalConfig(V,!0));this.containsRedirectState(this.getLocation())?DiX(V,n.config,n.galService).then(function(t){var J=f.getStatusEntityKeyForProviderId(V);if(t.statusCode===1)D&&f.executeLinkingSuccessOrFailureCommands(J,D,!0),t=f.getLocation().indexOf("#"),t!==-1&&window.history.pushState(null,"",f.getLocation().substring(0,t));else return D&&f.executeLinkingSuccessOrFailureCommands(J,D,!1),Promise.reject(Error(t.statusMessage))}).catch(function(t){_.zP(t);
_.dq("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(t)}):this.getAccountLinkPromises[V]=n.startLinkingSession({serviceId:V})};
_.P.handleAccountLinkCommand=function(V){_.g(V,ePo)&&this.handleLinkRequest(_.g(V,ePo))};
_.P.handleLinkRequest=function(V){var D=this,f=V.thirdPartyId;if(f)if(this.isGalInteractionPopupMode(f)){var n=function(){D.closeAndFire("ytd-gaming-account-link-setting-renderer",V.onFailureCommand)},t=function(){D.closeAndFire("ytd-gaming-account-link-setting-renderer",V.onSuccessCommand)};
this.lastCallback=t;this.getAccountLinkPromises[f].then(function(J){yxV(J).then(function(H){H.statusCode===1?t():n()})}).catch(function(){n()})}else this.getAccountLinkPromises[f].then(function(J){yxV(J).then(function(H){if(H.statusCode!==1)return Promise.reject(Error(H.statusMessage))})}).catch(function(J){_.zP(J);
_.dq("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)})};
_.P.closeAndFire=function(V,D){_.o4(this.hostElement,"yt-close-popup-action",[V]);D&&_.bC([D],this.hostElement)};
_.P.handleAccountUnlinkCommand=function(V){_.g(V,cTf)&&this.handleUnlinkRequest(_.g(V,cTf))};
_.P.handleUnlinkRequest=function(V){var D=this,f=V.thirdPartyId;if(f){var n=function(){D.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",V.onFailureCommand)},t=function(){D.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",V.onSuccessCommand)};
this.lastCallback=t;var J=ooX(this.createGalConfig(f,!1));this.unlinkUserGal(J,f).then(function(H){H.statusCode===1?t():n()}).catch(function(){n()})}};
_.P.unlinkUserGal=function(V,D){return V.deleteLink(D)};
_.P.handleLogAccountLinkingEventCommand=function(V){_.c("enable_gel_log_commands")&&_.g(V,FJc)&&(V=_.g(V,FJc).event)&&_.dq("gamingAccountLinkStatusChanged",V)};
_.IG.Object.defineProperties(Le,{template:{configurable:!0,enumerable:!0,get:function(){return Gnc()}}});
_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],Le.prototype,"ytOpenPopupBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Le);_.Y(Le,"ytd-third-party-manager",function(){return Gnc()},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var eFW,cfq=function(){if(eFW!==void 0)return eFW;var V=document.createElement("template");_.B(V,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return eFW=V};var Fm3=_.WV(["\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      "]),IZ=function(){var V=_.E.apply(this,arguments)||this;V.currentPage=void 0;V.renderLoadingStateJobId=0;V.updatePageDataJobId=0;V.pageDisposeJobsets=new WeakMap;V.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"};V.shouldApplyLockupToWatchTransition=_.c("web_thumbnail_to_watch_transition");V.shouldApplySlideTransition=_.PI("web_page_transition_type")==="slide"||_.c("enable_plj_landing_page");V.shouldApplyLearningJourneyTransition=_.c("enable_plj_landing_page");V.TEST_ONLY=void 0;return V};
_.v(IZ,_.E);_.P=IZ.prototype;_.P.ready=function(){var V=_.DY();V.addProvider({provide:_.xl,useValue:this});V.addProvider({provide:_.QRl,useValue:this})};
_.P.created=function(){this.pagePool=new L9X;this.contextSwitcher=new JvB};
_.P.attached=function(){_.PA(this.hostElement,"attached");var V=_.DY().resolve(_.Vx(_.RB));V&&(this.contextSwitcher.JSC$17754_networkService_=V);this.viewTransitionManager=_.DY().resolve(_.cx);this.setupPageTransitionAnimation()};
_.P.getPageOffset=function(V){return V.getScrollTop()};
_.P.setPageOffset=function(V,D){try{V.setScrollTop(D)}catch(f){}};
_.P.setPageOffsetForNavigation=function(V,D){_.PA(this.hostElement,"yt-navigate-set-page-offset",{page:V,offset:D===void 0?0:D})};
_.P.pauseActiveContext=function(){var V=this.contextSwitcher;V.activeContext_&&V.activeContext_.pause()};
_.P.getModuleNameForType=function(V){return V==="watch"?_.c("kevlar_watch_fixie")?"watchFixie":_.c("kevlar_watch_grid")?"watchGrid":"watchFlexy":V==="shorts"||V==="search"?V:"browse"};
_.P.attachPage=function(V){var D,f=!_.c("pc_is_attached_ks")&&(V==null?void 0:(D=V.polymerController)==null?void 0:D.isAttached);if(!V.isAttached&&!f)try{_.Pt(this.hostElement).appendChild(V)}catch(t){var n;_.zP(new _.cI("Error attaching page element for component",{origin:(n=this.currentPage)==null?void 0:n.is,component:V.is}))}};
_.P.setActivePage=function(V){var D=this,f=!1,n=function(){var t=D.isOnWatch(),J=D.currentPage;if(V)if(V!==D.currentPage){J&&(J.hidden=!0,J.active=!1,J.removeAttribute("role"));D.currentPage=V;var H,Q=_.Zx((H=D.data)==null?void 0:H.endpoint);J&&_.PA(D.hostElement,"yt-page-type-changed",{oldPageType:J.is,newPageType:V.is,newPageSubtype:Q});_.pI().dispatch(_.nA({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:V.is}));_.pI().dispatch(_.nA({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Q||""}));V.hidden=
!1;D.attachPage(V);V.active=!0;V.setAttribute("role","main");J&&D.setPageOffsetForNavigation(V,0);_.c("kevlar_remove_page_dom_on_switch")&&!t&&J&&_.Pt(D.hostElement).removeChild(J)}else f=!0;else t=new _.cI("Unable to set active page",J?J.is:"unknown origin",(Q=D.data)==null?void 0:Q.endpoint),_.NG(t)};
this.shouldRunLockupToWatchTransition(this.currentPage,V)?zCc(this.viewTransitionManager,n):this.shouldRunBrowseTransition(this.currentPage,V)?maW(this.viewTransitionManager,n):this.shouldRunLearningJourneyTransition(this.currentPage,V)?CeW(this.viewTransitionManager,n):n();return f};
_.P.shouldRunLockupToWatchTransition=function(V,D){return this.shouldApplyLockupToWatchTransition&&(V==null?void 0:V.is)==="ytd-browse"&&this.isWatchPage(D)};
_.P.shouldRunBrowseTransition=function(V,D){return this.shouldApplySlideTransition&&(V==null?void 0:V.is)==="ytd-browse"&&(D==null?void 0:D.is)==="ytd-browse"&&V!==D};
_.P.shouldRunLearningJourneyTransition=function(V,D){return this.shouldApplyLearningJourneyTransition&&(V==null?void 0:V.is)==="ytd-browse"&&((D==null?void 0:D.is)==="ytd-watch-learning-journey"||(D==null?void 0:D.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.P.shouldRunWatchNextLoadedTransition=function(V,D){return this.viewTransitionManager&&V.is==="ytd-watch-flexy"&&D};
_.P.updatePageData=function(V){var D=this,f=this.data;this.updatePageDataJobId&&_.dm.cancelJob(this.updatePageDataJobId);this.data=V;return new _.Qf(function(n){var t=function(){V.filler?D.performDataUpdate(V,f):$3X(function(){D.performDataUpdate(V,f)});
var T=_.C_();_.qP(T,"cr")||T.processSignal("cr");n()},J=function(){V&&V.page==="watch"?D.updatePageDataJobId=_.lf(_.dm,t):t()};
if(_.c("kevlar_enable_mss_page_modules_client")&&V){var H=_.DY().resolve(_.E5),Q=D.getModuleNameForType(V.page);(H=uhV(H,[Q]))?H.then(J):J()}else J()})};
_.P.isDownloadsPage=function(V){var D,f;return(V==null?void 0:(D=V.endpoint)==null?void 0:(f=D.browseEndpoint)==null?void 0:f.browseId)==="FEdownloads"};
_.P.setPlayerSyncInterval=function(V){var D;return _.w(function(f){if(f.nextAddress==1)return _.b(f,_.DY().resolve(_.nX),2);D=f.yieldResult;D.setUpPositionSyncInterval(V);_.yz(f)})};
_.P.performDataUpdate=function(V,D){_.c("kevlar_early_popup_close")||_.o4(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var f=!V.filler;f&&(_.zm("lps"),_.c("config_age_report_killswitch")||lsw());var n=nK(V),t,J=!1;if(_.c("kevlar_remove_page_dom_on_switch")){var H=D&&nK(D);n===H&&(t=this.getCurrentPage())}t||(t=XU(this.pagePool,n));f&&W7W(this.pagePool.elementPoolPopulator,n);f&&!this.renderLoadingStateJobId&&(J=this.setActivePage(t));if(t){H=n==="watch";var Q=
n==="shorts",T=n==="learning_journey_watch";_.c("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(t);if(H||Q||T)t.playerData=V.playerResponse;if(Q)if(_.c("web_enable_delay_shorts_sequence_call")){V.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=V.reelWatchSequenceResponse);t.currentEndpoint=V.endpoint;var y;t.isPreviousPageShorts=!!(D==null?0:(y=D.endpoint)==null?0:y.reelWatchEndpoint);var Z,l;V.cachedSequenceParams=((Z=V.endpoint)==null?void 0:(l=Z.reelWatchEndpoint)==
null?void 0:l.sequenceParams)||V.cachedSequenceParams||(D==null?void 0:D.cachedSequenceParams);var G,F;V.cachedSequenceProvider=((G=V.endpoint)==null?void 0:(F=G.reelWatchEndpoint)==null?void 0:F.sequenceProvider)||V.cachedSequenceProvider||(D==null?void 0:D.cachedSequenceProvider);t.cachedSequenceParams=V.cachedSequenceParams;t.cachedSequenceProvider=V.cachedSequenceProvider}else{V.reelWatchSequenceResponse?t.reelWatchSequenceResponse=V.reelWatchSequenceResponse:V.cachedReelWatchSequenceResponse?
t.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse:_.c("web_enable_cached_reel_sequence_fix")&&t.cachedReelWatchSequenceResponse&&!t.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse);t.currentEndpoint=V.endpoint;var k;t.isPreviousPageShorts=!!(D==null?0:(k=D.endpoint)==null?0:k.reelWatchEndpoint);V.cachedReelWatchSequenceResponse=V.reelWatchSequenceResponse||V.cachedReelWatchSequenceResponse||(D==null?void 0:D.cachedReelWatchSequenceResponse);t.cachedReelWatchSequenceResponse=
V.cachedReelWatchSequenceResponse}y=this.isDownloadsPage(V);Z=this.isDownloadsPage(D);y&&!Z?this.setPlayerSyncInterval(6E5):!y&&Z&&this.setPlayerSyncInterval();_.c("block_all_player_prefetch_requests")||this.preparePrefetchRequest(V,t,f,H,Q,T);qof(_.DY().resolve(_.qw),D,V);_.LE(_.DY().resolve(_.ue));_.c("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(t);f?(f=typeof t.loadPage,f==="function"?(t.pageContext=rvV(this.contextSwitcher,t,t.data!==V.response),f=function(){t.loadPage(V.response)},
this.shouldApplySlideTransition&&t.is==="ytd-browse"&&J&&(n==="learning"||this.isDifferentBrowseId(V==null?void 0:V.endpoint,D==null?void 0:D.endpoint))?maW(this.viewTransitionManager,f):this.shouldRunWatchNextLoadedTransition(t,J)?RCW(this.viewTransitionManager,f):f()):_.mw(new _.cI("b/38014653 ",[n,
t.is,t.nodeName,f,t.isAttached,D&&nK(D),this.hostElement.children.length])),_.zm("pdl")):(t.hidden=!0,V.response.filler=!0,t.data=V.response,this.attachPage(t));_.PA(this.hostElement,"yt-page-data-updated",{pageType:n})}_.gq(_.dm,function(){_.c("logging_avoid_blocking_during_navigation")&&_.fbd().transition("none");var d=gLB(),z=t;if(V){var C=MJo(V),A=h0B(V),O;a:{if(V.playerResponse){var W=V.playerResponse,I;if((O=W.auxiliaryUi)==null?0:(I=O.messageRenderers)==null?0:I.upsellDialogRenderer){O=W.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(V.response&&(O=V.response,(W=O.overlay)==null?0:W.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var x;var oY;I=(x=V.playerResponse)==null?void 0:(oY=x.auxiliaryUi)==null?void 0:oY.messageRenderers;x=(I==null?void 0:I.enforcementMessageViewModel)||(I==null?void 0:I.bkaEnforcementMessageViewModel);x=(x==null?void 0:x.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?x:void 0;var wZ;a:{if(V.response&&(oY=V.response,(wZ=oY.overlay)==null?0:
wZ.commandWrapperPromoRenderer)){wZ=oY.overlay.commandWrapperPromoRenderer;break a}wZ=void 0}F9W(d,C,A,O,x,wZ,z)}})};
_.P.preparePrefetchRequest=function(V,D,f,n,t,J){var H,Q,T,y,Z,l,G,F,k,d,z,C,A,O,W;return _.w(function(I){if(I.nextAddress==1)return!f||!(n||t||J)||_.c("kevlar_disable_background_prefetch")&&_.a9(_.O$U)()===0?I.return():(H=_.Ma(D))?_.b(I,H.getPlayerPromise(),2):I.return();Q=I.yieldResult;T=_.DY().resolve(_.Vx(_.RB));if(!T)return I.return();if(t)return y=_.nY(_.Gb),hqV(y,(Z=V.endpoint)==null?void 0:Z.reelWatchEndpoint,D.reelWatchSequenceResponse,Q,T),I.return();F=(l=V.response)==null?void 0:(G=l.responseContext)==
null?void 0:G.webResponseContextExtensionData;if(!F)return I.return();A=(k=V.response)==null?void 0:(d=k.contents)==null?void 0:(z=d.twoColumnWatchNextResults)==null?void 0:(C=z.autoplay)==null?void 0:C.autoplay;O=_.DY().resolve(_.zI);W=_.nY(_.Gb);U3w(W,F,Q,T,O,A);_.yz(I)})};
_.P.movePlayerToWatch=function(V){var D=this,f,n;return _.w(function(t){f=XU(D.pagePool,"watch");n=f.getPlayerContainer();V.appendTo(n);_.yz(t)})};
_.P.movePlayerToShorts=function(V){var D=this,f,n,t;return _.w(function(J){f=XU(D.pagePool,"shorts");n=f.getPlayerContainer();(t=V)==null||t.appendTo(n,void 0,!0);_.yz(J)})};
_.P.getPlayerFromWatch=function(){var V=XU(this.pagePool,"watch");return _.Ma(V)};
_.P.getPlayerFromShorts=function(){var V=XU(this.pagePool,"shorts");return _.Ma(V)};
_.P.startLoadingWatch=function(){var V=XU(this.pagePool,"watch");this.renderLoadingStateJobId?(_.dm.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(V)};
_.P.startLoadingShorts=function(){var V=XU(this.pagePool,"shorts");this.setActivePage(V)};
_.P.startLoadingLearningJourney=function(){var V=XU(this.pagePool,"learning_journey_watch");this.setActivePage(V)};
_.P.getCurrentPage=function(){return this.currentPage};
_.P.getDestinationPageType=function(){return this.destinationPageType};
_.P.getCurrentData=function(){return this.data};
_.P.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.P.isOnShorts=function(){var V;return((V=this.currentPage)==null?void 0:V.is)==="ytd-shorts"};
_.P.isWatchPage=function(V){return!!V&&(V.is==="ytd-watch-flexy"||V.is==="ytd-watch-fixie"||V.is==="ytd-watch-grid")};
_.P.preparePage=function(V,D){var f=this,n=function(){var H=f.pagePool.preparePage(V,f.currentPage,D);H&&f.attachPage(H)},t=function(H){_.R2(H,D);
_.zP(H)};
if(_.c("kevlar_enable_mss_page_modules_client")){var J=this.getModuleNameForType(V);if(J=uhV(_.DY().resolve(_.E5),[J])){J.then(n.bind(this)).catch(t.bind(this));return}}try{n()}catch(H){t(H)}};
_.P.lazyPrepareCriticalPages=function(V,D){V=_.Zx(D)||V;_.c("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(V).then(this.maybePrepareWatchPage.bind(this,V)):this.maybePrepareWatchPage(V)};
_.P.maybePrepareWatchPage=function(V){V!=="watch"&&_.gq(_.dm,this.preparePage.bind(this,"watch"))};
_.P.downloadPageModules=function(V){V=this.getModuleNameForType(V);var D=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);D.delete(V);var f=_.DY().resolve(_.E5);f.JSC$16511_loadModules(V);return f.JSC$16511_loadModules.apply(f,_.sz(D))};
_.P.renderPageLoadingState=function(V,D){this.preparePage(V,D);var f=XU(this.pagePool,V);f.loadingData&&(f.loadingData.endpoint=D);f.loading=!0;this.setActivePage(f);V!=="watch"&&V!=="learning_journey_watch"||_.PA(this.hostElement,"yt-guide-close")};
_.P.prepareForNavigation=function(V,D){var f=this;if(this.currentPage&&this.data){var n=_.Zx(D)||V;this.destinationPageType=n;nK(this.data)==n&&_.PA(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((V==="watch"||V==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.dm.cancelJob(this.renderLoadingStateJobId);_.DY().resolve(_.qw).deactivate(D);var t=this.data;this.renderLoadingStateJobId=_.sw(_.dm,function(){if(f.data!=
t){var J=XU(f.pagePool,V);f.setActivePage(J)}else f.renderPageLoadingState(V,D);f.renderLoadingStateJobId=0},150)}};
_.P.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var V=new _.h5(1);this.currentPage.pageDisposeJobs.forEach(function(D){_.UY(V,D)});
this.pageDisposeJobsets.set(this.currentPage,V)}};
_.P.flushPageDisposeJobset=function(V){var D=this.pageDisposeJobsets.get(V);D&&(D.flushJobs(),this.pageDisposeJobsets.delete(V))};
_.P.onYtStopOldPlayer=function(V,D){D=D===void 0?!1:D;var f,n=_.oT("kevlar_new_stop_old_player_logic_pages");if(_.c("kevlar_check_current_page_on_stop_old_player")&&(n.length===0||this.currentPage&&n.includes(this.currentPage.is)))if(this.data&&(f=nK(this.data)),nK(V)===f&&this.currentPage&&nK(this.currentPage.data)!==f)var t=_.Ma(this.currentPage);else f=nK(this.data),t=XU(this.pagePool,f),t=_.Ma(t);else this.data&&(f=nK(this.data),t=XU(this.pagePool,f),t=_.Ma(t));if(t)if(V=nK(V),n=XU(this.pagePool,
V),n=_.Ma(n),t==n)D&&!_.c("kevlar_disable_preemptive_player_reset")&&t.resetForNewPlayback();else if(D=f==="watch"&&V!=="watch",!D||V==="shorts"||_.knP()&&!TmR(this.data)&&V!=="yts-products"&&V!="mini_app"&&V!="playables")f=_.DY().resolve(_.qw),D&&f.isMiniplayerActive()&&f.pipController.getWindow()||t.stop()};
_.P.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var V=_.tU("web_page_transition_exit_ms"),D=_.tU("web_page_transition_wait_ms"),f=_.tU("web_page_transition_enter_ms");if(!isNaN(V)||!isNaN(D)||!isNaN(f))if(V=GVo(Fm3,V,D,f))D=document.createElement("style"),D.textContent=_.grY(V),document.head.appendChild(D)}};
_.P.isDifferentBrowseId=function(V,D){V=_.g(V,_.jL);D=_.g(D,_.jL);return(V==null?void 0:V.browseId)!==(D==null?void 0:D.browseId)};
_.IG.Object.defineProperties(IZ,{template:{configurable:!0,enumerable:!0,get:function(){return cfq()}}});
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],IZ.prototype,"ytActionHandlerBehavior",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-page-manager"})],IZ);_.Y(IZ,"ytd-page-manager",function(){return cfq()},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var OJ=function(V,D,f){f=f===void 0?!1:f;_.cq.call(this);this.draggableElement=V;this.callbacks=D;this.allowClicks=f;this.dragOccurred=!1;this.internalDragger=new _.m6(this.draggableElement);this.dragDelay=new _.hq(this.delayedDrag.bind(this));g$3(this);this.allowClicks&&(_.G2F(this.internalDragger,5),V.addEventListener("click",_.Ty(this,this.validateClick),{capture:!0}))};
_.v(OJ,_.cq);var g$3=function(V){_.kt(V.internalDragger,"earlycancel",function(){V.allowClicks&&(V.dragOccurred=!1)});
_.kt(V.internalDragger,"start",function(D){var f,n;(n=(f=V.callbacks).onStartDrag)==null||n.call(f,D);!D.defaultPrevented&&V.allowClicks&&(V.dragOccurred=!0)});
_.kt(V.internalDragger,"beforedrag",function(D){D.preventDefault();V.lastOffset=new _.uB(D.clientX-V.internalDragger.startX,D.clientY-V.internalDragger.startY);V.dragDelay.start()});
_.kt(V.internalDragger,"end",function(){V.dragDelay.stop();var D,f;(f=(D=V.callbacks).onEndDrag)==null||f.call(D);V.lastOffset=void 0})};
OJ.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
OJ.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Ty(this,this.validateClick),{capture:!0})};
OJ.prototype.validateClick=function(V){this.dragOccurred&&(this.dragOccurred=!1,V.stopPropagation(),V.preventDefault())};var x6=function(V,D){_.cq.call(this);this.JSC$17951_resizeContainer=V;this.callbacks=D;this.aspectRatio=16/9;this.JSC$17951_resizers=[];V=_.r(this.JSC$17951_resizeContainer.children);for(D=V.next();!D.done;D=V.next())v$V(this,D.value)};
_.v(x6,_.cq);x6.prototype.disposeInternal=function(){for(var V=_.r(this.JSC$17951_resizers),D=V.next();!D.done;D=V.next())D.value.dispose();V=_.r(this.JSC$17951_resizeContainer.children);for(D=V.next();!D.done;D=V.next())D.value.setAttribute("disabled","");this.JSC$17951_resizers.length=0};
x6.prototype.setSize=function(V){this.currentMiniplayerSize=V};
x6.prototype.setAspectRatio=function(V){this.aspectRatio=V};
x6.prototype.update=function(V,D){for(var f=_.r(this.JSC$17951_resizeContainer.children),n=f.next();!n.done;n=f.next()){n=n.value;var t=n.getAttribute("alignment");_.rI(n,"disabled",t===V||t===D)}};
var v$V=function(V,D){var f=D.getAttribute("alignment"),n=new OJ(D,{onStartDrag:function(t){if(D.hasAttribute("disabled"))t.preventDefault();else{V.dragStartSize=V.currentMiniplayerSize;var J,H;(H=(J=V.callbacks).onStartResize)==null||H.call(J)}},
onDrag:function(t){if(V.dragStartSize){f!=="north"&&f!=="west"||t.scale(-1);var J=f==="north"||f==="south";t=J?t.y:t.x;J&&V.aspectRatio>=1?t*=V.aspectRatio:!J&&V.aspectRatio<1&&(t/=V.aspectRatio);V.callbacks.onResize(V.dragStartSize+t)}}});
V.JSC$17951_resizers.push(n)};var knR;var sxR=_.MA(function(V){var D=_.W2("yt-draggable"),f=V.onDrag,n=V.onDragStart,t=V.onDragEnd,J=_.Or(V,{allowClicks:!1,dragThreshold:5}),H=J.dragThreshold,Q=J.allowClicks;V=J.children;J=J.className;var T=void 0,y=void 0,Z=new _.uB(0,0),l=!1;_.Nl(function(){T=new _.m6(D.value);y=new _.hq(F);G(T,y);if(Q()){_.G2F(T,H());var d;(d=D.value)==null||d.addEventListener("click",k,{capture:!0})}_.dc(function(){var z;(z=T)==null||z.dispose();if(Q()){var C;(C=D.value)==null||C.removeEventListener("click",k,{capture:!0})}})});
var G=function(d,z){_.kt(d,"earlycancel",function(){Q()&&(l=!1)});
_.kt(d,"start",function(C){n==null||n(C);C.defaultPrevented||Q()&&(l=!0)});
_.kt(d,"beforedrag",function(C){T&&y&&(C.preventDefault(),Z=new _.uB(C.clientX-T.startX,C.clientY-T.startY),y.start())});
_.kt(d,"end",function(){z.stop();t==null||t();Z=new _.uB(0,0)})},F=function(){Z&&f(Z)},k=function(d){l&&(l=!1,d.stopPropagation(),d.preventDefault())};
return _.K("yt-draggable",{el:D,class:_.KT("ytDraggableComponentHost",J)},V)},"xg");var BhV=_.MA(function(V){var D=_.r(_.HJ(0,void 0,"CvAwBd")),f=D.next().value,n=D.next().value;D=function(t){var J={},H={};return _.K(sxR,{className:_.KT("ytdMiniplayerComponentResizer",(J.ytdMiniplayerComponentResizerDisabled=function(){return t===V.horizontalAlignment()||t===V.verticalAlignment()},J.ytdMiniplayerComponentResizerNorth=t==="north",J.ytdMiniplayerComponentResizerEast=t==="east",J.ytdMiniplayerComponentResizerSouth=t==="south",J.ytdMiniplayerComponentResizerWest=t==="west",J)),
onDragStart:function(){n(V.currentMiniplayerSize());if(V.onResizeStart)V.onResizeStart()},
onDrag:function(Q){t!=="north"&&t!=="west"||Q.scale(-1);var T;Q=(T=t==="north"||t==="south")?Q.y:Q.x;var y=V.currentAspectRatio();T&&y>=1?Q*=y:!T&&y<1&&(Q/=y);T=Q;V.onResize(f()+T)}},_.K("div",{class:_.KT("ytdMiniplayerComponentResizerCorner",(H.ytdMiniplayerComponentResizerNorthCorner=t==="north",H.ytdMiniplayerComponentResizerEastCorner=t==="east",H.ytdMiniplayerComponentResizerSouthCorner=t==="south",H.ytdMiniplayerComponentResizerWestCorner=t==="west",H))}))};
return _.K("div",{class:"ytdMiniplayerComponentResizers"},D("north"),D("east"),D("south"),D("west"))},"yg");var d0J=16/9,udB=_.MA(function(){var V=_.W2("ytd-miniplayer"),D=_.r(_.HJ(new _.bB(NaN,NaN),void 0,"GNXZTe")),f=D.next().value,n=D.next().value;D=_.r(_.HJ(!1,void 0,"XqI9xc"));var t=D.next().value,J=D.next().value;D=_.r(_.HJ(!1,void 0,"k3iLGe"));var H=D.next().value,Q=D.next().value;D=_.r(_.HJ(!1,void 0,"ApjQ9b"));var T=D.next().value,y=D.next().value;D=_.r(_.HJ(!1,void 0,"PzlhGe"));var Z=D.next().value,l=D.next().value;D=_.r(_.HJ(!1,void 0,"pm6fl"));var G=D.next().value,F=D.next().value;D=_.r(_.HJ(!1,
void 0,"xQrL1e"));var k=D.next().value,d=D.next().value;D=_.r(_.HJ(d0J,void 0,"NcrWZb"));var z=D.next().value,C=D.next().value,A=_.r(_.HJ(!1,void 0,"e5rxBc"));D=A.next().value;var O=A.next().value;A=_.r(_.HJ(!1,void 0,"uZtCde"));var W=A.next().value,I=A.next().value;A=_.r(_.HJ(void 0,void 0,"wKFvEe"));var x=A.next().value,oY=A.next().value;A=_.r(_.HJ(_.XB("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var wZ=A.next().value,ZZ=A.next().value;A=_.r(_.HJ("south",void 0,"QXcssb"));var sd=A.next().value,
NU=A.next().value;A=_.r(_.HJ(400,void 0,"Fr8gSb"));var Bn=A.next().value,aY=A.next().value,Ed=_.DY().resolve(_.qw).miniplayerPropSignalMap[0],V0=Ed.data,kf=Ed.externalPlaylistData;A=Ed.toastData;var mY=Ed.playabilityStatus,Ko=Ed.isReadyToResume,Eu=Ed.isDisabled,y0=Ed.watchWhile,BH=Ed.playerVe,wu=Ed.expandVe,lF=Ed.closeVe,rZ=Ed.readyToResumeVe,wP=Ed.readyToResumeCloseVe,gP=Ed.repositionVe,uX=Ed.resizeVe;Ed=_.r(_.Gk(Ko));var cH=Ed.next().value,WH=Ed.next().value,S5=!1,Il=!1,ol;_.Nl(function(){n(_.FS());
V.value.addEventListener("animationend",function($p){$p.target===V.value&&(F(!1),d(!1))});
Gqv(V.value)});
_.Se("yt-window-resized",function($p){$p&&n($p)});
var al=function(){ol&&C(ol.getVideoAspectRatio())},cB=function(){if(ol){var $p=ol.getPlayerState()===1;
cH()&&$p&&WH(!1)}},jE=function(){var $p=wu();
if($p){var ZR=_.Ni(3);ZR&&_.p6(ZR,$p)}},dP=function(){var $p=lF(),ZR=wP();
$p&&_.p6(_.Ni(3),$p);Ko()&&ZR&&_.p6(_.Ni(3),ZR)};
_.Se("yt-activate-miniplayer",function($p){var ZR;return _.w(function(hZ){if(hZ.nextAddress==1)return t()?hZ.return():_.b(hZ,(ZR=_.DY().resolve(_.qw).getPlayerElement())==null?void 0:ZR.getPlayerPromise(),2);ol=hZ.yieldResult;if(!ol)return hZ.return();!W()&&_.c("kevlar_watch_while_v2")&&(NU($p&&!_.c("kevlar_watch_while_bottom_align")?"north":"south"),ZZ(_.XB("HTML_DIR")==="rtl"?"west":"east"));var Uc=ol;Uc.addEventListener("onVideoDataChange",al);Uc.addEventListener("onStateChange",cB);Uc.addEventListener("onExpandMiniplayer",
jE);Uc.addEventListener("onCloseMiniplayer",dP);C(ol.getVideoAspectRatio());J(!0);jW3()||F(!0);_.yz(hZ)})});
_.Se("yt-deactivate-miniplayer",function($p){return _.w(function(ZR){if(!t())return ZR.return();J(!1);WH(!1);d($p);l(!1);Q(!1);if(ol){var hZ=ol;hZ.removeEventListener("onVideoDataChange",al);hZ.removeEventListener("onStateChange",cB);hZ.removeEventListener("onExpandMiniplayer",jE);hZ.removeEventListener("onCloseMiniplayer",dP)}jW3()||F(!0);_.yz(ZR)})});
var Q0=function(){return!(y0()&&_.c("kevlar_watch_while_modern"))},o3=function(){var $p;
return!(($p=kf())==null||!$p.contents)},oq=function(){var $p=Bn();
var ZR=f();ZR=Math.min(Math.min(ZR.width,ZR.height)-32,720);var hZ=z(),Uc=Q0(),PJ=o3()&&H(),P6=Math.min($p,ZR);$p=new _.bB(192,Uc?116:192);hZ=MYv(new _.bB(PJ?d0J:hZ,1),new _.bB(P6,Uc?P6-76:P6));$p.width<=hZ.width&&$p.height<=hZ.height||(xAZ(hZ,$p),hZ.width=Math.min(hZ.width,ZR),hZ.height=Math.min(hZ.height,ZR));return new _.bB(hZ.width,_.Nw(192,hZ.height+vyv(Uc,PJ),720))},c6=function(){var $p=oq(),ZR=Q0(),hZ=o3()&&H();
return new _.bB($p.width,$p.height-vyv(ZR,hZ))},Sv=function(){var $p=function(ZR){ZR.target===V.value&&Z()&&(l(!1),V.value.removeEventListener("transitionend",$p))};
jW3()||(V.value.addEventListener("transitionend",$p),l(!0));Q(!H())};
_.BJ(function(){var $p=BH(),ZR=_.Ni(3),hZ=_.u8(3);if(ZR&&hZ&&$p){_.Y8(ZR,hZ,$p);hZ=gP();var Uc=uX(),PJ=wu(),P6=lF(),o2=wP();PJ&&P6&&o2&&(_.$8(ZR,$p,[PJ,P6,o2]),_.SJ(ZR,[PJ,P6]));hZ&&Uc&&_.$8(ZR,$p,[hZ,Uc])}},"Snz6Ld");
_.BJ(function(){var $p=rZ();if($p){var ZR=_.Ni(0),hZ=_.u8(0);ZR&&hZ&&(_.Y8(ZR,hZ,$p),_.SJ(ZR,[$p]))}},"X1FpHd");
Ed={};return _.K("ytd-miniplayer",{el:V,class:_.KT("ytdMiniplayerComponentHost",(Ed.ytdMiniplayerComponentVisible=function(){return t()||G()},Ed.ytdMiniplayerComponentAnimatingSnap=T,Ed.ytdMiniplayerComponentAnimatingPlaylistExpand=Z,Ed.ytdMiniplayerComponentAnimatingFade=G,Ed),function(){if(G()){var $p=sd();
var ZR=t(),hZ=k();$p=ZR?$p==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":hZ?$p==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":$p==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else $p="";return $p}),
style:_.el({top:function(){return sd()==="north"?"16px":""},
right:function(){return wZ()==="east"?"16px":""},
bottom:function(){return sd()==="south"?"16px":""},
left:function(){return wZ()==="west"?"16px":""},
width:function(){return oq().width+"px"},
height:function(){return oq().height+"px"},
transform:function(){var $p=x();return $p?"translate("+$p.x+"px, "+$p.y+"px)":""}})},_.K("div",{class:"ytdMiniplayerComponentContent"},_.K(sxR,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function($p){var ZR=gyR(wZ(),sd(),f(),oq(),x()),hZ=c6();Math.abs($p.clientY-(ZR.y+hZ.height))>15?(O(!0),$p=_.Ni(3),ZR=gP(),S5||(S5=!0,$p&&ZR&&_.SJ($p,[ZR])),$p&&ZR&&_.p6($p,ZR)):$p.preventDefault()},
onDrag:function($p){oY($p)},
onDragEnd:function(){var $p=eIw(gyR(wZ(),sd(),f(),oq(),x()),f(),oq()),ZR=Fqv(wZ(),sd(),f(),oq()),hZ=Fqv($p.horizontalAlignment,$p.verticalAlignment,f(),oq());hZ=new _.uB(hZ.x-ZR.x,hZ.y-ZR.y);var Uc;ZR=ZR.y+(((Uc=x())==null?void 0:Uc.y)||0)+oq().height/2;var PJ=function(){wZ()===$p.horizontalAlignment&&sd()===$p.verticalAlignment||I(!0);ZZ($p.horizontalAlignment);NU($p.verticalAlignment);oY(void 0)},P6=function(o2){o2.target===V.value&&T()&&(y(!1),PJ(),V.value.removeEventListener("transitionend",P6))};
O(!1);sd()==="south"&&ZR>f().height?(PJ(),_.DY().resolve(_.qw).close()):(V.value.addEventListener("transitionend",P6),y(!0),oY(hZ))}},_.K(_.e,{cond:t,
then:function(){return _.K(_.kjv,{isDisabled:Eu,playabilityStatus:mY,size:c6})}}),_.K(_.e,{cond:Q0,
then:function(){return _.K(_.grq,{isReadyToResume:cH,data:V0,expanded:H,onExpandClick:Sv,playlistData:kf})}}),_.K(_.e,{cond:D,
then:function(){return _.K("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.K(_.e,{cond:function(){return o3()&&H()||Z()},
then:function(){return _.K(_.CmL,{className:"ytdMiniplayerComponentPlaylistPanel",data:kf,hideHeaderText:!0,withinMiniplayer:!0})}}),_.K("div",{class:"ytdMiniplayerComponentToast"},_.K(_.skc,{toastData:A}))),_.K(BhV,{onResize:function($p){aY(_.Nw(192,$p,720))},
onResizeStart:function(){var $p=_.Ni(3),ZR=uX();Il||(Il=!0,$p&&ZR&&_.SJ($p,[ZR]));$p&&ZR&&_.p6($p,ZR)},
currentAspectRatio:z,currentMiniplayerSize:Bn,horizontalAlignment:wZ,verticalAlignment:sd}))},"zg");_.c("ytd_miniplayer_to_wiz")&&_.fT(udB,"ytd-miniplayer",{});_.fT(_.skc,"ytd-miniplayer-toast",{props:{toastData:_.WX}});var NhR=16/9,m0v=new _.bB(400,400/NhR),MD=function(){var V=_.E.apply(this,arguments)||this;V.active=!1;V.hasNoData=!1;V.enabled=!1;V.expanded=!1;V.readyToResume=!1;V.isDisabled=!1;V.externalPlaylistData={};V.premiumBadges=[];V.watchWhile=!1;V.playerState=null;V.verticalAttachment="south";V.horizontalAttachment=_.XB("HTML_DIR")==="rtl"?"west":"east";V.isAnimatingFade=!1;V.isAnimatingSnap=!1;V.isAnimatingExpand=!1;V.isDragging=!1;V.playerHidden=!1;V.hasPlaylistData=!1;V.closed=!1;V.expandedClosed=!1;
V.isForReadyToResume=!1;V.watchResponse=null;V.player=null;V.playerVe=null;V.expandVe=null;V.closeVe=null;V.readyToResumeCloseVe=null;V.disabledInitialStateIsPlaying=!1;V.PLAYER_EVENTS=new Map;V.aspectRatio=NhR;V.currentMiniplayerSize=400;V.userSetSize=!1;V.userSetPosition=!1;V.userHasDragged=!1;V.maxMiniplayerSize=720;V.transform=new _.uB(0,0);V.windowDimensions=new _.bB(NaN,NaN);V.dimensions=m0v;V.screenLayer=3;V.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return V};
_.v(MD,_.E);_.P=MD.prototype;_.P.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.registerWithViewTransitionManager()};
_.P.ready=function(){this.setUpDragging();this.setUpResizing()};
_.P.attached=function(){this.onWindowResized(_.FS());this.hostElement.addEventListener("animationend",_.Ty(this,this.resetFadingAnimation))};
_.P.detached=function(){this.hostElement.removeEventListener("animationend",_.Ty(this,this.resetFadingAnimation))};
_.P.resetFadingAnimation=function(V){V.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.P.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.P.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.P.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var V=_.Ni(this.screenLayer);this.readyToResumeCloseVe&&V&&_.SJ(V,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.P.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var V=_.Ni(0),D=_.u8(0);V&&D&&(_.Y8(V,D,this.readyToResumeVe),_.SJ(V,[this.readyToResumeVe]))}};
_.P.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var V=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=V===-1||V===1||V===3)&&this.player.pauseVideo()}};
_.P.activate=function(V,D){D=D===void 0?!1:D;var f=this,n;return _.w(function(t){if(t.nextAddress==1)return f.setInitialActivatePositioning(D),f.enabled=!0,f.active=!0,f.expanded=!1,f.closed=!1,f.expandedClosed=!1,f.watchWhileHidden||(f.isAnimatingFade=!0),_.DY().resolve(_.zI).setPlaylistComponent(f.JSC$17962_playlistPanel),V.appendTo(f.playerContainer),_.b(t,V.getPlayerPromise(),2);n=t.yieldResult;n.setSizeStyle(!1,!0);f.ytPlayerListenerBehavior.listenToPlayerEvents(n,f.PLAYER_EVENTS);f.player=n;
f.watchWhile&&_.c("kevlar_watch_while_minimum_size")&&f.setMiniplayerSize(192);f.setAspectRatio(f.player.getVideoAspectRatio());f.onIsDisabledChanged();_.yz(t)})};
_.P.setInitialActivatePositioning=function(V){if(!this.userSetPosition&&_.c("kevlar_watch_while_v2")){this.verticalAttachment=V&&!_.c("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.XB("HTML_DIR")==="rtl"?"west":"east";var D;(D=this.JSC$17962_resizers)==null||D.update(this.horizontalAttachment,this.verticalAttachment)}};
_.P.deactivate=function(V,D){var f=this;return _.w(function(n){if(!f.active)return n.return();V||(f.expanded?f.expandedClosed=!0:f.closed=!0);f.active=!1;f.isForReadyToResume=!1;D&&_.c("kevlar_watch_while_counterfactual")||(f.isAnimatingFade=!0);f.player&&f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f.player,f.PLAYER_EVENTS);f.player=null;_.yz(n)})};
_.P.onMetadataTap=function(V){this.expandVe&&(V===void 0||V)&&(V=_.Ni(this.screenLayer))&&_.p6(V,this.expandVe);_.Fs(_.DY().resolve(_.qw))};
_.P.onDisabledTap=function(V){V.target===_.Pt(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.P.onPlaylistExpandTap=function(V){if(this.hasPlaylistData){V=_.Os(V)||[];V=_.r(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;if(D===this.hostElement)break;if(D.classList&&D.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.P.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Ty(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.P.animatedResizePlaylist=function(V){V.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Ty(this,this.animatedResizePlaylist)))};
_.P.getExpandIcon=function(V){return V?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.P.onPlayerVideoDataChange=function(){var V,D=(V=this.player)==null?void 0:V.getVideoAspectRatio();D&&D!==this.aspectRatio&&this.setAspectRatio(D)};
_.P.setAspectRatio=function(V){if(this.active){this.aspectRatio=V;this.updateDimensionsAndResize();var D;(D=this.JSC$17962_resizers)==null||D.setAspectRatio(V)}};
_.P.updateDimensionsAndResize=function(){var V=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),D=this.expanded?NhR:this.aspectRatio,f=new _.bB(192,this.showInfoBar?116:192);V=MYv(new _.bB(D,1),new _.bB(V,this.showInfoBar?V-76:V));f.width<=V.width&&f.height<=V.height||(xAZ(V,f),V.width=Math.min(V.width,this.maxMiniplayerSize),V.height=Math.min(V.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&D<=1?Math.max(V.width,V.height)+76:Math.max(V.width,V.height)));this.dimensions=
new _.bB(V.width,this.clamp(V.height+this.getNonPlayerHeight()));this.resize()};
_.P.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var V=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=V.height+"px";var D;(D=this.player)==null||D.setInternalSize(V.width,V.height)};
_.P.getPlayerSize=function(V){var D=Math.max(0,V.height-this.getNonPlayerHeight());return new _.bB(V.width,D)};
_.P.getNonPlayerHeight=function(){var V=0;this.showInfoBar&&(V+=76);this.expanded&&(V+=285);return V};
_.P.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.DY().resolve(_.qw).close()};
_.P.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.P.logClosingClick=function(){this.closeVe&&_.p6(_.Ni(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.p6(_.Ni(this.screenLayer),this.readyToResumeCloseVe)};
_.P.onPlayerExpandMiniplayer=function(){if(this.expandVe){var V=_.Ni(this.screenLayer);V&&_.p6(V,this.expandVe)}};
_.P.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var V=this.playerState===1;this.continueWatching&&V&&(this.continueWatching=!1);this.premiumBadges.length&&V&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.P.getScreenLayer=function(){return this.screenLayer};
_.P.logMiniplayer=function(){var V=_.Ni(this.screenLayer),D=_.u8(this.screenLayer);V&&D&&this.playerVe&&(_.Y8(V,D,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.$8(V,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.SJ(V,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.$8(V,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.P.computePlaylistData=function(V,D){return D};
_.P.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.P.computeExpandButtonHidden=function(V,D,f){return!V||!D||f};
_.P.computePlaylistIndexHidden=function(V,D){return!V||D};
_.P.computePlaylistPanelHidden=function(V,D){return!D&&!V};
_.P.computeExpandButtonLabel=function(V){return V?_.Zl("MINIPLAYER_COLLAPSE_LABEL"):_.Zl("MINIPLAYER_EXPAND_LABEL")};
_.P.computeDisabledStateCloseButtonLabel=function(){return _.Zl("MINIPLAYER_CLOSE",void 0,"Close")};
_.P.onWindowResized=function(V){V&&(V=this.windowDimensions=V,this.maxMiniplayerSize=Math.min(Math.min(V.width,V.height)-32,720),this.updateDimensionsAndResize())};
_.P.setUpResizing=function(){var V=this;this.JSC$17962_resizers||(this.JSC$17962_resizers=new x6(this.JSC$17962_resizeContainer,{onStartResize:function(){V.handleResizeStart()},
onResize:function(D){V.handleResize(D)}}),this.JSC$17962_resizers.setSize(this.currentMiniplayerSize),this.JSC$17962_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.P.handleResizeStart=function(){var V=_.Ni(this.screenLayer);this.userSetSize||(this.userSetSize=!0,V&&this.resizeVe&&_.SJ(V,[this.resizeVe]));V&&this.resizeVe&&_.p6(V,this.resizeVe)};
_.P.handleResize=function(V){this.setMiniplayerSize(V);this.updateDimensionsAndResize()};
_.P.setUpDragging=function(){var V=this;this.JSC$17962_dragger||(this.JSC$17962_dragger=new OJ(this.draggableContainer,{onStartDrag:function(D){!V.isSafeToDrag(D)||V.isAnimatingSnap?D.preventDefault():V.handleDragStart()},
onDrag:function(D){V.transform=D;V.setTransform(V.transform)},
onEndDrag:function(){V.handleDragEnd()}},!0))};
_.P.handleDragStart=function(){this.isDragging=!0;var V=_.Ni(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,V&&this.repositionVe&&_.SJ(V,[this.repositionVe]));V&&this.repositionVe&&_.p6(V,this.repositionVe)};
_.P.handleDragEnd=function(){this.isDragging=!1;var V=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&V>this.windowDimensions.height&&_.DY().resolve(_.qw).close();this.animateSnapToCorner()};
_.P.animateSnapToCorner=function(){var V=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),D=this.getNearestAttachments();D=this.getGlobalPositionFromAttachments(D.horizontalAttachment,D.verticalAttachment);V=new _.uB(D.x-V.x,D.y-V.y);this.isAnimatingSnap=!0;this.setTransform(V);this.hostElement.addEventListener("transitionend",_.Ty(this,this.endSnapAnimation))};
_.P.endSnapAnimation=function(V){V.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Ty(this,this.endSnapAnimation)),this.endDrag())};
_.P.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.P.setTransform=function(V){this.hostElement.style.transform=V?"translate("+V.x+"px, "+V.y+"px)":""};
_.P.getGlobalPositionFromAttachments=function(V,D){return new _.uB(V==="west"?16:this.windowDimensions.width-this.dimensions.width-16,D==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.P.updateAttachments=function(){var V=this.getNearestAttachments();if(this.horizontalAttachment!==V.horizontalAttachment||this.verticalAttachment!==V.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=V.horizontalAttachment;this.verticalAttachment=V.verticalAttachment;var D;(D=this.JSC$17962_resizers)==null||D.update(this.horizontalAttachment,this.verticalAttachment)};
_.P.getNearestAttachments=function(){var V=this.getCurrentGlobalPosition();return{horizontalAttachment:V.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:V.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.P.getCurrentGlobalPosition=function(){var V=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return cOc(V,this.transform)};
_.P.isSafeToDrag=function(V){var D=this.playerContainer.getBoundingClientRect();return Math.abs(V.clientY-(D.y+D.height))>15};
_.P.setMiniplayerSize=function(V){this.currentMiniplayerSize=this.clamp(V);var D;(D=this.JSC$17962_resizers)==null||D.setSize(this.currentMiniplayerSize)};
_.P.clamp=function(V){return _.Nw(192,V,720)};
_.P.registerWithViewTransitionManager=function(){var V=_.DY().resolve(_.Vx(_.cx));V&&lHV(V,this.hostElement)};
_.IG.Object.defineProperties(MD.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.c("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:_.Zl("CONTINUE_WATCHING",void 0,"Continue watching")};var V;if((V=this.externalPlaylistData)==null?0:V.contents)return this.externalPlaylistData.titleText;var D;return(D=this.data)==null?void 0:D.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.externalPlaylistData)==null?0:V.contents){var D;return(D=_.t29(this.externalPlaylistData))==null?void 0:D.title}var f;return(f=this.data)==null?void 0:f.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var V,D,f,n;return((V=this.externalPlaylistData)==null?void 0:V.currentIndex)!==void 0&&((D=this.externalPlaylistData)==null?0:D.totalVideos)&&!((f=this.data)==null?0:(n=f.playlistData)==null?0:n.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.OPF(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.c("kevlar_watch_while_counterfactual")}}});
MD.prototype.onIsDisabledChanged=MD.prototype.onIsDisabledChanged;MD.prototype.readyToResumeVeChanged=MD.prototype.readyToResumeVeChanged;MD.prototype.premiumBrandingChanged=MD.prototype.premiumBrandingChanged;MD.prototype.onPlayerVeChange=MD.prototype.onPlayerVeChange;MD.prototype.hasPlaylistDataChanged=MD.prototype.hasPlaylistDataChanged;_.S([_.u(_.ax.YtPlayerListenerBehavior),_.p("design:type",_.Y$)],MD.prototype,"ytPlayerListenerBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],MD.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],MD.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],MD.prototype,"ytdReduxBehavior",void 0);_.S([_.Zv("#draggable"),_.p("design:type",HTMLDivElement)],MD.prototype,"draggableContainer",void 0);
_.S([_.Zv("#resize-container"),_.p("design:type",HTMLDivElement)],MD.prototype,"JSC$17962_resizeContainer",void 0);_.S([_.Zv("#video-container"),_.p("design:type",HTMLDivElement)],MD.prototype,"videoContainer",void 0);_.S([_.Zv("#player-container"),_.p("design:type",HTMLDivElement)],MD.prototype,"playerContainer",void 0);_.S([_.Zv("#playlist"),_.p("design:type",HTMLDivElement)],MD.prototype,"JSC$17962_playlistPanel",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"active",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"hasNoData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"enabled",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"expanded",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"readyToResume",void 0);
_.S([_.q(),_.p("design:type",Object)],MD.prototype,"isDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"externalPlaylistData",void 0);_.S([_.q(),_.p("design:type",Array)],MD.prototype,"premiumBadges",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"toastData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"watchWhile",void 0);_.S([_.q(),_.p("design:type",Boolean)],MD.prototype,"premiumBranding",void 0);
_.S([_.q(),_.p("design:type",Object)],MD.prototype,"playerState",void 0);_.S([_.q(),_.p("design:type",Boolean)],MD.prototype,"continueWatching",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],MD.prototype,"verticalAttachment",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],MD.prototype,"horizontalAttachment",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"isAnimatingFade",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"isAnimatingSnap",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"isAnimatingExpand",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"isDragging",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"playerHidden",void 0);
_.S([_.q({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.p("design:type",Object)],MD.prototype,"playlistData",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.p("design:type",Object)],MD.prototype,"hasPlaylistData",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"closed",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],MD.prototype,"expandedClosed",void 0);
_.S([_.q({selector:_.jIY}),_.p("design:type",Boolean)],MD.prototype,"isSingleOptionSurveyActive",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.zq}),_.p("design:type",Boolean)],MD.prototype,"isWatchPage",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("watchWhile"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"showInfoBar",null);_.S([_.R("premiumBadges","showInfoBar"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"showOverlayPremiumBadges",null);
_.S([_.q(),_.p("design:type",Object)],MD.prototype,"watchResponse",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"miniplayerRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"playabilityStatus",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"playerVe",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"expandVe",void 0);_.S([_.q(),_.p("design:type",Object)],MD.prototype,"closeVe",void 0);
_.S([_.q(),_.p("design:type",Object)],MD.prototype,"readyToResumeCloseVe",void 0);_.S([_.q(),_.p("design:type",_.d2)],MD.prototype,"readyToResumeVe",void 0);_.S([_.q(),_.p("design:type",_.d2)],MD.prototype,"resizeVe",void 0);_.S([_.q(),_.p("design:type",_.d2)],MD.prototype,"repositionVe",void 0);_.S([_.KI("hasPlaylistData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"hasPlaylistDataChanged",null);
_.S([_.KI("playerVe"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"onPlayerVeChange",null);_.S([_.KI("premiumBranding"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"premiumBrandingChanged",null);_.S([_.KI("readyToResumeVe"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"readyToResumeVeChanged",null);
_.S([_.KI("isDisabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"onIsDisabledChanged",null);_.S([_.R("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"miniplayerSubtitle",null);_.S([_.R("data.miniplayerTitle","externalPlaylistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"miniplayerTitle",null);
_.S([_.R("externalPlaylistData","continueWatching"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"playlistIndexMessage",null);_.S([_.q({reflectToAttribute:!0}),_.R("playabilityStatus"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"showErrorScreen",null);_.S([_.q({reflectToAttribute:!0}),_.R("watchWhile"),_.p("design:type",Object),_.p("design:paramtypes",[])],MD.prototype,"watchWhileHidden",null);
_.c("ytd_miniplayer_to_wiz")||_.Y(MD,"ytd-miniplayer",function(){if(knR===void 0){var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles: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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);knR=V}V=knR;return V},{mode:2});var zFZ;var hG=function(){var V=_.E.apply(this,arguments)||this;V.useListItemStyles=_.c("web_list_item_style_for_menu_items");V.systemIcons=_.c("kevlar_system_icons");return V};
_.v(hG,_.E);_.P=hG.prototype;_.P.ready=function(){this.hostElement.addEventListener("tap",_.Ty(this,this.onEndpointTapExtra))};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var V;(V=_.Pt(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.P.onEndpointTapExtra=function(V){_.PA(this.hostElement,"iron-activate");var D=this.data.navigationEndpoint;D&&_.g(D,_.xEd)&&(V.stopPropagation(),_.wN(this.hostElement,[D],this.hostElement))};
_.P.computeIcon=function(V){return V&&V.iconType?_.Qa(V.iconType):""};
_.P.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.wI(this.hostElement)};
hG.prototype.forceUpdateStylesOnLegacyBrowsers=hG.prototype.forceUpdateStylesOnLegacyBrowsers;hG.prototype.onFocus=hG.prototype.onFocus;_.S([_.u(_.WO),_.p("design:type",Object)],hG.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.Eao.YtConditionalRendererBehavior),_.p("design:type",Object)],hG.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],hG.prototype,"ytEndpointBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],hG.prototype,"data",void 0);_.S([_.q({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],hG.prototype,"icon",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],hG.prototype,"useIcons",void 0);_.S([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],hG.prototype,"hasSeparator",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hG.prototype,"useListItemStyles",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],hG.prototype,"systemIcons",void 0);_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hG.prototype,"onFocus",null);_.S([_.KI("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hG.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(hG,"ytd-menu-navigation-item-renderer",function(){if(zFZ===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);zFZ=V}V=zFZ;return V},{mode:1});var RFv;var C2R=_.pA(_.Zl("DOWNLOAD",{},"Download")),q_f=_.pA(_.Zl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),X$f=_.pA(_.Zl("RETRY",{},"Retry")),E$v=_.pA(_.Zl("PAUSE_DOWNLOADING",{},"Pause downloading")),Af3=_.pA(_.Zl("RESUME_DOWNLOAD",{},"Resume download")),UJ=function(){var V=_.E.apply(this,arguments)||this;V.primaryText=C2R;V.primaryIconType="OFFLINE_DOWNLOAD";V.hasSecondaryContent=!1;V.hasSeparator=!1;V.transferState="TRANSFER_STATE_UNKNOWN";V.isVideoDeletedByUser=!1;V.isHidden=!1;V.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return V};
_.v(UJ,_.E);_.P=UJ.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){this.primaryEntry.focus()};
_.P.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.P.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.P.getRemoveAction=function(){return"ACTION_REMOVE"};
_.P.sendOfflineAction=function(V){var D=this.data.serviceEndpoint;if(D){var f=_.g(D,_.Q1);f&&V&&(f.action=V);this.ytComponentBehavior.resolveCommand(D)}};
_.P.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=C2R,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=C2R;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=X$f;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=q_f;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Af3;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=q_f;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
E$v;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=q_f;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=q_f;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=C2R,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.P.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.P.isSecondaryEntryHidden=function(V,D){return V?!0:!D};
_.P.computeHasSeparator=function(){var V;return!((V=this.data)==null||!V.hasSeparator)};
UJ.prototype.showHideButton=UJ.prototype.showHideButton;UJ.prototype.onTransferStateChange=UJ.prototype.onTransferStateChange;UJ.prototype.onFocus=UJ.prototype.onFocus;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],UJ.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],UJ.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],UJ.prototype,"primaryText",void 0);_.S([_.q(),_.p("design:type",String)],UJ.prototype,"primaryIconType",void 0);_.S([_.q(),_.p("design:type",String)],UJ.prototype,"primaryAction",void 0);_.S([_.q(),_.p("design:type",Object)],UJ.prototype,"secondaryText",void 0);_.S([_.q(),_.p("design:type",String)],UJ.prototype,"secondaryIconType",void 0);
_.S([_.q(),_.p("design:type",String)],UJ.prototype,"secondaryAction",void 0);_.S([_.q(),_.p("design:type",Object)],UJ.prototype,"hasSecondaryContent",void 0);_.S([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Object)],UJ.prototype,"hasSeparator",void 0);_.S([_.q({selector:_.CA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",String)],UJ.prototype,"transferState",void 0);
_.S([_.q({selector:_.EBY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],UJ.prototype,"isVideoDeletedByUser",void 0);_.S([_.q(),_.p("design:type",Object)],UJ.prototype,"isHidden",void 0);_.S([_.q({selector:_.N0X,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],UJ.prototype,"offlineabilityState",void 0);_.S([_.Zv("#primary-entry"),_.p("design:type",Object)],UJ.prototype,"primaryEntry",void 0);
_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UJ.prototype,"onFocus",null);_.S([_.eY("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UJ.prototype,"onTransferStateChange",null);_.S([_.eY("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UJ.prototype,"showHideButton",null);
_.Y(UJ,"ytd-menu-service-item-download-renderer",function(){if(RFv===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);RFv=V}V=RFv;return V},{mode:1});var agf;var Vb=function(){var V=_.E.apply(this,arguments)||this;V.useIcons=!1;V.systemIcons=_.c("kevlar_system_icons");V.useListItemStyles=_.c("web_list_item_style_for_menu_items");return V};
_.v(Vb,_.E);_.P=Vb.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var V;(V=_.Pt(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.P.onTap=function(){_.JR(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var V=this.data.serviceEndpoint,D=this.data.command;if(V){var f,n=(f=this.data)==null?void 0:f.trackingParams;f=!!_.g(V,_.aBY);n&&f&&_.Ol().dispatch(_.nA({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:n}}));this.ytComponentBehavior.resolveCommand(V)||_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}})}D&&(this.ytComponentBehavior.resolveCommand(D)||_.wN(this.hostElement,
[D],this.hostElement))};
_.P.computeIcon=function(V){return V&&V.iconType?_.Qa(V.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.computeHasSeparator=function(){var V;return!((V=this.data)==null||!V.hasSeparator)};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.wI(this.hostElement)};
_.P.computeIsSelected=function(){var V;return!((V=this.data)==null||!V.isSelected)};
Vb.prototype.forceUpdateStylesOnLegacyBrowsers=Vb.prototype.forceUpdateStylesOnLegacyBrowsers;Vb.prototype.onTap=Vb.prototype.onTap;Vb.prototype.onFocus=Vb.prototype.onFocus;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],Vb.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.Eao.YtConditionalRendererBehavior),_.p("design:type",Object)],Vb.prototype,"ytConditionalRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Vb.prototype,"data",void 0);_.S([_.q({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],Vb.prototype,"icon",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vb.prototype,"useIcons",void 0);
_.S([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Vb.prototype,"hasSeparator",void 0);_.S([_.q({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Vb.prototype,"isSelected",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vb.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Vb.prototype,"useListItemStyles",void 0);
_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vb.prototype,"onFocus",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Vb.prototype,"onTap",null);_.S([_.KI("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vb.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(Vb,"ytd-menu-service-item-renderer",function(){if(agf===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);agf=V}V=agf;return V},{mode:2});var Y_R;var DG=function(){return _.E.apply(this,arguments)||this};
_.v(DG,_.E);_.P=DG.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var V=this;_.pO(this,function(){V.postbox.openDialog();V.focus();_.PA(V.hostElement,"yt-refit")})};
_.P.focus=function(){this.postbox.focus()};
_.P.closePopup=function(){_.o4(this.hostElement,"yt-close-popup-action")};
_.P.onYtCommentboxDismiss=function(){this.closePopup()};
DG.prototype.onYtCommentboxDismiss=DG.prototype.onYtCommentboxDismiss;DG.prototype.onDataChanged=DG.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],DG.prototype,"data",void 0);_.S([_.q({value:function(){return _.Zl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],DG.prototype,"closeButtonAriaLabel",void 0);_.S([_.Zv("#postbox"),_.p("design:type",Object)],DG.prototype,"postbox",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DG.prototype,"onDataChanged",null);_.S([_.bU("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DG.prototype,"onYtCommentboxDismiss",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],DG);
_.Y(DG,"ytd-backstage-post-dialog-popup-renderer",function(){if(Y_R!==void 0)return Y_R;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Y_R=V},{mode:1});var $0J;var fB=function(){return _.E.apply(this,arguments)||this};
_.v(fB,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fB.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],fB);
_.Y(fB,"ytd-sender-id-section-renderer",function(){if($0J!==void 0)return $0J;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return $0J=V},{mode:1});var iEq;var S_B;var Wm3;var nB=function(){return _.E.apply(this,arguments)||this};
_.v(nB,_.E);nB.prototype.closePopup=function(){_.o4(this.hostElement,"yt-close-popup-action")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nB.prototype,"data",void 0);_.S([_.zy({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],nB);
_.Y(nB,"yt-community-post-section-renderer",function(){if(Wm3===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;S_B===void 0&&(S_B=document.createElement("template"));var n=S_B;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Wm3=V}V=Wm3;return V},{mode:2});var p$W;var Lmv;var IgR;var OER;var x0q;var MnV;var tp=function(){return _.E.apply(this,arguments)||this};
_.v(tp,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tp.prototype,"data",void 0);_.S([_.zy({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],tp);
_.Y(tp,"yt-share-start-time-with-context-renderer",function(){if(MnV===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;x0q===void 0&&(x0q=document.createElement("template"));var n=x0q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);MnV=V}V=MnV;return V},{mode:2});var Ps=function(){return _.E.apply(this,arguments)||this};
_.v(Ps,_.E);Ps.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ps.prototype,"data",void 0);_.S([_.zy({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Ps);
_.Y(Ps,"yt-share-panel-title-v15-renderer",function(){if(OER===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;IgR===void 0&&(IgR=document.createElement("template"));var n=IgR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);OER=V}V=OER;return V},{mode:2});var of=function(){return _.E.apply(this,arguments)||this};
_.v(of,_.E);of.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],of.prototype,"data",void 0);_.S([_.zy({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],of);
_.Y(of,"yt-share-panel-header-renderer",function(){if(Lmv===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;p$W===void 0&&(p$W=document.createElement("template"));var n=p$W;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Lmv=V}V=Lmv;return V},{mode:2});var hF0;var U0B;var Jp=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-open-popup-action":"onOpen"};return V};
_.v(Jp,_.E);_.P=Jp.prototype;_.P.attached=function(){this.onOpen()};
_.P.updateTimeSecs=function(V){this.currentTimeSecs=V};
_.P.computeTimeString=function(V){V=V.toString();var D=Math.floor(Number(V)/3600),f=Math.floor(Number(V)%3600%60);return(D>0?D+":":"")+_.Uk(Math.floor(Number(V)%3600/60),D>0?2:1)+":"+_.Uk(f,2)};
_.P.computeTimeStringA11y=function(V){V=_.a8F({seconds:V});var D=V.hours===void 0?0:V.hours,f=V.minutes===void 0?0:V.minutes,n=V.seconds===void 0?0:V.seconds;V=[];if(D>0){var t=UYV().format({hours:D});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.AO)||D>9999)t=t.replace(D.toString(),_.YCd(D)),_.AO==="km"&&(t=t.replace(".",","));V.push(t)}f>0&&V.push(UYV().format({minutes:f}));n>0&&V.push(UYV().format({seconds:n}));D="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");f=_.AO==
"am"?"{0}\u1363 ":_.AO=="fa"?"{0}\u060c\u200f ":_.AO=="my"?"{0} - ":_.AO=="ne"?"{0},":_.AO=="th"?"{0} ":_.AO=="ur"?"{0}\u060c ":_.AO=="ar"||_.AO=="ar-XB"?"{0} \u0648":_.AO=="ja"||_.AO=="zh-CN"||_.AO=="zh-HK"||_.AO=="zh-TW"?"{0}\u3001":"{0}, ";n=_.AO=="am"?"\u1363 ":_.AO=="fa"?"\u060c\u200f ":_.AO=="my"?" - ":_.AO=="th"?" ":_.AO=="ur"?"\u060c ":_.AO=="ar"||_.AO=="ar-XB"?" \u0648":_.AO=="ja"||_.AO=="zh-CN"||_.AO=="zh-HK"||_.AO=="zh-TW"?"\u3001":", ";t=_.AO=="am"?" \u12a5\u1293 {0}":_.AO=="as"?" \u0986\u09f0\u09c1 {0}":
_.AO=="az"?" v\u0259 {0}":_.AO=="bn"?" \u098f\u09ac\u0982 {0}":_.AO=="cs"?" a\u00a0{0}":_.AO=="de"?" und {0}":_.AO=="el"?" \u03ba\u03b1\u03b9 {0}":_.AO=="eu"?" eta {0}":_.AO=="fa"?"\u060c \u0648 {0}":_.AO=="fil"?", at {0}":_.AO=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.AO=="hi"?", \u0914\u0930 {0}":_.AO=="hu"?" \u00e9s {0}":_.AO=="hy"?" \u0587 {0}":_.AO=="id"?", dan {0}":_.AO=="iw"?" \u05d5-{0}":_.AO=="ja"?"\u3001{0}":_.AO=="ka"?" \u10d3\u10d0 {0}":_.AO=="km"?" \u1793\u17b7\u1784 {0}":_.AO=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.AO=="ko"?" \ubc0f {0}":_.AO=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.AO=="lt"?" ir {0}":_.AO=="lv"?" un {0}":_.AO=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.AO=="mr"?" \u0906\u0923\u093f {0}":_.AO=="ms"?" dan {0}":_.AO=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.AO=="ne"?" \u0930 {0}":_.AO=="or"?", \u0b13 {0}":_.AO=="pa"?" \u0a05\u0a24\u0a47 {0}":_.AO=="ro"?" \u0219i {0}":_.AO=="si"?", \u0dc3\u0dc4 {0}":_.AO=="sk"?" a {0}":_.AO=="sl"?" in {0}":_.AO=="sq"?" dhe {0}":_.AO=="sv"?" och {0}":
_.AO=="sw"?" na {0}":_.AO=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.AO=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.AO=="th"?" \u0e41\u0e25\u0e30{0}":_.AO=="tr"?" ve {0}":_.AO=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.AO=="uz"?" va {0}":_.AO=="vi"?" v\u00e0 {0}":_.AO=="zh-HK"?"\u53ca{0}":_.AO=="zu"?", ne-{0}":_.AO=="af"||_.AO=="nl"?" en {0}":_.AO=="ar"||_.AO=="ar-XB"?" \u0648{0}":_.AO=="be"||_.AO=="uk"?" \u0456 {0}":_.AO=="en-GB"||_.AO=="en-IN"?" and {0}":_.AO=="en"||_.AO=="en-XA"?
", and {0}":_.AO=="et"||_.AO=="fi"?" ja {0}":_.AO=="fr"||_.AO=="fr-CA"?" et {0}":_.AO=="zh-CN"||_.AO=="zh-TW"?"\u548c{0}":_.AO=="da"||_.AO=="is"||_.AO=="no"?" og {0}":_.AO=="es"||_.AO=="es-419"||_.AO=="es-US"?" y {0}":_.AO=="kk"||_.AO=="lo"||_.AO=="mn"?", {0}":_.AO=="bg"||_.AO=="mk"||_.AO=="ru"||_.AO=="sr"?" \u0438 {0}":_.AO=="gl"||_.AO=="it"||_.AO=="pt-BR"||_.AO=="pt-PT"?" e {0}":" i {0}";var J=_.AO=="am"?"{0} \u12a5\u1293 {1}":_.AO=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.AO=="az"?"{0} v\u0259 {1}":
_.AO=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.AO=="de"?"{0} und {1}":_.AO=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.AO=="eu"?"{0} eta {1}":_.AO=="fa"?"{0} \u0648 {1}":_.AO=="fil"?"{0} at {1}":_.AO=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.AO=="hi"?"{0} \u0914\u0930 {1}":_.AO=="hu"?"{0} \u00e9s {1}":_.AO=="hy"?"{0} \u0587 {1}":_.AO=="iw"?"{0} \u05d5-{1}":_.AO=="ja"?"{0}\u3001{1}":_.AO=="ka"?"{0} \u10d3\u10d0 {1}":_.AO=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.AO=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.AO=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.AO=="ko"?"{0} \ubc0f {1}":_.AO=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.AO=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.AO=="lt"?"{0} ir {1}":_.AO=="lv"?"{0} un {1}":_.AO=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.AO=="mn"?"{0}, {1}":_.AO=="mr"?"{0} \u0906\u0923\u093f {1}":_.AO=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.AO=="ne"?"{0} \u0930 {1}":_.AO=="or"?"{0} \u0b13 {1}":_.AO=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.AO=="ro"?"{0} \u0219i {1}":_.AO==
"si"?"{0} \u0dc3\u0dc4 {1}":_.AO=="sl"?"{0} in {1}":_.AO=="sq"?"{0} dhe {1}":_.AO=="sv"?"{0} och {1}":_.AO=="sw"?"{0} na {1}":_.AO=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.AO=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.AO=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.AO=="tr"?"{0} ve {1}":_.AO=="ur"?"{0} \u0627\u0648\u0631 {1}":_.AO=="uz"?"{0} va {1}":_.AO=="vi"?"{0} v\u00e0 {1}":_.AO=="zh-HK"?"{0}\u53ca{1}":_.AO=="zu"?"{0} ne-{1}":_.AO=="af"||_.AO=="nl"?"{0} en {1}":_.AO=="ar"||_.AO==
"ar-XB"?"{0} \u0648{1}":_.AO=="be"||_.AO=="uk"?"{0} \u0456 {1}":_.AO=="cs"||_.AO=="sk"?"{0} a\u00a0{1}":_.AO=="et"||_.AO=="fi"?"{0} ja {1}":_.AO=="fr"||_.AO=="fr-CA"?"{0} et {1}":_.AO=="id"||_.AO=="ms"?"{0} dan {1}":_.AO=="zh-CN"||_.AO=="zh-TW"?"{0}\u548c{1}":_.AO=="da"||_.AO=="is"||_.AO=="no"?"{0} og {1}":_.AO=="es"||_.AO=="es-419"||_.AO=="es-US"?"{0} y {1}":_.AO=="bg"||_.AO=="mk"||_.AO=="ru"||_.AO=="sr"?"{0} \u0438 {1}":_.AO=="en"||_.AO=="en-GB"||_.AO=="en-IN"||_.AO=="en-XA"?"{0} and {1}":_.AO==
"gl"||_.AO=="it"||_.AO=="pt-BR"||_.AO=="pt-PT"?"{0} e {1}":"{0} i {1}";_.AO==="sq"?(t=t.replace("dhe","e"),J=J.replace("dhe","e")):_.AO==="th"?(n=n.replace("{0}"," {0}"),J=J.replace("{0}","{0} "),J=J.replace("{1}"," {1}")):_.AO==="ne"?n=",":_.AO==="zh-CN"?n="":D.includes(_.AO)&&(n=" ");return V.length<2?V.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(_.AO)?V.length===2?
J.replace("{0}",V[0]).replace("{1}",V[1]):f.replace("{0}",V[0])+V.slice(1,-1).join(n)+t.replace("{0}",V[V.length-1]):V.join(n)};
_.P.getTimeParam=function(){return kqv(this.timeString)};
_.P.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var V={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},D;_.H5(_.lS(),(D=this.data)==null?void 0:D.trackingParams,V,7)};
_.P.onChangeStartAtTimestamp=function(){for(var V=this.startAtTimestamp.value.split(":"),D=0,f=1,n=V.length-1;n>=0;n--)D+=Number(V[n])*f,f*=60;this.updateTimeSecs(D);this.setTimestamp()};
_.P.onOpen=function(){var V=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var D=_.hI();D?D.getPlayerPromise().then(function(f){f=f.getCurrentTime();V.updateTimeSecs(f)}):MeW()&&this.updateTimeSecs(MeW())};
_.P.setTimestamp=function(){var V=Math.floor(this.currentTimeSecs);_.o4(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!V,timestamp:V||""}])};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Jp.prototype,"data",void 0);_.S([_.q({value:!1,notify:!0}),_.p("design:type",Boolean)],Jp.prototype,"isStartAtChecked",void 0);_.S([_.q(),_.p("design:type",Number)],Jp.prototype,"currentTimeSecs",void 0);
_.S([_.q({computed:"computeTimeString(currentTimeSecs)"}),_.p("design:type",String)],Jp.prototype,"timeString",void 0);_.S([_.q({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.p("design:type",String)],Jp.prototype,"timeStringA11y",void 0);_.S([_.Zv("#start-at-timestamp"),_.p("design:type",Object)],Jp.prototype,"startAtTimestamp",void 0);_.S([_.zy({is:"yt-start-at-renderer",disableElementRegistration:!0})],Jp);
_.Y(Jp,"yt-start-at-renderer",function(){if(U0B===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;hF0===void 0&&(hF0=document.createElement("template"));var n=hF0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);U0B=V}V=U0B;return V},{mode:2});var VOR;var DFX;var fQV=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"]]),nEc=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"]]),tOB=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var PM0={};PM0.YtBindingExpressionsBehavior={identity:_.YF,msg:function(V,D){D=D===void 0?{}:D;return _.Zl(V,D,V)},
msgPlural:function(V,D){return _.jJ(V,D)},
getMusicIconFromType:function(V){if(_.c("music_web_enable_icon_wil"))V=_.Qa(V);else if(nEc.has(V))V="yt-sys-icons:"+nEc.get(V);else{var D=fQV.get(V)||_.Qa(V).split(":")[1];D=_.Xv9(D);var f;V=((f=tOB.get(V))!=null?f:"yt-sys-icons:")+D}return V}};var oEZ;var J$W;var r$X;var HCf=document.head,wgv=HCf.appendChild,Q03;if(r$X===void 0){var TDR=document.createElement("template");_.B(TDR,'\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>');r$X=TDR}Q03=r$X;wgv.call(HCf,Q03.content);var r$=function(){var V=_.E.apply(this,arguments)||this;V.screenLayer=7;return V};
_.v(r$,_.E);r$.prototype.getScreenLayer=function(){return this.screenLayer};
r$.prototype.onTap=function(V){V&&V.detail&&(V.detail.x||V.detail.y)&&_.Pt(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.HA(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(V=this.getScreenLayer(),_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:V}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.IG.Object.defineProperties(r$.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()}}});
r$.prototype.onTap=r$.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r$.prototype,"data",void 0);_.S([_.R("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],r$.prototype,"title",null);
_.S([_.R("data.serviceName"),_.p("design:type",String),_.p("design:paramtypes",[])],r$.prototype,"icon",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],r$.prototype,"onTap",null);_.S([_.zy({is:"yt-share-target-renderer",disableElementRegistration:!0})],r$);
_.Y(r$,"yt-share-target-renderer",function(){if(J$W===void 0){var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;oEZ===void 0&&(oEZ=document.createElement("template"));var n=oEZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);J$W=V}V=J$W;return V},{mode:2});var bCo;var KcV;var Hs=function(){var V=_.E.apply(this,arguments)||this;V.SHARE_TARGET_WIDTH=70;V.SHARE_TARGET_MARGIN_RIGHT=8;V.PAGE_SCROLL_SPEED=9;V.actionMap={"yt-share-panel-reset-action":"onReset_"};return V};
_.v(Hs,_.E);_.P=Hs.prototype;_.P.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.P.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Pt(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Pt(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.P.onReset_=function(){if(_.Pt(this.hostElement).querySelector("#list")){var V=_.Pt(this.hostElement).querySelector("#list");var D=_.Pt(this.hostElement).querySelector("#list");var f=D.offsetLeft,n=D.offsetParent;n||_.gpu(D)!="fixed"||(n=_.mk(D).documentElement);if(n){if(_.rf&&!_.wf(58)){var t=_.mLp(n);f+=t.left}else Number(_.O39)>=8&&!(Number(_.O39)>=9)&&(t=_.mLp(n),f-=t.left);D=_.uFp(n)?n.clientWidth-(f+D.offsetWidth):f}else D=f;tKv(V,D);this.updateScrollButtons_()}};
_.P.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.P.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.P.onScrollWheel_=function(V){V.stopPropagation();V.preventDefault();var D=nCc(_.Pt(this.hostElement).querySelector("#list"));V=Math.abs(V.deltaX)>Math.abs(V.deltaY)?V.deltaX:V.deltaY;tKv(_.Pt(this.hostElement).querySelector("#list"),D+V);this.updateScrollButtons_()};
_.P.smoothScrollByOnePage_=function(V){var D=_.Pt(this.hostElement).querySelector("#list"),f=(Math.floor(D.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,n=nCc(D),t=f*(V?1:-1),J=this.PAGE_SCROLL_SPEED,H=this.updateScrollButtons_.bind(this),Q=0,T;(function Z(){Q+=J;T=Q/f*2;tKv(D,n+t*(T<1?T*T:-T*T+4*T-2));Q<f?window.requestAnimationFrame(Z):H()})()};
_.P.updateScrollButtons_=function(){var V=nCc(_.Pt(this.hostElement).querySelector("#list")),D=_.Pt(this.hostElement).querySelector("#list").scrollWidth-_.Pt(this.hostElement).querySelector("#list").clientWidth;_.Pt(this.hostElement).querySelector("#scroll-button-back").hidden=V<=0;_.Pt(this.hostElement).querySelector("#scroll-button-forward").hidden=V>=D};
Hs.prototype.onScrollWheel_=Hs.prototype.onScrollWheel_;Hs.prototype.onDataChanged_=Hs.prototype.onDataChanged_;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Hs.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(PM0.YtBindingExpressionsBehavior),_.p("design:type",Object)],Hs.prototype,"ytBindingExpressionsBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Hs.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hs.prototype,"onDataChanged_",null);_.S([_.bU("wheel"),_.p("design:type",Function),_.p("design:paramtypes",[WheelEvent]),_.p("design:returntype")],Hs.prototype,"onScrollWheel_",null);
_.S([_.zy({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Hs);
_.Y(Hs,"yt-third-party-share-target-section-renderer",function(){if(KcV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;bCo===void 0&&(bCo=document.createElement("template"));var n=bCo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);KcV=V}V=KcV;return V},{mode:2});var w$=function(){return _.E.apply(this,arguments)||this};
_.v(w$,_.E);w$.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"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],w$.prototype,"data",void 0);_.S([_.zy({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],w$);
_.Y(w$,"yt-third-party-network-section-renderer",function(){if(DFX===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;VOR===void 0&&(VOR=document.createElement("template"));var n=VOR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);DFX=V}V=DFX;return V},{mode:2});_.fT(_.MA(function(V){return _.K("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.K("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.K(_.BW,{data:function(){return V.data().firstPartyItems}},{listItemViewModel:_.sH})))},"Ag"),"first-party-network-section-view-model",{props:{data:_.WX}});var y$0=_.WV(["data:image/svg+xml;charset=UTF-8;base64,",""]),Qb=function(){var V=_.E.apply(this,arguments)||this;V.screenLayer=7;V.qrCodeEnabled=_.c("web_enable_sharing_qr_code");V.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return V};
_.v(Qb,_.E);_.P=Qb.prototype;_.P.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"}}}};
_.P.attached=function(){this.JSC$18014_scroller&&(this.JSC$18014_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18014_scroller.attached&&typeof this.JSC$18014_scroller.attached==="function"&&this.JSC$18014_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.P.onDataChanged=function(){var V=this,D;(D=this.data)!=null&&D.contents&&(this.hostElement.setAttribute("links-only","true"),_.rI(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.pO(this,function(){_.PA(V.hostElement,"yt-refit");V.focusSharePanelHeader()}))};
_.P.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.P.handleSetTimestamp=function(V){var D=this.shortUrl();V.isSet&&(D=_.EO(D,"t",V.timestamp));this.maybeRenderQrCode(D)};
_.P.shortUrl=function(){var V,D=(V=this.data)==null?void 0:V.contents;if(D)for(V=0;V<D.length;V++){var f=void 0,n=void 0;if((f=D[V])==null?0:(n=f.thirdPartyNetworkSection)==null?0:n.copyLinkContainer){var t=n=f=void 0;return(t=_.g((f=D[V])==null?void 0:(n=f.thirdPartyNetworkSection)==null?void 0:n.copyLinkContainer,f8q))==null?void 0:t.shortUrl}}};
_.P.maybeRenderQrCode=function(V){var D=this,f,n,t,J,H,Q,T,y,Z;return _.w(function(l){if(l.nextAddress==1){f=_.Pt(D.hostElement).querySelector("#qr-code");if(!D.qrCodeEnabled||!V)return f&&(f.style.display="none"),l.return();n=_.LoX(_.DY().resolve(_.TK),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});t=document.createElement("div");return typeof n==="function"?(n(t),l.jumpTo(2)):_.b(l,n,3)}l.nextAddress!=2&&(J=l.yieldResult,J(t));T=(H=t)==null?void 0:(Q=H.firstChild)==null?void 0:Q.firstChild;
y=document.createElement("img");Z=_.vS(y$0,btoa(T.outerHTML));y.onload=function(){var G={canvas:f,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:y},F=new vo0;N23(F,V);miR(F,!1,ziq(F));var k=F.modules,d=Object.assign({},XEJ,G);k=structuredClone(k);G=k.length;var z,C=(z=d.canvas)!=null?z:document.createElement("canvas");z=d.cellSize;F=d.logo;var A,O=(A=d.logoSize)!=null?A:Math.floor(G/4);G%2!==O%2&&O++;var W=d.logoPadding,I=d.backgroundColor;A=G*z;var x=
d.width,oY=0;x&&(oY=d.padding,oY=Math.ceil(oY*A/(x-oY*2)),C.style.width=x+"px",C.style.height=x+"px");C.width!==A+oY*2&&(C.width=A+oY*2);C.height!==A+oY*2&&(C.height=A+oY*2);A=C.getContext("2d");d.autoClear&&A.clearRect(0,0,C.width,C.height);A.fillStyle=I;A.beginPath();A.roundRect(0,0,C.width,C.height,d.borderRadius);A.fill();A.save();A.translate(oY,oY);if(F)for(C=Math.floor(G-O)/2-W,W=Math.floor(G+O)/2+W,I=C;I<W;I++)for(x=C;x<W;x++)k[I][x]=!1;for(C=0;C<G;C++)for(W=0;W<G;W++)(C<7&&W<7||C<7&&W>=G-
7||C>=G-7&&W<7)&&(k[C][W]=!1);var wZ;C=(wZ=d.markerColor)!=null?wZ:d.color;C8J(A,0,0,z,C);C8J(A,z*(G-7),0,z,C);C8J(A,0,z*(G-7),z,C);switch(d.cellStyle){case 0:wZ=k;k=wZ.length;C=d.cellSize;A.beginPath();for(W=0;W<k;W++)for(I=0;I<k;I++)wZ[W][I]&&A.rect(W*C,I*C,C,C);A.fillStyle=d.color;A.fill();break;case 1:wZ=k;k=wZ.length;C=d.cellSize;W=C*d.relativeCircleSize;A.fillStyle=d.color;A.beginPath();for(d=0;d<k;d++)for(I=0;I<k;I++)wZ[d][I]&&(A.beginPath(),A.ellipse((d+.5)*C,(I+.5)*C,W/2,W/2,0,0,2*Math.PI),
A.fill());A.fill();break;case 2:wZ=k;k=wZ.length;C=d.cellSize;A.fillStyle=d.color;d=[[1,1],[-1,1],[-1,-1],[1,-1]];A.beginPath();for(W=0;W<k;W++)for(I=0;I<k;I++)if(wZ[W][I])A.roundRect(W*C,I*C,C,C,C/2),W+1<k&&wZ[W+1][I]&&A.rect(W*C+C/2,I*C,C,C),I+1<k&&wZ[W][I+1]&&A.rect(W*C,I*C+C/2,C,C);else{x=W*C+C/2;oY=I*C+C/2;for(var ZZ=0;ZZ<4;ZZ++){var sd=_.r(d[ZZ]),NU=sd.next().value;sd=sd.next().value;W+NU>=0&&W+NU<k&&I+sd>=0&&I+sd<k&&wZ[W+NU][I]&&wZ[W][I+sd]&&wZ[W+NU][I+sd]&&(NU=ZZ*Math.PI/2,sd=C/2,A.moveTo(x+
sd*Math.cos(NU),oY+sd*Math.sin(NU)),A.arc(x,oY,C/2,NU,NU+Math.PI/2,!1),A.lineTo(x+sd*(Math.cos(NU)-Math.sin(NU)),oY+sd*(Math.cos(NU)+Math.sin(NU))),A.lineTo(x+sd*Math.cos(NU),oY+sd*Math.sin(NU)))}}A.fill()}F&&A.drawImage(F,(G-O)*z/2,(G-O)*z/2,O*z,O*z);A.restore();f.style.removeProperty("display")};
y.src=_.y2(Z);_.yz(l)})};
_.P.hasCommunityPostRenderer=function(){var V,D,f,n;return!!((V=this.data)==null?0:(D=V.header)==null?0:(f=D.sharePanelHeaderRenderer)==null?0:(n=f.communityPost)==null?0:n.communityPostSectionRenderer)};
_.P.onTapClose=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.P.getScreenLayer=function(){return this.screenLayer};
_.P.logSharePanelPage=function(){if(!_.c("enable_share_panel_navigation_logging_fix_on_web")){var V;if((V=this.data)!=null&&V.trackingParams){V=this.data.trackingParams;var D=this.parentClickTrackingParams;D=D?_.gs(D):void 0;var f=_.lS();_.P5(f,21760,D,{layer:7,parentLayer:0});f.graftServerVe(V,void 0,7);_.Ol().dispatch(_.nA({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Qb.prototype.onDataChanged=Qb.prototype.onDataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Qb.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Qb.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Qb.prototype,"data",void 0);_.S([_.q({value:_.Zl("SBOX_INAPPROPRIATE_CANCEL")}),_.p("design:type",String)],Qb.prototype,"closeButtonAriaLabel",void 0);_.S([_.Zv("yt-share-panel-header-renderer"),_.p("design:type",HTMLElement)],Qb.prototype,"header",void 0);_.S([_.q({selector:function(V){return V.share.parentClickTrackingParams}}),
_.p("design:type",String)],Qb.prototype,"parentClickTrackingParams",void 0);_.S([_.q(),_.p("design:type",Object)],Qb.prototype,"qrCodeEnabled",void 0);_.S([_.Zv("#scroller"),_.p("design:type",Object)],Qb.prototype,"JSC$18014_scroller",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qb.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Qb);
_.Y(Qb,"ytd-unified-share-panel-renderer",function(){if(iEq!==void 0)return iEq;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return iEq=V},{mode:1});var ZCc;var Tp=function(){var V=_.E.apply(this,arguments)||this;V.modernModal=!0;return V};
_.v(Tp,_.E);Tp.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Tp.prototype.computeShouldHideOldButtons=function(){var V;return!((V=this.data)==null?0:V.button)};
_.IG.Object.defineProperties(Tp.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var V,D;return(V=this.data)==null?void 0:(D=V.button)==null?void 0:D.buttonRenderer}}});
_.S([_.q(),_.p("design:type",Object)],Tp.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Tp.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Tp.prototype,"modernModal",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Tp.prototype,"buttonRendererData",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Tp);
_.Y(Tp,"ytd-modal-with-title-and-button-renderer",function(){if(ZCc!==void 0)return ZCc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZCc=V},{mode:1});var j0X;var bw=function(){return _.E.apply(this,arguments)||this};
_.v(bw,_.E);bw.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("page-changed",this.page))};
bw.prototype.pageChangedForBinding=bw.prototype.pageChangedForBinding;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bw.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],bw.prototype,"page",void 0);_.S([_.KI("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bw.prototype,"pageChangedForBinding",null);
_.S([_.a({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],bw);
_.Y(bw,"ytd-account-item-section-header-renderer",function(){if(j0X!==void 0)return j0X;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return j0X=V},{mode:1});var lQV;var KB=function(){return _.E.apply(this,arguments)||this};
_.v(KB,_.E);KB.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"}}}};
KB.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],KB.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],KB.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Function)],KB.prototype,"onAccountItemTap",void 0);
_.S([_.a({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],KB);
_.Y(KB,"ytd-account-item-section-renderer",function(){if(lQV!==void 0)return lQV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lQV=V},{mode:1});var GaW;var ejc;var yb=function(){return _.E.apply(this,arguments)||this};
_.v(yb,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yb.prototype,"data",void 0);_.S([_.a({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],yb);
_.Y(yb,"ytd-accounts-dialog-header-renderer",function(){if(ejc!==void 0)return ejc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ejc=V},{mode:1});var c$w;var ZG=function(){return _.E.apply(this,arguments)||this};
_.v(ZG,_.E);ZG.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ZG.prototype,"data",void 0);_.S([_.a({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],ZG);
_.Y(ZG,"ytd-google-account-header-renderer",function(){if(c$w!==void 0)return c$w;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return c$w=V},{mode:1});var ji=function(){return _.E.apply(this,arguments)||this};
_.v(ji,_.E);ji.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"}}}};
ji.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("page-changed",this.page))};
ji.prototype.pageChangedForBinding=ji.prototype.pageChangedForBinding;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ji.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],ji.prototype,"page",void 0);
_.S([_.KI("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ji.prototype,"pageChangedForBinding",null);_.S([_.a({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ji);
_.o5()(ji,"ytd-account-section-list-renderer",function(){if(GaW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);GaW=V}V=GaW;return V},{allowedProps:["data"],
mode:1});var FcJ;var lw=function(){var V=_.E.apply(this,arguments)||this;V.enableHandlesAccountMenuSwitcher=_.c("enable_handles_account_menu_switcher");return V};
_.v(lw,_.E);lw.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
lw.prototype.dataChanged=lw.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lw.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],lw.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.S([_.Zv("#avatar"),_.p("design:type",Object)],lw.prototype,"avatar",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lw.prototype,"dataChanged",null);_.S([_.a({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],lw);
_.o5()(lw,"ytd-active-account-header-renderer",function(){if(FcJ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);FcJ=V}V=FcJ;return V},{allowedProps:["data"],
mode:1});var gEc;var vEV;var Gp=function(){return _.E.apply(this,arguments)||this};
_.v(Gp,_.E);Gp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gp.prototype.onBackTap=function(){_.PA(this.hostElement,"yt-menu-back-tapped")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Gp.prototype,"data",void 0);_.S([_.a({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Gp);
_.o5()(Gp,"ytd-simple-menu-header-renderer",function(){if(vEV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);vEV=V}V=vEV;return V},{allowedProps:["data"],
mode:2});var kaZ;var ei=function(){return _.E.apply(this,arguments)||this};
_.v(ei,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ei.prototype,"data",void 0);_.S([_.a({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],ei);
_.Y(ei,"ytd-comment-video-thumbnail-header-renderer",function(){if(kaZ!==void 0)return kaZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kaZ=V},{mode:1});var s0R;var cs=function(){return _.E.apply(this,arguments)||this};
_.v(cs,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],cs.prototype,"data",void 0);_.S([_.a({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],cs);
_.Y(cs,"ytd-abuse-type-selector-renderer",function(){if(s0R!==void 0)return s0R;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return s0R=V},{mode:1});var BD0;var Fi=function(){return _.E.apply(this,arguments)||this};
_.v(Fi,_.E);Fi.prototype.attached=function(){var V=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){V.additionalContextInput.focusTextInput()})};
Fi.prototype.handleAdditionalContextChanged=function(){var V=this;_.Yu(this,"ytd-report-channel-additional-context-update",function(){V.ytdReduxBehavior.dispatch(_.nA({type:"ADDITIONAL_CONTEXT_UPDATED",payload:V.additionalContext}))},300)};
Fi.prototype.updateAdditionalContextFromBinding=function(V){this.additionalContext=V.detail.value};
Fi.prototype.handleAdditionalContextChanged=Fi.prototype.handleAdditionalContextChanged;_.S([_.u(_.dh),_.p("design:type",Object)],Fi.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",String)],Fi.prototype,"additionalContext",void 0);_.S([_.q({selector:function(V){return V.reportChannelAbuse.additionalContext}}),
_.p("design:type",String)],Fi.prototype,"additionalContextRedux",void 0);_.S([_.q(),_.p("design:type",Object)],Fi.prototype,"data",void 0);_.S([_.Zv("yt-text-input-form-field-renderer"),_.p("design:type",Object)],Fi.prototype,"additionalContextInput",void 0);_.S([_.KI("additionalContext"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fi.prototype,"handleAdditionalContextChanged",null);
_.S([_.a({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Fi);
_.Y(Fi,"ytd-report-channel-modal-additional-context-renderer",function(){if(BD0!==void 0)return BD0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return BD0=V},{mode:1});var dF0;var g$=function(){var V=_.E.apply(this,arguments)||this;V.nextButtonDisabled=null;V.submitEndpoint=null;V.navigationEndpoint=null;V.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return V};
_.v(g$,_.E);_.P=g$.prototype;_.P.computeNextButtonData=function(V,D,f){var n={};D&&(n.navigationEndpoint=D);f&&(n.serviceEndpoint=f);V&&V.buttonRenderer&&_.sB.extend(n,V.buttonRenderer);return n};
_.P.handleReportChannelModalDisableNextButtonAction=function(V){this.setNextButtonIsDisabled(V)};
_.P.handleReportFormEndpointUpdateAction=function(V){this.setNextButtonIsDisabled(!!V.disableSubmitButton);this.resetEndpointData();V.submitEndpoint?this.submitEndpoint=V.submitEndpoint:V.submitNavigationEndpoint&&(this.navigationEndpoint=V.submitNavigationEndpoint)};
_.P.handleSignalActionSubmitForm=function(){var V,D=Object.keys(((V=this.reportChannelAbuseForm)==null?void 0:V.selectedVideoIds)||{}),f;V=((f=this.reportChannelAbuseForm)==null?void 0:f.additionalContext)||"";var n;f=((n=this.reportChannelAbuseForm)==null?void 0:n.impersonatedChannelUrl)||"";var t;if((t=this.data)==null?0:t.submitEndpoint){D={impersonated_channel_url:f,text:V,video_ids:D};var J;_.DY().resolve(_.fH).resolveCommand((J=this.data)==null?void 0:J.submitEndpoint,{form:Object.assign({},
D,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.P.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.P.onYtServiceRequestError=function(V){this.setNextButtonIsDisabled(!1);_.Uw(this.hostElement,V.detail.error.message)};
_.P.setNextButtonIsDisabled=function(V){this.set("data.nextButton.buttonRenderer.isDisabled",V)};
_.P.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
g$.prototype.onYtServiceRequestError=g$.prototype.onYtServiceRequestError;g$.prototype.onYtServiceRequestCompleted=g$.prototype.onYtServiceRequestCompleted;_.S([_.q(),_.p("design:type",Object)],g$.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],g$.prototype,"nextButtonDisabled",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],g$.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],g$.prototype,"submitEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],g$.prototype,"navigationEndpoint",void 0);_.S([_.q({selector:function(V){return V.reportChannelAbuse}}),
_.p("design:type",Object)],g$.prototype,"reportChannelAbuseForm",void 0);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],g$.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],g$.prototype,"onYtServiceRequestError",null);
_.S([_.a({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],g$);
_.Y(g$,"ytd-report-channel-modal-footer-renderer",function(){if(dF0!==void 0)return dF0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return dF0=V},{mode:1});var uHv;var vs=function(){var V=_.E.apply(this,arguments)||this;V.boundOnTapDismissButton=function(){V.closePopup()};
return V};
_.v(vs,_.E);vs.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
vs.prototype.handleDataChanged=function(){_.ph(this.hostElement)};
vs.prototype.closePopup=function(){_.o4(this.hostElement,"yt-close-popup-action")};
vs.prototype.handleDataChanged=vs.prototype.handleDataChanged;_.S([_.q(),_.p("design:type",Object)],vs.prototype,"boundOnTapDismissButton",void 0);_.S([_.q(),_.p("design:type",Object)],vs.prototype,"data",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vs.prototype,"handleDataChanged",null);_.S([_.a({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],vs);
_.Y(vs,"ytd-report-channel-modal-header-renderer",function(){if(uHv!==void 0)return uHv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return uHv=V},{mode:1});var ND3;var k_=function(){var V=_.E.apply(this,arguments)||this;V.autoValidate=!1;V.invalid=!1;V.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return V};
_.v(k_,_.E);_.P=k_.prototype;_.P.attached=function(){var V=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){V.channelUrlInput.focusTextInput()})};
_.P.disableNextButton=function(V){_.o4(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[V])};
_.P.handleImpersonatedChannelUrlChanged=function(){var V=this;this.disableNextButton(!0);this.invalid=!1;_.Yu(this,"ytd-report-channel-impersonated-channel-update",function(){var D=V.impersonatedChannelUrl.trim();V.ytdReduxBehavior.dispatch(_.nA({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:D}));var f;((f=V.data)==null?0:f.submitEndpoint)&&D&&_.DY().resolve(_.fH).resolveCommand(V.data.submitEndpoint,{form:{impersonated_channel_url:D,element:V.hostElement}})},500)};
_.P.handleModifyReportFormCommand=function(V){this.invalid=this.get("modifyReportFormCommand.action",V)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.P.updateInvalidFromBinding=function(V){this.invalid=V.detail.value};
_.P.updateImpersonatedChannelUrlFromBinding=function(V){this.impersonatedChannelUrl=V.detail.value};
k_.prototype.handleImpersonatedChannelUrlChanged=k_.prototype.handleImpersonatedChannelUrlChanged;_.S([_.u(_.dh),_.p("design:type",Object)],k_.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],k_.prototype,"autoValidate",void 0);_.S([_.q(),_.p("design:type",Object)],k_.prototype,"invalid",void 0);
_.S([_.q(),_.p("design:type",String)],k_.prototype,"impersonatedChannelUrl",void 0);_.S([_.q({selector:function(V){return V.reportChannelAbuse.impersonatedChannelUrl}}),
_.p("design:type",String)],k_.prototype,"impersonatedChannelUrlRedux",void 0);_.S([_.q(),_.p("design:type",Object)],k_.prototype,"data",void 0);_.S([_.Zv("#text-input"),_.p("design:type",Object)],k_.prototype,"channelUrlInput",void 0);_.S([_.KI("impersonatedChannelUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k_.prototype,"handleImpersonatedChannelUrlChanged",null);
_.S([_.a({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],k_);
_.Y(k_,"ytd-report-channel-modal-impersonation-renderer",function(){if(ND3!==void 0)return ND3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ND3=V},{mode:1});var mFR;var zjR;var sV=function(){return _.E.apply(this,arguments)||this};
_.v(sV,_.E);sV.prototype.onCheckboxToggled=function(V){var D,f,n=(f=_.g((D=this.data)==null?void 0:D.video,_.qT))==null?void 0:f.videoId;n&&this.ytdReduxBehavior.dispatch(V.target.checked?_.nA({type:"VIDEO_SELECTED",payload:n}):_.nA({type:"VIDEO_UNSELECTED",payload:n}))};
sV.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.IG.Object.defineProperties(sV.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var V,D=(V=this.data)==null?void 0:V.video;if(!D)return{};var f;V=(f=_.g(D,_.qT))==null?void 0:f.navigationEndpoint;if(!V)return D;_.g(V==null?void 0:V.commandMetadata,_.he)&&(_.g(V.commandMetadata,_.he).ignoreNavigation=!0);return D}}});
_.S([_.q({reflectToAttribute:!0,selector:function(V,D){return D in V.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.p("design:type",Boolean)],sV.prototype,"checked",void 0);_.S([_.q(),_.p("design:type",Object)],sV.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sV.prototype,"video",null);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],sV.prototype,"ytdReduxBehavior",void 0);_.S([_.a({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],sV);
_.Y(sV,"ytd-selectable-video-renderer",function(){if(zjR!==void 0)return zjR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return zjR=V},{mode:1});var Bs=function(){var V=_.E.apply(this,arguments)||this;V.monitorScroll=!0;return V};
_.v(Bs,_.E);Bs.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Bs.prototype,"data",void 0);_.S([_.a({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Bs);
_.Y(Bs,"ytd-selectable-video-list-renderer",function(){if(mFR!==void 0)return mFR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return mFR=V},{mode:1});var RjW;_.zk("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var d$=function(){return _.E.apply(this,arguments)||this};
_.v(d$,_.E);d$.prototype.onChange=function(V){if(V=_.x7(V).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.c("kevlar_command_handler_migration_killswitch"))_.wN(this.hostElement,V,this.hostElement);else{V=_.r(V);for(var D=V.next();!D.done;D=V.next())this.ytComponentBehavior.resolveCommand(D.value)}};
d$.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
d$.prototype.updateDataToggledFromBinding=function(V){this.set("data.toggled",V.detail.value)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],d$.prototype,"data",void 0);_.S([_.q({computed:"isEnabled(data)"}),_.p("design:type",Boolean)],d$.prototype,"enabled",void 0);_.S([_.a({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],d$);
_.Y(d$,"ytd-toggle-item-renderer",function(){if(RjW!==void 0)return RjW;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return RjW=V},{mode:1});var CMX;var q8q;var XgV;var uw=function(){var V=_.E.apply(this,arguments)||this;V.setVisible=!1;V.boundOnSubmitButtonClick=function(){V.onSubmitButtonClick()};
V.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return V};
_.v(uw,_.E);uw.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}}}}}};
uw.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
uw.prototype.onSubmitButtonClick=function(){var V;((V=this.data)==null?0:V.submitEndpoint)&&!_.c("enable_ytc_refunds_submit_form_signal_action")&&_.HA(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
uw.prototype.handleSignalActionSubmitForm=function(){var V;((V=this.data)==null?0:V.submitEndpoint)&&_.HA(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.IG.Object.defineProperties(uw.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.hiddenByDefault)&&!this.setVisible}}});
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],uw.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uw.prototype,"setVisible",void 0);_.S([_.q(),_.p("design:type",Object)],uw.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],uw.prototype,"surveyFeedbackData",void 0);_.S([_.q(),_.p("design:type",Object)],uw.prototype,"boundOnSubmitButtonClick",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data","setVisible"),_.p("design:type",Object),_.p("design:paramtypes",[])],uw.prototype,"visibilityHidden",null);_.S([_.zy({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],uw);
_.Y(uw,"yt-flow-footer-renderer",function(){if(XgV===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;q8q===void 0&&(q8q=document.createElement("template"));var n=q8q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);XgV=V}V=XgV;return V},{mode:2});var NK=function(){return _.E.apply(this,arguments)||this};
_.v(NK,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],NK.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],NK.prototype,"data",void 0);_.S([_.q({selector:function(V){return V.ypc.surveyFeedbackData}}),
_.p("design:type",Object)],NK.prototype,"surveyFeedbackData",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],NK);
_.Y(NK,"ytd-flow-footer-renderer",function(){if(CMX!==void 0)return CMX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CMX=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var EEB;var A$o;var mn=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return V};
_.v(mn,_.E);_.P=mn.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Rt("multiPageMenuSectionItems")}}};
_.P.handleHideEnclosingAction_=function(V){if(this.data&&this.data.items)for(var D=0;D<this.data.items.length;D++){var f=this.data.items[D].notificationRenderer;if(f&&f.notificationId==V.hideEnclosingAction.notificationId){this.splice("data.items",D,1);_.o4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.P.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.rI(this.hostElement,"hidden",!0)};
_.P.updateMenu_=function(V){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&V&&!V.doNotRefreshInbox){V=this.data.continuations;for(var D=0;D<V.length;D++)if(V[D].invalidationContinuationData){var f=void 0;var n=(f=V[D].invalidationContinuationData)==null?void 0:f.continuation;break}V=_.sB.clone(this.data.continuationUpdateEndpoint||null);V.continuation=n;V.click_tracking_params=this.data.trackingParams;_.HA(this.hostElement,[V])}};
_.P.onServiceRequestCompleted_=function(V,D){if(this.data&&(V=D.actions)){D=0;for(var f=V.length;D<f;D++){var n=_.g(V[D],_.WzU);if(!n)break;if((n.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||n.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&n.continuationItems&&this.data.items){var t=this.data.items.length-1;this.data.items[t].continuationItemRenderer&&this.splice.apply(this,["data.items",t,1].concat(n.continuationItems))}}}};
mn.prototype.onServiceRequestCompleted_=mn.prototype.onServiceRequestCompleted_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mn.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mn.prototype,"data",void 0);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],mn.prototype,"onServiceRequestCompleted_",null);_.S([_.zy({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],mn);
_.o5()(mn,"yt-multi-page-menu-section-renderer",function(){if(A$o===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;EEB===void 0&&(EEB=document.createElement("template"));var n=EEB;f.call(D,n.content.cloneNode(!0),V.content.firstChild);A$o=V}V=A$o;return V},{allowedProps:["data"],
mode:2});var aQ3;var Y8f;var zp=function(){return _.E.apply(this,arguments)||this};
_.v(zp,_.E);zp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.IG.Object.defineProperties(zp.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.progress)==null?0:this.data.progress*100}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zp.prototype,"data",void 0);_.S([_.R("data.progress"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],zp.prototype,"showProgressBar",null);
_.S([_.R("data.progress"),_.p("design:type",Number),_.p("design:paramtypes",[])],zp.prototype,"progress",null);_.S([_.zy({is:"yt-flow-header-renderer",disableElementRegistration:!0})],zp);
_.Y(zp,"yt-flow-header-renderer",function(){if(Y8f===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;aQ3===void 0&&(aQ3=document.createElement("template"));var n=aQ3;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Y8f=V}V=Y8f;return V},{mode:2});var $Ff;var iCR;var Rf=function(){return _.E.apply(this,arguments)||this};
_.v(Rf,_.E);Rf.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Rf.prototype,"data",void 0);_.S([_.zy({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Rf);
_.Y(Rf,"yt-post-confirmation-flow-step-renderer",function(){if(iCR===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;$Ff===void 0&&($Ff=document.createElement("template"));var n=$Ff;f.call(D,n.content.cloneNode(!0),V.content.firstChild);iCR=V}V=iCR;return V},{mode:2});var S8o;var WcR;var CB=function(){return _.E.apply(this,arguments)||this};
_.v(CB,_.E);
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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],CB.prototype,"data",void 0);_.S([_.zy({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],CB);
_.Y(CB,"yt-refund-confirmation-flow-step-renderer",function(){if(WcR===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;S8o===void 0&&(S8o=document.createElement("template"));var n=S8o;f.call(D,n.content.cloneNode(!0),V.content.firstChild);WcR=V}V=WcR;return V},{mode:2});_.V$(sWJ);_.V$(BgR);var d_v=_.eK({avatarViewModel:_.vd});_.V$(uC3);var hw=_.eK({commentInteractionViewModel:BgR,sharedSubscriptionViewModel:uC3,buttonViewModel:_.HO,horizontalShelfViewModel:_.di});_.V$(Ngc);_.V$(m_Z);_.V$(zIo);_.V$(RIv);_.V$(CRZ);var qlV=_.eK({profileIdentityInfoViewModel:_.qBZ,profileInfoViewModel:CRZ});_.V$(XR3);_.wk(XR3,"yt-profile-card-view-model",{propNames:["data"]});var qK=function(){var V=_.E.apply(this,arguments)||this;V.enableFocusFix=_.c("music_web_enable_focus_on_setting_menu_fix")&&_.EG("IS_MOBILE_WEB",!1);V.covered=!1;V.hideMenu=!1;V.isCommentNotificationOnProfileCard=!1;V.scrolledByTouch=!1;V.disableBackdropFilter=_.c("web_disable_backdrop_filter");V.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return V};
_.v(qK,_.E);_.P=qK.prototype;
_.P.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"}}}};
_.P.ready=function(){var V=this;this.JSC$18124_containerElement.addEventListener("scroll",function(){V.ytRendererBehavior.markDirty()})};
_.P.attributeChanged=function(V,D){V==="menu-style"&&_.o4(this.hostElement,"yt-multi-page-menu-closed-action",[D])};
_.P.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ty(this,this.focusOnStampFinished))};
_.P.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Ty(this,this.focusOnStampFinished))};
_.P.reset=function(){this.closeJobId&&(_.dm.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.P.focusOnStampFinished=function(V){V.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ty(this,this.focusOnStampFinished)),this.doFocus())};
_.P.doFocus=function(){var V=_.OTU(this.sectionsElement);V.length&&V[0].focus()};
_.P.computeMenuStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.P.computeIsCommentNotificationOnProfileCard=function(V){return _.c("enable_profile_cards_on_comments")&&V.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.P.computeHideMenu=function(V,D){return V||!(!D||!D.showLoadingSpinner)};
_.P.onPopupClosed=function(){this.isPopUpOpen=!1;_.o4(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.P.onPopupOpened=function(V,D){this.isPopUpOpen=!0;D.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.PA(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.nA({type:"CHANNEL_REPORT_RESET"})))};
_.P.onYtNavigate=function(V,D){this.shouldCloseOnNavigateEvent(D.endpoint)&&_.o4(this.hostElement,"yt-close-all-popups-action")};
_.P.handleEndpoint=function(V){V=_.g(V,_.u7);!this.isCommentNotificationOnProfileCard&&V&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$18124_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.P.handleActions=function(V){for(var D=0,f=V.length;D<f;D++){var n=_.g(V[D],P7c);n&&this.handleGetMultiPageMenuAction(n);(n=_.g(V[D],_.WzU))&&this.handleAppendContinuationItemsAction(n)}};
_.P.onServiceRequestSentOrCompleted=function(V,D){V.detail&&V.detail.endpoint&&this.handleEndpoint(V.detail.endpoint);D.actions&&this.handleActions(D.actions)};
_.P.handleGetMultiPageMenuAction=function(V){var D=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Pt(this.submenuElement).appendChild(D);(V=V.menu.multiPageMenuRenderer)&&this.logSubmenu(V);D.data=V;D.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.P.handleAppendContinuationItemsAction=function(V){if(this.data&&V.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&V.continuationItems&&this.data.sections){var D=this.data.sections.length-1;this.data.sections[D].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),D--);if(this.data.sections[D].multiPageMenuNotificationSectionRenderer&&V.continuationItems){V=_.r(V==null?void 0:V.continuationItems);for(var f=V.next();!f.done;f=V.next())if(f=f.value,_.g(f,mTq)){var n=
void 0,t=void 0,J=void 0,H=void 0,Q=void 0;((n=this)==null?0:(t=n.data)==null?0:(J=t.sections)==null?0:(H=J[D])==null?0:(Q=H.multiPageMenuNotificationSectionRenderer)==null?0:Q.items)&&this.push("data.sections."+D+".multiPageMenuNotificationSectionRenderer.items",f)}else if(_.g(f,_.zcl)||_.g(f,_.fY))this.push("data.sections",f),D++}}};
_.P.logSubmenu=function(V){if(!_.c("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var D=this.ytRendererBehavior.getScreenLayer(),f=_.Ni(D),n=_.u8(D);if((V=V.trackingParams)&&f&&n){var t=_.gs(V);_.c("combine_ve_grafts")?_.lS().graftServerVe(V,n,D):_.Y8(f,n,t)}}};
_.P.emptySubmenuContainer=function(){for(var V=_.Pt(this.submenuElement);V.firstChild;)V.removeChild(V.firstChild)};
_.P.onMenuBackTap=function(V){_.PA(this.hostElement,"yt-submenu-closed");V.stopPropagation()};
_.P.onSubmenuClosed=function(V){_.x7(V)!==this.hostElement&&(this.covered=!1,_.PA(this.hostElement,"yt-refit"),V.stopPropagation())};
_.P.onRetrieveLocation=function(V,D){D.hasComments&&(D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),V.stopPropagation())};
_.P.shouldCloseOnNavigateEvent=function(V){if(!V)return!0;if(_.g(V,_.zYr)||_.g(V,_.RYu)||_.g(V,_.mQY)||_.g(V,_.a2))return!1;var D;return((D=_.g(V==null?void 0:V.commandMetadata,_.he))==null?0:D.ignoreNavigation)?!1:!0};
_.P.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.P.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.P.refitAfterRender=function(){var V=this;_.pO(this,function(){_.PA(V.hostElement,"yt-refit")})};
qK.prototype.refitAfterRender=qK.prototype.refitAfterRender;qK.prototype.onRetrieveLocation=qK.prototype.onRetrieveLocation;qK.prototype.onSubmenuClosed=qK.prototype.onSubmenuClosed;qK.prototype.onMenuBackTap=qK.prototype.onMenuBackTap;qK.prototype.onServiceRequestSentOrCompleted=qK.prototype.onServiceRequestSentOrCompleted;qK.prototype.onYtNavigate=qK.prototype.onYtNavigate;qK.prototype.onPopupOpened=qK.prototype.onPopupOpened;qK.prototype.onPopupClosed=qK.prototype.onPopupClosed;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],qK.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qK.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],qK.prototype,"enableFocusFix",void 0);_.S([_.q(),_.p("design:type",Object)],qK.prototype,"covered",void 0);_.S([_.q({computed:"computeHideMenu(covered, data)"}),_.p("design:type",Object)],qK.prototype,"hideMenu",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.p("design:type",String)],qK.prototype,"menuStyle",void 0);
_.S([_.q({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.p("design:type",Object)],qK.prototype,"isCommentNotificationOnProfileCard",void 0);_.S([_.q(),_.p("design:type",Boolean)],qK.prototype,"isPopUpOpen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qK.prototype,"scrolledByTouch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qK.prototype,"disableBackdropFilter",void 0);
_.S([_.Zv("#sections"),_.p("design:type",HTMLElement)],qK.prototype,"sectionsElement",void 0);_.S([_.Zv("#spinner"),_.p("design:type",HTMLElement)],qK.prototype,"spinnerElement",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],qK.prototype,"headerElement",void 0);_.S([_.Zv("#container"),_.p("design:type",HTMLElement)],qK.prototype,"JSC$18124_containerElement",void 0);_.S([_.Zv("#submenu"),_.p("design:type",HTMLElement)],qK.prototype,"submenuElement",void 0);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qK.prototype,"onPopupClosed",null);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qK.prototype,"onPopupOpened",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qK.prototype,"onYtNavigate",null);
_.S([_.bU("yt-service-request-completed"),_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],qK.prototype,"onServiceRequestSentOrCompleted",null);_.S([_.bU("yt-menu-back-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qK.prototype,"onMenuBackTap",null);
_.S([_.bU("yt-submenu-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qK.prototype,"onSubmenuClosed",null);_.S([_.bU("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qK.prototype,"onRetrieveLocation",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qK.prototype,"refitAfterRender",null);
_.S([_.a({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],qK);
_.Y(qK,"ytd-multi-page-menu-renderer",function(){if(gEc!==void 0)return gEc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gEc=V},{mode:1});var pgq;var Xi=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return V};
_.v(Xi,_.E);_.P=Xi.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.computeAccessibility_=function(V){return this.get("accessibility.accessibilityData",V)||null};
_.P.onTap=function(){var V=_.JR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(V&&V.length===1&&V[0])_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var D;if((D=this.data)==null?0:D.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var f;((f=this.data)==null?0:f.menuRequest)&&_.HA(this.hostElement,[this.data.menuRequest])}}};
_.P.handleTopbarMenuClosedAction=function(V){var D,f;(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(V)===((D=this.data)==null?void 0:(f=D.icon)==null?void 0:f.iconType)&&this.toggleIconState(!1)};
_.P.toggleIconState=function(V){_.c("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=V)};
_.P.handleUpdateTopbarAvatarAction=function(V){var D;V=(D=_.g(V,h23))==null?void 0:D.avatarUrl;var f,n;D=(f=this.data)==null?void 0:(n=f.avatar)==null?void 0:n.thumbnails;V&&D&&(f={thumbnails:[Object.assign({},D[0],{url:V})]},this.set("data.avatar",f))};
_.IG.Object.defineProperties(Xi.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Pt(this.hostElement).querySelector("#button")}}});
Xi.prototype.onTap=Xi.prototype.onTap;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Xi.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],Xi.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.ys6.YtButtonBehavior),_.p("design:type",Object)],Xi.prototype,"ytButtonBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Xi.prototype,"data",void 0);
_.S([_.Zv("yt-icon-button#button"),_.p("design:type",Object)],Xi.prototype,"iconButton",void 0);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xi.prototype,"onTap",null);_.S([_.a({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Xi);
_.Y(Xi,"ytd-topbar-menu-button-renderer",function(){if(pgq!==void 0)return pgq;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pgq=V},{mode:1});var Lcw;var EV=function(){return _.E.apply(this,arguments)||this};
_.v(EV,_.E);EV.prototype.getSelected=function(){return this.reasons.selected};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],EV.prototype,"data",void 0);_.S([_.Zv("#reasons"),_.p("design:type",Object)],EV.prototype,"reasons",void 0);_.S([_.a({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],EV);
_.Y(EV,"ytd-ad-feedback-content",function(){if(Lcw!==void 0)return Lcw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Lcw=V},{mode:1});var IQR;var Ap=function(){return _.E.apply(this,arguments)||this};
_.v(Ap,_.E);_.P=Ap.prototype;_.P.onPopupOpened=function(){_.o4(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.P.computeConfirmButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.confirmLabel}};
_.P.computeCancelButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.cancelLabel}};
_.P.onConfirmTap=function(){var V=this.content.getSelected();V!==void 0&&(V=this.data.reasons[V].endpoint)&&(_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}}),_.o4(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.P.sendFeedbackSubmitToastAction=function(){var V;(V=this.data)!=null&&V.completionMessage&&_.o4(this.hostElement,"yt-open-popup-action",[_.M_(this.data.completionMessage),this])};
_.P.onCancelTap=function(){_.o4(this.hostElement,"yt-close-popup-action")};
Ap.prototype.onPopupOpened=Ap.prototype.onPopupOpened;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ap.prototype,"data",void 0);_.S([_.Zv("#content"),_.p("design:type",Object)],Ap.prototype,"content",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ap.prototype,"onPopupOpened",null);
_.S([_.a({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Ap);
_.Y(Ap,"ytd-ad-feedback-renderer",function(){if(IQR!==void 0)return IQR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IQR=V},{mode:1});var OCv;var af=function(){return _.E.apply(this,arguments)||this};
_.v(af,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],af.prototype,"data",void 0);_.S([_.a({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],af);
_.Y(af,"ytd-ad-info-dialog-content",function(){if(OCv!==void 0)return OCv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return OCv=V},{mode:1});var xFX;var Y_=function(){return _.E.apply(this,arguments)||this};
_.v(Y_,_.E);Y_.prototype.computeConfirmButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.confirmLabel}};
Y_.prototype.onConfirmTap=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Y_.prototype.computeShouldShowTitle=function(){var V;return!((V=this.data)==null||!V.title)};
Y_.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Y_.prototype.onPopupClosed=Y_.prototype.onPopupClosed;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Y_.prototype,"data",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Y_.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Y_);
_.Y(Y_,"ytd-ad-info-dialog-renderer",function(){if(xFX!==void 0)return xFX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return xFX=V},{mode:1});var MOo;var $_=function(){var V=_.E.apply(this,arguments)||this;V.actionButtonClass="action-button";V.dismissButtonId="dismiss-button";V.dialogDismiss=!0;return V};
_.v($_,_.E);_.P=$_.prototype;_.P.computeInPlayer=function(V){return(V==null?void 0:V.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.P.computedLogo=function(){var V,D;return this.isDarkTheme()?(V=this.data)==null?void 0:V.logoDark:(D=this.data)==null?void 0:D.logo};
_.P.computedHeaderImage=function(){var V,D;return this.isDarkTheme()?(V=this.data)==null?void 0:V.headerImageDark:(D=this.data)==null?void 0:D.headerImage};
_.P.computeLogoIconId=function(){var V,D,f,n=(V=this.computedLogo())==null?void 0:(D=V.sources)==null?void 0:(f=D[0])==null?void 0:f.height;return n&&n%31===0?"logo-icon-with-padding":"logo-icon"};
_.P.computeLogoIconHeight=function(){var V,D,f,n=(V=this.computedLogo())==null?void 0:(D=V.sources)==null?void 0:(f=D[0])==null?void 0:f.height;return n&&n%31===0?"31":"24"};
_.P.onPopupClosed=function(){_.DY().resolve(_.nk).dispose()};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.P.onShow=function(){this.inPlayer&&_.KR(6)};
_.P.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var V=0;V<this.data.impressionEndpoints.length;V++){var D=_.g(this.data.impressionEndpoints[V],_.q3);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.P.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.o4(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.IG.Object.defineProperties($_.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var V,D;return!((V=this.data)==null||!V.headerImageDark)&&!((D=this.data)==null||!D.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.secondaryButton)}}});
$_.prototype.onPopupClosed=$_.prototype.onPopupClosed;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],$_.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.Ym.YtVisibilityBehavior),_.p("design:type",Object)],$_.prototype,"ytVisibilityBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$_.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],$_.prototype,"actionButtonClass",void 0);_.S([_.q(),_.p("design:type",Object)],$_.prototype,"dismissButtonId",void 0);_.S([_.q(),_.p("design:type",Object)],$_.prototype,"dialogDismiss",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$_.prototype,"hasHeaderImage",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$_.prototype,"hasPremiumButton",null);
_.S([_.q({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.p("design:type",Boolean)],$_.prototype,"inPlayer",void 0);_.S([_.Zv("#dismiss-button"),_.p("design:type",HTMLElement)],$_.prototype,"dismissButton",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$_.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],$_);
_.Y($_,"ytd-enforcement-message-view-model",function(){if(MOo!==void 0)return MOo;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return MOo=V},{mode:1});var hjw;var UFV;var iw=function(){var V=_.E.apply(this,arguments)||this;V.TEST_ONLY={immediateValidation:function(){V.immediateValidation()},
onValidationResponse:function(D){V.onValidationResponse(D)},
onGenerateHandleFromNameResponse:function(D){V.onGenerateHandleFromNameResponse(D)}};
return V};
_.v(iw,_.E);_.P=iw.prototype;_.P.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.P.validate=function(){this.immediateValidation()};
_.P.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.P.setHandleInputValue=function(V){this.handleDir=this.getHandleDir(V);this.handleInput.value=V;this.validationState={status:"PENDING"};this.immediateValidation()};
_.P.getHandleDir=function(V){var D=V===""&&!1;return(D=_.EJl.test.call(_.EJl,V))?"rtl":"ltr"};
_.P.onDataChanged=function(){var V,D;this.handleDir=this.getHandleDir((D=(V=this.data)==null?void 0:V.handle)!=null?D:"");var f;this.validationState=((f=this.data)==null?0:f.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var n;((n=this.data)==null?0:n.validateOnInit)&&this.immediateValidation()};
_.P.stopPropagation=function(V){V.stopPropagation()};
_.P.onInput=function(){var V;this.handleDir=this.getHandleDir((V=this.handleInput.value)!=null?V:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.P.onFocusout=function(V){this.handleInput.contains(V.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.P.delayedValidation=function(){var V,D;this.debouncedValidation((D=(V=this.data)==null?void 0:V.validationDelayMs)!=null?D:1E3)};
_.P.immediateValidation=function(){this.debouncedValidation(0)};
_.P.debouncedValidation=function(V){var D=this;_.Yu(this,"debouncedValidation",function(){var f,n=D.staticValidation((f=D.handleInput.value)!=null?f:"");if(n!==void 0)D.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:n};else{var t;if((t=D.data)!=null&&t.validateChannelHandleCommand){D.validationState={status:"LOADING"};var J;D.ytComponentBehavior.resolveCommand(D.data.validateChannelHandleCommand,{form:{handle:(J=D.handleInput.value)!=null?J:""},commandController:{onSuccess:function(H,
Q){D.onValidationResponse(Q)},
onServerError:function(H,Q){D.onValidationServerError(Q)}}})}else D.handleUnexpectedValidationError(new _.cI("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",D.data))}},V)};
_.P.staticValidation=function(V){var D;if(((D=this.data)==null?void 0:D.channelHandleStaticValidationParams)!==void 0){D=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(V)&&D.validValueRegexpErrorMessage!==void 0)return D.validValueRegexpErrorMessage;if(D.minLength!==void 0&&V.length<D.minLength&&D.minLengthErrorMessage!==void 0)return D.minLengthErrorMessage;if(D.maxLength!==void 0&&V.length>D.maxLength&&D.maxLengthErrorMessage!==void 0)return D.maxLengthErrorMessage}};
_.P.onValidationResponse=function(V){var D=_.g(V.result,UHv);D===void 0?this.handleUnexpectedValidationError(new _.cI("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",V)):this.handleValidationResultRenderer(D)};
_.P.onValidationServerError=function(V){this.handleUnexpectedValidationError(new _.cI("ValidateChannelHandle request failed.",V))};
_.P.handleValidationResultRenderer=function(V){if(V.handle===void 0)this.handleUnexpectedValidationError(new _.cI("ChannelHandleValidationResultRenderer does not contain handle.",V));else if(V.handle===this.handleInput.value)switch(V.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:V.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:V.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.cI("Unrecognized ChannelHandleValidationResult",V));break;default:_.JZ(V.result)}};
_.P.handleUnexpectedValidationError=function(V){var D;this.validationState={status:"UNKNOWN",handle:(D=this.handleInput.value)!=null?D:""};_.zP(V)};
_.P.stopEventPropagation=function(V){V.stopPropagation()};
_.P.updateHandleOnChannelNameInputChange=function(V){if(!this.wasEdited){var D,f;this.debouncedGenerateHandleFromName(V,(f=(D=this.data)==null?void 0:D.validationDelayMs)!=null?f:1E3)}};
_.P.debouncedGenerateHandleFromName=function(V,D){var f=this;_.Yu(this,"debouncedGenerateHandleFromName",function(){var n;(n=f.data)!=null&&n.validateChannelHandleCommand?f.ytComponentBehavior.resolveCommand(f.data.validateChannelHandleCommand,{form:{name:V},commandController:{onSuccess:function(t,J){f.onGenerateHandleFromNameResponse(J)},
onServerError:function(t,J){_.zP(new _.cI("Error calling GenerateHandleFromName",J))}}}):_.zP(new _.cI("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",f.data))},D)};
_.P.onGenerateHandleFromNameResponse=function(V){this.wasEdited||((V=_.g(V.result,Vto))?this.setHandleInputValue(V.handle):_.zP(new _.cI("Invalid results when generate handle from name")))};
_.IG.Object.defineProperties(iw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var V;if(V=this.validationState)V=this.validationState,V=V.status==="OK"||V.status==="UNKNOWN";if(V)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.validationState)==null?void 0:V.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 V,D=(V=this.channelHandleEntity)==null?void 0:V.handleEdit;this.handleDir=this.getHandleDir(D!=null?D:"");return D}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var V,D;if(((V=this.data)==null?void 0:(D=V.channelHandleStaticValidationParams)==null?void 0:D.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
iw.prototype.stopEventPropagation=iw.prototype.stopEventPropagation;iw.prototype.onDataChanged=iw.prototype.onDataChanged;iw.prototype.applyHandleEdit=iw.prototype.applyHandleEdit;iw.prototype.onValueChanged=iw.prototype.onValueChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],iw.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iw.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Boolean)],iw.prototype,"wasEdited",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],iw.prototype,"handleDir",void 0);_.S([_.Zv("#handle-input"),_.p("design:type",Object)],iw.prototype,"handleInput",void 0);_.S([_.q(),_.R("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],iw.prototype,"value",null);
_.S([_.KI("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iw.prototype,"onValueChanged",null);_.S([_.R("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],iw.prototype,"errorIndicator",null);_.S([_.q({reflectToAttribute:!0}),_.R("errorIndicator"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iw.prototype,"borderErrorIndicator",null);
_.S([_.q({selectorArgs:["data.channelHandleEntityKey"],selector:function(V,D){return _.wg(V.entities,"channelHandle",D)}}),
_.p("design:type",Object)],iw.prototype,"channelHandleEntity",void 0);_.S([_.R("channelHandleEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],iw.prototype,"handleEdit",null);_.S([_.KI("handleEdit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iw.prototype,"applyHandleEdit",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iw.prototype,"onDataChanged",null);
_.S([_.R("data.channelHandleStaticValidationParams.validValueRegexp"),_.p("design:type",Object),_.p("design:paramtypes",[])],iw.prototype,"validValueRegexp",null);_.S([_.bU("yt-service-request-sent"),_.bU("yt-service-request-completed"),_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],iw.prototype,"stopEventPropagation",null);_.S([_.a({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],iw);
_.Y(iw,"ytd-channel-handle-input-renderer",function(){if(UFV!==void 0)return UFV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return UFV=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var Si=function(){var V=_.E.apply(this,arguments)||this;V.data=null;V.errorMessage=null;V.isLoading=!0;V.hideContainer=!1;V.enableNewChannelCreationOnIdForAll=_.c("enable_new_channel_creation_for_id4all");V.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"};V.testOnly={setErrorMessage:function(D){V.resetErrorState();
V.setErrorState(D)}};
return V};
_.v(Si,_.E);_.P=Si.prototype;_.P.created=function(){this.logScreenVe()};
_.P.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")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var V;((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.set("errorMessage",_.pA(this.zeroStepErrorMessageEntity.value))};
_.P.onCreateTap=function(){var V=this;if(this.data&&this.data.channelCreationEndpoint){var D,f;if(!((D=this.data.createChannelButton)==null?0:(f=D.buttonRenderer)==null?0:f.isDisabled)){var n;if((n=this.nameInput)!=null&&n.value){this.setLoadingState();var t,J;D=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(t=this.handleInput)==null?void 0:t.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((J=this.handleInput)==null?void 0:J.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:D,commandController:{onSuccess:function(H,Q){V.onChannelCreationEndpointSuccess(Q);V.obakeImageSource&&_.dq("channelCreatedWithObakeImage",{imageSourceType:V.obakeImageSource})},
onServerError:function(){V.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.P.endpointRequiresServiceRequestAction=function(V){return!!_.g(V,_.dK)||!!_.g(V,h23)};
_.P.isNavigateAction=function(V){var D;return!!_.g(V,_.Wx)||!!_.g((D=_.g(V,nBq))==null?void 0:D.command,_.Wx)};
_.P.isPlaylistAction=function(V){return!!_.g(V,_.NT)||!!_.g(V,_.Xb)};
_.P.onChannelCreationEndpointSuccess=function(V){if(V.createChannelError){var D;this.setErrorState((D=V.createChannelError)==null?void 0:D.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.c("enable_secondary_channel_creation_form")&&V.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(V.navigationEndpoint);if(V.actions){D=_.r(V.actions);for(var f=D.next();!f.done;f=D.next())if(f=f.value,this.endpointRequiresServiceRequestAction(f)&&this.ytComponentBehavior.resolveCommand(f),
this.isNavigateAction(f)){var n=void 0;f=_.g((n=_.g(f,nBq))==null?void 0:n.command,_.Wx);n=void 0;this.isPlaylistAction((n=f)==null?void 0:n.endpoint)&&(_.o4(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),n=void 0,this.ytComponentBehavior.resolveCommand((n=f)==null?void 0:n.endpoint))}}V.actions&&V.actions.some(function(t){var J;return _.g(t,_.Wx)||_.g((J=_.g(t,nBq))==null?void 0:J.command,_.Wx)})||_.o4(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.P.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.P.onCancelTap=function(){var V,D,f;if(!((V=this.data)==null?0:(D=V.cancelButton)==null?0:(f=D.buttonRenderer)==null?0:f.isDisabled)){var n,t,J;V=(n=this.data)==null?void 0:(t=n.cancelButton)==null?void 0:(J=t.buttonRenderer)==null?void 0:J.command;if(!V||!_.g(V,_.BLn)){var H;this.nameInput&&((H=this.data)==null?0:H.name)&&(this.nameInput.value=this.data.name);var Q;this.handleInput&&((Q=this.data)==null?0:Q.channelHandleInput)&&(this.handleInput.data=_.g(this.data.channelHandleInput,DTf));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.P.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.P.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.P.onClearProfilePhotoTap=function(){var V,D,f;((V=this.data)==null?0:(D=V.clearProfilePhotoButton)==null?0:(f=D.buttonRenderer)==null?0:f.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.P.onEditAvatarTap=function(){var V,D,f;((V=this.data)==null?0:(D=V.editAvatarButton)==null?0:(f=D.buttonRenderer)==null?0:f.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.P.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)};
_.P.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var V;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((V=this.data)==null?0:V.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.P.setErrorState=function(V){this.resetErrorState();if(V)this.set("errorMessage",V);else{var D;if((D=this.zeroStepErrorMessageEntity)==null?0:D.value)this.set("errorMessage",_.pA(this.zeroStepErrorMessageEntity.value));else{var f;((f=this.data)==null?0:f.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.P.fetchImageBlobWithAlr=function(V,D){D=D===void 0?5:D;var f=this,n,t,J,H,Q;return _.w(function(T){switch(T.nextAddress){case 1:return _.b(T,fetch(V,{method:"GET",mode:"cors"}),2);case 2:n=T.yieldResult;if(n.ok){T.jumpTo(3);break}if(D===0)throw Error();t=f.addJitter(Math.pow(2,5-D));return _.b(T,new Promise(function(y){setTimeout(y,t*1E3)}),4);
case 4:return T.return(f.fetchImageBlobWithAlr(V,D-1));case 3:if(!n.headers.get("content-type").split(";").some(function(y){return y.trim()==="text/plain"})){T.jumpTo(5);
break}J=f;H=J.fetchImageBlobWithAlr;return _.b(T,n.text(),6);case 6:return T.return(H.call(J,T.yieldResult,D-1));case 5:return _.b(T,n.blob(),7);case 7:return Q=T.yieldResult,T.return(Q)}})};
_.P.addJitter=function(V){var D=V*.3*Math.random();Math.random()>.5&&(D*=-1);return V+D};
_.P.openProfilePicturePicker=function(){var V=this,D,f,n,t,J;return _.w(function(H){if(H.nextAddress==1){D=V.data.scottyUploadUrl;if(!D)return H.return();f=document.documentElement.hasAttribute("dark");n=document.body.style.colorScheme;f&&(document.body.style.colorScheme="dark");t=x7w(MNo(O$o(hKR(f?"dark":"light")),function(Q){var T,y,Z,l,G;return _.w(function(F){if(F.nextAddress==1)return T=_.EO(bnf(new kU(Q.photoUrl,!1)).build(),"alr","yes"),V.obakeImageSource=V.pictureChangeSourceToObakeImageSourceType(Q.photoSource),
_.wx(F,2),V.setLoadingState(),_.b(F,V.fetchImageBlobWithAlr(T),4);if(F.nextAddress!=2)return y=F.yieldResult,Z=new FileReader,Z.addEventListener("load",function(){var k,d,z,C,A,O;return _.w(function(W){if(W.nextAddress==1){if(y.size>15728640)return V.setErrorState((k=V.data)==null?void 0:k.imageSizeErrorMessage),_.zP(Error("pl")),W.return();if(!Z.result)return V.setErrorState((d=V.data)==null?void 0:d.genericImageLoadErrorMessage),_.zP(Error("ql")),W.return();z=Z.result;_.wx(W,2);return _.b(W,Eyf(y,
D),4)}if(W.nextAddress!=2)return C=W.yieldResult,V.handleImageUpdatedAction(z,C),V.resetErrorState(),_.YJ(W,0);A=_.KW(W);V.setErrorState((O=V.data)==null?void 0:O.uploadErrorMessage);if(A instanceof Error)_.NG(A);else{var I=new _.cI(JSON.stringify(A));_.NG(I)}_.yz(W)})}),Z.readAsDataURL(y),_.YJ(F,0);
l=_.KW(F);V.setErrorState((G=V.data)==null?void 0:G.genericImageLoadErrorMessage);l instanceof Error?_.NG(l):_.mw(new _.cI(JSON.stringify(l)));_.yz(F)})}),function(){V.hideContainer=!1;
document.body.style.colorScheme=n});
_.wx(H,2);return _.b(H,t.openPicker(),4)}if(H.nextAddress!=2)return _.YJ(H,0);_.KW(H);V.setErrorState((J=V.data)==null?void 0:J.selectImageErrorMessage);_.yz(H)})};
_.P.pictureChangeSourceToObakeImageSourceType=function(V){switch(V){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.P.logScreenVe=function(){_.P5(_.lS(),124448)};
_.P.graftServerVe=function(){var V=_.u8(),D,f,n=(D=this.data)==null?void 0:(f=D.loggingDirectives)==null?void 0:f.trackingParams;n&&V&&(this.channelCreationFormVe=_.lS().graftServerVe(n,V),V={visualElement:this.channelCreationFormVe},_.Zb().reportShown(V))};
_.P.isNameChanged=function(V){var D;return((D=this.data)==null?void 0:D.name)!==V};
_.P.isHandleChanged=function(V){var D,f=_.g((D=this.data)==null?void 0:D.channelHandleInput,DTf);return f&&V?f.handle!==V:!1};
_.P.handleImageUpdatedAction=function(V,D){this.hideContainer=!1;this.previewDataUrl=V;this.encryptedBlobId=D};
_.P.handleImageSelectionErrorAction=function(V){this.hideContainer=!1;this.setErrorState(V)};
_.P.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.P.showContainer=function(){this.hideContainer=!1};
_.P.maybeWipeZeroStepErrorMessage=function(){var V,D=(V=this.data)==null?void 0:V.zeroStepErrorMessageEntityKey,f;D&&((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.ytdReduxBehavior.dispatch(_.y1("stringEntity",D,{key:D,value:""}))};
_.IG.Object.defineProperties(Si.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 V;return((V=this.photoThumbnail)==null?0:V.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 V;return!((V=this.data)==null||!V.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.descriptionInfo}}});
Si.prototype.dataChanged=Si.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Si.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Si.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Si.prototype,"errorMessage",void 0);
_.S([_.q(),_.p("design:type",Object)],Si.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",String)],Si.prototype,"previewDataUrl",void 0);_.S([_.q(),_.p("design:type",Number)],Si.prototype,"obakeImageSource",void 0);_.S([_.q(),_.p("design:type",Object)],Si.prototype,"hideContainer",void 0);_.S([_.Zv("#title-input"),_.p("design:type",Object)],Si.prototype,"nameInput",void 0);_.S([_.Zv("#handle-input"),_.p("design:type",Object)],Si.prototype,"handleInput",void 0);
_.S([_.q(),_.p("design:type",Boolean)],Si.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.S([_.q({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.QAR}),_.p("design:type",Object)],Si.prototype,"zeroStepErrorMessageEntity",void 0);_.S([_.R("data","data.isDefaultProfilePhoto","previewDataUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],Si.prototype,"photoThumbnail",null);
_.S([_.R("data","data.isDefaultProfilePhoto","photoThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],Si.prototype,"userSetPhotoThumbnailUrl",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Si.prototype,"hideProfilePhotoButtonLayer",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Si.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.S([_.eY("data","zeroStepErrorMessageEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Si.prototype,"dataChanged",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.descriptionInfo","zeroStepErrorMessageEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],Si.prototype,"description",null);_.S([_.a({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Si);
_.Y(Si,"ytd-channel-creation-dialog-renderer",function(){if(hjw!==void 0)return hjw;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return hjw=V},{mode:1});var VGV;var Ws=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;V.isDisabled=!1;return V};
_.v(Ws,_.E);Ws.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Ws.prototype.updateDisabled=function(){var V;this.isDisabled=this.isLoading||((V=this.handleInput)==null?void 0:V.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Ws.prototype.onSaveClick=function(){var V=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var D;((D=this.data)==null?void 0:D.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 f;if((f=V.data)==null?0:f.nextEndpoint){var n;V.ytComponentBehavior.resolveCommand((n=V.data)==null?void 0:n.nextEndpoint)}else V.isLoading=
!1,V.closeDialog()},
onServerError:function(){V.isLoading=!1;V.handleInput.validate();var f;V.errorMessage=(f=V.data)==null?void 0:f.errorMessage}}}))}};
Ws.prototype.closeDialog=function(){_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
Ws.prototype.updateDisabled=Ws.prototype.updateDisabled;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ws.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ws.prototype,"data",void 0);_.S([_.Zv("#handle-input"),_.p("design:type",Object)],Ws.prototype,"handleInput",void 0);_.S([_.KI("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ws.prototype,"updateDisabled",null);
_.S([_.a({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Ws);
_.Y(Ws,"ytd-channel-handle-edit-dialog-renderer",function(){if(VGV!==void 0)return VGV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VGV=V},{mode:1});var DhX;var pB=function(){return _.E.apply(this,arguments)||this};
_.v(pB,_.E);pB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],pB.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],pB);
_.Y(pB,"ytd-channel-switcher-footer-renderer",function(){if(DhX!==void 0)return DhX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return DhX=V},{mode:1});var fw0;var ndv;var LB=function(){return _.E.apply(this,arguments)||this};
_.v(LB,_.E);LB.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
LB.prototype.onIronChange=LB.prototype.onIronChange;_.S([_.q(),_.p("design:type",Object)],LB.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Function)],LB.prototype,"onDontAskAgainChanged",void 0);_.S([_.Zv("#checkbox"),_.p("design:type",Object)],LB.prototype,"checkbox",void 0);_.S([_.bU("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LB.prototype,"onIronChange",null);
_.S([_.a({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],LB);
_.Y(LB,"ytd-identity-prompt-footer-renderer",function(){if(ndv!==void 0)return ndv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ndv=V},{mode:1});var If=function(){var V=_.E.apply(this,arguments)||this;V.dontAskAgain=!1;V.showPopup=!1;V.boundDontAskAgainChanged=function(D){V.dontAskAgainChanged(D)};
V.boundOnAccountItemTap=function(D){V.onAccountItemTap(D)};
return V};
_.v(If,_.E);_.P=If.prototype;
_.P.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]]"}}}}}};
_.P.ready=function(){var V=this;_.Pt(this.hostElement).querySelector("#container").addEventListener("scroll",function(){V.ytRendererBehavior.markDirty()})};
_.P.dontAskAgainChanged=function(V){this.dontAskAgain=V};
_.P.onAccountItemTap=function(V){if(V){var D={};this.dontAskAgain&&(D={dont_ask_again:this.dontAskAgain});_.SL(V,D)}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.P.redirectOnlyAccount=function(V){V.sections&&V.sections.length>0&&(V=_.g(V.sections[0],_.RRP),(V==null?0:V.contents)&&(V==null?void 0:V.contents.length)<=1?(V=_.pZ(window.location.href),(V==null?0:V.next)&&_.viZ(V.next)?_.SL(V.next):_.SL("/")):this.showPopup=!0)};
If.prototype.dataChanged=If.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],If.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Object)],If.prototype,"dontAskAgain",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],If.prototype,"showPopup",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Object)],If.prototype,"boundDontAskAgainChanged",void 0);_.S([_.q({reflectToAttribute:!1}),_.p("design:type",Object)],If.prototype,"boundOnAccountItemTap",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],If.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],If);
_.Y(If,"ytd-channel-switcher-renderer",function(){if(fw0!==void 0)return fw0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return fw0=V},{mode:1});var tGw;var OV=function(){return _.E.apply(this,arguments)||this};
_.v(OV,_.E);_.IG.Object.defineProperties(OV.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.S([_.q(),_.p("design:type",Object)],OV.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],OV.prototype,"steps",null);_.S([_.a({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],OV);
_.Y(OV,"ytd-channel-transfer-stepper-renderer",function(){if(tGw!==void 0)return tGw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return tGw=V},{mode:1});var P1X;var x_=function(){var V=_.E.apply(this,arguments)||this;V.data=null;V.isError=!1;V.isLoading=!1;return V};
_.v(x_,_.E);_.P=x_.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.P.computeProfileName=function(V){return V?V.givenNameValue+" "+V.familyNameValue:""};
_.P.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)};
_.P.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)};
x_.prototype.onYtServiceRequestError=x_.prototype.onYtServiceRequestError;x_.prototype.onYtServiceRequestSent=x_.prototype.onYtServiceRequestSent;x_.prototype.dataChanged=x_.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],x_.prototype,"data",void 0);
_.S([_.q({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.p("design:type",String)],x_.prototype,"profileName",void 0);_.S([_.q(),_.p("design:type",Object)],x_.prototype,"isError",void 0);_.S([_.q(),_.p("design:type",Object)],x_.prototype,"isLoading",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x_.prototype,"dataChanged",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],x_.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],x_.prototype,"onYtServiceRequestError",null);_.S([_.a({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],x_);
_.Y(x_,"ytd-channel-warm-welcome-cont-renderer",function(){if(P1X!==void 0)return P1X;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return P1X=V},{mode:1});var odB;var MK=function(){var V=_.E.apply(this,arguments)||this;V.data=null;return V};
_.v(MK,_.E);MK.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],MK.prototype,"data",void 0);_.S([_.a({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],MK);
_.Y(MK,"ytd-channel-warm-welcome-renderer",function(){if(odB!==void 0)return odB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return odB=V},{mode:1});var J80;var hp=function(){return _.E.apply(this,arguments)||this};
_.v(hp,_.E);_.IG.Object.defineProperties(hp.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.authorThumbnail)||{}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hp.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],hp.prototype,"thumbnailDetails",null);_.S([_.a({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],hp);
_.Y(hp,"ytd-comment-preview-renderer",function(){if(J80!==void 0)return J80;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return J80=V},{mode:1});var r8w;var UV=function(){return _.E.apply(this,arguments)||this};
_.v(UV,_.E);UV.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.IG.Object.defineProperties(UV.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.submitButton}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UV.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],UV.prototype,"submitButton",null);_.S([_.a({is:"ytd-notice-renderer",disableElementRegistration:!0})],UV);
_.Y(UV,"ytd-notice-renderer",function(){if(r8w!==void 0)return r8w;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return r8w=V},{mode:1});var HaX;var VZ=function(){return _.E.apply(this,arguments)||this};
_.v(VZ,_.E);VZ.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VZ.prototype,"data",void 0);_.S([_.a({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],VZ);
_.Y(VZ,"ytd-preview-comment-dialog-content",function(){if(HaX!==void 0)return HaX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return HaX=V},{mode:1});var wdR;var Dz=function(){return _.E.apply(this,arguments)||this};
_.v(Dz,_.E);Dz.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Dz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Dz.prototype,"data",void 0);_.S([_.a({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Dz);
_.Y(Dz,"ytd-preview-comment-dialog-renderer",function(){if(wdR!==void 0)return wdR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return wdR=V},{mode:1});var Q1c;var T50=_.c("web_button_rework")&&_.EG("BUTTON_REWORK")||_.c("web_button_rework_with_live"),fs=function(){var V=_.E.apply(this,arguments)||this;V.closeLabel=_.Zl("CLOSE");V.selectedAmountIndex=1;V.privacyCheckboxValue=!1;V.useAmsterdamStyle=T50;V.amountPlaceholderIndex=-1;return V};
_.v(fs,_.E);_.P=fs.prototype;_.P.onAmountClick=function(V){this.selectedAmountIndex=_.Pt(this.hostElement).querySelector("#amounts").indexForElement(V.currentTarget)};
_.P.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.o4(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.P.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.o4(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.o4(this.hostElement,"yt-close-popup-action",[this.is]);var V;(V=_.hI())==null||V.getPlayerPromise().then(function(D){D.pauseVideo()})}};
_.P.donationCallback=function(V){V.success?(this.hostElement.hasAttribute("live-chat")&&V.response&&V.response.data&&V.response.data.actions&&_.o4(this.hostElement,"yt-live-chat-open-popup",[V.response.data.actions[0]]),_.o4(this.hostElement,"yt-close-popup-action",[this.is]),_.o4(this.hostElement,"yt-live-chat-close-buy-flow")):V.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(V.errorMessageRenderer)};
_.P.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Pt(this.hostElement).querySelector("#custom-amount-input").focus()};
_.P.updateConfirmationDialogTextWithAmount=function(V){var D=this.getConfirmDialogRuns();D&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(D),"text"],this.getFormattedAmount(V))};
_.P.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.P.getAmountPlaceholderIndex=function(V){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=V.findIndex(function(D){return D.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.P.getFormattedAmount=function(V){var D;return(new _.aW(4,((D=this.data)==null?void 0:D.currencyCode)||"")).format(V)};
_.P.isAmountValid=function(V){if(V==="")return!1;V=Number(V)*1E6;var D=this.get("minAmountMicros",this.data),f=this.get("maxAmountMicros",this.data);return D&&V<D||f&&V>f?!1:!0};
_.P.setInputError=function(){this.shouldShowValidationError?_.Pt(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Pt(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.P.setInitialCheckboxValue=function(){var V;this.privacyCheckboxValue=!((V=this.data)==null||!V.privacyCheckboxInitialState)};
_.P.updateCustomAmountInputFromBinding=function(V){this.customAmountInput=V.detail.value};
_.P.updatePrivacyCheckboxValueFromBinding=function(V){this.privacyCheckboxValue=V.detail.value};
_.IG.Object.defineProperties(fs.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var V=this,D,f;return((D=this.data)==null?void 0:(f=D.suggestedAmounts)==null?void 0:f.map(function(n,t){return{buttonRenderer:{style:V.selectedAmountIndex===t?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:n.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 V;return!((V=this.data)==null||!V.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 V=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(V&&this.amountMicros!==null)return Object.assign({},V,{ypcGetCartEndpoint:Object.assign({},V.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 V=this.get("confirmLargeAmount",this.data);if(V&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),V}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V=this.get("donateButton.buttonRenderer",this.data);if(V)return Object.assign({},V,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
fs.prototype.setInitialCheckboxValue=fs.prototype.setInitialCheckboxValue;fs.prototype.setInputError=fs.prototype.setInputError;fs.prototype.setFocusOnCustomAmountInput=fs.prototype.setFocusOnCustomAmountInput;_.S([_.u(vL3),_.p("design:type",Object)],fs.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fs.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],fs.prototype,"closeLabel",void 0);_.S([_.q(),_.p("design:type",Object)],fs.prototype,"selectedAmountIndex",void 0);_.S([_.q(),_.p("design:type",String)],fs.prototype,"customAmountInput",void 0);_.S([_.q(),_.p("design:type",Object)],fs.prototype,"privacyCheckboxValue",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],fs.prototype,"useAmsterdamStyle",void 0);_.S([_.KI("customAmount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fs.prototype,"setFocusOnCustomAmountInput",null);_.S([_.R("data","selectedAmountIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],fs.prototype,"suggestedAmountButtons",null);
_.S([_.R("data","selectedAmountIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fs.prototype,"isCustomAmountSelected",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fs.prototype,"showPrivacyCheckbox",null);_.S([_.R("data","selectedAmountIndex","customAmount"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"amountMicros",null);
_.S([_.R("isCustomAmountSelected","customAmountInput"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"customAmount",null);_.S([_.R("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fs.prototype,"shouldShowValidationError",null);_.S([_.R("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fs.prototype,"isDonateButtonEnabled",null);
_.S([_.R("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"donateCommand",null);_.S([_.R("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"donateCommandWithConfirmation",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"largeDonationThreshold",null);
_.S([_.R("customAmount","donateCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"confirmLargeAmountCommand",null);_.S([_.R("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.p("design:type",Object),_.p("design:paramtypes",[])],fs.prototype,"donateButtonRenderer",null);_.S([_.KI("shouldShowValidationError"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fs.prototype,"setInputError",null);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fs.prototype,"setInitialCheckboxValue",null);_.S([_.a({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],fs);
_.Y(fs,"ytd-donation-amount-picker-renderer",function(){if(Q1c!==void 0)return Q1c;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Q1c=V},{mode:1});var ba3;var ns=function(){return _.E.apply(this,arguments)||this};
_.v(ns,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.S([_.q({}),_.p("design:type",Object)],ns.prototype,"data",void 0);_.S([_.a({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],ns);
_.Y(ns,"ytd-donation-post-transaction-content",function(){if(ba3!==void 0)return ba3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ba3=V},{mode:1});var K1W;var tm=function(){return _.E.apply(this,arguments)||this};
_.v(tm,_.E);tm.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.S([_.q({}),_.p("design:type",Object)],tm.prototype,"data",void 0);_.S([_.a({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],tm);
_.Y(tm,"ytd-donation-post-transaction-renderer",function(){if(K1W!==void 0)return K1W;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return K1W=V},{mode:1});var y8c;var ZaR;var P0=function(){return _.E.apply(this,arguments)||this};
_.v(P0,_.E);P0.prototype.computeIsStreamingProvider=function(V){return!!V.isStreamingShelf};
P0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],P0.prototype,"data",void 0);_.S([_.q({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],P0.prototype,"isStreamingProvider",void 0);
_.S([_.a({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],P0);
_.Y(P0,"ytd-media-provider-renderer",function(){if(ZaR!==void 0)return ZaR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZaR=V},{mode:1});var j1Z;var oe=function(){return _.E.apply(this,arguments)||this};
_.v(oe,_.E);oe.prototype.observeLightsourcePalette=function(){var V,D=(V=this.data)==null?void 0:V.vibrantsourceColorPaletteData;D&&_.Na(this.hostElement,D)};
oe.prototype.observeLightsourcePalette=oe.prototype.observeLightsourcePalette;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oe.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],oe.prototype,"data",void 0);
_.S([_.KI("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oe.prototype,"observeLightsourcePalette",null);_.S([_.a({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],oe);
_.Y(oe,"ytd-streaming-pop-up-dialog",function(){if(j1Z!==void 0)return j1Z;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return j1Z=V},{mode:1});var Jm=function(){return _.E.apply(this,arguments)||this};
_.v(Jm,_.E);Jm.prototype.onPopupOpened_=function(){var V;((V=this.data)==null?0:V.serviceEndpoint)&&_.DY().resolve(_.fH).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Jm.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Jm.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"}}}}};
Jm.prototype.onPopupOpened_=Jm.prototype.onPopupOpened_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.$D),_.p("design:type",Object)],Jm.prototype,"ytContinuationHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Jm.prototype,"data",void 0);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jm.prototype,"onPopupOpened_",null);_.S([_.a({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Jm);
_.Y(Jm,"ytd-brandconnect-popup-renderer",function(){if(y8c!==void 0)return y8c;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return y8c=V},{mode:1});var lwB;var r8=function(){return _.E.apply(this,arguments)||this};
_.v(r8,_.E);_.P=r8.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){for(var V=0;V<this.getOptionRenderers().length;V++)this.notifyPath("data.options."+V+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+V+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.P.updateSubmitButton=function(V){this.set("data.submitButton.buttonRenderer.isDisabled",!V)};
_.P.computeAlt=function(V){return _.LA(V)};
_.P.onDismissTap=function(){_.o4(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.getOptionRenderers=function(V){return(V=V||this.data)&&V.options?V.options.reduce(function(D,f){f.checkboxSurveyOptionRenderer&&D.push(f.checkboxSurveyOptionRenderer);return D},[]):[]};
_.P.onOptionChange=function(V){var D=this,f=!1;if(V.detail.checked)for(var n=this.getOptionRenderers().find(function(Q){return Q.value===V.detail.value}),t=this.getOptionRenderers(),J=0;J<t.length;J++){var H=t[J];
this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");H.checked&&((n==null?0:n.isExclusiveOption)?!H.isExclusiveOption:H.isExclusiveOption)?this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1):H.checked&&(f=!0)}else f=this.getOptionRenderers().some(function(Q,T){D.notifyPath("data.options."+T+".checkboxSurveyOptionRenderer.checked");return Q.checked});
this.updateSubmitButton(f)};
_.P.onSubmitTap=function(){var V=this.getOptionRenderers().filter(function(J){return J.checked});
if(V.length!==0){var D=V.map(function(J){return J.responseEndpoint});
V=[];for(var f=1;f<D.length;f++){var n=void 0,t=(n=_.g(D[f],_.uY))==null?void 0:n.feedbackToken;t&&V.push(t)}D=[D[0]];V.length&&D.push({extra_feedback_tokens:V});_.HA(this.hostElement,D);_.o4(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);V=this.data&&this.data.submitActions||[];if(_.c("kevlar_command_handler_migration_killswitch"))_.wN(this.hostElement,V,this.hostElement);else for(V=_.r(V),D=V.next();!D.done;D=V.next())this.ytComponentBehavior.resolveCommand(D.value)}};
r8.prototype.onOptionChange=r8.prototype.onOptionChange;r8.prototype.dataChanged=r8.prototype.dataChanged;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],r8.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.S([_.u(itX),_.p("design:type",Object)],r8.prototype,"ytdHatsSurveyBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r8.prototype,"data",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r8.prototype,"dataChanged",null);
_.S([_.bU("ytd-checkbox-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],r8.prototype,"onOptionChange",null);_.S([_.a({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],r8);
_.Y(r8,"ytd-checkbox-survey-renderer",function(){if(lwB!==void 0)return lwB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lwB=V},{mode:1});var GCf;var e7J;var H0=function(){return _.E.apply(this,arguments)||this};
_.v(H0,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.S([_.u($CZ),_.p("design:type",Object)],H0.prototype,"ytdDismissalReasonBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],H0.prototype,"data",void 0);_.S([_.a({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],H0);
_.Y(H0,"ytd-dismissal-reason-text-renderer",function(){if(e7J!==void 0)return e7J;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return e7J=V},{mode:1});var c83;var w8=function(){return _.E.apply(this,arguments)||this};
_.v(w8,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.S([_.u($CZ),_.p("design:type",Object)],w8.prototype,"ytdDismissalReasonBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],w8.prototype,"data",void 0);_.S([_.a({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],w8);
_.Y(w8,"ytd-dismissal-reason-video-renderer",function(){if(c83!==void 0)return c83;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return c83=V},{mode:1});var QZ=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(QZ,_.E);_.P=QZ.prototype;_.P.created=function(){this.selectedFeedbackTokens=new Wh};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.P.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.P.onDismissalReasonSelected=function(V,D){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(D);this.hasReasonsSelected=!0};
_.P.onDismissalReasonDeselected=function(V,D){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(D);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.P.onCancelTap=function(){_.o4(this.hostElement,"yt-close-popup-action")};
_.P.onSubmitTap=function(){var V=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(V={feedback_tokens:V},_.DY().resolve(_.fH).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},V,{element:this.hostElement})}));_.o4(this.hostElement,"yt-close-popup-action")};
QZ.prototype.onDismissalReasonDeselected=QZ.prototype.onDismissalReasonDeselected;QZ.prototype.onDismissalReasonSelected=QZ.prototype.onDismissalReasonSelected;QZ.prototype.dataChanged=QZ.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QZ.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Boolean)],QZ.prototype,"hasReasonsSelected",void 0);_.S([_.q(),_.p("design:type",Wh)],QZ.prototype,"selectedFeedbackTokens",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],QZ.prototype,"darkerDarkTheme",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QZ.prototype,"dataChanged",null);
_.S([_.bU("yt-dismissal-reason-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],QZ.prototype,"onDismissalReasonSelected",null);_.S([_.bU("yt-dismissal-reason-deselected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],QZ.prototype,"onDismissalReasonDeselected",null);_.S([_.a({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],QZ);
_.Y(QZ,"ytd-dismissal-follow-up-renderer",function(){if(GCf!==void 0)return GCf;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return GCf=V},{mode:1});var F1c;var Tx=function(){return _.E.apply(this,arguments)||this};
_.v(Tx,_.E);_.P=Tx.prototype;_.P.onCheckedChange=function(){this.multiselect||_.PA(this.hostElement,"yt-feedback-single-select-changed");_.Pt(this.hostElement).querySelector("#freeform").focus();_.PA(this.hostElement,"yt-refit")};
_.P.showTextBox=function(V,D){return V&&D};
_.P.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))};
_.P.updateDataCheckedFromBinding=function(V){this.set("data.checked",V.detail.value)};
_.P.updateDataResultTextFromBinding=function(V){this.set("data.resultText",V.detail.value)};
Tx.prototype.dataChanged=Tx.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Tx.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],Tx.prototype,"multiselect",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tx.prototype,"dataChanged",null);
_.S([_.a({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Tx);
_.Y(Tx,"ytd-feedback-option-renderer",function(){if(F1c!==void 0)return F1c;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return F1c=V},{mode:1});var gdw;var bD=function(){return _.E.apply(this,arguments)||this};
_.v(bD,_.E);bD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
bD.prototype.onSingleSelectCheckedChanged=function(V){V=_.x7(V);for(var D=0;D<this.data.options.length;D++)if(V.data!==_.g(this.data.options[D],YCc)){var f="data.options."+D+".feedbackOptionRenderer.checked";this.notifyPath(f);this.set(f,!1)}};
bD.prototype.onSingleSelectCheckedChanged=bD.prototype.onSingleSelectCheckedChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],bD.prototype,"data",void 0);
_.S([_.bU("yt-feedback-single-select-changed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bD.prototype,"onSingleSelectCheckedChanged",null);_.S([_.a({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],bD);
_.Y(bD,"ytd-feedback-question-renderer",function(){if(gdw!==void 0)return gdw;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gdw=V},{mode:1});var vdJ;var Ks=function(){return _.E.apply(this,arguments)||this};
_.v(Ks,_.E);Ks.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Ks.prototype.getSelectedFeedbackResults=function(){for(var V={},D=0;D<this.data.questions.length;D++)for(var f=_.g(this.data.questions[D],a8f),n=0;n<f.options.length;n++){var t=_.g(f.options[n],YCc);t&&t.checked&&(V[t.optionKey]=t.resultText)}return V};
Ks.prototype.onKeyUp=function(){var V=this;_.JI(_.dm,function(){_.PA(V.hostElement,"yt-refit")});
_.dm.start()};
Ks.prototype.submitSurvey=function(){var V=this.getSelectedFeedbackResults();Object.keys(V).length>0&&this.data.submitFeedbackEndpoint&&(V={survey_results:V,is_feedback_token_unencrypted:!0},_.DY().resolve(_.fH).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},V,{element:this.hostElement})}))};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ks.prototype,"data",void 0);_.S([_.a({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Ks);
_.Y(Ks,"ytd-feedback-survey-renderer",function(){if(vdJ!==void 0)return vdJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vdJ=V},{mode:1});var kCX;var s1R;var yZ=function(){return _.E.apply(this,arguments)||this};
_.v(yZ,_.E);yZ.prototype.computeAlt=function(V){return _.LA(V)};
yZ.prototype.submitResponse=function(){var V,D;(V=this.data)!=null&&V.feedbackToken&&((D=this.data)==null?void 0:D.nextStageIndex)!==void 0&&(_.JR(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.JR(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
yZ.prototype.onClick=function(){this.submitResponse()};
yZ.prototype.onClick=yZ.prototype.onClick;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],yZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],yZ.prototype,"vertical",void 0);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yZ.prototype,"onClick",null);
_.S([_.a({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yZ);
_.Y(yZ,"ytd-single-select-answer-option-renderer",function(){if(s1R!==void 0)return s1R;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return s1R=V},{mode:1});var B53;var Zz=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return V};
_.v(Zz,_.E);Zz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Zz.prototype.dataChanged=function(){var V,D;this.vertical=((D=(V=this.data)==null?void 0:V.answerOrientation)!=null?D:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Zz.prototype.submitFeedback=function(V){var D;((D=this.data)==null?0:D.responseEndpoint)&&V&&_.HA(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[V]}])};
Zz.prototype.dataChanged=Zz.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Zz.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],Zz.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Zz.prototype,"vertical",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Zz.prototype,"darkerDarkTheme",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zz.prototype,"dataChanged",null);_.S([_.a({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Zz);
_.Y(Zz,"ytd-single-select-question-renderer",function(){if(B53!==void 0)return B53;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return B53=V},{mode:1});var jx=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return V};
_.v(jx,_.E);_.P=jx.prototype;_.P.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"}}}};
_.P.dataChanged=function(){this.jumpToStage(0)};
_.P.jumpToStage=function(V){var D,f;if((D=this.data)==null?0:(f=D.stages)==null?0:f[V])this.currentStage=this.data.stages[V],this.refitAfterRender()};
_.P.computeAlt=function(V){return _.LA(V)};
_.P.computeSimpleMessage=function(V){var D;return(D=_.g(V,SCW))==null?void 0:D.messageText};
_.P.computeHideDismiss=function(V){var D;return(D=_.g(V,Z93))==null?void 0:D.hideParentDismissButton};
_.P.onDismissTap=function(){_.o4(this.hostElement,"yt-close-popup-action");_.g(this.currentStage,SCW)||this.data.dismissalEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.refitAfterRender=function(){var V=this;_.pO(this,function(){_.PA(V.hostElement,"yt-refit")})};
jx.prototype.dataChanged=jx.prototype.dataChanged;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],jx.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],jx.prototype,"ytActionHandlerBehavior",void 0);
_.S([_.u(itX),_.p("design:type",Object)],jx.prototype,"ytdHatsSurveyBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],jx.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],jx.prototype,"currentStage",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jx.prototype,"dataChanged",null);_.S([_.a({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],jx);
_.Y(jx,"ytd-multi-stage-survey-renderer",function(){if(kCX!==void 0)return kCX;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return kCX=V},{mode:1});var dhB;var lD=function(){return _.E.apply(this,arguments)||this};
_.v(lD,_.E);lD.prototype.computeAlt=function(V){return _.LA(V)};
lD.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.DY().resolve(_.fH).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.o4(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.WLR(!1)))};
lD.prototype.onTap=function(){this.vertical&&this.submitResponse()};
lD.prototype.onTap=lD.prototype.onTap;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],lD.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],lD.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],lD.prototype,"vertical",void 0);
_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lD.prototype,"onTap",null);_.S([_.a({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],lD);
_.Y(lD,"ytd-single-option-survey-option-renderer",function(){if(dhB!==void 0)return dhB;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return dhB=V},{mode:1});var uRR;var Gx=function(){return _.E.apply(this,arguments)||this};
_.v(Gx,_.E);_.P=Gx.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){var V,D;this.vertical=(((V=this.data)==null?void 0:(D=V.surveyOrientation)==null?void 0:D.type)||"HORIZONTAL")==="VERTICAL"};
_.P.computeAlt=function(V){return _.LA(V)};
_.P.onDismissTap=function(){_.o4(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.DY().resolve(_.fH).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.WLR(!1))};
Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Gx.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(itX),_.p("design:type",Object)],Gx.prototype,"ytdHatsSurveyBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Gx.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Gx.prototype,"vertical",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gx.prototype,"dataChanged",null);_.S([_.a({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Gx);
_.Y(Gx,"ytd-single-option-survey-renderer",function(){if(uRR!==void 0)return uRR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return uRR=V},{mode:1});var N5q;var ex=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(ex,_.E);ex.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ex.prototype.onDismissTap=function(){_.o4(this.hostElement,"yt-close-popup-action")};
ex.prototype.onNavigate=function(){_.o4(this.hostElement,"yt-close-popup-action")};
ex.prototype.onNavigate=ex.prototype.onNavigate;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],ex.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ex.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ex.prototype,"darkerDarkTheme",void 0);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ex.prototype,"onNavigate",null);_.S([_.a({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ex);
_.Y(ex,"ytd-survey-follow-up-renderer",function(){if(N5q!==void 0)return N5q;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return N5q=V},{mode:1});var mhc;var z7W;var R7W;var c0=function(){var V=_.E.apply(this,arguments)||this;V.polymer2="Element"in Polymer;return V};
_.v(c0,_.E);_.P=c0.prototype;_.P.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.P.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.P.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.P.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("minutes-changed",this.minutes))};
_.P.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("seconds-changed",this.seconds))};
_.P.updateMinutesFromBinding=function(V){this.minutes=V.detail.value};
_.P.updateSecondsFromBinding=function(V){this.seconds=V.detail.value};
c0.prototype.secondsChangedForBinding=c0.prototype.secondsChangedForBinding;c0.prototype.minutesChangedForBinding=c0.prototype.minutesChangedForBinding;c0.prototype.secondsChanged=c0.prototype.secondsChanged;_.S([_.q(),_.p("design:type",String)],c0.prototype,"minutes",void 0);_.S([_.q(),_.p("design:type",String)],c0.prototype,"seconds",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],c0.prototype,"polymer2",void 0);
_.S([_.Zv("#seconds"),_.p("design:type",Object)],c0.prototype,"secondsEl",void 0);_.S([_.KI("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],c0.prototype,"secondsChanged",null);_.S([_.KI("minutes"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],c0.prototype,"minutesChangedForBinding",null);
_.S([_.KI("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],c0.prototype,"secondsChangedForBinding",null);_.S([_.zy({is:"yt-timestamp-input",disableElementRegistration:!0})],c0);
_.Y(c0,"yt-timestamp-input",function(){if(R7W===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;z7W===void 0&&(z7W=document.createElement("template"));var n=z7W;f.call(D,n.content.cloneNode(!0),V.content.firstChild);R7W=V}V=R7W;return V},{mode:2});var Fn=function(){return _.E.apply(this,arguments)||this};
_.v(Fn,_.E);_.P=Fn.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18296_scroller.dialogElement=this.hostElement.parentNode};
_.P.dataChanged=function(){var V=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Uo().getPlayerPromise().then(function(D){D=D.getCurrentTime();V.minutes=Math.floor(D/60).toString();V.seconds=(Math.floor(D)%60).toString()})};
_.P.onTapSubmit=function(V){V.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(V={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(V.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(V.minutes=this.minutes,V.seconds=this.seconds),_.DY().resolve(_.fH).resolveCommand(this.serviceEndpoint,{form:Object.assign({},V,{element:this.hostElement})}))};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.P.onYtServiceRequestCompleted=function(V,D){D=D.actions;if(Array.isArray(D))for(var f=0,n=D.length;f<n;f++)_.g(D[f],_.Fb)&&(V.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(D[f]))};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.P.toggleSubmitButton=function(V){this.set("submitButton.isDisabled",!V)};
_.P.handleInput=function(){var V=this.issueType,D=this.affiliation,f=this.minutes,n=this.seconds;f=!this.showTimestamp||!!f&&!!n;this.toggleSubmitButton(!!this.descriptionText&&!!V&&!!D&&f)};
_.P.computeServiceEndpoint=function(V){return this.get("submitButton.buttonRenderer.serviceEndpoint",V)};
_.P.computeSubmitButton=function(V){(V=this.get("submitButton.buttonRenderer",V))&&(V=Object.assign({},V,{serviceEndpoint:void 0}));return V};
_.P.computeShowTimestamp=function(V){return!!V};
_.P.onValueChangedForIssueType=function(V){this.issueType=V.detail.value};
_.P.onValueChangedForAffiliation=function(V){this.affiliation=V.detail.value};
_.P.updateDescriptionTextFromBinding=function(V){this.descriptionText=V.detail.value};
_.P.updateFullNameTextFromBinding=function(V){this.fullNameText=V.detail.value};
_.P.updateMinutesFromBinding=function(V){this.minutes=V.detail.value};
_.P.updateSecondsFromBinding=function(V){this.seconds=V.detail.value};
Fn.prototype.handleInput=Fn.prototype.handleInput;Fn.prototype.onYtServiceRequestError=Fn.prototype.onYtServiceRequestError;Fn.prototype.onYtServiceRequestCompleted=Fn.prototype.onYtServiceRequestCompleted;Fn.prototype.onYtServiceRequestSent=Fn.prototype.onYtServiceRequestSent;Fn.prototype.dataChanged=Fn.prototype.dataChanged;_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],Fn.prototype,"ytOpenPopupBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.S([_.Zv("#scroller"),_.p("design:type",Object)],Fn.prototype,"JSC$18296_scroller",void 0);_.S([_.Zv("#description"),_.p("design:type",HTMLInputElement)],Fn.prototype,"description",void 0);_.S([_.Zv("#full-name"),_.p("design:type",Object)],Fn.prototype,"fullName",void 0);_.S([_.q(),_.p("design:type",Object)],Fn.prototype,"data",void 0);
_.S([_.q({computed:"computeShowTimestamp(data.timestampLabel)"}),_.p("design:type",Boolean)],Fn.prototype,"showTimestamp",void 0);_.S([_.q({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.p("design:type",Object)],Fn.prototype,"serviceEndpoint",void 0);_.S([_.q({computed:"computeSubmitButton(data)"}),_.p("design:type",Object)],Fn.prototype,"submitButton",void 0);_.S([_.q(),_.p("design:type",String)],Fn.prototype,"descriptionText",void 0);
_.S([_.q(),_.p("design:type",Number)],Fn.prototype,"issueType",void 0);_.S([_.q(),_.p("design:type",Number)],Fn.prototype,"affiliation",void 0);_.S([_.q(),_.p("design:type",String)],Fn.prototype,"fullNameText",void 0);_.S([_.q(),_.p("design:type",String)],Fn.prototype,"minutes",void 0);_.S([_.q(),_.p("design:type",String)],Fn.prototype,"seconds",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fn.prototype,"dataChanged",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],Fn.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],Fn.prototype,"onYtServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Fn.prototype,"onYtServiceRequestError",null);_.S([_.KI("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Fn.prototype,"handleInput",null);_.S([_.a({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Fn);
_.Y(Fn,"ytd-legal-report-details-form-renderer",function(){if(mhc!==void 0)return mhc;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return mhc=V},{mode:1});var C1B;var g8=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return V};
_.v(g8,_.E);g8.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
g8.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var V=this.formRenderer.getForm();V&&this.data.submitEndpoint&&(_.DY().resolve(_.fH).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},V,{element:this.hostElement})}),_.o4(this.hostElement,"yt-close-popup-action"))}};
g8.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.o4(this.hostElement,"yt-close-popup-action"))};
g8.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
g8.prototype.onPopupClosed=g8.prototype.onPopupClosed;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],g8.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);
_.S([_.Zv("yt-form-renderer"),_.p("design:type",Object)],g8.prototype,"formRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],g8.prototype,"data",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],g8.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-form-popup-content",disableElementRegistration:!0})],g8);
_.Y(g8,"ytd-form-popup-content",function(){if(C1B!==void 0)return C1B;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return C1B=V},{mode:1});var q9R;var v0=function(){return _.E.apply(this,arguments)||this};
_.v(v0,_.E);v0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
v0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v0.prototype.onPopupOpened=function(){_.PA(this.hostElement,"yt-invalidate-popup-tabbables")};
v0.prototype.onYtServiceRequestCompleted=function(V,D){D.data&&D.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.PA(this.hostElement,"yt-invalidate-popup-tabbables"))};
v0.prototype.onYtServiceRequestCompleted=v0.prototype.onYtServiceRequestCompleted;v0.prototype.onPopupOpened=v0.prototype.onPopupOpened;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],v0.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],v0.prototype,"data",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],v0.prototype,"onPopupOpened",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],v0.prototype,"onYtServiceRequestCompleted",null);_.S([_.a({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],v0);
_.Y(v0,"ytd-form-popup-renderer",function(){if(q9R!==void 0)return q9R;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return q9R=V},{mode:1});var Xdf;var kQ=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;return V};
_.v(kQ,_.E);_.P=kQ.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");pwq(this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.isLoading=!0};
_.P.onYtServiceRequestCompleted=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.P.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.wN(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.P.closePopupHandler=function(){this.fireOnCloseActions()};
_.P.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var V=this.get("data.headerImage.thumbnails");V&&(V=_.nT(V,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+V+")")}};
_.P.onYtNavigate=function(V){(V=_.x7(V))&&V.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
kQ.prototype.onYtNavigate=kQ.prototype.onYtNavigate;kQ.prototype.onHeaderImageChanged=kQ.prototype.onHeaderImageChanged;kQ.prototype.closePopupHandler=kQ.prototype.closePopupHandler;kQ.prototype.onYtServiceRequestCompleted=kQ.prototype.onYtServiceRequestCompleted;kQ.prototype.onYtServiceRequestSent=kQ.prototype.onYtServiceRequestSent;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],kQ.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kQ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],kQ.prototype,"isLoading",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLDivElement)],kQ.prototype,"header",void 0);_.S([_.Zv("#confirm-button"),_.p("design:type",_.lz)],kQ.prototype,"confirmButton",void 0);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],kQ.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],kQ.prototype,"onYtServiceRequestCompleted",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],kQ.prototype,"closePopupHandler",null);_.S([_.KI("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kQ.prototype,"onHeaderImageChanged",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],kQ.prototype,"onYtNavigate",null);
_.S([_.a({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],kQ);
_.Y(kQ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Xdf!==void 0)return Xdf;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Xdf=V},{mode:1});var EdZ;var sv=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;return V};
_.v(sv,_.E);_.P=sv.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);pwq(this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.P.onYtServiceRequestError=function(V){_.Uw(this.hostElement,V.detail.error.message)};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.o4(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.P.onDataChanged=function(){this.isLoading=!1;var V=this.get("data.headerImage.thumbnails");V&&(V=_.nT(V,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+V+")");V=_.Ni();var D=_.u8(),f=this.get("data.trackingParams");f&&D&&V&&_.Y8(V,D,_.gs(f))};
_.IG.Object.defineProperties(sv.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
sv.prototype.onDataChanged=sv.prototype.onDataChanged;sv.prototype.onDomChange=sv.prototype.onDomChange;sv.prototype.onYtServiceRequestError=sv.prototype.onYtServiceRequestError;sv.prototype.onYtServiceRequestCompleted=sv.prototype.onYtServiceRequestCompleted;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],sv.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],sv.prototype,"isLoading",void 0);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sv.prototype,"hasDescription",null);_.S([_.Zv("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],sv.prototype,"scrollable",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],sv.prototype,"header",void 0);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sv.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sv.prototype,"onYtServiceRequestError",null);
_.S([_.bU("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sv.prototype,"onDomChange",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sv.prototype,"onDataChanged",null);_.S([_.a({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],sv);
_.Y(sv,"ytd-gaming-account-link-setting-renderer",function(){if(EdZ!==void 0)return EdZ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return EdZ=V},{mode:1});var A8W;var aw3;var B0=function(){var V=_.E.apply(this,arguments)||this;V.isHeader=!1;V.getEndpointForm=function(){return Slv(V.data)};
return V};
_.v(B0,_.E);_.P=B0.prototype;_.P.triggerHintActions=function(){var V=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var D=_.JR(V.hostElement,"yt-get-opened-popups-action");!(D&&D.length===1?D[0]:[]).some(function(f){f=f.openPopupAction.popupType;return f==="SURVEY"||f==="MEALBAR"||f==="HINT"})&&V.data.hintActions&&V.guideOpened&&(_.wN(V.hostElement,V.data.hintActions,V.hostElement),V.data.hintActions=void 0)})};
_.P.getBadgeIconType=function(V){return V&&V.liveBroadcasting?"live":null};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(V){if(this.data.serviceEndpoint){var D;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.g(this.data.serviceEndpoint,_.gU))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):iAc(this.data.serviceEndpoint,this);V.preventDefault()}else this.data.navigationEndpoint&&!_.It(_.Os(V),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.P.computeActive=function(V,D){if(!V)return!1;var f=V.navigationEndpoint;V=V.serviceEndpoint;if(!f&&!V||!D)return!1;if(f){V=(V=_.Zx(D))&&["subscriptions","filteredsubscriptions"].includes(V);if(_.g(f,_.jL)&&_.g(D,_.jL)&&!V){var n=_.g(f,_.jL).browseId;D=_.g(D,_.jL).browseId;return n!==void 0&&D!==void 0&&(n===D||n==="VLWL"&&D==="FEwatch_later"||n==="FEwatch_later"&&D==="VLWL")}var t;f=(t=_.g(f.commandMetadata,_.he))==null?void 0:t.url;D=(n=_.g(D.commandMetadata,_.he))==null?void 0:n.url;return!(!f||
!D||f!==D&&f!==_.Qx(D))}return this.isActiveShortsTab(V,D)};
_.P.isActiveShortsTab=function(V,D){D=!!_.g(D,_.gU)||!!_.g(D,_.mJ);return(!!_.g(V,_.gU)||!!_.g(V,_.mJ))&&D};
_.P.computeIsPrimary=function(V){return!!V};
_.IG.Object.defineProperties(B0.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 V=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&V)return V}}});
B0.prototype.onTap=B0.prototype.onTap;B0.prototype.onUp=B0.prototype.onUp;B0.prototype.onDown=B0.prototype.onDown;B0.prototype.triggerHintActions=B0.prototype.triggerHintActions;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],B0.prototype,"componentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],B0.prototype,"rendererBehavior",void 0);_.S([_.u(_.xm.YtTaskEmitterBehavior),_.p("design:type",Object)],B0.prototype,"taskEmitterBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],B0.prototype,"activeEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],B0.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],B0.prototype,"guideOpened",void 0);_.S([_.q(),_.p("design:type",String)],B0.prototype,"type",void 0);_.S([_.Zv("yt-interaction"),_.p("design:type",Object)],B0.prototype,"interaction",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],B0.prototype,"isHeader",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data","activeEndpoint"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],B0.prototype,"active",null);_.S([_.q({reflectToAttribute:!0}),_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],B0.prototype,"isPrimary",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.count","data.presentationStyle","data.badges.*"),_.p("design:type",String),_.p("design:paramtypes",[])],B0.prototype,"lineEndStyle",null);
_.S([_.R("lineEndStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],B0.prototype,"ariaLabel",null);_.S([_.KI("data.hintActions","guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B0.prototype,"triggerHintActions",null);_.S([_.bU("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B0.prototype,"onDown",null);
_.S([_.bU("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],B0.prototype,"onUp",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],B0.prototype,"onTap",null);_.S([_.a({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],B0);
_.Y(B0,"ytd-guide-entry-renderer",function(){if(aw3!==void 0)return aw3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return aw3=V},{mode:1});var d8=function(){var V=_.E.apply(this,arguments)||this;V.userToggled=!1;return V};
_.v(d8,_.E);_.P=d8.prototype;_.P.getItemsPath=function(){return"data.expandableItems"};
_.P.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.P.onExpanderItemTapped=function(V){var D=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.c("kevlar_guide_expandable_items_killswitch")&&_.pO(this,function(){_.Lh(D.expandableItems)});
V.preventDefault()};
_.P.onCollapserItemTapped=function(V){var D=this;this._setExpanded(!1);this.userToggled=!0;V.preventDefault();this.expandableItems&&!_.c("kevlar_guide_collapsible_items_killswitch")&&_.pO(this,function(){_.ph(D.hostElement)})};
_.P.observeActiveEndpoint=function(){for(var V=this.activeEndpoint,D=this.data,f=this.expandableItems.children,n=0,t=f.length;n<t;n++)f[n].activeEndpoint=V;D&&D.autoExpandCommand&&V&&!this.userToggled&&(f=this.data.autoExpandCommand,D=!(!_.g(f,_.jL)||!_.g(V,_.jL)||_.g(f,_.jL).browseId!==_.g(V,_.jL).browseId),V=this.get("commandMetadata.webCommandMetadata.url",V),f=this.get("commandMetadata.webCommandMetadata.url",f),D=D||!!(V&&f&&V.includes(f)),this._setExpanded(D),D&&this.ytLazyListBehavior.fillRemainingListItems())};
d8.prototype.observeActiveEndpoint=d8.prototype.observeActiveEndpoint;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],d8.prototype,"ytLazyListBehavior",void 0);_.S([_.Zv("#expandable-items"),_.p("design:type",HTMLElement)],d8.prototype,"expandableItems",void 0);
_.S([_.q(),_.p("design:type",Object)],d8.prototype,"data",void 0);_.S([_.q({readOnly:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],d8.prototype,"expanded",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],d8.prototype,"initialCount",void 0);_.S([_.q(),_.p("design:type",Object)],d8.prototype,"activeEndpoint",void 0);_.S([_.KI("data","activeEndpoint","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d8.prototype,"observeActiveEndpoint",null);
_.S([_.a({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],d8);
_.Y(d8,"ytd-guide-collapsible-entry-renderer",function(){if(A8W!==void 0)return A8W;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return A8W=V},{mode:_.J2("kevlar_poly_si_batch_j079")?1:2});var Y93;var $hV;var uD=function(){var V=_.E.apply(this,arguments)||this;V.allVideosCount=0;V.renderGuideEntry=!1;return V};
_.v(uD,_.E);uD.prototype.observeRenderEntry=function(){var V;this.renderGuideEntry=!((V=this.data)==null||!V.alwaysShow)||!!this.allVideosCount};
uD.prototype.observeRenderEntry=uD.prototype.observeRenderEntry;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],uD.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uD.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],uD.prototype,"activeEndpoint",void 0);_.S([_.q({selector:_.kNY}),_.p("design:type",Object)],uD.prototype,"allVideosCount",void 0);
_.S([_.q(),_.p("design:type",Object)],uD.prototype,"renderGuideEntry",void 0);_.S([_.eY("allVideosCount","data.alwaysShow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uD.prototype,"observeRenderEntry",null);_.S([_.a({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],uD);
_.Y(uD,"ytd-guide-downloads-entry-renderer",function(){if($hV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);$hV=V}V=$hV;return V},{mode:1});var N$=function(){var V=_.E.apply(this,arguments)||this;V.youtab=_.c("web_enable_youtab");V.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return V};
_.v(N$,_.E);_.P=N$.prototype;_.P.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]]"}}}}}};
_.P.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var V=this.sectionItems.children,D=0,f=V.length;D<f;D++)V[D].activeEndpoint=this.activeEndpoint}};
_.P.handleAddToGuideSectionAction=function(V){var D=_.g(V,oBR);if(D&&this.data&&(V=D.items,D=D.handlerData,V&&D&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(D)>-1)){D=0;for(var f=V.length;D<f;D++)V[D].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,V[D])}};
_.P.handleRemoveFromGuideSectionAction=function(V){var D=_.g(V,JTX);D&&this.data&&(V=D.guideEntryId,D=D.handlerData,V&&D&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(D)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(V,this.data.sectionItems),this.removeFromCollapsedSection(V,this.data.sectionItems)))};
_.P.removeFromExpandedSection=function(V,D){V=this.getEntryIndexMatchingId(V,D);V!==-1&&this.splice("data.sectionItems",V,1)};
_.P.removeFromCollapsedSection=function(V,D){var f=D.findIndex(function(n){return!!_.g(n,gBR)});
f&&f!==-1&&D[f]&&_.g(D[f],gBR)&&(D=_.g(D[f],gBR).expandableItems)&&(V=this.getEntryIndexMatchingId(V,D),V!==-1&&this.splice("data.sectionItems."+f+".guideCollapsibleEntryRenderer.expandableItems",V,1))};
_.P.getEntryIndexMatchingId=function(V,D){var f=this;return D.findIndex(function(n){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===V})};
N$.prototype.activeEndpointChanged=N$.prototype.activeEndpointChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],N$.prototype,"actionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#section-items"),_.p("design:type",HTMLDivElement)],N$.prototype,"sectionItems",void 0);
_.S([_.Zv("#header-entry"),_.p("design:type",Object)],N$.prototype,"headerEntry",void 0);_.S([_.q(),_.p("design:type",Object)],N$.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],N$.prototype,"activeEndpoint",void 0);_.S([_.q(),_.p("design:type",Object)],N$.prototype,"youtab",void 0);_.S([_.KI("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N$.prototype,"activeEndpointChanged",null);
_.S([_.a({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],N$);
_.Y(N$,"ytd-guide-collapsible-section-entry-renderer",function(){if(Y93===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);Y93=V}V=Y93;return V},{mode:1});var iaR;var S9J;var md=function(){var V=_.E.apply(this,arguments)||this;V.modernTypography=_.c("web_modern_typography");V.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 V};
_.v(md,_.E);_.P=md.prototype;
_.P.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}}}}};
_.P.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var V=_.JR(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);V&&V.length===1&&V[0]&&_.JR(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.P.handleResetChannelUnreadCountCommand=function(V){var D;(V=(D=_.g(V,H9q))==null?void 0:D.channelId)&&this.data&&this.data.items&&(D=this.getPathToEntryMatchingId(V))&&(this.set(D+".guideEntryRenderer.count",0),this.set(D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.handleResetSubscriptionsUnreadDotCommand=function(V){var D,f=(D=_.g(V,wcq))==null?void 0:D.targetId,n;f&&(n=this.data)!=null&&n.items&&(V=this.data.items.findIndex(function(t){var J;return((J=t.guideEntryRenderer)==null?void 0:J.targetId)===f}),V<0||this.set("data.items."+V+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.getPathToEntryMatchingId=function(V){if(this.data&&this.data.items){var D=this.getEntryIndexMatchingId(V,this.data.items);if(D>-1)return"data.items."+D;for(var f=0;f<this.data.items.length;f++)if(D=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[f]))if(D=this.getEntryIndexMatchingId(V,D),D>-1)return"data.items."+f+".guideCollapsibleEntryRenderer.expandableItems."+D}};
_.P.handleAddToGuideSectionAction=function(V){var D=this;if(_.g(V,oBR)){var f=_.g(V,oBR).items;V=_.g(V,oBR).handlerData;var n,t;if(f&&V&&((n=this.data)==null?void 0:(t=n.handlerDatas)==null?void 0:t.indexOf(V))>-1){f=f.filter(function(H){return(H=D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H))&&!D.isGuideItemPresent(H)});
var J;if(V==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((J=this.data)==null?0:J.items)&&(n=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),n>-1)){this.splice.apply(this,["data.items",n+1,0].concat(_.sz(f)));return}this.unshift.apply(this,["data.items"].concat(_.sz(f)))}}};
_.P.isGuideItemPresent=function(V){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(V,this.data.items)!==-1)return!0;var D=this.data.items.find(function(f){return!!f.guideCollapsibleEntryRenderer});
if((D==null?0:D.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(V,D.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.P.getEntryIndexMatchingId=function(V,D){var f=this;return D.findIndex(function(n){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===V})};
_.P.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(V,D){var f=this;return D.findIndex(function(n){return f.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===V})};
_.P.handleRemoveFromGuideSectionAction=function(V){if(_.g(V,JTX)){var D=_.g(V,JTX).guideEntryId;V=_.g(V,JTX).handlerData;var f,n;D&&V&&((f=this.data)==null?void 0:(n=f.handlerDatas)==null?void 0:n.indexOf(V))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(D,this.data.items),this.removeFromCollapsedSection(D,this.data.items))}};
_.P.removeFromExpandedSection=function(V,D){V=this.getEntryIndexMatchingId(V,D);V!==-1&&this.splice("data.items",V,1)};
_.P.removeFromCollapsedSection=function(V,D){var f=D.findIndex(function(n){return!!n.guideCollapsibleEntryRenderer});
f!==-1&&(D=D[f].guideCollapsibleEntryRenderer.expandableItems)&&(V=this.getEntryIndexMatchingId(V,D),V!==-1&&this.splice("data.items."+f+".guideCollapsibleEntryRenderer.expandableItems",V,1))};
_.P.activeEndpointChanged=function(){for(var V=_.Pt(this.hostElement).querySelector("#items").children,D=0,f=V.length;D<f;D++)V[D].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.guideOpenedChanged=function(){for(var V=_.Pt(this.hostElement).querySelector("#items").children,D=0,f=V.length;D<f;D++)V[D].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
md.prototype.guideOpenedChanged=md.prototype.guideOpenedChanged;md.prototype.activeEndpointChanged=md.prototype.activeEndpointChanged;md.prototype.persistentGuideChanged=md.prototype.persistentGuideChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],md.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],md.prototype,"ytLazyListBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],md.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],md.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],md.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],md.prototype,"modernTypography",void 0);_.S([_.q(),_.p("design:type",String)],md.prototype,"type",void 0);_.S([_.q({value:20}),_.p("design:type",Number)],md.prototype,"initialCount",void 0);_.S([_.q({value:10}),_.p("design:type",Number)],md.prototype,"targetFramerate",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],md.prototype,"autoFill",void 0);_.S([_.q({value:50}),_.p("design:type",Number)],md.prototype,"renderDelay",void 0);
_.S([_.KI("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],md.prototype,"persistentGuideChanged",null);_.S([_.eY("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],md.prototype,"activeEndpointChanged",null);_.S([_.eY("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],md.prototype,"guideOpenedChanged",null);
_.S([_.a({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],md);
_.Y(md,"ytd-guide-section-renderer",function(){if(S9J!==void 0)return S9J;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return S9J=V},{mode:_.J2("kevlar_poly_si_batch_j073")?1:2});var W1Z;var zx=function(){return _.E.apply(this,arguments)||this};
_.v(zx,_.E);_.IG.Object.defineProperties(zx.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zx.prototype,"rendererBehaviors",void 0);_.S([_.q(),_.p("design:type",Object)],zx.prototype,"data",void 0);_.S([_.q(),_.R("data.signInButton.buttonRenderer.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],zx.prototype,"alignByText",null);_.S([_.a({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],zx);
_.Y(zx,"ytd-guide-signin-promo-renderer",function(){if(W1Z===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);W1Z=V}V=W1Z;return V},{mode:1});var Re=function(){var V=_.E.apply(this,arguments)||this;V.showFooter=!1;return V};
_.v(Re,_.E);Re.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}}}}};
Re.prototype.attached=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1){D=_.DY().resolve(_.Vx(_.Rx));if(!D)return f.jumpTo(0);D.setGuideData(V.hostElement);return _.b(f,0,3)}V.ytLazyListBehavior.initialCount=2;return f.return()})};
Re.prototype.onMouseExit=function(){_.c("web_guide_hover_expansion")&&_.JR(this.hostElement,"yt-guide-mouseleaved",[])};
Re.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Re.prototype.dataChanged=Re.prototype.dataChanged;Re.prototype.onMouseExit=Re.prototype.onMouseExit;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Re.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.x$.YtLazyListBehavior),_.p("design:type",Object)],Re.prototype,"ytLazyListBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Re.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Re.prototype,"showFooter",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],Re.prototype,"autoFill",void 0);_.S([_.bU("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Re.prototype,"onMouseExit",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Re.prototype,"dataChanged",null);_.S([_.a({is:"ytd-guide-renderer",disableElementRegistration:!0})],Re);
_.Y(Re,"ytd-guide-renderer",function(){if(iaR!==void 0)return iaR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return iaR=V},{mode:_.J2("kevlar_poly_si_batch_j073")?1:2});var pdc;var Cs=function(){var V=_.E.apply(this,arguments)||this;V.systemIcons=_.c("kevlar_system_icons");V.frostedGlass=_.c("web_frosted_glass");V.getEndpointForm=function(){return Slv(V.data)};
return V};
_.v(Cs,_.E);_.P=Cs.prototype;_.P.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.P.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.LA(this.data.formattedTitle))};
_.P.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(V){if(this.data.serviceEndpoint){var D;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.g(this.data.serviceEndpoint,_.gU))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):iAc(this.data.serviceEndpoint,this);V.preventDefault()}else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.It(_.Os(V),this.hostElement,["A".toString()])&&_.PA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.P.computeActive=function(V,D){if(!V)return!1;var f=V.navigationEndpoint;V=V.serviceEndpoint;if(!f&&!V||!D)return!1;if(f){V=_.g(f,_.jL);var n=_.g(D,_.jL);if(V&&n)return V.browseId===n.browseId&&V.params===n.params;var t;f=(t=_.g(f.commandMetadata,_.he))==null?void 0:t.url;var J;D=(J=_.g(D.commandMetadata,_.he))==null?void 0:J.url;return!(!f||!D||f!==D&&f!==_.Qx(D))}return this.isActiveShortsTab(V,D)};
_.P.isActiveShortsTab=function(V,D){D=!!_.g(D,_.gU)||!!_.g(D,_.mJ);return(!!_.g(V,_.gU)||!!_.g(V,_.mJ))&&D};
_.P.computeTitle=function(V,D){return D?"":_.LA(V)};
_.IG.Object.defineProperties(Cs.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Cs.prototype.onTap=Cs.prototype.onTap;Cs.prototype.onUp=Cs.prototype.onUp;Cs.prototype.onDown=Cs.prototype.onDown;Cs.prototype.onActiveStateChange=Cs.prototype.onActiveStateChange;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Cs.prototype,"ytComponentBehavior",void 0);
_.S([_.u(_.dE),_.p("design:type",Object)],Cs.prototype,"ironButtonState",void 0);_.S([_.q(),_.p("design:type",Object)],Cs.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Cs.prototype,"activeEndpoint",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],Cs.prototype,"noLabels",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.p("design:type",Boolean)],Cs.prototype,"isActive",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cs.prototype,"systemIcons",void 0);_.S([_.Zv("yt-interaction"),_.p("design:type",Object)],Cs.prototype,"interaction",void 0);_.S([_.R("isActive"),_.p("design:type",Object),_.p("design:paramtypes",[])],Cs.prototype,"ariaSelected",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cs.prototype,"frostedGlass",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cs.prototype,"dataChanged",null);_.S([_.KI("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cs.prototype,"onActiveStateChange",null);_.S([_.bU("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cs.prototype,"onDown",null);
_.S([_.bU("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cs.prototype,"onUp",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Cs.prototype,"onTap",null);_.S([_.a({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Cs);
_.Y(Cs,"ytd-mini-guide-entry-renderer",function(){if(pdc!==void 0)return pdc;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return pdc=V},{mode:_.J2("kevlar_poly_si_batch_j063")?1:2});var L1J;var q$=function(){var V=_.E.apply(this,arguments)||this;V.allVideosCount=0;V.noLabels=_.c("kevlar_mini_guide_no_labels");V.frostedGlass=_.c("web_frosted_glass");return V};
_.v(q$,_.E);_.P=q$.prototype;_.P.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.P.onMouseEnter=function(){_.c("web_guide_hover_expansion")&&_.JR(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.P.visibleChanged=function(){if(this.visible&&!this.data){var V=_.DY().resolve(_.Vx(_.Rx));V&&V.setGuideData(this.hostElement)}};
_.P.dataChanged=function(){var V=[],D;if((D=this.data)!=null&&D.items){D=_.r(this.data.items);for(var f=D.next();!f.done;f=D.next()){f=f.value;var n=void 0;if((n=f.guideSectionRenderer)==null?0:n.items)for(n=void 0,f=_.r((n=f.guideSectionRenderer)==null?void 0:n.items),n=f.next();!n.done;n=f.next())if(n=n.value,n.guideEntryRenderer)n=n.guideEntryRenderer,n.isPrimary&&V.push({guideEntryRenderer:n});else if(n.guideCollapsibleSectionEntryRenderer){var t=void 0;((t=_.g(n.guideCollapsibleSectionEntryRenderer.headerEntry,
Ld))==null?0:t.isPrimary)&&V.push({guideEntryRenderer:_.g(n.guideCollapsibleSectionEntryRenderer.headerEntry,Ld)});if(n=n.guideCollapsibleSectionEntryRenderer.sectionItems)for(n=_.r(n),t=n.next();!t.done;t=n.next()){var J=t.value;t=_.g(J,vBf);var H=void 0;((H=_.g(J,Ld))==null?0:H.isPrimary)?V.push({guideEntryRenderer:_.g(J,Ld)}):t&&(J=void 0,_.g((J=t)==null?void 0:J.entryRenderer,Ld)&&(t.alwaysShow||this.allVideosCount)&&V.push({guideEntryRenderer:_.g(t.entryRenderer,Ld)}))}}}}this.miniGuideItems=
V};
_.P.activeEndpointChanged=function(){for(var V=this.items.children,D=0;D<V.length;D++)V[D].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
q$.prototype.activeEndpointChanged=q$.prototype.activeEndpointChanged;q$.prototype.dataChanged=q$.prototype.dataChanged;q$.prototype.visibleChanged=q$.prototype.visibleChanged;q$.prototype.onMouseEnter=q$.prototype.onMouseEnter;_.S([_.u(_.dh),_.p("design:type",Object)],q$.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],q$.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],q$.prototype,"ytComponentBehavior",void 0);_.S([_.Zv("#items"),_.p("design:type",Object)],q$.prototype,"items",void 0);_.S([_.q(),_.p("design:type",Object)],q$.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Boolean)],q$.prototype,"visible",void 0);_.S([_.q(),_.p("design:type",Object)],q$.prototype,"miniGuideItems",void 0);_.S([_.q({selector:_.kNY}),_.p("design:type",Object)],q$.prototype,"allVideosCount",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],q$.prototype,"noLabels",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],q$.prototype,"frostedGlass",void 0);
_.S([_.bU("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q$.prototype,"onMouseEnter",null);_.S([_.eY("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q$.prototype,"visibleChanged",null);_.S([_.eY("data","allVideosCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q$.prototype,"dataChanged",null);
_.S([_.eY("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q$.prototype,"activeEndpointChanged",null);_.S([_.a({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],q$);
_.Y(q$,"ytd-mini-guide-renderer",function(){if(L1J===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);L1J=V}V=L1J;return V},{mode:1});var IwX;var Oaw=/^[\x00-\x7F]+$/,Xn=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(Xn,_.E);_.IG.Object.defineProperties(Xn.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var V,D=_.LA((V=this.data)==null?void 0:V.handle);if(D)return _.pA("@"+D)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var V=_.LA(this.displayHandle),D,f=_.LA((D=this.data)==null?void 0:D.handleUrl);if(V&&f)return _.pA(f+V)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var V=_.LA(this.displayHandle);if(V&&!Oaw.test(V)){var D;return(D=this.data)==null?void 0:D.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var V=_.LA(this.displayHandleUrl),D,f=_.LA((D=this.data)==null?void 0:D.urlInfoText);if(V&&f)return _.pA(f+" "+V)}}});
_.S([_.q(),_.p("design:type",Object)],Xn.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xn.prototype,"displayHandle",null);_.S([_.R("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xn.prototype,"displayHandleUrl",null);_.S([_.R("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xn.prototype,"warningText",null);
_.S([_.R("displayHandleUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xn.prototype,"urlInfoTextWithUrl",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Xn.prototype,"darkerDarkTheme",void 0);_.S([_.a({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Xn);
_.Y(Xn,"ytd-handles-claiming-confirm-dialog-content",function(){if(IwX!==void 0)return IwX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return IwX=V},{mode:1});var xhJ;var Ev=function(){var V=_.E.apply(this,arguments)||this;V.okButtonOverride={style:"mono",type:"outline",size:"M"};return V};
_.v(Ev,_.E);Ev.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ev.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ev.prototype,"okButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],Ev.prototype,"data",void 0);_.S([_.a({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ev);
_.Y(Ev,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(xhJ!==void 0)return xhJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return xhJ=V},{mode:1});var MG3;var h7f=/^[\x00-\x7F]+$/,Am=function(){var V=_.E.apply(this,arguments)||this;V.isLoading=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(Am,_.E);Am.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var V;this.selectedHandle=(V=this.handleInput)==null?void 0:V.value;this.onSelectedHandleChanged(this.selectedHandle);_.JR(this.hostElement,"yt-refit-popups-action")}};
_.IG.Object.defineProperties(Am.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pA("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pA(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!h7f.test(this.selectedHandle)){var V;return(V=this.data)==null?void 0:V.warningText}}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Am.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Am.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],Am.prototype,"selectedHandle",void 0);_.S([_.q(),_.p("design:type",Object)],Am.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Function)],Am.prototype,"onSelectedHandleChanged",void 0);_.S([_.Zv("#channel-handle-input"),_.p("design:type",Object)],Am.prototype,"handleInput",void 0);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"handleUrlPrefix",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"displayHandle",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"displayHandleUrl",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Am.prototype,"warningText",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Am.prototype,"darkerDarkTheme",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.S([_.a({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Am);
_.Y(Am,"ytd-handles-claiming-edit-dialog-content",function(){if(MG3!==void 0)return MG3;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return MG3=V},{mode:1});var Uh0;var ae=function(){var V=_.E.apply(this,arguments)||this;V.actionButtonOverride={style:"mono",type:"filled",size:"M"};V.cancelButtonOverride={style:"mono",type:"text",size:"M"};V.selectButtonDisabled=!1;V.isLoading=!1;V.hasSelectedHandleEventListener=!1;V.selectedHandleChanged=function(D){V.selectedHandle=D};
return V};
_.v(ae,_.E);_.P=ae.prototype;_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.P.onDataChanged=function(){var V,D;this.selectedHandle=(D=_.g((V=this.data)==null?void 0:V.inputField,DTf))==null?void 0:D.handle};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.selectedHandle="";_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var V=this;if(this.selectedHandle!==void 0){var D;((D=this.data)==null?void 0:D.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.Uw(V.hostElement,_.LA(n.newHandleUpdateStatus.errorMessage)),
V.isLoading=!1;else{var t;if((t=V.data)==null?0:t.onChannelUpdateSuccess){f=V.data.onChannelUpdateSuccess;var J,H;if(n=(J=_.g(f,_.Fb))==null?void 0:(H=J.popup)==null?void 0:H.handlesClaimingConfirmDialogRenderer)n.handle=_.pA(V.selectedHandle);V.ytComponentBehavior.resolveCommand(f);_.o4(V.hostElement,"yt-close-popup-action",[V.is])}else V.isLoading=!1}},
onServerError:function(){var f;V.content&&((f=V.content)==null?0:f.handleInput)&&V.content.handleInput.validate();V.isLoading=!1;_.Uw(V.hostElement,_.Zl("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ae.prototype.onDataChanged=ae.prototype.onDataChanged;ae.prototype.onSelectedHandleChanged=ae.prototype.onSelectedHandleChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ae.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"actionButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"cancelButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",String)],ae.prototype,"selectedHandle",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"selectButtonDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"hasSelectedHandleEventListener",void 0);_.S([_.q(),_.p("design:type",Object)],ae.prototype,"handleInput",void 0);
_.S([_.KI("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ae.prototype,"onSelectedHandleChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ae.prototype,"onDataChanged",null);_.S([_.Zv("ytd-handles-claiming-edit-dialog-content"),_.p("design:type",Object)],ae.prototype,"content",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.S([_.a({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ae);
_.Y(ae,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Uh0!==void 0)return Uh0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Uh0=V},{mode:1});var VZZ;var YQ=function(){return _.E.apply(this,arguments)||this};
_.v(YQ,_.E);_.IG.Object.defineProperties(YQ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.handle){var D;return _.pA("@"+_.LA((D=this.data)==null?void 0:D.handle))}}}});
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],YQ.prototype,"formattedHandle",null);_.S([_.q(),_.p("design:type",Object)],YQ.prototype,"data",void 0);_.S([_.a({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],YQ);
_.Y(YQ,"ytd-handles-claiming-radio-option-renderer",function(){if(VZZ!==void 0)return VZZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VZZ=V},{mode:1});var D6X;var fSR=/^[\x00-\x7F]+$/,$Q=function(){var V=_.E.apply(this,arguments)||this;V.initialRadioIndex="-1";V.isLoading=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.maybeSubmitFeedback=function(){V.feedbackSurveyRenderer.submitSurvey()};
return V};
_.v($Q,_.E);$Q.prototype.updateSelectedHandleIndexFromBinding=function(V){this.selectedRadioIndex=+V.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(V)};
$Q.prototype.selectedHandleChanged=function(V){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(V)}};
_.IG.Object.defineProperties($Q.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var V;return this.ytRendererBehavior.getSimpleString((V=this.data)==null?void 0:V.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pA("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pA(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!fSR.test(this.selectedHandle)){var V;return(V=this.data)==null?void 0:V.warningText}}}});
_.S([_.q(),_.p("design:type",Object)],$Q.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],$Q.prototype,"initialRadioIndex",void 0);_.S([_.q(),_.p("design:type",Number)],$Q.prototype,"selectedRadioIndex",void 0);_.S([_.q(),_.p("design:type",String)],$Q.prototype,"selectedHandle",void 0);_.S([_.q(),_.p("design:type",Object)],$Q.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Function)],$Q.prototype,"onSelectedHandleChanged",void 0);
_.S([_.q(),_.p("design:type",Function)],$Q.prototype,"onSelectedRadioIndexChanged",void 0);_.S([_.Zv("#channel-handle-input"),_.p("design:type",Object)],$Q.prototype,"handleInput",void 0);_.S([_.Zv("ytd-feedback-survey-renderer"),_.p("design:type",Object)],$Q.prototype,"feedbackSurveyRenderer",void 0);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],$Q.prototype,"radioButtonLength",null);
_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"handleUrlPrefix",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"displayHandle",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"displayHandleUrl",null);_.S([_.R("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"warningText",null);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$Q.prototype,"darkerDarkTheme",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.S([_.a({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],$Q);
_.Y($Q,"ytd-handles-claiming-select-dialog-content",function(){if(D6X!==void 0)return D6X;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return D6X=V},{mode:1});var nD0;var iD=function(){var V=_.E.apply(this,arguments)||this;V.actionButtonOverride={style:"mono",type:"filled",size:"M"};V.cancelButtonOverride={style:"mono",type:"text",size:"M"};V.initialRadioIndex="-1";V.selectButtonDisabled=!1;V.isLoading=!1;V.selectedRadioIndexChanged=function(D){V.selectedRadioIndex=Number(D.detail.value)};
V.selectedHandleChanged=function(D){V.selectedHandle=D.detail.value};
V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(iD,_.E);_.P=iD.prototype;_.P.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.P.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.JR(this.hostElement,"yt-refit-popups-action")};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var V=this;if(this.selectedHandle!==void 0){var D;((D=this.data)==null?void 0:D.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.Uw(V.hostElement,_.LA(n.newHandleUpdateStatus.errorMessage)),
V.isLoading=!1;else{var t;if((t=V.data)==null?0:t.onChannelUpdateSuccess){f=V.data.onChannelUpdateSuccess;n=_.g(f,_.Fb);var J;if(n==null?0:(J=n.popup)==null?0:J.handlesClaimingConfirmDialogRenderer)n.popup.handlesClaimingConfirmDialogRenderer.handle=_.pA(V.selectedHandle);V.ytComponentBehavior.resolveCommand(f);_.o4(V.hostElement,"yt-close-popup-action",[V.is])}else V.isLoading=!1}},
onServerError:function(){if(V.selectedRadioIndex===V.radioButtonLength){var f;V.content&&((f=V.content)==null?0:f.handleInput)&&V.content.handleInput.validate()}V.isLoading=!1;_.Uw(V.hostElement,_.Zl("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var V,D;this.selectedHandle=(V=this.content)==null?void 0:(D=V.handleInput)==null?void 0:D.value}else this.selectedRadioIndex>=0&&((V=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(V==null?void 0:V.handle):this.selectedHandle=void 0)};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.P.getRadioItem=function(V){if(this.radioButtonLength>V&&V>=0)return _.g(this.data.radioButton[V],jI0)};
_.IG.Object.defineProperties(iD.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.radioButton)||[]).length}}});
iD.prototype.onSelectedHandleChanged=iD.prototype.onSelectedHandleChanged;iD.prototype.onSelectedHandleIndexChanged=iD.prototype.onSelectedHandleIndexChanged;iD.prototype.onDataChanged=iD.prototype.onDataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],iD.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],iD.prototype,"actionButtonOverride",void 0);_.S([_.q(),_.p("design:type",Object)],iD.prototype,"cancelButtonOverride",void 0);
_.S([_.q(),_.p("design:type",Object)],iD.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],iD.prototype,"initialRadioIndex",void 0);_.S([_.q(),_.p("design:type",Number)],iD.prototype,"selectedRadioIndex",void 0);_.S([_.q(),_.p("design:type",String)],iD.prototype,"selectedHandle",void 0);_.S([_.q(),_.p("design:type",Object)],iD.prototype,"selectButtonDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],iD.prototype,"isLoading",void 0);
_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],iD.prototype,"radioButtonLength",null);_.S([_.Zv("ytd-handles-claiming-select-dialog-content"),_.p("design:type",Object)],iD.prototype,"content",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iD.prototype,"onDataChanged",null);
_.S([_.KI("selectedRadioIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iD.prototype,"onSelectedHandleIndexChanged",null);_.S([_.KI("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iD.prototype,"onSelectedHandleChanged",null);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],iD.prototype,"darkerDarkTheme",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.S([_.a({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],iD);
_.Y(iD,"ytd-handles-claiming-select-dialog-renderer",function(){if(nD0!==void 0)return nD0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return nD0=V},{mode:1});var tZv;var PqV;var Sx=function(){return _.E.apply(this,arguments)||this};
_.v(Sx,_.E);Sx.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Sx.prototype,"data",void 0);_.S([_.a({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Sx);
_.Y(Sx,"ytd-hotkey-dialog-section-option-renderer",function(){if(PqV!==void 0)return PqV;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return PqV=V},{mode:1});var oDJ;var W0=function(){return _.E.apply(this,arguments)||this};
_.v(W0,_.E);W0.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],W0.prototype,"data",void 0);_.S([_.a({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],W0);
_.Y(W0,"ytd-hotkey-dialog-section-renderer",function(){if(oDJ!==void 0)return oDJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return oDJ=V},{mode:1});var ps=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(ps,_.E);ps.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ps.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],ps.prototype,"darkerDarkTheme",void 0);_.S([_.a({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ps);
_.Y(ps,"ytd-hotkey-dialog-content",function(){if(tZv!==void 0)return tZv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return tZv=V},{mode:1});var Jt0;var Ls=function(){return _.E.apply(this,arguments)||this};
_.v(Ls,_.E);Ls.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var V=document.querySelector("ytd-hotkey-dialog-content #scrollable");V&&(V.dialogElement=this.hostElement.parentElement)};
Ls.prototype.onCloseTap=function(){_.o4(this.hostElement,"yt-close-popup-action")};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ls.prototype,"data",void 0);_.S([_.a({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ls);
_.Y(Ls,"ytd-hotkey-dialog-renderer",function(){if(Jt0!==void 0)return Jt0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Jt0=V},{mode:1});var rtW;var Ie=function(){return _.E.apply(this,arguments)||this};
_.v(Ie,_.E);Ie.prototype.onYtServiceRequestError=function(){if(this.blocked){var V;var D=(V=this.data)==null?void 0:V.defaultServiceEndpoint}else{var f;D=(f=this.data)==null?void 0:f.toggledServiceEndpoint}var n;(D=(n=_.g(D,_.CGU))==null?void 0:n.onFailureAction)&&this.ytComponentBehavior.resolveCommand(D);this.updateBlockState(!this.blocked)};
Ie.prototype.onYtToggleButton=function(V){this.updateBlockState(V.detail.toggled)};
Ie.prototype.updateBlockState=function(V){if(V!==this.blocked){var D=this.blockedEntityKey;D&&this.ytdReduxBehavior.dispatch(_.y1("blockStateEntity",D,{key:D,blocked:V}));this.set("data.isToggled",V)}};
_.IG.Object.defineProperties(Ie.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)}}});
Ie.prototype.onYtToggleButton=Ie.prototype.onYtToggleButton;Ie.prototype.onYtServiceRequestError=Ie.prototype.onYtServiceRequestError;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ie.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Ie.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ie.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ie.prototype,"blockedEntityKey",void 0);
_.S([_.q({selectorArgs:["blockedEntityKey"],selector:function(V,D){return _.wg(V.entities,"blockStateEntity",D)}}),
_.p("design:type",Object)],Ie.prototype,"blockStateEntity",void 0);_.S([_.R("data","blockStateEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ie.prototype,"blocked",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ie.prototype,"onYtServiceRequestError",null);
_.S([_.bU("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ie.prototype,"onYtToggleButton",null);_.S([_.a({is:"ytd-block-button",disableElementRegistration:!0})],Ie);
_.Y(Ie,"ytd-block-button",function(){if(rtW!==void 0)return rtW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return rtW=V},
{mode:1});var HvR;var wGR;var Ov=function(){return _.E.apply(this,arguments)||this};
_.v(Ov,_.E);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Ov.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ov.prototype,"data",void 0);_.S([_.a({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Ov);
_.Y(Ov,"ytd-kids-blocklist-picker-item-renderer",function(){if(wGR!==void 0)return wGR;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return wGR=V},{mode:1});var xQ=function(){return _.E.apply(this,arguments)||this};
_.v(xQ,_.E);xQ.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xQ.prototype,"data",void 0);_.S([_.a({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],xQ);
_.Y(xQ,"ytd-kids-blocklist-picker-content",function(){if(HvR!==void 0)return HvR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return HvR=
V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var QD3;var M$=function(){var V=_.E.apply(this,arguments)||this;V.hasAnyRequestSucceeded=!1;V.hasAnyRequestFailed=!1;V.numPendingRequests=0;return V};
_.v(M$,_.E);_.P=M$.prototype;_.P.attached=function(){this.hostElement.setAttribute("dialog","")};
_.P.onDoneButtonTap=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.P.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.P.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.P.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.P.onPopupClosed=function(V){var D,f;if(((D=V.detail)==null?void 0:(f=D.popup)==null?void 0:f.is)==="tp-yt-paper-dialog"){var n;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((n=this.data)==null?0:n.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.M_(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
M$.prototype.onPopupClosed=M$.prototype.onPopupClosed;M$.prototype.onYtServiceRequestError=M$.prototype.onYtServiceRequestError;M$.prototype.onYtServiceRequestCompleted=M$.prototype.onYtServiceRequestCompleted;M$.prototype.onYtServiceRequestSent=M$.prototype.onYtServiceRequestSent;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],M$.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],M$.prototype,"data",void 0);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M$.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M$.prototype,"onYtServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M$.prototype,"onYtServiceRequestError",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],M$.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],M$);
_.Y(M$,"ytd-kids-blocklist-picker-renderer",function(){if(QD3!==void 0)return QD3;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return QD3=V},{mode:1});var Tbo;var bv0;var hm=function(){return _.E.apply(this,arguments)||this};
_.v(hm,_.E);hm.prototype.setTip=function(V){var D=this;this.data&&(this.tip=oLq(tHV.getInstance(),V,this.data),_.pO(this,function(){_.PA(D.hostElement,"yt-refit")}))};
hm.prototype.clearTip=function(){this.tip=void 0};
hm.prototype.computeHidden=function(V){return!V};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hm.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.p("design:type",Boolean)],hm.prototype,"hidden",void 0);_.S([_.q(),_.p("design:type",Object)],hm.prototype,"tip",void 0);_.S([_.a({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],hm);
_.Y(hm,"ytd-menu-popup-tip-renderer",function(){if(bv0!==void 0)return bv0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);
return bv0=V},{mode:1});var KyR;var Uv=function(){var V=_.E.apply(this,arguments)||this;V.useIcons=!1;V.systemIcons=_.c("kevlar_system_icons");V.useListItemStyles=_.c("web_list_item_style_for_menu_items");return V};
_.v(Uv,_.E);_.P=Uv.prototype;_.P.onFocus=function(){var V;(V=_.Pt(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.P.onTap=function(){var V=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(V&&_.g(V,_.Tm))this.componentBehavior.resolveCommand(V),this.updateToggledStateInEntity();else if(V){this.componentBehavior.resolveCommand(V)||_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}});var D;((D=_.g(V,_.K6))==null?void 0:D.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.P.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.P.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.P.updateToggledStateInEntity=function(){var V=this.data.toggleMenuServiceItemEntityKey,D=!this.data.isToggled;V&&this.ytdReduxBehavior.dispatch(_.y1("toggleMenuServiceItemEntity",V,{key:V,isToggled:D}))};
_.P.computeIcon=function(V,D,f){return(V=V?f:D)&&V.iconType?_.Qa(V.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.isIconActive=function(V){return!_.c("toggle_menu_active_icon_killswitch")&&V};
_.IG.Object.defineProperties(Uv.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?0:V.isToggled)?(D=this.data)==null?void 0:D.toggledText:(f=this.data)==null?void 0:f.defaultText}}});
Uv.prototype.toggledStateEntityChanged=Uv.prototype.toggledStateEntityChanged;Uv.prototype.onYtServiceRequestCompleted=Uv.prototype.onYtServiceRequestCompleted;Uv.prototype.onTap=Uv.prototype.onTap;Uv.prototype.onFocus=Uv.prototype.onFocus;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Uv.prototype,"componentBehavior",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],Uv.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Uv.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Uv.prototype,"useIcons",void 0);_.S([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],Uv.prototype,"icon",void 0);
_.S([_.q({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(V,D){return _.wg(V.entities,"toggleMenuServiceItemEntity",D)}}),
_.p("design:type",Object)],Uv.prototype,"toggleMenuServiceItemEntity",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Uv.prototype,"systemIcons",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Uv.prototype,"useListItemStyles",void 0);_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uv.prototype,"onFocus",null);
_.S([_.R("data.isToggled"),_.p("design:type",Object),_.p("design:paramtypes",[])],Uv.prototype,"toggleButtonText",null);_.S([_.bU("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uv.prototype,"onTap",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uv.prototype,"onYtServiceRequestCompleted",null);
_.S([_.KI("toggleMenuServiceItemEntity.isToggled","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Uv.prototype,"toggledStateEntityChanged",null);_.S([_.a({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Uv);
_.Y(Uv,"ytd-toggle-menu-service-item-renderer",function(){if(KyR!==void 0)return KyR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return KyR=V},{mode:1});var ytV;var VO=function(){return _.E.apply(this,arguments)||this};
_.v(VO,_.E);VO.prototype.onFocus=function(){var V;(V=_.Pt(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.IG.Object.defineProperties(VO.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.cS(this.data.iconUrl)}}});
VO.prototype.onFocus=VO.prototype.onFocus;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],VO.prototype,"rendererBehavior",void 0);_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],VO.prototype,"ytEndpointBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VO.prototype,"data",void 0);_.S([_.bU("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VO.prototype,"onFocus",null);
_.S([_.R("data.iconUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],VO.prototype,"imageSource",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],VO);
_.Y(VO,"ytd-menu-custom-icon-item-renderer",function(){if(ytV!==void 0)return ytV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ytV=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});_.fT(_.sH,"yt-list-item-view-model",{props:{data:_.WX,isMenuItem:_.WX,isCompact:_.WX,onTap:_.Dn,trailingAccessory:_.Dn,hideSelectionTextChevron:_.WX,disabled:_.WX,inPopup:_.WX,disableHorizontalPadding:_.WX,isOverlay:_.WX,isToggled:_.WX}});var DK=function(){var V=_.E.apply(this,arguments)||this;V.disableBackdropFilter=_.c("web_disable_backdrop_filter");return V};
_.v(DK,_.E);_.P=DK.prototype;
_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.P.computeAriaLabel=function(V){return V};
_.P.onPopupOpened=function(){this.items.selected=0;for(var V=_.r(_.Pt(this.items).children),D=V.next();!D.done;D=V.next())D.value.popupPositionTarget=this.positionTarget;if(V=this.popupTip||void 0)V.setTip(this.source||""),this.source=void 0;this.veData&&(V=_.Ni())&&_.SJ(V,[this.veData])};
_.P.onPopupClosed=function(){var V=this.popupTip||void 0;V&&V.clearTip()};
_.P.onIronActivate=function(V){this.shouldPersist(V)||_.o4(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(V=_.Ni())&&_.p6(V,this.veData)};
_.P.shouldPersist=function(V){var D,f;if(((D=V.detail)==null?void 0:D.selected)===void 0||(f=this.data)==null||!f.items)return!1;var n,t;return!((t=(n=this.data.items[V.detail.selected])==null?void 0:n.toggleMenuServiceItemRenderer)==null||!t.persistentOnMenuPopup)};
_.P.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(V){return V.menuNavigationItemRenderer?!!V.menuNavigationItemRenderer.icon:V.menuServiceItemRenderer?!!V.menuServiceItemRenderer.icon:V.menuConditionalServiceItemRenderer?!!V.menuConditionalServiceItemRenderer.icon:V.menuConditionalNavigationItemRenderer?!!V.menuConditionalNavigationItemRenderer.icon:V.toggleMenuServiceItemRenderer?!!V.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
DK.prototype.onPopupClosed=DK.prototype.onPopupClosed;DK.prototype.onPopupOpened=DK.prototype.onPopupOpened;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],DK.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],DK.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],DK.prototype,"veData",void 0);_.S([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.p("design:type",String)],DK.prototype,"ariaLabel",void 0);_.S([_.q({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],DK.prototype,"useIcons",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],DK.prototype,"disableBackdropFilter",void 0);_.S([_.Zv("#items"),_.p("design:type",Object)],DK.prototype,"items",void 0);_.S([_.Zv("ytd-menu-popup-tip-renderer"),_.p("design:type",Object)],DK.prototype,"popupTip",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DK.prototype,"onPopupOpened",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DK.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],DK);
_.Y(DK,"ytd-menu-popup-renderer",function(){if(Tbo!==void 0)return Tbo;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Tbo=V},{mode:1});var ZvV;var jDf=_.MA(function(V){V=_.Or(V,{icon:void 0});var D=V.data;V=V.icon;var f=function(){return D().iconBadgeText},n={},t=_.KT("yt-spec-icon-badge-shape",function(){a:switch(D().iconBadgeType){case "notification":var J="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":J="yt-spec-icon-badge-shape--type-cart";break a;default:J=""}return J},function(){a:switch(D().iconBadgeStyle){case "overlay":var J="yt-spec-icon-badge-shape--style-overlay";
break a;default:J=""}return J},(n["yt-spec-icon-badge-shape--text-size-small"]=function(){var J=f();
return!!((J==null?0:J.length)&&J.length>2)},n));
return _.K("yt-icon-badge-shape",null,_.K(_.e,{cond:V,then:function(J){return _.K("div",{class:t},_.K("div",{class:"yt-spec-icon-badge-shape__icon"},_.K(_.cj,{icon:J})),_.K(_.e,{cond:f,then:function(H){return _.K("div",{class:"yt-spec-icon-badge-shape__badge"},H)}}))}}))},"Bg");
jDf.idomCompat=!0;_.fT(jDf,"yt-icon-badge-shape",{props:{data:_.WX,icon:_.WX}});var fP=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};V.unseenCount=0;V.isOverlay=!1;return V};
_.v(fP,_.E);_.P=fP.prototype;_.P.attached=function(){var V=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(D){V.onServiceWorkerMessage(D)})};
_.P.onDataChanged=function(){this.isAttached&&!this.JSC$18427_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18427_lastData=this.data};
_.P.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.computeIcon=function(){var V,D;return(V=this.data)==null?void 0:(D=V.icon)==null?void 0:D.iconType};
_.P.onServiceWorkerMessage=function(V){V.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.P.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.g(this.data.updateUnseenCountEndpoint,_.K6)&&_.g(this.data.updateUnseenCountEndpoint,_.K6).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.P.handleUpdateNotificationsUnseenCountAction=function(V){var D=this;V=_.g(V,rT0);V!=null&&V.unseenCount&&V.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(V.unseenCount),_.dm.addLowPriorityJob(function(){D.data.updateUnseenCountEndpoint&&D.ytComponentBehavior.resolveCommand(D.data.updateUnseenCountEndpoint)},V.timeoutMs))};
_.P.onClick=function(){_.PA(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var V=_.JR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),D=this.data.menuRequest;V&&V.length===1&&V[0]?_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):D&&this.ytComponentBehavior.resolveCommand(D)};
_.P.handleTopbarMenuClosedAction=function(V){V==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.P.toggleIconState=function(V){this.iconButton&&(this.iconButton.pressed=V)};
_.P.sendUnseenCountRequest=function(V){var D=this;_.gq(_.dm,function(){D.ytComponentBehavior.resolveCommand(V)})};
_.P.updateCountUI=function(V){this.set("unseenCount",V<9?V:"9+")};
_.IG.Object.defineProperties(fP.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
fP.prototype.handleUpdateNotificationsUnseenCountAction=fP.prototype.handleUpdateNotificationsUnseenCountAction;fP.prototype.onDataChanged=fP.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.WO),_.p("design:type",Object)],fP.prototype,"ytdOpenPopupBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],fP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],fP.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],fP.prototype,"unseenCount",void 0);_.S([_.q(),_.p("design:type",Object)],fP.prototype,"isOverlay",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],fP.prototype,"showTooltips",void 0);_.S([_.Zv("yt-icon-button"),_.p("design:type",Object)],fP.prototype,"iconButton",void 0);
_.S([_.R("unseenCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],fP.prototype,"showNotificationCount",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fP.prototype,"onDataChanged",null);_.S([_.bU("yt-update-notifications-unseen-count-action"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],fP.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.S([_.a({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],fP);
_.Y(fP,"ytd-notification-topbar-button-renderer",function(){if(ZvV!==void 0)return ZvV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ZvV=V},{mode:_.J2("kevlar_poly_si_batch_j025")?1:2});var lSZ;var nP=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return V};
_.v(nP,_.E);nP.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}}}}}};
nP.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
nP.prototype.onDarkModeToggled=function(V){this.dark=V};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],nP.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nP.prototype,"data",void 0);_.S([_.q({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],nP.prototype,"dark",void 0);
_.S([_.a({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],nP);
_.Y(nP,"yt-pdg-buy-flow-header-renderer",function(){if(lSZ!==void 0)return lSZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return lSZ=V},{mode:1});var G13;var ekw;var tj=function(){var V=_.E.apply(this,arguments)||this;V.immediateValue=0;V.isDarkTheme=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(tj,_.E);_.P=tj.prototype;_.P.created=function(){_.qH.requestAvailability()};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.dataChanged=function(){var V=_.Pt(this.hostElement).querySelector("#color-slider");V.immediateValue&&this.updateSliderKnobAndGradientStyles(V.immediateValue);this.data.notches[0].knobColorArgb&&_.wI(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.aB(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.XB("HTML_DIR")==="rtl"&&_.Pt(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.P.onSliderImmediateChange=function(){var V=_.Pt(this.hostElement).querySelector("#color-slider");V.dragging&&(V.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(V.immediateValue),this.updateSliderKnobAndGradientStyles(V.immediateValue)),this.updateSliderAria())};
_.P.onSliderChange=function(){var V=_.Pt(this.hostElement).querySelector("#color-slider");V.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(V.immediateValue),this.updateSliderKnobAndGradientStyles(V.immediateValue));this.updateSliderAria()};
_.P.updateSliderAria=function(){var V=_.Pt(this.hostElement).querySelector("#color-slider"),D=_.Pt(this.hostElement).querySelector("#color-slider");D=_.LA(this.data.notches[D.immediateValue].tierValue);_.zL()&&_.PA(this.hostElement,"iron-announce",{text:D});V.setAttribute("aria-valuetext",D)};
_.P.updateSuperThanksSelectedTierEntity=function(V){if(V!==this.immediateValue){var D,f,n=this==null?void 0:(D=this.data)==null?void 0:(f=D.superThanksSelectedTierEntity)==null?void 0:f.key;n&&n.length>0&&this.ytdReduxBehavior.dispatch(_.y1("superThanksSelectedTierEntity",n,{key:n,index:V}))}};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.updateSliderKnobAndGradientStyles=function(V){this.immediateValue=V;V=this.data.notches[V];if(V==null?0:V.knobColorArgb)var D={"--ytd-pdg-color-slider-knob-color":_.aB(V.knobColorArgb)};(V==null?0:V.linearGradientCssStyle)&&D!==null&&(D=Object.assign({},D,{"--ytd-pdg-color-slider-active-color":V==null?void 0:V.linearGradientCssStyle}));D!==null&&_.wI(this.hostElement,D)};
tj.prototype.onSliderChange=tj.prototype.onSliderChange;tj.prototype.onSliderImmediateChange=tj.prototype.onSliderImmediateChange;tj.prototype.dataChanged=tj.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],tj.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],tj.prototype,"immediateValue",void 0);_.S([_.q(),_.p("design:type",Number)],tj.prototype,"maxMarkers",void 0);
_.S([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:V6R}),_.p("design:type",Object)],tj.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],tj.prototype,"isDarkTheme",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],tj.prototype,"ytdReduxBehavior",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tj.prototype,"dataChanged",null);
_.S([_.bU("immediate-value-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tj.prototype,"onSliderImmediateChange",null);_.S([_.bU("change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tj.prototype,"onSliderChange",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],tj);
_.Y(tj,"ytd-pdg-color-slider-renderer",function(){if(ekw!==void 0)return ekw;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ekw=V},{mode:1});var ctB;var FyV;var PP=null;
_.Bt({is:"ytd-comment-input",_template:function(){if(FyV!==void 0)return FyV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return FyV=V},
behaviors:[_.J8Y.YtHostElementBehavior,_.ja,_.EY.YtComponentBehavior,_.V8.YtRendererstamperBehavior,_.p3l.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 _.Ct}},
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",_.Ty(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;_.oa();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ty(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(V){V=V.detail;V=V.isCustomEmoji?V.shortcuts[0]:V.emojiId;var D=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(D,V);this.maybeUpdateTextDirection_();_.PA(this.hostElement,"input")},
getInputRange_:function(){var V=_.GS();if(V){V=V.getBrowserRangeObject();for(var D=V.commonAncestorContainer;D;){if(D===this.getEditableTextArea_())return V;D=D.parentNode}}V=this.getEditableTextArea_();V=_.NW(V,V.childNodes.length);V.select();return V.getBrowserRangeObject()},
insertTextWithEmojis_:function(V,D,f){(D=this.emojiManager.createDocumentFragment(D,!0,!1,f===void 0?!0:f))&&D.childNodes.length!==0&&(V.collapsed||V.deleteContents(),f=D.lastChild,V.insertNode(D),_.x1E(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var V=_.GS();if(V){var D=V.JSC$9384_getStartNode(),f=V.JSC$9384_getEndNode();if(WqX(D)&&WqX(f)){var n=V.JSC$9384_getStartOffset(),t;if(_.Qd&&D.nodeType===Node.ELEMENT_NODE&&(t=_.MRo(D)))_.NW(t,0).select();else{t=Ua(D)?D:_.qr(D,Ua);var J=Ua(f)?f:_.qr(f,Ua);if(t||J)if(V.isCollapsed()){if(D.nodeType===Node.TEXT_NODE){V=!0;n===D.length&&(V=!1);if(PP==="end"||PP==="right")V=!1;D=D.parentNode;V=[].concat(_.sz(D.parentNode.childNodes)).indexOf(D)+(V?0:1);_.NW(D.parentNode,V).select()}}else t?
t.previousSibling&&t.previousSibling.length>0?_.m4(f,V.JSC$9384_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(D=document.createTextNode("\u200b"),t.parentNode.insertBefore(D,t),_.m4(f,V.JSC$9384_getEndOffset(),D,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.m4(D,V.JSC$9384_getStartOffset(),J.nextSibling,1).select():(f=document.createTextNode("\u200b"),J.parentNode.insertBefore(f,J.nextSibling),_.m4(D,V.JSC$9384_getStartOffset(),f,f.length).select()));PP=null}}else PP=
null}else PP=null},
leftKeyPressed_:function(){PP="left"},
rightKeyPressed_:function(){PP="right"},
endKeyPressed_:function(){PP="end"},
maybeDeleteChip_:function(){var V=Msq(!0);if(V){var D=_.GS(),f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();_.vy(f,D,V,V.childNodes.length).select()}},
maybeBackspaceChip_:function(){var V=Msq(!1);if(V){var D=_.GS(),f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();_.vy(f,D,V,0).select()}},
maybeBackspaceChipWordMode_:function(V){var D=_.GS();if(D.isCollapsed()){var f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();var n=hIX(f,D,!0);n&&(_.vy(f,D,n,0).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(V){var D=_.GS();if(D.isCollapsed()){var f=D.JSC$9384_getStartNode();D=D.JSC$9384_getStartOffset();var n=hIX(f,D,!1);n&&(_.vy(f,D,n,n.childNodes.length).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
onContentClick:function(V){V.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(V){V.defaultPrevented||V.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Ua(V.target)&&V.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Pt(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Pt(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(V,D){V=Lqq(V,this.emojiManager,D).cloneNode(!0);for(D=V.firstChild;D;)if(D.nodeType!==1)D=D.nextSibling;else switch(D.tagName){case "BR":var f=_.gT();_.P6Y(f,D);D=f.nextSibling;break;case "DIV":(f=D.lastChild)&&D.nextSibling&&_.BN(_.gT(),f);D.previousSibling&&(D.previousSibling.nodeType===1||D.previousSibling.nodeType===3&&!D.previousSibling.textContent.endsWith("\n"))&&_.sO(_.gT(),D);f&&f.nodeName==="BR"&&_.ZC(f);f=D;D.hasChildNodes()?(D=D.firstChild,
_.opE(f)):(D=D.nextSibling,_.ZC(f));break;default:D=D.nextSibling}return U_X(V)},
setTextAreaValue:function(V){V||(V="");var D=this.getEditableFormattedString_();D.text="";this.getEditableTextArea_().innerText="";typeof V==="string"&&(V={runs:[{text:V}]});D.text=V},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();PP=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var V=this.getEditableTextArea_();V&&(_.NW(V,V.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.XB("HTML_DIR")==="rtl"){var V=this.getEditableTextArea_(),D=this.getTextAreaValue()!==""?"auto":"rtl";V.setAttribute("dir",D)}},
handleInputEvent_:function(){var V=null;if(this.isEmojiButtonDisplayed){var D=this.getInputRange_();D&&(V=this.emojiInput.retrieveTextBeforeRange(D))}this.insertText_(V,!0);this.updateCharCount_();V=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=V.scrollHeight>V.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var V=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:V})},
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(V){this.isEmojiButtonDisplayed&&(V.preventDefault(),V.stopImmediatePropagation(),V=V.clipboardData.getData("text/plain"),this.insertText_(V,!1,!1),_.PA(this.hostElement,"input"))},
insertText_:function(V,D,f){D=D===void 0?!1:D;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&V){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(D&&this.emojiInput.offsetStartOfRangeBy(n,V.length),this.insertTextWithEmojis_(n,V,f),pRw(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,V),this.updateSuggestionOffset_(n)))}},
getSimpleString:_.LA,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(V){return V?"focused":"not-focused"},
computePlaceholderText_:function(V){return this.getSimpleString(V)},
computeEditableText_:function(V){return this.getSimpleString(V)},
onPrefilledContentDismissed_:function(V){V.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(V,D){V?this.fire("yt-autonav-pause-focus"):D!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(V){var D=this.getEditableTextArea_();[].concat(_.sz(V.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(n){D.appendChild(document.createTextNode(n))})});
V.preventDefault()},
preventDefault_:function(V){V.preventDefault()},
onSuggestionInsert_:function(V){this.insertTextWithEmojis_(V.detail.range,V.detail.text)},
onEmojiSuggestionClick_:function(V){this.emojiInput.insertSuggestion(V.detail)},
updateSuggestionOffset_:function(V){if(this.emojiInput&&_.Pt(this.emojiInput).querySelector("#dropdown")){var D=this.getEditableTextArea_().getBoundingClientRect().bottom,f=V.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(D-f)+5;D=this.getEditableTextArea_().getBoundingClientRect().left;V=V.getBoundingClientRect().left-D;_.Pt(this.emojiInput).querySelector("#dropdown").style.marginLeft=V+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qY("yt-post"));return this.localStorage}});var oS=function(){var V=_.E.apply(this,arguments)||this;V.currentCommentOptionIndex=0;V.isEmojiPickerDisplayed=!1;V.emojiManager=_.Ct;V.isUgcEmpty=!1;V.userGeneratedCommentChangedHandler=function(){_.PA(V.hostElement,"ytd-pdg-user-generated-comment-changed");V.isEmojiYtdCommentInputEnabled&&(V.isUgcEmpty=!V.ytdCommentInputEl.getTextAreaValue())};
V.pasteHandler=function(D){D.preventDefault();D.stopImmediatePropagation();var f;if(D=(f=D.clipboardData)==null?void 0:f.getData("text/plain"))f=document.getSelection().getRangeAt(0),f.collapsed||f.deleteContents(),D=document.createTextNode(D),f.insertNode(D),f.selectNodeContents(D),f.collapse(!1),D=window.getSelection(),D.removeAllRanges(),D.addRange(f)};
V.onDocumentClick=function(D){if(V.isEmojiPickerDisplayed){var f,n,t;!(D.target instanceof Node)||(f=D.composedPath())!=null&&f.includes(V.editableTextEl)||(n=D.composedPath())!=null&&n.includes(V.emojiButtonEl)||(t=D.composedPath())!=null&&t.includes(V.emojiPickerEl)||(V.isEmojiPickerDisplayed=!1)}};
return V};
_.v(oS,_.E);_.P=oS.prototype;_.P.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.P.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.P.detached=function(){var V;(V=this.contentEl)==null||V.removeEventListener("input",this.userGeneratedCommentChangedHandler);var D;(D=this.contentEl)==null||D.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.P.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.P.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var V;this.contentEl.textContent=this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.P.reloadEmojis=function(){this.emojiPickerEl&&_.g(this.emojiPicker,_.pTF)&&this.emojiPickerEl.updateEmojiCategories()};
_.P.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.wI(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.P.handleBackgroundColorStyling=function(){var V;if((V=this.currentCommentOption)==null?0:V.commentBackgroundColorArgb){var D;_.wI(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.aB((D=this.currentCommentOption)==null?void 0:D.commentBackgroundColorArgb)})}else _.wI(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.P.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var V;(V=this.contentEl)==null||V.focus()}};
_.P.onEditButtonClick=function(V){var D=document.getSelection();D&&this.contentEl&&(V.stopPropagation(),V.preventDefault(),D.selectAllChildren(this.contentEl),D.collapseToEnd())};
_.P.onContentDrop=function(V){var D=this;if(V.dataTransfer){V=_.r(V.dataTransfer.items);for(var f=V.next();!f.done;f=V.next())f=f.value,f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(n){var t;(t=D.contentEl)==null||t.appendChild(document.createTextNode(n))})}};
_.P.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.P.getUserGeneratedCommentText=function(){var V,D=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(V=this.contentEl)==null?void 0:V.textContent;return D?D.trim():""};
_.P.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.P.onEmojiSelect=function(V){this.ytdCommentInputEl.onEmojiSelect(V)};
_.IG.Object.defineProperties(oS.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.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 V;return!((V=this.currentCommentOption)==null||!V.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if(_.g((V=this.currentCommentOption)==null?void 0:V.chipRenderer,_.rbL)){var D;return _.g((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.rbL)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var V,D;return((V=this.data)==null?0:V.commentOptionRenderers)?_.g((D=this.data)==null?void 0:D.commentOptionRenderers[this.superThanksSelectedTierEntity.index],C7v):void 0}var f,n;return((f=this.data)==null?0:f.commentOptionRenderers)?_.g((n=this.data)==null?void 0:n.commentOptionRenderers[this.currentCommentOptionIndex],C7v):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var V;return this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var V;return this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.commentDialog,_.EsH))==null?void 0:D.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.commentDialog,_.EsH))==null?void 0:D.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=_.g((V=this.data)==null?void 0:V.commentDialog,_.EsH))==null?void 0:D.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(D=_.g((V=this.data)==null?void 0:V.commentDialog,_.EsH))==null?void 0:D.emojiPicker;if(!_.g(f,_.pTF)||!_.g(f,_.pTF).categories)return!1;V=function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var n,t;return((n=_.g(f,_.pTF))==null?0:(t=n.categories)==null?0:t.find(V))?!0:!1}}});
oS.prototype.onEmojiSelect=oS.prototype.onEmojiSelect;oS.prototype.dataChanged=oS.prototype.dataChanged;oS.prototype.currentCommentOptionChanged=oS.prototype.currentCommentOptionChanged;_.S([_.u(_.dh),_.p("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],oS.prototype,"rendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.Zv("#content-dom-if"),_.p("design:type",_.uU)],oS.prototype,"contentDomIfEl",void 0);_.S([_.Zv("#content-no-emojis"),_.p("design:type",HTMLElement)],oS.prototype,"contentEl",void 0);_.S([_.Zv("#container"),_.p("design:type",HTMLElement)],oS.prototype,"containerEl",void 0);_.S([_.Zv("#comment-chip-container"),_.p("design:type",HTMLElement)],oS.prototype,"paidCommentChipContainerEl",void 0);_.S([_.Zv("#text-input"),_.p("design:type",HTMLElement)],oS.prototype,"editableTextEl",void 0);
_.S([_.Zv("#emoji-button"),_.p("design:type",HTMLElement)],oS.prototype,"emojiButtonEl",void 0);_.S([_.Zv("#emoji-picker > yt-emoji-picker-renderer"),_.p("design:type",Object)],oS.prototype,"emojiPickerEl",void 0);_.S([_.Zv("#text-input > ytd-comment-input"),_.p("design:type",Object)],oS.prototype,"ytdCommentInputEl",void 0);_.S([_.q(),_.p("design:type",Object)],oS.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],oS.prototype,"currentCommentOptionIndex",void 0);
_.S([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:V6R}),_.p("design:type",Object)],oS.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.q(),_.p("design:type",Object)],oS.prototype,"isEmojiPickerDisplayed",void 0);_.S([_.q(),_.p("design:type",Object)],oS.prototype,"emojiManager",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],oS.prototype,"isUgcEmpty",void 0);
_.S([_.KI("currentCommentOption"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oS.prototype,"currentCommentOptionChanged",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oS.prototype,"dataChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oS.prototype,"isEmojiYtdCommentInputEnabled",null);
_.S([_.R("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"title",null);_.S([_.R("data.authorText"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"channelName",null);_.S([_.R("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oS.prototype,"shouldShowPaidCommentChipRenderer",null);
_.S([_.R("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"paidCommentChipRenderer",null);_.S([_.R("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"currentCommentOption",null);
_.S([_.R("data.defaultCommentText","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"commentText",null);_.S([_.R("data.placeholderText"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"placeholderText",null);_.S([_.R("data.commentDialog.commentDialogRenderer.editableText"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"editableText",null);
_.S([_.R("data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"emojiButton",null);_.S([_.R("data.commentDialog.commentDialogRenderer.emojiPicker"),_.p("design:type",Object),_.p("design:paramtypes",[])],oS.prototype,"emojiPicker",null);
_.S([_.R("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oS.prototype,"isEmojiButtonDisplayed",null);_.S([_.bU("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],oS.prototype,"onEmojiSelect",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],oS);
_.Y(oS,"ytd-pdg-comment-preview-renderer",function(){if(ctB!==void 0)return ctB;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ctB=V},{mode:2});var gDX;var Jj=function(){var V=_.E.apply(this,arguments)||this;V.selected=!1;return V};
_.v(Jj,_.E);_.P=Jj.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.P.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.P.dataChanged=function(){this.data&&(_.oU(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.wI(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.aB(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.aB(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.P.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.P.onClick=function(){this.logClick()};
_.P.onKeyboardSelect=function(){_.PA(this.hostElement,"tap");this.onClick()};
_.P.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Jj.prototype.onClick=Jj.prototype.onClick;Jj.prototype.selectedChanged=Jj.prototype.selectedChanged;Jj.prototype.dataChanged=Jj.prototype.dataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Jj.prototype,"componentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.ja),_.p("design:type",Object)],Jj.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.u(_.iU),_.p("design:type",Object)],Jj.prototype,"ironSelectableBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Jj.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Jj.prototype,"shownThumbnail",void 0);_.S([_.q(),_.p("design:type",Object)],Jj.prototype,"basePriceText",void 0);_.S([_.q(),_.p("design:type",Object)],Jj.prototype,"purchaseCommand",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Jj.prototype,"selected",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jj.prototype,"dataChanged",null);_.S([_.KI("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jj.prototype,"selectedChanged",null);_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jj.prototype,"onClick",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Jj);
_.Y(Jj,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(gDX!==void 0)return gDX;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return gDX=V},{mode:1});var r9=function(){var V=_.E.apply(this,arguments)||this;V.selectedItemIndex=0;V.buyButtonDisabled=!1;return V};
_.v(r9,_.E);_.P=r9.prototype;
_.P.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]]"}}}}}};
_.P.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var V;var D=(V=_.g(this.data.colorSlider,RPZ))==null?void 0:V.notches[this.selectedItemIndex].purchaseCommand}else{var f;D=(f=_.g(this.data.selectableItemButtons[this.selectedItemIndex],Xcv))==null?void 0:f.purchaseCommand}if(D){V=_.g(D,_.i_U);V.productData||(V.productData={});var n;V.productData={pdgData:{commentMessageText:(n=this.commentPreviewRenderer)==null?void 0:n.getUserGeneratedCommentText()}};
_.PA(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(D)}}};
_.P.dataChanged=function(){if(this.data){_.Ct.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.cMF(_.Ct,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Ct.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var V;this.buyButtonDisabled=!((V=_.g(this.data.commentPreview,qCR))==null||!V.placeholderText);this.updatePriceSelectorStatus();var D;if((D=this.data)==null?0:D.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;V=[];this.data.preloadImages&&(V=this.data.preloadImages);
V=V.map(function(f){return _.nT(f.thumbnails,1920)});
V=_.r(V);for(D=V.next();!D.done;D=V.next())(D=D.value)&&_.AKZ(D).thenCatch(function(){_.zP(Error("rl"))})}};
_.P.superThanksSelectedTierEntityChanged=function(){var V;(this==null?void 0:(V=this.superThanksSelectedTierEntity)==null?void 0:V.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.P.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.P.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Pt(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Pt(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Pt(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Pt(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.P.closeBuyFlow=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.P.onUserGeneratedContentChanged=function(){var V;this.buyButtonDisabled=!((V=this.commentPreviewRenderer)==null?0:V.getUserGeneratedCommentText())};
_.P.updateSelectedItemIndexFromBinding=function(V){this.selectedItemIndex=V.detail.value};
_.IG.Object.defineProperties(r9.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.disclaimerText)}}});
r9.prototype.onUserGeneratedContentChanged=r9.prototype.onUserGeneratedContentChanged;r9.prototype.closeBuyFlow=r9.prototype.closeBuyFlow;r9.prototype.selectedItemIndexChanged=r9.prototype.selectedItemIndexChanged;r9.prototype.superThanksSelectedTierEntityChanged=r9.prototype.superThanksSelectedTierEntityChanged;r9.prototype.dataChanged=r9.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],r9.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r9.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],r9.prototype,"selectedItemIndex",void 0);_.S([_.q(),_.p("design:type",Boolean)],r9.prototype,"isColorSlider",void 0);
_.S([_.q(),_.p("design:type",Object)],r9.prototype,"buyButtonDisabled",void 0);_.S([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:V6R}),_.p("design:type",Object)],r9.prototype,"superThanksSelectedTierEntity",void 0);_.S([_.Zv("ytd-pdg-comment-preview-renderer"),_.p("design:type",Object)],r9.prototype,"commentPreviewRenderer",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],r9.prototype,"ytdReduxBehavior",void 0);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r9.prototype,"dataChanged",null);_.S([_.KI("superThanksSelectedTierEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r9.prototype,"superThanksSelectedTierEntityChanged",null);_.S([_.KI("selectedItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r9.prototype,"selectedItemIndexChanged",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r9.prototype,"closeBuyFlow",null);_.S([_.bU("ytd-pdg-user-generated-comment-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r9.prototype,"onUserGeneratedContentChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],r9.prototype,"isDisclaimerTextShown",null);
_.S([_.a({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],r9);
_.Y(r9,"yt-super-vod-buy-flow-content-renderer",function(){if(G13!==void 0)return G13;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return G13=V},{mode:1});var vDR;var HP=function(){var V=_.E.apply(this,arguments)||this;V.lottieAnimationRef={};return V};
_.v(HP,_.E);_.P=HP.prototype;_.P.created=function(){_.qH.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Ty(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.P.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.PA(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.P.detached=function(){this.autoCloseJobId&&_.dm.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Ty(this,this.onPopupIronOverlayOpened))};
_.P.dataChanged=function(){var V=this;this.data&&this.data.autoCloseDelay&&(_.o4(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.JI(_.dm,function(){V.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.wI(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.P.onDOMLoadedLottie=function(){var V=this,D,f,n=Number((D=this.data)==null?void 0:(f=D.autoCloseDelay)==null?void 0:f.seconds)||0;this.fadeOutJobId=_.JI(_.dm,function(){V.lottiePlayerEl.classList.add("fadeout")},(n-.25)*1E3);
this.autoCloseJobId=_.JI(_.dm,function(){V.closePopup()},n*1E3)};
_.P.openPopup=function(){this.ironOverlayBehavior.open()};
_.P.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.o4(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.wN(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.DY().resolve(_.fH).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.dm.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.dm.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.P.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var V,D;(V=this.lottieAnimationRef)==null||(D=V.lottieEl)==null||D.destroy();V=this.data.lottie;var f,n;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:V.url+"_"+Math.random(),path:V.url,autoplay:!0,loop:(n=(f=V.settings)==null?void 0:f.loop)!=null?n:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.IG.Object.defineProperties(HP.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var V,D;return!!((V=this.data)==null?0:(D=V.lottie)==null?0:D.url)}}});
HP.prototype.maybeInitializeLottie=HP.prototype.maybeInitializeLottie;HP.prototype.dataChanged=HP.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],HP.prototype,"rendererBehavior",void 0);_.S([_.u(_.Y0),_.p("design:type",Object)],HP.prototype,"ironOverlayBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],HP.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],HP.prototype,"lottiePlayerProps",void 0);
_.S([_.q(),_.p("design:type",Object)],HP.prototype,"lottieAnimationRef",void 0);_.S([_.Zv("ytd-lottie-player"),_.p("design:type",HTMLElement)],HP.prototype,"lottiePlayerEl",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HP.prototype,"dataChanged",null);_.S([_.R("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],HP.prototype,"hasLottieAnimation",null);
_.S([_.KI("data.lottie.url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HP.prototype,"maybeInitializeLottie",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],HP);
_.Y(HP,"ytd-desktop-image-overlay-renderer",function(){if(vDR!==void 0)return vDR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return vDR=V},{mode:1});var k1Z;var w9=function(){return _.E.apply(this,arguments)||this};
_.v(w9,_.E);_.P=w9.prototype;_.P.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"}}}}};
_.P.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",_.Ty(this,this.closePopup))};
_.P.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ty(this,this.closePopup))};
_.P.dataChanged=function(){_.JR(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.g(this.data.header,zPW)&&(this.hasBackgroundBanner=!!_.g(this.data.header,zPW).backgroundBanner)};
_.P.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ty(this,this.closePopup))};
_.P.closePopup=function(){this.data&&this.data.onCloseCommand&&_.HA(this.hostElement,[this.data.onCloseCommand])};
w9.prototype.handleBuyflowSelectionSubmitted=w9.prototype.handleBuyflowSelectionSubmitted;w9.prototype.dataChanged=w9.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],w9.prototype,"data",void 0);
_.S([_.q({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],w9.prototype,"hasBackgroundBanner",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],w9.prototype,"dataChanged",null);_.S([_.bU("yt-pdg-buy-flow-selection-submitted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],w9.prototype,"handleBuyflowSelectionSubmitted",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],w9);
_.Y(w9,"ytd-pdg-buy-flow-renderer",function(){if(k1Z!==void 0)return k1Z;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return k1Z=V},{mode:1});var sDZ;var QO=function(){var V=_.E.apply(this,arguments)||this;V.isOpen=!1;V.isPlaylistCreated=!1;return V};
_.v(QO,_.E);_.P=QO.prototype;_.P.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.P.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.PA(this.hostElement,"yt-refit")};
_.P.onCreateTap=function(){var V=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.HA(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(D,f){if(!_.c("killswitch_ep_in_create_playlist_response")&&(f==null?0:f.actions))for(D=_.r(f.actions),f=D.next();!f.done;f=D.next())f=f.value,_.g(f,_.dK)&&V.ytComponentBehavior.resolveCommand(f)}}]),this.isPlaylistCreated=!0)};
_.P.onKeydown=function(V){if(V.keyCode===13)this.onCreateTap()};
_.P.onServiceRequestCompleted=function(V){V.stopPropagation();_.o4(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.P.computePrivacyBadge=function(V){return V?[{metadataBadgeRenderer:V}]:[]};
QO.prototype.onServiceRequestCompleted=QO.prototype.onServiceRequestCompleted;QO.prototype.onKeydown=QO.prototype.onKeydown;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],QO.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],QO.prototype,"isOpen",void 0);
_.S([_.q(),_.p("design:type",Object)],QO.prototype,"isPlaylistCreated",void 0);_.S([_.q({value:{REQUIRED_LABEL:_.Zl("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Zl("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],QO.prototype,"addToStrings",void 0);_.S([_.q({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.p("design:type",Array)],QO.prototype,"privacyBadge",void 0);
_.S([_.Zv("#privacy-input"),_.p("design:type",Object)],QO.prototype,"privacyInput",void 0);_.S([_.Zv("#name-input"),_.p("design:type",Object)],QO.prototype,"nameInput",void 0);_.S([_.bU("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],QO.prototype,"onKeydown",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],QO.prototype,"onServiceRequestCompleted",null);
_.S([_.a({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],QO);
_.Y(QO,"ytd-add-to-playlist-create-renderer",function(){if(sDZ!==void 0)return sDZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return sDZ=V},{mode:1});var BbV;var d6R;var TB=function(){var V=_.E.apply(this,arguments)||this;V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.v(TB,_.E);TB.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
TB.prototype.onCheckboxChange=function(V){var D=this;this.data&&_.Yu(this,"yt-playlist-checkbox-changed",function(){var f=_.x7(V).checked?D.data.addToPlaylistServiceEndpoint:D.data.removeFromPlaylistServiceEndpoint;f&&_.DY().resolve(_.fH).resolveCommand(f,{form:{element:D.hostElement}});_.c("dl_playlist_killswitch")||D.transferState!=="TRANSFER_STATE_UNKNOWN"&&D.transferState!=="TRANSFER_STATE_FAILED"&&D.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:D.data.playlistId,action:"ACTION_SYNC"}})},
100)};
TB.prototype.computeIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
TB.prototype.dataChanged=TB.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],TB.prototype,"data",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],TB.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],TB.prototype,"ytComponentBehavior",void 0);_.S([_.Zv("#checkbox"),_.p("design:type",HTMLInputElement)],TB.prototype,"checkbox",void 0);
_.S([_.q({selector:_.q_,selectorArgs:["data.playlistId"]}),_.p("design:type",String)],TB.prototype,"transferState",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TB.prototype,"dataChanged",null);_.S([_.a({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],TB);
_.Y(TB,"ytd-playlist-add-to-option-renderer",function(){if(d6R!==void 0)return d6R;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return d6R=V},{mode:1});_.V$(VLv);_.wk(VLv,"ytd-menu-title-renderer",{propNames:["data"]});var sM=function(){var V=_.E.apply(this,arguments)||this;V.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Zl("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};V.closeButtonAriaLabel=_.Zl("SBOX_INAPPROPRIATE_CANCEL");V.dialog=_.c("desktop_add_to_playlist_renderer_dialog_popup");return V};
_.v(sM,_.E);_.P=sM.prototype;_.P.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"}}}};
_.P.onPopupOpened=function(){_.JA(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.P.onPopupClosed=function(){_.JA(this.playlists,"scrollable",!1)};
_.P.computeAriaLabel=function(){var V;if(this==null?0:(V=this.data)==null?0:V.actions){V=_.r(this.data.actions);for(var D=V.next();!D.done;D=V.next())if(D=D.value,D.menuTitleRenderer)return _.LA(D.menuTitleRenderer.title)}};
_.P.onTapClose=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.IG.Object.defineProperties(sM.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if(this==null?0:(V=this.data)==null?0:V.actions){V=_.r(this.data.actions);for(var D=V.next();!D.done;D=V.next())if(D=D.value,D.menuTitleRenderer)return D.menuTitleRenderer}return!1}}});
sM.prototype.onPopupClosed=sM.prototype.onPopupClosed;sM.prototype.onPopupOpened=sM.prototype.onPopupOpened;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],sM.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sM.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],sM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],sM.prototype,"addToStrings",void 0);_.S([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],sM.prototype,"ariaLabel",void 0);_.S([_.q(),_.p("design:type",String)],sM.prototype,"closeButtonAriaLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],sM.prototype,"dialog",void 0);
_.S([_.Zv("#playlists"),_.p("design:type",HTMLElement)],sM.prototype,"playlists",void 0);_.S([_.Zv("ytd-add-to-playlist-create-renderer"),_.p("design:type",Object)],sM.prototype,"createRenderer",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sM.prototype,"menuTitleRenderer",null);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sM.prototype,"onPopupOpened",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sM.prototype,"onPopupClosed",null);_.S([_.a({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],sM);
_.Y(sM,"ytd-add-to-playlist-renderer",function(){if(BbV!==void 0)return BbV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return BbV=V},{mode:1});var uNJ;var BP=function(){var V=_.E.apply(this,arguments)||this;V.isPlaylistEditComplete=!1;V.isCollabEngagementDisabled=!1;V.closeButtonAriaLabel=_.Zl("SBOX_INAPPROPRIATE_CANCEL");V.saveButton={title:_.Zl("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"};V.onValueChanged=function(){V.updateSaveButtonState();V.computeCollabEngagementDisabled()};
return V};
_.v(BP,_.E);_.P=BP.prototype;_.P.attached=function(){this.JSC$18483_scroller&&(this.JSC$18483_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18483_scroller.attached&&typeof this.JSC$18483_scroller.attached==="function"&&this.JSC$18483_scroller.attached())};
_.P.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.P.onPopupClosed=function(){this.reset()};
_.P.close=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.P.onClickSave=function(){var V=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var D=[];this.nameInput.value!==null&&D.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&D.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var f=Number(this.privacyInput.value);isNaN(f)||D.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:f})}this.votingInput.value!==null&&(f=this.votingInput.value)&&D.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:f});if(D.length>0){var n;_.g((n=this.data)==null?void 0:n.updateSettingsEndpoint,_.NT).actions=D;var t;if((t=this.data)==null?0:t.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){V.close()}}}),this.isPlaylistEditComplete=!0}}};
_.P.computePrivacyBadge=function(V){return V?[{metadataBadgeRenderer:V}]:[]};
_.P.computeEditorData=function(V){var D,f;return V==null?void 0:(D=V.sections)==null?void 0:(f=D[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer};
_.P.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.P.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}}}}}};
_.P.computeAriaLabel=function(){var V,D,f,n=(V=this.data)==null?void 0:(D=V.sections)==null?void 0:(f=D[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer;return _.LA(n==null?void 0:n.title)};
_.P.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"}))};
_.P.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.P.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.P.isNameChanged=function(){var V,D,f;return(((V=this.editorData)==null?void 0:(D=V.name)==null?void 0:(f=D.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.nameInput.value||"")};
_.P.isDescriptionChanged=function(){var V,D,f;return(((V=this.editorData)==null?void 0:(D=V.description)==null?void 0:(f=D.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.descriptionInput.value||"")};
_.P.isPrivacyChanged=function(){var V,D,f,n,t,J,H,Q;return((H=(V=this.editorData)==null?void 0:(D=V.privacy)==null?void 0:(f=D.dropdownFormFieldRenderer)==null?void 0:(n=f.dropdown)==null?void 0:(t=n.dropdownRenderer)==null?void 0:(J=t.entries)==null?void 0:J.find(function(T){var y;return T==null?void 0:(y=T.privacyDropdownItemRenderer)==null?void 0:y.isSelected}))==null?void 0:(Q=H.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.privacyInput.value};
_.P.isVotingChanged=function(){var V,D,f,n,t,J,H,Q;return((H=(V=this.editorData)==null?void 0:(D=V.voting)==null?void 0:(f=D.dropdownFormFieldRenderer)==null?void 0:(n=f.dropdown)==null?void 0:(t=n.dropdownRenderer)==null?void 0:(J=t.entries)==null?void 0:J.find(function(T){var y;return T==null?void 0:(y=T.privacyDropdownItemRenderer)==null?void 0:y.isSelected}))==null?void 0:(Q=H.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.votingInput.value};
BP.prototype.onPopupClosed=BP.prototype.onPopupClosed;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],BP.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],BP.prototype,"ytRendererStamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],BP.prototype,"data",void 0);_.S([_.q({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.p("design:type",Array)],BP.prototype,"privacyBadge",void 0);_.S([_.q({computed:"computeEditorData(data)"}),_.p("design:type",Object)],BP.prototype,"editorData",void 0);_.S([_.q(),_.p("design:type",Object)],BP.prototype,"isPlaylistEditComplete",void 0);_.S([_.q(),_.p("design:type",Object)],BP.prototype,"isCollabEngagementDisabled",void 0);
_.S([_.q({value:{REQUIRED_LABEL:_.Zl("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Zl("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],BP.prototype,"addToStrings",void 0);_.S([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],BP.prototype,"ariaLabel",void 0);_.S([_.q(),_.p("design:type",String)],BP.prototype,"closeButtonAriaLabel",void 0);
_.S([_.q(),_.p("design:type",Object)],BP.prototype,"saveButton",void 0);_.S([_.Zv("#name-input"),_.p("design:type",Object)],BP.prototype,"nameInput",void 0);_.S([_.Zv("#description-input"),_.p("design:type",Object)],BP.prototype,"descriptionInput",void 0);_.S([_.Zv("#privacy-input"),_.p("design:type",Object)],BP.prototype,"privacyInput",void 0);_.S([_.Zv("#voting-input"),_.p("design:type",Object)],BP.prototype,"votingInput",void 0);
_.S([_.Zv("#scroller"),_.p("design:type",Object)],BP.prototype,"JSC$18483_scroller",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BP.prototype,"onPopupClosed",null);_.S([_.q(),_.p("design:type",Object)],BP.prototype,"onValueChanged",void 0);_.S([_.a({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],BP);
_.Y(BP,"ytd-playlist-settings-editor-renderer",function(){if(uNJ===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);uNJ=V}V=uNJ;return V},{mode:1});var NbJ;_.zk("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var d9=function(){return _.E.apply(this,arguments)||this};
_.v(d9,_.E);_.P=d9.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.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 V=this.get("data.nextButton.buttonRenderer.navigationEndpoint");V&&(this.nextNavigationEndpoint=V,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.P.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 V={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",V)}}};
_.P.onPopupOpened=function(V){V.detail!==this&&V.detail!==this.hostElement||!_.c("enable_premium_voluntary_pause")||_.o4(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.P.onNextButtonTap=function(){var V=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);V&&this.ytdOpenPopupBehavior.openPopup(V)};
_.P.updateSelectedResponseIndexFromBinding=function(V){this.selectedResponseIndex=V.detail.value};
d9.prototype.onPopupOpened=d9.prototype.onPopupOpened;d9.prototype.onSelectedResponseIndexChange=d9.prototype.onSelectedResponseIndexChange;d9.prototype.dataChanged=d9.prototype.dataChanged;_.S([_.u(_.WO),_.p("design:type",Object)],d9.prototype,"ytdOpenPopupBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],d9.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],d9.prototype,"selectedResponseIndex",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d9.prototype,"dataChanged",null);_.S([_.KI("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d9.prototype,"onSelectedResponseIndexChange",null);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],d9.prototype,"onPopupOpened",null);_.S([_.a({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],d9);
_.Y(d9,"ytd-red-cancel-survey-renderer",function(){if(NbJ!==void 0)return NbJ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return NbJ=V},{mode:1});var m6c;var ux=function(){var V=_.E.apply(this,arguments)||this;V.closeButtonAriaLabel=_.Zl("SBOX_INAPPROPRIATE_CANCEL");return V};
_.v(ux,_.E);ux.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
ux.prototype.onClickClose=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ux.prototype,"rendererStamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ux.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],ux.prototype,"closeButtonAriaLabel",void 0);_.S([_.a({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ux);
_.Y(ux,"ytd-search-filter-options-dialog-renderer",function(){if(m6c!==void 0)return m6c;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return m6c=V},{mode:1});var zkW;var n73=function(){return function(V){V=V.availabilityType;return V===void 0||V==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||V==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Nj=function(){var V=_.E.apply(this,arguments)||this;V.qualityOptions=[];V.upsellOptions=[];V.showUpsellSection=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.rememberSettingsChecked=!1;return V};
_.v(Nj,_.E);_.P=Nj.prototype;_.P.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}}}}};
_.P.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.P.updateQualityOptions=function(){if(this.formats===void 0)_.o4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var V=[],D=[];this.showUpsellSection=!1;for(var f=_.r(this.formats),n=f.next();!n.done;n=f.next())(n=n.value)&&(n.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?D.push(n):V.push(n));V.length&&(this.qualityOptions=fxV(V));D.length&&(this.showUpsellSection=!0,this.upsellOptions=fxV(D))}};
_.P.updateRememberString=function(){if(this.downloadQualityPickerEntity)var V=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var D;V=(D=this.data)==null?void 0:D.premiumRememberSettingString}else{var f;V=(f=this.data)==null?void 0:f.rememberSettingString}V=V===void 0?_.Zl("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):V;this.rememberSettingsCheckboxRenderer={title:_.Vc(V),disabled:!1}};
_.P.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.IG.Object.defineProperties(Nj.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var V;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(V=this.data)==null?void 0:V.qualityFormats}}});
Nj.prototype.updateRememberString=Nj.prototype.updateRememberString;Nj.prototype.updateQualityOptions=Nj.prototype.updateQualityOptions;Nj.prototype.dataChanged=Nj.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Nj.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Nj.prototype,"data",void 0);
_.S([_.u(_.dh),_.p("design:type",Object)],Nj.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Boolean)],Nj.prototype,"selectedUpsellQuality",void 0);_.S([_.q({computed:"computeIcon_(data.premiumIcon)",value:""}),_.p("design:type",String)],Nj.prototype,"premiumIcon",void 0);_.S([_.q({selector:xYJ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],Nj.prototype,"downloadQualityPickerEntity",void 0);
_.S([_.q(),_.p("design:type",Array)],Nj.prototype,"qualityOptions",void 0);_.S([_.q(),_.p("design:type",Array)],Nj.prototype,"upsellOptions",void 0);_.S([_.q(),_.p("design:type",Object)],Nj.prototype,"showUpsellSection",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Nj.prototype,"darkerDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],Nj.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.S([_.Zv("#remember-settings"),_.p("design:type",HTMLInputElement)],Nj.prototype,"rememberSettingsCheckbox",void 0);_.S([_.q(),_.p("design:type",Object)],Nj.prototype,"rememberSettingsChecked",void 0);_.S([_.q(),_.p("design:type",Function)],Nj.prototype,"onRememberSettingsCheckedChanged",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nj.prototype,"dataChanged",null);
_.S([_.KI("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nj.prototype,"updateQualityOptions",null);_.S([_.KI("selectedUpsellQuality"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Nj.prototype,"updateRememberString",null);_.S([_.a({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Nj);
_.Y(Nj,"ytd-download-quality-selector-content",function(){if(zkW!==void 0)return zkW;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return zkW=V},{mode:1});var RkB;var mV=function(){var V=_.E.apply(this,arguments)||this;V.selectedUpsellQuality=!1;V.qualityOptions=[];V.darkerDarkTheme=_.c("web_darker_dark_theme");V.useUpsellDismissAlternate=_.c("use_not_now_dl_upsell_dismiss_cta");V.shouldShowAlternateUpsellDimiss=!1;V.rememberSettings=!1;V.rememberSettingsChecked=!1;V.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};V.rememberSettingsCheckedChanged=function(D){V.rememberSettingsChecked=D};
return V};
_.v(mV,_.E);_.P=mV.prototype;
_.P.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Vc(_.Zl("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.P.updateQualityOptions=function(){this.formats===void 0?_.o4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=fxV(this.formats)};
_.P.onQualityOptionsSelect=function(V){if(this.qualityOptions&&V){V!==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 D=_.r(this.qualityOptions.entries()),f=D.next();!f.done;f=
D.next()){f=_.r(f.value);var n=f.next().value;f=f.next().value;var t=void 0,J=void 0;if(((t=f)==null?void 0:(J=t.settingsRadioOptionRenderer)==null?void 0:J.id)===V){this.selectedQualityIndex=n;V=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((V=this.formats[n])==null?void 0:V.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.P.onClickSubmit=function(){var V;if((V=this.downloadButtonRenderer)==null||!V.isDisabled){var D,f;V=(f=(D=this.data)==null?void 0:D.onSubmitEndpoint)!=null?f:{};var n,t;if(this.formats&&(((n=_.g(V,_.Q1))==null?0:n.videoId)||((t=_.g(V,_.Tv))==null?0:t.playlistId))){var J,H,Q,T,y,Z;D={formatType:(T=(J=this.formats)==null?void 0:(H=J[(Q=this.selectedQualityIndex)!=null?Q:0])==null?void 0:H.format)!=null?T:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(y=this.getOfflineEndpoint(V))==null?void 0:(Z=y.actionParams)==null?void 0:Z.settingsAction)};this.getOfflineEndpoint(V).actionParams=D;this.ytComponentBehavior.resolveCommand(V)}_.o4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.P.onClickUpsell=function(){var V;if((V=this.upsellButtonRenderer)==null||!V.isDisabled){var D,f;V=(f=(D=this.data)==null?void 0:D.upsellEndpoint)!=null?f:{};this.ytComponentBehavior.resolveCommand(V);_.o4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);D="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var n,t,J,H;D=(H=(n=this.formats)==null?void 0:(t=n[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:t.format)!=null?H:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:D}})}};
_.P.onClickClose=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.P.getOfflineSettingsAction=function(V,D){return V?D===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":D:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.P.getOfflineEndpoint=function(V){return _.g(V,_.Q1)?_.g(V,_.Q1):_.g(V,_.Tv)};
_.IG.Object.defineProperties(mV.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Vc(_.Zl("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var V;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(V=this.data)==null?void 0:V.qualityFormats}}});
mV.prototype.updateQualityOptions=mV.prototype.updateQualityOptions;mV.prototype.dataChanged=mV.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],mV.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Number)],mV.prototype,"selectedQualityIndex",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"selectedUpsellQuality",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],mV.prototype,"ytdReduxBehavior",void 0);
_.S([_.q({selector:xYJ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],mV.prototype,"downloadQualityPickerEntity",void 0);_.S([_.q(),_.p("design:type",Array)],mV.prototype,"qualityOptions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],mV.prototype,"darkerDarkTheme",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],mV.prototype,"useUpsellDismissAlternate",void 0);
_.S([_.q(),_.p("design:type",Object)],mV.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"downloadButtonRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"upsellButtonRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"cancelButtonRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"upsellCancelButtonRenderer",void 0);_.S([_.q(),_.p("design:type",Object)],mV.prototype,"rememberSettings",void 0);
_.S([_.q(),_.p("design:type",Object)],mV.prototype,"rememberSettingsChecked",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mV.prototype,"dataChanged",null);_.S([_.KI("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mV.prototype,"updateQualityOptions",null);_.S([_.a({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],mV);
_.Y(mV,"ytd-download-quality-selector-renderer",function(){if(RkB!==void 0)return RkB;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return RkB=V},{mode:1});var CqV;var zB=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(zB,_.E);zB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zB.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],zB.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],zB.prototype,"darkerDarkTheme",void 0);_.S([_.q({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],zB.prototype,"infoIcon",void 0);
_.S([_.q({computed:"computeIcon_(data.warningIcon)"}),_.p("design:type",Object)],zB.prototype,"warningIcon",void 0);_.S([_.a({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],zB);
_.Y(zB,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(CqV!==void 0)return CqV;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return CqV=V},{mode:1});var qQ0;var RS=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(RS,_.E);RS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RS.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"}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],RS.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],RS.prototype,"darkerDarkTheme",void 0);_.S([_.a({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],RS);
_.Y(RS,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(qQ0!==void 0)return qQ0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return qQ0=V},{mode:1});var XGW;var CP=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(CP,_.E);CP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CP.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"}}}}};
CP.prototype.onServiceRequestSentOrCompleted=function(V,D){D&&D.actions&&D.actions.length>0&&_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
CP.prototype.onServiceRequestSentOrCompleted=CP.prototype.onServiceRequestSentOrCompleted;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],CP.prototype,"darkerDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],CP.prototype,"data",void 0);
_.S([_.bU("yt-service-request-completed"),_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],CP.prototype,"onServiceRequestSentOrCompleted",null);_.S([_.a({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],CP);
_.Y(CP,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(XGW!==void 0)return XGW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return XGW=V},{mode:1});var ED0;var qj=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.submitButtonDisabled=!0;return V};
_.v(qj,_.E);_.P=qj.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.P.onDataChanged=function(){var V,D,f;if(((V=this.data)==null?void 0:(D=V.confirmButton)==null?void 0:(f=D.buttonRenderer)==null?void 0:f.isDisabled)!==void 0){var n,t,J;this.submitButtonDisabled=(n=this.data)==null?void 0:(t=n.confirmButton)==null?void 0:(J=t.buttonRenderer)==null?void 0:J.isDisabled}};
_.P.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.P.updateSubmitButtonDisabledFromBinding=function(V){this.submitButtonDisabled=V.detail.value};
_.P.updateSubmitButtonDisabledFromConfirmCheckbox=function(V){this.submitButtonDisabled=!V.detail.value};
qj.prototype.onDataChanged=qj.prototype.onDataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qj.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],qj.prototype,"darkerDarkTheme",void 0);
_.S([_.q(),_.p("design:type",Object)],qj.prototype,"submitButtonDisabled",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qj.prototype,"onDataChanged",null);_.S([_.a({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],qj);
_.Y(qj,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ED0!==void 0)return ED0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ED0=V},{mode:1});var Atv;var XM=function(){return _.E.apply(this,arguments)||this};
_.v(XM,_.E);_.IG.Object.defineProperties(XM.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var V,D,f;return((V=this.data)==null?void 0:V.title)+" "+((D=this.data)==null?void 0:D.metadataPrimary)+" "+((f=this.data)==null?void 0:f.metadataSecondary)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],XM.prototype,"data",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],XM.prototype,"ariaLabel",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],XM);
_.Y(XM,"ytd-compact-product-list-item-renderer",function(){if(Atv!==void 0)return Atv;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return Atv=V},{mode:1});var aSv;var EM=function(){return _.E.apply(this,arguments)||this};
_.v(EM,_.E);EM.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]]"}}}}}};
_.IG.Object.defineProperties(EM.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],EM.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],EM.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],EM);
_.Y(EM,"ytd-compact-product-list-renderer",function(){if(aSv!==void 0)return aSv;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return aSv=V},{mode:1});var YQ0;var Aj=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(Aj,_.E);_.P=Aj.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.getBackgroundUrl=function(){var V=this.get("data.headerImage.thumbnails");return V?"url("+_.nT(V,this.hostElement.clientWidth)+")":""};
_.P.onDataChanged=function(){var V=this.getBackgroundUrl();V&&(this.header.style.backgroundImage=V);V=_.Ni();var D=_.u8(),f=this.get("data.trackingParams");f&&D&&V&&_.Y8(V,D,_.gs(f));V=_.r(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=V.next();!D.done;D=V.next())D.value.onShow()};
_.P.onPopupClosed=function(V){_.x7(V).localName==="ytd-membership-post-cancel-renderer"&&_.o4(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Aj.prototype.onPopupClosed=Aj.prototype.onPopupClosed;Aj.prototype.onDataChanged=Aj.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Aj.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Aj.prototype,"darkerDarkTheme",void 0);
_.S([_.Zv("#header"),_.p("design:type",HTMLDivElement)],Aj.prototype,"header",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Aj.prototype,"onDataChanged",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Aj.prototype,"onPopupClosed",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Aj);
_.Y(Aj,"ytd-membership-post-cancel-renderer",function(){if(YQ0!==void 0)return YQ0;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return YQ0=V},{mode:1});var $6V;var aS=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(aS,_.E);aS.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
aS.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],aS.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],aS.prototype,"darkerDarkTheme",void 0);_.S([_.Zv("ytd-feedback-survey-renderer"),_.p("design:type",Object)],aS.prototype,"feedbackSurveyRenderer",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],aS);
_.Y(aS,"ytd-sponsorship-confirm-cancel-content",function(){if($6V!==void 0)return $6V;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return $6V=V},{mode:1});var ivR;var YZ=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.maybeSubmitFeedback=function(){V.content&&V.content.maybeSubmitFeedback()};
return V};
_.v(YZ,_.E);_.P=YZ.prototype;_.P.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.P.onYtPopupOpened=function(V,D){D===this&&this.data&&this.data.onOpenCommands&&_.wN(this.hostElement,this.data.onOpenCommands,this.hostElement);_.o4(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.P.onYtPopupClosed=function(V,D){(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.wN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.P.onYtServiceRequestError=function(V){_.Uw(this.hostElement,V.detail.error.message)};
_.P.onDataChanged=function(){if(this.isAttached){var V=this.backgroundUrl;V&&(_.Pt(this.hostElement).querySelector("#header").style.backgroundImage=V)}};
_.IG.Object.defineProperties(YZ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return V?"url("+_.nT(V,this.hostElement.clientWidth)+")":""}}});
YZ.prototype.onDataChanged=YZ.prototype.onDataChanged;YZ.prototype.onYtServiceRequestError=YZ.prototype.onYtServiceRequestError;YZ.prototype.onYtServiceRequestCompleted=YZ.prototype.onYtServiceRequestCompleted;YZ.prototype.onYtPopupClosed=YZ.prototype.onYtPopupClosed;YZ.prototype.onYtPopupOpened=YZ.prototype.onYtPopupOpened;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],YZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],YZ.prototype,"data",void 0);_.S([_.q({value:function(){return _.Zl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],YZ.prototype,"closeButtonAriaLabel",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],YZ.prototype,"darkerDarkTheme",void 0);_.S([_.Zv("#scrollable"),_.p("design:type",Object)],YZ.prototype,"scrollable",void 0);_.S([_.Zv("ytd-sponsorship-confirm-cancel-content"),_.p("design:type",Object)],YZ.prototype,"content",void 0);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],YZ.prototype,"onYtPopupOpened",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],YZ.prototype,"onYtPopupClosed",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],YZ.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],YZ.prototype,"onYtServiceRequestError",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YZ.prototype,"onDataChanged",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],YZ);
_.Y(YZ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ivR!==void 0)return ivR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ivR=V},{mode:_.J2("kevlar_poly_si_batch_j081")?1:2});var SQv;var $Z=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v($Z,_.E);$Z.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],$Z.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],$Z.prototype,"darkerDarkTheme",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],$Z);
_.Y($Z,"ytd-sponsorships-celebration-content",function(){if(SQv!==void 0)return SQv;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return SQv=
V},{mode:1});var Wy0;var pGR=_.WV(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ix=function(){var V=_.E.apply(this,arguments)||this;V.scriptsAppended=!1;V.buttonOverrides={type:"tonal",style:"overlay-dark"};return V};
_.v(ix,_.E);_.P=ix.prototype;
_.P.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:_.c("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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var V;(V=this.header)==null||V.style.setProperty("background-color",this.backgroundColor);if(V=this.headerImageUrl){var D;(D=this.header)==null||D.style.setProperty("background-image",V)}D=_.Ni(4);V=_.u8(4);var f=this.get("data.trackingParams");if(f&&V&&D){var n=_.gs(f);_.Y8(D,V,n);_.c("combine_ve_grafts")?_.lS().graftServerVe(f,V,4):_.Y8(D,V,n)}D=_.r(this.hostElement.querySelectorAll("yt-img-shadow"));for(V=D.next();!V.done;V=D.next())V.value.onShow();if(D=this.get("data.gtmId"))_.km(D,
_.XB("GL","")),this.setupConversionTracking()};
_.P.setupConversionTracking=function(){if(!this.scriptsAppended){var V=document.createElement("script");var D=_.Ee(pGR.join(""));_.a3(V,D);document.head.appendChild(V);V=document.createElement("noscript");V.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(V);this.scriptsAppended=!0}};
_.P.onPopupClosed=function(V){if(_.x7(V).localName==="ytd-sponsorships-celebration-renderer"){_.o4(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var D;this.data&&((D=this.data)==null?0:D.dismissCommand)&&_.bS.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.IG.Object.defineProperties(ix.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.aB(V)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return V?"url("+_.nT(V,this.hostElement.getBoundingClientRect().width)+")":""}}});
ix.prototype.onPopupClosed=ix.prototype.onPopupClosed;ix.prototype.onDataChanged=ix.prototype.onDataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],ix.prototype,"data",void 0);_.S([_.Zv("#header"),_.p("design:type",HTMLElement)],ix.prototype,"header",void 0);
_.S([_.q(),_.p("design:type",Object)],ix.prototype,"scriptsAppended",void 0);_.S([_.q(),_.p("design:type",Object)],ix.prototype,"buttonOverrides",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ix.prototype,"onDataChanged",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ix.prototype,"onPopupClosed",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ix);
_.Y(ix,"ytd-sponsorships-celebration-renderer",function(){if(Wy0!==void 0)return Wy0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Wy0=V},{mode:1});var LyZ;var SV=function(){var V=_.E.apply(this,arguments)||this;V.isToggleChecked=!1;return V};
_.v(SV,_.E);SV.prototype.onDataChanged=function(){var V;this.isToggleChecked=((V=this.data)==null?void 0:V.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
SV.prototype.close=function(){var V;((V=this.data)==null?0:V.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
SV.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var V,D=_.g((V=this.data)==null?void 0:V.switchButton,EBq);D&&(this.isToggleChecked&&D.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(D.switchOnInnertubeCommand),!this.isToggleChecked&&D.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(D.switchOffInnertubeCommand))};
SV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SV.prototype.onDataChanged=SV.prototype.onDataChanged;_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],SV.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],SV.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],SV.prototype,"isToggleChecked",void 0);_.S([_.q({value:_.Zl("CLOSE")}),_.p("design:type",String)],SV.prototype,"closeButtonAriaLabel",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SV.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],SV);
_.Y(SV,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(LyZ!==void 0)return LyZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return LyZ=V},{mode:1});var ISf;var WP=function(){return _.E.apply(this,arguments)||this};
_.v(WP,_.E);_.P=WP.prototype;_.P.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"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.playerElement.stop()};
_.P.onYtServiceRequestCompleted=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.P.onYtServiceRequestError=function(V){_.Uw(this.hostElement,V.detail.error.message)};
_.P.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.P.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.P.getTier=function(V,D){return!V||!V.tiers||D<0?null:_.g(V.tiers[D],$TJ)};
_.P.moreThanOne=function(V){return!!(V&&V.length>1)};
_.P.tierOverviewTap=function(V){var D=this;this.selectedTier=V.model.index;_.pO(this,function(){_.PA(D.hostElement,"yt-refit")})};
_.P.computeSelectedClass=function(V,D){return this.isSelected(V,D)?"selected":""};
_.P.computeButtonAriaPressed=function(V,D){return this.isSelected(V,D)?"true":"false"};
_.P.isSelected=function(V,D){return V===D};
_.P.onDataChanged=function(){_.Pt(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Pt(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 V=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),
D=V.next();!D.done;D=V.next())D.value.onShow();var f;this.set("selectedTier",(f=this.get("data.targetTierIndex"))!=null?f:0);var n;(V=(n=this.data)==null?void 0:n.onVisible)&&this.ytComponentBehavior.resolveCommand(V)};
_.P.initializeVe=function(V){var D=_.Ni(),f=_.u8(),n=this.get("data.trackingParams");f&&D&&(this.screenLayer=4,D=_.a9(_.GwR)(void 0,69877,{clientScreenNonce:D,visualElement:f},void 0,void 0,void 0),_.zR(D,69877,4),f=_.u8(4),n&&f&&(n=_.gs(n),_.Y8(D,f,n),V&&(this.offerVideoVe=_.Bj(74659),_.Y8(D,n,this.offerVideoVe))))};
_.P.setHeaderBackground=function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Pt(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.aB(V);if(V=this.getHeaderImage())V=_.nT(V,screen.width),_.Pt(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+V+")"};
_.P.getHeaderImage=function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&V?V:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setupVideoPlayer=function(V){var D=this,f,n,t,J;return _.w(function(H){if(H.nextAddress==1)return f=D.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),n=D.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.c("kevlar_player_update_killswitch")?D.playerElement.update({args:{autoplay:f,video_id:V,player_params:n}}):D.playerElement.loadVideoWithPlayerVars({autoplay:f,video_id:V,player_params:n}),
_.b(H,D.playerElement.getPlayerPromise(),2);t=H.yieldResult;t.addEventListener("onStateChange",function(Q){D.onPlayerStateChange(Q)});
t.setScreenLayer(D.screenLayer);(J=_.Ni(4))&&D.offerVideoVe&&_.iC(J,D.offerVideoVe);f&&(D.pauseOtherPlayers(),D.playerElement.focusOnPlayer(),D.playerElement.getPlayer().hideControls(),_.gq(_.dm,function(){D.fadeOutHeaderOverlay()},4E3));
_.yz(H)})};
_.P.onPlayerStateChange=function(V){V===1?this.backgroundPlayerElement&&(V=this.backgroundPlayerElement.player_.getPlayerState(),V!==1&&V!==3||this.backgroundPlayerElement.pause()):V===0&&(_.Pt(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Pt(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.P.fadeOutHeaderOverlay=function(){_.Pt(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.P.onHeaderTap=function(){if(this.offerVideo){_.Pt(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var V;((V=this.playerElement.player_)==null?void 0:V.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(V=_.Ni(4))&&this.offerVideoVe&&_.p6(V,this.offerVideoVe)}};
_.P.getBackgroundImageLayerClass=function(V){return V?"background-image-layer-with-video":""};
_.P.getHeaderClass=function(V){return V?"header-with-video":""};
_.P.getHeaderOverlayClass=function(V){return V?"header-overlay-with-video":""};
_.P.getTitleContainerClass=function(V,D){return V?"title-container-with-video":D?"title-container-without-video-flexible":"title-container-without-video"};
_.P.tierTitleDisplayStatus=function(V){return this.moreThanOne(V)?"hide":"show"};
_.P.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.DY().resolve(_.qw).getPlayerElement():this.backgroundPlayerElement=_.hI();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var V=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=V===1||V===3;this.backgroundPlayerElement.pause()}};
_.P.isMiniplayerActive=function(){return _.DY().resolve(_.qw).isMiniplayerActive()};
_.P.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("selected-tier-changed",this.selectedTier))};
WP.prototype.selectedTierChangedForBinding=WP.prototype.selectedTierChangedForBinding;WP.prototype.onDataChanged=WP.prototype.onDataChanged;WP.prototype.onYtPopupClosed=WP.prototype.onYtPopupClosed;WP.prototype.onYtPopupOpened=WP.prototype.onYtPopupOpened;WP.prototype.onYtServiceRequestError=WP.prototype.onYtServiceRequestError;WP.prototype.onYtServiceRequestCompleted=WP.prototype.onYtServiceRequestCompleted;
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],WP.prototype,"data",void 0);_.S([_.q({value:0}),_.p("design:type",Number)],WP.prototype,"selectedTier",void 0);
_.S([_.q({value:""}),_.p("design:type",String)],WP.prototype,"offerVideo",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],WP.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.S([_.q({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.fo(this)}}),
_.p("design:type",String)],WP.prototype,"playerId",void 0);_.S([_.Zv("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],WP.prototype,"scrollable",void 0);_.S([_.Zv("ytd-sponsorships-tier-renderer"),_.p("design:type",Object)],WP.prototype,"tierRenderer",void 0);_.S([_.Zv("#player"),_.p("design:type",Object)],WP.prototype,"playerElement",void 0);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WP.prototype,"onYtServiceRequestCompleted",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WP.prototype,"onYtServiceRequestError",null);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"onYtPopupOpened",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"onYtPopupClosed",null);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"onDataChanged",null);
_.S([_.KI("selectedTier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"selectedTierChangedForBinding",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],WP);
_.Y(WP,"ytd-sponsorships-offer-renderer",function(){if(ISf!==void 0)return ISf;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return ISf=V},{mode:_.J2("kevlar_poly_si_batch_j077")?1:2});var Ov0;var pP=function(){var V=_.E.apply(this,arguments)||this;V.buttonOverrides={type:"filled",style:"mono"};return V};
_.v(pP,_.E);pP.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}}}}}};
pP.prototype.backgroundColorChanged=function(){var V,D,f,n=(D=_.g((V=this.data)==null?void 0:V.content,i9X))==null?void 0:(f=D.backgroundColor)==null?void 0:f.backgroundColor;n&&(V=_.AP(n),_.Pt(this.hostElement).querySelector("#banner").style.backgroundColor=V,_.Pt(this.hostElement).querySelector("#abstract-art").style.backgroundColor=V)};
pP.prototype.attached=function(){this.JSC$18569_scroller&&(this.JSC$18569_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18569_scroller.attached&&typeof this.JSC$18569_scroller.attached==="function"&&this.JSC$18569_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pP.prototype.backgroundColorChanged=pP.prototype.backgroundColorChanged;_.S([_.q(),_.p("design:type",Object)],pP.prototype,"data",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#scroller"),_.p("design:type",Object)],pP.prototype,"JSC$18569_scroller",void 0);_.S([_.q(),_.p("design:type",Object)],pP.prototype,"buttonOverrides",void 0);
_.S([_.KI("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pP.prototype,"backgroundColorChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],pP);
_.Y(pP,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Ov0!==void 0)return Ov0;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Ov0=V},{mode:_.J2("kevlar_poly_si_batch_j077")?1:2});var x6c;var MZR;var LP=function(){return _.E.apply(this,arguments)||this};
_.v(LP,_.E);LP.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
LP.prototype.computeIsInitiallyChecked=function(V){return V===1};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],LP.prototype,"data",void 0);_.S([_.Zv("#checkbox"),_.p("design:type",Object)],LP.prototype,"checkbox",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],LP);
_.Y(LP,"ytd-subscription-toggle-option-renderer",function(){if(MZR!==void 0)return MZR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return MZR=V},{mode:1});var IS=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return V};
_.v(IS,_.E);IS.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"}}}};
IS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IS.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var V=_.Pt(this.hostElement).querySelector("#options").selected;V=this.data.options[V].subscriptionRadioOptionRenderer.serviceEndpoint;var D=_.Pt(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");D&&V&&V.modifyChannelNotificationPreferenceEndpoint&&(D=D.getValue())&&(V.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[D]);_.DY().resolve(_.fH).resolveCommand(V,{form:{element:this.hostElement}});
_.o4(this.hostElement,"yt-close-popup-action")};
_.IG.Object.defineProperties(IS.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var V=this.data.options,D=0;D<V.length;D++){var f=V[D].subscriptionRadioOptionRenderer;if(f&&f.selected)return D}return null}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],IS.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],IS.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],IS.prototype,"darkerDarkTheme",void 0);_.S([_.R("data.options"),_.p("design:type",Object),_.p("design:paramtypes",[])],IS.prototype,"initialIndex",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],IS);
_.Y(IS,"ytd-subscription-notification-options-renderer",function(){if(x6c!==void 0)return x6c;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return x6c=V},{mode:1});var hkf;var OM=function(){return _.E.apply(this,arguments)||this};
_.v(OM,_.E);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],OM.prototype,"data",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],OM);
_.Y(OM,"ytd-tvfilm-offer-groups-renderer",function(){if(hkf!==void 0)return hkf;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return hkf=V},{mode:1});var U6q;var xZ=function(){var V=_.E.apply(this,arguments)||this;V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(xZ,_.E);_.P=xZ.prototype;_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.P.computeThumbnailClass=function(V){return V.thumbnailOverlays?V.isShow?"thumbnail-show":"thumbnail-movie":V.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.P.computeCommerceSectionClass=function(V){return V.offers&&V.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.P.computeTitleClass=function(V){return V.offers&&V.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.P.onDataChanged=function(){[].concat(_.sz(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(V){V.onShow()})};
xZ.prototype.onDataChanged=xZ.prototype.onDataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],xZ.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],xZ.prototype,"darkerDarkTheme",void 0);
_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xZ.prototype,"onDataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],xZ);
_.Y(xZ,"ytd-ypc-offers-overlay-renderer",function(){if(U6q!==void 0)return U6q;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return U6q=V},{mode:_.J2("kevlar_poly_si_batch_j028")?1:2});var VcR;var DJc=function(){this.usedMethods=new Set};
DJc.prototype.add=function(V){this.usedMethods.add(V)};
DJc.prototype.reset=function(){this.usedMethods.clear()};var tcZ=function(V,D){this.query=V;this.previousSearchQuery=D;this.id=fOf++;if(!n50){D=_.XB("SBOX_SETTINGS");V="https://"+((D==null?void 0:D.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var f=D==null?void 0:D.REQUEST_LANGUAGE;f&&(V+="&hl="+f);(f=D==null?void 0:D.REQUEST_DOMAIN)&&(V+="&gl="+f);V+="&client=youtube&gs_ri=youtube";(f=D==null?void 0:D.SUGG_EXP_ID)&&(V+="&sugexp="+encodeURIComponent(f));(f=D==null?void 0:D.PSUGGEST_TOKEN)&&(V+="&tok="+f);(D=
D==null?void 0:D.SESSION_INDEX)&&(V+="&authuser="+D);_.c("desktop_enable_visual_suggest")&&(V+="&h=180&w=320&ytvs=1");n50=V}},P9W=function(V){var D="q="+encodeURIComponent(V.query);
V.previousSearchQuery&&(D+="&pq="+encodeURIComponent(V.previousSearchQuery));return D},o5c=function(){var V=_.XB("SBOX_SETTINGS"),D={};
if(V==null?0:V.SEND_VISITOR_DATA)D["X-Goog-Visitor-Id"]=V==null?void 0:V.VISITOR_DATA;return D},J7o=function(V){var D=n50;
D+="&gs_id="+V.id.toString(36);D+="&q="+encodeURIComponent(V.query);D+="&cp="+V.query.length;V.previousSearchQuery&&(D+="&pq="+encodeURIComponent(V.previousSearchQuery));(V=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(D+="&video_id="+V);return D},fOf=0,n50="";var r7V=_.pS.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,HzZ=_.pS.SEARCH_ENTITY_SUGGESTION_MOVIE,w_v=_.pS.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,QpW=_.pS.SEARCH_ENTITY_SUGGESTION_TV_SHOW,TtZ=function(V,D){this.text=V;this.bold=D},bzw=function(V,D,f){this.input=D;
this.index=f;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=V[0];this.type=V[1];this.subtypes=V[2];var n;this.displayText=Da((n=V[3])==null?void 0:n.b);var t;this.ignoredPrefix=Da((t=V[3])==null?void 0:t.a);var J,H;this.hasNewVideo=((J=V[3])==null?void 0:(H=J.zam)==null?void 0:H.toString())==="true"?!0:!1;var Q;this.visualSuggestUrl=(Q=V[3])==null?void 0:Q.zai;var T;this.entityType=Da((T=V[3])==null?void 0:T.zap);var y;this.entityName=Da((y=V[3])==null?void 0:y.zao);var Z;D=Da((Z=
V[3])==null?void 0:Z.zaf);var l;this.entityMid=(l=V[3])==null?void 0:l.zae;Z=PdB(this.subtypes,this.entityMid);if(D&&Z){if(D){l="";switch(Z){case "YOUTUBE_ENTITY_TYPE_SONG":l=w_v;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":l=r7V;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":l=QpW;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":l=HzZ}Z=Z==="YOUTUBE_ENTITY_TYPE_SONG"||Z==="YOUTUBE_ENTITY_TYPE_ALBUM"?l+" \u2022  \u2022 "+D:D}else Z="";this.entitySubtitle=Z}var G;this.externalChannelId=(G=V[3])==null?void 0:G.zav;var F;
this.entityThumbnailAttributionUrl=(F=V[3])==null?void 0:F.zaq},y7Z=function(V,D){var f=[],n,t=(n=V.displayText)!=null?n:V.text;
(D==null?0:D.useEntityName)&&KsJ(V)&&V.entityName&&(t=V.entityName);if(V.type===33)return f.push(new TtZ(t,!1)),f;if(t.length>=V.input.length&&t.substring(0,V.input.length)===V.input)f.push(new TtZ(V.input,!1)),f.push(new TtZ(t.substring(V.input.length),!0));else{var J=new Set(V.input.split(/\s/)),H=t.split(/\s/);f=H.map(function(Q,T){return new TtZ(Q.trim()+(T===H.length-1?"":" "),!J.has(Q))})}return f},KsJ=function(V){var D=!!PdB(V.subtypes);
V=!!V.entityMid;return D||V};var Zzo=function(V){this.rawResponse=["",[],{}];this.suggestions=[];try{var D=JSON.parse(o7V(V));if(typeof D==="object"&&D!==null)this.rawResponse=D;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(n){console.log("Suggest: Failed to parse SuggestResponse!");return}var f=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(n,t){return new bzw(n,f,t)})};var jpZ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new DJc;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18606_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},lOv,GuB=function(){lOv||(lOv=new jpZ);
return lOv};
jpZ.prototype.updateSuggestions=function(V){var D=this;this.availableSuggestions.forEach(function(f){D.previousSuggestions[f]=!0});
this.availableSuggestions=V.map(function(f){var n=f.type.toString();f.subtypes.length>0&&(n+="i"+f.subtypes.join("i"),n+="k"+f.suggestionSources.COMPLETE_SERVER.toString());return n})};
var eVW=function(V,D){var f=Date.now();V.firstEditTime<0&&(V.firstEditTime=f);D&&(V.lastQueryBuildTime=f);V.lastEditTime=f};
jpZ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18606_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var c7R=function(V){var D="";V.availableSuggestions.forEach(function(t){delete V.previousSuggestions[t]});
for(var f=_.r(Object.keys(V.previousSuggestions)),n=f.next();!n.done;n=f.next())n=n.value,V.previousSuggestions[n]&&(D+=(D?"j":"")+n);return D},FsV=function(V,D){var f=[];
D&&(f[1]=D.toString());f[0]="youtube";f[7]=Date.now()-V.startTime;f[6]=V.sessionNumber;V.zeroPrefixSuggestionCount>=0&&(f[33]=V.zeroPrefixSuggestionCount);f[13]=V.outOfSyncResponseCount;if(V.availableSuggestions.length>0){for(var n=D="",t=0,J=_.r(V.availableSuggestions),H=J.next();!H.done;H=J.next())H=H.value,H!==n&&(t>1&&(D+="l"+t),D+=(n?"j":"")+H,t=0,n=H),t+=1;t>1&&(D+="l"+t);f[3]=D}f[35]=c7R(V);V.selectedSuggestionIndex>=0&&(f[2]=V.selectedSuggestionIndex);var Q;if(D=(Q=_.XB("SBOX_SETTINGS"))==
null?void 0:Q.SUGG_EXP_ID)f[19]=V.normalize(D),Q=0,V.experimentTriggeredBeforeFinal&&(Q|=1),V.experimentTriggeredFinal&&(Q|=2),f[20]=Q;f[26]=Array.from(V.inputMethodsTracker.usedMethods).join("j");if(V.JSC$18606_totalRoundTripTime>0){f[15]=V.JSC$18606_totalRoundTripTime;f[14]=V.maxRoundTripTime;Q=[];for(t=D=0;t<10;t++)n=V.roundTripTimeHistogram[t],n===0?D++:(D>1?Q.push(t+"-"+n):D===1?Q.push("0j"+n):Q.push(n.toString()),D=0);Q=Q.join("j");f[16]=Q}V.zeroPrefixRoundTripTime>0&&(f[36]=V.zeroPrefixRoundTripTime);
V.lastQueryBuildTime>0&&(f[18]=V.lastQueryBuildTime-V.startTime);V.firstEditTime>0&&(f[4]=V.firstEditTime-V.startTime);V.lastEditTime>0&&(f[5]=V.lastEditTime-V.startTime);return f.join(".")};
jpZ.prototype.normalize=function(V){return V.replaceAll(".","-")};
var g5V=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Mj=function(){var V=_.E.apply(this,arguments)||this;V.microphoneSpinnerActive=!1;V.noAnimations=!1;V.boundExitClick=function(){V.onExitButtonClick()};
V.speechOverlayClassName="";V.isLevelAnimating=!1;V.playCloseDialogAudioFeedback=!0;V.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return V};
_.v(Mj,_.E);_.P=Mj.prototype;_.P.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=ThZ()};
_.P.dataChanged=function(){this.logDialog()};
_.P.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var V;(V=this.manager.audioPlayer)!=null&&(V.JSC$17896_audioEnabled=!1)}this.manager.stop();(V=this.manager.audioPlayer)!=null&&(V.JSC$17896_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.P.handleSpeechQueryCompleteAction=function(V){var D=V.navigationAction;D&&(V.trackingParams&&_.lS().graftServerVe(V.trackingParams,this.dialogVe,5),_.PA(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getNavigationParams(D),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.P.onExitButtonClick=function(){this.closeDialog()};
_.P.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var V;if((V=this.manager)!=null){var D;(D=V.audioPlayer)==null||$6(D,"failure");V.setState("microphone-off");V.stop()}}else(V=this.manager)==null||V.start()};
_.P.transcriptionChanged=function(){var V,D;(((V=this.transcription)==null?0:V.low)||((D=this.transcription)==null?0:D.high))&&this.setState("transcribing",this.transcription)};
_.P.stateChanged=function(){this.setState(this.state,this.transcription)};
_.P.logDialog=function(){var V;(V=this.data)!=null&&V.trackingParams&&(V=_.lS(),_.P5(V,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=V.graftServerVe(this.data.trackingParams,void 0,5))};
_.P.getNavigationParams=function(V){var D={};if(_.c("web_yt_searchbox")){var f=GuB();f.inputMethodsTracker.add(6);f=FsV(f,15);D.gs_l=f;var n;D.oq=((n=_.g(V,_.ld))==null?void 0:n.query)||""}else if(V=window.ytvoicesearchloggingparams){if(V=V())D.oq=V.oq,D.gs_l=V.gs_l}else _.$w(Error("sl"));return D};
_.P.closeDialog=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.P.setState=function(V,D){if(this.data){var f=this.data,n={};switch(V){case "listening":n={headerText:f.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "timeout":n={headerText:f.promptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,microphoneAriaLabel:f.promptMicrophoneLabel};break;case "microphone-off":n={headerText:f.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,
microphoneAriaLabel:f.promptMicrophoneLabel};break;case "transcribing":(D==null?0:D.low)||(D==null?0:D.high)?n={transcriptionLow:D==null?void 0:D.low,transcriptionHigh:D==null?void 0:D.high,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel}:n={headerText:f.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "processing":n={headerText:f.loadingHeader,microphoneState:"processing",microphoneAriaLabel:f.microphoneButtonAriaLabel};
break;case "offline":n={headerText:f.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:f.connectionErrorMicrophoneLabel,microphoneAriaLabel:f.connectionErrorMicrophoneLabel};break;case "permission":n={headerText:f.permissionsHeader,bodyLine1:f.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:f.permissionsSubtext};break;case "permission-denied":n={headerText:f.disabledHeader,bodyLine1:f.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:f.disabledSubtext}}n.className=
V;this.speechOverlayState=n;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.P.setMicrophoneState=function(V){var D=this.isLevelAnimating;this.isLevelAnimating=V==="speaking";!D&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=V==="processing"&&!this.noAnimations};
_.P.setClass=function(V){this.speechOverlayClassName&&_.JA(this.hostElement,this.speechOverlayClassName,!1);V&&(this.speechOverlayClassName=V,_.JA(this.hostElement,V,!0))};
_.P.runLevelAnimation=function(){var V=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var D=1+Math.random()*.75,f=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+f/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+D+")");_.dm.addJob(function(){V.runLevelAnimation()},3,f)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Mj.prototype.stateChanged=Mj.prototype.stateChanged;Mj.prototype.transcriptionChanged=Mj.prototype.transcriptionChanged;Mj.prototype.onPopupClosed=Mj.prototype.onPopupClosed;Mj.prototype.dataChanged=Mj.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Mj.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Mj.prototype,"rendererStamperBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],Mj.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Mj.prototype,"eventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Mj.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Mj.prototype,"speechOverlayState",void 0);
_.S([_.q(),_.p("design:type",Object)],Mj.prototype,"microphoneSpinnerActive",void 0);_.S([_.q({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.p("design:type",Object)],Mj.prototype,"noAnimations",void 0);_.S([_.q({selector:function(V){var D;return(D=V.voiceSearch)==null?void 0:D.transcription}}),
_.p("design:type",Object)],Mj.prototype,"transcription",void 0);_.S([_.q({selector:function(V){var D;return(D=V.voiceSearch)==null?void 0:D.overlay}}),
_.p("design:type",String)],Mj.prototype,"state",void 0);_.S([_.q(),_.p("design:type",Object)],Mj.prototype,"boundExitClick",void 0);_.S([_.Zv("#microphone-levels"),_.p("design:type",HTMLElement)],Mj.prototype,"level",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mj.prototype,"dataChanged",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mj.prototype,"onPopupClosed",null);
_.S([_.eY("transcription"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mj.prototype,"transcriptionChanged",null);_.S([_.eY("state"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mj.prototype,"stateChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Mj);
_.Y(Mj,"ytd-voice-search-dialog-renderer",function(){if(VcR!==void 0)return VcR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return VcR=V},{mode:1});var v5o;var hj=function(){var V=_.E.apply(this,arguments)||this;V.isOverlay=!1;V.hidden=!1;return V};
_.v(hj,_.E);_.P=hj.prototype;_.P.onPopupClosed=function(){this.toggleIconState(!1)};
_.P.computeIcon=function(){var V,D,f;return(D=_.g((V=this.data)==null?void 0:V.icon,I80))==null?void 0:(f=D.icon)==null?void 0:f.iconType};
_.P.computeIconBadgeShape=function(){var V;return{iconBadgeType:"cart",iconBadgeText:(V=this.iconBadgeEntity)==null?void 0:V.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.onClick=function(){var V;(V=this.data)!=null&&V.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.P.computeHidden=function(V){return!V};
_.P.toggleIconState=function(V){this.iconButton&&(this.iconButton.pressed=V)};
hj.prototype.onPopupClosed=hj.prototype.onPopupClosed;_.S([_.u(_.dh),_.p("design:type",Object)],hj.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],hj.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],hj.prototype,"isOverlay",void 0);
_.S([_.q({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.p("design:type",Object)],hj.prototype,"hidden",void 0);_.S([_.q({selectorArgs:["data.iconBadgeEntityKey"],selector:function(V,D){return _.wg(V.entities,"iconBadgeEntity",D)}}),
_.p("design:type",Object)],hj.prototype,"iconBadgeEntity",void 0);_.S([_.Zv("yt-icon-button"),_.p("design:type",HTMLButtonElement)],hj.prototype,"iconButton",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hj.prototype,"onPopupClosed",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],hj);
_.Y(hj,"ytd-icon-badge-topbar-button-renderer",function(){if(v5o!==void 0)return v5o;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return v5o=V},{mode:1});var kuX;var UM=function(){var V=_.E.apply(this,arguments)||this;V.premiumOptions=[];V.darkerDarkTheme=_.c("web_darker_dark_theme");return V};
_.v(UM,_.E);UM.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.IG.Object.defineProperties(UM.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],UM.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Array)],UM.prototype,"premiumOptions",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],UM.prototype,"darkerDarkTheme",void 0);_.S([_.R("premiumOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],UM.prototype,"hasPremiumOptions",null);
_.S([_.a({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],UM);
_.Y(UM,"ytd-offline-promo-content",function(){if(kuX!==void 0)return kuX;var V=document.createElement("template");_.B(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return kuX=V},{mode:1});var spW;var VQ=function(){var V=_.E.apply(this,arguments)||this;V.premiumOptions=[];return V};
_.v(VQ,_.E);VQ.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var V;this.premiumOptions=tLX((V=this.data)==null?void 0:V.formats)};
VQ.prototype.onClickSubmit=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var V;(V=_.hI())==null||V.pause()};
VQ.prototype.attached=function(){this.JSC$18626_scroller&&(this.JSC$18626_scroller.dialogElement=this.hostElement.parentNode)};
_.IG.Object.defineProperties(VQ.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
VQ.prototype.dataChanged=VQ.prototype.dataChanged;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],VQ.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],VQ.prototype,"data",void 0);
_.S([_.q({computed:"computeIcon_(data.headersIcon)",value:""}),_.p("design:type",String)],VQ.prototype,"headersIcon",void 0);_.S([_.q(),_.p("design:type",Array)],VQ.prototype,"premiumOptions",void 0);_.S([_.Zv("#scroller"),_.p("design:type",Object)],VQ.prototype,"JSC$18626_scroller",void 0);_.S([_.R("headersIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],VQ.prototype,"showIcon",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VQ.prototype,"dataChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],VQ);
_.Y(VQ,"ytd-offline-promo-renderer",function(){if(spW!==void 0)return spW;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return spW=V},{mode:1});var Bto;var Dm=function(){var V=_.E.apply(this,arguments)||this;V.playbackPauseInterval=NaN;V.isLoading=!1;V.hasError=!1;V.dialogClass="";V.youtubeLabel=_.Zl("LOGO_ALT_LABEL",{},"YouTube Home");V.logoName="yt-logos-ext:yt-logo-updated";V.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return V};
_.v(Dm,_.E);_.P=Dm.prototype;_.P.onDataChange=function(){var V;if(this.showEOMV1Text=!((V=this.data)==null||!V.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.P.attached=function(){this.pausePlayer()};
_.P.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.P.handleLangSelect=function(V){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[V.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.P.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.P.handleSaveConsent=function(V){var D=this;this.showLoadingSpinner();this.showLoadingSpinner();ABJ(_.g(V,Ofw)).catch(function(f){_.zP(new _.cI("Something went wrong when save consent "+(f.message?f.message:f)+"."));D.hideLoadingSpinner();D.showErrorMessage()})};
_.P.handleDisablePersonalization=function(V){var D=this;this.showLoadingSpinner();adR(_.g(V,I7f)).then(function(){D.dialog.close();D.resumePlayer()}).catch(function(f){_.zP(new _.cI("Something went wrong when disable personalization "+(f.message?f.message:f)+"."));
D.hideLoadingSpinner();D.showErrorMessage()})};
_.P.showLoadingSpinner=function(){var V=this;this.showSpinnerJobId=_.dm.addLowPriorityJob(function(){V.isLoading=!0},500)};
_.P.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.dm.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.P.showErrorMessage=function(){var V=this;this.hasError=!0;_.dm.addLowPriorityJob(function(){V.hasError=!1},2E3)};
_.P.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.HI(function(){try{var V=_.hI();V&&V.pause()}catch(D){}},100))};
_.P.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var V=_.hI();V&&V.play()}catch(D){}};
_.IG.Object.defineProperties(Dm.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.eomV1Text)return[];V=[];for(var D=["SHIELD","WARNING","BAR_CHART"],f=this.data.eomV1Text.essentialCookieMsg.items,n=0;n<D.length&&n<f.length;n++)V.push({icon:D[n],text:f[n]});return V}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.eomV1Text)return[];V=[];for(var D=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],f=this.data.eomV1Text.nonEssentialCookieMsg.items,n=0;n<D.length&&n<f.length;n++)V.push({icon:D[n],text:f[n]});return V}}});
Dm.prototype.onDataChange=Dm.prototype.onDataChange;_.S([_.q(),_.p("design:type",Object)],Dm.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],Dm.prototype,"showEOMV1Text",void 0);_.S([_.q(),_.p("design:type",Object)],Dm.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Object)],Dm.prototype,"hasError",void 0);_.S([_.q(),_.p("design:type",Number)],Dm.prototype,"showSpinnerJobId",void 0);_.S([_.q(),_.p("design:type",Object)],Dm.prototype,"dialogClass",void 0);
_.S([_.Zv("#dialog"),_.p("design:type",Object)],Dm.prototype,"dialog",void 0);_.S([_.Zv("#cb-header"),_.p("design:type",HTMLElement)],Dm.prototype,"header",void 0);_.S([_.Zv("#lang-select"),_.p("design:type",HTMLElement)],Dm.prototype,"langSelect",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Dm.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Dm.prototype,"ytComponentBehavior",void 0);
_.S([_.q(),_.p("design:type",String)],Dm.prototype,"youtubeLabel",void 0);_.S([_.q(),_.p("design:type",Object)],Dm.prototype,"logoName",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dm.prototype,"onDataChange",null);_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Dm.prototype,"eomEssentialCookieMsgItems",null);
_.S([_.R("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Dm.prototype,"eomNonEssentialCookieMsgItems",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Dm);
_.Y(Dm,"ytd-consent-bump-v2-lightbox",function(){if(Bto!==void 0)return Bto;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return Bto=V},{mode:1});var dJW;var fr=function(){return _.E.apply(this,arguments)||this};
_.v(fr,_.E);fr.prototype.ready=function(){if(!_.lE()||Q7f)var V=!0;else Q7f=!0,V=!1;V||(V=document.querySelector("ytd-app"),V||(V=document.body),this.internalLightBox=_.Pt(V).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.S([_.q(),_.p("design:type",Object)],fr.prototype,"data",void 0);_.S([_.Zv("#lightbox"),_.p("design:type",Object)],fr.prototype,"lightBox",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],fr);
_.Y(fr,"ytd-consent-bump-v2-renderer",function(){if(dJW!==void 0)return dJW;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return dJW=V},{mode:1});var ueq;var Ntv;var mJJ;var nr=function(){return _.E.apply(this,arguments)||this};
_.v(nr,_.E);_.P=nr.prototype;_.P.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lnw(this.toastManager,this.toastType)};
_.P.open=function(V){this.toast&&(this.ephemeralAction&&_.DY().resolve(_.TZ).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=V!=null?V:0,this.toastManager.enqueue(this.toast,V)):this.toast.open())};
_.P.close=function(V){var D;(D=this.toast)==null||D.close();this.toastManager&&V===1&&lnw(this.toastManager,V)};
_.P.refit=function(){var V;(V=this.toast)==null||V.refit()};
_.P.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var V;(V=this.toast)==null||V.close()}};
_.P.setVerticalOffset=function(V){this.toast&&(this.toast.verticalOffset=V,this.toast.fit())};
_.P.computeButtonClass_=function(V){return V?"toast-button":""};
_.P.computeText_=function(V){return _.LA(V)};
_.P.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Av("toast-opened-changed",this.toastOpened))};
_.P.updateToastOpenedFromBinding=function(V){this.toastOpened=V.detail.value};
_.IG.Object.defineProperties(nr.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var V,D,f=(V=this.data)==null?void 0:(D=V.actionButton)==null?void 0:D.buttonRenderer;return(f==null?void 0:f.command)||(f==null?void 0:f.serviceEndpoint)||(f==null?void 0:f.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var V=[],D;((D=this.data)==null?0:D.responseText)&&V.push(_.LA(this.data.responseText));var f;((f=this.data)==null?0:f.subText)&&V.push(_.LA(this.data.subText));var n,t;if((n=this.data)==null?0:(t=n.actionButton)==null?0:t.buttonRenderer){var J,H;V.push(((J=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(H=J.accessibilityData)==null?void 0:H.label)||_.LA(this.data.actionButton.buttonRenderer.text))}return V.filter(function(Q){return Q}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var V,D;return(D=(V=this.toast)==null?void 0:V.opened)!=null?D:!1}}});
nr.prototype.toastOpenedChangedForBinding=nr.prototype.toastOpenedChangedForBinding;nr.prototype.toastOpenedChanged=nr.prototype.toastOpenedChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],nr.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],nr.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],nr.prototype,"duration",void 0);
_.S([_.q(),_.p("design:type",Number)],nr.prototype,"toastType",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],nr.prototype,"useCloseButton",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],nr.prototype,"closeToastOnActionButtonClick",void 0);_.S([_.q({value:function(){return _.Zl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],nr.prototype,"closeButtonAriaLabel",void 0);_.S([_.q(),_.p("design:type",Boolean)],nr.prototype,"toastOpened",void 0);_.S([_.q(),_.p("design:type",Boolean)],nr.prototype,"hasOpened",void 0);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],nr.prototype,"command",null);_.S([_.R("labelText","command","duration"),_.p("design:type",Object),_.p("design:paramtypes",[])],nr.prototype,"ephemeralAction",null);
_.S([_.R("ephemeralAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],nr.prototype,"hasEphemeralAction",null);_.S([_.Zv("#toast"),_.p("design:type",Object)],nr.prototype,"toast",void 0);_.S([_.q({value:function(){return{style:"call-to-action-inverse"}}}),
_.p("design:type",Object)],nr.prototype,"buttonOverrides",void 0);_.S([_.q({value:{style:"mono-inverse"}}),_.p("design:type",Object)],nr.prototype,"closeButtonOverrides",void 0);_.S([_.q({value:function(){return _.DY().resolve(_.Vx(_.Jo))}}),
_.p("design:type",Object)],nr.prototype,"toastManager",void 0);_.S([_.R("data.responseText","data.subText","data.actionButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],nr.prototype,"labelText",null);_.S([_.KI("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nr.prototype,"toastOpenedChanged",null);
_.S([_.KI("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nr.prototype,"toastOpenedChangedForBinding",null);_.S([_.zy({is:"yt-notification-action-renderer",disableElementRegistration:!0})],nr);
_.Y(nr,"yt-notification-action-renderer",function(){if(mJJ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Ntv===void 0&&(Ntv=document.createElement("template"));var n=Ntv;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mJJ=V}V=mJJ;return V},{mode:2});var tC=function(){var V=_.E.apply(this,arguments)||this;V.duration=4E3;V.downloadingCount=0;V.downloadedCount=0;V.downloadingOnlySmartDownloads=!1;V.sessionTotalDownloads=0;V.sessionDownloaded=0;V.previousSessionsDownloaded=0;V.totalDownloadPercentage=0;V.currentDownloadProgress=0;V.currentDownloadPercentage=0;V.isLeaderTab=!0;V.isFullScreen=!1;V.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};V.boundBeforeUnload=function(D){V.isLeaderTab&&V.downloadingCount>0&&(D.preventDefault(),
D.returnValue=!0)};
return V};
_.v(tC,_.E);_.P=tC.prototype;
_.P.open=function(){this.updateDownloadState();if(this.data){var V=this.sessionDownloaded+1,D=this.sessionTotalDownloads>1?_.Zl("VIDEOS_DOWNLOADING_RATIO",{downloaded:V.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+V+"/"+this.sessionTotalDownloads):_.Zl("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(D=this.sessionTotalDownloads>1?_.Zl("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:V.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
V+"/"+this.sessionTotalDownloads):_.Zl("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));V=this.isLeaderTab?_.Zl("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.LA(this.data.responseText)!==D||_.LA(this.data.subText)!==V)this.set("data.responseText",_.pA(D)),this.set("data.subText",_.pA(V)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.P.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.P.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.P.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.P.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var V=this.downloadedCount-this.previousSessionsDownloaded;V<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-V);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.P.handleFullscreenChange=function(V){(this.isFullScreen=V)||this.updatePopup()};
tC.prototype.updateCurrentDownloadProgress=tC.prototype.updateCurrentDownloadProgress;tC.prototype.updatePopup=tC.prototype.updatePopup;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],tC.prototype,"ytEventForwardingBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],tC.prototype,"actionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"duration",void 0);_.S([_.q({selector:function(V){return _.ONR(V.entities).length}}),
_.p("design:type",Object)],tC.prototype,"downloadingCount",void 0);_.S([_.q({selector:OhR}),_.p("design:type",Object)],tC.prototype,"downloadedCount",void 0);_.S([_.q({selector:function(V){var D=_.ONR(V.entities);return Idf(V.entities,D)}}),
_.p("design:type",Object)],tC.prototype,"downloadingOnlySmartDownloads",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"sessionTotalDownloads",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"sessionDownloaded",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"previousSessionsDownloaded",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"totalDownloadPercentage",void 0);
_.S([_.q({selector:function(V){var D;V=(D=_.ONR(V.entities))!=null?D:[];return V.length>0?_.E9L(V.slice(-1)):0}}),
_.p("design:type",Object)],tC.prototype,"currentDownloadProgress",void 0);_.S([_.q(),_.p("design:type",Object)],tC.prototype,"currentDownloadPercentage",void 0);_.S([_.q({selector:_.ubc}),_.p("design:type",Object)],tC.prototype,"isLeaderTab",void 0);_.S([_.Zv("yt-notification-action-renderer"),_.p("design:type",Object)],tC.prototype,"notificationActionRenderer",void 0);
_.S([_.eY("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tC.prototype,"updatePopup",null);_.S([_.eY("currentDownloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tC.prototype,"updateCurrentDownloadProgress",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],tC);
_.Y(tC,"ytd-video-download-toast-renderer",function(){if(ueq!==void 0)return ueq;var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return ueq=V},{mode:1});var zVo;var RV3;var Pz=function(){return _.E.apply(this,arguments)||this};
_.v(Pz,_.E);Pz.prototype.computeIsRedLogo=function(V,D){!V&&D&&(V=D);return V==="YOUTUBE_RED_LOGO"||V==="YOUTUBE_PREMIUM_LOGO"};
Pz.prototype.computeLogoName=function(V){V=this.componentBehavior.computeIcon_(V);return V===""?"yt-logos-ext:yt-logo-updated":V};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Pz.prototype,"componentBehavior",void 0);_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.p("design:type",Boolean)],Pz.prototype,"isRedLogo",void 0);_.S([_.q({computed:"computeLogoName(data)"}),_.p("design:type",String)],Pz.prototype,"logoName",void 0);_.S([_.q({value:{}}),_.p("design:type",Object)],Pz.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],Pz.prototype,"logoType",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-logo"})],Pz);
_.Y(Pz,"ytd-logo",function(){if(RV3!==void 0)return RV3;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return RV3=V},{mode:_.J2("kevlar_poly_si_batch_j074")?1:2});var o6=function(){var V=_.E.apply(this,arguments)||this;V.animationRef={};return V};
_.v(o6,_.E);_.P=o6.prototype;_.P.attached=function(){document.addEventListener("yt-navigate-finish",_.Ty(this,this.logYoodle))};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ty(this,this.logYoodle))};
_.P.logYoodle=function(){var V,D;if((V=this.data)==null?0:(D=V.loggingDirectives)==null?0:D.trackingParams)this.ytRendererBehavior.markDirty(),_.lS().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.P.computeHideImg=function(V,D){return!!V||!!D};
_.P.computeHideYtdLogo=function(V,D){return!V||!!D};
_.P.computeHideLottie=function(V){return!V};
_.P.computeIsRedLogo=function(V){return V==="YOUTUBE_RED_LOGO"||V==="YOUTUBE_PREMIUM_LOGO"};
_.P.renderLogoEntity=function(){var V=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),D=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),f=this.getLogoTitleText(this.data),n=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==V&&(this.url=V);this.animatedUrl!==D&&(this.animatedUrl=D);this.logoTitleText!==f&&(this.logoTitleText=f);this.lottieUrl!==n&&(this.lottieUrl=n,this.lottiePlayerProps=this.computeLottiePlayerProps(n))};
_.P.getSanitizedThumbnail=function(V){return V&&V.thumbnails?_.tm9(V.thumbnails,122)||"":""};
_.P.getThumbnailUrl=function(V,D){if(!D)return"";var f,n;V=V?(f=D.darkThemeLogo)==null?void 0:f.thumbnail:(n=D.lightThemeLogo)==null?void 0:n.thumbnail;return this.getSanitizedThumbnail(V)};
_.P.getAnimatedThumbnailUrl=function(V,D){return D?this.getSanitizedThumbnail(V?D.darkThemeAnimatedLogo:D.lightThemeAnimatedLogo):""};
_.P.getLogoTitleText=function(V){if(V)return _.LA(V.tooltipText)};
_.P.computeLogoIcon=function(V,D){if(D){var f,n;return V?(f=D.darkThemeLogo)==null?void 0:f.icon:(n=D.lightThemeLogo)==null?void 0:n.icon}};
_.P.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.P.getLottieUrl=function(V,D){var f,n,t,J;return V?D==null?void 0:(f=D.darkThemeLogo)==null?void 0:(n=f.lottieAnimation)==null?void 0:n.url:D==null?void 0:(t=D.lightThemeLogo)==null?void 0:(J=t.lottieAnimation)==null?void 0:J.url};
_.P.computeLottiePlayerProps=function(V){if(V){var D;if((D=this.animationRef)==null?0:D.lottieEl){var f;(f=this.animationRef)==null||f.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:V,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.P.onLottieError=function(){this.data&&this.lottieUrl&&_.PA(this.hostElement,"yoodle-error")};
_.P.onImgError=function(){this.data&&!this.lottieUrl&&_.PA(this.hostElement,"yoodle-error")};
o6.prototype.playAnimation=o6.prototype.playAnimation;o6.prototype.renderLogoEntity=o6.prototype.renderLogoEntity;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],o6.prototype,"data",void 0);_.S([_.q({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],o6.prototype,"hideImg",void 0);
_.S([_.q({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],o6.prototype,"hideYtdLogo",void 0);_.S([_.q({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.p("design:type",Boolean)],o6.prototype,"hideLottie",void 0);_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.p("design:type",Boolean)],o6.prototype,"isRedLogo",void 0);
_.S([_.q(),_.p("design:type",Boolean)],o6.prototype,"useDarkThemeYoodle",void 0);_.S([_.q(),_.p("design:type",String)],o6.prototype,"url",void 0);_.S([_.q(),_.p("design:type",String)],o6.prototype,"animatedUrl",void 0);_.S([_.q(),_.p("design:type",String)],o6.prototype,"logoTitleText",void 0);_.S([_.q({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.p("design:type",Object)],o6.prototype,"logoIcon",void 0);_.S([_.q(),_.p("design:type",Object)],o6.prototype,"logoType",void 0);
_.S([_.q(),_.p("design:type",String)],o6.prototype,"lottieUrl",void 0);_.S([_.q(),_.p("design:type",Object)],o6.prototype,"lottiePlayerProps",void 0);_.S([_.q(),_.p("design:type",Object)],o6.prototype,"animationRef",void 0);_.S([_.KI("data"),_.KI("useDarkThemeYoodle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o6.prototype,"renderLogoEntity",null);
_.S([_.bU("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],o6.prototype,"playAnimation",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],o6);
_.Y(o6,"ytd-yoodle-renderer",function(){if(zVo!==void 0)return zVo;var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return zVo=V},{mode:_.J2("kevlar_poly_si_batch_j074")?1:2});var C9X;var qtJ;var JC=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return V};
_.v(JC,_.E);_.P=JC.prototype;_.P.onYoodleError=function(){_.c("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.P.computeLogoName=function(V){V=this.componentBehavior.computeIcon_(V);return V===""?"yt-logos-ext:yt-logo-updated":V};
_.P.computeTitle=function(V,D,f){return f&&(D==null?0:D.tooltipText)?_.LA(D.tooltipText):_.LA(V)};
_.P.computeAriaLabel=function(V,D,f){return f&&(D==null?0:D.tooltipText)?_.LA(V):""};
_.P.computeShowYoodle=function(V,D,f){return!V||!D&&!!f&&!_.sB.isEmpty(f)};
_.P.onNavigateHomeAction=function(){if(_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var V;(V=_.Pt(this.hostElement).querySelector(".yt-simple-endpoint"))==null||V.click()}};
_.P.computeLogoHref=function(V,D,f){var n;(f==null?0:f.onTapCommand)?n=this.componentBehavior.computeHref_(f.onTapCommand):V&&(n=this.componentBehavior.computeHref_(V));return n?n:D};
_.P.computeCommand=function(V,D){return(D==null?void 0:D.onTapCommand)||V};
_.P.getEndpointForm=function(){if(_.c("kevlar_topbar_disable_cache_only_home")){var V=_.DY().resolve(_.C1),D=f5X(V.getState())||"";V=_.uxY(V.getState())||"";return{disableCache:D==="ytd-browse"&&V==="home"}}return{disableCache:!0}};
JC.prototype.onYoodleError=JC.prototype.onYoodleError;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],JC.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],JC.prototype,"componentBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],JC.prototype,"ytdReduxBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],JC.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],JC.prototype,"countryCode",void 0);_.S([_.q({selectorArgs:["data.overrideEntityKey"],selector:function(V,D){return _.wg(V.entities,"logoEntity",D)}}),
_.p("design:type",Object)],JC.prototype,"logoEntity",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.p("design:type",Boolean)],JC.prototype,"showYoodle",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],JC.prototype,"yoodleError",void 0);_.S([_.q({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],JC.prototype,"titleText",void 0);
_.S([_.q({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],JC.prototype,"ariaLabelText",void 0);_.S([_.q({value:"/"}),_.p("design:type",String)],JC.prototype,"defaultEndpointUrl",void 0);_.S([_.q({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.p("design:type",String)],JC.prototype,"endpointUrl",void 0);
_.S([_.q({computed:"computeCommand(data.endpoint, logoEntity)"}),_.p("design:type",String)],JC.prototype,"command",void 0);_.S([_.q(),_.p("design:type",Object)],JC.prototype,"logoType",void 0);_.S([_.q({}),_.p("design:type",Boolean)],JC.prototype,"useDarkThemeYoodle",void 0);_.S([_.bU("yoodle-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JC.prototype,"onYoodleError",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],JC);
_.Y(JC,"ytd-topbar-logo-renderer",function(){if(qtJ!==void 0)return qtJ;var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return qtJ=V},{mode:_.J2("kevlar_poly_si_batch_j027")?1:2});var X_3=0;var E5W=_.pS.SEARCH_APPEND_LABEL,A7X=_.pS.SUGGESTION_NEW_VIDEOS_TEXT,aOR=_.pS.SUGGESTION_THUMBNAIL_LABEL,YtR=_.pS.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,$JZ=_.MA(function(V){function D(dP){var Q0,o3;return _.w(function(oq){if(oq.nextAddress==1)return Q0=new Request(dP),_.wx(oq,2),_.b(oq,fetch(Q0,{credentials:"include"}),4);if(oq.nextAddress!=2)return wu(!0),_.YJ(oq,0);o3=_.KW(oq);_.zP(o3);_.yz(oq)})}
var f=V.isHighlighted;var n=V.suggestion;var t=V.onClickCallback;var J=V.onHoverUpdateCallback;var H=V.labels;var Q=V.queryBuilderFunction;var T=V.onRemoveCallback;var y=V.suggestionIndex;var Z=V.generateUniqueId;var l=V.highlightedId;var G=V.useScrollMargin;var F=V.isKeyboardMode;var k=null,d=null,z=_.W2("div"),C=_.W2("span");V=_.r(_.HJ(!1,void 0,"CgAMgc"));var A=V.next().value,O=V.next().value,W=_.py("a",function(dP){dP&&_.mD(237477,dP,d,function(Q0){d=Q0})}),I=_.py("button",function(dP){dP&&_.mD(237477,
dP,d,function(Q0){d=Q0})}),x=_.jl(function(dP){if((dP==null?void 0:dP.button)===2)return dP.preventDefault(),!1;
var Q0=_.Ni();Q0&&k&&_.L6(Q0,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var o3;t(dP,n().text,n().index,n().entityMid,dP==null?void 0:(o3=dP.detail)==null?void 0:o3.wasSelectedByKeyboard);return!1}),oY=function(){return n().type===35},wZ=function(){return _.c("desktop_enable_single_suggestion_highlight")},ZZ=function(){return _.tU("desktop_suggestions_panel_row_height")||0},sd=function(){var dP;
return _.c("desktop_enable_new_video_metadata")&&((dP=n())==null?void 0:dP.hasNewVideo)===!0},NU=function(){return _.c("desktop_enable_visual_suggest")},Bn=function(){return _.c("desktop_enable_entity_suggest")&&KsJ(n())},aY=function(){return n().entitySubtitle},Ed=function(){return wZ()?(f==null?void 0:f())||wP()&&!(F==null?0:F()):(f==null?void 0:f())||wP()},V0=function(){var dP=_.XB("SBOX_SETTINGS");
return oY()&&!(dP==null?0:dP.HIDE_REMOVE_LINK)},kf=function(){return y7Z(n(),{useEntityName:Bn()})},mY,Ko=!((mY=_.DY().resolve(_.Vx(_.pm)))==null||!mY()),Eu=function(){return oY()?_.c("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},y0=function(){return H==null?void 0:H().SUGGESTION_DISMISS_LABEL},BH=function(){return H==null?void 0:H().SUGGESTION_DISMISSED_LABEL};
V=_.r(_.HJ(!1,void 0,"RcUcKd"));mY=V.next().value;var wu=V.next().value;V=_.r(_.HJ(!1,void 0,"yGR7je"));var lF=V.next().value,rZ=V.next().value,wP=lF,gP=_.jl(function(){Q(C.value.innerText);return!1}),uX=_.jl(function(dP){dP.preventDefault();
return!1}),cH=_.jl(function(dP){var Q0=n().text,o3=_.XB("SBOX_SETTINGS"),oq="https://"+(o3.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
oq+="&delq="+encodeURIComponent(Q0);(Q0=o3==null?void 0:o3.PSUGGEST_TOKEN)&&(oq+="&tok="+Q0);(o3=o3==null?void 0:o3.SESSION_INDEX)&&(oq+="&authuser="+o3);D(oq);dP.preventDefault();(dP=_.Ni())&&d&&_.L6(dP,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");T(y==null?void 0:y());return!1}),WH=_.jl(function(){if(wZ()&&(F==null?0:F()))return!1;
rZ(!0);J(!0);return!1}),S5=_.jl(function(){rZ(!1);
J(!1);return!1}),Il=_.jl(function(){O(!0);
return!1}),ol=_.jl(function(){O(!1);
return!1}),al=_.jl(function(dP){dP.preventDefault();
var Q0;(dP=(Q0=n().entityThumbnailAttributionUrl)!=null?Q0:"")&&_.cfY(dP);return!1});
V=_.r(_.HJ("",void 0,"k9uVge"));var cB=V.next().value,jE=V.next().value;_.B9(function(){V0()&&jE(Z==null?void 0:Z(y==null?void 0:y()));z.value&&_.mD(12453,z.value,k,function(dP){k=dP})});
return _.K(_.e,{cond:mY,then:function(){var dP={};return _.K("div",{class:_.KT("ytSuggestionComponentRemovedText",(dP.ytSuggestionComponentLargerRemovedText=function(){return NU()},dP)),
style:function(){return ZZ()>0?"height: "+ZZ()+"px;":""},
role:"button"},BH)},
else:function(){var dP={},Q0={};return _.K("div",{class:_.KT("ytSuggestionComponentSuggestion",(dP.ytSuggestionComponentSuggestionHover=function(){return!wZ()},dP.ytSuggestionComponentHighlighted=Ed,dP.ytSuggestionComponentPersonalizedSuggestion=oY,dP.ytSuggestionComponentMweb=!1,dP.ytSuggestionComponentLargerSuggestion=function(){return sd()||NU()},dP.ytSuggestionComponentThumbnailSuggestion=function(){return NU()},dP.ytSuggestionComponentRoundedSuggestion=function(){return _.c("desktop_enable_scrollable_suggestions_panel")&&
_.c("desktop_enable_suggestions_panel_padding")},dP.ytSuggestionComponentThumbnailPadding=function(){return NU()&&!oY()},dP)),
style:function(){return ZZ()>0?"height: "+ZZ()+"px;":""},
role:"presentation","on:mousedown":x,"on:mouseover":WH,"on:mouseout":S5,el:z},_.K("div",{class:_.KT("ytSuggestionComponentText",(Q0.ytSuggestionComponentScrollMargin=G,Q0)),"aria-label":function(){return sd()?n().text+" "+A7X:n().text},
id:function(){return Z==null?void 0:Z(y==null?void 0:y())},
"on:mousedown":x,role:"option"},_.K(_.e,{cond:function(){return n().type!==33},
then:function(){return _.K(_.cj,{icon:Eu,className:"ytSuggestionComponentIcon"})}}),_.K("div",{class:"ytSuggestionComponentLeftContainer"},_.K("span",{el:C,
role:"button",tabindex:0},_.K(_.FB,{each:kf},function(o3){return o3.bold?_.K("span",{class:"ytSuggestionComponentBold"},o3.text):_.K("span",null,o3.text)})),_.K(_.e,{cond:function(){return Bn()&&!!n().entitySubtitle||sd()},
then:function(){return _.K("div",{class:"ytSuggestionComponentMetadataContainer"},_.K(_.e,{cond:function(){return Bn()&&!!n().entitySubtitle},
then:function(){return _.K("div",{class:"ytSuggestionComponentEntitySubtitle"},aY)}}),_.K(_.e,{cond:function(){return sd()},
then:function(){return _.K("div",{class:"ytSuggestionComponentNewVideoContainer"},_.K("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.K("div",{class:"ytSuggestionComponentNewVideoText"},A7X))}}))}}))),_.K("div",{class:"ytSuggestionComponentRightContainer"},_.K(_.e,{cond:function(){return NU()&&n().visualSuggestUrl!==void 0},
then:function(){var o3={};return _.K("div",{class:"ytSuggestionComponentThumbnailContainer"},_.K("img",{"aria-label":aOR,class:_.KT("ytSuggestionComponentVisualSuggestThumbnail",(o3.ytSuggestionComponentCircularFrame=function(){return Bn()&&n().subtypes.includes(790)},o3.ytSuggestionComponentEntitySuggestThumbnail=function(){return Bn()},o3)),
src:function(){return n().visualSuggestUrl}}),_.K(_.e,{cond:function(){return Bn()&&!!n().entityThumbnailAttributionUrl},
then:function(){var oq={};return _.K("span",{title:YtR,role:"tooltip"},_.K("div",{"on:mouseover":Il,"on:mouseout":ol,"on:mousedown":al,class:_.KT("ytSuggestionComponentThumbnailOverlay",(oq.ytSuggestionComponentThumbnailOverlayHidden=function(){return!A()},oq))},_.K(_.cj,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.K(_.kw,null,_.K(_.gj,{when:function(){return NU()&&V0()}},function(){var o3={};
return _.K("button",{class:_.KT("ytSuggestionComponentRemoveLinkClearButton",(o3.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return cB()&&cB()===(l==null?void 0:l())},o3.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ed()},o3)),
el:I,"on:mousedown":cH,"aria-label":y0,id:function(){return cB()}},_.K(_.cj,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.K(_.gj,{when:function(){return!(NU()&&n().visualSuggestUrl!==void 0)&&V0()}},function(){var o3={};
return _.K("a",{class:_.KT("ytSuggestionComponentRemoveLink",(o3.ytSuggestionComponentRemoveLinkDark=Ko,o3.ytSuggestionComponentRemoveLinkSelected=function(){return cB()&&cB()===(l==null?void 0:l())},o3)),
el:W,"on:mousedown":cH,"aria-label":y0,tabindex:0,role:"button",id:function(){return cB()}},y0)}),_.K(_.gj,{when:function(){return!1}},function(){return _.K("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":gP,"on:mousedown":uX,role:"button","aria-label":E5W},_.K(_.cj,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Cg");var iz3=_.MA(function(){return _.K("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.K("button",{class:"ytdTextInputAssistantButton","on:click":_.jl(function(){GuB().inputMethodsTracker.add(3);var V,D=(V=_.XB("SBOX_SETTINGS"))==null?void 0:V.REQUEST_LANGUAGE;if(D)return _.EX("//www.google.com/textinputassistant/14/"+D+"_tia.js"),!1})},_.K("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Dg");var Stv=function(){this.cache=new Map},Ws3=function(V){for(var D=_.r(V.cache.entries()),f=D.next();!f.done;f=D.next()){var n=_.r(f.value);
f=n.next().value;n=n.next().value;n.suggestions.some(function(t){return t.type===35})&&V.cache.delete(f)}};var p_R=_.pS.SEARCH,LsV=_.pS.SEARCH_CLEAR_LABEL,IOc=new _.IH("FAKE_SUGGEST_RESPONSE");_.fT(_.MA(function(V){function D(){Il||(Il=setTimeout(function(){al()},1E3))}
function f(yV,QV,FV){if(yV.trim()){S5=yV;_.ql("REFINEMENTS_TUPLE",void 0);cH=!0;var K4;QV=FsV(lF,QV);var Jr=(K4=V.searchEndpoint)==null?void 0:K4.call(V);K4=Eu.value.value;Jr||(Jr=K7o);var jo;(jo=_.g(Jr.commandMetadata,_.he))!=null&&jo.url||(jo=Error("tl`"+JSON.stringify(Jr)),_.NG(jo),Jr=K7o);jo=_.sB.unsafeClone(Jr);Jr=_.qG(_.g(jo.commandMetadata,_.he).url,"search_query",yV);_.Al(location.href,"sv")==="1"&&(_.g(jo,_.ld).params="EgOAAgE%3D",Jr=_.qG(Jr,"sv","1"));_.g(jo,_.ld)&&(_.g(jo,_.ld).query=yV);
Jr=Jr.replace(/%20/g,"+");_.g(jo.commandMetadata,_.he).url=Jr;FV=_.c("desktop_enable_entity_suggest")?{entityMid:FV}:{};_.DY().resolve(_.fH).resolveCommand(jo,{form:{tempData:Object.assign({},{gs_l:QV,oq:K4!=null?K4:yV},FV)}});al();Eu.value.value=yV;Eu.value.blur();lF.reset()}}
function n(yV){return _.w(function(QV){return QV.return(new Promise(function(FV){var K4=new XMLHttpRequest;K4.open("GET",J7o(yV),!0);K4.withCredentials=!0;var Jr=_.XB("SBOX_SETTINGS");(Jr==null?0:Jr.SEND_VISITOR_DATA)&&K4.setRequestHeader("X-Goog-Visitor-Id",Jr==null?void 0:Jr.VISITOR_DATA);K4.onload=function(){FV(K4.responseText)};
K4.onerror=function(){_.zP(Error("ul"));FV(null)};
setTimeout(function(){K4.abort()},1E4);
K4.send(null)}))})}
function t(yV){var QV,FV,K4,Jr;return _.w(function(jo){switch(jo.nextAddress){case 1:return QV={credentials:"include",headers:o5c()},window.AbortController&&(FV=new AbortController,setTimeout(function(){FV.abort("ytsbox-suggest-timeout")},1E4),QV.signal=FV.signal),_.wx(jo,2),_.b(jo,fetch(J7o(yV),QV),4);
case 4:K4=jo.yieldResult.text();_.YJ(jo,3);break;case 2:return Jr=_.KW(jo),Jr!=="ytsbox-abort-last"&&Jr!=="ytsbox-suggest-timeout"&&_.zP(Jr),jo.return(null);case 3:return jo.return(K4)}})}
function J(yV){var QV,FV,K4;return _.w(function(Jr){switch(Jr.nextAddress){case 1:if(QV=_.DY().resolve(_.Vx(IOc)))return Jr.return(QV);FV=Date.now();D();return _.c("yt_searchbox_xhr")?_.b(Jr,n(yV),5):_.b(Jr,t(yV),4);case 4:K4=Jr.yieldResult;Jr.jumpTo(3);break;case 5:K4=Jr.yieldResult;case 3:if(K4){Il&&(clearTimeout(Il),Il=null);var jo=lF,Vm=FV,C4=yV.query.length===0;Vm=Date.now()-Vm;C4?jo.zeroPrefixRoundTripTime=Vm:(jo.JSC$18606_totalRoundTripTime+=Vm,jo.maxRoundTripTime=Math.max(jo.maxRoundTripTime,
Vm),C4=Math.floor(Vm/100),C4>=g5V.length?++jo.roundTripTimeHistogram[9]:++jo.roundTripTimeHistogram[g5V[C4]])}return Jr.return(K4)}})}
function H(yV){var QV,FV,K4;return _.w(function(Jr){if(Jr.nextAddress==1)return(QV=wu.cache.get(P9W(yV)))?Jr.return(QV):_.b(Jr,J(yV),2);FV=Jr.yieldResult;if(FV===null)return Jr.return(null);K4=new Zzo(FV);yV.query.length===0&&K4.suggestions.length===0||wu.cache.set(P9W(yV),K4);return Jr.return(K4)})}
function Q(yV){var QV,FV;return _.w(function(K4){if(K4.nextAddress==1){WH=!1;var Jr=S5;Jr=_.MrU()==="search"?(_.Al(location.href,"search_query")||_.Al(location.href,"q"))===Jr:!1;QV=new tcZ(yV,Jr?S5:null);return _.b(K4,H(QV),2)}FV=K4.yieldResult;if(FV===null)return K4.return();QV.query.length===0&&(lF.zeroPrefixSuggestionCount=FV.suggestions.length);if(QV.id<=ol)return lF.outOfSyncResponseCount++,K4.return();if(document.activeElement!==Eu.value)return K4.return();ol=QV.id;var jo=lF,Vm=FV.rawResponse[2]||
{};jo.experimentTriggeredBeforeFinal||(jo.experimentTriggeredBeforeFinal=jo.experimentTriggeredFinal);jo.experimentTriggeredFinal=!!Vm.e;lF.updateSuggestions(FV.suggestions);z(-1);V0([]);FV.suggestions!==F()&&ua(FV.suggestions.length);k(FV.suggestions);wZ(FV.suggestions.length>0&&FV.suggestions[0].type===33);BH&&(BH.hidden=FV.suggestions.length===0,oY()?(BH.style.minWidth="",jo=BH.style,Vm=(Jr=F()[0])==null?void 0:Jr.ignoredPrefix,jo.marginLeft=(Vm?Math.min(Vm.length*6,y0.value.offsetWidth):0).toString()+
"px"):(BH.style.minWidth=y0.value.offsetWidth+"px",BH.style.marginLeft="0"),oX());_.yz(K4)})}
function T(){if(!cH)return!1;var yV=_.XB("REFINEMENTS_TUPLE");return yV?(yV=yV[1].map(function(QV,FV){return new bzw([QV,0,[71]],Eu.value.value,FV)}),F()!==yV&&ua(yV.length),V0([]),k(yV),lF.updateSuggestions(yV),cH=!1,BH.hidden=yV.length===0,WH=yV.length>0,!0):!1}
function y(){var yV=Eu.value.value;(typeof yV==="string"||yV instanceof String)&&yV!==""?W(!0):W(!1)}
function Z(){if(_.MrU()==="search"){var yV=window.location.href;try{var QV=_.Al(yV,"search_query")||_.Al(yV,"q")||""}catch(FV){QV=""}QV&&(Eu.value.value=QV,W(!0))}}
var l=_.r(_.HJ([],void 0,"kGFAjf")),G=l.next().value;l=l.next().value;var F=G,k=l;G=_.r(_.HJ(-1,void 0,"mLGL9e"));var d=G.next().value,z=G.next().value;G=_.r(_.HJ(-1,void 0,"u2rYdc"));var C=G.next().value,A=G.next().value;G=_.r(_.HJ(!1,void 0,"W9DFC"));var O=G.next().value,W=G.next().value;G=_.r(_.HJ(!1,void 0,"Ip4dNc"));var I=G.next().value,x=G.next().value;l=_.r(_.HJ(!1,void 0,"ZNKSQb"));G=l.next().value;l=l.next().value;var oY=G,wZ=l;l=_.r(_.HJ(!1,void 0,"JBrGLd"));G=l.next().value;var ZZ=l.next().value;
l=_.r(_.HJ(!1,void 0,"P2pD6e"));var sd=l.next().value,NU=l.next().value;l=_.r(_.HJ(1,void 0,"SjP20c"));var Bn=l.next().value,aY=l.next().value;l=_.r(_.HJ([],void 0,"h4dRaf"));var Ed=l.next().value,V0=l.next().value;l=_.r(_.HJ(!1,void 0,"TUTzaf"));var kf=l.next().value,mY=l.next().value;l=_.c("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Ko=_.W2("yt-searchbox"),Eu=_.W2("input"),y0=_.W2("div"),BH,wu=
new Stv,lF=GuB(),rZ=_.DY().resolve(_.Vx(_.pm)),wP=function(){var yV;return((yV=V.forceDarkMode)==null?void 0:yV.call(V))||!(rZ==null||!rZ())},gP=function(){return _.c("desktop_enable_scrollable_suggestions_panel")},uX="i"+X_3++,cH=!1,WH=!1,S5="",Il=null,ol=-1,al=function(){V0([]);
k([]);wZ(!1);BH&&(BH.hidden=!0);Il&&(clearTimeout(Il),Il=null);z(-1)},cB=function(yV,QV){yV.preventDefault();
mY(!0);BH&&(BH.hidden=!1);var FV=d();yV=F();var K4=Ed();QV=JPv(QV);FV+=QV;for(FV>=yV.length?FV=-1:FV<-1&&(FV=yV.length-1);FV!==-1&&(K4.includes(FV)||FV>=yV.length||FV<0);)FV+=QV,FV>=yV.length&&(FV=-1);z(FV);d()>=0&&(Eu.value.value=F()[d()].text,A(0),y(),yV=d(),K4=C(),(K4=document.getElementById(P6[yV][K4]))&&gP()&&(yV===F().length-1?BH.scrollTop=BH.scrollHeight:K4.scrollIntoView({block:"nearest",inline:"start"})))},jE=_.jl(function(yV){if(!(yV.relatedTarget instanceof Element&&yV.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!0);
var QV;(QV=V.focusCallback)==null||QV.call(V,!0);T()||(WH?BH.hidden=!1:(_.PA(Ko.value,"yt-autonav-pause-focus",{}),Q(yV.target.value)))}}),dP=_.jl(function(yV){if(!(yV.relatedTarget instanceof Element&&yV.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!1);
var QV;(QV=V.focusCallback)==null||QV.call(V,!1);BH.scrollTop=0;BH.hidden=!0;_.PA(Ko.value,"yt-autonav-pause-blur",{})}}),Q0=function(yV){yV=JPv(yV);
var QV;((QV=P6[d()])==null?0:QV[C()+yV])&&A(C()+yV)},o3=_.jl(function(yV){var QV=yV.target;
switch(yV.keyCode){case 13:yV.preventDefault();var FV;if((FV=P6[d()])==null?0:FV[C()]){var K4;(K4=document.getElementById(P6[d()][C()]))==null||K4.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}yV=yV.shiftKey?4:3;FV=lF;K4=d();FV.selectedSuggestionIndex=K4;f(QV.value,yV);break;case 27:BH&&(BH.hidden=!0);break;case 40:cB(yV,40);break;case 38:cB(yV,38);break;case 39:Q0(39);break;case 37:Q0(37);break;case 229:lF.inputMethodsTracker.add(4);break;default:lF.inputMethodsTracker.add(1),
eVW(lF)}return!1}),oq=_.jl(function(yV){Q(yV.target.value);
y();gP()&&BH&&(BH.scrollTop=0);return!1}),c6=_.jl(function(){lF.inputMethodsTracker.add(2);
eVW(lF);return!1});
_.B9(function(){if(BH){lF.reset();if(window.ResizeObserver){var yV=new ResizeObserver(function(){oY()||(BH.style.minWidth=y0.value.offsetWidth+"px")});
yV.observe(y0.value);(new ResizeObserver(function(){oX()})).observe(BH);
_.dc(function(){yV.disconnect()})}Z();
window.addEventListener("yt-navigate-finish",Z);window.addEventListener("yt-focus-searchbox",function(){Eu.value.focus()});
var QV;ZZ((QV=_.XB("SBOX_SETTINGS"))==null?void 0:QV.HAS_ON_SCREEN_KEYBOARD)}else _.NG(new _.cI("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Sv=_.jl(function(yV){yV.preventDefault();f(Eu.value.value,12);return!1}),$p=_.jl(function(yV){yV.preventDefault();
var QV,FV;(QV=Eu)==null||(FV=QV.value)==null||FV.focus();var K4,Jr;((K4=Eu)==null?void 0:(Jr=K4.value)==null?void 0:Jr.value)!==""&&(Eu.value.value="",Eu.value.dispatchEvent(new Event("input")));return!1}),ZR=_.jl(function(){var yV=niw(Eu.value.value,F().filter(function(QV){return QV.type!==35}).map(function(QV){return{label:QV.text}}));
_.o4(Ko.value,"yt-open-popup-action",[{openPopupAction:yV},document.body]);return!1}),hZ=_.jl(function(){Eu.value.focus();
return!1}),Uc=function(yV,QV,FV,K4,Jr){lF.selectedSuggestionIndex=FV;
f(QV,Jr?3:1,K4)},PJ=function(yV){Eu.value.value=yV;
Eu.value.dispatchEvent(new Event("input"));lF.inputMethodsTracker.add(5);eVW(lF,!0)},P6=[[]],o2=function(yV){var QV="searchbox-suggestion"+_.Bk(_.Fj);
P6[yV].push(QV);return QV},ua=function(yV){if(F()){P6=[[]];
for(var QV=0;QV<yV;QV++)P6.push([])}},oX=function(){if(gP()){var yV=BH,QV=yV.scrollTop;
yV=yV.scrollHeight-yV.clientHeight;NU(QV>=yV);QV=Math.abs(yV-QV);QV<=40?aY(1-(40-QV)/40):aY(1)}},aG=function(){return"opacity: "+Bn()*100+"%"},F9=_.jl(function(){oX();
return!1}),qU=_.jl(function(){mY(!1);
return!1}),SR,b6={},PB={},uF={},TJ={};
return _.K("yt-searchbox",{class:_.KT("ytSearchboxComponentHost",(b6.ytSearchboxComponentMweb=!1,b6.ytSearchboxComponentDesktop=!0,b6["yt-searchbox-filled-query"]=function(){return O()},b6["ytd-masthead"]=function(){return!I()},b6.ytSearchboxComponentHostDark=wP,b6)),
role:"search",el:Ko,"client-ve-type":10349},_.K("div",{el:y0,"on:click":hZ,class:_.KT("ytSearchboxComponentInputBox",(PB.ytSearchboxComponentInputBoxDark=wP,PB.ytSearchboxComponentInputBoxHasFocus=I,PB))},_.K("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Sv},_.K(_.e,{cond:I,then:function(){return _.K("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.K(_.cj,{icon:"SEARCH"}))}}),_.K("input",{el:Eu,
class:_.KT("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":uX,"aria-expanded":!((SR=BH)==null?0:SR.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":dP,"on:focus":jE,"on:input":oq,"on:keydown":o3,"on:paste":c6,placeholder:V.placeholderText,"aria-activedescendant":function(){var yV;return(yV=P6[d()])==null?void 0:yV[C()]},
"aria-autocomplete":"list",role:"combobox"})),_.K(_.e,{cond:G,then:function(){return _.K("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.K(iz3,null))}}),_.K(_.e,{cond:O,
then:function(){return _.K("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.K("button",{class:"ytSearchboxComponentClearButton","on:click":$p,"aria-label":V.clearButtonAriaLabel||LsV},_.K(_.cj,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.K(_.kl,{model:{}})))}})),_.K("button",{class:_.KT("ytSearchboxComponentSearchButton",(uF.ytSearchboxComponentSearchButtonDark=wP,uF)),
"on:click":Sv,"aria-label":p_R,title:V.placeholderText},_.K(_.cj,{icon:"SEARCH"})),_.K(_.e,{cond:function(){if(ZAV()&&_.c("mweb_voice_search")&&V.voiceSearchButton)return V.voiceSearchButton()},
then:function(yV){var QV={};return _.K("div",{class:_.KT("ytSearchboxComponentVoiceSearchWrapper",(QV.ytSearchboxComponentHideVoiceSearchButton=function(){return O()},QV))},_.K(_.BW,{data:yV},{buttonRenderer:function(FV){return _.K(_.$d,{data:FV.data,
onButtonClickCallback:function(){}})}}))}}),_.K("div",{el:_.h2(function(yV){return void(BH=yV)}),
id:uX,class:_.KT("ytSearchboxComponentSuggestionsContainer",(TJ.ytSearchboxComponentSuggestionsContainerDark=wP,TJ["yt-searchbox-suggestions-container"]=!1,TJ.ytSearchboxComponentSuggestionsContainerScrollable=gP(),TJ.ytSearchboxComponentSuggestionsContainerAnimated=l,TJ)),"on:scroll":F9,"on:mousemove":qU,role:"listbox",hidden:!0},_.K(_.FB,{each:F},function(yV,QV){return _.K($JZ,{suggestion:yV,isHighlighted:function(){return QV()===d()},
onClickCallback:Uc,onHoverUpdateCallback:function(FV){if(_.c("desktop_enable_single_suggestion_highlight")){var K4=QV();FV&&(A(0),z(K4))}},
onRemoveCallback:function(FV){Ws3(wu);FV===void 0||FV<0||Ed().includes(FV)||V0([].concat(_.sz(Ed()),[FV]))},
labels:V.labels,queryBuilderFunction:PJ,suggestionIndex:QV,generateUniqueId:o2,highlightedId:function(){var FV;return(FV=P6[d()])==null?void 0:FV[C()]},
useScrollMargin:gP(),isKeyboardMode:kf})}),_.K(_.e,{cond:function(){return!oY()&&F().find(function(yV){return yV.type!==35})&&_.c("searchbox_reporting")},
then:function(){return _.K("button",{class:"ytSearchboxComponentReportButton","on:mousedown":ZR},_.Zl("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.K(_.e,{cond:function(){return!sd()&&gP()},
then:function(){return _.K("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.K("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:aG}))}})))},"Eg"),"yt-searchbox",{props:{searchEndpoint:_.WX,
placeholderText:_.WX,labels:_.WX,voiceSearchButton:_.WX,focusCallback:_.Dn,clearButtonAriaLabel:_.WX,forceDarkMode:_.WX}});var r7=function(){var V=_.E.apply(this,arguments)||this;V.menuButtonTargetId="topbar-guide-menu";V.narrow=!1;V.menuStrings={BACK_ALT_LABEL:_.Zl("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Zl("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Zl("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Zl("SBOX_PLACEHOLDER",void 0,"Search")};V.pageDarkTheme=document.documentElement.hasAttribute("dark");V.watchPageScrollTop=0;V.theater=!1;V.fullscreen=!1;V.disableFrostedGlassDuringViewTransition=
!1;V.desktopUnifiedSearchPanelMode=_.c("desktop_enable_unified_search_panel");V.cinematicTheaterMode=_.c("web_cinematic_theater_mode");V.ytSearchboxFocused=!1;V.searchboxLabels=_.XB("SBOX_LABELS");V.topbarIsAboveChipbar=!1;V.isDarkThemeForced=!1;V.areGhostCardsHidden=!1;V.guideKeyboardToggle=!1;V.voiceSearchManager=ThZ();V.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};V.setYtSearchboxFocused=function(D){V.ytSearchboxFocused=
D};
V.toggleFrostedGlassDuringViewTransition=function(D){V.disableFrostedGlassDuringViewTransition=D};
return V};
_.v(r7,_.E);_.P=r7.prototype;_.P.computeSimpleText=function(V){return _.LA(V)};
_.P.onDarkChanged=function(){for(var V=_.r(this.buttons||[]),D=V.next();!D.done;D=V.next())D.value.isOverlay=!!this.dark;V=_.r(this.buttonRenderers||[]);for(D=V.next();!D.done;D=V.next())D.value.overrides=this.computeButtonOverride()};
_.P.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.P.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"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var V=_.qP(_.C_(),"aa");_.JA(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||V||(this.isDarkThemeForced=this.dark=!0);this.logoType?(V=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?V.setAttribute("slot","masthead-logo-old"):_.ZC(V)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Ty(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Ty(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.P.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Ty(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Ty(this,this.onSetTheaterModeEnabled))};
_.P.dataChanged=function(){var V=this.data;V&&(this.voiceEnabled=V.voiceSearchButton?ThZ().isSupported():!1,_.sDr(_.cX(),this.menuButtonTargetId,this.guideButton),V.onReceivedActions&&V.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.wN(this.hostElement,V.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&V&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.JA(this.hostElement,"dark",!1),_.JA(this.hostElement,"theater",!1),
(V=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?V.setAttribute("slot","masthead-logo-old"):_.ZC(V))))};
_.P.computeCenterHidden=function(){var V;return this.data&&!((V=this.data.searchbox)==null?0:V.fusionSearchboxRenderer)};
_.P.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.JA(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.P.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.P.onWatchScroll=function(V){this.watchPageScrollTop=V.detail||0;this.updateMastheadBackgroundOpacity()};
_.P.onFullscreenChangeAction=function(V){V||(this.watchPageScrollTop=0);this.fullscreen=V;this.updateMastheadBackgroundOpacity()};
_.P.onSetTheaterModeEnabled=function(V){this.theater=V.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.P.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.P.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.P.setBackgroundOpacity=function(V){V=this.calculateBackgroundOpacity(V);this.background.style.opacity=""+V};
_.P.calculateBackgroundOpacity=function(V){var D=this.theater&&this.cinematicTheaterMode?.6:0,f=this.hostElement.clientHeight/2;return Math.min(Math.max(V,0),f)/f*(1-D)+D};
_.P.shouldShowCinematicMastHead=function(){var V=_.c("kevlar_watch_grid")&&!_.c("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(V||this.pageDarkTheme)};
_.P.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.P.focusGuide=function(){this.guideButton.focus()};
_.P.onGuideToggleTap=function(){_.PA(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.P.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.P.onGuideToggleHover=function(){_.PA(this.hostElement,"yt-guide-hover")};
_.P.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.P.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.P.closeOnOutsideClickCondition=function(V){for(V=_.Os(V);V[0];){var D=V.shift();if(D instanceof Element&&D.id==="kbd")return!1}return!0};
_.P.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.P.pausePlayer=function(){var V;(V=_.hI())==null||V.pause();this.pauseMiniplayer()};
_.P.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var V;(V=_.DY().resolve(_.qw).getPlayerElement())==null||V.pause()}};
_.P.isMiniplayerActive=function(){return _.DY().resolve(_.qw).isMiniplayerActive()};
_.P.updateNarrowFromBinding=function(V){this.narrow=V.detail.value};
_.P.onYtSendFeedbackAction=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.registerWithViewTransitionManager=function(){Nk3(_.DY().resolve(_.cx),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.IG.Object.defineProperties(r7.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("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 V;return(V=this.data)==null?void 0:V.voiceSearchButton}}}});
r7.prototype.narrowChanged=r7.prototype.narrowChanged;r7.prototype.onWatchPageChange=r7.prototype.onWatchPageChange;r7.prototype.onRendererStamperFinished=r7.prototype.onRendererStamperFinished;r7.prototype.dataChanged=r7.prototype.dataChanged;r7.prototype.onDarkChanged=r7.prototype.onDarkChanged;_.S([_.u(_.sp),_.p("design:type",Object)],r7.prototype,"ironResizableBehavior",void 0);_.S([_.u(_.wlv),_.p("design:type",Object)],r7.prototype,"ytdExpandableInputBehavior",void 0);
_.S([_.u(_.CE.YtdGuideStateAwareBehavior),_.p("design:type",Object)],r7.prototype,"ytdGuideStateAwareBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],r7.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],r7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.dh),_.p("design:type",Object)],r7.prototype,"ytdReduxBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"narrow",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"logoType",void 0);_.S([_.q(),_.p("design:type",Boolean)],r7.prototype,"voiceEnabled",void 0);
_.S([_.q(),_.p("design:type",Object)],r7.prototype,"menuStrings",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],r7.prototype,"dark",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r7.prototype,"pageDarkTheme",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"watchPageScrollTop",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.zq}),_.p("design:type",Boolean)],r7.prototype,"isWatchPage",void 0);
_.S([_.q({reflectToAttribute:!0,selector:_.l8x}),_.p("design:type",Boolean)],r7.prototype,"isShortsPage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r7.prototype,"theater",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r7.prototype,"fullscreen",void 0);_.S([_.q({reflectToAttribute:!0,selector:_.FJd}),_.p("design:type",String)],r7.prototype,"frostedGlassMode",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],r7.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"ytSearchboxFocused",void 0);_.S([_.jY("#buttons > *"),_.p("design:type",Array)],r7.prototype,"buttons",void 0);_.S([_.jY("ytd-button-renderer"),_.p("design:type",Array)],r7.prototype,"buttonRenderers",void 0);_.S([_.Zv("#background"),_.p("design:type",HTMLDivElement)],r7.prototype,"background",void 0);
_.S([_.Zv("#guide-button"),_.p("design:type",Object)],r7.prototype,"guideButton",void 0);_.S([_.Zv("#logo"),_.p("design:type",Object)],r7.prototype,"logo",void 0);_.S([_.q({computed:"computeButtonOverride(dark)"}),_.p("design:type",Object)],r7.prototype,"buttonOverrides",void 0);_.S([_.eY("dark"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r7.prototype,"onDarkChanged",null);_.S([_.q({value:function(){return this.onVoiceTap.bind(this)}}),
_.p("design:type",Function)],r7.prototype,"boundOnTapVoiceButton",void 0);_.S([_.q(),_.p("design:type",Object)],r7.prototype,"topbarIsAboveChipbar",void 0);_.S([_.q(),_.p("design:type",String),_.p("design:paramtypes",[])],r7.prototype,"guideIcon",null);_.S([_.R("voiceEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],r7.prototype,"shouldShowVoiceSearchButton",null);_.S([_.R("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],r7.prototype,"voiceSearchButton",null);
_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r7.prototype,"dataChanged",null);_.S([_.bU("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r7.prototype,"onRendererStamperFinished",null);_.S([_.eY("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r7.prototype,"onWatchPageChange",null);
_.S([_.eY("narrow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r7.prototype,"narrowChanged",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-masthead"})],r7);
_.Y(r7,"ytd-masthead",function(){if(C9X!==void 0)return C9X;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return C9X=V},{mode:_.J2("kevlar_poly_si_batch_j036")?1:2});var OzZ;var xJJ={},Mcq={},hVq={},UJo={},V4o=(UJo.OFFLINE=(xJJ["publicytnetworkstatus-online"]="BACK_ONLINE",xJJ),UJo.ONLINE=(Mcq["publicytnetworkstatus-offline"]="OFFLINE",Mcq),UJo.BACK_ONLINE=(hVq["publicytnetworkstatus-offline"]="OFFLINE",hVq.TIMER_TRIGGER="ONLINE",hVq),UJo),Hz=function(){var V=_.E.apply(this,arguments)||this;V.currentState="ONLINE";V.scheduledJobId=0;V.bannerString="";V.bannerVe=null;V.networkStatusManagerInstance=new _.ik;return V};
_.v(Hz,_.E);_.P=Hz.prototype;_.P.attached=function(){var V=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){V.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){V.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.detached=function(){var V=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){V.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){V.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.enterState=function(V){var D=this;this.scheduledJobId&&_.dm.cancelJob(this.scheduledJobId);V==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):V==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Zl("NO_INTERNET_CONNECTION",void 0,"No internet connection")):V==="BACK_ONLINE"&&(this.bannerString=_.Zl("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.gq(_.dm,function(){D.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=V};
_.P.stateChangeHandler=function(V){(V=V4o[this.currentState][V])&&this.enterState(V)};
_.P.logVisibility=function(V){var D=_.Ni();this.createBannerVe(V);D&&this.bannerVe&&(V?_.SJ(D,[this.bannerVe]):_.WA(D,[this.bannerVe]))};
_.P.createBannerVe=function(V){!this.bannerVe&&V&&(this.bannerVe=_.Bj(37929),_.J6(_.lS(),this.bannerVe))};
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",String)],Hz.prototype,"currentState",void 0);_.S([_.q(),_.p("design:type",Object)],Hz.prototype,"scheduledJobId",void 0);_.S([_.q(),_.p("design:type",Object)],Hz.prototype,"bannerString",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Hz);
_.Y(Hz,"ytd-network-status-banner",function(){if(OzZ!==void 0)return OzZ;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return OzZ=
V},{mode:1});var DzR;var w7=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};V.hidden=!0;V.frostedGlass=_.c("web_frosted_glass");return V};
_.v(w7,_.E);w7.prototype.computeHidden=function(V){return V&&V.status?!1:!0};
w7.prototype.handleUpdatePermissionRoleCommand=function(V){if(V=_.g(V,_.wyF))if(V=_.g(V.renderer,_.HNH))this.data=V};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],w7.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],w7.prototype,"componentBehavior",void 0);_.S([_.q({value:!0,computed:"computeHidden(data)"}),_.p("design:type",Object)],w7.prototype,"hidden",void 0);_.S([_.q(),_.p("design:type",Object)],w7.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],w7.prototype,"frostedGlass",void 0);
_.S([_.a({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],w7);
_.Y(w7,"ytd-permission-role-bottom-bar-renderer",function(){if(DzR!==void 0)return DzR;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return DzR=V},{mode:1});var fhB;var n2c;var rPV={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var QQ=function(){return _.E.apply(this,arguments)||this};
_.v(QQ,_.E);_.P=QQ.prototype;_.P.attached=function(){this.JSC$18709_scroller&&(this.JSC$18709_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18709_scroller.attached&&typeof this.JSC$18709_scroller.attached==="function"&&this.JSC$18709_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(f){f.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var V=_.Pt(this.hostElement);V.querySelector("tp-yt-paper-radio-group").selected="";var D=V.querySelector("#reason-text");D&&(D.value="");V.querySelector("#description-text").value=""}};
_.P.canSubmit=function(V,D){_.PA(this.hostElement,"yt-invalidate-popup-tabbables");return!(V&&D)};
_.P.onCancel=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.P.onSubmit=function(){var V=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(J){return J.active}).map(function(J){return J.innerText.trim()}),D=this.hostElement.querySelector("tp-yt-paper-radio-group"),f=D.selectedItem,n=f.name;
f=f.innerText.trim();var t=D.querySelector("#reason-text");D=void 0;t&&(D=t.value);(t=this.descriptionText.value)&&(t=t.trim());HRR(this.data.searchQuery,V,n,f,t,D);_.o4(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.P.sendFormSubmitToast=function(){var V=_.hO(_.Zl("SBOX_INAPPROPRIATE_TOAST"));_.o4(this.hostElement,"yt-open-popup-action",[V,this])};
_.P.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(V){return V.active})};
_.P.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
QQ.prototype.onIronSelect=QQ.prototype.onIronSelect;QQ.prototype.onIronChange=QQ.prototype.onIronChange;QQ.prototype.dataChanged=QQ.prototype.dataChanged;_.S([_.q(),_.p("design:type",Object)],QQ.prototype,"data",void 0);_.S([_.q({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.p("design:type",Boolean)],QQ.prototype,"submitDisabled",void 0);_.S([_.q(),_.p("design:type",Boolean)],QQ.prototype,"suggestionSelected",void 0);
_.S([_.q(),_.p("design:type",Boolean)],QQ.prototype,"catagorySelected",void 0);_.S([_.Zv("#scroller"),_.p("design:type",Object)],QQ.prototype,"JSC$18709_scroller",void 0);_.S([_.Zv("#description-text"),_.p("design:type",Object)],QQ.prototype,"descriptionText",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QQ.prototype,"dataChanged",null);
_.S([_.bU("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QQ.prototype,"onIronChange",null);_.S([_.bU("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QQ.prototype,"onIronSelect",null);_.S([_.a({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],QQ);
_.Y(QQ,"ytd-search-suggestion-report-dialog",function(){if(n2c!==void 0)return n2c;var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);return n2c=V},{mode:1});var T8=function(V){var D=V.openPopupAction;var f=V.target;var n=V.container;var t=V.popupContainerConfig;var J=V.getElement;V=V.removeWhenClosed===void 0?!1:V.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=D;this.target=f;this.container=n;this.popupContainerConfig=t;this.getElement=J;this.JSC$18715_popupConfig=this.popupContainerConfig.JSC$17831_popupConfig[this.openPopupAction.popupType];this.rendererName=(D=this.getName())?_.XrY(D,S6W(this.popupContainerConfig,
D)):"";_.c("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=V);this.createPopup()};
T8.prototype.updatePopup=function(V){this.openPopupAction=V;this.JSC$18715_popupConfig=this.popupContainerConfig.JSC$17831_popupConfig[this.openPopupAction.popupType];t4v(this);_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
T8.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var J0q=function(V,D,f){(D=D&&V.JSC$18715_popupConfig.narrowProperties?V.JSC$18715_popupConfig.narrowProperties:V.JSC$18715_popupConfig.properties)&&f!==void 0&&(D.isAriaModal=f);PIq(V,D);V.isRtl()&&PIq(V,V.JSC$18715_popupConfig.rtlProperties);o20(V)};
T8.prototype.createPopup=function(){var V=this.JSC$18715_popupConfig.component;if(this.popupContent=r0f(this,this.rendererName)){if(V){this.popup=r0f(this,V);var D=this.popupContent;_.c("web_enable_wrapper_for_cow_component_in_popup")&&(D=document.createElement("div"),D.appendChild(this.popupContent));_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18715_popupConfig.slotName&&D.setAttribute("slot",this.JSC$18715_popupConfig.slotName);V=this.popup;var f=this.container.tagName.toLowerCase(),
n=_.MZ(D);_.HCF(_.Us(V),_.fI(D,f,n));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.c("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Pt(this.container).appendChild(this.popup)}};
var t4v=function(V){var D,f,n=(D=V.openPopupAction.accessibilityData)==null?void 0:(f=D.accessibilityData)==null?void 0:f.label;n&&(V.popup.ariaLabel=n);var t;((t=V.popupContent.polymerController)!=null?t:V.popupContent).data=(0,_.sB.unsafeClone)(V.openPopupAction.popup[V.getName()]);V.popupContent.duration=H5X(V);V.popupContent.positionType=V.openPopupAction.position;var J=V.openPopupAction.properties;J&&Object.keys(J).forEach(function(H){V.popupContent[H]=J[H]})},PIq=function(V,D){if(D)for(var f=
_.r(Object.keys(D)),n=f.next();!n.done;n=f.next())n=n.value,V.popup[n]=D[n]},o20=function(V){if(V.openPopupAction.position){var D=V.JSC$18715_popupConfig.positionalProperties&&V.JSC$18715_popupConfig.positionalProperties[V.openPopupAction.position],f=V.JSC$18715_popupConfig.rtlPositionalProperties&&V.JSC$18715_popupConfig.rtlPositionalProperties[V.openPopupAction.position];
D=V.isRtl()&&f?f:D;D.shiftedHorizontalOffset&&(f=V.popup.style.display,V.popup.style.display="block",V.popupContent&&V.popup.positionTarget&&V.popupContent.clientWidth>V.popup.positionTarget.clientWidth&&(D.horizontalOffset=V.popup.positionTarget.clientWidth/2-D.shiftedHorizontalOffset),V.popup.style.display=f);PIq(V,D)}},wvV=function(V,D){if(D)for(var f=_.r(Object.keys(D)),n=f.next();!n.done;n=f.next())n=n.value,V.popup.style[n]=D[n]};
T8.prototype.getName=function(){return _.R9(this.openPopupAction.popup,"renderer")||_.R9(this.openPopupAction.popup,"dialog")||_.R9(this.openPopupAction.popup,"model")||void 0};
var H5X=function(V){V=V.openPopupAction.durationHintMs;return V===0?V:Math.max(4E3,V||4E3)};
T8.prototype.isRtl=function(){return _.XB("HTML_DIR")==="rtl"};
var r0f=function(V,D){V=V.getElement(D,V.target);V==null&&_.zP(new _.cI("popup getElement returned null",D));return V};var Qu0={};
Qu0.YtPopupContainerBehavior=[_.EY.YtComponentBehavior,_.D6.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Dl(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.f6(this.hostElement)},
closePopup:function(V){var D=this.createCacheKey(void 0,V);this.popups_[D]&&this.handleClosePopupAction_(void 0,V)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.dm.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.dm.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(V){V.opened&&V.keepBelowPlayer&&this.ensurePopupBelowPlayer(V)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var V in this.popups_){var D=this.popups_[V];if(D.popup.scrollAction==="refit"){var f=D.popup.positionTarget.getBoundingClientRect(),n=D.popup;f=f.top;var t=D;if(!t.naturalHeight){t.popup.hidden=!1;t.popup.style.position="fixed";t.popup.style.top="0px";t.popup.style.left="0px";var J=t.popup.getBoundingClientRect();t.naturalHeight=J.bottom-J.top;t.popup.refit()}n.hidden=!(f>=t.naturalHeight+60);D.popupContent.clientHeight===0&&D.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(V){this.popupContainerConfig=V},
handleOpenPopupAction:function(V,D){var f=V.openPopupAction,n=_.DY().resolve(_.Vx(_.Jo))&&f.popupType==="TOAST";n&&!f.uniqueId&&(f.uniqueId=_.Ng());if(!_.c("popup_container_parent_target_killswitch")){var t;D=(t=this.getParentTarget(D))!=null?t:D}var J=this.ensurePopup_(f,D);return new _.Qf(function(H){J.then(function(Q){if(!Q)return H();this.maybeCreateNarrowMediaQuery_();var T=this.createCacheKey(Q.rendererName,Q.openPopupAction.uniqueId);if(f.showOncePerUniqueId){if(this.shownPopupKeys_.has(T))return H();
this.shownPopupKeys_.add(T)}T=this.popups_[T];var y=!(!T||!T.openPopupAction.beReused);y=!!f.reusePopup||y;if(Q.popup.opened&&!y){n&&!Q.openPopupAction.replacePopup||this.handleClosePopupAction_(Q.rendererName,Q.openPopupAction.uniqueId);y=f.popupType==="DIALOG"&&!_.c("popup_container_dialog_reopen_killswitch");if(!n&&!y&&T&&T.target==D&&!Q.openPopupAction.replacePopup)return H();_.pO(Q.popup,function(){this.completeOpenPopupAction_(f,D,Q);H()}.bind(this))}else Q.popup.opened?Q.updatePopup(f):this.completeOpenPopupAction_(f,
D,Q),H()}.bind(this))}.bind(this))},
getParentTarget:function(V){if(V&&V instanceof HTMLElement)for(var D=_.r(Object.entries(this.popups_)),f=D.next();!f.done;f=D.next())if(f=_.r(f.value),f.next(),f=f.next().value,f.popup.tagName==="TP-YT-IRON-DROPDOWN"&&V.closest(f.rendererName))return f.target},
completeOpenPopupAction_:function(V,D,f){f.updatePopup(V);V=this.narrowMediaQuery_.queryMatches;var n=this.isAriaModal;f.target=D;var t;D=((t=f.target.polymerController)!=null?t:f.target).popupPositionTarget||f.target;f.JSC$18715_popupConfig.targetContainer&&(D=f.container);f.popup.positionTarget=D;f.popupContent.positionTarget=D;o20(f);f.JSC$18715_popupConfig.forceFocus&&(f.popupContent.style.outline="none");f.popupContent.tabIndex=-1;f.JSC$18715_popupConfig.narrowProperties&&(f.popup.style.position=
"static");f.JSC$18715_popupConfig.preventAutonav&&f.popup.setAttribute("prevent-autonav",!0);f.JSC$18715_popupConfig.forceCloseOnOutsideClick&&f.popup.setAttribute("force-close-on-outside-click",!0);J0q(f,V,n);wvV(f,f.JSC$18715_popupConfig.styles);f.isRtl()&&wvV(f,f.JSC$18715_popupConfig.rtlStyles);if(!f.openPopupAction.shouldStopParentSignal){var J;t=(J=f.target.polymerController)!=null?J:f.target;(f.popupContent.startForwardingEvents||f.popupContainerConfig.forwardingEnabledPopups.has(f.rendererName))&&
t.parentComponent!==f.popupContent&&f.popupContent!==f.target&&f.target!==document.body&&(f.popupContent.startForwardingEvents?f.popupContent.startForwardingEvents(f.popupContainerConfig.forwardedEvents,f.target):(f.JSC$18715_eventForwarder||(f.JSC$18715_eventForwarder=new _.HV(f.popupContent)),f.JSC$18715_eventForwarder.start(f.popupContainerConfig.forwardedEvents,f.target)))}f=f.popup;f.addEventListener("iron-overlay-opened",_.Ty(this,this.onPopupIronOverlayOpened_));f.addEventListener("iron-overlay-closed",
_.Ty(this,this.onPopupIronOverlayClosed_));f.addEventListener("iron-overlay-canceled",_.Ty(this,this.onPopupIronOverlayCanceled_));f.addEventListener("yt-refit",_.Ty(this,this.refitPopup_));f.addEventListener("yt-invalidate-popup-tabbables",_.Ty(this,this.handleInvalidatePopupTabbables_));f.open()},
getPopupDurationMs_:function(V){return V.durationHintMs===0?V.durationHintMs:Math.max(4E3,V.durationHintMs||4E3)},
handleClosePopupAction_:function(V,D){var f=_.c("web_popup_cache_key_killswitch")||!!D;if(V||f){var n=this.createCacheKey(V,D);V=(V=this.popups_[n])&&V.popup}else V=_.hC6(_.AV);if(V&&V.close){if(D=_.DY().resolve(_.Vx(_.PO)))V.restoreFocusOnClose=D.isKeyBoardInUse();V.close();this.removePopup_(V,n)}},
handleClosePopupCommand_:function(V){V.closePopupCommand&&V.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,V.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(V){var D={},f;for(f in this.popups_)if(D={key$jscomp$1158:D.key$jscomp$1158},D.key$jscomp$1158=f,!V||!V.some(function(J){return function(H){return H==J.key$jscomp$1158}}(D))){var n=this.popups_[D.key$jscomp$1158],t=n.popup;
_.DY().resolve(_.Vx(_.Jo))&&n.openPopupAction.popupType==="TOAST"||(t&&t.close&&t.close(),this.removePopup_(t,D.key$jscomp$1158))}},
handleClosePopupsAction_:function(V){V.forEach(function(D){var f=this.popups_[D];f&&((f=f.popup)&&f.close&&f.close(),this.removePopup_(f,D))}.bind(this))},
handleGetPopupOpenedAction_:function(V,D){return(D=this.createCacheKey(V,D))&&this.popups_[D]?this.popups_[V].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var V=[],D;for(D in this.popups_){var f=this.popups_[D];f.popup.opened&&V.push(f)}return V},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(V,D){_.c("ytpopup_disable_default_html_caching")&&V&&V.removeWhenClosed&&(_.Pt(this.hostElement).removeChild(V),D&&this.popups_[D]&&delete this.popups_[D])},
shouldReusePopup_:function(V){return!(!V||!V.reusePopup)||!(!V||!V.beReused)},
ensurePopup_:function(V,D){this.maybeCreateNarrowMediaQuery_();var f=_.R9(V.popup,"renderer")||_.R9(V.popup,"dialog")||_.R9(V.popup,"model");if(!f)return _.Qv();f=_.XrY(f,S6W(this.popupContainerConfig,f));return _.Qv(this.getAndMaybeCreatePopup_(V,f,D))},
getAndMaybeCreatePopup_:function(V,D,f){var n=this.createCacheKey(D,V.uniqueId);if(this.popups_[n])return this.popups_[n];V=new T8({openPopupAction:V,target:f,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(D)});return this.popups_[n]=V},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(V){return _.c("ytpopup_disable_default_html_caching")?V&&V.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",_.Ty(this,this.openPopupQueryMatchesChanged_)),_.Pt(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(V){V=V.detail.value;for(var D in this.popups_)J0q(this.popups_[D],V)},
onPopupIronOverlayClosed_:function(V){var D=V.currentTarget,f=_.uH9(D);f=f.length>0?f[0]:D;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||V.target.is!=="tp-yt-iron-dropdown"){V.detail.popup=D;V.detail.popupRenderer=f;var n,t={context:{openingElement:((n=this.popups_[(f==null?void 0:f.is)||""])==null?void 0:n.target)||void 0}};Object.assign(t,V.detail);var J;_.PA((J=f.hostElement)!=null?J:f,"yt-popup-closed",t);D.removeEventListener("yt-refit",_.Ty(this,this.refitPopup_));D.removeEventListener("yt-invalidate-popup-tabbables",
_.Ty(this,this.handleInvalidatePopupTabbables_));D.removeEventListener("iron-overlay-canceled",_.Ty(this,this.onPopupIronOverlayCanceled_));D.removeEventListener("iron-overlay-closed",_.Ty(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(D)}},
onPopupIronOverlayCanceled_:function(V,D){var f=V.currentTarget,n=_.uH9(f);n=n.length>0?n[0]:f;if(n.is!=="ytd-reel-watch-while-dialog-renderer"||V.target.is!=="tp-yt-iron-dropdown"){var t;_.PA((t=n.hostElement)!=null?t:n,"yt-popup-canceled",V.detail);t=D?_.Os(D):null;(!D||["click","tap"].includes(D.type))&&!f.hasAttribute("force-close-on-outside-click")&&f.positionTarget&&t&&t.includes(f.positionTarget)&&V.preventDefault();f.restoreFocusOnClose=_.ja.keyboardEventMatchesKeys(D,"esc")}},
onPopupIronOverlayOpened_:function(V){V=V.currentTarget;var D=_.uH9(V);D=D.length>0?D[0]:V;var f,n;_.PA((f=D.hostElement)!=null?f:D,"yt-popup-opened",(n=D.hostElement)!=null?n:D);V.keepBelowPlayer&&(this.ensurePopupBelowPlayer(V,!0),this.dynamicallyPositionedElements_.add(V));f=_.DY().resolve(_.Vx(_.PO));n=!!D.querySelector("#toast");f&&f.isKeyBoardInUse()&&!n&&(typeof D.focusFirstItem==="function"?D.focusFirstItem():(D=_.OTU(V),D.length&&D[0].focus()));V.removeEventListener("iron-overlay-opened",
_.Ty(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(V){V=V.currentTarget;V.refit&&V.refit()},
refitPopups_:function(){for(var V in this.popups_)this.popups_[V].refit()},
handleInvalidatePopupTabbables_:function(V){V=V.currentTarget;V.invalidateTabbables&&V.invalidateTabbables()},
createCacheKey:function(V,D){return _.c("web_popup_cache_key_killswitch")?D?V+"#"+D:V:D?"#"+D:V},
openSheet:function(V,D){var f=V==null?void 0:V.openPopupActionCommand;!f&&(V==null?0:V.viewModel)&&(f={openPopupAction:{popup:{sheetViewModel:V.viewModel},popupType:"CONTEXTUAL_SHEET"}});f&&this.handleOpenPopupAction(f,D)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var V=this;return _.w(function(D){return D.return(V.handleGetOpenedPopupsAction_().filter(function(f){var n;return((n=f.openPopupAction)==null?void 0:n.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(V,D,f){if(_.c("web_dialog_utils_killswitch")){var n=V==null?void 0:V.openPopupActionCommand,t=(f==null?0:f.ariaLabel)?{accessibilityData:{accessibilityData:{label:f.ariaLabel}}}:void 0;!n&&(V==null?0:V.viewModel)&&(n={openPopupAction:Object.assign({},{popup:{dialogViewModel:V.viewModel},popupType:(f==null?0:f.isModal)?"MODAL":"DIALOG"},t&&t)});n&&this.handleOpenPopupAction(n,D)}else{if(t=V==null?void 0:V.viewModel){var J=f=f===void 0?{}:f;f=J.ariaLabel;t={popup:{dialogViewModel:t},
popupType:J.isModal?"MODAL":"DIALOG"};J={accessibilityData:{label:f}};f&&(t.accessibilityData=J);t={openPopupAction:t}}else t=void 0;if(t=(n=t)!=null?n:V==null?void 0:V.openPopupActionCommand)this.isAriaModal=_.c("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(t,D)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var V=this;return _.w(function(D){return D.return(V.handleGetOpenedPopupsAction_().filter(function(f){var n;return((n=f.openPopupAction)==null?void 0:n.popupType)==="DIALOG"}).length>0)})}}];var TSc;var b5w;var KNw=_.WV(["about:blank"]),bc=function(){var V=_.E.apply(this,arguments)||this;V.isMuted=!1;V.pageLoadTimeoutId=void 0;return V};
_.v(bc,_.E);_.P=bc.prototype;_.P.dataChanged=function(){var V=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var D=this.data.url,f=_.mW(D);_.c("enable_yt_ata_iframe_authuser")?(f=_.mW(D),_.N8(this.iframe,woR(f))):_.N8(this.iframe,f);this.pageLoadTimeoutId=_.gq(_.kv(),function(){return void V.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.xs({destination:window,iframe:this.iframe,origin:_.WYF(f.toString()),channelName:"ataiframe",onMessage:_.xt9(xHv,function(n){Mac(n.data)?(n=_.c7(n.data,1,_.eW,_.DC()),n.length!==1?_.zP(Error("vl")):(n=n[0],n===3?(V.isMuted=!0,V.logStateChanged({adMuteRequested:!0})):n===1&&V.close())):_.zP(Error("wl"))}),
onEstablished:function(){V.cancelPageLoadTimeout();V.logStateChanged({pageLoadSucceeded:!0})}})}};
_.P.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.kv().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.P.logStateChanged=function(V){var D;if((D=this.data)==null?0:D.trackingParams)V={adsClientData:{aboutThisAdData:V}},_.lS().stateChanged(this.data.trackingParams,V)};
_.P.close=function(){_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.handlesPopupClosed=function(V,D){var f=this,n,t;return _.w(function(J){if(J.nextAddress==1)return _.XB("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.o4(f.hostElement,"on-about-this-ad-popup-closed",[f.isMuted,D]),J.jumpTo(0)):V&&QBR(V)?_.b(J,TUW(V),4):(f.isMuted&&_.o4(f.hostElement,"yt-mute-ad-action",[f.is,f]),J.jumpTo(0));if(n=J.yieldResult){var H=t=new _.vG(n),Q=f.isMuted;H.getOptions().includes("onAboutThisAdPopupClosed")?_.VgL(H,"onAboutThisAdPopupClosed",{isMuted:Q,layoutId:D}):_.hY("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.yz(J)})};
_.P.onPopupClosed=function(V){var D=this,f,n;return _.w(function(t){f=_.t4(KNw);_.N8(D.iframe,f);D.cancelPageLoadTimeout();if(!D.data)return t.jumpTo(0);D.ytRendererBehavior.markDirty();n=V.detail.context.openingElement;return _.b(t,D.handlesPopupClosed(n,D.data.layoutId),0)})};
_.P.detached=function(){this.cancelPageLoadTimeout()};
_.P.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bc.prototype.onPopupClosed=bc.prototype.onPopupClosed;bc.prototype.dataChanged=bc.prototype.dataChanged;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.S([_.Zv("#iframe"),_.p("design:type",HTMLIFrameElement)],bc.prototype,"iframe",void 0);_.S([_.q(),_.p("design:type",Object)],bc.prototype,"data",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bc.prototype,"dataChanged",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],bc.prototype,"onPopupClosed",null);_.S([_.zy({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],bc);
_.Y(bc,"yt-about-this-ad-renderer",function(){if(b5w===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;TSc===void 0&&(TSc=document.createElement("template"));var n=TSc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);b5w=V}V=b5w;return V},{mode:2});var y0V;var Z5q;var Kr=function(V){var D=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=D.message;"stack"in D&&(this.stack=D.stack);this.maxFileSizeMB=V;Object.setPrototypeOf(this,Kr.prototype)};
_.v(Kr,Error);var ju3=function(V,D){var f=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=f.message;"stack"in f&&(this.stack=f.stack);this.minWidth=V;this.minHeight=D;Object.setPrototypeOf(this,ju3.prototype)};
_.v(ju3,Error);var lhR=function(V){this.requirements=V;this.JSC$18743_maxFileSize=V.maxFileSizeMB*1024*1024},G7W=function(V,D){if(D.size>V.JSC$18743_maxFileSize)throw new Kr(V.requirements.maxFileSizeMB);
};var enZ=function(V,D){this.canvas=V;this.imageEditorBuilder=D};
enZ.prototype.addEventListeners=function(V){var D=function(t){c0J(V,t)};
this.JSC$18749_mouseDownEvent=D;var f=function(t){FNX(V,t)};
this.JSC$18749_mouseMoveEvent=f;var n=function(){g20(V)};
this.JSC$18749_mouseUpEvent=n;this.canvas.addEventListener("mousedown",D);this.canvas.addEventListener("mousemove",f);document.addEventListener("mouseup",n)};
enZ.prototype.removeEventListeners=function(){this.JSC$18749_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18749_mouseDownEvent);this.JSC$18749_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18749_mouseMoveEvent);this.JSC$18749_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18749_mouseUpEvent)};
var v2q=function(V,D){V.removeEventListeners();return new Promise(function(f){var n=new Image;n.crossOrigin="anonymous";n.onload=function(){var t=V.imageEditorBuilder(V.canvas,n);V.addEventListeners(t);f(t)};
n.src=D})},yQ=function(V,D,f,n,t,J,H,Q){this.canvas=V;
this.image=D;this.requiredRatio=f;this.minImageCropDimension=n;this.minOutputImageResolution=t;this.component=J;this.styleFocusedCorner=Q===void 0?!0:Q;this.action=2;this.focusedCorner=this.resizeCorner=0;V=this.canvas.getContext("2d");if(!V)throw Error("xl");this.ctx=V;this.canvasMargin=H!=null?H:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;H=this.image;V=this.canvasInnerWidth/H.width;H.height*V>912&&(V=H.width/H.height*912/H.width);H=V;this.scaledImageWidth=this.canvas.width%2?
KRq(this.image.width*H):bRc(this.image.width*H);this.scaledImageHeight=Math.round(this.image.height*H);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18752_overlayMarginBottom=this.JSC$18752_overlayMarginTop=this.canvasMargin;this.JSC$18752_overlayMarginRight=this.JSC$18752_overlayMarginLeft=this.horizontalMargin;this.JSC$18752_overlayWidth=this.scaledImageWidth;this.JSC$18752_overlayHeight=this.scaledImageHeight;
V=this.image.width/this.image.height;V>this.requiredRatio?(this.JSC$18752_overlayWidth=this.canvas.width%2?KRq(this.scaledImageHeight*this.requiredRatio):bRc(this.scaledImageHeight*this.requiredRatio),this.JSC$18752_overlayMarginRight=this.JSC$18752_overlayMarginLeft=(this.canvas.width-this.JSC$18752_overlayWidth)/2):V<this.requiredRatio&&(this.JSC$18752_overlayHeight=this.canvas.height%2?KRq(this.scaledImageWidth/this.requiredRatio):bRc(this.scaledImageWidth/this.requiredRatio),this.JSC$18752_overlayMarginBottom=
this.JSC$18752_overlayMarginTop=(this.canvas.height-this.JSC$18752_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*H,this.scaledImageWidth);k7R(this)};
yQ.prototype.getContext=function(){return this.ctx};
var c0J=function(V,D){D={x:Math.round(D.pageX-V.canvas.getBoundingClientRect().left),y:Math.round(D.pageY-V.canvas.getBoundingClientRect().top)};V.dragStart=D;suq(V,D)!==0?(V.action=1,BSR(V,D),V.resizeCorner=suq(V,D)):D.x>V.JSC$18752_overlayMarginLeft&&D.x<V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth&&D.y>V.JSC$18752_overlayMarginTop&&D.y<V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight&&(V.action=0)},dzZ=function(V,D){switch(D){case 1:return{x:V.JSC$18752_overlayMarginLeft,
y:V.JSC$18752_overlayMarginTop};case 2:return{x:V.JSC$18752_overlayMarginLeft,y:V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight};case 3:return{x:V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth,y:V.JSC$18752_overlayMarginTop};case 4:return{x:V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth,y:V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight};default:throw Error("yl");}},NSv=function(V,D){if(V.focusedCorner!==0){V.dragStart=dzZ(V,V.focusedCorner);
V.action=1;V.resizeCorner=V.focusedCorner;var f=V.dragStart.x,n=V.dragStart.y;switch(D){case 0:V.focusedCorner===1||V.focusedCorner===4?(f-=10,n-=10):(f-=10,n+=10);break;case 1:V.focusedCorner===1||V.focusedCorner===4?(f+=10,n+=10):(f+=10,n-=10);break;case 2:f=V.focusedCorner===1||V.focusedCorner===4?f-10:f+10;n-=10;break;case 3:f=V.focusedCorner===1||V.focusedCorner===4?f+10:f-10;n+=10;break;default:throw Error("zl");}u0w(V,{x:f,y:n});k7R(V);V.action=2;V.dragStart=void 0}},FNX=function(V,D){D={x:Math.round(D.pageX-
V.canvas.getBoundingClientRect().left),
y:Math.round(D.pageY-V.canvas.getBoundingClientRect().top)};BSR(V,D);switch(V.action){case 1:u0w(V,D);break;case 0:V.dragStart&&(V.JSC$18752_overlayMarginLeft=Math.max(V.horizontalMargin,Math.min(V.JSC$18752_overlayMarginLeft-(V.dragStart.x-D.x),V.horizontalMargin+V.scaledImageWidth-V.JSC$18752_overlayWidth)),V.JSC$18752_overlayMarginRight=V.canvas.width-V.JSC$18752_overlayMarginLeft-V.JSC$18752_overlayWidth,V.JSC$18752_overlayMarginTop=Math.max(V.canvasMargin,Math.min(V.JSC$18752_overlayMarginTop-
(V.dragStart.y-D.y),V.scaledImageHeight-V.JSC$18752_overlayHeight+V.canvasMargin)),V.JSC$18752_overlayMarginBottom=V.canvas.height-(V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight));break;default:return}k7R(V);V.dragStart=D},g20=function(V){V.action=2;
V.dragStart=void 0;document.body.style.cursor="auto"},BSR=function(V,D){switch(suq(V,D)){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:V.action!==1&&(document.body.style.cursor="auto")}},suq=function(V,D){var f=V.JSC$18752_overlayMarginLeft-5,n=V.JSC$18752_overlayMarginTop-5,t=V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth-5;
V=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-5;return mzJ(D,{x:f,y:n})?1:mzJ(D,{x:t,y:n})?3:mzJ(D,{x:f,y:V})?2:mzJ(D,{x:t,y:V})?4:0},mzJ=function(V,D){return V.x>=D.x&&V.x<=D.x+10&&V.y>=D.y&&V.y<=D.y+10},u0w=function(V,D){if(V.dragStart)switch(V.resizeCorner){case 2:Math.abs((V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth-D.x)/(D.y-V.JSC$18752_overlayMarginTop))>=V.requiredRatio?znw(V,D.x):RnZ(V,D.y);
break;case 1:Math.abs((V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth-D.x)/(V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-D.y))>=V.requiredRatio?CIB(V,D.x):RnZ(V,D.y);break;case 4:Math.abs((D.x-V.JSC$18752_overlayMarginLeft)/(D.y-V.JSC$18752_overlayMarginTop))>=V.requiredRatio?znw(V,D.x):qSc(V,D.y);break;case 3:Math.abs((D.x-V.JSC$18752_overlayMarginLeft)/(V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-D.y))>=V.requiredRatio?CIB(V,D.x):qSc(V,D.y);break;default:throw Error("Al");
}},znw=function(V,D){var f=V.JSC$18752_overlayMarginTop;
V.JSC$18752_overlayMarginBottom=Xvv(V,D);V.JSC$18752_overlayHeight=V.canvas.height-V.JSC$18752_overlayMarginBottom-f;V.JSC$18752_overlayWidth=Math.round(V.JSC$18752_overlayHeight*V.requiredRatio);E2W(V)},CIB=function(V,D){var f=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight;
V.JSC$18752_overlayMarginTop=Xvv(V,D);V.JSC$18752_overlayHeight=f-V.JSC$18752_overlayMarginTop;V.JSC$18752_overlayWidth=Math.round(V.JSC$18752_overlayHeight*V.requiredRatio);E2W(V)},E2W=function(V){switch(V.resizeCorner){case 2:case 1:V.JSC$18752_overlayMarginLeft=V.canvas.width-V.JSC$18752_overlayMarginRight-V.JSC$18752_overlayWidth;
break;case 4:case 3:V.JSC$18752_overlayMarginRight=V.canvas.width-V.JSC$18752_overlayMarginLeft-V.JSC$18752_overlayWidth;break;default:throw Error("Al");}},RnZ=function(V,D){var f=V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth;
V.JSC$18752_overlayMarginLeft=A00(V,D);V.JSC$18752_overlayWidth=f-V.JSC$18752_overlayMarginLeft;V.JSC$18752_overlayHeight=Math.round(V.JSC$18752_overlayWidth/V.requiredRatio);ahf(V)},qSc=function(V,D){var f=V.JSC$18752_overlayMarginLeft;
V.JSC$18752_overlayMarginRight=A00(V,D);V.JSC$18752_overlayWidth=V.canvas.width-V.JSC$18752_overlayMarginRight-f;V.JSC$18752_overlayHeight=Math.round(V.JSC$18752_overlayWidth/V.requiredRatio);ahf(V)},ahf=function(V){switch(V.resizeCorner){case 2:case 4:V.JSC$18752_overlayMarginBottom=V.canvas.height-V.JSC$18752_overlayMarginTop-V.JSC$18752_overlayHeight;
break;case 1:case 3:V.JSC$18752_overlayMarginTop=V.canvas.height-V.JSC$18752_overlayMarginBottom-V.JSC$18752_overlayHeight;break;default:throw Error("Al");}},Xvv=function(V,D){switch(V.resizeCorner){case 2:D=V.canvas.height-(V.JSC$18752_overlayMarginTop+YSJ(V,D));
break;case 4:D=V.canvas.height-(V.JSC$18752_overlayMarginTop+$zf(V,D));break;case 1:D=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-YSJ(V,D);break;case 3:D=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-$zf(V,D);break;default:throw Error("Al");}return Math.max(D,V.canvasMargin)},YSJ=function(V,D){D=V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth-Math.max(D,V.horizontalMargin);
D=D<0?V.JSC$18752_overlayWidth:Math.max(D,V.minOverlayWidth);return Math.round(D/V.requiredRatio)},$zf=function(V,D){D=V.canvas.width-Math.max(V.canvas.width-D,V.horizontalMargin)-V.JSC$18752_overlayMarginLeft;
D=D<0?V.JSC$18752_overlayWidth:Math.max(D,V.minOverlayWidth);return Math.round(D/V.requiredRatio)},A00=function(V,D){switch(V.resizeCorner){case 2:D=V.canvas.width-V.JSC$18752_overlayMarginRight-i5V(V,D);
break;case 4:D=V.canvas.width-V.JSC$18752_overlayMarginLeft-i5V(V,D);break;case 1:D=V.canvas.width-V.JSC$18752_overlayMarginRight-SSV(V,D);break;case 3:D=V.canvas.width-V.JSC$18752_overlayMarginLeft-SSV(V,D);break;default:throw Error("Al");}return Math.max(D,V.horizontalMargin)},i5V=function(V,D){D=V.canvas.height-Math.max(V.canvas.height-D,V.canvasMargin)-V.JSC$18752_overlayMarginTop;
return D<0?V.JSC$18752_overlayWidth:Math.max(Math.round(D*V.requiredRatio),V.minOverlayWidth)},SSV=function(V,D){D=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-Math.max(D,V.canvasMargin);
return D<0?V.JSC$18752_overlayWidth:Math.max(Math.round(D*V.requiredRatio),V.minOverlayWidth)},k7R=function(V){V.ctx.clearRect(0,0,V.canvas.width,V.canvas.height);
V.ctx.drawImage(V.image,0,0,V.image.width,V.image.height,V.horizontalMargin,V.canvasMargin,V.canvas.width-2*V.horizontalMargin,V.scaledImageHeight);V.ctx.fillStyle="rgba(0, 0, 0, 0.7)";V.ctx.fillRect(V.horizontalMargin,V.JSC$18752_overlayMarginTop,V.JSC$18752_overlayMarginLeft-V.horizontalMargin,V.JSC$18752_overlayHeight);V.ctx.fillRect(V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth,V.JSC$18752_overlayMarginTop,V.JSC$18752_overlayMarginRight-V.horizontalMargin,V.JSC$18752_overlayHeight);V.ctx.fillRect(V.horizontalMargin,
V.canvasMargin,V.scaledImageWidth,V.JSC$18752_overlayMarginTop-V.canvasMargin);V.ctx.fillRect(V.horizontalMargin,V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight,V.scaledImageWidth,V.JSC$18752_overlayMarginBottom-V.canvasMargin);V.drawOverlay();V.component&&_.PA(V.component,"image-updated")};
yQ.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18752_overlayMarginLeft,this.JSC$18752_overlayMarginTop,this.JSC$18752_overlayWidth,this.JSC$18752_overlayHeight);WNW(this)};
var WNW=function(V){var D=V.JSC$18752_overlayMarginLeft-5,f=V.JSC$18752_overlayMarginTop-5,n=V.JSC$18752_overlayMarginLeft+V.JSC$18752_overlayWidth-5,t=V.JSC$18752_overlayMarginTop+V.JSC$18752_overlayHeight-5;V.ctx.fillStyle="#FFF";V.ctx.fillRect(D,f,10,10);V.ctx.strokeRect(D,f,10,10);V.ctx.fillRect(n,f,10,10);V.ctx.strokeRect(n,f,10,10);V.ctx.fillRect(D,t,10,10);V.ctx.strokeRect(D,t,10,10);V.ctx.fillRect(n,t,10,10);V.ctx.strokeRect(n,t,10,10);if(V.focusedCorner!==0&&V.styleFocusedCorner){V.ctx.lineWidth=
4;V.ctx.strokeStyle="#3EA6FF";switch(V.focusedCorner){case 1:--D;--f;break;case 2:--D;f=t-1;break;case 3:D=n-1;--f;break;case 4:D=n-1;f=t-1;break;default:return}V.ctx.strokeRect(D,f,12,12)}};
yQ.prototype.crop=function(V,D){D=D===void 0?!0:D;var f=this.image.width/this.scaledImageWidth,n=document.createElement("canvas"),t=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],J=this.JSC$18752_overlayWidth*f,H=this.JSC$18752_overlayHeight*f;n.width=Math.max(J,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);n.height=Math.max(H,t);V&&(n.width=Math.min(n.width,n.height),n.height=Math.min(n.width,n.height));
V=n.getContext("2d");if(!V)throw Error("ol");t=(this.JSC$18752_overlayMarginLeft-this.horizontalMargin)*f;f*=this.JSC$18752_overlayMarginTop-this.canvasMargin;D||(V.fillStyle="white",V.fillRect(0,0,n.width,n.height));V.drawImage(this.image,t,f,J,H,0,0,n.width,n.height);return n};var pvo=function(V,D,f,n,t){yQ.call(this,V,D,f,n,void 0,t,8,!1)};
_.v(pvo,yQ);pvo.prototype.drawOverlay=function(){var V=this.getContext(),D=this.JSC$18752_overlayWidth,f=this.JSC$18752_overlayHeight,n=this.JSC$18752_overlayMarginTop,t=this.JSC$18752_overlayMarginLeft;V.lineWidth=2;V.strokeStyle="#3EA6FF";V.beginPath();V.arc(t+D/2,n+f/2,D/2,0,2*Math.PI);V.stroke();V.strokeRect(t,n,D,f);WNW(this)};
var LNq={maxFileSizeMB:15,minWidth:98,minHeight:98},Ih3=["image/png","image/jpeg","image/gif"],Zm=function(){var V=_.E.apply(this,arguments)||this;V.fileSelectorFocusListener=null;V.errorMessage=null;V.isLoading=!0;V.hideContainer=!0;V.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return V};
_.v(Zm,_.E);_.P=Zm.prototype;_.P.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.P.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.P.computePlaylistThumbnail=function(V){return V==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.P.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.o4(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.P.setErrorState=function(V){this.resetErrorState();V&&(this.errorMessage=V)};
_.P.showPopup=function(){var V=this;this.hideContainer=!1;_.gq(_.dm,function(){_.PA(V.hostElement,"yt-refit")});
this.isLoading=!1};
_.P.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.P.closePopup=function(){this.resetFileSelector();_.o4(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onCancelTap=function(){this.isPlaylistThumbnail||_.o4(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.P.openFileSelector=function(){var V=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.gq(_.dm,function(){setTimeout(function(){if(!V.fileSelector.files||V.fileSelector.files.length===0)V.onCancelTap();V.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(D){D instanceof Error?_.NG(D):_.mw(new _.cI(JSON.stringify(D)))}};
_.P.handleFileSelection=function(){var V=this,D,f,n,t,J,H;return _.w(function(Q){switch(Q.nextAddress){case 1:_.wx(Q,2);if(!V.fileSelector.files||!V.imageEditorCanvas)return V.onCancelTap(),Q.return();D=V.fileSelector.files[0];G7W(V.imageChecker,D);_.wx(Q,4);return _.b(Q,aHW(D),6);case 6:V.mimeType=Q.yieldResult;_.YJ(Q,5,2);break;case 4:_.KW(Q,2),_.o4(V.hostElement,"yt-image-selection-error-action",[(f=V.data)==null?void 0:f.genericImageLoadErrorMessage]),V.onCancelTap();case 5:n=new FileReader;n.addEventListener("load",
function(){var T,y;return _.w(function(Z){if(Z.nextAddress==1){if(!n.result)return _.zP(Error("ql")),Z.return();T=n.result;y=new Image;y.src=T;y.onload=function(){try{var l=V.imageChecker;if(y.width<l.requirements.minWidth||y.height<l.requirements.minHeight)throw new ju3(l.requirements.minWidth,l.requirements.minHeight);}catch(F){if(F instanceof ju3){var G;_.o4(V.hostElement,"yt-image-selection-error-action",[(G=V.data)==null?void 0:G.imageDimensionErrorMessage]);V.logImageDimensionErrorVe()}else F instanceof
Error?_.NG(F):(l=new _.cI(JSON.stringify(F)),_.NG(l));V.onCancelTap()}V.showPopup()};
y.onerror=function(){var l;_.o4(V.hostElement,"yt-image-selection-error-action",[(l=V.data)==null?void 0:l.genericImageLoadErrorMessage]);V.onCancelTap()};
return _.b(Z,v2q(V.imageEditorCanvas,T),2)}V.imageEditor=Z.yieldResult;V.updatePositionOfAllCorners();V.addEventListeners(V.imageEditor);_.yz(Z)})},!1);
n.readAsDataURL(D);_.YJ(Q,0);break;case 2:t=_.KW(Q),t instanceof Kr?_.o4(V.hostElement,"yt-image-selection-error-action",[(J=V.data)==null?void 0:J.imageSizeErrorMessage]):(t instanceof Error?_.NG(t):_.mw(new _.cI(JSON.stringify(t))),_.o4(V.hostElement,"yt-image-selection-error-action",[(H=V.data)==null?void 0:H.genericImageLoadErrorMessage])),V.onCancelTap(),_.yz(Q)}})};
_.P.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var V=_.jD(_.lS(),{veType:232707,visualElement:_.Bj(232707)});V&&(V={visualElement:V},_.Zb().reportShown(V))}};
_.P.handleImageSelectionErrorAction=function(V){this.isPlaylistThumbnail&&_.Sa9(this.hostElement,V)};
_.P.convertToImageFormatBundle=function(V){var D=this,f,n,t;return _.w(function(J){switch(J.nextAddress){case 1:return f=V.toDataURL(D.outputMimeType,1),_.b(J,Ylc(f),2);case 2:n=J.yieldResult;_.wx(J,3);G7W(D.imageChecker,n);_.YJ(J,4);break;case 3:t=_.KW(J);if(!(t instanceof Kr))throw t;_.zP(new _.cI("Output size is bigger than input size for image",D.mimeType,D.outputMimeType,n.size));f=V.toDataURL("image/jpeg",.95);return _.b(J,Ylc(f),6);case 6:n=J.yieldResult;case 4:return J.return({dataUrl:f,imageFile:n})}})};
_.P.handleUploadImageToScottyCommand=function(V){var D=this,f,n,t,J,H,Q,T,y,Z,l;return _.w(function(G){switch(G.nextAddress){case 1:if(!D.imageEditor||!_.g(V,T0W))return G.return();f=_.g(V,T0W).scottyUploadUrl;if(!f){var F=new _.cI("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.NG(F);return G.return()}_.wx(G,2);D.setLoadingState();n=D.imageEditor.crop(!1,!1);return _.b(G,D.convertToImageFormatBundle(n),4);case 4:return t=G.yieldResult,_.b(G,Eyf(t.imageFile,f),5);case 5:J=
G.yieldResult;((H=D.data)==null?0:H.onUploadEndpoint)?(Q=D.buildUploadServiceEndpoint(J),D.ytComponentBehavior.resolveCommand(Q),T=_.g(Q,_.NT),((y=T)==null?0:y.params)?D.closePopup():D.resetFileSelector()):(_.o4(D.hostElement,"yt-image-updated-action",[t.dataUrl,J]),D.closePopup());_.YJ(G,0);break;case 2:Z=_.KW(G),D.setErrorState((l=D.data)==null?void 0:l.uploadErrorMessage),Z instanceof Error?_.NG(Z):(F=new _.cI(JSON.stringify(Z)),_.NG(F)),_.yz(G)}})};
_.P.buildUploadServiceEndpoint=function(V){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",V),this.data.onUploadEndpoint):null};
_.P.dataChanged=function(){var V=this,D;return _.w(function(f){if(f.nextAddress==1){if(!V.data||!V.canvasElement)return f.return();V.data.imageRatio&&V.data.minImageCropWidth||_.mw(new _.cI("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));D=function(n,t){return V.data.imageType==="IMAGE_TYPE_AVATAR"?new pvo(n,t,V.data.imageRatio,[V.data.minImageCropWidth,V.data.minImageCropWidth/V.data.imageRatio],V.hostElement):new yQ(n,t,V.data.imageRatio,[V.data.minImageCropWidth,
V.data.minImageCropWidth/V.data.imageRatio],void 0,V.hostElement,8,!1)};
V.imageEditorCanvas=new enZ(V.canvasElement,D);return V.data.url?_.b(f,v2q(V.imageEditorCanvas,V.data.url),3):(V.hideContainer=!0,V.openFileSelector(),f.jumpTo(0))}V.imageEditor=f.yieldResult;V.showPopup();V.addEventListeners(V.imageEditor);_.yz(f)})};
_.P.addEventListeners=function(V){this.removeEventListeners();var D=function(t){c0J(V,t)};
this.JSC$18760_mouseDownEvent=D;var f=function(t){FNX(V,t)};
this.JSC$18760_mouseMoveEvent=f;var n=function(){g20(V)};
this.JSC$18760_mouseUpEvent=n;this.topLeftCorner.addEventListener("mousedown",D);this.topLeftCorner.addEventListener("mousemove",f);this.topLeftCorner.addEventListener("mouseup",n);this.topRightCorner.addEventListener("mousedown",D);this.topRightCorner.addEventListener("mousemove",f);this.topRightCorner.addEventListener("mouseup",n);this.bottomLeftCorner.addEventListener("mousedown",D);this.bottomLeftCorner.addEventListener("mousemove",f);this.bottomLeftCorner.addEventListener("mouseup",n);this.bottomRightCorner.addEventListener("mousedown",
D);this.bottomRightCorner.addEventListener("mousemove",f);this.bottomRightCorner.addEventListener("mouseup",n)};
_.P.removeEventListeners=function(){this.JSC$18760_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18760_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18760_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18760_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18760_mouseDownEvent));this.JSC$18760_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18760_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18760_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18760_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18760_mouseMoveEvent));this.JSC$18760_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18760_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18760_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18760_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18760_mouseUpEvent))};
_.P.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var V=document.activeElement;V&&V.shadowRoot&&V.shadowRoot.activeElement;)V=V.shadowRoot.activeElement;switch(V){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};
_.P.updatePositionOfCorner=function(V,D){var f=V.y-D.offsetHeight/2+4;D.style.left=V.x-D.offsetWidth/2+16+"px";D.style.top=f+"px"};
_.P.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var V=_.r([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),D=V.next();!D.done;D=V.next()){D=D.value;var f=dzZ(this.imageEditor,D.corner);this.updatePositionOfCorner(f,D.div)}};
_.P.onLeft=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(NSv(this.imageEditor,0),this.updatePositionOfAllCorners(),V.preventDefault())};
_.P.onRight=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(NSv(this.imageEditor,1),this.updatePositionOfAllCorners(),V.preventDefault())};
_.P.onUp=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(NSv(this.imageEditor,2),this.updatePositionOfAllCorners(),V.preventDefault())};
_.P.onDown=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(NSv(this.imageEditor,3),this.updatePositionOfAllCorners(),V.preventDefault())};
_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.IG.Object.defineProperties(Zm.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Ih3.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var V,D,f;((D=this.data)==null?0:D.imageRatio)&&((f=this.data)==null?0:f.minImageCropWidth)?V={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:V=LNq;return new lhR(V)}}});
Zm.prototype.updatePositionOfAllCorners=Zm.prototype.updatePositionOfAllCorners;Zm.prototype.dataChanged=Zm.prototype.dataChanged;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);_.S([_.u(_.ja),_.p("design:type",Object)],Zm.prototype,"ironA11yKeysBehavior",void 0);
_.S([_.Zv("#canvas"),_.p("design:type",HTMLCanvasElement)],Zm.prototype,"canvasElement",void 0);_.S([_.Zv("#file-selector"),_.p("design:type",HTMLInputElement)],Zm.prototype,"fileSelector",void 0);_.S([_.Zv("#top-left-corner"),_.p("design:type",HTMLDivElement)],Zm.prototype,"topLeftCorner",void 0);_.S([_.Zv("#top-right-corner"),_.p("design:type",HTMLDivElement)],Zm.prototype,"topRightCorner",void 0);
_.S([_.Zv("#bottom-left-corner"),_.p("design:type",HTMLDivElement)],Zm.prototype,"bottomLeftCorner",void 0);_.S([_.Zv("#bottom-right-corner"),_.p("design:type",HTMLDivElement)],Zm.prototype,"bottomRightCorner",void 0);_.S([_.q(),_.p("design:type",Object)],Zm.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Zm.prototype,"errorMessage",void 0);_.S([_.q(),_.p("design:type",Object)],Zm.prototype,"isLoading",void 0);_.S([_.q(),_.p("design:type",Object)],Zm.prototype,"hideContainer",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.p("design:type",Boolean)],Zm.prototype,"isPlaylistThumbnail",void 0);_.S([_.eY("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],Zm.prototype,"dataChanged",null);_.S([_.bU("image-updated"),_.bU("yt-refit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Zm.prototype,"updatePositionOfAllCorners",null);
_.S([_.zy({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Zm);
_.Y(Zm,"yt-image-editor-renderer",function(){if(Z5q===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;y0V===void 0&&(y0V=document.createElement("template"));var n=y0V;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Z5q=V}V=Z5q;return V},{mode:2});var O5w;var xzR;var j8=function(){return _.E.apply(this,arguments)||this};
_.v(j8,_.E);j8.prototype.updateMinutesFromBinding=function(V){this.handleMinutesChanged&&this.handleMinutesChanged(V)};
j8.prototype.updateSecondsFromBinding=function(V){this.handleSecondsChanged&&this.handleSecondsChanged(V)};
j8.prototype.updateDescriptionFromBinding=function(V){this.handleDescriptionChanged&&this.handleDescriptionChanged(V)};
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],j8.prototype,"ytComponentBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],j8.prototype,"data",void 0);_.S([_.q(),_.p("design:type",String)],j8.prototype,"minutes",void 0);_.S([_.q(),_.p("design:type",String)],j8.prototype,"seconds",void 0);_.S([_.q(),_.p("design:type",String)],j8.prototype,"description",void 0);_.S([_.q(),_.p("design:type",Function)],j8.prototype,"handleMinutesChanged",void 0);
_.S([_.q(),_.p("design:type",Function)],j8.prototype,"handleSecondsChanged",void 0);_.S([_.q(),_.p("design:type",Function)],j8.prototype,"handleDescriptionChanged",void 0);_.S([_.q(),_.p("design:type",Number)],j8.prototype,"characterLimit",void 0);_.S([_.q(),_.p("design:type",Number)],j8.prototype,"textNumRows",void 0);_.S([_.zy({is:"yt-report-details-form-content",disableElementRegistration:!0})],j8);
_.Y(j8,"yt-report-details-form-content",function(){if(xzR===void 0){var V=document.createElement("template");_.B(V,'\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>');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;O5w===void 0&&(O5w=document.createElement("template"));var n=O5w;f.call(D,n.content.cloneNode(!0),V.content.firstChild);xzR=V}V=xzR;return V},{mode:2});var M43;var hnW;var lc=function(){var V=_.E.apply(this,arguments)||this;V.updateMinutesFromBinding=function(D){V.minutes=D.detail.value};
V.updateSecondsFromBinding=function(D){V.seconds=D.detail.value};
V.updateDescriptionFromBinding=function(D){V.description=D.detail.value};
return V};
_.v(lc,_.E);_.P=lc.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.P.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"}}}};
_.P.ready=function(){_.Pt(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.P.onSubmitYtAction=function(V){var D=V.detail;D.actionName==="yt-service-request"&&(D=D.args[1],D.flagEndpoint&&(V.stopPropagation(),this.refireAction(D)))};
_.P.refireAction=function(V){var D={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(D.vss_id=this.vssId);_.HA(this.hostElement,[V,D]);this.submitDisabled=!0};
_.P.dataChanged=function(){var V=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var D=_.hI();D&&D.getPlayerPromise().then(function(f){var n=f.getOption("cc","track")||f.getOption("captions","track");n&&(V.vssId=n.vss_id);f=f.getCurrentTime();V.minutes=Math.floor(f/60).toString();V.seconds=(Math.floor(f)%60).toString()})};
_.P.updateSubmitButtonState=function(){var V;((V=this.data)==null?0:V.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==="")};
_.P.onYtServiceRequestCompleted=function(){_.o4(this.hostElement,"yt-close-popup-action")};
_.P.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.IG.Object.defineProperties(lc.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.textNumRows)||4}}});
lc.prototype.onYtServiceRequestError=lc.prototype.onYtServiceRequestError;lc.prototype.onYtServiceRequestCompleted=lc.prototype.onYtServiceRequestCompleted;lc.prototype.updateSubmitButtonState=lc.prototype.updateSubmitButtonState;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);
_.S([_.q({observer:"dataChanged"}),_.p("design:type",Object)],lc.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Boolean)],lc.prototype,"submitDisabled",void 0);_.S([_.q(),_.p("design:type",String)],lc.prototype,"minutes",void 0);_.S([_.q(),_.p("design:type",String)],lc.prototype,"seconds",void 0);_.S([_.q(),_.p("design:type",String)],lc.prototype,"description",void 0);_.S([_.q(),_.p("design:type",String)],lc.prototype,"vssId",void 0);
_.S([_.q({value:_.XB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],lc.prototype,"isMusic",void 0);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],lc.prototype,"characterLimit",null);_.S([_.R("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],lc.prototype,"textNumRows",null);
_.S([_.eY("minutes","seconds","description","submitDisabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lc.prototype,"updateSubmitButtonState",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lc.prototype,"onYtServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lc.prototype,"onYtServiceRequestError",null);_.S([_.zy({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],lc);
_.Y(lc,"yt-report-details-form-renderer",function(){if(hnW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;M43===void 0&&(M43=document.createElement("template"));var n=M43;f.call(D,n.content.cloneNode(!0),V.content.firstChild);hnW=V}V=hnW;return V});var UzX;var VfZ;var DOo;var fE3;var G8=function(){return _.E.apply(this,arguments)||this};
_.v(G8,_.E);
G8.prototype.onCheckedChanged_=function(){if(this.data){var V=_.Pt(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.o4(this.hostElement,"yt-additional-detail-checkbox-update",[V]):this.data.identifier==="yt-hide-user-checkbox"?_.o4(this.hostElement,"yt-hide-user-checkbox-update",[V]):V&&this.data.enableCommand?_.o4(this.hostElement,"yt-modify-report-form-command",[_.g(this.data.enableCommand,GNV)]):!V&&this.data.disableCommand&&_.o4(this.hostElement,
"yt-modify-report-form-command",[_.g(this.data.enableCommand,GNV)])}};
G8.prototype.onLabelTap_=function(V){V.target.tagName!="A"&&(_.Pt(this.hostElement).querySelector("#checkbox").checked=!_.Pt(this.hostElement).querySelector("#checkbox").checked)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],G8.prototype,"data",void 0);_.S([_.zy({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],G8);
_.Y(G8,"yt-boolean-form-field-v2-renderer",function(){if(fE3===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;DOo===void 0&&(DOo=document.createElement("template"));var n=DOo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);fE3=V}V=fE3;return V});var e8=function(){var V=_.E.apply(this,arguments)||this;V.canShowAdditionalDetailCheckbox=!1;V.canShowCheckbox=!1;V.keepDropdownFocusedAfterSelection=!0;return V};
_.v(e8,_.E);e8.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}}}}};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],e8.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],e8.prototype,"canShowAdditionalDetailCheckbox",void 0);_.S([_.q(),_.p("design:type",Object)],e8.prototype,"canShowCheckbox",void 0);_.S([_.q(),_.p("design:type",Object)],e8.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.S([_.zy({is:"yt-report-form-modal-content",disableElementRegistration:!0})],e8);
_.Y(e8,"yt-report-form-modal-content",function(){if(VfZ===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;UzX===void 0&&(UzX=document.createElement("template"));var n=UzX;f.call(D,n.content.cloneNode(!0),V.content.firstChild);VfZ=V}V=VfZ;return V},{mode:2});var nXq;var tfo;var cz=function(){var V=_.E.apply(this,arguments)||this;V.submitting=!1;V.submitButtonDisabled=!0;V.command=null;V.canShowCheckbox=!1;V.canShowAdditionalDetailCheckbox=!1;V.canShowNextButton=!1;V.additionalDetailCheckboxChecked=!1;V.refitJob=0;V.keepDropdownFocusedAfterSelection=!0;V.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 V};
_.v(cz,_.E);_.P=cz.prototype;_.P.created=function(){this.refitJob=0};
_.P.attached=function(){this.JSC$18783_scroller&&(this.JSC$18783_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18783_scroller.attached&&typeof this.JSC$18783_scroller.attached==="function"&&this.JSC$18783_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(V){V&&(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,V.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),V.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.P.onYtPopupOpened=function(){var V=_.hI();V&&V.getPlayerPromise().then(function(D){D.pauseVideo()})};
_.P.onYtNavigate=function(V){_.g(V.detail.endpoint,_.Tfl)&&(V.stopPropagation(),this.hideReportForm=!0)};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.P.onYtServiceRequestCompleted=function(V,D){var f=D.actions;if(f){if(f.length===1&&_.g(f[0],_.Tm)){var n;f=((n=_.g(f[0],_.Tm))==null?void 0:n.commands)||[]}n=0;for(var t=f.length;n<t;n++)_.g(f[n],_.Fb)&&(V.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(f[n]))}if(D.data&&(V=this.get("feedbackResponses",D.data)))for(D=0;D<V.length;D++)if(V[D].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.P._onDescendantIronResize=function(V){V.stopPropagation();return!1};
_.P.handleReportFormEndpointUpdateAction=function(V){if(V.submitEndpoint){var D=this.command=V.submitEndpoint;D=_.g(D,_.riU);if(D==null?0:D.additionalDetailCheckboxChecked)D.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else V.submitNavigationEndpoint?(this.command=V.submitNavigationEndpoint,this.toggleSubmitButton(!1)):V.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:V.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;V.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",V));this.refit()};
_.P.handleConfirmDialogCloseAction=function(V){V.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.P.submitButtonDisabledChanged=function(){var V=this.hostElement.parentElement;V&&V.invalidateTabbables&&V.invalidateTabbables()};
_.P.handleModifyReportFormCommand=function(V){V=this.get("action",V);V==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:V==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:V==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:V==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:V==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:V==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.P.updateDialogStyling=function(){var V,D,f,n,t,J=((t=(V=this.data)==null?void 0:(D=V.optionsSupportedRenderers)==null?void 0:(f=D.optionsRenderer)==null?void 0:(n=f.items)==null?void 0:n.length)!=null?t:0)<=2?0:240;_.wI(this.hostElement,{"--yt-report-form-modal-renderer-min-width":J+"px"})};
_.P.toggleSubmitButton=function(V){this.submitButtonDisabled=!V;this.submitButtonDisabled=V};
_.P.computeSubmitButtonData=function(V,D){var f={};_.g(D,_.Tfl)?f.navigationEndpoint=D:f.command=D||void 0;V&&V.buttonRenderer&&_.sB.extend(f,V.buttonRenderer);return f};
_.P.computeNextButtonData=function(V,D){var f={};if(!V||!V.buttonRenderer)return f;_.sB.extend(f,V.buttonRenderer);if(!D)return f;if(_.g(D,_.Tfl))f.navigationEndpoint=ElZ(D);else if(f.command=ElZ(D),V=_.g(f.command,_.riU))V.legalCheckboxChecked=!0;return f};
_.P.computeShowNextButton=function(V,D,f){return!!V&&D&&f};
_.P.refit=function(){var V=this;this.refitJob||(this.refitJob=_.dm.addLowPriorityJob(function(){_.PA(V.hostElement,"yt-refit");V.refitJob=0}))};
_.P.handleAdditionalDetailCheckboxUpdateAction=function(V){this.additionalDetailCheckboxChecked=V;_.g(this.command,_.riU).additionalDetailCheckboxChecked=V};
_.IG.Object.defineProperties(cz,{template:{configurable:!0,enumerable:!0,get:function(){if(tfo===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;nXq===void 0&&(nXq=document.createElement("template"));var n=nXq;f.call(D,n.content.cloneNode(!0),V.content.firstChild);tfo=V}V=tfo;return V}}});
cz.prototype.onYtServiceRequestError=cz.prototype.onYtServiceRequestError;cz.prototype.onYtServiceRequestCompleted=cz.prototype.onYtServiceRequestCompleted;cz.prototype.onYtServiceRequestSent=cz.prototype.onYtServiceRequestSent;cz.prototype.onYtNavigate=cz.prototype.onYtNavigate;cz.prototype.onYtPopupOpened=cz.prototype.onYtPopupOpened;_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],cz.prototype,"openPopupBehavior",void 0);
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],cz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],cz.prototype,"eventForwardingBehavior",void 0);_.S([_.u(_.sp),_.p("design:type",Object)],cz.prototype,"ironResizableBehavior",void 0);_.S([_.q({observer:"dataChanged"}),_.p("design:type",Object)],cz.prototype,"data",void 0);
_.S([_.q(),_.p("design:type",Object)],cz.prototype,"submitting",void 0);_.S([_.q({observer:"submitButtonDisabledChanged"}),_.p("design:type",Object)],cz.prototype,"submitButtonDisabled",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"command",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],cz.prototype,"hideReportForm",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"canShowCheckbox",void 0);
_.S([_.q(),_.p("design:type",Object)],cz.prototype,"canShowAdditionalDetailCheckbox",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"canShowNextButton",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"additionalDetailCheckboxChecked",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"refitJob",void 0);_.S([_.q(),_.p("design:type",Object)],cz.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.S([_.Zv("#scroller"),_.p("design:type",Object)],cz.prototype,"JSC$18783_scroller",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cz.prototype,"onYtPopupOpened",null);_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cz.prototype,"onYtNavigate",null);
_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],cz.prototype,"onYtServiceRequestSent",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],cz.prototype,"onYtServiceRequestCompleted",null);
_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cz.prototype,"onYtServiceRequestError",null);_.S([_.zy({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],cz);var PrZ;var oXV;var FD=function(){return _.E.apply(this,arguments)||this};
_.v(FD,_.E);_.P=FD.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.P.onVisible=function(){var V,D;(D=_.DY().resolve(_.Vx(_.TZ)))==null||D.enqueue({label:_.LA((V=this.data)==null?void 0:V.messageTitle),elementToFocus:this.hostElement})};
_.P.onThumbnailLoaded=function(){_.PA(this.hostElement,"yt-refit")};
_.P.onDismissTap=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.P.computeAlternateIcon=function(V){return V?V==="BACKSTAGE_ARTWORK"?"backstage:artwork":V:null};
_.P.computeFontFamily=function(V){return V==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.P.computeBackgroundStyle=function(V,D){if(V=this.computeBackgroundImage(V,D))if(V=_.tI(V.thumbnails))return'background-image: url("'+V+'");'};
_.P.computeHasFullHeightImage=function(V){return!(!(V&&V.thumbnails&&V.thumbnails.length>0)||this.modern)};
_.P.isModernStyle=function(V){return V.style==="STYLE_MODERN"};
_.P.computeIcon=function(V,D){if(V&&V.icon)return D?V.iconDark:V.icon};
_.P.computeBackgroundImage=function(V,D){if(V&&V.backgroundImage)return D?V.backgroundImageDark:V.backgroundImage};
_.P.computeLogo=function(V,D){if(V&&V.logo)return D?V.logoDark:V.logo};
_.P.computeShouldShowModernIcon=function(V,D){return V&&!!D};
_.P.getLogoContainerClassName=function(V){return this.logoWithPadding(V)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.P.getLogoImageId=function(V){return this.logoWithPadding(V)?"mealbar-logo-with-padding":"mealbar-logo"};
_.P.logoWithPadding=function(V){var D,f,n;return(V=(D=this.computeLogo(V,this.isDarkTheme))==null?void 0:(f=D.thumbnails)==null?void 0:(n=f[0])==null?void 0:n.height)&&V%31===0?!0:!1};
FD.prototype.onThumbnailLoaded=FD.prototype.onThumbnailLoaded;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.S([_.q({}),_.p("design:type",Object)],FD.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.p("design:type",Boolean)],FD.prototype,"modern",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],FD.prototype,"isDarkTheme",void 0);
_.S([_.q({computed:"computeIcon(data, isDarkTheme)"}),_.p("design:type",Object)],FD.prototype,"icon",void 0);_.S([_.q({computed:"computeLogo(data, isDarkTheme)"}),_.p("design:type",Object)],FD.prototype,"logo",void 0);_.S([_.q({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.p("design:type",Object)],FD.prototype,"backgroundStyle",void 0);_.S([_.q({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.p("design:type",Object)],FD.prototype,"alternateIcon",void 0);
_.S([_.q({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.p("design:type",Boolean)],FD.prototype,"hasFullHeightImage",void 0);_.S([_.q({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.p("design:type",Boolean)],FD.prototype,"useYoutubeSans",void 0);_.S([_.q({computed:"computeShouldShowModernIcon(modern, icon)"}),_.p("design:type",Boolean)],FD.prototype,"shouldShowModernIcon",void 0);
_.S([_.bU("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FD.prototype,"onThumbnailLoaded",null);_.S([_.zy({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],FD);
_.Y(FD,"yt-mealbar-promo-renderer",function(){if(oXV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;PrZ===void 0&&(PrZ=document.createElement("template"));var n=PrZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);oXV=V}V=oXV;return V},{mode:2});var JdJ;var rdR;var g7=function(){return _.E.apply(this,arguments)||this};
_.v(g7,_.E);_.P=g7.prototype;_.P.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]]"}}}}}};
_.P.computeHasButtons_=function(V){return!(!V.dismissButton&&!V.acceptButton)};
_.P.computeStyle_=function(V){return V||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P.observeImpressionEndpoints_=function(){var V=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;_.HA(V.hostElement,[D])})};
_.P.onTap_=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
g7.prototype.observeImpressionEndpoints_=g7.prototype.observeImpressionEndpoints_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],g7.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],g7.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],g7.prototype,"positionType",void 0);_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],g7.prototype,"hasButtons_",void 0);_.S([_.q({value:function(){return this.onTap_.bind(this)}}),
_.p("design:type",Function)],g7.prototype,"boundOnTap_",void 0);_.S([_.q({value:{style:"mono-inverse"}}),_.p("design:type",Object)],g7.prototype,"buttonOverride",void 0);_.S([_.KI("data.promoConfig.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],g7.prototype,"observeImpressionEndpoints_",null);_.S([_.zy({is:"yt-tooltip-renderer",disableElementRegistration:!0})],g7);
_.Y(g7,"yt-tooltip-renderer",function(){if(rdR===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;JdJ===void 0&&(JdJ=document.createElement("template"));var n=JdJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);rdR=V}V=rdR;return V},{mode:2});var HFB;var wpR;var Q_R={},TJJ=(Q_R.WEB_REMIX="music.youtube.com",Q_R),vz=function(){var V=_.E.apply(this,arguments)||this;V.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return V};
_.v(vz,_.E);_.P=vz.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.created=function(){this.embedHost_=TJJ[_.XB("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.P.ready=function(){_.Pt(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.P.computeEmbedCode_=function(V,D,f,n,t){if(!V)return"";var J=V.videoId,H=V.fullListId,Q=[];V.attributionId&&Q.push("si="+V.attributionId);n||Q.push("controls=0");f&&Number(D)>0&&Q.push("start="+D);H&&(J="videoseries",Q.push("list="+H));f="https://"+(t?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+J;V.clipId&&(Q.push("clip="+V.clipId),Q.push("clipt="+V.clipTiming));D=Q.length>0?f+"?"+Q.join("&amp;"):f;V.encryptedEmbedConfig&&Q.push("embed_config="+JSON.stringify({enc:V.encryptedEmbedConfig}));
Q=Q.length>0?f+"?"+Q.join("&amp;"):f;_.c("web_sharing_embed_preview_killswitch")?_.Pt(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(Q,V.previewWidth||854,V.previewHeight||480):(_.kN(this.videoPreviewContainer),_.Pt(this.videoPreviewContainer).appendChild(this.buildIframeElement(Q)));return this.getEmbedCode_(D,V.width||560,V.height||315)};
_.P.buildIframeElement=function(V){var D=document.createElement("iframe"),f,n;D.width=""+((n=(f=this.data)==null?void 0:f.previewWidth)!=null?n:854);var t,J;D.height=""+((J=(t=this.data)==null?void 0:t.previewHeight)!=null?J:480);_.z6(D,2,V);D.title="YouTube video player";D.frameBorder="0";D.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";D.referrerPolicy="strict-origin-when-cross-origin";D.allowFullscreen=!0;return D};
_.P.computeIsSquareAspectRatio_=function(V){return V.previewHeight&&V.previewWidth?V.previewHeight==V.previewWidth:!1};
_.P.computeShowEmbedOptions_=function(V){return!!V.enablePrivacyModeOptionLabel||!!V.showPlayerControlsOptionLabel};
_.P.getEmbedCode_=function(V,D,f){return'<iframe width="'+D+'" height="'+f+'" src="'+V+'" 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>'};
_.P.handleSignalActionCopyShareEmbedUrl_=function(){_.Pt(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.P.handleSetTimestamp_=function(V){this.startAtTimeStamp_=(this.startAtChecked_=V.isSet)?V.timestamp:0};
_.P.closePanel_=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.P.onEmbedCode_=function(){_.Pt(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.P.onYtPopupClosed_=function(){_.kN(_.Pt(this.hostElement).querySelector("#video-preview"))};
_.P.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.g(this.data.actionButtons[0],_.RI)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.actionButtons[0],_.RI))};
vz.prototype.onYtPopupClosed_=vz.prototype.onYtPopupClosed_;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],vz.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],vz.prototype,"data",void 0);
_.S([_.q({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.p("design:type",String)],vz.prototype,"embedCode_",void 0);_.S([_.q({value:!0}),_.p("design:type",Boolean)],vz.prototype,"isPlayerControlsOptionChecked_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],vz.prototype,"isPrivacyModeOptionChecked_",void 0);_.S([_.q({value:!1,notify:!0}),_.p("design:type",Boolean)],vz.prototype,"startAtChecked_",void 0);
_.S([_.q({value:0}),_.p("design:type",Number)],vz.prototype,"startAtTimeStamp_",void 0);_.S([_.q({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],vz.prototype,"isSquareAspectRatio_",void 0);_.S([_.Zv("#video-preview"),_.p("design:type",HTMLElement)],vz.prototype,"videoPreviewContainer",void 0);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vz.prototype,"onYtPopupClosed_",null);
_.S([_.zy({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],vz);
_.Y(vz,"yt-sharing-embed-renderer",function(){if(wpR===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;HFB===void 0&&(HFB=document.createElement("template"));var n=HFB;f.call(D,n.content.cloneNode(!0),V.content.firstChild);wpR=V}V=wpR;return V},{mode:2});var bF0={};
bF0.YtUnlimitedFamilyInterstitialBehavior=[_.T0.YtOpenPopupBehavior,_.D6.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(V){V=_.elV(_.x7(V),"yt-button-renderer");return V?V.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(V){this.dialogHistory_.push(V)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var V=this.popFromHistory();if(V){var D={openPopupAction:{popupType:"DIALOG",popup:{}}};D.openPopupAction.popup[V.renderer]=V.data;this.showingPreviousDialog_=!0;this.openPopup(D)}},
handleOpenPopupAction_:function(V){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var D=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(n){return!!V.openPopupAction.popup[n]}),f=this.getElementName_();
D&&this.data&&(this.pushToHistory({renderer:f,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(V){if(V=_.g(V,LJv))this.loading=!0,_.o4(this.hostElement,"yt-open-create-family-dialog",[V,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var V=this.hostElement.nodeName.split("-").slice(1).map(function(D){return""+D[0].toUpperCase()+D.slice(1).toLowerCase()}).join("");
return V[0].toLowerCase()+V.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var KZc;var ydJ;var kk=function(){return _.E.apply(this,arguments)||this};
_.v(kk,_.E);_.P=kk.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.o4(this.hostElement,"yt-register-create-family-dialog");_.Pt(this.hostElement).querySelector("#thumbnail").onShow()};
_.P.fireOnCloseCommand_=function(){var V;((V=this.data)==null?0:V.onCloseCommand)&&_.wN(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.P.onYtServiceRequestSent_=function(V,D){D&&D.endpoint&&_.g(D.endpoint,_.K6)||(this.loading=!0)};
_.P.onYtServiceRequestCompleted_=function(){var V=this.hostElement.parentElement;V.close&&V.close();this.loading=!1};
_.P.openPopupHandler_=function(V){if(V.detail==this){var D;((D=this.data)==null?0:D.onOpenCommands)&&_.wN(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.P.closePopupHandler_=function(V,D){this.fireOnCloseCommand_();if(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1){var f;((f=this.data)==null?0:f.onDismissCommands)&&_.wN(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.P.dataChanged_=function(){this.loading=!1};
kk.prototype.dataChanged_=kk.prototype.dataChanged_;kk.prototype.closePopupHandler_=kk.prototype.closePopupHandler_;kk.prototype.openPopupHandler_=kk.prototype.openPopupHandler_;kk.prototype.onYtServiceRequestCompleted_=kk.prototype.onYtServiceRequestCompleted_;kk.prototype.onYtServiceRequestSent_=kk.prototype.onYtServiceRequestSent_;_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],kk.prototype,"ytEventForwardingBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(bF0.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],kk.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],kk.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],kk.prototype,"loading",void 0);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],kk.prototype,"onYtServiceRequestSent_",null);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],kk.prototype,"onYtServiceRequestCompleted_",null);
_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],kk.prototype,"openPopupHandler_",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],kk.prototype,"closePopupHandler_",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kk.prototype,"dataChanged_",null);
_.S([_.zy({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],kk);
_.Y(kk,"yt-unlimited-family-message-interstitial-renderer",function(){if(ydJ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;KZc===void 0&&(KZc=document.createElement("template"));var n=KZc;f.call(D,n.content.cloneNode(!0),V.content.firstChild);ydJ=V}V=ydJ;return V},{mode:2});var ZFw;var j_W;var sf=function(){return _.E.apply(this,arguments)||this};
_.v(sf,_.E);sf.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"}}}};
sf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Pt(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(V){V.onShow()});
_.Pt(this.hostElement).querySelector("#main-thumbnail").onShow()};
sf.prototype.onButtonTap_=function(V){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(V)};
sf.prototype.computeMainThumbnailWidth_=function(V){return V&&V.length!==0?72:96};
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.S([_.u(bF0.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],sf.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],sf.prototype,"data",void 0);
_.S([_.q({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.p("design:type",Number)],sf.prototype,"mainThumbnailWidth_",void 0);_.S([_.q({value:function(){return this.onButtonTap_.bind(this)}}),
_.p("design:type",Function)],sf.prototype,"boundButtonTap_",void 0);_.S([_.zy({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],sf);
_.Y(sf,"yt-unlimited-family-profile-interstitial-renderer",function(){if(j_W===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;ZFw===void 0&&(ZFw=document.createElement("template"));var n=ZFw;f.call(D,n.content.cloneNode(!0),V.content.firstChild);j_W=V}V=j_W;return V},{mode:2});var lEJ;var Giv;var Bz=function(){var V=_.E.apply(this,arguments)||this;V.sliderAriaValueText_=null;V.selectedIndex_=0;V.messages={PAUSE_SLIDER:_.Zl("PAUSE_SLIDER",void 0,"Pause Duration")};return V};
_.v(Bz,_.E);_.P=Bz.prototype;_.P.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_]]"}}}}}};
_.P.onPopupOpened_=function(V){V.detail==this&&_.c("enable_premium_voluntary_pause")&&(_.o4(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.setDialogData=function(V){this.data=V;this.resetSlider_()};
_.P.dataChanged_=function(){this.data&&this.resetSlider_()};
_.P.onSubmitTap_=function(){if(this.data.confirmCommand){var V=this.data.confirmCommand;_.g(V,_.BWV)&&_.HA(this.hostElement,[V,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.P.onExitButtonTap_=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.P.closePopupHandler_=function(V,D){(D&&D.canceled===!0||D.canceled===!1&&D.confirmed===!1)&&this.handleOnDismissCommands_()};
_.P.onSliderChange_=function(){this.selectedIndex_=_.Pt(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.P.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.P.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.P.resetSlider_=function(){if(this.data){var V=this.data.defaultEndOptionIndex||0,D=_.Pt(this.hostElement).querySelector("#id-pause-slider");if(D.immediateValue<V)for(;D.immediateValue!=V;)D.increment();else if(V<D.immediateValue)for(;D.immediateValue!=V;)D.decrement();this.selectedIndex_=V;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.P.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.wN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.wN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.loading=!0};
_.P.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Bz.prototype.onYtServiceRequestCompleted=Bz.prototype.onYtServiceRequestCompleted;Bz.prototype.onYtServiceRequestSent=Bz.prototype.onYtServiceRequestSent;Bz.prototype.closePopupHandler_=Bz.prototype.closePopupHandler_;Bz.prototype.dataChanged_=Bz.prototype.dataChanged_;Bz.prototype.onPopupOpened_=Bz.prototype.onPopupOpened_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Bz.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Bz.prototype,"loading",void 0);_.S([_.q(),_.p("design:type",Number)],Bz.prototype,"selectIndexMax_",void 0);_.S([_.q(),_.p("design:type",Object)],Bz.prototype,"selectedData_",void 0);
_.S([_.q(),_.p("design:type",Object)],Bz.prototype,"sliderAriaValueText_",void 0);_.S([_.q({value:function(){return this.onSubmitTap_.bind(this)}}),
_.p("design:type",Function)],Bz.prototype,"onButtonTap_",void 0);_.S([_.q({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.p("design:type",Function)],Bz.prototype,"onSecondaryTap_",void 0);_.S([_.q(),_.p("design:type",Object)],Bz.prototype,"messages",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Bz.prototype,"onPopupOpened_",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bz.prototype,"dataChanged_",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Bz.prototype,"closePopupHandler_",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],Bz.prototype,"onYtServiceRequestSent",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],Bz.prototype,"onYtServiceRequestCompleted",null);_.S([_.zy({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Bz);
_.Y(Bz,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Giv===void 0){var V=document.createElement("template");_.B(V,'\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>');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;lEJ===void 0&&(lEJ=document.createElement("template"));var n=lEJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);Giv=V}V=Giv;return V},{mode:2});var eEo;var cdX;var d7=function(){return _.E.apply(this,arguments)||this};
_.v(d7,_.E);d7.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Rt("vcBalanceRenderer")}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],d7.prototype,"data",void 0);_.S([_.zy({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],d7);
_.Y(d7,"yt-vc-offer-layout-header-renderer",function(){if(cdX===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;eEo===void 0&&(eEo=document.createElement("template"));var n=eEo;f.call(D,n.content.cloneNode(!0),V.content.firstChild);cdX=V}V=cdX;return V},{mode:2});var FZR;var gXW;var vX0;var kic;var uc=function(){return _.E.apply(this,arguments)||this};
_.v(uc,_.E);uc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.IG.Object.defineProperties(uc.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)}}});
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.Ezr.YtTappableItemBehavior),_.p("design:type",Object)],uc.prototype,"ytTappableItemBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],uc.prototype,"data",void 0);
_.S([_.q({reflectToAttribute:!0}),_.R("data.accessibilityText"),_.p("design:type",String),_.p("design:paramtypes",[])],uc.prototype,"ariaLabel",null);_.S([_.q({reflectToAttribute:!0}),_.R("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],uc.prototype,"vcOfferStyle",null);_.S([_.R("data.style","data.titleText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uc.prototype,"showTitleText",null);_.S([_.zy({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],uc);
_.Y(uc,"yt-vc-offer-renderer",function(){if(kic===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;vX0===void 0&&(vX0=document.createElement("template"));var n=vX0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);kic=V}V=kic;return V},{mode:2});var Nf=function(){return _.E.apply(this,arguments)||this};
_.v(Nf,_.E);Nf.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Nf.prototype,"data",void 0);_.S([_.zy({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Nf);
_.Y(Nf,"yt-vc-offer-layout-renderer",function(){if(gXW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;FZR===void 0&&(FZR=document.createElement("template"));var n=FZR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);gXW=V}V=gXW;return V},{mode:2});var s_f;var BJw;var dO0;var upf;var mP=function(){return _.E.apply(this,arguments)||this};
_.v(mP,_.E);mP.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}}}}}};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],mP.prototype,"data",void 0);_.S([_.zy({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],mP);
_.Y(mP,"yt-ypc-offers-modal-top-bar-renderer",function(){if(upf===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;dO0===void 0&&(dO0=document.createElement("template"));var n=dO0;f.call(D,n.content.cloneNode(!0),V.content.firstChild);upf=V}V=upf;return V},{mode:2});var z8=function(){return _.E.apply(this,arguments)||this};
_.v(z8,_.E);z8.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"}}}}};
z8.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
z8.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var V=this.scrollable;V.attached&&typeof V.attached==="function"&&V.attached()};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.S([_.Zv("#scrollable"),_.p("design:type",Object)],z8.prototype,"scrollable",void 0);_.S([_.q(),_.p("design:type",Object)],z8.prototype,"data",void 0);_.S([_.zy({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],z8);
_.Y(z8,"yt-ypc-offers-modal-renderer",function(){if(BJw===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;s_f===void 0&&(s_f=document.createElement("template"));var n=s_f;f.call(D,n.content.cloneNode(!0),V.content.firstChild);BJw=V}V=BJw;return V},{mode:2});var NJZ;var mOw;var R6=function(){return _.E.apply(this,arguments)||this};
_.v(R6,_.E);_.P=R6.prototype;_.P.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}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Pt(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.P.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.o4(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.P.onYtPopupOpened_=function(V,D){(D==null?void 0:D.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.wN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.onYtPopupClosed_=function(V,D){this.continueButtonTapped||D&&(D.canceled===!0||D.canceled===!1&&D.confirmed===!1)&&this.data.onDismissCommands&&_.wN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestError_=function(V){this.set("showSpinner",!1);_.Uw(this.hostElement,V.detail.error.message)};
_.P.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.c("enable_ypc_spinners")?_.o4(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
R6.prototype.onYtServiceRequestError_=R6.prototype.onYtServiceRequestError_;R6.prototype.onYtPopupClosed_=R6.prototype.onYtPopupClosed_;R6.prototype.onYtPopupOpened_=R6.prototype.onYtPopupOpened_;R6.prototype.onYtServiceRequestCompleted_=R6.prototype.onYtServiceRequestCompleted_;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);
_.S([_.q(),_.p("design:type",Object)],R6.prototype,"data",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],R6.prototype,"showSpinner",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],R6.prototype,"continueButtonTapped",void 0);_.S([_.q({value:function(){return this.onContinueTapped_.bind(this)}}),
_.p("design:type",Function)],R6.prototype,"bindOnContinueTapped_",void 0);_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],R6.prototype,"onYtServiceRequestCompleted_",null);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],R6.prototype,"onYtPopupOpened_",null);
_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],R6.prototype,"onYtPopupClosed_",null);_.S([_.bU("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],R6.prototype,"onYtServiceRequestError_",null);_.S([_.zy({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],R6);
_.Y(R6,"yt-ypc-upgrade-dialog-renderer",function(){if(mOw===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;NJZ===void 0&&(NJZ=document.createElement("template"));var n=NJZ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);mOw=V}V=mOw;return V},{mode:2});var zEJ;var REZ;var Cr=function(){return _.E.apply(this,arguments)||this};
_.v(Cr,_.E);Cr.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Cr.prototype.computeHasButtons_=function(V){return!(!V.dismissButton&&!V.confirmButton)};
Cr.prototype.computeStyle_=function(V){return V||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],Cr.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Cr.prototype,"data",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],Cr.prototype,"positionType",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],Cr.prototype,"hasButtons_",void 0);_.S([_.q({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Cr.prototype,"style_",void 0);_.S([_.zy({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Cr);
_.Y(Cr,"yt-bubble-hint-renderer",function(){if(REZ===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;zEJ===void 0&&(zEJ=document.createElement("template"));var n=zEJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);REZ=V}V=REZ;return V},{mode:2});var CrJ;var q$f;var qf=function(){var V=_.xi.apply(this,arguments)||this;V.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return V};
_.v(qf,_.xi);_.P=qf.prototype;_.P.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.P.attached=function(){var V=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){V.$.thumbnail.onShow();V.$["header-image"].onShow()})};
_.P.handleCheckBoxUpdateAction_=function(V){this.canShowCheckboxEnabledConfirmButton=V};
_.P.computeUseOverlayForSpinner_=function(V,D){return!!V&&D};
_.P.computeShowSpinner_=function(V,D){return V||!!D};
_.P.fireOnCloseActions_=function(){var V,D=_.r(((V=this.data)==null?void 0:V.onClosedActions)||[]);for(V=D.next();!V.done;V=D.next())this.ytRendererBehavior.resolveCommand(V.value)};
_.P.fireOnOpenCommands_=function(V){var D,f=(D=this.data)==null?void 0:D.onOpenCommands;if(f)for(V.stopImmediatePropagation(),V=_.r(f),D=V.next();!D.done;D=V.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.P.fireOnDismissCommands_=function(V){var D,f=(D=this.data)==null?void 0:D.onDismissCommands;if(f)for(V.stopImmediatePropagation(),V=_.r(f),D=V.next();!D.done;D=V.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.P.openPopupHandler_=function(V){V.detail==this&&this.fireOnOpenCommands_(V)};
_.P.closePopupHandler_=function(V,D){_.JR(this,"yt-confirm-dialog-close-action",[D]);this.fireOnCloseActions_();(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1)&&this.fireOnDismissCommands_(V)};
_.P.onHeaderImageChanged_=function(){var V;((V=this.data)==null?0:V.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.P.computeHasHeaderImageWidth_=function(V){return V!=void 0};
_.P.computeHasLoadingMessage=function(V){return!!V};
_.P.onHeaderImageWidthChanged_=function(){var V,D=(V=this.data)==null?void 0:V.headerImageWidth;if(D){if(V=1.25*D*2+D,this.$.main.style.width=V+"px",D=this.$.scroller.firstElementChild)D.style.minWidth=V+"px"}else this.$.main.style.width="100%"};
_.P.onThumbnailChanged_=function(){var V;((V=this.data)==null?0:V.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")};
_.P.onYtNavigate_=function(V){V=_.x7(V);V instanceof Node&&_.oU(this.$["confirm-button"]).contains(V)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.P.computePrimaryIsCancel_=function(V){return V};
_.P.computeIsCancelButtonHidden_=function(V){return V.skipCancelButton||!V.cancelButton};
_.P.computeIsCheckboxHidden_=function(V){return!V.checkbox};
_.P.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.P.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.P.onYtServiceRequestCompleted_=function(){var V;((V=this.data)==null?0:V.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.IG.Object.defineProperties(qf,{template:{configurable:!0,enumerable:!0,get:function(){if(q$f===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;CrJ===void 0&&(CrJ=document.createElement("template"));var n=CrJ;f.call(D,n.content.cloneNode(!0),V.content.firstChild);q$f=V}V=q$f;return V}}});
qf.prototype.onYtServiceRequestCompleted_=qf.prototype.onYtServiceRequestCompleted_;qf.prototype.onYtServiceRequestSent_=qf.prototype.onYtServiceRequestSent_;qf.prototype.onThumbnailLoaded_=qf.prototype.onThumbnailLoaded_;qf.prototype.onYtNavigate_=qf.prototype.onYtNavigate_;qf.prototype.onThumbnailChanged_=qf.prototype.onThumbnailChanged_;qf.prototype.onHeaderImageWidthChanged_=qf.prototype.onHeaderImageWidthChanged_;qf.prototype.onHeaderImageChanged_=qf.prototype.onHeaderImageChanged_;
qf.prototype.closePopupHandler_=qf.prototype.closePopupHandler_;qf.prototype.openPopupHandler_=qf.prototype.openPopupHandler_;_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],qf.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);
_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],qf.prototype,"ytEventForwardingBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],qf.prototype,"data",void 0);_.S([_.q({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],qf.prototype,"primaryIsCancel",void 0);_.S([_.q({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],qf.prototype,"isCancelButtonHidden",void 0);
_.S([_.q({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],qf.prototype,"isCheckboxHidden",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],qf.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.S([_.q({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.p("design:type",Boolean)],qf.prototype,"useOverlayForSpinner_",void 0);
_.S([_.q({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.p("design:type",Boolean)],qf.prototype,"showSpinner_",void 0);_.S([_.q({value:!1}),_.p("design:type",Boolean)],qf.prototype,"isActionInProgress_",void 0);_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.p("design:type",Boolean)],qf.prototype,"hasHeaderImageWidth_",void 0);
_.S([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.p("design:type",Boolean)],qf.prototype,"hasLoadingMessage",void 0);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qf.prototype,"openPopupHandler_",null);_.S([_.bU("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],qf.prototype,"closePopupHandler_",null);
_.S([_.KI("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qf.prototype,"onHeaderImageChanged_",null);_.S([_.KI("data.headerImageWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qf.prototype,"onHeaderImageWidthChanged_",null);_.S([_.KI("data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qf.prototype,"onThumbnailChanged_",null);
_.S([_.bU("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],qf.prototype,"onYtNavigate_",null);_.S([_.bU("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qf.prototype,"onThumbnailLoaded_",null);_.S([_.bU("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.AI]),_.p("design:returntype")],qf.prototype,"onYtServiceRequestSent_",null);
_.S([_.bU("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.LT]),_.p("design:returntype")],qf.prototype,"onYtServiceRequestCompleted_",null);_.S([_.zy({is:"yt-confirm-dialog-renderer",noInjection:!0})],qf);var XpV;var EXV;var XD=function(){return _.E.apply(this,arguments)||this};
_.v(XD,_.E);XD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Pt(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
XD.prototype.computeConfirmButton_=function(V){var D={text:V.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};V.confirmNavigationEndpoint?D.navigationEndpoint=V.confirmNavigationEndpoint:V.confirmServiceEndpoint&&(D.serviceEndpoint=V.confirmServiceEndpoint);return D};
XD.prototype.computeShowTitle_=function(V){return!(V==null||!V.title)};
_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],XD.prototype,"data",void 0);_.S([_.q({computed:"computeShowTitle_(data)"}),_.p("design:type",Boolean)],XD.prototype,"showTitle",void 0);_.S([_.zy({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],XD);
_.Y(XD,"yt-fancy-dismissible-dialog-renderer",function(){if(EXV===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;XpV===void 0&&(XpV=document.createElement("template"));var n=XpV;f.call(D,n.content.cloneNode(!0),V.content.firstChild);EXV=V}V=EXV;return V});var AdW;var aEc;var Ef=function(){var V=_.E.apply(this,arguments)||this;V.spinnerActive=!1;return V};
_.v(Ef,_.E);Ef.prototype.created=function(){PSf(2201)};
Ef.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Ef.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Ef.prototype.onIronOverlayClosed=Ef.prototype.onIronOverlayClosed;Ef.prototype.onIronOverlayOpened=Ef.prototype.onIronOverlayOpened;_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.Y0),_.p("design:type",Object)],Ef.prototype,"tpYtIronOverlayBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Ef.prototype,"data",void 0);_.S([_.q(),_.p("design:type",Object)],Ef.prototype,"spinnerActive",void 0);
_.S([_.bU("iron-overlay-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ef.prototype,"onIronOverlayOpened",null);_.S([_.bU("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ef.prototype,"onIronOverlayClosed",null);_.S([_.zy({is:"yt-loading-renderer",disableElementRegistration:!0})],Ef);
_.Y(Ef,"yt-loading-renderer",function(){if(aEc===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;AdW===void 0&&(AdW=document.createElement("template"));var n=AdW;f.call(D,n.content.cloneNode(!0),V.content.firstChild);aEc=V}V=aEc;return V},{mode:2});var Y$q;var $OB;var AC=function(){var V=_.E.apply(this,arguments)||this;V.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);V.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);V.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.v(AC,_.E);_.P=AC.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.P.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.P.openPopupHandler_=function(V){V.detail===this.hostElement&&this.hostElement.hidden&&_.o4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.P.onDismissButtonTap_=function(){var V;this.closeOnDismissButton_.has(((V=this.data)==null?void 0:V.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.o4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.onAcceptButtonTap_=function(){var V;this.closeOnAcceptButton_.has(((V=this.data)==null?void 0:V.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.o4(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.computeHasHeader_=function(V){return!!V.headerBackgroundImage};
_.P.computeLayoutStyle_=function(V){return V};
_.P.computePopupSize_=function(V){return V};
_.P.computeIconType_=function(V){return V.dialogIcon&&V.dialogIcon.iconType?V.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":V.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":V.dialogIcon.iconType:""};
_.P.computeIsLogo_=function(V){return!!V.dialogIcon&&!!V.dialogIcon.iconType&&(V.dialogIcon.iconType==="YOUTUBE_LOGO"||V.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||V.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.P.computeHasCustomLogo=function(V){return!(V==null||!V.headerForegroundImage)};
_.P.computeCustomLogo=function(V,D){if(V!=null&&V.headerForegroundImage)return V.headerForegroundImageDark?D?V.headerForegroundImageDark:V.headerForegroundImage:V.headerForegroundImage};
_.P.computeHeaderBackgroundImage=function(V,D){if(V!=null&&V.headerBackgroundImage)return D&&(V==null?0:V.headerBackgroundImageDark)?V.headerBackgroundImageDark:V.headerBackgroundImage};
_.P.shouldShowIconContainer=function(V,D){return V&&!D};
_.P.shouldShowNonYouTubeIcon=function(V,D){return!V&&!D};
_.P.getLogoImageId=function(V){var D,f,n;return(V=(D=this.computeCustomLogo(V,this.isDarkTheme))==null?void 0:(f=D.thumbnails)==null?void 0:(n=f[0])==null?void 0:n.height)&&V%31===0?"custom-logo-with-padding":"custom-logo"};
AC.prototype.openPopupHandler_=AC.prototype.openPopupHandler_;AC.prototype.dataChanged_=AC.prototype.dataChanged_;_.S([_.u(_.V8.YtRendererstamperBehavior),_.p("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.S([_.q(),_.p("design:type",Boolean)],AC.prototype,"isDarkTheme",void 0);
_.S([_.q({computed:"computeCustomLogo(data, isDarkTheme)"}),_.p("design:type",Object)],AC.prototype,"customLogo",void 0);_.S([_.q({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.p("design:type",Object)],AC.prototype,"headerBackgroundImage",void 0);_.S([_.q(),_.p("design:type",Object)],AC.prototype,"data",void 0);_.S([_.q({computed:"computeHasHeader_(data)"}),_.p("design:type",Boolean)],AC.prototype,"hasHeader",void 0);
_.S([_.q({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.p("design:type",Object)],AC.prototype,"layoutStyle",void 0);_.S([_.q({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.p("design:type",Object)],AC.prototype,"popupSize",void 0);_.S([_.q({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],AC.prototype,"hasLogo",void 0);
_.S([_.q({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],AC.prototype,"hasCustomLogo",void 0);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AC.prototype,"dataChanged_",null);_.S([_.bU("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],AC.prototype,"openPopupHandler_",null);
_.S([_.zy({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],AC);
_.Y(AC,"yt-upsell-dialog-renderer",function(){if($OB===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Y$q===void 0&&(Y$q=document.createElement("template"));var n=Y$q;f.call(D,n.content.cloneNode(!0),V.content.firstChild);$OB=V}V=$OB;return V},{mode:2});var iFW=_.MA(function(V){return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.K(_.e,{cond:V.title,then:function(D){return _.K("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},D)}}))},"Fg"),S$V=_.MA(function(V){return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.K(_.BW,{data:V.closeButton},{buttonViewModel:function(D){return _.K("div",null,_.K(_.HO,{data:D.data}))}}))},"Gg"),WZv=_.MA(function(V){var D=
V.data;
return _.K(_.th,null,_.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.K(_.e,{cond:function(){return!!D().image&&!!D().title},
then:function(){return _.K(_.xt,{data:function(){return D().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.K(_.e,{cond:function(){return D().title},
then:function(f){return _.K("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},f)}}),_.K(_.e,{cond:function(){return D().primaryGenre},
then:function(f){return _.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},f)}}))),_.K(_.e,{cond:function(){var f=D().description;
return f&&f.length<=150},
then:function(){return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return D().description}))}}))},"Hg"),pp3=_.MA(function(V){V=V.infoRows;
var D=_.DY().resolve(_.RJ),f=_.c("enable_displaying_ppn");return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.K(_.FB,{each:V},function(n){return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.K(_.e,{cond:function(){return n.label},
then:function(t){return _.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},t)}}),_.K(_.e,{cond:function(){return n.attributedLabel},
then:function(t){return _.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.K(_.Ow,{text:t,noPreWrap:!0}))}}),_.K(_.e,{cond:function(){return n.value},
then:function(t){return _.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},t)}}),_.K(_.e,{cond:function(){return n.attributedValue},
then:function(t){return _.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.K(_.Ow,{text:t,noPreWrap:!0}))}}))}),_.K(_.e,{cond:function(){return f&&D.clientData.has("post_play_nonce")},
then:function(){return _.K("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.K("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},D.getData("post_play_nonce")))}}))},"Ig"),LZJ=_.MA(function(V){var D=V.data;
return _.K("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.K(iFW,{title:function(){return D().dialogTitle}}),_.K(WZv,{data:D}),_.K(_.e,{cond:function(){return D().infoRow},
then:function(f){return _.K(pp3,{infoRows:f})}}),_.K(S$V,{closeButton:function(){return D().closeButton}}))},"Jg");
LZJ.idomCompat=!0;_.fT(LZJ,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;return _.K("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.K(_.xt,{data:function(){return D().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.K("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.K("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.K(_.e,{cond:function(){var f=D().ytLogo;return f?f.iconType:null},
then:function(f){return _.K(_.cj,{icon:f,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.K("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.K("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.K(_.Ow,{text:function(){return D().body}})),_.K("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.K(_.Ow,{text:function(){return D().verifyStateText}}))),
_.K("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.K("div",null,_.K(_.BW,{data:function(){return D().dismissButton}},{buttonViewModel:_.HO})),_.K("div",null,_.K(_.BW,{data:function(){return D().linkParentButton}},{buttonViewModel:_.HO})))))},"Kg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.WX}});var IEv=_.MA(function(V){var D=V.data;V=_.IU(function(){return D().agreements},[]);
return _.K("installment-agreements-view-model",{class:_.KT("ytInstallmentAgreementsViewModelHost")},_.K(_.FB,{each:V},function(f){return _.K("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.K("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.K(_.Ow,{text:f.label})),_.K("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.K(_.BW,{data:function(){return f.openButton}},{buttonViewModel:_.HO})))}))},"Lg");
IEv.idomCompat=!0;var OFq=_.MA(function(V){return _.K("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.K(_.Ow,{text:function(){return V.data().inviteMessage}})),_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.K(_.Ow,{text:function(){return V.data().attributedAccountSectionHeaderText}})),_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.K(_.BW,{data:function(){return V.data().accountAvatar}},{avatarViewModel:_.vd}),_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.K(_.Ow,{text:function(){return V.data().accountName}}),_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.K(_.Ow,{text:function(){return V.data().handle}}))),_.K(_.BW,{data:function(){return V.data().trailingButton}},{buttonViewModel:_.HO})),_.K("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.K(_.Ow,{text:function(){return V.data().termsOfService}})))},"Mg");var xOZ=_.MA(function(V){var D=_.r(_.Gk(function(){var x,oY;return((x=V.data().createPlaylistDialogFormSchema)==null?0:(oY=x.initialValues)==null?0:oY.title)?V.data().createPlaylistDialogFormSchema.initialValues.title:""})),f=D.next().value,n=D.next().value;
D=_.r(_.Gk(function(){V.data();return!1}));
var t=D.next().value,J=D.next().value;D=_.r(_.Gk(function(){V.data();return!1}));
var H=D.next().value,Q=D.next().value;D=_.r(_.Gk(function(){var x,oY;return(x=V.data().createPlaylistDialogFormSchema)==null?void 0:(oY=x.initialValues)==null?void 0:oY.visibility}));
var T=D.next().value,y=D.next().value;D=_.r(_.Gk(function(){V.data();return!1}));
var Z=D.next().value,l=D.next().value;D=_.r(_.Gk(function(){var x,oY;return(x=V.data().createPlaylistDialogFormSchema)==null?void 0:(oY=x.initialValues)==null?void 0:oY.isCollaborative}));
var G=D.next().value,F=D.next().value,k=_.W2("div");_.BJ(function(){var x=k.value.querySelector("textarea");x&&(x.value=f())},"OCauEe");
_.Nl(function(){var x;_.QVV((x=V.data().createPlaylistDialogFormSchema)==null?void 0:x.id,{onSubmit:function(){var oY=f();var wZ=T(),ZZ=G(),sd=V.data();oY={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:oY,privacyStatus:wZ,videoIds:sd.videoIds,sourcePlaylistId:sd.sourcePlaylistId,params:ZZ?sd.createPlaylistParamsCollaborationEnabled:sd.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.DY().resolve(_.fH).resolveCommand(oY)},
isValid:function(){return t()&&!H()&&!Z()}})});
var d=function(x){if(x!==void 0&&(n(x),!t()&&x.length>0&&J(!0),t())){var oY=yP0(V.data());if(oY){var wZ=oY.minLength;oY=oY.maxLength;wZ&&x.length<wZ?Q(!0):oY&&x.length>oY?Q(!0):Q(!1)}}},z=function(){var x=!(!G()||T()!=="PRIVATE");
l(x)},C=function(x){x!==void 0&&(y(x),z())},A=function(){if(Z())return jBZ(V.data())},O=function(){F(!G());
z()},W=function(){return{validate:function(x){if(t()){var oY=yP0(V.data());
if(oY){var wZ=oY.minLength;oY=oY.translations;if(wZ&&x.length<wZ)return oY==null?void 0:oY.minLengthErrorMessage}}}}},I=function(){var x=yP0(V.data()),oY=x==null?void 0:x.maxLength,wZ;
x=x==null?void 0:(wZ=x.translations)==null?void 0:wZ.maxLengthErrorMessage;if(oY&&x)return{maxChars:oY,errorMessage:x}};
return _.K("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.K("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:k},_.K(_.BW,{data:function(){return V.data().playlistTitle}},{textFormFieldViewModel:function(x){return _.K(_.V1W,{data:x.data,
text:f,onInput:d,validation:W,characterLimit:I})},
textFieldViewModel:function(x){return _.K(_.Ulq,{data:x.data,text:f,onInput:d,validation:W,characterLimit:I})}})),_.K("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.K(_.BW,{data:function(){return V.data().playlistVisibility}},{dropdownViewModel:function(x){return _.K(_.TOc,{data:x.data,
onSelected:C,error:A})}})),_.K(_.e,{cond:function(){return!!V.data().playlistCollaborate},
then:function(){return _.K("div",null,_.K(_.BW,{data:function(){return V.data().playlistCollaborate}},{switchListItemViewModel:function(x){return _.K(_.irE,{data:x.data,
onTap:O})}}))}}))},"Ng");var Mfo=_.MA(function(V){var D=V.data;return _.K("upsell-offer-table-cell-content-view-model",null,_.K("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.K(_.kw,null,_.K(_.gj,{when:function(){return D().iconType}},function(){return _.K("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.K(_.cj,{icon:function(){return D().iconType.toString()}}))}),_.K(_.gj,{when:function(){return D().title}},function(){return _.K(_.Ow,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return D().title}})}),_.K(_.gj,{when:function(){return D().subtitle}},function(){return _.K(_.Ow,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return D().subtitle}})}),_.K(_.gj,{when:function(){return D().infoText}},function(){return _.K(_.Ow,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return D().infoText}})}),_.K(_.gj,{when:function(){return D().featureDescription}},function(){return _.K(_.Ow,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return D().featureDescription}})}),_.K(_.gj,{when:function(){return D().note}},function(){return _.K(_.Ow,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return D().note}})}))))},"Og");
Mfo.idomCompat=!0;var hE3=_.MA(function(V){var D=V.data;return _.K("upsell-offer-table-cell-view-model",null,_.K("div",{class:_.KT("ytUpsellOfferTableCellViewModelCellWrapper",function(){return D().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.K(_.BW,{data:function(){return D().contents}},{upsellOfferTableCellContentViewModel:Mfo})))},"Pg");
hE3.idomCompat=!0;var UOZ=_.MA(function(V){var D=V.data;var f=V.upsellTableIsFirstRow;var n=function(){return(f==null?0:f())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},t=function(){return(f==null?0:f())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.K("ytm-upsell-offer-table-row-view-model",null,_.K("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.K(_.BW,{data:function(){return D().rowHeaderCell}},{upsellOfferTableCellViewModel:function(J){return _.K("div",{class:n},_.K(hE3,{data:J.data}))}}),_.K(_.BW,{data:function(){return D().contentCells}},{upsellOfferTableCellViewModel:function(J){return _.K("div",{class:t},_.K(hE3,{data:J.data}))}})))},"Qg");
UOZ.idomCompat=!0;var VU3=_.MA(function(V){var D=V.data;return _.K("ytm-upsell-offer-table-view-model",null,_.K("div",{class:"ytUpsellOfferTableViewModelHost"},_.K("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.K(_.BW,{data:function(){return D().rows}},{upsellOfferTableRowViewModel:function(f,n){return _.K(UOZ,{data:f.data,
upsellTableIsFirstRow:function(){return n()===0}})}}))))},"Rg");
VU3.idomCompat=!0;var DIR=_.MA(function(V){var D=_.IU(V.noPadding,!1),f=function(){var J,H;return(H=(J=V.data().logo.accessibilityData)==null?void 0:J.label)!=null?H:""},n=function(){return V.data().offerTable},t={};
return _.K("upsell-view-model",{class:_.KT("ytUpsellViewModelHost",(t.ytUpsellViewModelHostNoPadding=function(){return D()},t.ytUpsellViewModelHostWide=function(){return n()!==void 0},t))},_.K("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.K(_.e,{cond:function(){return _.pX(V.data().logo)},
then:function(J){return _.K(_.xt,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:f})}})),_.K("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.K(_.Ow,{text:function(){return V.data().title}})),_.K("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.K(_.FB,{each:function(){var J;
return(J=V.data().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){var H={};return _.K("div",{class:_.KT("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(H.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return n()!==void 0},H))},_.K(_.Ow,{text:J}))})),_.K("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.K(_.FB,{each:function(){var J;
return(J=V.data().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.K(_.e,{cond:function(){return J().info},
then:function(H){return _.K("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.K(_.cj,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.K(_.Ow,{text:H}))}})})),_.K(_.e,{cond:function(){return n()!==void 0},
then:function(){return _.K("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.K(VU3,{data:n}))}}),_.K("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.K(_.FB,{each:function(){var J;
return(J=V.data().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){var H={};return _.K("div",{class:_.KT("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(H.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return n()!==void 0},H))},_.K(_.Ow,{text:J}))})))},"Sg");var fPv=_.MA(function(V){var D=V.data;V={};V=(V.ytMiniAppScoreChallengeViewModelScoreRadial=!0,V.ytMiniAppScoreChallengeViewModelDarkScoreRadial=lx0(),V);return _.K("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.K("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return D().title}),_.K("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return D().subtitle}),_.K("div",{class:_.y6(V)},_.K("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return D().score})),_.K("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return D().prompt}))},"Tg");var nhW=function(){this.store=_.pI();this.formId=""};var tUV=_.MA(function(V){function D(Q){if(Q&&(Q=_.g(Q,_.jK)))return Object.assign({},Q,{isSelected:J()})}
var f=_.r(_.Gk(function(){var Q,T;return(T=(Q=_.g(V.data().option,_.jK))==null?void 0:Q.isSelected)!=null?T:!1})),n=f.next().value,t=f.next().value,J=n;
_.Nl(function(){var Q;_.QVV((Q=V.data().formSchema)==null?void 0:Q.id,{onSubmit:function(){var T=_.DY().resolve(_.fH),y=!!V.data().selectedCommand,Z=!!V.data().unselectedCommand;if(J()){if(y)var l=V.data().selectedCommand}else Z&&(l=V.data().unselectedCommand);l=_.Xo(l);D(V.data().option)&&!l?(T="",!y&&Z?T="selected ":y&&!Z&&(T="unselected "),y=new _.cI("No "+T+"command found for SelectionListItemFormViewModel"),_.NG(y)):l&&T.resolveCommand(l)},
isValid:function(){return!0}})});
var H=function(){t(!J())};
_.dc(function(){var Q,T,y=(Q=V.data())==null?void 0:(T=Q.formSchema)==null?void 0:T.id;y&&_.HJB()().delete(y)});
return _.K("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.K("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.K(_.Ow,{text:function(){return V.data().paragraph}})),_.K(_.e,{cond:function(){return D(V.data().option)},
then:function(Q){return _.K(_.sH,{data:Q,isCompact:!0,hideSelectionTextChevron:!0,onTap:H,disableHorizontalPadding:!0})}}))},"Ug");var PjW=_.MA(function(V){var D=V.data;var f=V.disablePadding;var n=V.className;var t=_.W2("yt-dialog-header-view-model"),J=function(){var Q=D().imageBanner;a:switch(D().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var T="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:T="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Q,style:T,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},H=function(){return D().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Nl(function(){var Q=function(){_.o4(t.value,"yt-refit-popups-action")},T;
(T=t.value)==null||T.addEventListener("image-loaded",Q);_.dc(function(){var y;(y=t.value)==null||y.removeEventListener("image-loaded",Q)})});
V={};return _.K("yt-dialog-header-view-model",{el:t,class:_.KT(n,(V.ytDialogHeaderViewModelHost=!0,V.ytDialogHeaderViewModelHostDisablePadding=f,V))},_.K(_.e,{cond:function(){return D().imageBanner},
then:function(){var Q={};return _.K("div",{class:_.KT(n,(Q.ytDialogHeaderViewModelBanner=!0,Q.ytDialogHeaderViewModelBannerFullBleed=H,Q)),style:_.el({"max-height":function(){return D().assetContainerMaxHeight!==void 0?D().assetContainerMaxHeight+"px":void 0}})},_.K(_.h8,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.K(_.e,{cond:function(){return D().headerBlock},
then:function(){return _.K("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.K(_.BW,{data:function(){return D().headerBlock}},{contentPreviewImageViewModel:function(Q){return _.K(_.h8,{data:Q.data,
notifyOnLoaded:!0})}}))}}),_.K(_.e,{cond:function(){return D().customBanner},
then:function(Q){return _.K("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.K(_.BW,{data:Q},{avatarStackViewModel:_.s9}))}}),_.K(_.e,{cond:function(){return D().headline},
then:function(Q){return _.K("h2",null,_.K(_.Ow,{text:Q,className:"ytDialogHeaderViewModelText"}))}}))},"Vg");
PjW.idomCompat=!0;var ohJ=_.MA(function(V){var D=_.TXv(function(){return V.data().formId}),f=D.onSubmit,n=D.isValid;
return _.K("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.K(_.BW,{data:function(){return V.data().panelFooter}},{panelFooterViewModel:function(t){return _.K(_.$g,{data:t.data,
disablePadding:!0,disablePrimaryButton:function(){return!n()},
onClickPrimaryButton:function(){f()}})}}))},"Wg");var Js0=_.MA(function(V){var D=function(){var f,n;return(n=(f=_.g(V.data().rendererContext,_.Z8))==null?void 0:f.label)!=null?n:""};
return _.K("yt-dialog-image-content-view-model",{class:_.KT("ytDialogImageContentViewModelHost",V.className)},_.K(_.e,{cond:function(){return _.pX(V.data().image)},
then:function(f){return _.K(_.xt,{data:f,alt:D,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.K(_.Ow,{text:function(){return V.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Xg");var wif=_.MA(function(V){var D=_.Or(V,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),f=D.elRefCallback;V=D.iconWiz;var n=D.assetWiz,t=D.assetType,J=D.titleWiz,H=D.leadingActionHeaderWiz,Q=D.trailingActionHeaderWiz,T=D.headerPosition,y=D.contentWiz,Z=D.buttonLayout,l=D.buttonStyle,G=D.primaryButtonWiz,F=D.secondaryButtonWiz,k=D.contentAlignment,d=D.isFullscreen,z=D.width,C=D.maxHeight,A=D.isHeaderWizDefined,
O=D.headerWiz,W=D.isFooterWizDefined,I=D.footerWiz;D=_.W2("dialog-layout",function(Ed){f==null||f(Ed)});
var x=n?function(){return n({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,oY=G?function(){var Ed={};
return G({buttonOverrides:function(){return{style:(l==null?void 0:l())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.KT((Ed["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ed["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Z==null?void 0:Z())===0||(Z==null?void 0:Z())===2},Ed))})}:void 0,wZ=F?function(){var Ed={};
return F({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.KT((Ed["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ed["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Z==null?void 0:Z())===0||(Z==null?void 0:Z())===2},Ed))})}:void 0,ZZ=function(){return(!!J||!!H||!!Q)&&T()===0},sd={},NU={},Bn={},aY={};
return _.K("dialog-layout",{el:D,class:_.KT((sd["yt-spec-dialog-layout"]=!0,sd["yt-spec-dialog-layout--dialog-layout-fullscreen"]=d,sd["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!d()},sd["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return C()===1},sd["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(t==null?void 0:t())===1},sd)),
style:function(){return(z==null?void 0:z())!==void 0?"width: "+z+"px;":""}},V?_.K("div",{class:_.KT((NU["yt-spec-dialog-layout__dialog-layout-icon"]=!0,NU["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!n&&T()===1},NU["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return k()===1},NU))},_.K(V,null)):null,_.K(_.e,{cond:A,
then:function(){return O?_.K("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.K(O,null)):null},
else:function(){return _.K(_.th,null,_.K(_.e,{cond:ZZ,then:function(){return _.K(rsc,{contentAlignment:k,LeadingActionHeader:H,TrailingActionHeader:Q,Title:J,isAboveAsset:!!x})}}),x?_.K("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.K(x,null)):null)}}),_.K("div",{class:_.KT((Bn["yt-spec-dialog-layout__dialog-layout-container"]=!0,Bn["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(k==null?void 0:k())===1},Bn["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!J&&!O||!!x&&(T==null?void 0:T())===0},Bn))},_.K(_.e,{cond:function(){return J&&!O&&(T==null?void 0:T())===1},
then:function(){return _.K(rsc,{contentAlignment:k,LeadingActionHeader:H,TrailingActionHeader:Q,Title:J,isAboveAsset:!1})}}),y?_.K("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.K("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.K(y,null))):null,_.K(_.e,{cond:W,
then:function(){return I?_.K("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.K(I,null)):null}}),oY||wZ?_.K(HQc,{footerClasses:_.KT((aY["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,aY["yt-spec-dialog-layout__dialog-layout-footer"]=!0,aY["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(Z==null?void 0:Z())===2},aY["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(Z==null?void 0:Z())===1},aY)),
PrimaryButton:oY,SecondaryButton:wZ}):null))},"Yg"),rsc=_.MA(function(V){var D=_.Or(V,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),f=D.contentAlignment,n=D.LeadingActionHeader;V=D.Title;var t=D.TrailingActionHeader,J=D.isAboveAsset,H=D.enableLeadingActionHeader;D={};return _.K("div",{class:_.KT((D["yt-spec-dialog-layout__dialog-header-container"]=!0,D["yt-spec-dialog-layout__dialog-header"]=!0,D["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=J,D["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(f==null?void 0:f())===1&&H()},D))},_.K(_.e,{cond:function(){return H()},
then:function(){return n?_.K("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.K(n,null)):null}}),V?_.K("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.K(V,null)):null,t?_.K("div",null,_.K(t,null)):null)},"Zg"),HQc=_.MA(function(V){var D=V.footerClasses;
var f=V.PrimaryButton;V=V.SecondaryButton;return _.K("div",{class:D},V?_.K(V,null):null,f?_.K(f,null):null)},"$g");var QvZ=_.MA(function(V){var D=V.data;return _.K("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.K("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.K(_.BW,{data:function(){return D().avatar}},{avatarViewModel:_.vd})),_.K("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.Ow,{text:function(){return D().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ah");var Tif=_.MA(function(V){var D=V.data;return _.K("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.K("div",{class:"ytAccessConfirmationViewModelContent"},_.K(_.BW,{data:function(){var f;return(f=D().avatar)!=null?f:D().dualAvatar}},{dualAvatarViewModel:function(f){return _.K(_.FG6,{data:f.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(f){return _.K(_.kd,{data:f.data})}}),_.K("h2",{class:"ytAccessConfirmationViewModelTitle"},_.K(_.Ow,{text:function(){return D().title}})),_.K(_.Ow,{text:function(){return D().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"bh");var bQo=_.MA(function(V){var D=V.data;var f=void 0;V=_.r(_.Gk(function(){var y;return((y=_.g(D().content,_.BcR))==null?void 0:y.defaultSelectedKey)||""}));
var n=V.next().value,t=V.next().value,J,H=function(){t("");var y;(y=f)!=null&&y.store.dispatch(_.nA({type:"RESET_COMMAND_MAP"}))};
_.Nl(function(){f=new nhW;window.addEventListener("yt-popup-closed",H)});
_.BJ(function(){if(f&&J!==D().formId){var y=f,Z=D();Z.formId&&(y.formId=Z.formId,y.store.dispatch(_.nA({type:"SET_CURRENT_FORM_ID",payload:{formId:y.formId}})));(J=D().formId)&&n()&&(y=f,Z={key:n()},Z.command&&y.store.dispatch(TaX(J,Z.command)))}},"k6b6Qe");
_.dc(function(){window.removeEventListener("yt-popup-closed",H)});
var Q=function(y,Z,l){Z.key&&l&&Z.key!==n()&&(t(Z.key),f&&Z.command&&f.store.dispatch(TaX(l,Z.command)))},T=function(){if(_.g(D().content,_.BcR))return!(n==null?0:n())};
return _.K("yt-dialog-view-model",{class:_.KT("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.K(wif,{headerWiz:function(){return _.K("span",{skip:!0},_.K(_.BW,{data:function(){return D().header}},{dialogHeaderViewModel:function(y){return _.K(PjW,{data:y.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!D().header},
contentWiz:function(){return _.K("span",{skip:!0},_.K(_.BW,{data:function(){return D().customContent?D().customContent:D().content}},{basicContentViewModel:_.boV,
createPlaylistDialogFormViewModel:xOZ,collaborativePlaylistInviteMessageViewModel:OFq,miniAppScoreChallengeViewModel:fPv,radioButtonGroupViewModel:function(y){var Z=y.data;return _.K(_.HHJ,{data:Z,selectedKey:n,onSelected:Q,groupName:function(){return Z().formId}})},
selectionListItemFormViewModel:tUV,upsellViewModel:function(y){return _.K(DIR,{data:y.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:QvZ,installmentAgreementsViewModel:IEv,accessConfirmationViewModel:Tif,listViewModel:function(y){return _.K(_.M8u,{data:y.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Js0}))},
footerWiz:function(){return _.K("span",{skip:!0},_.K(_.BW,{data:function(){return D().footer}},{panelFooterViewModel:function(y){return _.K(_.$g,{data:y.data,
disablePadding:!0,disablePrimaryButton:T})},
formPanelFooterViewModel:ohJ,formFooterViewModel:function(y){return _.K(_.xlv,{data:y.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!D().footer}}))},"ch");
bQo.idomCompat=!0;_.fT(bQo,"yt-dialog-view-model",{props:{data:_.WX},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Keq=_.MA(function(V){var D=V.data;V={};return _.K("yt-panel-header-view-model",{class:_.KT("yt-panel-header-view-model-wiz",(V["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!D().shouldHideDivider},V["yt-panel-header-view-model-wiz--compact"]=function(){return!!D().subtitle},V))},_.K("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.K(_.e,{cond:function(){return D().title},
then:function(f){return _.K(_.Ow,{text:f,className:"yt-panel-header-view-model-wiz__title"})}}),_.K(_.e,{cond:function(){return D().subtitle},
then:function(f){return _.K(_.Ow,{text:f,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.K("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.K(_.BW,{data:function(){return D().trailingButtons}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"dh");
Keq.idomCompat=!0;var ysX=_.MA(function(V){var D=_.jl(function(J){var H;if((H=V.skipContentClick)==null?0:H.call(V))return!1;V.onContentWrapperClick(J);return!0}),f,n,t;
return _.K("div",{class:_.KT("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return V.isAnimating()?"transform: translateY("+V.currentY()+"px);transition: 0.2s":""}},(f=V.header)==null?void 0:f.call(V),_.K("div",{id:V.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.el({"max-height":(0,_.vi)(V.maxHeightForContentWrapper)}),"on:scroll":FRo(V.onScroll),"on:touchmove":FRo(function(J){return void J.stopPropagation()})},_.K("div",{el:{onRender:V.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":D},(n=V.body)==null?void 0:n.call(V))),(t=V.footer)==null?void 0:t.call(V))},"eh");
ysX.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var ZQw=_.MA(function(V){var D=_.IU(V.leadingLabel),f=_.IU(V.trailingLabel),n=_.IU(V.footerButtonType),t=function(){return D()||f()||V.hasPrimaryButton()||V.hasSecondaryButton()},J={},H=_.KT("yt-spec-bottom-sheet-layout__primary-button",(J["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return n()===0&&V.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return n()===1&&V.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return n()===2&&V.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return n()===3&&V.hasPrimaryButton()},J));
J={};var Q=_.KT("yt-spec-bottom-sheet-layout__secondary-button",(J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return n()===1&&V.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return n()===2&&V.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return n()===3&&V.hasPrimaryButton()},J));
return _.K(_.e,{cond:V.hasFooterOverride,then:function(){var T;return _.K(_.th,null,(T=V.footerOverride)==null?void 0:T.call(V))},
else:function(){return _.K(_.e,{cond:t,then:function(){return _.K("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.K(_.e,{cond:function(){return D()||f()},
then:function(){var T={};return _.K("div",{class:_.KT("yt-spec-bottom-sheet-layout__footer-label-wrapper",(T["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!V.hasPrimaryButton()},T))},_.K(_.e,{cond:D,
then:function(){return _.K("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},D)}}),_.K(_.e,{cond:f,
then:function(){return _.K("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},f)}}))}}),_.K(_.e,{cond:function(){return V.hasPrimaryButton()||V.hasSecondaryButton()},
then:function(){var T={};return _.K("div",{class:_.KT("yt-spec-bottom-sheet-layout__footer-button-wrapper",(T["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.hnE,T))},_.K(_.e,{cond:function(){return V.hasSecondaryButton()&&n()!==0},
then:function(){var y;return _.K("div",{class:Q},(y=V.secondaryButton)==null?void 0:y.call(V))}}),_.K(_.e,{cond:V.hasPrimaryButton,
then:function(){var y;return _.K("div",{class:H},(y=V.primaryButton)==null?void 0:y.call(V))}}))}}))}})}})},"fh");
ZQw.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var jvv=_.MA(function(V){var D=_.IU(V.title),f=_.IU(V.subtitle);return _.K("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:V.headerId,"on:touchstart":_.jl(function(n){var t;(t=V.touchstart)==null||t.call(V,n);return!1}),
"on:touchmove":_.jl(function(n){var t;(t=V.touchmove)==null||t.call(V,n);return!1}),
"on:touchend":_.jl(function(n){var t;(t=V.touchend)==null||t.call(V,n);return!1})},_.K("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.K(_.e,{cond:V.hasHeaderOverride,
then:function(){var n;return _.K(_.th,null,(n=V.headerOverride)==null?void 0:n.call(V))},
else:function(){var n={};return _.K("div",{class:_.KT((n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=D,n))},_.K("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.K(_.e,{cond:D,then:function(){return _.K(_.th,null,_.K("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},D),_.K(_.e,{cond:f,then:function(){return _.K("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
f)}}))}})),_.K(_.e,{cond:function(){return D()&&V.hasActionHeader()},
then:function(){var t;return _.K("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(t=V.actionHeader)==null?void 0:t.call(V))}}))}}))},"gh");
jvv.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.MA(function(V){function D(x){if(!C&&typeof MutationObserver!=="undefined"){var oY={childList:!0};"MutationObserver"in window&&(C=new MutationObserver(f.bind(void 0,x)),C.observe(x,oY))}}
function f(x){typeof C!=="undefined"&&(A["content-wrapper"]===void 0&&(A["content-wrapper"]=x.children[0].clientHeight),F(A["content-wrapper"]),G()>k()||d(G()))}
function n(){l(window.innerHeight);G()>k()||d(G());O.isFullScreen[0]()&&G()>k()?W().dispatch("Snap To Full Screen",{maxHeight:z()}):W().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function t(x){document.body.style.overscrollBehavior="none";x.preventDefault();W().dispatch("Touch Start",{event:x})}
function J(x){x.preventDefault();W().dispatch("Touch Move",{event:x,contentScrollable:G()>k(),fullContentWrapperHeight:z(),contentWrapperHeight:k(),contentHeightMap:A,contentWrapperId:"content-wrapper",header:v7W(V),footer:v7W(V)})}
function H(){document.body.style.overscrollBehavior="";O.isFullScreen[0]()?O.currentY[0]()>=60?W().dispatch("Snap To Neutral Position",{maxHeight:k()}):W().dispatch("Snap To Full Screen",{maxHeight:z()}):O.currentY[0]()>=60?Q():O.currentY[0]()<=-60&&G()>k()?W().dispatch("Snap To Full Screen",{maxHeight:z()}):W().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function Q(){W().dispatch("Close Sheet",{clientHeight:Z(),maxHeight:0});setTimeout(function(){g7X()},250)}
var T=_.r(_.HJ(window.innerHeight,void 0,"NWeFS")),y=T.next().value;T=T.next().value;var Z=y,l=T;T=_.r(_.HJ(0,void 0,"oxfm4"));y=T.next().value;T=T.next().value;var G=y,F=T;T=_.r(_.Gk(function(){var x=v7W(V);return.6*Z()-G_R(x)-eLV(x)}));
y=T.next().value;T=T.next().value;var k=y,d=T,z=function(){var x=v7W(V);return Z()-G_R(x)-eLV(x)-24-24},C=null,A={},O={initialY:_.HJ(0,void 0,"cYBE5c"),
currentY:_.HJ(0,void 0,"RndqHc"),isAnimating:_.HJ(!1,void 0,"vO9DVd"),isFullScreen:_.HJ(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Gk(k)},W=function(){var x=null;return function(){if(!x){var oY={initialY:O.initialY[0](),currentY:O.currentY[0](),isAnimating:O.isAnimating[0](),isFullScreen:O.isFullScreen[0](),maxHeightForContentWrapper:O.maxHeightForContentWrapper[0]()};x=cPJ(oY)}return x}}();
_.Nl(function(){window.addEventListener("resize",n);W().subscribe(function(x){O.initialY[1](x.initialY);O.currentY[1](x.currentY);O.isAnimating[1](x.isAnimating);O.isFullScreen[1](x.isFullScreen);O.maxHeightForContentWrapper[1](x.maxHeightForContentWrapper)})});
_.dc(function(){window.removeEventListener("resize",n);C&&(C.disconnect(),C=null)});
var I=_.KT({"bottom-sheet-content-without-icon":function(){var x;return!((x=V.shouldShowIcons)==null?0:x.call(V))}});
return _.K("bottom-sheet-layout",null,_.K(ysX,{contentWrapperId:"content-wrapper",isAnimating:function(){return O.isAnimating[0]()},
currentY:function(){return O.currentY[0]()},
maxHeightForContentWrapper:function(){return O.maxHeightForContentWrapper[0]()},
shouldShowIcons:V.shouldShowIcons,skipContentClick:V.skipContentClick,onScroll:function(){var x=document.getElementById("header-wrapper"),oY=document.getElementById("content-wrapper");if(x&&oY){var wZ={};wZ=(wZ["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,wZ["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,wZ);x.className=oY.scrollTop>1?_.y6(wZ):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:g7X,contentWrapperEl:function(x){D(x);requestAnimationFrame(function(){f(x)})},
header:function(){return _.K(jvv,{touchstart:t,touchmove:J,touchend:H,title:V.headerTitle,subtitle:V.headerSubtitle,headerId:"header-wrapper",headerOverride:V.headerFn,hasHeaderOverride:V.hasHeaderFn,actionHeader:V.headerActionHeader,hasActionHeader:V.hasHeaderActionHeader})},
footer:function(){return _.K(ZQw,{footerButtonType:V.footerButtonType,leadingLabel:V.footerLeadingLabel,trailingLabel:V.footerTrailingLabel,primaryButton:V.footerPrimaryButton,hasPrimaryButton:V.hasFooterPrimaryButton,secondaryButton:V.footerSecondaryButton,hasSecondaryButton:V.hasFooterSecondaryButton,footerOverride:V.footerFn,hasFooterOverride:V.hasFooterFn})},
body:function(){return _.K(_.e,{cond:V.hasContentFn,then:function(){var x;return _.K("div",{class:I},(x=V.contentFn)==null?void 0:x.call(V))}})}}))},"hh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var lPq=_.MA(function(V){var D=_.DY().resolve(_.Ga);return _.K("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.jl(function(){return void D.closeSheet()})},_.K(_.e,{cond:function(){return!!V.header},
then:function(){return _.K("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},V.header())}}),_.K(_.e,{cond:function(){return!!V.content},
then:function(){return _.K("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},V.content())}}),_.K(_.e,{cond:function(){return!!V.footer},
then:function(){return _.K("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},V.footer())}}))},"ih");
lPq.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var G9c=_.MA(function(V){V=V.data;var D=_.W2("yt-sheet-view-model",function(n){if(_.c("web_focus_first_element_sheet")||!_.c("sheet_focus_first_killswitch"))return n.addEventListener("focus",function(){jGB(n)}),function(){n.removeEventListener("focus",function(){jGB(n)})}}),f={};
return _.K("yt-sheet-view-model",{"on:mousedown":_.jl(function(n){_.c("sheet_focus_first_killswitch")||n.currentTarget!==n.target&&n.preventDefault()}),
"on:focusin":_.jl(function(){_.c("sheet_focus_first_killswitch")||jGB(D.value)}),
class:_.KT("yt-sheet-view-model-wiz",(f["yt-sheet-view-model-wiz--contextual"]=!0,f["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.c("web_disable_backdrop_filter"),f)),el:D,tabindex:-1},_.K(_.e,{cond:V,then:function(n){return _.K(lPq,{header:function(){return _.K(_.BW,{data:function(){return n().header}},{panelHeaderViewModel:Keq})},
content:function(){return _.K(_.BW,{data:function(){return n().content}},{listViewModel:function(t){return _.K(_.M8u,{data:t.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:DIR,miniAppScoreChallengeViewModel:fPv})},
footer:function(){return _.K(_.BW,{data:function(){return n().footer}},{panelFooterViewModel:_.$g})}})}}))},"jh");
G9c.idomCompat=!0;_.fT(G9c,"yt-sheet-view-model",{props:{data:_.WX}});var csR=_.MA(function(V){var D=function(){var f;return(f=V.data().enableDebuggingFeatures)!=null?f:!1};
return _.K("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.K(_.FB,{each:function(){var f;return(f=V.data().stickers)!=null?f:[]}},function(f){return _.K(eTV,{data:function(){return f},
debugMode:D})}))},"kh"),eTV=_.MA(function(V){var D=_.Or(V,{debugMode:!1}).debugMode,f=_.IU(function(){var T;
return(T=V.data().region)==null?void 0:T.w},0),n=_.IU(function(){var T;
return(T=V.data().region)==null?void 0:T.h},0),t=_.IU(function(){var T;
return(T=V.data().region)==null?void 0:T.x},0),J=_.IU(function(){var T;
return(T=V.data().region)==null?void 0:T.y},0),H=_.jl(function(){var T=V.data().onTap;
T&&_.Yt(T)}),Q={};
return _.K("div",{class:_.KT("ytStoriesStickerLayerViewModelSticker",(Q.ytStoriesStickerLayerViewModelDebugMode=D,Q)),style:_.el({width:function(){return 100*f()+"%"},
height:function(){return 100*n()+"%"},
left:function(){return 100*t()+"%"},
top:function(){return 100*J()+"%"},
"flex-direction":function(){return k_Z(V.data().flexDirection)},
"justify-content":function(){return sBX(V.data().justifyContent)},
"align-items":function(){return BUR(V.data().alignItems)}}),
"on:click":H},_.K(_.BW,{data:function(){return V.data().button||V.data().toggleButton}},{buttonViewModel:function(T){return _.K(_.HO,{data:T.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(T){return _.K(_.FA,{data:T.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"lh");var ghB=_.MA(function(V){var D=function(){return V.data()},f={},n=_.IU(function(){return D().backgroundColor},0),t=_.IU(function(){return D().actionButtons},[]),J=_.IU(function(){return D().stickerLayer},{}),H=function(){var T,y;
return{animationRef:f,animationConfig:{autoplay:!1,loop:!1,path:(y=(T=D().foregroundAnimation)==null?void 0:T.url)!=null?y:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){V.navigateToNextItemOnLottieComplete()}}}},Q=function(){var T,y,Z,l,G,F,k,d;
return{animationConfig:{autoplay:(F=(T=D().backgroundAnimation)==null?void 0:(y=T.settings)==null?void 0:y.autoplay)!=null?F:!1,loop:(k=(Z=D().backgroundAnimation)==null?void 0:(l=Z.settings)==null?void 0:l.loop)!=null?k:!1,path:(d=(G=D().backgroundAnimation)==null?void 0:G.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.BJ(function(){if(V.isVisible()){var T;(T=f.lottieEl)==null||T.play();V.animationRef()&&(V.animationRef().lottieEl=f.lottieEl)}else{var y;(y=f.lottieEl)==null||y.stop()}},"Cbnkwd");
return _.K("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.el({"background-color":function(){return _.aB(n())+";"}})},_.K("div",{class:"ytStoriesItemViewModelAssetContent"},_.K(_.e,{cond:function(){return!!D().backgroundAnimation},
then:function(){return _.K(_.ft,{data:Q,animationName:function(){return Q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.K(_.e,{cond:function(){return!!D().backgroundImage},
then:function(){return _.K(_.xt,{data:function(){return D().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.K(_.e,{cond:function(){return!!D().foregroundAnimation},
then:function(){return _.K(_.ft,{data:H,animationName:function(){return H().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.K(_.e,{cond:function(){return!!D().foregroundImage},
then:function(){return _.K(_.xt,{data:function(){return D().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.K("div",{class:"ytStoriesItemViewModelTopShadow"}),_.K(_.BW,{data:function(){return J()}},{storiesStickerLayerViewModel:csR})),_.K("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.el({"background-color":function(){return _.aB(n())}})},_.K("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.K(_.FB,{each:t},function(T){return _.K(FeX,{data:function(){return T},
pauseAutoNavigation:V.pauseAutoNavigation})}))))},"mh"),vhJ={style:"overlay",
type:"outline"},FeX=_.MA(function(V){var D={};return _.K("div",{class:_.KT("ytStoriesItemViewModelActionButton",(D.ytStoriesItemViewModelStretchedActionButton=function(){return V.data().size==="STORIES_BUTTON_SIZE_STRETCH"},D)),
"on:click":_.jl(V.pauseAutoNavigation)},_.K(_.BW,{data:function(){return V.data().button}},{buttonViewModel:function(f){return _.K(_.HO,{data:f.data,
buttonOverrides:vhJ})}}))},"nh");_.fT(_.MA(function(V){var D=function(){var oY;return(oY=V.data().startIndex)!=null?oY:0},f=_.r(_.Gk(D)),n=f.next().value,t=f.next().value;
f=_.r(_.HJ(!1,void 0,"O8yPf"));var J=f.next().value,H=f.next().value,Q=function(){var oY;return(oY=V.data().storyItems)!=null?oY:[]},T={},y=function(){return V.data().dismissButton},Z=function(){var oY;
return _.g((oY=_.g(y(),_.cW))==null?void 0:oY.onTap,_.q3)},l=_.W2("div"),G,F,k=!1,d=function(){var oY;
(oY=G)==null||oY.cancel();G=z(n()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});G.onfinish=function(){z(n()).style.width="100%";var wZ=_.g(Q()[n()],B00),ZZ,sd;wZ!=null&&wZ.foregroundAnimation&&((wZ==null?0:(ZZ=wZ.foregroundAnimation)==null?0:ZZ.url)||(wZ==null?0:(sd=wZ.foregroundAnimation)==null?0:sd.payload))||(n()!==Q().length-1?(t(n()+1),d()):Z()&&_.Em(Z()))}},z=function(oY){return l.value.children[oY].children[0]},C=function(){for(var oY=0;oY<n();oY++)z(oY).style.width=
"100%"};
f=_.jl(function(){k||(J()?H(!1):(n()===Q().length-1&&Z()&&_.Em(Z()),z(n()).style.width="100%",n()!==Q().length-1&&(t(n()+1),d())))});
var A=_.jl(function(){k||(J()?H(!1):(z(n()).style.width="0%",n()!==0?t(n()-1):t(n()),d()))}),O=function(){H(!0)},W=function(){z(n()).style.width="100%";
n()!==Q().length-1?(t(n()+1),d()):Z()&&_.Em(Z())},I=_.jl(function(){k=!1;
F=setTimeout(function(){H(!0);k=!0},300)}),x=_.jl(function(){clearTimeout(F);
k&&J()&&H(!1)});
_.BJ(function(){if(J()){var oY;(oY=G)==null||oY.pause();var wZ;(wZ=T.lottieEl)==null||wZ.pause()}else{var ZZ;(ZZ=G)==null||ZZ.play();var sd;(sd=T.lottieEl)==null||sd.play()}},"DIHTEd");
_.BJ(function(){C();n()===D()&&d()},"ze5F8b");
_.Nl(function(){C();d()});
_.dc(function(){clearTimeout(F)});
return _.K("yt-stories-viewer-view-model",{class:_.KT("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.K("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.K("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":A,"on:mousedown":I,"on:mouseup":x,"on:mouseleave":x}),_.K("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":f,"on:mousedown":I,"on:mouseup":x,"on:mouseleave":x})),_.K("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.K(_.BW,{data:Q},{storiesItemViewModel:function(oY,wZ){var ZZ=oY.data;return _.K(_.e,{cond:function(){return Math.abs(wZ()-n())<=1},
then:function(){var sd={};return _.K("div",{class:_.KT("ytStoriesViewerViewModelStoryItem",(sd.ytStoriesViewerViewModelActiveStoryItem=function(){return wZ()===n()},sd))},_.K(ghB,{data:ZZ,
pauseAutoNavigation:O,navigateToNextItemOnLottieComplete:W,isVisible:function(){return wZ()===n()},
animationRef:T}))}})}})),_.K("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:l},_.K(_.FB,{each:Q},function(){return _.K("div",{class:"ytStoriesViewerViewModelProgressBar"},_.K("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.K("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.K(_.BW,{data:y},{buttonViewModel:_.HO})))},"oh"),"yt-stories-viewer-view-model",{props:{data:_.WX}});_.fT(_.MA(function(V){var D=V.data;var f=_.W2("yt-gen-ai-feedback-form-view-model"),n=[];return _.K("yt-gen-ai-feedback-form-view-model",{el:f,class:"ytGenAiFeedbackFormViewModelHost"},_.K(_.Ow,{text:function(){return D().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.K("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.K(_.BW,{data:function(){return D().feedbackChips}},{toggleButtonViewModel:function(t){var J=t.data;
return _.K(_.FA,{data:J,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(H){var Q=J();Q=_.g(Q,_.FO);Q=_.g(Q==null?void 0:Q.defaultButtonViewModel,_.cW).trackingParams;H?n.push(Q):(H=n.indexOf(Q),H>-1&&n.splice(H,1))}})}})),_.K(_.Ow,{text:function(){return D().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.K("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.K(_.BW,{data:function(){return D().submitButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){dZR(f.value,n,D().uniqueId)}})}}),_.K(_.BW,{data:function(){return D().moreFeedbackButton}},{buttonViewModel:function(t){return _.K(_.HO,{data:t.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ph"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.WX},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var a6=function(){return _.E.apply(this,arguments)||this};
_.v(a6,_.E);a6.prototype.created=function(){PSf(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(pOo);var V=_.DY().resolve(_.WXV);V&&(V.container=this.ytPopupContainerBehavior);if(V=_.DY().resolve(_.Ga))V.container=this.ytPopupContainerBehavior;if(V=_.DY().resolve(_.eO)){var D=this.ytPopupContainerBehavior;V.containerWasInjected?_.zP(Error("ij")):V.container=D}};
a6.prototype.ensurePopupBelowPlayer=function(V,D){var f=_.DY().resolve(_.Vx(_.xl));if(!f||!f.isOnWatch()||!_.hI())return!1;f=f.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.FS().height>f+this.getPopupHeight(V,D)?(V.style.top="auto",V.style.bottom="0px"):(V.style.top=f+"px",V.style.bottom="auto");return!0};
a6.prototype.getPopupHeight=function(V,D){D&&(V.cachedPopupHeight=0);if(!V.cachedPopupHeight){D=0;var f=V.clientHeight,n=window.getComputedStyle(V);D+=parseInt(n.marginTop,10);D+=parseInt(n.marginBottom,10);V.cachedPopupHeight=f+D}return V.cachedPopupHeight};
a6.prototype.getElement=function(V){return document.createElement(V)};
_.S([_.u(Qu0.YtPopupContainerBehavior),_.p("design:type",Object)],a6.prototype,"ytPopupContainerBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],a6.prototype,"ytComponentBehavior",void 0);_.S([_.a({disableElementRegistration:!0,is:"ytd-popup-container"})],a6);
_.Y(a6,"ytd-popup-container",function(){if(fhB!==void 0)return fhB;var V=document.createElement("template");_.B(V,"\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");V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);return fhB=V},{mode:1});var k9Z;var svf={};svf.YtLogYpcFlowCommandsBehavior=[_.D6.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(V){_.g(V,pcR)&&(V=_.g(V,pcR))&&(V.serializedTransactionFlowLoggingParams?_.udn(V.serializedTransactionFlowLoggingParams):V.serializedYpcCancelFlowLoggingParams?(V=V.serializedYpcCancelFlowLoggingParams)&&_.Rr("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",V):V.serializedYpcResumeFlowLoggingParams?(V=V.serializedYpcResumeFlowLoggingParams)&&_.Rr("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",V):V.serializedYpcPauseFlowLoggingParams?(V=V.serializedYpcPauseFlowLoggingParams)&&
_.Rr("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",V):V.serializedYpcRefundFlowLoggingParams?(V=V.serializedYpcRefundFlowLoggingParams)&&p20("YPC_EVENT_TYPE_START",V):V.serializedYpcDeactivateFlowLoggingParams?(V=V.serializedYpcDeactivateFlowLoggingParams)&&_.Rr("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",V):V.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(V=V.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Rr("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",V))},
handleLogYpcFlowDismiss_:function(V){_.g(V,WJ3)&&(V=_.g(V,WJ3),V.serializedTransactionFlowLoggingParams?_.NhZ(V.serializedTransactionFlowLoggingParams):V.serializedYpcCancelFlowLoggingParams?(V=V.serializedYpcCancelFlowLoggingParams)&&_.Rr("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",V):V.serializedYpcResumeFlowLoggingParams?(V=V.serializedYpcResumeFlowLoggingParams)&&_.Rr("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",V):V.serializedYpcPauseFlowLoggingParams?(V=
V.serializedYpcPauseFlowLoggingParams)&&_.Rr("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",V):V.serializedYpcRefundFlowLoggingParams&&(V=V.serializedYpcRefundFlowLoggingParams)&&p20("YPC_EVENT_TYPE_CANCEL",V))}}];var BiR={};BiR.YtCancelRecurrenceBehavior=[_.EY.YtComponentBehavior,_.ijl,{attached:function(){var V=this;imR(this,function(D,f){return V.ypcCancelRecurrenceHandler(D,f)})},
ypcCancelRecurrenceHandler:function(V,D){var f=this;if(!D||!D.ypcCancelRecurrenceEndpoint)return!1;if(!D.ypcCancelRecurrenceEndpoint.params)return _.Ah(Error("Bl")),!0;_.WC(this.hostElement);var n=_.Yl.instance,t=_.DY().resolve(_.Vx(_.RB));n&&_.$l(n,D)?_.ie(n,D).then(function(J){f.ypcCancelRecurrenceSuccess_(V,D,{data:J})},function(J){f.ypcCancelRecurrenceFailure_(V,D,J)}).thenCatch(function(){_.Ah(Error("Cl"))}):t?t.requestDataForServiceEndpoint(D).then(function(J){f.ypcCancelRecurrenceSuccess_(V,
D,J)},function(J){f.ypcCancelRecurrenceFailure_(V,D,J)}).thenCatch(function(){_.Ah(Error("Cl"))}):_.Ah(Error("Dl"));
return!0},
ypcCancelRecurrenceSuccess_:function(V,D,f){_.pL(this.hostElement);f.data||(f={data:f});f.data&&f.data.actions&&_.wN(this.hostElement,f.data.actions,this.hostElement);f.data.messageRenderer?IsR(D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(D=D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Rr("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",D);_.PA(V,"yt-service-request-completed",f)},
ypcCancelRecurrenceFailure_:function(V,D,f){_.pL(this.hostElement);IsR(D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.PA(V,"yt-service-request-error",{error:f,params:[V,D]})}}];var dIX=function(V,D){_.VY.call(this,D)};
_.v(dIX,kvv);var ujX={};ujX.YtCompleteTransactionBehavior=[_.EY.YtComponentBehavior,_.ijl,{attached:function(){var V=this;imR(this,function(D,f){return V.ypcCompleteTransactionHandler(D,f)})},
completeTransaction:function(V,D){var f=this;D={payments_payload:window.btoa(D.integratorData),buybucket_params:V.data.buybucketParams,offer_params:V.data.offerParams};var n=_.DY().resolve(_.RB),t=V.data.completeTransactionEndpoint,J=this.get("ypcCompleteTransactionEndpoint.actions",t);J&&_.wN(this.hostElement,J,this.hostElement);return(J=_.Yl.instance)&&_.$l(J,t)?_.ie(J,t,D).then(function(H){return!H||(H==null?0:H.error)?(H=f.get("data.serializedTransactionFlowLoggingParams",V),_.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
H))):{data:H}}).then(function(H){return f.handleCompleteTransactionSuccess_(H,V)},function(){return f.handleCompleteTransactionFailure_(V)}):n.requestDataForServiceEndpoint(t,D).then(function(H){return f.handleCompleteTransactionSuccess_(H,V)},function(){return f.handleCompleteTransactionFailure_(V)})},
handleCompleteTransactionSuccess_:function(V,D){V.data||(V={data:V});if(V.data.messageRenderer)return _.Br(new dIX(V.data.messageRenderer));if(V.data.trackingParams){var f=_.Ni(),n=_.u8();f&&n&&_.Y8(f,n,_.gs(V.data.trackingParams))}D=this.get("data.serializedTransactionFlowLoggingParams",D);LwB(D);return _.Qv(V)},
handleCompleteTransactionFailure_:function(V){V=this.get("data.serializedTransactionFlowLoggingParams",V);_.LR("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V);return _.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V))},
ypcCompleteTransactionHandler:function(V,D){var f=this;if(!D.ypcCompleteTransactionEndpoint)return!1;if(!D.ypcCompleteTransactionEndpoint.transactionParams)return _.Ah(Error("El")),!0;D.ypcCompleteTransactionEndpoint&&D.ypcCompleteTransactionEndpoint.gtmData&&_.sY(D.ypcCompleteTransactionEndpoint.gtmData);var n=_.DY().resolve(_.Vx(_.RB));if(n){_.WC(this.hostElement);var t=_.Yl.instance;t&&_.$l(t,D)?_.ie(t,D).then(function(J){return!J||(J==null?0:J.error)?(J=f.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
D),_.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))):{data:J}}).then(function(J){_.PA(V,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(D,J)},function(){return f.ypcCompleteTransactionFailure_(D)}):n.requestDataForServiceEndpoint(D).then(function(J){_.PA(V,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(D,J)},function(){return f.ypcCompleteTransactionFailure_(D)})}return!0},
ypcCompleteTransactionSuccess_:function(V,D){_.pL(this.hostElement);D.data||(D={data:D});_.o4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);D.data.messageRenderer||D.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(V):(_.sY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",V));D.data.actions&&(V=tsv(D.data.actions),D=PRJ(D.data.actions),V.length&&_.HA(this.hostElement,
V),D.length&&_.wN(this.hostElement,D,this.hostElement))},
ypcCompleteTransactionFailure_:function(V){_.pL(this.hostElement);_.o4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",V,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(V,D,f){if(D=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",D))D={serializedTransactionFlowLoggingParams:D},f&&(D.errorType=f),_.dq(V,D),_.uN()}}];var Ni3={};Ni3.YtEndpointHandlerWithYpcBehavior=[_.ijl,_.D6.YtActionHandlerBehavior,[{openWalletDialog:function(V,D,f,n,t,J,H){var Q=this,T=_.Sl();D=D.replace(/-/g,"+").replace(/_/g,"/");var y=_.Gm().get("hl");_.hbY(_.nY(_.IB),D,T.resolve,t,function(Z){J&&J();T.reject(Z)},y,function(Z){return Q.onServerBackendAnalyticEvent_(V,f,Z)},this.onDialogClose_.bind(this),n,H);
return T.promise},
openFixFlowDialog:function(V,D,f,n){V=V.replace(/-/g,"+").replace(/_/g,"/");_.nY(_.IB).openFixFlowDialog(V,D,f,n)},
onDialogClose_:function(){_.o4(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(V,D,f){_.PA(V,"yt-commerce-action-init-done");D&&_.HA(this.hostElement,[D,{backend_analytics:f}])}}],
_.T0.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(V,D){V=this.get("data.nativeFlowEndpoint",D);D=this.get("data.fallbackEndpoint",D);V?_.HA(this.hostElement,[V]):D&&_.PA(this.hostElement,"yt-navigate",{endpoint:D})}}],
BiR.YtCancelRecurrenceBehavior,ujX.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 V=this;imR(this,function(D,f,n){return V.handleYPCEndpoint(D,f,n)});
this.ypcRegisterActionMapJobId_=_.gq(_.dm,function(){V.registerActionMap(V.buyFlowActionMap_)})},
detached:function(){var V=this;_.dm.cancelJob(this.ypcRegisterActionMapJobId_);_.gq(_.dm,function(){V.unregisterActionMap(V.buyFlowActionMap_)})},
handleYPCEndpoint:function(V,D,f){var n=D.ypcGetCartEndpoint;if(n){_.mg("commerce_transaction");var t=n.gtmId;t&&_.km(t);(n=n.gtmData)&&_.sY(n)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",D)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(V,D),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",D)!=null?(this.handleYPCFixInstrumentEndpoint_(V,D),!0):D.ypcPauseSubscriptionCommand?(E7q(this.hostElement,V,D,f),
!0):D.ypcResumeSubscriptionCommand?(Ysv(this.hostElement,V,D),!0):D.getPaymentInstrumentsParamsCommand?(Cd0(this.hostElement,V,D),!0):D.ypcHandleTransactionEndpoint?(zLB(this.hostElement,V,D,f),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(V,D){var f=this;_.zm("ttcr",void 0,"commerce_transaction");D=D.ypcGetCartEndpoint;var n=D.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,t=n.encryptedPurchaseParams,J=n.serializedTransactionFlowLoggingParams,H=n.serializedPaymentsClientParams,Q=this.createGetCartResponseFromParams_(n,D.offerParams,J);this.changeButtonState(V,!0);_.cT(this.openWalletDialog(V,t,n.ypcLogWalletAnalyticDataEndpoint,J,function(){f.changeButtonState(V,!1)},function(){f.changeButtonState(V,
!1)},H).then(function(T){return f.handleBuyFlowCompleteCallback_(V,Q,T)},function(){return f.handleOnLoadError(Q)}).then(function(T){return void f.handlePostPurchaseSuccess_(V,Q,T)},function(T){return void f.handlePostPurchaseError_(T)}),function(){f.changeButtonState(V,!1);
V instanceof Element&&_.PA(V,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(V,D,f){var n=V.completeTransactionEndpoint,t=V.handleTransactionEndpoint;D={data:{offerParams:window.btoa(D),serializedTransactionFlowLoggingParams:f}};t?D.data.handleTransactionEndpoint=t:D.data.completeTransactionEndpoint=n;V.onCartDismissCommand&&(D.data.onCartDismissCommand=V.onCartDismissCommand);return D},
onGetCartServiceRequestCompleted_:function(V,D){var f=this,n=V.target;if(D&&D.data&&D.data.messageRenderer)_.pL(this.hostElement),this.handleMessageRenderer_(D.data.messageRenderer),this.changeButtonState(n,!1);else{var t=this.get("data.encryptedPurchaseParams",D),J=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",D),H=this.get("data.ypcLogWalletAnalyticDataEndpoint",D),Q=this.get("data.serializedPaymentsClientParams",D),T=this.getLoggingParams_(D);if(T||t||J)V.stopPropagation(),_.zm("ttcr",
void 0,"commerce_transaction"),t||_.pL(this.hostElement),this.changeButtonState(n,!1),J?_.o4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.XB("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:J}}},this]):t&&(this.changeButtonState(n,!0),V=null,V=this.openWalletDialog(n,t,H,T,function(){_.pL(f.hostElement);f.changeButtonState(n,!1)},function(){_.pL(f.hostElement);
f.changeButtonState(n,!1)},Q),_.cT(V.then(function(y){return f.handleBuyFlowCompleteCallback_(n,D,y)},function(){return f.handleOnLoadError(D)}).then(function(y){return f.handlePostPurchaseSuccess_(n,D,y)},function(y){return f.handlePostPurchaseError_(y)}),function(){f.changeButtonState(n,!1);
_.PA(n,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(V,D){D&&D.endpoint&&D.endpoint.ypcGetCartEndpoint&&!D.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",D.endpoint.ypcGetCartEndpoint)&&_.wN(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",D.endpoint.ypcGetCartEndpoint)],V.target),_.WC(this.hostElement),this.changeButtonState(V.target,!0))},
onServiceRequestError_:function(V,D){if(D&&D.params&&D.params.length){D=_.r(D.params);for(var f=D.next();!f.done;f=D.next())if((f=f.value)&&f.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)&&_.wN(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)],V.target);_.pL(this.hostElement);this.changeButtonState(V.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(V,D,f){var n=f.integratorData;return n==null||n===""||f.error!=null?(n=this.getLoggingParams_(D),String(f.error)==="-1"?(D.data.onCartDismissCommand&&_.wN(this.hostElement,[D.data.onCartDismissCommand],V),_.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n,!0))):_.Br(new fM("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n))):D.data.handleTransactionEndpoint?RLw(this.hostElement,D.data.handleTransactionEndpoint,{payments_payload:n,funds_guarantee_callback_client_data:f.integratorClientCallbackData}):
this.completeTransaction(D,f)},
handlePostPurchaseSuccess_:function(V,D,f){D=f.data;var n=!1,t,J;if(D&&((t=D.command)==null?0:(J=t.commandExecutorCommand)==null?0:J.commands)){var H,Q;t=(H=D.command)==null?void 0:(Q=H.commandExecutorCommand)==null?void 0:Q.commands;for(H=0;H<t.length;H++)if(_.g(t[H],_.kIo)){n=!0;break}}n||(D&&D.gtmDatas&&D.gtmDatas.length?_.sY(D.gtmDatas[0]):_.sY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));f.data&&f.data.actions&&(D=tsv(f.data.actions),f=PRJ(f.data.actions),D.length&&
_.HA(this.hostElement,D),f.length&&_.wN(this.hostElement,f,V))},
handlePostPurchaseError_:function(V){V&&V.payload&&V.payload.isUserDismiss||_.NG(Error("Gl"))},
handleOnLoadError:function(V){V=this.getLoggingParams_(V);return _.Br(new fM("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",V))},
getLoggingParams_:function(V){return this.get("data.serializedTransactionFlowLoggingParams",V)},
handleMessageRenderer_:function(V){var D=_.R9(V,"renderer"),f=_.XB("openPopupConfig");D==="confirmDialogRenderer"&&f&&_.o4(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:f.popupTypeMap[D],popup:V}},this])},
handleYPCFixInstrumentEndpoint_:function(V,D){var f=this,n=D.ypcFixInstrumentEndpoint;D=n.encryptedFixInstrumentParameters;this.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(V,!0);this.openFixFlowDialog(D,function(t,J){f.onFixFlowCompleteCallback_(n,t,J)},function(){return f.changeButtonState(V,!1)},function(){f.changeButtonState(V,!1);
f.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(V,D,f){var n=_.Yw("payments.business.integration.scenario.FixInstrument");if(D==n.IntegratorCallbackType.ON_COMPLETE){D="FIX_FOP_EVENT_TYPE_CANCEL";var t=null;f.error!=null?f.error!=n.OnCompleteCallbackError.USER_CANCELLED&&(_.wN(this.hostElement,[V.errorAction],this.hostElement),D="FIX_FOP_EVENT_TYPE_FAILURE",t="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.wN(this.hostElement,[V.successAction],this.hostElement),D="FIX_FOP_EVENT_TYPE_SUCCESS");_.wN(this.hostElement,[V.onFinishAction],
this.hostElement);this.logFixFopEvent_(V,D,t)}},
logFixFopEvent_:function(V,D,f){(V=V.serializedFixFopLoggingParams)?(D={eventType:D,serializedFixFopLoggingParams:V},f!=null&&(D.errorType=f),_.dq("fixFopFlow",D),_.uN()):_.NG(Error("Hl"))},
changeButtonState:function(V,D){_.c("enable_ypc_spinners")&&V&&(V.is==="yt-button-renderer"||V.is==="ytd-button-renderer")&&(V.disabled=D)}}];var mIJ=function(V){this.JSC$29029_clientRoot=V;this.feedbackCollectorActionMap={"yt-help-dialog-requested":iRB,"yt-feedback-dialog-requested":$Zv,"yt-signal-action-help":SsB,"yt-signal-action-send-feedback":WRX,"yt-send-feedback-action":LRf,"yt-user-feedback-endpoint":Ixf};_.$b(_.Yb.getInstance(),this.feedbackCollectorActionMap,this.JSC$29029_clientRoot)},zT0;var RTV=function(V){this.JSC$29034_clientRoot=V;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":ORW.bind(null,this.JSC$29034_clientRoot),"yt-signal-action-delete-all-downloads":MLJ,"yt-signal-action-delete-download":hLB,"yt-signal-action-delete-playlist-download":VYX,"yt-signal-action-install-pwa":ouf,"yt-signal-action-refresh-downloads":tYZ,"yt-offline-video-endpoint":rAJ,"yt-offline-playlist-endpoint":wtJ,"yt-update-local-app-setting-command":TIV,"yt-offline-orchestration-action-command":K8c,
"yt-signal-action-undo-delete-download":fvZ,"yt-local-watch-history-command":jUW};_.$b(_.Yb.getInstance(),this.downloadManagerActionMap,this.JSC$29034_clientRoot);_.NZ.instance=new _.NZ},Cjf;var Yk=function(){var V=_.E.apply(this,arguments)||this;V.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_"};V.remoteApi_=null;return V};
_.v(Yk,_.E);_.P=Yk.prototype;
_.P.ready=function(){_.c("polymer_enable_mdx")&&(Lp0({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.c("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.c("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.c("enable_cast_short_lived_lounge_token")}),_.tk("yt-remote-connection-change",this.handleConnectionChange_,this),_.tk("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=VHX())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.P.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.P.handleConnectionChange_=function(V){(this.mdxConnected=V)?(V=xdV(),!V&&i6V()&&S2J()&&(V={key:"cast-selector-receiver",name:S2J()}),V=V.name):V=null;this.receiverName=V;_.Mr(this.remoteApi_);(this.remoteApi_=VHX())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.P.handleReceiverAvailabilityChange_=function(){var V=O1Z();i6V()&&_.J5("yt-remote-cast-available")&&V.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=V.length>0};
_.P.handleRemoteQueueChange_=function(){var V=this.currentVideoId_,D=this.currentListId_,f=r6(this.remoteApi_);this.currentVideoId_=f.videoId;this.currentListId_=f.listId;this.currentVideoId_&&_.o4(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.c("polymer_enable_mdx_queue")?this.currentListId_:null,V,D])};
_.P.handleAddToQueueAction_=function(V){V=_.g(V,dTX);this.remoteApi_&&(V.videoId?this.remoteApi_.addVideo(V.videoId):V.playlistId&&this.remoteApi_.addPlaylist(V.playlistId))};
_.P.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.P.handleInsertInQueueAction_=function(V){V=_.g(V,ubZ);this.remoteApi_&&V.videoId&&this.remoteApi_.JSC$17735_insertVideo(V.videoId)};
_.P.handleRemoveFromQueueAction_=function(V){V=_.g(V,N03);this.remoteApi_&&V.videoId&&this.remoteApi_.JSC$17735_removeVideo(V.videoId)};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],Yk.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q(),_.p("design:type",Object)],Yk.prototype,"appId",void 0);_.S([_.q(),_.p("design:type",Boolean)],Yk.prototype,"mdxConnected",void 0);_.S([_.q(),_.p("design:type",Boolean)],Yk.prototype,"receiverAvailable",void 0);_.S([_.q(),_.p("design:type",Object)],Yk.prototype,"receiverName",void 0);_.S([_.q(),_.p("design:type",Object)],Yk.prototype,"currentVideoId_",void 0);
_.S([_.q(),_.p("design:type",Object)],Yk.prototype,"currentListId_",void 0);_.S([_.zy({is:"yt-mdx-manager",disableElementRegistration:!0})],Yk);_.Y(Yk,"yt-mdx-manager",void 0,{mode:2});var qHR;var XiZ;var $k=function(){var V=_.E.apply(this,arguments)||this;V.APP_IDS={ytr:3,ytm:5};V.JSC$18975_timeoutId_=0;V.actionMap={"yt-open-create-family-dialog":"open"};return V};
_.v($k,_.E);_.P=$k.prototype;_.P.created=function(){PSf(2200)};
_.P.detached=function(){this.observer_&&this.observer_.disconnect()};
_.P.open=function(V,D){var f=this,n=V.serializedYpcFamilyCreateLoggingParams;this.JSC$18975_timeoutId_=setTimeout(this.abort_.bind(this,V.postFlowErrorEndpoint,n),3E4);D&&(this.onReadyCallback_=D);var t=_.Pt(this.hostElement).querySelector("#unicorn-iframe");n&&n&&WwR("ypcFamilyCreateFlowStarted",n);_.lpF("family_creation",function(){var J=_.Yw("gapi.family_creation.render");_.Yw("gapi.config.update")("iframes/family_creation/url",f.getFamilyCreationUrlWithUnicornParams_());var H=3;V.appId&&V.appId in
f.APP_IDS&&(H=f.APP_IDS[V.appId]);H={authUser:_.XB("SESSION_INDEX")||0,clientId:H,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.XB("HL"),initialflow:[4,5,6,7],m:f.isMobile?1:0,onFlowComplete:f.onUnicornFlowComplete_.bind(f,V.postFlowSuccessEndpoint,n),onError:f.onUnicornFlowError_.bind(f,V.postFlowErrorEndpoint,n),onReady:f.onUnicornFlowReady_.bind(f,V.referencePcidParams)};J(t,H)})};
_.P.close=function(){_.Pt(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.P.onUnicornFlowComplete_=function(V,D){this.close();D&&D&&WwR("ypcFamilyCreateFlowSucceeded",D);_.PA(this.hostElement,"yt-navigate",{endpoint:V})};
_.P.onUnicornFlowError_=function(V,D){this.close();D&&WwR("ypcFamilyCreateFlowCancelled",D);_.PA(this.hostElement,"yt-navigate",{endpoint:V})};
_.P.onUnicornFlowReady_=function(V){var D=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();V&&_.Yw("gapi.family_creation.setConfig")(0,V);this.observer_=new MutationObserver(function(){_.Pt(D.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Pt(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Pt(this.hostElement).querySelector("#dialog").open()};
_.P.getFamilyCreationUrlWithUnicornParams_=function(){return _.XB("YTR_FAMILY_CREATION_URL")};
_.P.getCurrentUrl_=function(){return document.location.href};
_.P.abort_=function(V,D){this.clearTimeout_();this.onUnicornFlowError_(V,D)};
_.P.clearTimeout_=function(){clearTimeout(this.JSC$18975_timeoutId_)};
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],$k.prototype,"ytActionHandlerBehavior",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],$k.prototype,"isMobile",void 0);_.S([_.q(),_.p("design:type",Object)],$k.prototype,"onReadyCallback_",void 0);_.S([_.q(),_.p("design:type",Object)],$k.prototype,"observer_",void 0);_.S([_.zy({is:"yt-create-family-dialog",disableElementRegistration:!0})],$k);
_.Y($k,"yt-create-family-dialog",function(){if(XiZ===void 0){var V=document.createElement("template");_.B(V,'\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');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);var D=V.content,f=D.insertBefore;qHR===void 0&&(qHR=document.createElement("template"));var n=qHR;f.call(D,n.content.cloneNode(!0),V.content.firstChild);XiZ=V}V=XiZ;return V},{mode:2});var Ehv;var AsW;var ic=function(){var V=_.E.apply(this,arguments)||this;V.STEP=1;V.BLOCK_ON=80;V.MIN_PROGESS=0;V.MAX_PROGESS=100;return V};
_.v(ic,_.E);_.P=ic.prototype;_.P.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.P.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));_.DY().addProvider({provide:uAw,useValue:this})};
_.P.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.P.finish=function(){var V=this;this.progress=this.MAX_PROGESS;lvc(function(){V.progress==V.MAX_PROGESS&&(V.hostElement.hidden=!0)})};
_.P.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.IG.Object.defineProperties(ic.prototype,{progress:{configurable:!0,enumerable:!0,set:function(V){this.progress_=V;var D="scaleX("+V/this.MAX_PROGESS+")",f=_.Pt(this.hostElement).querySelector("#progress").style;f.transform=D;f.webkitTransform=D;this.hostElement.setAttribute("aria-valuenow",String(V))},
get:function(){return this.progress_}}});
_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.S([_.zy({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ic);
_.Y(ic,"yt-page-navigation-progress",function(){if(AsW===void 0){var V=document.createElement("template");_.B(V,'\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');V.content.insertBefore(_.h().content.cloneNode(!0),
V.content.firstChild);var D=V.content,f=D.insertBefore;Ehv===void 0&&(Ehv=document.createElement("template"));var n=Ehv;f.call(D,n.content.cloneNode(!0),V.content.firstChild);AsW=V}V=AsW;return V},{mode:2});var aPZ=function(){var V=_.r(_.HJ(void 0,void 0,"Ke5SJd"));this.state=V.next().value;this.setState=V.next().value;V=_.r(_.HJ(void 0,void 0,"iQxJ0e"));V.next();V.next()};
aPZ.prototype.notify=function(V,D){var f;((f=this.state())==null?void 0:f.anchor)===V&&this.setState({text:D.text,location:D.location,anchor:V,offset:D.offset})};var YHo=new aPZ;_.fT(_.MA(function(){return _.K("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var V;return(V=YHo.state())==null?void 0:V.text})},"qh"),"yt-tooltip");var $Iv={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"},iQf={"font-size":"12px","font-style":"italic"},SHo={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.F8W=function(){return _.w(function(V){_.yz(V)})};var WeR=_.MA(function(V){var D=function(){return V.data().subtext},f={};
return _.K("snackbar-view-model",{class:_.KT("snackbarViewModelHost",V.className)},_.K("div",{class:_.KT("snackbarViewModelEngagementBarWrapper",V.className)},_.K(_.e,{cond:function(){return V.data().image},
then:function(n){return _.K(_.xt,{data:n,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.K(_.e,{cond:function(){return V.data().imageContent},
then:function(){return _.K("div",{class:"snackbarViewModelAvatarContainer"},_.K(_.BW,{data:function(){return V.data().imageContent}},{decoratedAvatarViewModel:_.kd}))}}),_.K("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.K("div",{class:_.KT((f.snackbarViewModelTitle=!0,f.snackbarViewModelTitleWithSubtext=D,f))},_.K(_.Ow,{text:function(){return V.data().text}})),_.K(_.e,{cond:D,
then:function(){return _.K("div",{class:"snackbarViewModelSubtext"},_.K(_.Ow,{text:function(){return D()}}))}})),_.K(_.e,{cond:function(){return V.data().buttons},
then:function(){return _.K("div",{class:"snackbarViewModelButtonClassWrapper"},_.K(_.BW,{data:function(){return V.data().buttons}},{buttonViewModel:function(n){return _.K(_.HO,{data:n.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:V.target})}}))}})))},"rh");_.fT(_.MA(function(){function V(A,O,W){k(A);z(W);G("in");Z(!0);D(A,O);H=setTimeout(function(){f()},O)}
function D(A,O){var W,I=(W=A.text)==null?void 0:W.content;A=_.qs(A.rendererContext);I&&(O={label:I,command:A,durationMs:O},_.DY().resolve(_.TZ).enqueue(O))}
function f(A){G("out");A&&clearTimeout(H)}
function n(){f(!0)}
function t(A){if(A){var O=A.snackbarViewModel,W=A.durationMs,I=A.target;W||(W=3E3);O&&(A=_.DY().resolve(_.Vx(_.Jo)))&&A.enqueue({isOpened:y,open:function(){V(O,W,I)},
close:f},0)}}
var J=_.py("snackbar-container"),H=void 0,Q=_.r(_.HJ(!1,void 0,"jJ4tBf")),T=Q.next().value;Q=Q.next().value;var y=T,Z=Q;T=_.r(_.HJ("out",void 0,"M6Rbpb"));var l=T.next().value,G=T.next().value;T=_.r(_.HJ(void 0,void 0,"aFswib"));var F=T.next().value,k=T.next().value;T=_.r(_.HJ(void 0,void 0,"mlWWhb"));var d=T.next().value,z=T.next().value,C=_.jl(function(){if(l()==="out"){Z(!1);k(void 0);z(void 0);var A=_.DY().resolve(_.Vx(_.Jo));A&&lnw(A,0)}});
_.Nl(function(){var A=_.DY().resolve(_.Vx(_.yzU));A&&(A.showSnackbarFn=t,A.closeSnackbarFn=n)});
return _.K("snackbar-container",{class:"ytSnackbarContainerHost",el:J},_.K(_.e,{cond:function(){return y()&&!!F()},
then:function(){var A={};return _.K("div",{class:_.KT("ytSnackbarContainerSnackbarContainer",(A.ytSnackbarContainerMobile=!1,A.ytSnackbarContainerPivotBar=function(){var O;return!((O=_.DY().resolve(_.Vx(_.ZUP)))==null||!O())},A.ytSnackbarContainerOpened=function(){return y()&&l()==="in"},A.ytSnackbarContainerClosed=function(){return y()&&l()==="out"},A)),
"on:animationend":C},_.K(WeR,{data:function(){return F()},
target:function(){return d()}}))}}))},"sh"),"snackbar-container");_.fT(_.MA(function(){var V=_.CT(_.cj3);return _.K("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var D;return(D=V())==null?void 0:D.announcement})},"th"),"yt-ephemeral-actions");var YrR=new Map;var veo=function(V,D){var f=this;this.handleError=V;this.logEventInternal=D;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){f.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
veo.prototype.logError=function(V){this.handleError(V)};
veo.prototype.logEvent=function(V,D){switch(V){case "IDB_DATA_CORRUPTED":_.c("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",D);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",D);break;case "IS_SUPPORTED_COMPLETED":_.c("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",D);break;case "QUOTA_EXCEEDED":piB(this,D);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",D);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":V=Object.assign({},D,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",V)}};
var piB=function(V,D){_.yq.getInstance().estimate().then(function(f){f=Object.assign({},D,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:iIw(f==null?void 0:f.usage),deviceStorageQuotaMbytes:iIw(f==null?void 0:f.quota)});V.logEventInternal("idbQuotaExceeded",f)})};var S8=function(){var V=_.E.apply(this,arguments)||this;V.tabGesturesIsActive=!1;V.deprecateFullerscreenUi=_.c("web_watch_fullerscreen_deprecation_ui");V.hasDelegation=!1;V.darkerDarkTheme=_.c("web_darker_dark_theme");V.isFrostedGlassInitialized=!1;V.frostedGlassExp=_.c("web_frosted_glass");V.mastheadHiddenFocusWithinKillswitch=_.c("web_masthead_hidden_focus_within_killswitch");V.clientOnlyWizTooltipsEnabled=_.c("enable_client_only_wiz_tooltips");V.scrollAtTop=!0;V.guideScrollTop=0;V.isTheaterModeSession=
_.EG("START_IN_THEATER_MODE");V.iMaxTheaterMode=_.c("web_watch_imax_theater_mode");V.isFullWindowSession=_.EG("START_IN_FULL_WINDOW_MODE");V.hasCreateFamilyDialog=!1;V.mastheadHeight=56;V.networkStatusManager=new _.ik;V.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"};V.dynamicActionMap={"yt-run-attestation-command":function(D){var f=_.lLF.instance,n=_.g(D,_.ucl);return n?_.c("use_rta_manager_for_async")&&
Hhc()?Omf(f,n,D.clickTrackingParams):Ibw(f,n,D.clickTrackingParams):_.Br(Error("ri"))}};
V.isFrostedGlassDisabled=!1;V.isChannelOrPlaylistPage=!1;return V};
_.v(S8,_.E);_.P=S8.prototype;_.P.created=function(){var V=_.DY();_.c("kevlar_clear_duplicate_pref_cookie")&&_.gq(_.dm,function(){var D=_.ZY.get("PREF");D&&!/f\d=/.test(D)&&(D=_.PI("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=D?"PREF=null;domain="+D+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.c("gzip_gel_with_worker")&&_.zIU();_.c("jspb_serialize_with_worker")&&CkX();_.c("web_worker_availability_check")&&$Aw();_.c("nwl_init_killswitch")||ztX().then(function(){_.dm.addLowPriorityJob(x1W)});
this.pageManagerAttachedPromise=_.Sl();this.ytdAppBehavior.loadDepsPromise=_.eT([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.I7(this.onThrottledScroll,200,this);_.c("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);kVV();gCZ=!!_.Yw("ytappsettings.initialized");QI=_.Yw("ytappsettings.previousValue");rk0=_.Yw("ytappsettings.previousSnapshotTime");gCZ||(gCZ=!0,HyW());fHJ();nyc();_.ql("DEFERRED_DETACH",
_.c("kevlar_tuner_should_defer_detach"));_.ql("REUSE_COMPONENTS",!0);_.ql("STAMPER_STABLE_LIST",!0);_.ql("SCHEDULED_LAZY_LIST",!0);_.ql("openPopupConfig",W9B);_.ql("useClickHandler",!0);_.c("kevlar_shell_cleanup")&&_.dm.addLowPriorityJob(Zy3.bind(this,_.fx.caches));_.EG("IS_SHELL_LOAD")&&_.N1({shellStartupDurationMs:Math.round((0,_.VW)()-_.k8())});sU3(this.networkStatusManager);_.c("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Gyw($Iv)),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!",
Gyw(iQf)),console.log("%cVisit http://go/join-youtube-web to apply today.",Gyw(SHo)));_.jPq(V.resolve(_.wn),1E3)};
_.P.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var V=WWR();V&&!_.c("external_fullscreen_killswitch")&&document.addEventListener(V,this.setFullscreen.bind(this));(V=window.matchMedia("(prefers-color-scheme: dark)"))&&V.addEventListener&&V.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.P.attached=function(){var V=this;_.C_().processSignal("ci");_.c("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.SZd?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Q7(_.Eq9(),"SUCCESS");this.updateIconSet();_.Dl(this.guideInnerContent,!1);_.cX().initVisibilityObserver();this.guideService.guideElement=this.guide;var D=document.createElement("ytd-miniplayer"),f=_.Pt(this.hostElement).querySelector("#content");
_.Pt(this.hostElement).insertBefore(D,f);_.C_().processSignal("ma");_.DY().resolve(_.qw).init(D);_.EG("IS_SHELL_LOAD")&&(f=document.createElement("ytd-network-status-banner"),_.Pt(this.hostElement).insertBefore(f,D));_.c("kevlar_right_click_on_lockups")&&_.AV._onCaptureClick&&document.addEventListener("contextmenu",_.AV._onCaptureClick.bind(_.AV),!0);var n=function(){var t=_.Md("yt-page-navigation-progress");_.Pt(V.hostElement).appendChild(t)};
setTimeout(function(){_.C_().parkOrScheduleJob(n,0,"eocs",16)},0);
_.c("service_worker_push_enabled")&&_.gq(_.dm,Sqv);_.$b(_.Yb.getInstance(),this.dynamicActionMap,this.hostElement);_.PA(this.hostElement,"ytd-app-attached");_.C_().processSignal("aa");Jkq(this.hostElement);_.M4("gapi.load",_.lpF);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.gq(_.dm,
function(){var t=document.createElement("ytd-video-preview");_.Pt(_.Pt(V.hostElement).querySelector("#video-preview")).appendChild(t)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.gq(_.dm,function(){guq();V.registerWithViewTransitionManager()});
if(_.ud()&&this.isAppDarkTheme()!==_.Bo())this.onDarkModeToggledAction();else D=_.dU()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==D&&(_.c("enable_dark_theme_only_on_shorts")?_.SL(_.c("enable_dark_theme_only_on_shorts_control")?window.location.href:_.LZ(window.location.href,{theme:"dark"})):_.zP(new _.cI("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Oto=new I6B(this.hostElement)),Cjf=new RTV(this.hostElement),zT0=new mIJ(this.hostElement),KmR=new bER(this.hostElement)};
_.P.getThemeSettingsToLog=function(){var V=_.dU()==="USER_INTERFACE_THEME_DARK";V=_.ud()?_.Bo()?"os-dark":"os-light":V?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:V,cookiesEnabled:_.lE()}};
_.P.detached=function(){_.f6(this.guideInnerContent);_.dm.cancelJob(rB);rB=0;_.dm.cancelJob(wB);wB=0;_.poU(obX);obX.length=0;nbX=_.HtR=null;_.cX().dispose();_.c("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.iN(_.Yb.getInstance(),Oto.playlistHandlerActionMap,Oto.JSC$28728_clientRoot);_.iN(_.Yb.getInstance(),Cjf.downloadManagerActionMap,Cjf.JSC$29034_clientRoot);_.iN(_.Yb.getInstance(),zT0.feedbackCollectorActionMap,zT0.JSC$29029_clientRoot);
for(var V=_.r(KmR.eventListeners),D=V.next();!D.done;D=V.next()){var f=_.r(D.value);D=f.next().value;f=f.next().value;f=_.r(f);for(var n=f.next();!n.done;n=f.next()){var t=_.r(n.value);n=t.next().value;t=t.next().value;D.removeEventListener(n,t)}}_.iN(_.Yb.getInstance(),KmR.autonavPauseActionMap,KmR.JSC$17918_clientRoot)};
_.P.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Gm().getFlag(186)};
_.P.computeIsInlinePreviewEnabled=function(V,D,f){return!f&&_.bGq({miniplayerIsActive:V,miniplayerPlaybackState:D})};
_.P.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.nA({type:"SET_FROSTED_GLASS_MODE",payload:!_.c("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"}))};
_.P.computeIsFrostedGlassDisabled=function(V,D,f,n){return V||D||f||n&&_.c("web_frosted_glass_disable_watch")};
_.P.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.c("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.P.computeIsHomePage=function(V,D){if(!V||D==null||!D.endpoint)return!1;var f;return((f=_.g(D.endpoint,_.jL))==null?void 0:f.browseId)==="FEwhat_to_watch"};
_.P.updateIsChannelOrPlaylistPage=function(){if(_.c("web_frosted_glass")){var V,D,f=(D=(V=_.DY().resolve(_.Vx(_.xl)))==null?void 0:V.getCurrentPage())==null?void 0:D.pageSubtype;this.isChannelOrPlaylistPage=f?["channel","channels","playlist"].includes(f):!1}};
_.P.scheduleFrostedGlassInitialization=function(){var V=this;_.c("web_frosted_glass")&&_.C_().parkOrScheduleJob(function(){V.isFrostedGlassInitialized=!0},0,_.C0(["eocs",
"cr"]),300)};
_.P.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.c$o(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.nA({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.nA({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.P.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kfv(!0))};
_.P.onYtSignalActionRequestPersistentStorage=function(){if(!_.c("request_persistent_storage_killswitch")){var V=_.DY().resolve(_.opW);V.cachedPersistStatePromise||(V.cachedPersistStatePromise=daw())}};
_.P.handleYtChannelCreationFormEndpoints=function(V){V&&this.ytComponentBehavior.resolveCommand(V)};
_.P.handleShowEngagementPanelEndpoint=function(V){V&&this.ytComponentBehavior.resolveCommand(V)};
_.P.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kfv(!1))};
_.P.initIconDefs=function(V,D){var f=document.createElement("iron-iconset-svg");f.name=V;V=document.createElementNS("http://www.w3.org/2000/svg","svg");f.appendChild(V);V.appendChild(D);document.body.appendChild(f);return f};
_.P.onWindowResized=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var V=_.z7E.getInstance();V.documentWidth_=document.body.clientWidth;c2W(V)};
_.P.onWindowScrolled=function(){var V=_.DY().resolve(_.xl).getCurrentPage();if(V!=null&&V.getScrollTop){var D=this.ytdReduxBehavior,f=D.dispatch;V=V.getScrollTop()<=0;f.call(D,_.nA({type:"SET_SCROLL_AT_TOP",payload:V}))}};
_.P.guideIsVisibleButNotPersistentSelectorChanged=function(){var V=_.DY().resolve(_.xl).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=V.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"),
V.setScrollTop(this.guideScrollTop));_.JR(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.P.getCurrentPageScrollableElementType=function(){var V=_.DY().resolve(_.xl).getCurrentPage();if(V&&V.getPageScrollingElement())return V.getPageScrollingElement().nodeName};
_.P.observeGuideVisibility=function(){var V=_.z7E.getInstance(),D=this.miniGuideVisible;V.guidePersistentAndVisible_=this.guidePersistentAndVisible;V.miniGuideVisible_=D;c2W(V)};
_.P.handleEduDismissAction=function(V){V&&V.eduDismissAction&&(_.o4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.B5Y.getInstance(),_.Ij.set(V.eduDismissAction.key+"-dismissed",!0))};
_.P.handleEduImpressionAction=function(V){if(V&&V.eduImpressionAction){var D=_.B5Y.getInstance();V=V.eduImpressionAction.key;D.JSC$11046_eduDisplayedThisLoad_[_.s1P[V].setKey||V]=!0;_.Ij.set(V+"-impression",parseInt(_.Ij.get(V+"-impression")||0,10)+1)}};
_.P.onYtSignalActionConfirmMentionsEdu=function(){_.o4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.MP.getInstance();_.xc.set("edu-dismissed",!0)};
_.P.onYtSignalActionRecordMentionsEduImpression=function(){_.MP.getInstance();var V=_.xc.set,D=parseInt(_.xc.get("edu-impressions"),10);V.call(_.xc,"edu-impressions",(isFinite(D)?D:0)+1)};
_.P.onYtPageManagerAttached=function(V){var D;((D=_.x7(V))==null?void 0:D.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.P.onInvokeInstrumentManagerAction=function(V,D){L8f(D,V)};
_.P.updateIconSet=function(){var V=this.hostElement.querySelector("#masthead");if(V){var D=_.oU(V),f=D.querySelector("g#yt-logo-updated");f&&(V=document.createElementNS("http://www.w3.org/2000/svg","defs"),V.appendChild(f.cloneNode(!0)),(D=D.querySelector("g#yt-logo-red-updated"))&&V.appendChild(D.cloneNode(!0)),this.initIconDefs("yt-logos-ext",V))}};
_.P.updateMastheadData=function(){var V=this,D,f,n,t,J;return _.w(function(H){if(H.nextAddress==1){D=V.data;f=V.hostElement.querySelector("#masthead");if(!f)return H.return();_.pO(V,function(){f.data=V.topbarData});
if(!V.get("response.topbar",D)||V.get("response.topbar.responseContext.maxAgeSeconds",D)===0)return H.jumpTo(0);if(n=_.DY().resolve(_.Su))return _.b(H,n(),6);t=_.DY().resolve(_.fC);return _.b(H,t.put("service:topbar:fallback",new _.nC({innertubeResponse:V.get("response.topbar",D)})),0)}return(J=H.yieldResult)?_.b(H,J.put("service:topbar:fallback",new _.nC({innertubeResponse:V.get("response.topbar",D)})),0):H.jumpTo(0)})};
_.P.computeTopbarData=function(V){if(!V)return null;var D;return this.isShortsPage&&this.topbarData&&!_.g((D=V.response)==null?void 0:D.topbar,yTf)?this.topbarData:V.response&&"topbar"in V.response?_.g(V.response.topbar,yTf)||null:null};
_.P.onSetTheaterModeEnabled=function(V,D){this.isTheaterModeSession=D.enabled;this.setTheaterModeStyles(D.enabled)};
_.P.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.P.onDarkModeToggledAction=function(){var V=_.Qx(window.location.href);if(!_.egZ(V)){(V=!!_.pZ(window.location.href).themeRefresh)&&_.zP(new _.cI("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!V){HyW();V={themeRefresh:1};var D=_.DY().resolve(_.xl);if(D.isOnWatch()){var f,n;D=((f=D.getPlayerFromWatch())==null?void 0:(n=f.getPlayer())==null?void 0:n.getCurrentTime())||0;D>=1&&(V.time_continue=Math.floor(D))}_.lE()||_.dU()!=="USER_INTERFACE_THEME_DARK"||(V.theme="dark");_.SL(_.LZ(window.location.href,
V))}_.c("web_appshell_refresh_trigger")&&_.fx.caches&&this.refreshAppShellResponse();f=_.ab(window.location.href);_.o0(_.DY().resolve(_.J$),_.Mi(f,"theme"))}};
_.P.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.P.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.P.onPlayerFullscreen=function(V){_.UX();this.playerFullscreen=V};
_.P.setRestrictedMode=function(V){var D=_.Gm();_.eJ(0,58,V);D.save();_.DY().resolve(_.e2).reload()};
_.P.onPageChanged=function(V){V.detail.newPageType==="ytd-watch-flexy"||V.detail.newPageType==="ytd-watch-fixie"||V.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.s5("WEB_PAGE_TYPE_WATCH")):V.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.s5("WEB_PAGE_TYPE_SHORTS")):V.detail.newPageType==="ytd-browse"&&V.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.s5("WEB_PAGE_TYPE_MINI_APP")):_.c("web_frosted_glass")&&V.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.s5("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.s5("WEB_PAGE_TYPE_UNKNOWN"));V.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.P.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.P.onGuideToggleTap=function(){_.PA(this.hostElement,"yt-guide-toggle")};
_.P.onGuideToggleHover=function(){_.PA(this.hostElement,"yt-guide-hover")};
_.P.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setMastheadTheme=function(){var V=_.oU(this.hostElement).querySelector("#masthead");V&&(V.dark=V.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),V.isDarkThemeForced=!1)};
_.P.onRequestPanelModeChange=function(V,D){this.hideHeaderShadow=D.mode!=="seamed"};
_.P.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.P.onDrawerIronSelect=function(V){_.x7(V).id==="guide"&&this.processDrawerIronSelect()};
_.P.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var V="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(V="opened"));_.PA(this.hostElement,"yt-autonav-pause-guide-"+V)};
_.P.onAddElementToApp=function(V){_.Pt(this.hostElement).appendChild(V.detail)};
_.P.onThrottledScroll=function(){var V=_.DY().resolve(_.xl).getCurrentPage();V&&(this.scrollAtTop=V.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.P.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.P.setFullscreen=function(){if(_.c("external_fullscreen")||!this.isWatchPage){var V=_.c("kevlar_fullerscreen_root_only_killswitch")?!!_.UX():!!_.UX()&&_.UX()===document.documentElement;V=(this.isWatchPage||_.c("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(V||this.isFullWindowSession);this.fullscreen!==V&&((this.fullscreen=V)&&_.JR(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Ol().dispatch(_.Q0Y(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.o4(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.P.setFullscreenLoggingForShorts=function(V){var D,f,n;return _.w(function(t){if(t.nextAddress==1)return _.b(t,(D=_.hI())==null?void 0:D.getPlayerPromise(),2);f=t.yieldResult;(n=f)==null||n.setAppFullscreen(V);_.yz(t)})};
_.P.updateMastheadCssHeight=function(){var V=this.mastheadHeight;this.fullscreen&&(V=0);_.wI(this.hostElement,{"--ytd-masthead-height":V+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.P.updateNetworkStatusBannerDisplayStatus=function(){var V="unset";this.fullscreen&&(V="none");_.wI(this.hostElement,{"--ytd-network-status-banner-display":V})};
_.P.updateNetworkStatusBannerCssHeight=function(){var V="unset";this.fullscreen&&(V="0px");_.wI(this.hostElement,{"--ytd-network-status-banner-max-height":V})};
_.P.updateScrollAndMasthead=function(V,D,f,n){this.iMaxTheaterMode||(n=!1);var t=_.DY().resolve(_.xl).getCurrentPage();V||D||n?(document.body.classList.add("no-scroll"),t.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Ty(this,this.onScroll)),t.setScrollTop(0),_.wI(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.mB()+"px"})):f?_.PA(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.PA(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
t.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Ty(this,this.onScroll)));this.mastheadHidden=V||D||f;this.updateMastheadCssHeight();_.c("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.P.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.P.onYtNavigateAction=function(V){V=this.get("navigateAction.endpoint",V);_.PA(this.hostElement,"yt-navigate",{endpoint:V})};
_.P.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var V=document.createElement("yt-create-family-dialog");_.Pt(this.hostElement).appendChild(V);this.hasCreateFamilyDialog=!0}};
_.P.onSetPushNotificationsEnabledCommand=function(V){var D=this,f=_.g(V,KJX);f&&typeof f.enabled==="boolean"&&(Notification.permission!=="granted"?Akv().then(function(){Notification.permission==="granted"?(gbW(!f.enabled).then(s2c),f.successAction&&_.HA(D.hostElement,[f.successAction])):f.failureAction&&_.HA(D.hostElement,[f.failureAction])}):(gbW(!f.enabled).then(s2c),f.successAction&&_.HA(this.hostElement,[f.successAction])))};
_.P.onYtSignalActionEnableChromeNotifications=function(){asB(!0)};
_.P.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.g(this.topbarData.hotkeyDialog,l8w)}}})};
_.P.onYtSignalActionShowKeyboardShortcutDialog=function(){_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.P.onYtEndpointChangeHandler=function(V,D){var f=_.nY(_.Gb);f.pendingPrefetchJob_&&(D=!(!D||D.autonav!="1"),f.pendingPrefetchJob_.resolve(V&&_.wOn(V)?_.QK3(V,D):""),f.pendingPrefetchJob_=null);_.o4(this.hostElement,"yt-pause-active-page-context");_.o4(this.hostElement,"ytd-log-youthere-nav");_.o4(this.hostElement,"yt-prepare-page-dispose")};
_.P.handleCommandWithCommandHandler=function(V,D){_.bS.instance.resolveCommand(V,{form:{element:D}})};
_.P.onYtTimedCommand=function(V){var D=this;V=_.g(V,nBq);var f=V.command;f&&_.sw(_.dm,function(){var n=_.g(f,_.Mau);n?(_.bS.instance.resolveCommand(f),D.maybeLogGetAnswerRequestTick(n)):_.wN(D.hostElement,[f],D.hostElement)},V.timeoutMs||0)};
_.P.maybeLogGetAnswerRequestTick=function(V){V&&V.isFirstRequest&&(_.mg("search_overview_answer"),_.zm("so_rq",void 0,"search_overview_answer"))};
_.P.onYtSignalActionSkipNavigation=function(){var V=_.DY().resolve(_.xl).getCurrentPage();_.Lh(V)};
_.P.onYtSignalActionCopyDebugData=function(){UGq()};
_.P.handleEntityUpdateCommand=function(V){_.yc(_.g(V,_.ITo).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.P.logFlowLoggingEventCommand=function(V){if(V=_.g(V,_.DOU))if(V.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var D=V.flowEventNamespace,f=V.flowEventType,n=V.flowType;n&&D&&f&&_.nLc(_.Qu(D,f,V.flowEventMetadata),n)}else{D=_.bd();f=V.flowEventNamespace;n=V.flowEventType;var t=V.flowType;t&&f&&n&&_.T_(D,_.Qu(f,n,V.flowEventMetadata),t,V.flowNonce)}};
_.P.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.P.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.P.onTouchStart=function(){var V=_.F_();_.Ni()&&_.at(V.JSC$11273_screenManager,{visualElement:V.ve})};
_.P.handleSelectLanguageCommand=function(V){if(V=_.g(V,QI3).hl){var D=_.Gm();D.set("hl",V);D.save();_.DY().resolve(_.e2).reload()}};
_.P.handleConfirmDialogEndpoint=function(V){(V=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V))&&this.ytOpenPopupBehavior.openPopup(V)};
_.P.handleOpenPopupNavigationEndpoints=function(V,D){_.c("web_button_rework")&&(V=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V))&&this.ytOpenPopupBehavior.openPopup(V,D)};
_.P.handleSaveCommandToSessionStorage=function(V){if(V=_.g(V,_.q5F)){var D=V.key;D&&V.command&&window.sessionStorage.setItem(D,JSON.stringify(V.command))}};
_.P.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(V){V&&V.active&&V.active.postMessage({type:"refresh_shell"})}).catch(function(V){V.name!=="SecurityError"&&_.NG(V)})};
_.P.onDeviceThemeChanged=function(){var V=_.Bo();_.eJ(_.Gm(),185,V);_.Gm().save()};
_.P.handleYtRegisterPromoCommand=function(V){if(_.g(V,b9f)){var D=_.DY().resolve(_.xl).getCurrentPage()||this.hostElement;gLB().registerPromoCommand(_.g(V,b9f),D)}};
_.P.onYtNavigateHomeAction=function(){if(!_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var V,D,f,n,t=(n=(V=this.topbarData)==null?void 0:(D=V.logo)==null?void 0:(f=D.topbarLogoRenderer)==null?void 0:f.endpoint)!=null?n:_.K_;this.ytComponentBehavior.resolveCommand(t)}};
_.P.onYtLocationCollectionCommand=function(V){cAW(_.g(V,sIv))};
_.P.onYtGetLocationCommand=function(V){JOc(_.g(V,kN0),this)};
_.P.updateRenderGuideFromBinding=function(V){this.renderGuide=V.detail.value};
_.P.updateGuidePersistentAndVisibleFromBinding=function(V){this.guidePersistentAndVisible=V.detail.value};
_.P.updateMiniGuideVisibleFromBinding=function(V){this.miniGuideVisible=V.detail.value};
_.P.onThemeSelected=function(V,D){var f=_.Gm(),n=V||D?V:_.Bo(),t=(n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.egZ(_.Qx(window.location.href));_.eJ(0,165,V);_.eJ(0,174,D);f.save();t&&_.o4(this.hostElement,"yt-dark-mode-toggled-action",[n]);_.o4(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.getCurrentTheme=function(){return _.ud()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.dU()};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.P.handleShowConsentPrimitive=function(V){var D=this,f,n;return _.w(function(t){if(t.nextAddress==1){try{f=(n=_.hI())==null?void 0:n.getPlayerPromise()}catch(J){}return _.b(t,avB(V,f),2)}_.o4(D.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.yz(t)})};
_.P.handleSelectActiveIdentityEndpointInternal=function(V){_.$7();V=_.g(V,_.T0E);if(V!=null&&V.supportedTokens){V=_.r(V.supportedTokens);for(var D=V.next();!D.done;D=V.next())D=D.value,D.accountSigninToken&&_.SL(D.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.P.handleUpdatePermissionRoleCommand=function(V){if(V=_.g(V,_.wyF)){var D;this.hasDelegation=!((D=_.g(V.renderer,_.HNH))==null||!D.status)}};
_.P.registerWithViewTransitionManager=function(){var V=_.DY().resolve(_.Vx(_.cx));if(V){var D,f=(D=this.guide)==null?void 0:D.querySelector("#scrim"),n;D=(n=this.guide)==null?void 0:n.querySelector("#contentContainer");f&&D&&V.isAnyTransitionEnabled&&(n={},V.viewTransitionCoordinator.registerElement(f,(n.slide="app-drawer-scrim-page-transition",n["lockup-to-watch"]="app-drawer-scrim-page-transition",n["learning-journey"]="app-drawer-scrim-page-transition",n)),f={},V.viewTransitionCoordinator.registerElement(D,
(f.slide="app-drawer-container-page-transition",f["lockup-to-watch"]="app-drawer-container-page-transition",f["learning-journey"]="app-drawer-container-page-transition",f)))}};
_.IG.Object.defineProperties(S8.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.c("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.IG.Object.defineProperties(S8,{template:{configurable:!0,enumerable:!0,get:function(){if(k9Z===void 0){var V=document.createElement("template");_.B(V,'\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<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
V.content.insertBefore(_.h().content.cloneNode(!0),V.content.firstChild);k9Z=V}V=k9Z;return V}}});
S8.prototype.onOpenHotkeyDialog=S8.prototype.onOpenHotkeyDialog;S8.prototype.setFullscreen=S8.prototype.setFullscreen;S8.prototype.onAddElementToApp=S8.prototype.onAddElementToApp;S8.prototype.onDrawerIronSelect=S8.prototype.onDrawerIronSelect;S8.prototype.onGuideOpenButtonHover=S8.prototype.onGuideOpenButtonHover;S8.prototype.onRequestPanelModeChange=S8.prototype.onRequestPanelModeChange;S8.prototype.onPageDataUpdated=S8.prototype.onPageDataUpdated;S8.prototype.onPageChanged=S8.prototype.onPageChanged;
S8.prototype.onSetTheaterModeEnabled=S8.prototype.onSetTheaterModeEnabled;S8.prototype.updateMastheadData=S8.prototype.updateMastheadData;S8.prototype.onYtPageManagerAttached=S8.prototype.onYtPageManagerAttached;S8.prototype.observeGuideVisibility=S8.prototype.observeGuideVisibility;S8.prototype.guideIsVisibleButNotPersistentSelectorChanged=S8.prototype.guideIsVisibleButNotPersistentSelectorChanged;S8.prototype.isInlinePreviewEnabledChanged=S8.prototype.isInlinePreviewEnabledChanged;
S8.prototype.isWatchPageChanged=S8.prototype.isWatchPageChanged;S8.prototype.dispatchFrostedGlassMode=S8.prototype.dispatchFrostedGlassMode;_.S([_.u(_.dh),_.p("design:type",Object)],S8.prototype,"ytdReduxBehavior",void 0);_.S([_.u(_.yC.YtEventForwardingBehavior),_.p("design:type",Object)],S8.prototype,"ytEventForwardingBehavior",void 0);_.S([_.u(_.T0.YtOpenPopupBehavior),_.p("design:type",Object)],S8.prototype,"ytOpenPopupBehavior",void 0);
_.S([_.u(_.D6.YtActionHandlerBehavior),_.p("design:type",Object)],S8.prototype,"ytActionHandlerBehavior",void 0);_.S([_.u({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Yb.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.c("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var V;((V=this.actionRouterNode.hostElement)!=null?V:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var V;((V=this.actionRouterNode.hostElement)!=null?V:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(V){this.actionRouter_.handleAction(V.detail)}}),
_.p("design:type",Object)],S8.prototype,"ytActionRouterBehavior",void 0);_.S([_.u(NMW.YtdAppBehavior),_.p("design:type",Object)],S8.prototype,"ytdAppBehavior",void 0);_.S([_.u(_.bz.YtEndpointBehavior),_.p("design:type",Object)],S8.prototype,"ytEndpointBehavior",void 0);_.S([_.u(Ni3.YtEndpointHandlerWithYpcBehavior),_.p("design:type",Object)],S8.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.S([_.u(svf.YtLogYpcFlowCommandsBehavior),_.p("design:type",Object)],S8.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.S([_.u(_.U.YtRendererBehavior),_.p("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.S([_.u(_.EY.YtComponentBehavior),_.p("design:type",Object)],S8.prototype,"ytComponentBehavior",void 0);_.S([_.q({selector:_.M5o}),_.p("design:type",Object)],S8.prototype,"tabGesturesIsActive",void 0);_.S([_.q(),_.p("design:type",Boolean)],S8.prototype,"renderGuide",void 0);
_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"guidePersistentAndVisible",void 0);_.S([_.q({selector:_.x90}),_.p("design:type",Boolean)],S8.prototype,"guideIsVisibleButNotPersistent",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"standalone",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"miniGuideVisible",void 0);
_.S([_.q({selector:_.cTF}),_.p("design:type",Number)],S8.prototype,"miniplayerPlaybackState",void 0);_.S([_.q({selector:_.mq,reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"miniplayerIsActive",void 0);_.S([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],S8.prototype,"isInlinePreviewEnabled",void 0);_.S([_.q(),_.p("design:type",Boolean)],S8.prototype,"isInlinePreviewDisabled",void 0);
_.S([_.q({reflectToAttribute:!0,value:function(){return _.EG("START_IN_FULL_WINDOW_MODE")}}),
_.p("design:type",Boolean)],S8.prototype,"mastheadHidden",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"playerFullscreen",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S8.prototype,"deprecateFullerscreenUi",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"fullscreen",void 0);_.S([_.q({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"hideHeaderShadow",void 0);
_.S([_.q({value:{GUIDE_ALT_LABEL:_.Zl("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.p("design:type",Object)],S8.prototype,"menuStrings",void 0);_.S([_.q({computed:"computeTopbarData(data)"}),_.p("design:type",Object)],S8.prototype,"topbarData",void 0);_.S([_.q({selector:_.zq}),_.p("design:type",Boolean)],S8.prototype,"isWatchPage",void 0);_.S([_.q({selector:_.l8x,reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"isShortsPage",void 0);
_.S([_.q({selector:function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.p("design:type",Boolean)],S8.prototype,"isMiniAppPage",void 0);_.S([_.q({selector:function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.p("design:type",Boolean)],S8.prototype,"isBrowsePage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Boolean)],S8.prototype,"scrolling",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S8.prototype,"hasDelegation",void 0);_.S([_.q({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],S8.prototype,"guideScrolledByTouch",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S8.prototype,"darkerDarkTheme",void 0);
_.S([_.q(),_.p("design:type",Object)],S8.prototype,"isFrostedGlassInitialized",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S8.prototype,"frostedGlassExp",void 0);_.S([_.q({selector:function(V){return V.ui.chipBarIsSticky}}),
_.p("design:type",Boolean)],S8.prototype,"chipBarIsSticky",void 0);_.S([_.q({computed:"computeIsHomePage(isBrowsePage, data)"}),_.p("design:type",Boolean)],S8.prototype,"isHomePage",void 0);_.S([_.q({reflectToAttribute:!0}),_.p("design:type",Object)],S8.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.S([_.q(),_.p("design:type",Object)],S8.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.S([_.Mn("guide"),_.p("design:type",Object)],S8.prototype,"guide",void 0);
_.S([_.Mn("guide-service"),_.p("design:type",jx3)],S8.prototype,"guideService",void 0);_.S([_.Mn("guide-inner-content"),_.p("design:type",HTMLDivElement)],S8.prototype,"guideInnerContent",void 0);_.S([_.q({selector:_.FJd}),_.p("design:type",String)],S8.prototype,"frostedGlassMode",void 0);
_.S([_.KI("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"dispatchFrostedGlassMode",null);_.S([_.q({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.p("design:type",Object)],S8.prototype,"isFrostedGlassDisabled",void 0);
_.S([_.KI("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"isWatchPageChanged",null);_.S([_.R("isHomePage","chipBarIsSticky"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],S8.prototype,"applyFrostedGlassToChipBar",null);_.S([_.q(),_.p("design:type",Object)],S8.prototype,"isChannelOrPlaylistPage",void 0);
_.S([_.eY("isInlinePreviewEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"isInlinePreviewEnabledChanged",null);_.S([_.KI("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.S([_.KI("guidePersistentAndVisible","miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"observeGuideVisibility",null);_.S([_.bU("attached"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],S8.prototype,"onYtPageManagerAttached",null);_.S([_.KI("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],S8.prototype,"updateMastheadData",null);
_.S([_.bU("yt-set-theater-mode-enabled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],S8.prototype,"onSetTheaterModeEnabled",null);_.S([_.bU("yt-page-type-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],S8.prototype,"onPageChanged",null);_.S([_.bU("yt-page-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"onPageDataUpdated",null);
_.S([_.bU("yt-request-panel-mode-change"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],S8.prototype,"onRequestPanelModeChange",null);_.S([_.bU("yt-guide-hover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"onGuideOpenButtonHover",null);_.S([_.bU("app-drawer-transitioned"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],S8.prototype,"onDrawerIronSelect",null);
_.S([_.bU("yt-add-element-to-app"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],S8.prototype,"onAddElementToApp",null);_.S([_.bU("yt-set-fullerscreen-styles"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"setFullscreen",null);_.S([_.bU("yt-open-hotkey-dialog"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],S8.prototype,"onOpenHotkeyDialog",null);
_.S([_.a({is:"ytd-app"})],S8);_.C_().processSignal("eor");
_.uW();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
